Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
58% Quality Score
Upvotes Received
8
Posts with Upvotes
7
Upvoting Members
4
Downvotes Received
5
Posts with Downvotes
3
Downvoting Members
5
3 Commented Posts
0 Endorsements
Ranked #2K
~11.7K People Reached
Favorite Tags

19 Posted Topics

Member Avatar for khess

When an average user demands to run Windows app on Linux, what he/she actually conveys is "I'm not satisfied with what comes with Linux as alternative". OOo is regarded like "MS Office 10 years ago". There're no equivalents of Adobe (GIMP? no, thanks) or Autocad tools. Even Nokia does not …

Member Avatar for subhankar_2
3
2K
Member Avatar for kanthmca3

First off, if you intend to perform text processing using shell tools you must learn to convert your data into pure text. MS Word is no-no. Also, you must post the data you want to process only, not something annotated with your comments at top or bottom.

Member Avatar for thekashyap
0
92
Member Avatar for mojo1979

[QUOTE=cfajohnson;1420976][INDENT][CODE] dir=/path/to/1TB/drive IFS=$(printf "\n") zip mdf $(find "$dir" -name '*.mdf') find "$dir" -name '*.mdf' -exec rm {} + [/CODE][/INDENT][/QUOTE] Why [ICODE]IFS=$(printf "\n")[/ICODE] instead of just [ICODE]IFS=$'\n'[/ICODE] ? To avoid bash-only feature?

Member Avatar for cfajohnson
0
105
Member Avatar for dipanjanpal

[QUOTE]when I am compiling it i am getting no errors and no warnings. but in registry I can't find the value[/QUOTE] It doesn't matter if it compiles OK or not. Your problem is at runtime. You [B]must[/B] check the return codes of the library functions you call, because C does …

Member Avatar for ckoy
0
231
Member Avatar for ultimatebuster

If you google, you'll find some examples based on registry editing. But I [I]think[/I] that is not formally supported by MS, it's more like a hack. The formal way is to write Shell extension (MS dev docs refer to Win Explorer as [B]Shell[/B]). You need to implement several COM interfaces …

Member Avatar for ckoy
0
114
Member Avatar for massivefermion

That's mostly about linking with libraries written in different languages (there's virtually no program that does not link with some library). As long as a dll conforms to the calling convention of the main program's language it can be linked and does not matter with which language it was [U]originally[/U] …

Member Avatar for rbrt13
0
396
Member Avatar for nutrion

[QUOTE=nutrion;1421997]All, Any ideas? I'm seeing that net use is dumping all of its output into the list, but I can't split it by anything since it only has 1 element (or at least I don't think I can). [/QUOTE] add a split() method as follows: [CODE]servers = subprocess.Popen(["net","use"], stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].split("\n")[/CODE] …

Member Avatar for ckoy
0
299
Member Avatar for m1n1m3

[QUOTE=m1n1m3;1422084]Hi, i have 1 bit field [/QUOTE] No, you have 3 bit fields, packed into a word. [QUOTE]And pointer to a bit field.[/QUOTE] Bit fields don't have address, so you cannot have a pointer to them. [QUOTE][B]Question[/B] how to use a memmove on bit field. (does not work at all) …

Member Avatar for Narue
0
163
Member Avatar for didi00

What is meant by "channels"? I remember shared memory, pipe, message queue, domain sockets as IPC mechanisms on Posix, but not channels.

Member Avatar for didi00
0
147
Member Avatar for terabyte

C is old. It does not change often. Once you learn the fundamentals, picking up what new standard brings is a few days' work. I recommend K&R to learn C. That's all you need. After that, you select the libraries (and functions to call within) to develop software. That's it. …

Member Avatar for Trentacle
0
182
Member Avatar for ChEeZeBaLL

Oh dude :icon_frown: There's [U]no[/U] [ICODE]year[4][/ICODE], you're corrupting memory. Also [ICODE]fseek(fp, 0, SEEK_CUR);[/ICODE] is meaningless. [ICODE]printf("Title: "); puts(title);[/ICODE] is stupid, when there's [ICODE]printf("Title: %s\n", title);[/ICODE] but apparently it failed cause you don't know about C-strings. You don't know about arrays. You don't know Stream I/O, how file pointers behave after …

Member Avatar for Dervish1
0
1K
Member Avatar for yuri1969

[QUOTE=yuri1969;1413745]Hi, I just wat to ask if there is a chance to specify the output destination of [B]foo.o[/B] file. Now the output is forwarded to the makefile dir. [/QUOTE] I don't know of an option to specify the output directory for obj files, but you can specify a pathname for …

Member Avatar for yuri1969
0
2K
Member Avatar for moroccanplaya

Noone can really help you without seeing how you defined [ICODE]input[/ICODE]. Why don't you post all the code? As I see from the [B]crap[/B] you've posted, you can't have anything worth hiding from us.

Member Avatar for Shankye
0
155
Member Avatar for McCurry0x77

Files are not inherited. Classes are inherited. Just create all the files in the same folder, they'll all be in the same(default) package visible to each other. You shall use "extends" keyword in class definitions. At the end just compile the class that contains the main() method, then java compiler …

Member Avatar for hanvyj
0
3K
Member Avatar for TGeorge824

The problem is obvious. Actually it's too obvious, which implies you don't know C at all and trying to fool us by stating you've [U]originally[/U] written this code. Here you go: [CODE] int main() { process *p; p->pid = 1; p->reference_string = "000111222"; [/CODE]That tells you don't know about pointers …

Member Avatar for gerard4143
0
850
Member Avatar for Keidi

[QUOTE=Keidi;1409762]I am trying to call a php script through a shell script.The script is to be called as the run on receive directive of gammu-smsd.My php script executes as expected when I call it using[CODE]/opt/lampp/bin/php myvarsreader.php[/CODE].However on trying to run my script(From terminal): [CODE]#!/bin/sh PROGRAM=/opt/lampp/bin/php myvarsreader.php eval "$PROGRAM \"\${SMS_${i}_NUMBER}\" \"\${SMS_${i}_TEXT}\"" …

Member Avatar for ckoy
0
402
Member Avatar for tastyTreeHUGGER

Do you really have to do this using C? There are some beautiful Linux command line tools to accomplish such chores.

Member Avatar for Adak
0
427
Member Avatar for dspjm

[QUOTE=dspjm;1411230]What's wrong with the program?[/QUOTE] You're missing a NULL in the first node. [CODE] int main() { int i; LIST list=(position)malloc(sizeof(struct node)); list->next = NULL; printf("Inserting data...\n"); ... [/CODE]

Member Avatar for ckoy
0
127
Member Avatar for Allophyl

.Net platform compiles every program into native code before execution, so performance may not really be an issue. I'd say go with C# (and .Net) since that's the future of Windows development. OTOH, Win32 is neither dead nor outdated. Download Windows SDK and see for yourself. But Win32 is purely …

Member Avatar for Allophyl
0
135

The End.