OpenVPN’s installer allows for command-line based (silent) installation, but this feature is not actually documented explicitly anywhere. Here’s all I could find – hope this list will help someone in the same situation I was in.
Category Archives: Computers
Can’t Save JPEG in a Deployed Qt Application
This has been haunting me for quite some time. When building Qt app for Windows, the QImage::save() function did not work for JPEG for deployed applications, while it did work if Qt SDK was installed on the machine.
Continue reading
Control Audacious with Global Shortcuts in Gnome
Audacious is an amazing player (esp. in WinAmp skin mode – available under View -> Interface menu). One thing that used to bug me is that I wasn’t able to control it “globally”.
Continue reading
Disable “New Tab Page” and “Smooth Scrolling” in FireFox
I really like FireFox 13+, it’s converging more and more towards Chrome(ium), with some neat details that will get into future versions of Chrome(ium).
Yet, there are two things I don’t like (just as I didn’t like them in Chrome) – the “new tab page” (“most visited”) and “smooth scrolling”.
“Smooth scroll” has been round for some time, but off by default. Now it’s on.
To get rid of both:
- Open a new tab.
- Type in about:config as URL. This will open FireFox’s geeky configuration. Accept responsibility for editing this stuff when opening for the first time.
- Type newtabpage under “Search”, and double-click the “browser.newtabpage.enabled“; it will turn bold and it’s value (on the far right) will change to “false“. This will disable the “new tab page” – you can immediately check this by opening a new tab – it should be again charmingly empty.
- Type smooth under “Search”, and double-click the “general.smoothScroll“; this will disable the smooth scrolling. Again, you can immediately check it out.
There are literally hundreds of settings under about:config that can change all of FireFox’s behaviour, up to breaking it inadvertently. Feel free to click around!
Final rant – what the hell is going on with the version numbers? There are no more v4.5, or v4.5.2… FireFox and Chrome just switched to single digit versioning… AFAIC, they can call it “whatever is current version”, or just vInfinity…
IMO, it lowers the meaning of versioning per se – there is a reason for the minor (and subminor, …) versions – it means it’s essentially the same thing, with some improvements.
E.g. Chrome’s v16 – “multiple profiles on by default” is the major change… Or “style editor” in FireFox v11… that’s like saying that “cup holder made of aluminium instead of plastic” makes it a new model of a car!
The audacious’ problem “playlist_entry_get_filename assertion failed”
I’m very fond of audacious player (audacious2 to be precise) – light-weight, fast, and follows the WinAmp (2) path. Neat
Few days ago I’ve got the following error message on audacious start-up:
** (audacious2:2348): CRITICAL **: playlist_entry_get_filename: assertion `entry != NULL' failed Segmentation fault
Reinstallation and re-configuration didn’t help; but the fix is quite trivial:
- Start the audacious as root: $ sudo audacious2 ; this should work just fine, unlike when starting as normal user.
- Add anything to the playlist, just so it’s not empty.
- Close the player.
- Now start the player as normal user; all should work now.
That’s it. Hope this helps!
Turn Your Box into a Dev Web Server
To turn your box into a dev web server is pretty simple, yet I’ve seen people struggling with this over and over again, so here’s a simple TODO list.
I won’t go over the likes of Apache installation, VirtualHost setup, .htaccess settings, etc. as you can find these online very easily, and might be specific to the needs of your project.
Most of the time I see people using localhost:8080 and a myriad of other ports to work on several sites locally; but you might as well work on http://www.myproject.com locally in just 2 simple steps:
- Create a VirtualHost in Apache which goes by “the name” http://www.myproject.com, by including the following within the definition:
<VirtualHost *:80> ServerName www.myproject.com DocumentRoot /var/www/myproject/ # all the other options and definitions ... </VirtualHost> - “Register” the domain name locally – simply add the following line to your /etc/hosts file (on Windows, this file is typically located under [Windows]/System32/Drivers/etc):
127.0.0.1 www.myproject.com
Now enable the VHost in Apache, restart Apache, and open http://www.myproject.com in the browser, and you’re ready to code off!
Note: The VHost name need not be a valid domain name – feel free to use myproject as ServerName and in /etc/hosts; just beware that some browsers will try to search for “myproject” instead of opening the local site. In such case, type in the whole http://myproject.
List of Indexed Tags in Solr
Apache Solr is one of the best search engines I use(d). It’s fast, simple to use, indexing is reasonably fast, and sports great many features.
IE Certificate Error with Signed Certificate
So, you’ve got your shiny new certificate, and your good old server. You’ve installed the certificate, chain or intermediate certificate, and all is nice and clean in FireFox, Chrome, Chromium, etc.
Then, your boss opens up his IE, and gets Certificate Error – “not issued by trusted certificate authority” and/or “issued for a different website’s address”. Of course, that’s a major pain, as IE – however bad, buggy and crappy it is – still holds majority of browsers market, as most computer users are incapable of installing a better browser.
Continue reading
PHP+MySQL and Unicode/UTF-8
Most of the wide-spread languages support Unicode and/or UTF-8 at least in some form; post-2K languages support Unicode quite commonly, but there are always few things to look after.
What’s wrong with PHP?! part 3
The magic quotes, and the safe mode… ‘nough said.
Fortunately, both of these are deprecated in new versions of PHP.
Unfortunately, most hostings are not that keen on updating PHP to the newest version (mainly they’re still stuck at the likes of version 5.1.x).
What to do?
Continue reading