Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~3K People Reached
Favorite Tags

9 Posted Topics

Member Avatar for Jamesbch

Hello, I'm kinda weird I know but I'm trying to encode my mp3 to a lower quality (for my mobile phone) with one line of shell (with bash). I'm wasting some more time as I would do by hand but I'm very interested. Here is my not-working line : [CODE]find …

Member Avatar for ole.tange
0
347
Member Avatar for Jamesbch

Hello everyone, I'm developing a multi-client server on Linux and I've noticed a strange behavior: I'm using a regular [B]Makefile[/B] to compile and run my server, nothing fancy. But now I've tried to run my server [B]by hand[/B] using the command line and my server won't accept any incoming connections …

Member Avatar for Jamesbch
0
254
Member Avatar for Jamesbch

Hello everyone, I've found out that the [I]friend[/I] keyword can be used with a class or a function/method but I'm wondering if it's possible to do something like this : [CODE=C++]class A; class B; class A { private: friend class B void AddEl(void *el); friend class B void RemEl(void *el); …

Member Avatar for Fbody
0
120
Member Avatar for Jamesbch

Hello there, I'm developing a server which use epoll to manage the incoming connections. I'm working at the moment on timers and I'm using the [I]setitimer[/I] and [I]sigaction[/I] interface of Linux. It's working well but I've found out that epoll and setitimer conflict each other: I guess they share the …

Member Avatar for Jamesbch
0
329
Member Avatar for Jamesbch

Hello, I've a tricky issue with a use of my macro. I specify the max length of a string parsed by sscanf with a macro define. Since I write all of my macro value between parenthesis (if it is a number) It should fix the operation problems (it's why we …

Member Avatar for Jamesbch
0
235
Member Avatar for Jamesbch

Hello everyone, I find C not very flexible this time because I know there is an easy way to assign field values to a struct like this : [CODE]Struct mine = { field1, field2, ... };[/CODE] but in my case "mine" is contained in a bigger struct. So I have …

Member Avatar for Adak
0
154
Member Avatar for bbman

In python you can use urllib2 with open (so it's really high level what you don't seem to want) : [CODE="python"]import urllib2 print urllib2.urlopen(url).readlines()[/CODE] Or you can use the low level socket : [URL="http://docs.python.org/library/socket.html"]http://docs.python.org/library/socket.html[/URL] and write your own HTTP GET. It's quite easy. You can do it in C (since …

Member Avatar for Jamesbch
0
103
Member Avatar for Jamesbch

Hello everyone, I'm working on my game project and my aim is now to produce the interface part. I've found that there is an easy way to produce some text on the screen with [I]glutBitmapCharacter[/I] and it's working quite well except the font choice is a little bit restrictive. So …

Member Avatar for Jamesbch
0
475
Member Avatar for Jamesbch

Hello everyone, I'm working on a program that reads a PNG and extracts a custom chunk from it (using libpng). But now I've got problems to actually register my callback function to handle unknown chunks. According to the official documentation I have to declare which chunk is "unknown" (by their …

Member Avatar for Jamesbch
0
811

The End.