Synapseal Arclights

Random neuronal meanderings

Warming the footsies
26th December 2011

It's cold out thar!

The economy is in the crapper, so if you've turned the heat down to save some money, but have trouble sleeping due to the cold, this hint may be of help.

Just take an empty 2 liter soda bottle and fill it with boiling water (be careful, the boiling water can burn you).
Make sure to fill it to the absolute top, and tighten the cap on it. If you don't fill it up to the top, as the water cools, the bottle will contract. Don't worry about the bottle melting, it's not going to melt except under direct flame (thousands of degrees).

Wrap the hot bottle in a bath towel or old sweatshirt (direct contact with the plastic can cause burns) and stick it down by your footsies (or wherever warmth is needed).

Stay warm!


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: general.
On watermarking images
14th June 2011
 

There are several ways to watermark images, and several reasons why you should.

We're not going to discuss the "why", but one method of the "how".

There are two common ways to add a watermark: a semi-transparent image and a text string. Most folks think of the semi-transparent image when they think "watermark", as this is the most common. Here is an example of semi-transparent watermark: Draco rear block

Working with a semi-transparent image can be a pain, so IMHO, using a text string is easier (everyone has fonts on their system, but not everyone can make a semi-transparent image). You can see examples of a text string watermark at my Vz58 pictorial.

I've wrangled some scripts together that run on linux, may run on OS X and probably won't run on Windows. Two of these are batch scripts and will add a text string to all images in a directory with the press of the "Enter" key.
Two of them are "single file" use scripts that are preset to use 32 pixel and 16 pixel sized fonts.

All scripts are set to use Times New Roman. Since they're all open source, you can change the settings as you like.

You can find these scripts at the Novarata wiki

Enjoy!


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
Vampire solvent
10th June 2011
 


This is a bulb of garlic
What do you get when you stuff 4 bulbs of garlic and 8 habanero peppers in a mason jar with apple cider vinegar?

Vampire solvent.


This stuff is SOOO garlicky, it's gonna need to be cut with regular cider vinegar before you can use it on your salad.


OTOH, just opening the lid will instantly cause any vampire within 300m to explode. . .

The habanero content makes this unsuitable for weak sisters or unsuspecting children.


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: food.
Convert html page to a PDF document (with images)
9th June 2011
 

>
Today we'll be going over how to convert a html page to a PDF document. Pictures linked the html page are will be included1.
Yes, you can "print to PDF" from a lot of programs, but that method can include artifacts you didn't want. The following procedure will produce a PDF that is virtually identical in content to the HTML page it was spawned from.
This exercise requires GhostScript and html2ps2. Windows users will also need CYGWIN for the bash shell and Perl if they want the "rename" command to work.
GhostScript is pretty standard in linux, and is available for OS X and Windows. html2ps will probably need to be installed via your linux package manager if you run Debian or Ubuntu (or use Debian/Ubuntu repos), or compiled from the source code OS X and Windows (Windows users'll need cygwin installed to do this).

This script is really simple. It takes a single html document3 as input, and turns it into a postscript document, then turns the postscript document into a PDF. If you want to turn a bunch of html pages into one PDF, you can modify this script from t'other day.

Here's the really quick-n-dirty script. Copy and paste it into a text document (but don't use .txt on the end):
#!/bin/bash
html2ps "$1" > "$1".ps &&
ps2pdf *.ps &&
rename -v 's/\.html\.pdf/\.pdf/' *.pdf &&
rename -v 's/\.htm\.pdf/\.pdf/' *.pdf

You'll need to tell the system (linux and OS X) that the script is an executable. To do so, in a terminal run
chmod +x scriptname


Line 1 tells the system it's a bash shell script
Line 2 tells bash to run the html2ps command on whatever html file you pointed it at and name it whatever-its-name-is.ps
Line 3 tells bash to call ps2pdf and convert any files ending in .ps to a PDF
Lines 4 and 5 tells bash to call the rename command and change the converted PDF filename from 01-blahblah.html.pdf to 01-blahblah.pdf (this step is aesthetic, and won't affect how the PDF actually works.


I wrote this script because I think the resulting PDF is much more professional in appearance (no "page numbers" or "file:///blah/blah/blah.html" appearing mysteriously).

[1] If you want images in your PDF, they'll need to be linked properly. That is a howto for another day.
[2] I'm not sure where the home page is, but you can also download the source from Debian
[3] If your original HTML document is not within specifications, either html2ps or ps2pdf can take a dump on you. Please validate your html for best results.




Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
Convert jpg images to a PDF document
5th June 2011
 

Today we'll be going over how to convert a directory full of jpg images to a PDF document.
This exercise requires ImageMagick1 and PDFTK. Windows users will also need CYGWIN for the bash shell and Perl if they want the "rename" command to work.
Imagemagick is pretty standard in linux, and is available for OS X and Windows. PDFTK will need to be installed via your linux package manager, and binaries can be downloaded for OS X and Windows.

The most common response when asking Google "convert jpgs to pdf" is:
convert *.jpg output-name.pdf
and this is okay if you only have a few jpegs, and they're not very big.
The reason for this is that when doing this operation, the system has to cache each and every JPG in memory AND also it has to cache a temporary PDF while it converts and adds each JPG. If you've got 100 JPGs or a couple dozen huge JPGs, you can crash your system doing it this way.

I found part of this script on one of the helpful linux forums and it's much easier on the system, as it converts each JPG individually to a PDF and then concatenates all the PDFs into one big one at the end of the operaton.

To get the ball rolling, you'll need to get all your JPGs in one directory.
You'll then need to make sure they're named with number prefixes. If you have fewer than 99 JPGs, you can name them 01-blahblah.jpg through 99-blahblah-jpg. If you have several hundred, use 001-blahblah.jpg through 999-blahblah.jpg. These numbers are the order in which your JPGs will be made into pages. It's very important to have a leading zero for single-digit numbers, as in linux and OS X, "10" comes before "1", but not before "01".

Now here's the script that does it:
#!/bin/bash
for i in *.jpg ;
do convert $i $i.pdf ;
rename -v 's/\.jpg\.pdf/\.pdf/' *.pdf;
done
pdftk *.pdf cat output book.pdf

You'll need to tell the system (linux and OS X) that the script is executable. To do so run
chmod +x scriptname

Line 1 tells the system it's a bash shell script
Line 2 tells bash to look for all files ending in "jpg"
Line 3 tells bash to call the ImageMagick 'convert' command and convert each JPG to a PDF
Line 4 tells bash to call the rename command and change the converted PDF filename from 01-blahblah.jpg.pdf to 01-blahblah.pdf (this step is aesthetic2, and isn't necessary for the production of the final ebook - I'm just finicky about file names)
Line 5 tells bash "You're done! Miller time!"
Line 6 tells bash to call pdftk and concatenate all the pdfs it finds in the directory to one file named 'book.pdf' (you can change this after the script is done)

So there ya go, a method to make PDFs out of a bunch of JPGs without stressing your system.


[1] This script can be modified so that it works on any image type that ImageMagick recognizes (which is a bunch).
[2] If you don't want the rename part, just put a # in the front of that line (like line 1) before you run the script.




Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
Create torrents from the command line
24th May 2011
 

I just found the py3createtorrent python script today, as I was trying to create a torrent file for the GNOME 3 DVD.

I'd been using ktorrent to create torrents (and rtorrent to seed them), but since I don't run KDE or ktorrent, (I run windowmaker) it's kind of a PITA.
I love my command line, and was happy to find this python script.

Like all things linux, it takes a bit of work at the beginning to configure it, but once that's done, it's as simple as
py3createtorrent file-or-folder-name trackers

Part of the configuration allows you to add as many tracker URLs as you like, and you can call them by whatever you named the array ("trackers" in the above example), whereupon it adds all those URLs when it generates a torrent.

It requires python 3.x, and it's licensed under the GPL. It runs wherever python does, which includes (among others) linux, OS X and Windows.

HOORAY! No more adding each tracker URL one at a time (GOODBYE KTORRENT)!

py3createtorrent - RobertNitsch.de


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
GNOME3 Hybrid DVD
24th May 2011
 

GNOME is a desktop environment / graphical user interface that runs on top of a computer operating system. It is composed entirely of free and open source software and was created by two Mexican programmers, Miguel de Icaza and Federico Mena. It is an international project that includes creating software development frameworks, selecting application software for the desktop, and working on the programs that manage application launching, file handling, and window and task management.

GNOME is part of the GNU Project and can be used with various Unix-like operating systems, most notably Linux and as part of the Java Desktop System in Solaris.


This is a live demonstrator of GNOME 3, and contains some freely licensed demo files, some of which are:



I couldn't find a torrent for this, so I made one: GNOME_3-Hybrid-DVD.iso.torrent

More info


Spread the love, y'all.


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
Prozilla - The download accelerator for linux
23rd May 2011
 

From http://www.prozilla.genesys.ro, which has disappeared in the ebb and flow of the internet data stream.

ProZilla is a download accelerator for Linux which gives you a 200% to 300% improvement in your file downloading speeds. Its features:
  • Supports FTP & HTTP including redirection (ProZilla & ProzGUI).
  • Resume Supported (ProZilla & ProzGUI).
  • Complete acceleration: The file will be downloaded as fast as possible as your bandwidth allows if not otherwise specified (ProZilla & ProzGUI).
  • Unlike certain other download accelerators available for Linux, this really works.
  • The number of connections that prozilla uses can be specified (ProZilla & ProzGUI).
  • FTPsearch support now permits fetching Mirror locations and pinging them and selecting the fastest server is automatically done (ProZilla & ProzGUI).
  • Downloading the same file in parts from several servers at once to increase speed (ProZilla & ProzGUI).

I use this program a lot. It really speeds up your downloads if you're downloading from a server that limits its speed.

Prozilla will use concurrent threads (you specify how many in the ~/.prozilla/prozconfig file) to download any file, but it works best for large files.
You'll need to be careful with the thread count, as you can overwhelm your down speed if you use too many.

I have a patched version of the last prozilla release prozilla-2.0.4-patched.tar.bz2
This source code should compile on any modern Debian-based distro (it compiles locally on Debian and Ubuntu).

You're on your own with the ProzGui (I prefer the command line when possible).


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
The best Android tablet for the money . . .
23rd May 2011
 

. . . isn't an Android tablet at all.

It's a Barnes & Noble Nook Color.



The Nook Color is a very powerful device for its price point. At the time of this writing, you can get a Nook Color for $225.
Here are its specs:
  • PCB: Foxconn ML1 S 94V-0
  • CPU Processor: ARM Cortex A8-based Ti OMAP 3621 @ 800 MHz (same processor as Droid 2 and Droid X)
  • GPU Processor: PowerVR SGX530 Graphics Rendering: Open GLES1.1/2.0 Hardware Scaling: 854x480 scaled to 1024x600 Video Formats: .3GP, .MP4, .3G2 ** Video Codecs: H.263, H.264, MPEG-4, ON2 VP7 ** Image Formats: JPEG, GIF, PNG, BMP ** (same GPU as Droid 2 and Droid X)
  • RAM: 512MB Hynix H8MBX00U0MER-0EM MCM (Stacked Chips 2x256MB each die mDDR)
  • Internal Flash: 8GB Sandisk SDIN4C1-8g
  • Removable Flash: 32GB via microSDHC
  • Radio: Chip ID Ti wl1271 (kernel reports wl1273) Chip supports bluetooth transmit/recieve and fm radio functions through the same antenna, but is not enabled in software drivers. Connectivity: 802.11b/g/n Security: WEP/WPA/WPA2/802.1x Mode: Infrastructure
  • Display: 7" 1024x600 IPS Display w\VividView Cypress Semiconductor TTSP Gen 3 (TMA340) Touchscreen , kernel driver , reference LG Display LD070WS1 (SL)(02) LED Backlight Pixels per Inch: 169 Aspect Ratio: 16:9 Colors: 16 Million Viewing Angle: 178° (same as HTC 7 Surround and HTC 7 Mozart)
  • Audio: Ti TLV320DAC3100 Codec 3.5mm Headset Jack (TRS 3-Pole) - no mic input Single Rear Speaker PWM Headphone Amp Headphone Detection Mic Amp and ADC (Mic input not available) Audio Formats: .3GP, .3G2, .MP4, .AMR, .MP3, .MID, .XMF, .MXMF, .RTTL, .OTA, .IMY, .WAV, .OGG, .ACC ** Audio Codecs: ACC, ACC+, AMR, MP3, MIDI, LPCM **
  • Power Management: Texas Instruments TPS65921 PMIC Integrated Power Management IC with 3 DC/DC's, 4 LDO's, USB HS Transceiver
  • Battery: "Barnes & Noble" labeled 3.7V 4000mAh 14.8Wh Li-ion battery Battery Life: ~8 hours
  • Physical Specifications Dimensions: 8.1" (205mm) L x 5" (127mm) W x 0.48" (12.2mm) D Weight: ~15.8oz (~422g)
  • Micro-B USB 2.0 High-Speed
  • Accelerometer
  • Input Virtual QWERTY Keyboard On-Screen Soft-Keys ** 'n' Home button Power\Lock button Volume Up\Down buttons

So let's see. .
☑ High-horsepower hardware
☑ Can run Android
☑ Can run Android w/o needing to be a nerd to do it (as easy as putting in a memory card).
☑ Can run Android w/o voiding any warranties (this is the best part, IMHO).
☑ Your Android operating system and user environment are secure, as you can take out the microSD card and it all goes with you.

No, it doesn't have GPS, phone, cameras or microphones, but if you can do without those features (and the price that goes with them), this could be the Android tablet you've been looking for.


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: technology.
Prophet?
21st May 2011
 

Was someone reading from the wrong calendar?

Oh, wait. . .
But of that day and hour knoweth no man, no, not the angels of heaven, but my Father only.
                                                                                                             - Matthew 24:36

Silly false prophets, stirring up much ado about nothing (but I'm sure Mammon was somehow involved).


Bookmark and Share  Want to discuss this? Have a comment for the author? Mosey on over to the Novarata Forums and let us know what you think.


Tags: americanisms.

  RSS feed

Created by Chronicle v4.5

fortnight-latitude