- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
69 Posted Topics
Re: 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 | |
| |
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? | |
Any code to take 2 ascii chars and put into 1 byte? 0x16 = ? byte | |
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. | |
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? | |
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 … | |
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 … | |
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 */ \ … | |
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?? | |
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? | |
Re: 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; … | |
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, … | |
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 … | |
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 $_; … | |
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 … | |
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. | |
Re: get info on .bash_logout itll run when the user logs out | |
i have a udp server thats going to send and mp3 file. when does the client udp know when the udpserver is done sending? | |
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); | |
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 … | |
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 … | |
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){ … | |
How would you program if you didnt have any compilers on an OS? | |
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> … | |
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? | |
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 … | |
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; } … | |
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 … | |
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. | |
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 … | |
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 … | |
Re: you need a file handle for the file. open my $FILE, $filename or die "File opening error\n"; | |
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. | |
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 … ![]() | |
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! | |
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 | |
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; } … | |
Re: for(int i=0;i<4;i++){ for(int j=0;j<=i;j++){ System.out.print("*"); } System.out.println(); } | |
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 … | |
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. | |
Do you think a hash table is a good data structure for implementing a priority queue? Any ideas? | |
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 … | |
How can I convert an unsigned int to a signed int using only bitwise operators? | |
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. | |
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] | |
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 … | |
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? | |
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. ![]() | |
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 |
The End.