I've noticed sometimes when I get problems like listed earlier this day (finicky CD/DVD ejecting & unmounting permissions), I get jerky motion when I finally am able to play something like an .avi off the mounted disc. I can stop Kaffiene and even pkill it, but it still continues. The problem stops if I reboot and run the .avi off the cd/dvd again.
Any idea what's going on in the background here? Is there another process I have to kill, or do I simply have to wait a long time before jerkiness doesn't become an issue? Or is reboot the only solution?
My experiences and solutions when porting over to Linux. Written for intermediate computer users. Hope my own troubleshooting helps you!
Wednesday, 28 November 2007
CD Will Not Eject, Unmount
- burned using k3b
- still showed as blank cd-rom on desktop
- used physical eject button on cd, closed drive after it opened
- tested data on cd: cd showed up with label, file opened
- tried to eject (gave error)
- tried to unmount (gave error i.e. "error: kio_media_unmounthelper unmount: /media/hdd is not in fstab")
- (light on cd-rom drive is flickering)
Solution: If I wait a couple minutes, I can then use right click->eject
I guess other apps aren't releasing permissions to the drive to preven accidental manipulation and use by other programs?
(edit: same dealie with my USB flash stick. I moved files into a directory on my desktop. Well after it was finished, I attempted to right click-> safely remove, and it gave me the same error)
Tuesday, 23 October 2007
PDF Manipulation; Tesseract OCR
Little bit of story to begin.
Working in a small print shop, I've had to deal with pdfs a lot more. One reason is setup: customers bring in all sorts of wonky files at the incorrect finished size and setup. Customers make files in Word, which may spontaneously change formatting (hey... how are WE supposed to know what your document is supposed to look like?) We get a lot on bands printing 11x17 posters, but they also want handbills, which are not set up. "Ready to print" is rarely the case.
Word also likes to not printed coloured backgrounds, even if you tell it to.
For pdf manipulation, I use three main tools: Adobe Photoshop, Adobe Acrobat Professional, and Xerox Freeflow Makeready.
The beauty about Photoshop is that you can actually open up a PDF. It will rasterize the file (essentially "make it into a picture") , which is great if you have you're getting issues with formatting. The downside is that it rasterizes the image. Gone is the editability (is that a word?) of the PDF. Always save as a copy before working on an image!
This concept gives light to the structure of the pdf as well. PDFs are similar in concept to web pages (HTML, if you're familiar with it). The document doesn't contain an image. It is a document explaining the structure of different elements, and how they should be displayed. This is why you are able to search many pdfs.
With extended use of Freeflow, it becomes obvious too that making a document n-up (multiple copies of the same thing in a page) is a function of the markup in the PDF. If you make a document 4-up, the size of the file doesn't change (or does by a miniscule amount). However, if you make a (rasterized) image 4-up and save it as an image again, it gets much larger.
Acrobat Professional is great for some purposes, but some of the tools are clunky to use. Worse still, some tools that look intuitive to use, aren't. Furthermore, it's still buggy. Crop kind of works. The "layers" tab is essentially useless.
Freeflow has some great tools. For example, you can view the contents of a pdf in its layers, and manipulate the layers (you could insert an image which is one colour and move it to the bottom of the layers... making it the background colour). It's also really easy to make things n-up. I'm surprised I don't see this more. Computers can do math much more quickly than we can. As humans, it's not that difficult for us to do (if nice round-numbered measurements are used), but it is time consuming.
Put into perspective the hundreds/thousands of dollars these programs cost and the fact that I still have to switch between them to solve some problems, plus there are still some problems they don't solve...
A large problem I would like to solve:
Collecting some of my images together at home into pdfs. Some of these are just images, some are images of text.
Using Linux, I wasn't about run out and buy a $440 copy of Acrobat Professional. Kpdf is a great lightweight viewer, but that's about all it can do. I supposed I could use a workaround using LaTeX, OpenOffice, or ImageMagick, but that might get tedious or cumbersome. I asked on IRC about ImageMagick, but I couldn't get a definite answer.
I came across some solutions quite by accident.
PDF Hacks contained a solution. Apparently you can make all images in a directory into a pdf with ImageMagick ("hack" 48, p125).
I came across Tesseract quite by accident. It happened to be a July 2007 Linux Journal article. Tesseract can take a uncompressed tif image and use OCR to port it into an actual text document. It does it with an excellent success rate (97-100%).
The author says he uses it to scan in his textbooks, so he doesn't have to lug heavy books around campus.
Plus: both ImageMagick and Tesseract are free.
Working in a small print shop, I've had to deal with pdfs a lot more. One reason is setup: customers bring in all sorts of wonky files at the incorrect finished size and setup. Customers make files in Word, which may spontaneously change formatting (hey... how are WE supposed to know what your document is supposed to look like?) We get a lot on bands printing 11x17 posters, but they also want handbills, which are not set up. "Ready to print" is rarely the case.
Word also likes to not printed coloured backgrounds, even if you tell it to.
For pdf manipulation, I use three main tools: Adobe Photoshop, Adobe Acrobat Professional, and Xerox Freeflow Makeready.
The beauty about Photoshop is that you can actually open up a PDF. It will rasterize the file (essentially "make it into a picture") , which is great if you have you're getting issues with formatting. The downside is that it rasterizes the image. Gone is the editability (is that a word?) of the PDF. Always save as a copy before working on an image!
This concept gives light to the structure of the pdf as well. PDFs are similar in concept to web pages (HTML, if you're familiar with it). The document doesn't contain an image. It is a document explaining the structure of different elements, and how they should be displayed. This is why you are able to search many pdfs.
With extended use of Freeflow, it becomes obvious too that making a document n-up (multiple copies of the same thing in a page) is a function of the markup in the PDF. If you make a document 4-up, the size of the file doesn't change (or does by a miniscule amount). However, if you make a (rasterized) image 4-up and save it as an image again, it gets much larger.
Acrobat Professional is great for some purposes, but some of the tools are clunky to use. Worse still, some tools that look intuitive to use, aren't. Furthermore, it's still buggy. Crop kind of works. The "layers" tab is essentially useless.
Freeflow has some great tools. For example, you can view the contents of a pdf in its layers, and manipulate the layers (you could insert an image which is one colour and move it to the bottom of the layers... making it the background colour). It's also really easy to make things n-up. I'm surprised I don't see this more. Computers can do math much more quickly than we can. As humans, it's not that difficult for us to do (if nice round-numbered measurements are used), but it is time consuming.
Put into perspective the hundreds/thousands of dollars these programs cost and the fact that I still have to switch between them to solve some problems, plus there are still some problems they don't solve...
A large problem I would like to solve:
Collecting some of my images together at home into pdfs. Some of these are just images, some are images of text.
Using Linux, I wasn't about run out and buy a $440 copy of Acrobat Professional. Kpdf is a great lightweight viewer, but that's about all it can do. I supposed I could use a workaround using LaTeX, OpenOffice, or ImageMagick, but that might get tedious or cumbersome. I asked on IRC about ImageMagick, but I couldn't get a definite answer.
I came across some solutions quite by accident.
PDF Hacks contained a solution. Apparently you can make all images in a directory into a pdf with ImageMagick ("hack" 48, p125).
convert -density 100 -quality 85 \ -page "800x800>" -resize "800x800>" *.jpg album.pdfWell, that's simple. Easy to write as a shell script or program, too.
I came across Tesseract quite by accident. It happened to be a July 2007 Linux Journal article. Tesseract can take a uncompressed tif image and use OCR to port it into an actual text document. It does it with an excellent success rate (97-100%).
The author says he uses it to scan in his textbooks, so he doesn't have to lug heavy books around campus.
Plus: both ImageMagick and Tesseract are free.
Installing and Switching Between Extra Desktops / Window Managers
You don't have to commit to one Desktop style. You can install GNOME, KDE, XFCE (among others), and just switch between them.
To switch between the desktops, log out. When you log back in, click the "session" button and select which window manager you want to use. Easy as pie.
To install, you can use Synaptic Package manager, or apt-get (on the command line). However, these methods don't keep track of dependencies, so it's recommended you use aptitude (on the command line) instead:
- GNOME is the desktop used in Ubuntu.
- KDE is the desktop used in Kubuntu.
- Xfce is the desktop used in Xubuntu.
To switch between the desktops, log out. When you log back in, click the "session" button and select which window manager you want to use. Easy as pie.
To install, you can use Synaptic Package manager, or apt-get (on the command line). However, these methods don't keep track of dependencies, so it's recommended you use aptitude (on the command line) instead:
sudo aptitude updateLink in title as always, or here.
sudo aptitude install kubuntu-desktop
sudo aptitude install xubuntu-desktop
Monday, 17 September 2007
DVD-R Discs Seem Blank After Sucessful K3B Burn
Discs burned as Data DVD with K3B defaults
1st problem: really old version on K3B
Install K3B using directions here: http://k3b.plainblack.com/installation
Make sure requirements are installed.
Great generic howto on K3B burning here:
http://ubuntuforums.org/showthread.php?t=218165&highlight=k3b+blank+dvd+after+burn
Similar problem to mine here, ... solution?
https://answers.launchpad.net/ubuntu/+question/3010
1st problem: really old version on K3B
Install K3B using directions here: http://k3b.plainblack.com/installation
Make sure requirements are installed.
Great generic howto on K3B burning here:
http://ubuntuforums.org/showthread.php?t=218165&highlight=k3b+blank+dvd+after+burn
Similar problem to mine here, ... solution?
https://answers.launchpad.net/ubuntu/+question/3010
Monday, 3 September 2007
Lost Running Applications / Programs in Toolbar
A while ago, I was adding and removing applications from the panel, and the spacing between them got all screwy. Next thing I know my list of running applications is gone.
Couldn't find it for the life of me. Gave up trying to find an answer, said "screw it", and just started using alt+tab to switch between running programs. Still annoying though.
Incidentally, I discovered if you move your mouse cursor over the title (top) of a window that's open, using mouse's scroll wheel will make you switch between the last two windows.
Anyway...
Happened to be on irc.freenode.net #kubuntu ... and someone there posted a similar problem. To get back your application list in your toolbar / panel:
Couldn't find it for the life of me. Gave up trying to find an answer, said "screw it", and just started using alt+tab to switch between running programs. Still annoying though.
Incidentally, I discovered if you move your mouse cursor over the title (top) of a window that's open, using mouse's scroll wheel will make you switch between the last two windows.
Anyway...
Happened to be on irc.freenode.net #kubuntu ... and someone there posted a similar problem. To get back your application list in your toolbar / panel:
- right-click on toolbar in an empty spot
- click "Add Applet to Panel" (this is where you say AHHHHHH!)
- click Taskbar and OK.
Import Thunderbird Mail into Kmail
I wanted to import my messages from Thunderbird into Kmail, so I could use Kontact as my entire personal information tool. I could not find a tool anywhere in Kmail / Kontact (or even just right in Kmail) to import mail from another program. After Googling it, I found it should be in Tools -> Import Messages. The odd thing is I didn't have that menu option. Another thing to try is using a tool mozilla2kmail.pl, but that didn't work for me.
Cliff's Notes:
Story:
Kmail 1.9.1 using KDE 3.5.2
Found some wonky directions here, but that seemed too complicated.
I looked up the Kmail (via the menus in Kontact/Kmail). The help file seemed to be out of date, web address gets rerouted here.
A bit of a beef I have with the Kontact web site is that they don't give you the current revision of the entire package, nor the current revision of the components of the package. I looked at FAQ of the Kontact page. I didn't see a link to an IRC channel, but I tried out
The aforementioned mozilla2kmail.pl script had to be run with
To get help you need to type
Did more searching and came up with the Cliff's Notes solution, which works. The only stickler is that when the import runs, it doesn't make it obvious what it wants you to open. I selected the entire mail folder (/home/kat/.thunderbird/fzcc2crp.default/Mail/) which had two folders in it: a "Local Folder" and a "pop.gmail.com folder." This seems to work.
Cliff's Notes:
- make sure kmailcvt is installed. Use Synaptic Package Manager to get it.
- then in Kontact/Kmail use File -> Import Messages to import messages from Thunderbird.
Story:
Kmail 1.9.1 using KDE 3.5.2
Found some wonky directions here, but that seemed too complicated.
I looked up the Kmail (via the menus in Kontact/Kmail). The help file seemed to be out of date, web address gets rerouted here.
A bit of a beef I have with the Kontact web site is that they don't give you the current revision of the entire package, nor the current revision of the components of the package. I looked at FAQ of the Kontact page. I didn't see a link to an IRC channel, but I tried out
irc.freenode.net #kontactThe channel does exist, but appears to be a small developer's channel. No one seemed to be awake.
The aforementioned mozilla2kmail.pl script had to be run with
chmod +x mozilla2kmail.plwhich gave an error that "./home/kat/Mail is not a directory."
sudo ./mozilla2kmail.pl
To get help you need to type
./mozilla2kmail.pl --helpwhich is different than indicated ("mozilla2kmail --help")! This command gives me
"You need to install the perl-doc package to use this program."I install perl-doc using Synaptic Package Manager, but I still get ". /home/kat/Mail is not a directory." after doing a "sudo ./mozilla2kmail.pl"
Did more searching and came up with the Cliff's Notes solution, which works. The only stickler is that when the import runs, it doesn't make it obvious what it wants you to open. I selected the entire mail folder (/home/kat/.thunderbird/fzcc2crp.default/Mail/) which had two folders in it: a "Local Folder" and a "pop.gmail.com folder." This seems to work.
Sunday, 29 July 2007
Installing Microsoft Truetype fonts on Ubuntu
"You can install the MS core fonts by installing the msttcorefonts package. To do this, enable the “Universe” component of the repositories. This is done by default in Feisty. After you do that, use the following command from the command line:
After installing new fonts, you will have to log out and log in again to be able to see and use the new fonts. If you want to avoid this, you can regenerate the fonts cache by issuing the following command:"
$sudo apt-get install msttcorefontsThis will give you the core fonts, but if there are other TrueType fonts that you want installed, it is as easy as copying the font files to the ~/.fonts/ directory.
After installing new fonts, you will have to log out and log in again to be able to see and use the new fonts. If you want to avoid this, you can regenerate the fonts cache by issuing the following command:"
$sudo fc-cache -fv
Thanks to Carthik's Ubuntu blog.
Lost Sidebar in Thunderbird (folders & calendar)
While using Thunderbird, I clicked on the left somewhere, and all of a sudden my folders and my mini-calendar were gone. What happened? I attempted to click and drag on the very left edge where the edge of the window was, but that didn't work.
Tried all the options in the view menu, looked for other menus. Nothing.
Googled it, and came up with nothing.
Went back into Thunderbird, tried again. This time, it worked. My folder list and calendar re-appeared.
BFI sometimes works. You just have to try harder.
The reason this happened is that the resize is "sticky". You can make the width of the folders panel smaller to a certain point, then BANG, it's gone. The same goes for resizing it from nothing to something. If you only drag the mouse a small distance, the folder frame will not resize. If you drag it to a certain width, then the folder pane will pop back up.
Tried all the options in the view menu, looked for other menus. Nothing.
Googled it, and came up with nothing.
Went back into Thunderbird, tried again. This time, it worked. My folder list and calendar re-appeared.
BFI sometimes works. You just have to try harder.
The reason this happened is that the resize is "sticky". You can make the width of the folders panel smaller to a certain point, then BANG, it's gone. The same goes for resizing it from nothing to something. If you only drag the mouse a small distance, the folder frame will not resize. If you drag it to a certain width, then the folder pane will pop back up.
Thursday, 7 June 2007
Lost Menubar in Konqueror
When I was using Konqueror as my file browser today, I got all click-y and accidentally lost my menu. My entire menu was gone. Right-clicking gave me numerous options, including enabling toolbars. However, they didn't work (the menu is is not a toolbar, it's a menu bar). Apparently this syntactical nitpicking makes a difference.
Quick internet search: CTRL + M fixes it.
I wonder if there's a way to enable it with a mouse?
Quick internet search: CTRL + M fixes it.
I wonder if there's a way to enable it with a mouse?
Subscribe to:
Posts (Atom)