#!/bin/sh # lowerit # convert all file names in the current directory to lower case # only operates on plain files--does not change the name of directories # will ask for verification before overwriting an existing file # http://www.linuxjournal.com/content/convert-filenames-lowercase Continue reading
Page 26 of 30
Rails action to send binary data
I have one old application where the attachment is store as an id in the filesystem. The customer wants to have the attachment with the right name. So I have made this small action which accepts the id of the requested object and send the file data.
def send_bios
redirect_to :action => 'bios' if params[:id].blank?
@artist = Artist.find(params[:id]);
contents = File.open(@artist.bios_path,"rb") {|io| io.read}
send_data contents, :filename => "#{@artist.name}.pdf", :type => "application/pdf", :disposition => 'attachment'
end
Bulgarian track:
http://www.gpsenjoy.com/
http://topomaps.info/
http://www.poiplaza.com/
How to save and installed packges
http://www.cyberciti.biz/tips/linux-get-list-installed-software-reinstallation-restore.html
$ dpkg --get-selections > /backup/installed-software.log
# dpkg --set-selections < /backup/installed-software.log
Now your list is imported use dselect or other tools to install the package.
# dselect
Select ‘i‘ for install the software.
Upgrade Debian
http://www.cyberciti.biz/tips/upgrading-debian-sarga-3-to-etch-4.html
Commands
cat /etc/debian_version
Fix the W: There are no public key available for the following key IDs:
4D270D06F42584E6
apt-key update
gpg –keyserver wwwkeys.eu.pgp.net –recv-keys XXXXXXXXXXXXXXXX
apt-key add /root/.gnupg/pubring.gpg
apt-get update
Trac startup script.
I have cracked one bulgarian software for window
I want to start such a list so I will become maintain a Bulgarian list here which I will use for my website www.cenite.com
As a base source I will use this list here
Please submit your suggestions.
Note: I have removed a lot of words from the starting list.
Continue reading
Wow. What a nice idea.
http://code.google.com/p/quipt/
Note: if you want to make the test.html to work checkout and test on http://… it is some beta but it works great only in Firefox
My colegue bl8cki is real fan of making screenshots from web browsers. Those days he tries the python solution. And today he surprised all with one very nice firefox plugin
With this plugin you can use firefox with some command line parameters to make screenshots.
Here is how we will use it
- start the xvfb
mkdir /tmp/tmpfbdir Xvfb :1 -ac -screen 0 1600x1200x24 -fbdir /tmp/tmpfbdir - run the firefox
firefox-2 --display=:1 --no-xshm -height 1024 -width 768 -savepng http://www.cenite.com
Windows solutions
http://webscripts.softpedia.com/script/Image-Galleries/Image-Tools/Website-Thumb-Generator-40121.html
http://web-tourist.net/login/login/view.php?st=1193 h
ttp://www.download32.com/website-thumbnail-generator-software.html
http://www.zubrag.com/scripts/website-thumbnail-generator.php
Multiplatform – I cant manage to compile it:
http://cutycapt.sourceforge.net/ http://iecapt.sourceforge.net/
Python:
http://www.burtonini.com/blog/computers/mozilla-thumbnail-20040614?showcomments=yes#
Firefox
http://pearlcrescent.com/products/pagesaver/
https://addons.mozilla.org/en-US/firefox/addon/1146
Another Linux/Ubuntu way:
aptitude install xvfb xfs xfonts-scalable xfonts-100dpi libgl1-mesa-dri subversion libqt4-webkit libqt4-dev g++
svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt
cd cutycapt/CutyCapt
qmake
make
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.png
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.html --out-format=html
http://khtml2png.sourceforge.net/index.php?page=faq
© 2025 Gudasoft
Theme by Anders Norén — Up ↑
