Skip to content

Tag: linux

Workaround for bug in mono: Wrong Process.ProcessName

If you work with mono and use Process.ProcessName you may get wrong results on some computers. For example instead of the process name “kwrite” you may get “kdeinit4” (seen on SUSE). On Ubuntu I have even seen complete bullshit like “kdeinit4;5535948c (deleted)” instead of …

Executable file didn’t work correctly [Linux]

I write a program on Qt C++ GUI, that from given user input generates three .cpp files with proper syntax (C++). When I start my program from Qt Creator directly or run it from console like a script its creates the files in executable directory correctly: When I double click executable file, the program start…

How to interact between webpage and an actual program

What I have: A program (c++) on a server (linux) The program can be executed with command line parameters The program finishes after a while and produces continously output (“log.txt”) What I want: My idea is to have some kind of user interaction with that program: The user opens a website which s…

Auto Update SVN after Commit and Export it to zip

Me and my friends are developing android Custom ROMS, the problem is we immediately update when there is something need to update. i use google code trunk to upload our custom roms for now and i need to zip it and upload it, is there is a way for a better proccess that our server automatically svn update when…

C: finding longest line

I am trying to run this example from (dennis ritchie book), however it does not find the longest line, any idea? main.c other.c other.h Using debugger: looks like i in copyL function does not increment… any ideas why? FIX: Answer I think you incorrectly transcribed the code. This line: is probably incor…