Archive for January, 2012

Fix Unable to connect to xend: Connection refused. ExpatError: no element found

The error message

Unable to connect to xend: Connection refused. Is xend running?

can be caused by a number of issues, but if your xend.log contains lines regarding syntax, such as:

[2012-01-23 11:33:37 5670] INFO (SrvDaemon:227) Xend stopped due to signal 15.
[2012-01-23 11:33:38 6427] INFO (SrvDaemon:332) Xend Daemon started
[2012-01-23 11:33:38 6427] INFO (SrvDaemon:336) Xend changeset: unavailable.
[2012-01-23 11:33:38 6427] ERROR (SrvDaemon:349) Exception starting xend (no element found: line 1, column 0)
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvDaemon.py", line 341, in run
    servers = SrvServer.create()
  File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvServer.py", line 251, in create
    root.putChild('xend', SrvRoot())
  File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvRoot.py", line 40, in __init__
    self.get(name)
  File "/usr/lib64/python2.6/site-packages/xen/web/SrvDir.py", line 84, in get
    val = val.getobj()
  File "/usr/lib64/python2.6/site-packages/xen/web/SrvDir.py", line 52, in getobj
    self.obj = klassobj()
  File "/usr/lib64/python2.6/site-packages/xen/xend/server/SrvNode.py", line 30, in __init__
    self.xn = XendNode.instance()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendNode.py", line 1140, in instance
    inst = XendNode()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendNode.py", line 158, in __init__
    self._init_PPCIs()
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendNode.py", line 270, in _init_PPCIs
    saved_ppcis = self.state_store.load_state('ppci')
  File "/usr/lib64/python2.6/site-packages/xen/xend/XendStateStore.py", line 104, in load_state
    dom = minidom.parse(xml_path)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/minidom.py", line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 926, in parse
    result = builder.parseFile(fp)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 211, in parseFile
    parser.Parse("", True)
ExpatError: no element found: line 1, column 0

there is a good chance your xend database (stored, intuitively, in python syntax…) is suffering from corruption.

It is safe to remove the database but best practice to back it up so rename the directory:

# mv /var/lib/xend /var/lib/xend.bak
# /etc/init.d/xend restart

Gestapo Bootfuck Megaupload, Anonymous Quick on the Draw

A little over a month since the release of the Megaupload Song New Zealand police have arrested co-founders Kim Dotcom and Mathias Ortmann along with two of their underlings today. Some irony at play in that yesterday was Wikipedia/Reddit/etc’s annoying-but-effective SOPA protest/blackout.

Federal prosecutors have accused it of costing copyright holders more than $500m (£320m) in lost revenue. The firm says it was diligent in responding to complaints about pirated material.

The news came a day after anti-piracy law protests, but investigators said they were ordered two weeks ago.

The US Justice Department said that Megaupload’s two co-founders Kim Dotcom, formerly known as Kim Schmitz, and Mathias Ortmann were arrested in Auckland, New Zealand along with two other employees of the business at the request of US officials. It added that three other defendants were still at large.

“This action is among the largest criminal copyright cases ever brought by the United States and directly targets the misuse of a public content storage and distribution site to commit and facilitate intellectual property crime,” said a statement posted on its website.

Read more: http://www.bbc.co.uk/news/technology-16642369

The good news is that the charges sound flimsy at a glance, specifically:

It claimed that the accused had pursued a business model designed to promote the uploading of copyrighted works.

“The conspirators allegedly paid users whom they specifically knew uploaded infringing content and publicised their links to users throughout the world,” a statement said.

“By actively supporting the use of third-party linking sites to publicise infringing content, the conspirators did not need to publicise such content on the Megaupload site.

“Instead, the indictment alleges that the conspirators manipulated the perception of content available on their servers by not providing a public search function on the Megaupload site and by not including popular infringing content on the publicly available lists of top content downloaded by its users.”

Although this is probably true and very common-sense sounding, Megaupload has all the plausible deniability in the world: the argument being made here is that not providing a search engine on your website constitutes criminal intent.

Anonymous was quick to take action:

Hacktivists with the collective Anonymous are waging an attack on the website for the White House after successfully breaking the sites for the Department of Justice, Universal Music Group, RIAA and Motion Picture Association of America.

In response to today’s federal raid on the file sharing service Megaupload, hackers with the online collective Anonymous have broken the websites for the Department of Justice, Universal Music Group, RIAA and Motion Picture Association of America.

“It was in retaliation for Megaupload, as was the concurrent attack on Justice.org,” Anonymous operative Barrett Brown tells RT on Thursday afternoon.

[...]

Brown adds that “more is coming” and Anonymous-aligned hacktivists are pursuing a joint effort with others to “damage campaign raising abilities of remaining Democrats who support SOPA.”

Read more: http://rt.com/usa/news/anonymous-doj-universal-sopa-235/

This promises to be one helluva show!

The Telus LG Optimus One (P500h): Not The Worst Thing Ever

About a year ago I shared my nightmarish adventure on the Keybo2 with you. It’s finally dying and I’ll be moving soon so I decided it was high time for a new phone. In my time with the Keybo, Telus and Virgin began offering actual smartphones on their prepaid plans. Unfortunately, Telus is the only carrier with a true one-number-unlimited feature which I need to tunnel all of my calls through a VoIP incoming/dial-out gateway for unlimited North America calling and great justice.

I was a little wary given my caged experience on the keybo; I expected captive portals and locked down features abound. I talked myself into it though, realizing if I really liked it I would probably return it, drop all the VoIP buggery and get a real plan with an incumbent provider. Imagine my delight when I turned it on and:

  • Connected to my access point
  • Downloaded an SSH client from the REAL android market for FREE
  • Created a VPN and shelled into a server
  • Browsed a bunch of websites
  • Installed and ran a terminal emulator
  • Enabled built-in mobile hotspot (tethering)

At this point I knew I was in love; even though the prepaid data on Telus is crap ($10/250MB), totally unrestricted wifi makes up for that by letting one sync and cache certain apps before heading out. Kudos to Telus for embracing tethering; to tether the Keybo you have to unlock the service menu and grab your PPP credentials then use dial-up modem emulation over BlueTooth or USB.  Unfortunately, the terminal emulator doesn’t really give you any access to your phone unless you install a custom (rooted) ROM. I’m two weeks in and haven’t needed to root my phone yet but if the urge arises expect another article. Interestingly, the NSA released SE Android yesterday but at present it looks like it must be built from source and probably won’t be very noob-friendly for a while to come.

Here are the specs, courtesy of GSMArena:

2G Network GSM 850 / 900 / 1800 / 1900
3G Network HSDPA 900 / 2100
Announced 2010, July
Status Available. Released 2010, October
Dimensions 113.5 x 59 x 13.3 mm
Weight 129 g
Type TFT capacitive touchscreen, 256K colors
Size 320 x 480 pixels, 3.2 inches (~180 ppi pixel density)
Alert types Vibration, MP3 ringtones
Loudspeaker Yes
3.5mm jack Yes
Card slot microSD, up to 32GB, 2GB included
Internal 170 MB user available, 512 MB RAM
GPRS Class 10 (4+1/3+2 slots), 32 – 48 kbps
EDGE Class 10, 236.8 kbps
Speed HSDPA 7.2 Mbps
WLAN Wi-Fi 802.11 b/g, Wi-Fi hotspot
Bluetooth Yes, v2.1 with A2DP
USB Yes, microUSB
Camera  3.15 MP, 2048×1536 pixels, autofocus
 Geo-tagging, face and smile detection, Beauty Shot
Video Yes, VGA@18fps
Flash No
OS Android OS, v2.2 (Froyo), upgradable to v2.3
Chipset Qualcomm MSM7227
CPU 600 MHz ARM 11
GPU Adreno 200
Sensors Accelerometer, proximity, compass
Messaging SMS (threaded view), MMS, Email, Push Email, IM
Browser HTML
Radio Stereo FM radio
GPS Yes, with A-GPS support
Java Yes, via Java MIDP emulator
Features - Social networking integration
- Google Search, Maps, Gmail
- YouTube, Google Talk
- DivX/Xvid/MP4/H.264/H.263/WMV player
- MP3/WAV/WMA/eAAC+ player
- Document viewer/editor
- Organizer
- Voice memo
- Predictive text input

Although the camera’s resolution is no improvement over the Keybo I’m thrilled to finally have automatic, mechanical focus. Now instead of snapping 50 shots to get one decent one I’m down to something like 5. My Optimus shipped with Android 2.3 and a now-defunct app called the LG App Advisor.

Now that I had become introduced to my new toy it was time to get that totally badass animated weather wallpaper HTC Sense UI users have. To do this without purchasing Beautiful Widgets we first replace the default launcher (LG’s kind of sucks anyway) with GO Launcher EX. Then download GO Weather, both available through the Android Market. GO Weather is a beautiful (literally) piece of software that provides three interfaces:

App – This sits in your app tray and has its own video theme. Opening the app provides detailed weather information and updates the weather data.
Widget – There are four different sized widgets that can be included in your launcher; depending on the skin you choose they may display different things.
Live Wallpaper – Set your launcher’s background to the GO Weather Live Wallpaper and download a video theme to get a similar effect as the App.

Next I wanted to grab a few apps that would be handy around the city. TTC Alerts  is probably the neatest, most useful app I have installed so far. When a diversion, delay or cancellation happens on Toronto’s bus, subway and light rail system I am notified by a vibration and red TTC icon in my status bar. Dragging down the status bar gives me the details. When the issue clears up and everything is moving smoothly once more the icon turns green. Essential for anyone who relies on The Rocket.

Another sweet app for TTC users is Transit Now Toronto. You can use your GPS to find the closest bus stop and plan your route. The free version of this app does not support the Alerts function but the TTC Alerts app discussed above makes this sort of moot. If you’re lazy like me you may also like the TTC Subway Efficiency Guide which helps users pick the right place to stand on platforms so they are better situated to stairs and escalators at their destination. Toronto PATH Map is a pocket-sized map of the world’s largest underground shopping complex.

Being a man of the province I also downloaded Go Mobile from Ryerson University. Go Transit is Ontario’s inter-municipal transit system, it operates a combination of diesel-electric locomotives and coach busses to interconnect the towns and cities of Southern Ontario. My biggest complaint about this app is it requires a data connection to even get to the main menu. I feel the bus and train schedules could at least be cached daily. A minor gripe is that it is impossible to plan a route end-to-end where there is a connecting bus or train.

Speaking of caching, data is going to cost a lot on a prepaid plan so anything we can grab while at home or near a hotspot is golden. Nowhere can I see this being more beneficial than with GPS navigation. The apps that came loaded on my droid – and many of the third party apps out there -  rely on a data connection and Google Maps. Fortunately, MapDroyd has you covered: you can download a pre-compiled map of a given geographical area to your SD card .

That brings me to entertainment: with all of the weather and TTC updates and bells and whistles going on in the background non-stop I expect to be chewing through my 250MB quota without even using the connection. Obviously, browsing youtube is not going to be an option on the road. In addition to audio and video files off the PC I have found these interesting apps which will let you store their content for offline viewing:

  • The Toronto Star – News notifications, background synchronization and off-line viewing of one of Canada’s most respected news outlets.
  • TED Air – Download videos of TED talks to watch at any time. Very slick looking but also very crashy. I have had a _lot_ of problems with this one.

To track my data usage I’ve been using DroidStats because it’s one of few which track wifi in addition to 3G. DroidStats also comes with 4 different sized widgets to keep you informed of your quota usage on the launcher.

I’ve decided to keep this phone for the time being. The wifi combined with $10 data plan and one-number-unlimited still make it more economical for me to put up with routing my calls through VoIP than ponying up for a real phone on a proper data plan. It’s a big shock for me, giving Telus a good review but I’m so happy to finally have a cellphone that DOES things.

For $99 I have no regrets. This time.

Return top
foxpa.ws
Online Marketing Toplist
Internet
Technology Blogs - Blog Rankings

Internet Blogs - BlogCatalog Blog Directory

Bad Karma Networks

Please Donate!


Made in Canada  •  There's a fox in the Gibson!  •  2010-12