Archive for January, 2013
Here’s how to quickly and easily build spidermonkey-bin from source on Ubuntu Linux.
sudo apt-get install mercurial autoconf2.13 hg clone http://hg.mozilla.org/mozilla-central spidermonkey cd spidermonkey/js/src autoconf2.13 ./configure make sudo make install
I tend to post quite a bit of sourcecode, such as bash scripts and PHP scripts. I use the SyntaxHighlighter Evolved plugin to highlight and colorize the sourcecode, as well as make it easy to copy.
Unfortunately, I’ve noticed that the WordPress built-in visual editor does a great job of mangling the code, especially by HTML-escaping certain characters.
I’ve found that installing the TinyMCE Advanced plugin has fixed the cause of it, as well as providing a ‘replace’ function which I can quickly use to clean up previously-mangled code.
I’ve gone through my posts and hopefully corrected any previously mangled sourcecode. I’d like to say thank you to everyone who has brought a piece to my attention.
I strongly recommend the above plugins.
While finding device IDs to install drivers is extremely helpful, there may be times when you want to find the device ID of a device that already has a driver installed, so as to see if there are newer or more streamlined drivers available.
The following illustrates how to do this on Windows 7.
First, go to Control Panel > System and open Device Manager.
Select a device from the tree and right-click it and select Properties.
On the details tab, drop down the Properties selector and select Hardware Ids.
Read VID is Vendor ID and PID is device ID
Questions, comments, or suggestions? Please leave them in the comments section below. Thank you!
This bash script will read a file containing a list of URLs line-by-line and send each of those URLs to a Synology DiskStation’s Download Manager via the.
Read the comments.
Note that, in user land, it might be easier to simply upload the text file to the Download Station. The below is useful if you want to programatically pass download tasks to Download Station, such as on the update of a web page, etc, etc.
UPDATE: This has been moved to github, here.
If you have any questions or comments on this script, please feel free to comment below. Thank you!
So you’ve got Symform all set up and running on your Synology NAS, and you’ve been contributing space, but now the volume that has your contribution folder is getting full, adn you’d like to move it without disrupting the data that other Symform users like yourself have trusted you with. How to do it? Easily.
In this example, I’ll show you how to move it from volume1 to volume2.
First, stop the Symform service from Package Center.
Next, SSH into your Synology box and move the target directory to it’s new location, in this case, /volume2/SymformContribution
mv /volume1/SymformContribution/ /volume2
Next, edit the /volume1/@symform/lib/node.config file using vi and update the location by finding the line similiar to the following…
… and changing
(Note, this is the same file that’s used to update the incoming port, see this post for more information.)
Save the file, and restart the Symform service.
Questions or comments are welcome in the comments section below. Thank you for reading!