Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dbrb2
  • Content: Threads
  • Order by date
  1. dbrb2

    Installing pening updated from the command line?

    When a W7 machine has pending updates, I can install them by choosing the "install updates and shut down" from the desktop However, if I call "shutdown /t 0" from the command line of the same machine, the updates are not installed - the machine justs shuts down Is there a way to shutdown and...
  2. dbrb2

    Postgresql cursor loop

    Hi, I'm new to postgresql. I'm trying to get a function that will loops through a cursor, and update every row. I have tried various permutations of the below, but am getting syntax errors. Can anyone suggest what is wrong with the given example? DECLARE curs1 CURSOR FOR SELECT * FROM...
  3. dbrb2

    Mysql - distance from a point

    Hello, I'm trying to get my head around MySQL GIS functionality. Can anyone tell me why the below query, lifted from a mysql example page, returns NULL whenever it is run? I am trying to use something similar to query a table based on distance from a point. SELECT ROUND(GLength(...
  4. dbrb2

    php - using API to UK live rail departure boards

    Hello - I wonder if someone can give a bit of adice. I came across the API to the UK live train departure boards recently - although I understand it has been around for a while. The interface is described here: http://www.livedepartureboards.co.uk/ldbws/ As my first attempt at retreiving some...
  5. dbrb2

    forwarding multicast packets from one interface to another

    Hello We have a Cisco 3750 A machine on one interface generates udp packets addressed to a multicast IP and specified port, containing various status information in their payloads. I want to forward all these multicast packets to another interface on the same switch, so they can be monitored...
  6. dbrb2

    Multicast forwarding between interfaces on ns50

    We have a netscreen-50 On eth4 is a subnet containing various devices that use multicast to communicate. We have a set of policies set up that allow certain machines on the subnet connected to eth1 to see the network on eth4, and used MIPs so that the source address from those machines on...
  7. dbrb2

    OpenFileDialog string problems

    Hello, Sorry to post twice in two days... I have a datagridView component, that uses as its source an XML file. Private Sub loadFromXML() Try ds.ReadXml(filePath, XmlReadMode.InferSchema) DataGridView1.DataSource = ds.Tables(0) Catch ex As Exception...
  8. dbrb2

    Getting process id for file opened with default program

    Hi, If I open a specific program, using the following: Dim myProcess As System.Diagnostics.Process = System.Diagnostics.Process.Start("calc.exe") then I can access the pid for that process using myProcess.id, and use it to manipulate the process. If however I just specify a file or URL I...
  9. dbrb2

    Catalys 2960 lt2p

    Hello - apologies if any of what follows is very basic / wrong... I am trying to set up a tunnel, using l2tp, with no encryption, between a Cisco 2960 switch and a linux box. I was just interested what, if any, impact the tunnel would have on network performance - jitter, latency etc, and it...
  10. dbrb2

    escaping slashes in preg_match

    Hello, I'm having some trouble with my regular expressions... I want to match a date using preg match, where the delimiter may be one of either " ", "/","-","." or "\" $dateMatch = '/^\s*([0-9]{1,2})[//// \\\.-]+([0-9]{1,2})[//// \\\.-]*([0-9]{0,4})/'; preg_match($dateMatch,$str,$match); I...
  11. dbrb2

    Life without winsock

    Hi, I havent used VB for ages - but last time I did there was a simple winsock component with a "datareceived" event that made asynchronous client writing a doddle. Now it seems this has been removed - I can send and receive synchronously, but have not managed to get asynchronous callbacks...
  12. dbrb2

    Capturing Mysql output in a bash variable

    Evening. I am trying to capture the output of a mySQL query into a bash variable, without much luck... I have: #!/bin/bash HOURS=0 MINS=0 SECS=0 SMTP="" DB_USER="xxxx" DB_PASS="yyyy" TABLE="zzzz" QUERY='mysql -u ${DB_USER} -p${DB_PASS} -e"<<EOF SELECT update_time FROM...
  13. dbrb2

    setting MSB of a byte

    Hi, I havent used VB much recently. I'm reading dome data from a TCP server using the TcpClient class. This is read into a byte array. However, it turns out the data as received has a parity bit set, so converting it directly into ASCII on't work for many characters. I need to find a way to set...
  14. dbrb2

    htaccess RewriteRule - regexp problems

    Hi - I'm having saome trouble with my htaccess redirect, and hoped someone could help: I have a php page here: http://bbarker.co.uk/animate/gpx.php I am trying to ensure that anybody visiting this directory gets sent to this page automatically. However, I also want to ensure that if the...
  15. dbrb2

    parsing URL contents into a variable using PHP

    Hi - I have a php script on server A into which I can pass paramters via the URL. This script produces HTML which is then displayed in the users browser. Server B has a page that want to make use of some of the info within this HTML. My first solution was to use javascript and ajax. I issued...
  16. dbrb2

    exif_read_data() giving odd errors on some images

    Hi, I have a directory full of photos, all taken at similar times with the same camera, and all of which I can view the exif data on using various programs. On my webpage, I extract the GPS info and a few other bits into an XML file for futher crunching. But for some reason the function fails on...
  17. dbrb2

    EXIF thumbnails generation

    Hi, Previously when I have needed thumnails of images in an album I have created a thumbs direcotyr and filled it with resized images. I then realised I could use the embedded exif thumnails, and simplify things considerably. But if there is no thumbnail for whatever reason (what reasons might...
  18. dbrb2

    Problems with CSS in IE

    Hi, I wonder if anyone can help. I have been playing around with css for layout as well as basic sytles, and have a problem with IE... The first problem I had was that in all other browsers the margin of a content layer within my container layer started from the edge of the container, while in...
  19. dbrb2

    PPTP, GRE 47 passthrough on a Netgear router

    Hi... I've been having some issues with VPN connection to my work via my Netgear router. Their tech support people told me: " ...you are using the Nortel VPN client. The Nortel client uses a encapsulation with the PPTP protocol. Because of the encryption attached to the PPTP protocol, the...
  20. dbrb2

    Setting cursor position in a richtextbox

    Hi... I am writing to a richtextbox, and currently once I have finished entering data, to updfate it I set the contents to "" then append the new data with a loop. This causes an annoying flickering - ideally I would just set the cursor position to the start of the text box and let it...

Part and Inventory Search

Back
Top