25C3: Solar-powering your gear

posted Dec 27th 2008 8:19am by
filed under: cons, peripherals hacks, solar hacks

solar

The 25th Chaos Communication Congress is underway in Berlin. One of the first talks we dropped in on was [script]‘s Solar-powering your Geek Gear. While there are quite a few portable solar products on the market, we haven’t seen much in the way of real world experience until now.

Read the rest of this entry »

Removing fisheye distortion

posted Dec 21st 2008 3:30pm by
filed under: digital cameras hacks, downloads hacks

fisheye

Reader [alex] had a commercial plugin for fisheye lens correction and wondered exactly what kind of magic was behind it. Was it actually doing line detection? He dropped in a square grid to see what it spit out. The warped result indicated that the transformation was completely independent of the photo’s content. Using this result as a guide he was able to create a similar transform using Warp and save it as a script. The script generates almost identical results and now he knows exactly how little magic is involved.




Python 3000 officially released

posted Dec 3rd 2008 4:11pm by
filed under: downloads hacks, news

python3k

Python 3000 has officially been released. The final bug, Issue2306, “Update What’s new in 3.0″ has been closed. Python 3000, py3k, Python 3.0, is a major release for the community. [Jeremy Hylton] pegs the earliest mention of the beast to January 2000. The new release has grown from PEP 3000, opened April 2006.

Py3k breaks backwards compatibility with previous releases in order to reduce feature duplication and promote one obvious way of getting things done. The first major change is that print is now a builtin function and not a statement. int and long have been unified, and integer division now returns a float. Py3k uses concepts of “text” and “data” instead of “Unicode strings” and “8-bit strings”. You can read about many of the changes in What’s New In Python 3.0. Some new features have been backported to Python 2.6 so you can start implementing them in your current code to ease the transition. 2.6 also has the -3 command line switch to warn you about features that are being removed or changed. Finally, the tool 2to3 is a source-to-source translator that should automate a lot of the changes.

Documentation for the new release is online. Source packages and binaries are available now.

[via johl]

Data manipulation with Sprog

posted Jul 6th 2008 6:41pm by
filed under: misc hacks


Linux Journal’s [Mike Diehl] pointed out an interesting tool for manipulating data: Sprog. Sprog lets you assemble machines to complete specific data processing tasks. You snap together gears that read input data, process the data in different ways, and then output the results. The input could be a file, URL, database query results, or even MIDI notes. For processing you could be matching patterns, selecting csv columns, converting to uppercase, or executing arbitrary Perl code amongst many other options. Finally the output could be shown in a text window, inserted into a database, written to a file, or sent to your spreadsheet application. Sprog’s site has a section for user uploaded gears and a recipe section for examples like this crossword puzzle solver. Everything Sprog does could be done with scripting, but this is a simple graphical tool that could help you solve a problem without having to know the gory machinery behind it.

Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

Send us your hacks






     




Hacks

Resources