Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Thursday, September 04, 2008

Chromatic thoughts

Sad. But google chrome doesn't seem ready for linux yet. It seems to use the same components used by internet explorer, like in the "Change proxy settings" in the options. I had to reboot to switch from linux ( which had been running for weeks) to windows. Anyway, there may be a linux port around soon.

By the way the "full" installer can be downloaded from this link http://cache.pack.google.com/chrome/install/149.27/chrome_installer.exe

The little "online" installer may be slow, and I can't find a way to configure how it downloads the "full" installer.

Wednesday, April 16, 2008

Cats and dogs




On the peak of extreme boredom, my subconcious mind found something to do with my Rapidshare captcha collection.

#convert -delay 50 access*.jpg access.gif

Monday, March 31, 2008

Calis's Little Brother

if Calis has a brother...

Wednesday, December 12, 2007

The System

Saturday, December 01, 2007

system(argv[0]);


#include <stdlib.h>

int main(int argc, char **argv){
      system(argv[0]);
      return 0;
}


/*
It was something like this that made my laptop hang. (The additional code were supposed to print something, but curiously didn't work.) I just wanted to see what would happen. The source file was named loop.c, by the way.
*/

Tuesday, July 17, 2007

KDE_Glass_Break.ogg

I was finally annoyed enough to figure out which file was causing that annoying sound on errors on KDE. On Mandriva 2007, the file is located on:

/usr/share/sounds/KDE_Glass_Break.ogg

I renamed it.

I really did not like that noise. Especially when I am wearing a head set, the broken glass effect is just too sudden (very high rate of change derivative). It sorts of hurts my ears.
To add to that, customizing sound schemes does not look simple (if not possible). So I was forced to rename the file to hide it from the system.

Tuesday, May 22, 2007

Gnuplotting


Figure 1. FDTD data plotted with Gnuplot

I realized how nice my data can look with Gnuplot (even when it's wrong). For instructions on how to visualize programming data using gnuplot, this article might be of help.


Pathetic recreations
After trying out all the keyboard letters (lower case only), I eventually verified (on my Linux "work" station) that the letter q has the least number of linux recognized commands that start with (loose sentence structure). I scanned a QWERTY keyboard, pressing "Tab" after each letter, and looked at the suggested commands starting with that letter.


[pathetic_user@work_station]$ q
qb-help qm2ts qrttoppm qtcups
qiv qmake qtconfig quanta
[pathetic_user@work_station]$ q


As it can be seen, there are only 8 commands starting with q. Some of them (if not all), like quanta, the html editor, are not even basic commands. Some of them are commands I never knew exist. There might be more if I used the root account.

Tuesday, April 17, 2007

Thoughts in djvu format

As a reader of djvu ebooks, I got curious how I could make my own djvu documents. Making pdfs is quite trivial nowadays with many free pdf printers (PDFCreator, PrimoPDF, CutePDF). Using a printable document (created with Open Office or M$ Office), here's how I converted my .odt's to .djvu's with readable/searchable text (text not treated as graphics).

Materials & Equipment

  1. djvudigital that comes with the djvulibre package. It converts pdf/ps to djvu.

  2. Ghostscipt (Usually comes with Linux)

  3. Linux: it is easier to compile/install djvulibre in here, Cygwin might also work (A real Linux is usually better)

  4. If printing in Windows,
  5. A pdf printer that uses GNU Ghostscript such as CutePDF



Methodology
  1. Convert the document to PDF. Unfortunately direct pdf export from Open Office may not work optimally, because it encodes PDF's differently. This may result in text being treated as graphics in the resulting djvu. Since djvudigital uses Ghostscript, it is better to "print to pdf" using the system's printer devices.. When exporting from OpenOffice, check the "Tagged PDF" option that would be seen by clicking the "Export..." button. This option makes the PDF file more readable to djvudigital. In Windows, I also use CutePDF since it uses GNU Ghostscript converter.

  2. In the bash prompt type:

    djvudigital --exact-color --words --lines -v input.pdf output.djvu

    Here it is assumed that input.pdf will be converted to output.djvu. The option --words ensures the text in the pdf remains text in the djvu. The explanation of the other options can be displayed by typing:

    djvudigital --help


I already had a djvu version of my undergraduate thesis (which is not supposed to be online yet). Here is my Lumban embroidery paper in djvu format.

Sunday, April 15, 2007

Drive Rescue to the rescue

Just when I thought my crammed fine arts paper is almost done, I suddenly realized that the SD Card's folder containing the photos (/DCIM/100CAMEA) is inaccesible to Windows and unseen to Linux. However, the photos are still browable through the camera's display. I tried both plugging the camera's interface cable and a third party card reader (by CD-R King) only to get the same ubfavorable results. I suspect this was due to recent proliferation of viruses targetting removable media (those that exploit autorun.inf) (I should had been more selfish!).

After failing to read the JPEG files from my SD card, I eventually remembered the night when Vera asked me for help on her unreadable USB flash drive. I used Drive Rescue to recover her files (downloadable here).


Figure 1. Jpg image files inaccessible to Window$ explorer but seen by Drive Rescue

I first encountered Drive Rescue at the free to use workstations at CSRC wayback 1st year college (VRD was not yet its coordinator). At that time (2002-03), floppies were still widely used and USB media doen't seem to exist yet. I saw it while browsing at the software on the start menu and copied it, thinking it would be useful at home where we had old hard drives (Seagate 120mb types (ST3144)) and lots of floppies (e.g., 22 floppy Win95, etc...). Despite being relatively old (2002), it works good for newer gadgets such as USB drives and SD cards.

Friday, March 30, 2007

ExplorerXP: Tabbed file browsing

There must be a Windows counterpart for Konqueror. In addition to its web browser, what I like about Konqueror is its tabbed file browser. Unlike with Window$ explorer where you have to open many explorer windows when working with different directories. It's a mess.

ExplorerXP is a nice Windowze software that can do that. (Just leave the tabbed web browsing to Firefox)


Figure 1. Unfinished thesis manuscript files in different directories accessible via tabbed browsing


...Back to thesis writing...

Sunday, February 11, 2007

x11 problem

My Linux box didn't start in gui mode:
When I run startx from the console, I see this part of the message:

...
(EE) Failed to load module "bitmap" (module does not exist, 0)
...

Luckily I remember installing an updated (apparently buggy) version of x11-server-common. That was the last stupid thing I did with my box while attempting to install vncserver so that I can work else where in the lab.

I reverted back to the older version using x11-server-common-1.1.1-11.2mdv2007.0.i586.rpm with --nodeps and --force options in addition to the usual -Uvih option of rpm.

Back to thesis work...

Thursday, December 07, 2006

Machine error demonstration

Either there is a problem with printf, atof, division or with floating point numbers:



#include <cstdio>
#include <cstdlib>
using namespace std;

int main(int argc, char **argv){
if(argc>2){
float f1 = atof(argv[1]);
float f2 = atof(argv[2]);
printf("%f/%f = %f\n", f1, f2, f1/f2);
}
return 0;
}



After compiling and running the given code, I get these strange results:

$ ./div 234 67.9
234.000000/67.900002 = 3.446244
$ ./div 234 67.2
234.000000/67.199997 = 3.482143



The code was compiled with g++ (GCC) 4.1.1 20060724 (prerelease) (4.1.1-3mdk). No optimizations were used:

$ g++ div.cpp -o div

Speaking of division, this article about division by zero might be interesting.

Tuesday, December 05, 2006

Bugging Clamwin update

For several days the clamwin antivirus applet on the system tray had been bugging me about it's new scanning engine version 0.88.6 (also, at about this time, I had already been recieving nags about the new AVG free 7.5). Unfortunately when I download it using clamwin itself (or atleast clicked the Ok button, assuming that's what it does...), it doesn't install and thus will remind you again about the new version the next time around. Although I could have searched the file or monitored/sniffed/snooped the download process (or just did anything else to stop the nags), I was just too busy to do so. Eventually I just downloaded it using a web browser and istalled it manually.

It might be annoying, but not as annoying as the people who create virus, spyware and spam.