Skip to content

Tag: linux

‘”SDL.h” no such file or directory found’ when compiling

Here’s a piece of my current Makefile: I have libsdl installed properly, SDL.h is in /usr/include/sdl where it belongs, but it just won’t compile. I also have the line #include “SDL.h” in my .h files, but still no go. Anyone knows why? Answer If the header file is /usr/include/sdl/SDL.…

How to display only different rows using diff (bash)

How can I display only different rows using diff in a separate file? For example, the file number 1 contains the line: A file number 2 contains the following lines: How to make in the following happen? Answer a.txt: b.txt: Use comm: The command line options to comm are pretty straight-forward: -1 suppress col…

How to remove tooltip hints in thunderbird? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

How to gzip all files in all sub-directories in bash

I want to iterate among sub directories of my current location and gzip each file seperately. For zipping files in a directory, I use but this can just work on current directory and not the sub directories of the current directory. How can I rewrite the above statements so that It also zips the files in all s…

How to install PHP mbstring on CentOS 6.2

How do I install mbstring with PHP on CentOS 6.2 I’ve tried: But no packages were found? Answer do the following: under the section updates, comment out the mirrorlist line (put a # in front of the line), then on a new line write: now try: (afterwards you’ll probably want to uncomment the mirrorli…

Why is import of SQL so slow?

I have an SQL file containing two tables with around 600,000 rows altogether. Yesterday, I tried to import the file into my MySQL database on Fedora 16, and it took over 2 hours to import the file. On my Windows PC it took 7 minutes. My Linux and Windows machines have exactly the same hardware. A couple of my…

Reliable writes in linux

My requirement is to write a never ending stream of incoming variable sized binary messages to the file system. Messages of average size 2KB arrive at 1000 messages/sec. So in an hour, total number of messages would be 3600*1000*2 = 6.8 GB. The main purpose of the messages is following 1. Archive them for aud…