reading from file Programming Software Development by hack_tom Hi have a file which consist of following thing begining of file ---------------------- my name some dfgfgfk jdksjdkls laladsl sdlsdls . . . kfdjkfdk some drt pro vhdl sdjls. ---------------------------------------------------------------- ddr.spw.df.df 0 0 0 0 0 ddr.ser.ddf.tp 1 2 3 4 1 ddr.pwq.pro.fgt.tp 1 3 4 5 7 eth.pro.iw 1 2 3 4 5 eth.3po… Re: reading from file Programming Software Development by KevinADC one way to do it: [CODE]my %table = ( ddr => 0, eth => 0 ); open (FH, "path/to/yourfile") or die "$!"; while(<FH>){ if(/^ddr\./) { my ($col5) = /\s(\d+)$/; $table{ddr}+=$col5; } elsif(/^eth\./){ my ($col5) = /\s(\d+)$/; $table{eth}+=$col5; } else {… how to retrieve some specific set of lines from a file and store it in a char buffer. Programming Software Development by metal_butterfly Plz tel me how to retrieve some specific set of lines from a file and store it in a char buffer.I am seperating each record by ":" [Code] 22:abc:4 hardware:cd:xyz:2 hardware:eth:abc:6 hardware:mouse:xyz:3 hardware:ram:xyz:1 23:cde:3 hardware:cd:xyz:2 hardware:eth:abc:6 hardware:ram:xyz:1 25:efg:2 hardware:cd:xyz:2 … Re: how to retrieve some specific set of lines from a file and store it in a char buffer. Programming Software Development by deathwishgenius [QUOTE=metal_butterfly;837552]Plz tel me how to retrieve some specific set of lines from a file and store it in a char buffer.I am seperating each record by ":" [Code] 22:abc:4 hardware:cd:xyz:2 hardware:eth:abc:6 hardware:mouse:xyz:3 hardware:ram:xyz:1 23:cde:3 hardware:cd:xyz:2 hardware:eth:abc:6 hardware:ram:xyz:1 25… GetProcAddress and function pointers Programming Software Development by GeekByChoiCe Im trying to inject my vb.net dll into the notepad process to hook one of its functions. Now it seems i face two problems.... GetProcAddress returns 0 (it also does if i call that function via c++ dll) Its might be Vista? anyway next problem is that i want to write the address of the new function into the memory on the procaddr (if i ever will get… dynamic memory allocation and structure Programming Software Development by red999 I am writing a program that reads from a file that contains a list of appointments and then put them into an dynamic array named day. I am having trouble figuring out what is exactly wrong with my program. It keeps on crashing before it finishes reading the file. I figured out that I could add the first day into my array, but I cannot add anymore … Questions about a pcap(pycapy) sniffer code Programming Software Development by nadiam Hello. I found this packet sniffer code that uses the pycap wrapper. Initially, its for live capture but I've changed it to read a .pcap file instead and im trying to understand it but some parts of it i can't i comprehend. could someone explain them to me please? the full code is: import socket from struct import pack, unpack … Expected identifier, string or number Programming Web Development by greenglow I'm only having this problem in IE 8 and 7-Firefox is fine. I get the following error : Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0) Timestamp: Sat,… Code works outside of function but not inside Programming Software Development by shaqywacky7 I made a program to search something on google and return how many results it has and it works perfectly as long as the sending code is not inside a function. If I put it in a function the reply from google isn't seen as a http packet(even though it has a source port of 80), it is seen as a stream of tcp. Normally wireshark would just turn the … Reading identical node names in XSL Programming Software Development by younk Hi Im new to XSL. Im trying to read a XML file that has identical node names with different values. [CODE] <mondial> <country car_code="MK" capital="cty-cid-cia-Macedonia-Skopje"> <name>Macedonia</name> <indep_date>1991-09-17</indep_date> <government>emerging … Warning: mysql_pconnect() [function.mysql-pconnect]: Programming Web Development by ethar I have uploaded the database file and the error i get is Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ethar'@'localhost' (using password: YES) in /home/eth/public_html/Connections/taking.php on line 9 Fatal error: Access denied for user 'etha'@'localhost' (using password: YES) in /home/eth/public_html/Connections/… jQuery dialog box odd behaviour. Programming Software Development by NoIdea.Net Hello people! I have a strange problem in the code below. It runs fine with the new value being use/displayed but on all the following executions it will onbly use the values from the first run whatever you type in. Any ideas? Thanks <script type="text/javascript"> function showEthnicityDialog(eth_desc, eth_code, … really bad cable connection problems Hardware and Software Networking by wythered Hola, im having hella problem with my connection... my cable comany is "millenium Digital Media" problem is, i lose connection to the net often, sometimes a few times in less then 2 hours, sometimes a few times in 8 hours, its random.. i'm usually using a router "linksys wrt54g" my modem is an aeris modem, when my connection … Cisco switches+Router and Win2k server Hardware and Software Networking by timolthy Hey, I have 2912 catalyst with simple setting total 3 vlan (192.168.1.x, 2.x, and 3.x) - the default ip is 192.168.1.10. port 1,2,3,4 Vlan 1, Port 5,6,7,8- Vlan 2 port 9,10,11,12 - vlan3 I have win2k server with 3 scopes 192.168.1.x, 2.x, and 3.x. At this moment connect to port 1 (I dont know if I have to set it to trunk port - ISL or… ip conflict problem!?!? Hardware and Software Networking by djdiehl i have a linksys ethernet switch i have a cable modem pluged into the switch then from the switch i have 2 ethernet cords comming out 1 to this computer im on right now and another to my ps2 say im on my computer and i wanna get on my ps2 at the same time i try to do it and i get a little yellow triangle on my toolbar with a "!" in it. … Help me Hardware and Software Networking by arendra_78 anybody who knows better that if i used two eth at one pc .it will work like a router.pls explain step by step.thaks a lot who will tell project problem Programming Software Development by dil.om :) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship among them.tht i wana specify eth relation name. plzz,anyone can help … Project Problem Programming Software Development by dil.om :) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship among them.tht i wana specify eth relation name. plzz,anyone can help … help in project Programming Software Development by dil.om :) hello frnds i wana ask one question about my project. i m dng the project of family tree. in wch many relationships r considered.if one person make his own family tree thn another parson in his family can make the relation ship wth him.and tht will specify the relatinship among them.tht i wana specify eth relation name. plzz,anyone can help … Python GUI to configure Cisco device Programming Software Development by bsdixon21222 Hello All, I havn't been programming with python too long, but decided the best way to learn it would be to dive right in. Right now I have been taking snippets here and there along with modifying some code in between to create some programs. The one I am currently doing requires me to ssh to a raritan, choose one of the cisco devices ( a router… Network Card Issue can't get enable it Ubuntu Efty edge Hardware and Software Linux and Unix by hollystyles …'t find out where I was supposed to put: alias eth0 natsemi but still no joy. I've read thousands of… I can use Mozilla Firefox but not AIM. Hardware and Software Networking by _ladyjane I own a Sony Vaio VGN-N150G, and I have had this problem for about a week now. I can use Mozilla Firefox without a problem, but I cannot use any messaging services such as AIM. When I try configuring, it says it was unable to connect. When I try using Windows Live Messenger, it says that there is something wrong with my default gateway. In other … ARP keep sending wrong IP address Programming Software Development by triadR hi, i've a code shown like this.. [CODE='c'] #include <stdlib.h> #include <stdio.h> #include <winsock2.h> #include <pcap.h> #include <remote-ext.h> #define ETH_IP 0x0800 // type: IP #define ETH_ARP 0x0806 // type: ARP #define ETH_ICMP 0x0800 // type: ICMP = IP #define ARP_HARDWARE 0x0001 // type for 802.3 … connected to wireless network but cant access websites Hardware and Software Networking by massa_10 hi ive recently had trouble accessing the internet on my laptop through my wireless network connection that has previously worked fine. here is what i get from command prompt when i type in ipconfig/all. any help would be greatly appreciated. thanks. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents… Bridging a Thomson ST516? Hardware and Software Networking by Vesperto Greetings. When i tried setting up dyndns and entered my new dynamic domain in my browser's address bar i came across my router's configuration, blank password and all. Here's a silly question: did it show up because i was in the local network or would it show up to the world anyway? Silly question aside, the main post. My ISP provided a Thomson… Connectivity Problem Hardware and Software Networking by karlakai Hello I have the same problem as [url]http://www.daniweb.com/forums/post910372.html#post910372[/url] I have connected all cables correctly and it "pings". Only it wont open internet via wireless or lan. Yet the modem works fine without the router The router is a wgr614 v 6 by netgear. I have noticed that the internet says &… RSA Encryption, S.O.S. Emergency Distress Signal Programming Software Development by sofiastrange Hello everyone! I am trying to write a program in C for the RSA encryption. I have come this far and can't seem to go further. I don't understand why it is not giving me the desired results. My program style may be a bit naive i am just starting off with C. but please i do need some help. Any nip and tucking or helpful changes? I have tried to… Cannot send Confirmation link to your e-mail address Programming Web Development by ryan311 hi all :), i always have a problem in giving a message to the one who register a confirmation or activation link to be enable to use his account. here's my code register.php [CODE]<form name="form1" method="post" action="adduser.php"> <table width="121%" border="0" … segmentation fault Programming Software Development by watery87 Hi guys, i compiled a program but i have this vague error message that occured. Searching through google.com states that it might be due to many problems such as invalid pointers, etc, etc. Im a fairly new person to C prog, so i would like to seek your advise on this. Can you guys tell me whats wrong with the code?? Main prog [code] #include… MySQL reverse engineering Programming Web Development by HunainHafeez i tried reverse engineering option in Mysql workbend 5.1, 1stly i imprted DB's script and then created it, Its done :) but when i try to create ERD via Reverse Engineering option , then it doesn't show relations ships btw tbl, it only brings table to front ! why ? even it is working in php app, -- MySQL dump 10.13 Distrib 5.5.9, for Win32…