1,446 Topics

Member Avatar for
Member Avatar for snehil_khanor

hi, php have thi svery nice function strtoime() int strtotime ( string $time [, int $now ] ) The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 …

Member Avatar for Sergey.Smirnov
0
773
Member Avatar for 8thMonUm£nt

New to the site, thought it would be good to open up a source to some tech gurus so I joined up. I'm in the process of becoming certified in a few tech fields such as A+, Cisco, Unix, a few other interests as well. I'm also in the process …

Member Avatar for WASDted
0
54
Member Avatar for bleedi

EDIT: I found the solution already. I had to malloc() memory for rec_msg. :) Hi, I've got a little problem with my (unix) C program. I'm trying to make a HTTP request to fetch a page from a site. I can resolve the IP, make a socket, connect and send …

0
507
Member Avatar for Violet_82

Hi guys, I am having a nightmare with a small website I have built. Here's the visual_impairments.htm page: [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title> Visual impairments </title> <link rel="stylesheet" type="text/css" href="style.css" > </head> <body> <div class="banner"> <h1>IT and Disability</h1> </div> <!-- BREADCRUMB TRAIL STARTS HERE, EVERY …

Member Avatar for Violet_82
0
90
Member Avatar for Red20XX

Hi everyone, I am doing a C++ project for school in the UNIX lab that requires inheritance. My main program is calculating linear regression for some plotted points and I'm inheriting a linear system solver from another program. The linear system solver is suppose to print the solved values to …

Member Avatar for Red20XX
0
351
Member Avatar for keeda

Hi All, I want to transfer a html file generated by my VB application to my account in Unix Server, please let me know if this is possible and if yes, how can I achieve this? Thanks in advance!

Member Avatar for ANXIOUS117
0
135
Member Avatar for k2k

sounds it should be simple but I wasn't able to google this out. basically i want to do something like [code] variable = `data` //from unix but I now need it for windows bat script [/code] [code] //windows set today = "date /t" //output is what i need, but wrong …

0
59
Member Avatar for benqus

Hello everybody, I need advices about software development. I'm not an all-knowing-programmer so I have a few questions about it: - My application's GUI is getting ready to be developed. I want it primarily to run on Windows, Linux/Unix and Mac also. But I also need it to be looking …

Member Avatar for benqus
0
220
Member Avatar for DallasFan3

Ok, Iam now doing my last assignment for my class. Thank god. lol Well I have to make a problem that will write an interactive Java program that allows the user to play the game of Hangman with words that are given to me from a file. Here is what …

Member Avatar for jon.kiparsky
0
618
Member Avatar for sciprog1

Hello, On the UNIX system that I am current working, to open a file in the pico editor ,I need to do the following: [CODE]>./pico filename.c [/CODE] Is there a script/command that I can execute which will remove the dot/slash and change that to: [CODE]> pico filename.c [/CODE] Thank you!

Member Avatar for sciprog1
0
77
Member Avatar for westony

Hi there guys, how the hell i am able to create a UNIX window, I mean i am pissed off from that console, and how can I use GTK ? Thanks in advance!

Member Avatar for westony
0
103
Member Avatar for blacknred

I'm trying to parse xml file and convert all the unix timestamps in it to datetime... [QUOTE]<Sample> <TimeStamp>1291052077</TimeStamp> blah blah blah blah </Sample> <Sample> <TimeStamp>1291052077</TimeStamp> blah blah blah blah </Sample> </Content>[/QUOTE] [CODE]import fileinput file = raw_input("Enter file: ") file = open(file, "wb+") for line in fileinput.FileInput(file,inplace=1): if "TimeStamp" in line: …

Member Avatar for richieking
0
187
Member Avatar for wu_weidong

Hi all, I am just learning DMA, and am supposed to write 2 functions utilizing the offset technique, such that a 2-D array starts and ends the index of each dimension as the user specifies. matrix(): creates a 2D array of float type numbers, indexing from -n to n for …

Member Avatar for erroldo
0
242
Member Avatar for raul8
Member Avatar for rch1231
0
64
Member Avatar for kuchi

We have a module called "cart.items" and imported this in another PY code to use classes. I did import classed under cart.items like ("from cart.ltems import Items") and used Items class in my code. When I run my PY code in UNIX box, I get that problem. What I ve …

Member Avatar for richieking
0
565
Member Avatar for yongj

Hello, forum :) Does anyone know a c++ code that performs the same actions as a "tee" command does in linux? Basically what the tee command does is read an input from an input stream and directs it to two places: 1) Displays the input stream on the screen 2) …

Member Avatar for yongj
0
1K
Member Avatar for babbu

Hi, I am trying to run sql command on unix. this results in the following error "sqlplus: not found" Here is the unix part [CODE] sqlplus id/pass@some_server.com<<eof select sysdate from dual; exit eof [/CODE] The database is on a remote server and. Do I need to enter all the tns …

0
97
Member Avatar for foobar8

Hello, I have a program that is like a ftp server - it sends and receives files over unix sockets. It works fine when I transfer text files, but as soon as I want to receive binary files, it's not working properly. Files are transferred correctly, I can verify that …

Member Avatar for mrropi
0
946
Member Avatar for callyvan

I am hurting here, been tasked with trying to add a bunch of new content to this script, but since it was written 10 years ago and continuously patched up badly since then, I have no clue what does what anymore..can someone comment in text that will at least explain …

Member Avatar for d5e5
0
345
Member Avatar for medamineb

hi everyone, i'm trying to do a program in c, GCC UNIX and i have this error: warning: passing argument 2 of `write` makes pointer from integer without a cast i try to use TUBE, communication between process and i use `write(fd[1],2,1);` but it gives this error please i nead …

Member Avatar for medamineb
0
1K
Member Avatar for ana_1234

I have to: Run the grades program twice, so that it accepts the data in the files t1 and t2 as input for the two respective runs. I ran the grades program, it asked me to enter digits, I have the t1 and t2 files, how do I make the …

Member Avatar for sree_ec
0
161
Member Avatar for gikonyo

hi there i want to upload an image into a webpage i have the following code which is not working .where is the problem or who have a better code. <?php //define a maxim size for the uploaded images in Kb define ("MAX_SIZE","100"); //This function reads the extension of the …

Member Avatar for pssubash
0
130
Member Avatar for TheCollegeGuy

Hello everybody, I am trying to get four operating systems running on my Laptop: Windows 7, Fedora, FreeBSD, OpenSolaris. I am have them on my hard-disk( because I can see them when I boot my computer from GParted CD), but I am not able to boot them. At any point …

0
121
Member Avatar for apanimesh061

[CODE]function forcd { len=`wc -c /home/mint/AP/file2.txt | cut -c1-2` cutcmd=`cut -c4-$len /home/mint/AP/file.txt` cd $cutcmd } newvar=`pwd` clear echo "root"$newvar">" read cmd until [ "$cmd" == "exit" ]; do echo $cmd > /home/mint/AP/file.txt cutcmd2=`cut -c1-3 /home/mint/AP/file.txt` if [ "$cmd" == "dir" ]; then ls -l elif [ "$cmd" == "dir /p" …

0
47
Member Avatar for nikc121

Ive been playing around with this all day, I think my path is wrong, I keep getting [Parse error: parse error, unexpected ';' in /class/ct386b/##/www/cgi-bin/french5.php on line 73] Here are how my files are set up and I am linking to my college unix system thru my signon ~ct386## <secret> …

Member Avatar for vibhaJ
0
143
Member Avatar for pikpik

Hi, As part of porting a (mostly C++) library[1] to a "new" operating system[2], I'm trying to link the library's semaphore class to the platform's semaphore implementation. The problem is that the library assumes that the semaphore implementation will be a modern POSIX one[3] but the operating system's semaphores are …

0
170
Member Avatar for akhil9

Hi when i view the pages that i built in firefox it shows good, where as in IE the menu bar floats..... so whats the problem with this...are there any hacks that i need to fix it....i used dreamweaver cs4 sprymenubar.... this is the CSS code.... @charset "UTF-8"; /* SpryMenuBarHorizontal.css …

Member Avatar for ko ko
0
227
Member Avatar for lotrsimp12345

Having problems with executing jobs using fork. The code is supposed to create one job and execute one job and repeat this multiple times. We are only supposed to use usleep in the jobgeneration() function. We are having trouble sleeping and executing ctrl-c in the execute job function. [CODE] #include …

Member Avatar for lotrsimp12345
0
510
Member Avatar for nk28

Hey all; I need to know the memory layout in detail of a c program. Since I have been unable to find out in google the exact things that I want to know I am going to write them here. Please correct whichever is wrong. Thanxxx Assuming a stack going …

Member Avatar for gerard4143
0
192
Member Avatar for MoreBloodWine

Would someone please try & modify this query in a way that it shows the count for how many users have registered for the current day ? So like right now it should display a count of 2 and then come midnight it would show 0 and then incrementally go …

Member Avatar for MoreBloodWine
0
134
Member Avatar for Violet_82

Hi there, I have a question about header files/source files in Visual C++ (I use visual c++ 2005 express). I used to put all my code in one single .cpp file but now I have a test program (done by my tutor at Uni) which has 3 files: 2 .cpp …

Member Avatar for Violet_82
0
433
Member Avatar for hassancool

Hi Guys, I am planning to learn Linux.... I have heard from Many RHCE's that if you will learn Redhat then you will know every Linux Distribution.... Is it true??? My 2nd Question.... I want to practice the Command Line in Linux...You can say want to prepare for RHCT... So …

Member Avatar for hassancool
0
261
Member Avatar for novice20
Member Avatar for vaibhav1983
0
72
Member Avatar for ryan-t

Hi, I've been trying to get my head around timezones and how to allow users to set their zone and update the times accordingly. Basically, I have a unix timestamp in the database and i want to be able to update it to a users timezone which is also set …

Member Avatar for ryan-t
0
132
Member Avatar for ponens

Hi I'm new to Java, I'm trying to convert standard time to Unix time so I can use that data in Max/MSP (to modulate a tone) eventually I will allow this program to take a text file of ordinary times and write to a text file the converted Unix times …

Member Avatar for di2daer
0
130
Member Avatar for ItecKid

Hello, I am trying to read through a UNIX directory in C and write all the filenames to an array. However, the array is not being populated with any value. Here is a snippet of relevant code: [code=c] char **files = {NULL}; struct stat fileinfo; int count = 0; int …

Member Avatar for nezachem
0
109
Member Avatar for k2k

i am trying to do something like [code] set var= ping google.com | find "Received = 4" if [var has something] then echo "ping well" [/code] something like that. in unix i can use the ` ` to execute shell command and set the returned value to the variable... can …

0
67
Member Avatar for kangkan_14

can anyone please tell me what is wrong with dis code.....i am getting a segmentation fault even though it has been compiled successfully(in a unix system): [CODE]#include<stdio.h> int low,high,mid; void msort(int a[],int low,int high); void merge(int a[],int low,int high,int mid); int main() { int a[10]; int count; for(count=0;count<10;count++) { printf("Enter …

Member Avatar for N1GHTS
0
177
Member Avatar for avataralien

I got a HTML file. I wish to parse the content I need to a text file. How can I make use of The unix utility application that strips the HTML markup tags from the file’s content leaving just content text? Thanks for the advise! [B][U]Partial HTML file code[/U][/B] [CODE]<thead> …

Member Avatar for shibblez
0
569
Member Avatar for Dartz654

How do I go about do something where like every 12 hours, the webpage will add 5 to a row in Mysql? Do i have to use like unix commands or something? :0

Member Avatar for terabyte
0
86
Member Avatar for Khodz

So I'm working on a database-type program for the Java course that i'm doing and i seem to have run into a bit of a roadblock. This class compiles and runs alright but where i have a problem with it is when i try to amend the text file using …

Member Avatar for Khodz
0
193
Member Avatar for Violet_82

Hi guys, quick question. Does the structure [CODE] try { } catch { exit(0); } [/CODE] require the preprocessor directive [CODE]#include<cstdlib>[/CODE] to be declared at the beginning of the program? The thing is if I don't declare it the visual c++ compiler works fine but if I try in Unix …

Member Avatar for thelamb
0
164
Member Avatar for Chalandria

Again I have been given an assignment and have done it completely wrong. Please understand that I am completely new to programing and made the mistake of entering an accelerated class. I'm not looking for an A, I just want to pass and seek out help as often as I …

Member Avatar for Chalandria
0
354
Member Avatar for joshianurag18

hi all i need urgent help.Thanks in advance. i have java code on windows and some files in unix server. I just want to read that file from unix server and apply my business logic. I have approch for that like first using FTP i will take a copy of …

Member Avatar for kramerd
0
136
Member Avatar for sammiepooh

Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative task such as checking file systems periodically. With it, I had to take each line and describe in my own terms …

0
152
Member Avatar for eddster10

Ok wild stab in the dark as i am new to this. I am trying to sutomate an FTP from UNIX box to another UNIX box. Further to aumating an FTP, the file needs to be renamed and a small amount of editing which is the same editing each time. …

Member Avatar for martin8484
0
95
Member Avatar for Iseekknowledge1

hi, i've installed Ubuntu Linux Horay hedghog edition on my computer. it runs perfictally except the sound doesn't work. i've looked all over the forums and found some stuff but none of it worked. anyway, heres my delema, i can't get the sound driver to work, i've tryed ALSA and …

Member Avatar for kamy cool
0
393
Member Avatar for Mahaa

Hi all, I am pretty new to this PERL programming. I have heard that anything could be done with PERL's magic... So out of my own interest, I have started learning perl language, to ease my project works(sort of Automation stuffs). I have PERL V5.10.1 installed in my PC,and am …

Member Avatar for richieking
0
2K
Member Avatar for veereshcta

Hi, Here I have my code which exactly functions as nl command in unix. How can I replace my buffer using malloc which reads unlimited line length and where as my code reads 100 char per line. [code] #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #define MAX_LINE_LENGTH 100 //Prototypes: …

Member Avatar for Ancient Dragon
0
118
Member Avatar for mordicaii

I'm not exactly new to Unix, but this has been irking me since I started. If I use sudo, I can get root powers for one command, however, it asks for my password, not root's. Why is this? This seems to be a very large oversight, or was it intentional?

Member Avatar for Stefano Mtangoo
0
97

The End.