Hi guys,
to do a proper Linux/unix styled application, what is the best choice (eg. afaik ls uses getopt_long but for example ffmpeg getopt_long_only).
Which one do you recommend?
Cheers,
How to get sparse block size and check if data is present at the given offset in sparse file in reiserfs/ext3 in Linux?
I want to use it to implement simple copy-on-write block device using FUSE.
Or I should better keep a bitmap in a separate file?
I currently use visual studio 2008 for creating projects that can run on windows. Can you recommend me of other tools that can be used to develop applications for other operating systems?(Linux, Mac, Solaris)
The most prominent programming languages will do(C++, C#, F#)
And scripting languages(PHP, Perl, etc)
I was wondering how can I make the IO faster by writing and reading temporary files to main memory. I've used to write to /dev/shm in Linux.
But now I'm in Windows 7. Anyone knows the answer ?
Thanks
There are a number of questions about this sort of thing but lets imagine we are targeting a generic Linux system with both getopt and getopts installed (not that we'll use either, but they seem popular)
How do I parse both long (--example | --example simple-option) and short argruments (-e | -esimple-example | -e simple-example)
On a Ubuntu 9 64bit Linux machine, sudo takes longer time to start. "sudo echo hi" takes 2-3 minutes.
strace on sudo tells poll("/etc/pam.d/system-auth", POLLIN) timesout after 5 seconds and there are multiple calls(may be a loop) to same system call (which causes 2-3min delay).
Any idea why sudo has to wait for /etc/pam.d/system-auth?
Any tunable to make sudo to timeout faster?
Thanks
Samuel
Hello, I'm trying to port a code that relies on SIGCONT to stop certain threads of an application. With current linux nptl implementation seems one can't rely on that in 2.6.x kernels. I'm trying to devise a method to stop other threads. Currently I can only think on mutexes and condition variables. Any hints is appreciated.
I am new to Linux and I am trying to compile some code that needs environment variables set first. The script is in cshrc, but whenever I try to run that code I get "if: badly formed number" errors. I want to run it in bash instead. Is there an easy way to convert cshrc to bashrc?
I need to study about load-balancers, such as Network Load Balancing, Linux Virtual Server, HAProxy,...There're somethings under-the-hood I need to know:
What algorithms/technologies are used in these load-balancers? Which is the most popular? most effective?
I expect that these algorithms/technologies will not be too complicated. Are there some resources written about them?
Thank you very much for your help.
I'm using objcopy on bash (ubuntu linux) and im trying to copy 2 sections from an ELF file using the folowing commend:
objcopy -j .section1 -j .section2
The problem is the objcopy is adding some padding between the sections. Is there a way (a flag?) that can stop objcopy from padding the sections?
the sections are placed one after the other in the file so there is no need for any kind of padding....
Hi all,
I'm new to mysql. My requirement is to import a sql dump into mysql using shell script for linux and this script should be called by java program for the restoration to take place automatically.
Please advice me on this.
Regards,
Chandu.
/*
* Each physical page in the system has a struct page associated with
* it to keep track of whatever it is we are using the page for at the
* moment. Note that we have no way to track which tasks are using
* a page, though if it is a pagecache page, rmap structures can tell us
* who is mapping it.
*/
include/linux/mm_types.h
Here Please lemme know what is "pagecache page" means?
Thanks!
Recently I was configuring sendmail on a new linux server install and there was a configuration problem. I was given a link to a website that had the image of a rooster on it and told to consult them for configuration problems.
I cant remember the url of the site, but it's apparently a well-known one.
Can someone here remind me of what the site is and how I am sposed to use it to figure out the correct configuration?
How do you run Scheme programs from the terminal in linux(ubuntu)? Also how to accept arguments from the command-line in a Scheme program?
Edit: Im using the DrScheme implementation.
Hi!
I was wandering if it's possible to run an Ubuntu virtual machine using VirtualBox in background, I mean, without any window open.
The idea is to conect via SSH to the linux host, that would be running in background.
Have you ever done somenthing like this? Is it possible?
Thanks!
i wonder how one can monitor a lamp server (ubuntu) on production.
are there any standard tools for this to watch the server performance/load in realtime via the browser? how mysql, linux, apache etc are doing...
what is best practice regarding this?
any tutorials would be great. thanks!
How do I remove the last two chars from each line in a text file using just Linux commands?
Also my file seems to have weird ^A delimiters in it. What char does ^A correspond to?
Inspired by the maturity problems I am facing porting on Mono Mac & Linux. I am investigating the use of Qt as an alternative. I am curious to hear about your favorite Qt experiences, tips or lesser known but useful features you know of.
Please, include only one experience per answer.
I got errors when trying to use __sync_add_and_fetch:
test8.cpp:(.text+0x90e): undefined reference to `__sync_add_and_fetch_8'
collect2: ld returned 1 exit status
Please kindly advise how to rectify this.
Specs:
GCC/G++: 4.4.1
GNU/Linux 2.6.32 SMP i686
Many thanks!
I have a ASUS U50AG Notebook, with a normal Power On and an Express Gate Power On Button.
Now i will install a Windows and a Linux. To start one of the OS i will use one of the Button. Und use no Boot Manager.
How can i do that?
Hello everyone,
i want to get the intellisense in GTkmm application, similarly as we get in dot net under windows. However this time i am using Linux, C++, Gtkmm and Geany as my editor. Please guide how to get the intellisense. Moreover, if any kind of editor supports the property of intellisense, please mention that also.
Thanks and Regards
Owais Masood
I get this error when trying to use wxPython's NotificationMessage class:
wx.NotificationMessage("", "Hello world!").Show()
AttributeError: 'module' object has no attribute 'NotificationMessage'
The code is quite simply:
#!/usr/bin/python
import wx
app = wx.App()
wx.NotificationMessage("", "Hello world!").Show()
app.MainLoop()
What am I missing?
This is running on Linux Mint 13, MATE 1.2 desktop environment, Python 2.7.3.