linux

How do i post multipart/form-data that contain symbol

It made me have a headache for hours, i try to post image to twitpic with my twitter account using curl. curl -F "username=myusername" -F "password=='hwsh[g" -F "message=test twitpic" -F media=@/dos/smallapps2/smallapps/tiny-delicious/snapshot/test.png http://twitpic.com/api/uploadAndPost It alway return <?xml version="1.0" enco...

How to port android to device on ARM9 processor ?

Hi Friends, I want to port Android on the device with ARM9 200Mhz and no-fpu support, Is this possible, Has google revealed all code of android or it is just available to partners? if ANDROID_PORT_POSSIBLE { Is there any tutorial available for porting? } Thanks and Regards, Sunny. ...

Clutter does not update screen outside of breakpoints

Hi, I have some code: l1 = clutter.Label() l1.set_position(100,100) for i in range(0,10): l1.set_text(str(i)) time.sleep(1) That is designed to show a count from 1 to 10 seconds on the screen in clutter, but I'm getting a strange error. When I run the script normally the screen runs as it should do, but there is no text displayed u...

Record locking problem between linux and Windows

I need to run a bunch of old DOS FoxPro / Clipper applications in linux under DOSEMU. The programs access their "databases" located on a network server (could be a Windows or Linux server) Actually, the programs ran fine, but I cannot manage to make the record locking work as supposed: I can run a program in two terminals (or the server...

Making Image Slideshows from Linux Graphic Tools

How do I make image slideshows as a video file via 4 small jpegs (128px x 128px) and Linux command-line graphic tools? I need to vary the slideshow transitions with: fade to/from black slide left/right while fading to next image If you're curious, we plan to make videos we can put into mobile phones for real estate listings. (We alr...

"Unable to resolve..." in NetBeans 6.7.1, Linux, C++

I am working with a small group on a C++ project in NetBeans. For some reason, NetBeans is reporting things like "string", "endl", "cout" as "Unable to Resolve" even though the correct libraries have been included. The project compiles and runs as expected, so at the end of the day, it is no big deal, it is just that having everything ...

Multithreaded single-reader single-writer fifo queue

I need a queue for passing messages from one thread (A) to another (B), however ive not been able to find one that really does what I want, since they generally allow adding an item to fail, a case which in my situation is pretty much fatal since the message needs to be processed, and the thread really cant stop and wait for spare room. ...

WX_CONFIG_OPTIONS: command not found

I'm trying to build Aegisub on linux mint, I'm getting the following error during ./autoget.sh /home/hasenj/code/aegisub/aegisub/configure: line 25685: WX_CONFIG_OPTIONS: command not found /home/hasenj/code/aegisub/aegisub/configure: line 25686: syntax error near unexpected token `debug' /home/hasenj/code/aegisub/aegisub/configure: line...

How to install pysqlite?

Hi all, I am trying to install pysqlite (Python interface to the SQLite). I downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I did the following: gunzip pysqlite-2.5.5.tar.gz tar xvf pysqlite-2.5.5.tar \cd pysqlite-2.5.5 python setup.py install At the last step I have a problem. I get the following error message: er...

Specific OpenGL Resources Required

I try to avoid asking school specific problems on Stackoverflow, but I've ran into a bit of a problem, and was hoping someone here might be able to point me in the right direction. I'm currently doing a Graphic Programming class in college independently (no class, just me, a book, and the teacher). However, the professor doing this is ...

building a .so that is also an executable

So everyone probably knows that glibc's /lib/libc.so.6 can be executed in the shell like a normal executable in which cases it prints its version information and exits. This is done via defining an entry point in the .so. For some cases it could be interesting to use this for other projects too. Unfortunately, the low-level entry point y...

List only duplicate lines based on one column from a semi-colon delimited file?

I have a file with a bunch of lines. Each one of these lines has 8 semi-colon delimited columns. How can I (in Linux) return duplicate lines but only based on column number 2? Should I be using grep or something else? ...

Linux vs Windows Programming?

I've spent the last 5 years developing software with Windows as the target OS (mainly C++ and C#). Recently I started to become interested in development for other environments as well, Linux for example. So I guess I actually have two questions. The first is: Do you find developing software for Linux harder than developing for Windows?...

Linux Reference for C++?

I want to know if there is any site like cpluplus.com which explains all the headers files and its available features, but for Linux ? Like for example explaining the sys/, net/, dns/* includes ? I came up with this question because I was searching for a sys/reboot.h reference. Any Ideas ? ...

Paste text to active window linux

I want to write application which paste some text to active window on some keystroke. How can i do this with Python or C++ ? Update: Sorry people. I think i don't describe problem clearly. I want to write app, which will work like a daemon and on some global keystroke paste some text to current active application (text editor, browser,...

How to use `grep` as to choose lines with column > 1?

I get results like below from a pipeline in linux: 1 test1 1 test2 2 test3 1 test4 3 test5 1 test6 1 test7 How can I use grep to retrieve only the lines where the first column is > 1? ...

ldconfig for Mac OS X

Is there a parallel command to Linux's LDCONFIG for Mac OS X's Terminal? ...

Linux GUI programming

Hello. Could anybody please tell me which is the best software to do GUI programming in Linux and some books for it? ...

scp-ing without replacing folder

How do I scp an entire folder into a folder of the same name without replacing the content in the destination folder? (instead, I would like to add to the contents of the destination folder) ...

Get network interface information

I know there is ifconfig command that we can list network interface info. but i want to get information in the following pattern Interface_Name IP_Address Net_Mask Status(up/down) for example eth0 192.168.1.1 255.255.255.0 down I tried ifconfig and grep command but can't get right pattern. There is another command or some trick to do...