xyzio

Browsing through Amazon’s Top 10 Best Sellers

leave a comment »

This project lets you browse through Amazon’s various product categories and view the top 10 sellers for that category.  You can browse down into sub-categories as well as up into parent categories.

I wrote this to learn about Amazon’s Product Advertising API.  Using the API is simple, especially with the sample code provided by Amazon.  Amazon returns a lot of information, so the slightly tricky part was figuring out how to parse the XML to get only the information I need.

 

Amazon Top Ten Browser

 

Written by bleuchez

September 10, 2014 at 4:37 pm

RSS Feed Creator with hosting

leave a comment »

Need a way to get your audiobooks, open courseware, videos, or other content onto your podcast player? The RSS Feed Maker will take your URLs and convert them into a RSS document and give you a URL to give to your podcast player.

The RSS feed is created with Argotic and the files are hosted on Amazon’s S3 file hosting service.

 

 

 

 

 

 

 

 

 

 

 

Written by bleuchez

September 8, 2014 at 11:59 pm

PyCharm vs Komodo IDE for Python Scripting

leave a comment »

Activestate seems to have lost its way with Komodo – their scripting language IDE.  It used to be a fast, light, and highly usable IDE that made debugging easy.   They went off the rails with version 8- it was mostly a UI re-skin with very unstable code, it crashed frequently, froze when opening certain files, and had extremely slow network access.  I called it the ‘so what?’ release.  They fixed most of these issues in rev 8.5 but the high memory usage still remains.  What soured me was paying for a full version upgrade for what was mostly a buggy UI update.

Lately, I’ve been getting into Python and I’ve discovered JetBrains’ free Python IDE – PyCharm.  JetBrains has a moderately priced paid version but what is amazing is that the free version of PyCharm includes a Python debugger.  Compare this to Activestate’s free Komodo Edit which does not include a debugger of any sort.

Plus, the paid version of PyCharm includes subscriptions and upgrades for 1 year.  Activestate requires you to pay $87 in addition to the price you pay for Komodo for a 1 year subscription.

Besides all the price gouging, I’ve found that the free version of PyCharm is a much better Python editor than Komodo.

Here are some great features in PyCharm that are not in Activestate’s Komodo:

Multiple debug sessions.  Want to debug two scripts at the same time?  You can do that with PyCharm.

Typing in the file window highlights all files that match any of the characters.  Komodo only goes to the first match and that is only if you type really fast.  Otherwise it will skip around.

Dropdowns for everything.  PyCharm dropdowns are almost as good as Visual Studio.  In PyCharm I can define a variable as a list/string/dictionary and every time after that I’ll get all associated methods when I type in the period after the variable.  Importing a module?  You’ll get dropdowns for all the module members.

Built-in Python package manager, built-in TODO manager, built-in windows cmd console manager (it even lets you have multiple sessions open), and even a built-in repository browser!

A little lightbulb (similar to ReSharper) pops up when there is an error or the code can be improved in some way.  Clicking on it shows a list of things it can do to fix or improve the code.  It makes the changes for you!

 If you are a Komodo Python user, then try PyCharm.  You will be pleasantly surprised.

Written by bleuchez

August 30, 2014 at 12:40 am

Posted in IDE, review

Tagged with , , , ,

libapache2 mod_mono install freezing during install on Ubuntu at Digital Ocean

leave a comment »

I had a problem with my libapache2-mod-mono install freezing during install when trying to run ASP.NET applications on Ubuntu.

The workaround for this is to open another session and restart/reload apache:

root@xyzio:/home/xyzio# service apache2 reload
root@xyzio:/home/xyzio# service apache2 restart

This is what I would see and the session would freeze at the [OK]:

apt-get install libapache2-mod-mono

Setting up libapache2-mod-mono (2.11+git20130708.6b73e85-2) ...
Using mono-apache-server4...
apache2_invoke: Enable module mod_mono
* Restarting web server apache2 [ OK ]
apache2_invoke: Enable module mod_mono_auto
* Restarting web server apache2 [Sun Dec 08 23:03:01.698809 2013]
[so:warn] [pid 4455] AH01574: module mono_module is already loaded, skipping
[ OK ]

Source:
http://askubuntu.com/questions/135547/how-do-i-set-up-mod-mono-on-11-10

Written by bleuchez

February 5, 2014 at 10:00 pm

AnalogDesert – A Free Android DigitalOcean App

leave a comment »

AnalogDesert is a simple open-source ad-free Android app to check the status of your Digital Ocean Droplets.

Download it here:
https://play.google.com/store/apps/details?id=com.xyzio.analogdesert

Initial Setup:
Go to the settings menu and enter your Digital Ocean Client ID and API Key.
To get your Digital Ocean Client ID and API Key, log into your account and click on API.

Do you see bugs or want more features? Contact Me!

Analog Desert supports the following:
Droplets – Create, Destroy, Details, Disable/Enable backups, Password reset, Power On/Off, Reboot, Rebuild, Rename, Resize, Restore, Shutdown, Snapshot and Visit.
Images – View all global & personal images, destroy, transfer
Sizes – View sizes
Domains – View domains, domain information, create domains

 

Source:
https://bitbucket.org/xyzio/analogdesert

 

 Screenshots:

Analog Desert New Droplet Menu for Digital Ocean

New Droplet

Droplets Menu

Destroy Droplet Digital Ocean

Destroy Droplet

Written by bleuchez

August 11, 2013 at 3:06 pm

Posted in DigitalOcean, Programming

Tagged with , , ,

Private Internet Access Review – Only The Paranoid Survive

with one comment

I bought a 1 year subscription to Private Internet Access (https://www.privateinternetaccess.com) about three months ago in order to protect my privacy when traveling and to ensure that my information was protected at my house.  I live in a high density neighborhood where I can see at least 10 WiFi access points from my laptop. At home I regularly check my router logs to ensure there are no new users but I’m paranoid that someone will hack in and cover their tracks.

Private Internet Access gives you access to VPN clients in many countries. They assign you a username and password when you sign-up and this is used to log into their servers worldwide. They state that they keep no logs and store no data. However take this with a grain of salt and avoid passing sensetive information via non-HTTPS connections. For additional protection you can daisy-chain your own server in the flow to get more privacy.

I chose Private Internet Access because they were highly rated at the VPN sub-Reddit, they have a representative on Reddit answering questions, and because they offer clients for all major operating systems.

So far I’ve had no issues and they say they don’t throttle bandwidth.  My usage is light but I have a feeling I might be restricted if I tried to pull 10TB of data through their servers.

Cost:

Private Internet Access is relatively cheap.  At one year, it is cheaper than hosting your own VPN server and definitely much less hassle.  A one-year subscription costs $40, one month is $7, and six months costs $36.  It is apparent that they steer you towards the 1 year plan.  They occasionally have discounts so keep your eye on the Reddit VPN page.

Android Client:

The Android client is very easy to use. Its usage can be summarized in three steps:
1) Download and install from the Android Play Store
2) Launch app and enter your username and password
3) Click the ‘Connect’ button

You can optionally select a server but it defaults to picking the fastest host.

A nice feature is that the app shows the current up/down transfer rate as well as the total usage for that session. However when transitioning from wireless to the cell network and vice-versa the app introduces additional delay as it gets disconnected and needs to re-authenticate with the VPN server. This is annoying because it usually happens when I’m walking out of a building checking my messages or getting directions.

PIA Android Login Screen

PIA Android Login

PIA Android Select Server Screen

PIA Android Select Server

PIA Android Status Screen

PIA Android Status Screen

Windows Client:

The Windows client is equally easy to use. Installation and execution can be summarized in four steps:
1) Download from Private Internet Access
2) Run executable
3) Enter your password
4) Run

PIA Windows Screen

PIA Windows Connect Screen

PIA Windows Login Screen

PIA Windows Login Screen

Linux Client:

Linux client setup proved to be difficult. Rather than providing a client, PIA provides instructions to perform the setup. While the instructions worked in a graphical Ubuntu VM on my laptop, they do not work on my non-GUI DigitalOcean VPS. I was able to figure out an alternate way to perform the setup however it took a lot of digging. It would be nice if PIA incorporated instructions for manual setup and connection on their site.

Pros:

  • Privacy
  • It is cool to connect to server in Romania and see the Google Romania page show up.  However using it is impractical due to latency
  • Multiple sites around the world to reduce delay wherever you go
  • Easy setup

Cons:

  • Android client introduces delay as it re-authenticates when transitioning between data providers
  • Private Internet Access says they don’t log data and that they would reject PRISM monitoring requests.  Take this with a grain of sand and always encrypt your data!  This does not guarantee that your data is not being monitored at PIA’s outgoing ISP or that your home computer does not have a keylogger.  Or if they are really watching you!

Final Thoughts:

It is hard to see if connecting to Private Internet Access is protecting me. I’ve used it at home, around town, and when traveling in hotels, coffee shops, and airports. As far as I know none of my data has been compromised. I think it is hard to see if it effective, but it is an additional layer of protection and you protect yourself just by being more difficult to hack than the next guy. Ultimately the only way to be safe online is to not go online!

Written by bleuchez

July 4, 2013 at 9:34 pm

Mighty Plugs – World’s Finest Ear Plugs Review

leave a comment »

I recently bought some Mighty Plugs Earplugs to help block noisy co-workers at work and to use while traveling. The earplugs are marketed as the ‘highest blocking‘ and ‘most comfortable‘ earplug in the world. They have a sticky putty like consistency which helps them mold to the shape of your ear. This stickiness allows them to attach to your ear without being too invasive.
My choice was between purchasing these or the Howard Leight Laser earplugs. I ended up getting the Mighty Plugs because I hadn’t tried them before and they seemed interesting. I’ve been using the Mighty Plugs for six months and so far they’ve been good. They mold to your ears and are good at blocking external sound. However they are expensive, sticky, and get nasty after a while.

I’ve decided to go with a pros/cons format instead of my usual review style. Read more below.

Pros:

  • Mighty Plugs don’t go too far into the ear canal. The earplug molds into your ear cavity and canal to create a full seal. They form a good seal but can come out while sleeping or chewing. The Leight Laser plugs are more invasive and can also come out in similar conditions.
  • 20 year shelf-life (so they say). Leight Laser earplugs will probably last longer due to their synthetic construction.
  • Mighty Plugs last 25-30 uses but they pick-up dust and residue over time which reduces their effectiveness. Leight Laser earplugs last 2-3 uses and you can afford to have a new pair whenever you want. You also are not pushing in old buildup into your ears. Over the long run the Howard Leight earplugs are cheaper, 6 pairs of Mighty Plugs at 30 uses means one pack of 6 can be used 180 times. A box of Howard Leight will last at least 200 uses and you can get a new pair every time.

Cons:

  • Sticky lanolin leaves a tacky residue on fingers and on ears.
  • Earplus are sticky so they pick up dust, stuff from your fingers, and earwax from your ears. Re-use means you are pushing this stuff into your ears regularly. You also have to ensure you have clean hands before you start or you’ll contaminate the Mighty Plugs for the rest of your uses.
  • Need to knead them for 30-40 seconds before first use and then 15-20 seconds for each subsequent use. Leight Laser earplugs are ready to go in about 2-seconds: squeeze, insert, and hold in place for a moment.
  • Very expensive – 6 pairs for $20 plus $5 for shipping. Leight Laser earplugs are $20 for 200 with free shipping if ordering over $25.
  • Shipping is padded by $1 when ordering from Amazon.com – Mighty Plugs performs a bait and switch to show matching price from their site but then rip off the user via shipping. This is probably done to make up the money they pay to Amazon for their commission since Amazon does not charge commission on shipping charges.

Overall:
This is a decent earplug. However, the tackiness, residue build-up, and expense are major detractions. Their tendency to break their seal is about the same that of regular earplugs coming out. I think they are good for office and other clean environments. They are useless for outside work due to their tendency to pick up dust from the air and your fingers.

Written by bleuchez

July 3, 2013 at 5:41 pm

Posted in review

Tagged with , , ,

Follow

Get every new post delivered to your Inbox.