Posted: July 23rd, 2013 | Author: admin | Filed under: .Net, Subversion, Visual Studio | Tags: automatic, build, revision, subversion, subwcrev, svn, wcrev | No Comments »
Pre-requisites: Tortoise SVN, Visual Studio
Posted: January 10th, 2013 | Author: admin | Filed under: Uncategorized | No Comments »
Shutdown function should suspend:
System -> Settings -> System Powersaving -> Shutdown function: Suspend
Posted: December 28th, 2012 | Author: admin | Filed under: Uncategorized | No Comments »
Guide to openelec, tvheadend, XMLTV, and a working PVR with hdhomerun
Change tuner type to DVB-C
Make a copy of dvbhdhomerun.sample to dvbhdhomerun.conf
Open \\xbmc\Userdata\addon_data\driver.dvb.hdhomerun\adapters and copy the names of the two tuners to dvbhdhomerun and set their types (just follow the instructions in the config file.).
Follow step 3 in the link above (“Click “Add DVB Network by location…” etc.)
In the web config in Configuration -> TV Adapters: After all channels have been configured, disable “Autodetect Muxes” and “Idle Scanning“. Having these enabled completely destroyed the stream from TVHeadEnd, making the image look garbled and stuttering. It looked like a low bandwidth connection or bad signal.
Posted: October 4th, 2012 | Author: admin | Filed under: Linux, XBMC | Tags: s3, wake-on-usb, xbmcbuntu | No Comments »
In XBMC Eden, the power to the USB ports is cut when S3 is entered. It is therefore impossible to wake the system using the MCE remote or any other device connected via USB.
The following two fixes in combination resolves this problem:
Getting power to usb when in sleep
HOW-TO:Enable Wake-On-Device for Ubuntu
Posted: October 4th, 2012 | Author: admin | Filed under: Linux, XBMC | Tags: Linux, samba, share, xbmc, xbmcbuntu | 4 Comments »
Samba is not included with XBMCbuntu (at least in 11.10), so first we have to install it:
sudo apt-get install samba
Open Samba’s configuration file in an editor
sudo nano /etc/samba/smb.conf
Scroll down to the bottom of the file and add the following sections, which will create a public share with read/write access without password validation:
workgroup = Workgroup
netbios name = XBMC
server string = XBMC Server
log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
dns proxy = no
path = /media
public = yes
only guest = yes
writable = yes
force user = xbmc
The above configuration example shares everything under the /media directory in a folder called “public”. The “force user” property must be set to a user with write access to the directory being shared. All files and directories will appear to have been created by this user.
Run “testparm” to check if your Samba configuration is parseable. For configuration changes to take effect, the Samba daemon can be restarted with
sudo /etc/init.d/smbd restart
The following screenshot shows my XBMC box sharing the /media directory which contains mount points for two harddrives (ingeniously named according to their capacities…):
Posted: April 30th, 2012 | Author: admin | Filed under: Linux | Tags: dd-wrt, firmware, linksys, router | No Comments »
These are the steps I took to flash a Linksys E2000 router with a DD-WRT firmware.
- 30/30/30 Reset
- Upload dd-wrt.v24-18024_NEWD-2_K2.6_mini-e2000.bin via Linksys firmware upgrade page from ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2011/12-20-11-r18024/broadcom_K26/
- Wait 5 minutes after upload completed.
- Web interface for DD WRT appears.
- Do a 30/30/30 reset again.
- Wireless > Advanced Settings enter 50 in the Tx Power entry. This should make for less Tx/Rx Errors and help the unit run cooler.
- Initital DD WRT firmware flash must be a trailed build. A trailed build has “*e2000.bin” in its name. Following flashes must have “*e2k-e3k.bin” in their name.
Posted: April 10th, 2012 | Author: admin | Filed under: ant, Debugging, Java | Tags: ant, Eclipse, Java, remote debugging | No Comments »
Sometimes you run into a test that works when run from within Eclipse but not from the command line. To debug the failing test from Eclipse, you can configure the Junit ant task to accept remote debugging sessions.
This can be done by adding the following lines to the junit task:
<!-- For remote debugging from Eclipse -->
<jvmarg value="-Xdebug" />
<jvmarg value="-Xnoagent" />
<jvmarg value="-Djava.compiler=NONE" />
This will make the task wait for an incoming debug connection on port 8787. It is necessary to have the fork attribute on the junit task set to true, because the jvmarg values can only be given to a starting Java virtual machine.
Problem: You have an XML structure in a JQuery object and now you want to extract a string with the raw xml.
Solution: Use the XMLSerializer class. This class provides methods for serializing DOMs and nodes into text or byte streams. In our case, we will call the serializeToString(data) method:
Posted: December 30th, 2011 | Author: admin | Filed under: Linux | Tags: arguments, find, Linux, search | No Comments »
Find all files from current directory and subdirectories
find . -name ‘*.doc’ -print
Finding files by date: http://www.cyberciti.biz/faq/howto-finding-files-by-date/
Show total disk usage of a directory:
du -sh /tmp/somedir