Posts

Jumi Plugin Replaces code with HTML

Image
This is most clearly a bug with jumi-3.0.3-2glux and jumi-3.0.4-2glux. Thanks to jimjam from 2GLux for discovering and offering a fix for this. The bug occurs when you use jumi syntax inside a Joomla article. For example: < h1 > Test stuff </ h1 > {jumi [custom_code/hello_world.php]} < h2 > Test stuff </ h2 > Will be replaced with: < h1 > Test stuff </ h1 > < p > Hello World! < /p > < h2 > Test stuff </ h2 > (Assuming hello_world.php only has " < ?php echo "< p > Hello World! < /p >" ? > " in it) To fix this, you will need file access to jumi.php  This is located in the plugins\system\jumi directory. In class " plgSystemJumi ", the first function is called " onAfterRenderer() ". Insert this code into the very beginning of the  onAfterRenderer()  function: /* Begin custom code */ $layout = JRequest::getVar('layout', null); if($layout=...

[Book Review] LMMS: A Complete Guide to Dance Music Production

Image
Image courtesy Packt Publishing http://www.amazon.com/LMMS-Complete-Guide-Dance-Production/dp/1849517045 There's some things you'll learn by clicking through them, then there's LMMS. LMMS has a lot of features that have become expected in a music studio, but without a clear understanding of how to find them and what they actually do (i.e. Envelope) it's just a game of turning knobs, clicking buttons and *hoping* things sound good. The book starts with an introduction to the equipment LMMS (as well as other music software) mimics and ends with some very cool automation stuff such as dynamically changing tempo, volume and some advanced techniques used in music creation. Don't be fooled into thinking this is just a crash course on the LMMS software. The author takes time to explain microphones, keyboards, synthesizers, distortion pedals and much more which is important in an era where many musicians have never touched the physical equipment they are so eage...

Viewing SQL Queries Against AS400

Image
Viewing SQL queries against an AS400 iSeries: Open iSeries Navigator Expand the System (i.e. 10.0.0.1 or PROD400) Expand "Databases"  (*Note:  If Databases does not exist, run a Selective Reinstall of iSeries Access for Windows and Select "iSeries Navigator", "Databases".  On a side note, you may also want to install everything under iSeries Navigator as well as "Data Access", "ODBC" and "Data Transfer", "Base" as well as "Excel Add-In") Expand the System Name (i.e. S10bABC) Right click on SQL Plan Cache Snapshots Click SQL Plan Cache It is strongly recommended to set up some filters to limit the results. (i.e. Set date/time, User, etc) You should be able to read the SQL Queries in the result window.  Click it to view the entire statement.

Lenovo T61 Audio Pops Clicks Ubuntu 12.10

Image
From Ubuntu's ALSA driver bug database [ link here ]: This appears to be an old bug in kernel module snd_hda_intel (see /usr/share/doc/alsa-base/driver/powersave.txt and http://forums.opensuse.org/english/get-technical-help-here/hardware/388736-strange-pop-click-sound-speakers-every-time.html). Strangely however, I only observed this after upgrading to Precise AND installation of a new battery in my T61p Thinkpad. In any case, turning off Intel audio power saving works around the problem:In /usr/lib/pm-utils/power.d/intel-audio-powersavechange the line INTEL_AUDIO_POWERSAVE=${INTEL_AUDIO_POWERSAVE:-true} to INTEL_AUDIO_POWERSAVE=false There's also something wrong with Unity 3D. Well, everything is wrong with Unity 3D, but here's the second bug report [ link here ] -Tres

Showtime Media Center

Image
Ubuntu/PS3 media center: https://www.lonelycoder.com/showtime/

Screenshot Your Web Page

This is a very straight forward sample to get a screenshot to a PNG. <html> <head> <!-- Keep these scripts in order! --> <script type="text/javascript" src="http://html2canvas.hertzen.com/js/jquery-1.7.1.js"></script> <script type="text/javascript" src="http://html2canvas.hertzen.com/js/html2canvas.js"></script> <script type="text/javascript" src="http://html2canvas.hertzen.com/js/jquery.plugin.html2canvas.js"></script> <!--  --> <script type="text/javascript"> function ss() {   $("#content").html2canvas({  canvas: hidden_screenshot, onrendered: function() {alert($("canvas")[0].toDataURL('image/png'));}   }); } </script> </head> <body> <div id="content"><h1>Screenshot Demo</h1><input type=button value="Screenshot" onclick...

Inside a stamps.com USB 5lb scale

Image
Back/Bottom Front/Top  serial el100906a sdc5dice rev3a barcode 804434