A site for solving at least some of your technical problems...
A site for solving at least some of your technical problems...
Now a day I like to install Solaris to check that my code compiles and generally runs under that OS.
I think that's a good way to prove that the code is multi-OS ready even if it is only for Unices.
OpenSolaris is free and can be downloaded from Oracle. The last URL I use was:
The system, by default, comes with a directory named /usr/sfw which includes a really old version of gcc. It is possible, though, to move forward with a newer version of the compiler by installing a package. Under Solaris 11.2, this ...
Today I wanted to upgrade some packages that had security issues. Ubuntu (like Debian) provides the apt-get tool that allows you to do upgrades the easy way:
sudo apt-get upgrade
However, that upgrades all the packages present. In some cases, you may want to skip on some packages because you know they are not ready (i.e. your own packages).
In order to only upgrade security issues, you want to get a list of packages that are to be upgraded for security issues:
apt-get -s dist-upgrade | grep "^Inst" | grep -i securi
That apt-get command line lists all the packages ready for ...
I run a few Drupal website and once per hour I run the cron.php script. I do it only once per hour because nothing changes so often on my websites so it would require faster refreshes.
Once in a while (relatively rarely now) I get a list of errors from CRON saying that the checks failed. The errors look something like this:
HTTP/1.0 302 Found Location: /cgi-bin/ipdiags.ha Pragma: no-cache Content-Type: text/html <html><meta http-equiv=Refresh content=0;url=/cgi-bin/ipdiags.ha> <body></body></html>
As you can see, this is a 302 so a temporary error. ...
It has been a while that my right Alt key acted as the Level3 key instead of a right Alt key. I never cared for the AltGr on my QUERTY keyboard, but it kept popping up as the Level3 key even though I clearly removed that option in the keyboard settings under /etc/default/keyboard
XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="" #XKBOPTIONS="lv3:ralt_switch" XKBOPTIONS="compose:caps"
I commented out the level3 definition and instead put "compose:caps" which makes my CAPS Lock key work as a compose key (i.e. if you press ...
As I am working on my as2js compiler, I stumble on a couple of problems with the for() loop parsing because of the in keyword. That made me think and the for() statement was actually a very funny one. Yes! You can actually write something like this and it compiles:
int zero; for(3;2;1) zero;
As you can see, all 3 entries in the for() statement are valid expressions and therefore the compiler can compile that code. This creates a loop that runs forever, similar to:
but much less clear to read, obviously.
Now that's food for thought, isn't it?
If you are using Apache and e-Commerce, you probably want to know all the details of the ciphers used by the Apache SSL module.
So listing Apache supported ciphers is done using nmap as follow:
nmap --script ssl-cert,ssl-enum-ciphers -p 443 secure.m2osw.com
This call gives you a complete list of all the ciphers currently accepted by your running version of Apache. For example, the list may look like this:
| ssl-enum-ciphers: | SSLv3: | ciphers: | TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_128_CBC_SHA - strong | ...
As we are working on a new website, we had a problem where a redirect would not work. I tried both: a simple Redirect and a RedirectMatch as follow:
Redirect / http://finball.m2osw.com/ RedirectMatch permanent ^(.*)$ http://finball.m2osw.com$1
Both of these entries would not work at all.
I verified, to make sure, that the alias module was turned on. It was.
ls -l /var/apache2/mods-enabled
This did list the alias.conf and alias.load entries as expected.
So? What else?
Well... This was installed on a new server and we left the default entry in there:
ls -l ...
As I upgrade to 13.10 of Ubuntu, I'm having to do work to get my system back to normal...
Today I stumble on the fact that USB ports are now not accessible by everyone by default. So when I tried to scan a document, it told me that I had no scanner. Panic... and then I found out that the permissions were changed, widely, so only users who are root (by default) can access the scanner.
I changed the group to a group I'm in and it worked without having to reboot or relog in. However, it is not unlikely that the group won't stick... TBD!
To find the USB port that has your scanner, ...
I've been looking around every now and then to try to understand how I could create a server that replies on the correct Ethernet port.
The idea is simple, we have very powerful servers that can handle many requests, more requests that one Ethernet port can handle. In other words, we could have 2, 3, 4, probably even 10 Ethernet connections (it really depends on your application, of course: how much RAM you need, how much processing is necessary for each access, etc.)
The solution is to use the ip command line which allows us to add default gateways for each ethernet card based on the ...
I started the stock SeaMonkey browser by mistake as my Unity icons disappeared (i.e. seamonkey as is on my command line started /usr/bin/seamonkey which is not the correct version!) This had several bad side effects. For of all, it destroyed my bookmarks (argh!) and then it decided to install the 64bit Flash plugin. That did not work well since the version I like is a 32bit version.
Once I had the correct version started again, each time it was trying to open a Flash animation, it would be "stuck" for a few minutes, until I tried to open a page with a movie in a Flash shell. That ...
Find the page/content you are looking for with our index.
The new system for Macintosh computers. This is based on FreeBSD, a Unix platform.
The action of restarting a computer is called reboot. This reloads the operating system and your different auto-start software.
There are two types of reboots: a cold reboot and a warm reboot.
The cold reboot is the one where you turn your computer all the way off and back on. It is considered to be the ultimate reboot which ensures that everything is alright.
The warm reboot is when you just reboot your operating system. This means some of the hardware parts may not be fully reset as expected in a cold reboot. There are several reasons for this, at times the BIOS of your system does not give the correct signals to all the parts, and at times the signal doesn't propagate to all the parts as it should.
This is why a warm reboot does not always work (i.e. think when you change a driver and the new driver is not able to properly reset the state of a board or chip... turning the computer all the way off and back on may resolve the problem.)