Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~10K People Reached
Favorite Tags

69 Posted Topics

Member Avatar for morfious90

What do You want..Dont take a job because of money..take a job that you want, and then its easier to create new ideas and be successful for yourself and others

Member Avatar for mailman_2097
0
1K
Member Avatar for coding101
Member Avatar for Maritimo
0
109
Member Avatar for coding101

I Have an NSButton and Im trying to get it to display the barber stripes sideways when the button is pressed. I can't redraw the NSRect, and was wondering if you had any clues on implementation?

0
143
Member Avatar for coding101
Member Avatar for Hiroshe
0
124
Member Avatar for coding101

Is it possible to parse an ethernet frame to extract an ssl server certificate to determine the common name issued to?...Im not too familair with ssl records.

0
133
Member Avatar for coding101

Not hot on sed.. I have the string <Report name="05/14/14 05:05:53 AM - Report"> in a file. I need to change the date and time part to the current date and time.. any sed regex to match the date format and timestamp?

Member Avatar for L7Sqr
0
152
Member Avatar for coding101

I need to create a scenario where all 65535 ports are open. I currently can open 1021 socket desciptors and bind to 1021 ports. If i spawn ~ 70 processes todo the same, i can achieve the goal, but performance is slow. I'm not interested in packet sniffing. How can …

0
75
Member Avatar for coding101

I need help reading my arp replies. When writing requests to the socket, I cant get replies related to what I sent..Ideas #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <netdb.h> #include <sys/socket.h> #include <arpa/inet.h> #include <linux/if_ether.h> #define ETH_HW_ADDR_LEN 6 #define IP_ADDR_LEN 4 #define ARP_FRAME_TYPE 0x0806 #define …

0
130
Member Avatar for coding101

Need help dhcpdiscovery message...using raw sockets..dont want dhcp headers or libraries..do it myself anyway im getting error on sending my packet..any USEFUL help? #include <stdio.h> #include <stdlib.h> #include <netdb.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <sys/types.h> #include <string.h> #define DHCP_UDP_OVERHEAD (14 + /* Ethernet header */ \ …

0
117
Member Avatar for coding101

trying to send email from nc nc smtp.gmail.com 587 HELO there 250 mx.google.com at your service STARTTLS 220 2.0.0 Ready to start TLS MAIL FROM:<junk@example.com> connection dies.. whats wrong with the protocol im using??

Member Avatar for JeoSaurus
0
111
Member Avatar for coding101

how do you do unbuffered io in c? I need to write each charachter typed to a socket, not waiting for "\n" newline i.e. enter key any help?

Member Avatar for coding101
0
82
Member Avatar for cacofonix

consider this fragment: Youll see that the $ttyport is not a global variable, each fork call gets its own copy, so its gonna loop more than expected. #!/usr/bin/perl use POSIX; for($i = 0; $i < 10; $i++){ $pid = fork(); if($pid){ $ppid = getppid(); print "$ppid\n" unless $ppid == 1; …

Member Avatar for coding101
0
147
Member Avatar for coding101

Im new to threads, and would like to get experience so I am trying to build a chat server. The idea is to have one thread read from the client socket, while another thread writes to the client socket. (like AIM) I cannot get them to execeute concurrently; Need help, …

Member Avatar for james6754
0
195
Member Avatar for coding101

I would like to send a dhcp discovery packet progammatically in C. I know C programming, but not network programming. I understand I need to set the dest. ip "255.255.255.255" and src "0.0.0.0". Then send a DHCPDISCOVERY UDP Packet to get a list of available wireless dhcp servers. How can …

Member Avatar for deceptikon
0
146
Member Avatar for coding101

Im trying to learn perl socket without the OO approach. My get request isnt working, im not sure why. Take a look? #!/usr/bin/perl use IO; use Socket; socket(SOCKFD,AF_INET,SOCK_STREAM,getprotobyname("tcp")) || die "Socket Error\n"; $host = gethostbyname("www.google.com"); $addr = sockaddr_in(80,$host); connect(SOCKFD,$addr) || die "Connect Error\n"; print SOCKFD "GET /"; while(<SOCKFD>){ print $_; …

Member Avatar for Taywin
0
170
Member Avatar for coding101

Im starting kernel programming and need info on the read and writing function to a /proc file. When a program writes to my /proc module, I need to store the contents. When I read the contents of the /proc file, it only return the most recent entry, and not the …

Member Avatar for Ancient Dragon
0
296
Member Avatar for coding101

Im trying to use make to build a driver..I'm new to the makefile protocol and I keep getting this error What does it mean? /lib/modules/3.3.4-5.fc17.x86_64/build: No such file or directory.

Member Avatar for rubberman
0
155
Member Avatar for lewashby
Member Avatar for coding101
0
139
Member Avatar for coding101

i have a udp server thats going to send and mp3 file. when does the client udp know when the udpserver is done sending?

Member Avatar for JamesCherrill
0
111
Member Avatar for coding101

Im getting double free error's from this? Why? 2d array standard implementation. any clues? int **m = malloc(5 * sizeof(int)); int i,j; for(i = 0; i < 5; i++) m[i] = malloc(5 * sizeof(int)); for(i = 0; i< 5; i++) free(m[i]); free(m);

Member Avatar for deceptikon
0
113
Member Avatar for coding101

I need help creating a rule to do the following: Forward my ftp traffic to my virtual machine I have eth0 as the main IP, and virb0 as a bridge to the vm at a private ip. Any idea how to forward ftp traffic to my servers address to the …

Member Avatar for Z28James
0
253
Member Avatar for coding101

What iptables chain would give me drop all request except those from the local subnet so iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT would accept im looking for iptables -A INPUT ! -s 192.168.1.0/24 -j DROP equivalent ?? What Im not looking for is DROP ALL Connections, then Accept localsubnet …

Member Avatar for slacke
0
163
Member Avatar for coding101

im trying to build my own LL, not seeming to work? My insert method is wrong, and cant fiugre it out, any ideas? public class List { private int size; private Node root; private Node current; public List(){ size = 0; } public void insert(int a){ size++; if(root == null){ …

Member Avatar for NormR1
0
101
Member Avatar for coding101
Member Avatar for TrustyTony
0
102
Member Avatar for coding101

im writing a chat server in c and am need help. my server can write to a socket, the client can read from the socket. How do i have the client write to the socket and have the server read from the client socket? server.c [CODE] #include <stdio.h> #include <unistd.h> …

Member Avatar for histrungalot
0
217
Member Avatar for coding101

When my os starts and i log in, the Network Manager displays a list of available networks. How can I code a C program to get a list of avaialble networks. Arp requests? What is the protocol?

Member Avatar for jbennet
0
49
Member Avatar for coding101

Where are the function bodies to functions like socket,bind,accept, etc??... Using the c socket network programming for unix based systems, we use the api, but where are the function bodies to these functions. Im doing network programming, and I fill in the socket functions, bind, accept, write, read, etc, but …

Member Avatar for savoie
0
161
Member Avatar for coding101

I am new to network programming, and trying to read a response from a servers webpage. I can connect, but cannot get the pages source. Heres what I have [CODE] #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> int main(int argc,char **args){ if(argc < 2){ printf("2 args\n"); return 1; } …

Member Avatar for savoie
0
122
Member Avatar for coding101

How do strings work? In C we must declare the size of a char array to represent a "string". But in java we do not allocate memory for the size of a string. So how does the string work? Is there a pre deterimed size assigned to strings from the …

Member Avatar for dheaven
0
238
Member Avatar for coding101

How would I hide keystokes when I use the keyboard? When you use scanf fgets and gets, they show they print the keys to the screen.. I want to hide them.

Member Avatar for N1GHTS
0
99
Member Avatar for coding101

The 'who' command lists the "console" associated with the user. Im trying to find all open "tty's or whatever that users' device console is called". The only open source for the tty command i found, which was written by apple, was not followable. Question is is their a function call …

Member Avatar for TrustyTony
0
45
Member Avatar for coding101

Im having trouble connecting my sockets. On one computer I have a java server socket running and on the other computer i have a c socket client trying to get the message from the other computers server. But I cant get them to connect. Do you see an error with …

Member Avatar for nezachem
0
149
Member Avatar for crazyIT

you need a file handle for the file. open my $FILE, $filename or die "File opening error\n";

Member Avatar for Dandello
0
159
Member Avatar for coding101

When you include a header file like sys/stat.h you can use the functions like stat. But where is the function body? I didnt write the body, yet it still does something.

Member Avatar for Narue
0
85
Member Avatar for coding101

Im rewriting an "ls" command to show my directories in one color and files in another for easy notice..currently my stat calls are failing, and I dont know why? [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #define TRUE 1 #define FALSE 0 …

Member Avatar for Mouche
0
131
Member Avatar for coding101

Im learning a new language , perl, and am wondering what are some useful perl systems admin scripts? What are some scripts sys admins write to automate tasks etc.. any ideas, id like to learn the usefulness other than perls ability for "quick and dirty" programs. thanks!

0
52
Member Avatar for coding101

Is there some sort of script I can write that logs usernames every time someone (other than owner) "cd's into my pub directory"? any ideas? thanks

Member Avatar for thekashyap
0
156
Member Avatar for coding101

Im having trouble implementing my own ordered linked list from scratch. [CODE] public class LinkedList{ Node head,tail; public LinkedList(){ head=tail=null; } public LinkedList(Node node){ this.head=new Node(node.num); this.tail=new Node(node.num); } public static void main(String[] args){ LinkedList list=new LinkedList(); list.insert(new Node(7)); list.insert(new Node(3)); } public void insert(Node node){ if(head==null){ head=node; tail=node; } …

Member Avatar for NormR1
0
98
Member Avatar for olsane

for(int i=0;i<4;i++){ for(int j=0;j<=i;j++){ System.out.print("*"); } System.out.println(); }

Member Avatar for NormR1
0
92
Member Avatar for coding101

Hello, so my question is this..lets say you have a file like this. Computer Science 01 //course number 30 //number of students that can enroll 4 //number of students currently enrolled Math 02 //course number 20 //number of students that can enroll 12 //number of students currently enrolled And i …

Member Avatar for NormR1
0
130
Member Avatar for coding101

I have a directory with a bunch of stuff in it. when you say rm -r "the directory" you have to say yes,yes,yes,......20 times. Is there a script for just having the answer to all "are you sure you want to delete ...?" be yes? any scripting help, im new.

Member Avatar for masijade
0
216
Member Avatar for coding101

Do you think a hash table is a good data structure for implementing a priority queue? Any ideas?

Member Avatar for Lamthuy
0
142
Member Avatar for coding101

Can someone explain what is happening here. I trying to understand assembly, and there is not much online. [CODE] 8048d09: 55 push %ebp 8048d0a: 89 e5 mov %esp,%ebp 8048d0c: 83 ec 08 sub $0x8,%esp 8048d0f: c7 44 24 04 6c 98 04 movl $0x804986c,0x4(%esp) 8048d16: 08 8048d17: 8b 45 08 …

Member Avatar for Ancient Dragon
0
93
Member Avatar for coding101

How can I convert an unsigned int to a signed int using only bitwise operators?

Member Avatar for WaltP
0
51
Member Avatar for coding101

Anyone have an idea how see if a 32 bit integer has an even or odd number of 1 bits using ONLY bitwise operations? ! ~ & ^ | + << >> thnx.

Member Avatar for Narue
0
91
Member Avatar for coding101

Can someone help me print my BST in level order. Heres what i got so far... [CODE] Queue<BinaryNode<Type>> f=null; while(node.element!=null){ System.out.println(node.element); if(node.left!=null){ f.offer(node.left); } if(node.right!=null){ f.offer(node.right); } if(!f.isEmpty()){ node=f.remove(); } else{ node.element=null; } } [/CODE]

0
65
Member Avatar for coding101

Every time i read a post on how to compile in linux i still get errors. I goto the directory where the .java files are. then type "javac *java" to compile to java files. then i get errors "cannot find symbols" can someone give step by step instructions on compiling …

Member Avatar for prem2
0
114
Member Avatar for coding101

I need to read a text file and change each character into morse code, then send it to another file. is there an easier way than having 26 different arrays associated to a different letter?

Member Avatar for Adak
0
90
Member Avatar for coding101

I have a report class that stores information. A report "is a Document", so I want the report class extend document. But how do i store subclasses in the the Document class. I cant super all the info from the report class creates from the constructor.

Member Avatar for ztini
0
81
Member Avatar for coding101

I have progm that with a class that has the main method, and that method takes arguments which must be typed in the command line...how do i compile and run the class from the terminal using mac cmds what is the syntax? thnx

Member Avatar for jon.kiparsky
0
57

The End.