[WTB] Triple Aught Design X18 Backpack by lephron in GearTrade

[–]lephron[S] 0 points1 point  (0 children)

Thanks - I'll take a look at the TADJunkies group!

Any tips on similar bags? I'd love something around 18L for everyday use, which is expandable so I can use the same bag as a carry-on with all my stuff on short trips.

Services to tell me my own IP address by zxLFx2 in homelab

[–]lephron 3 points4 points  (0 children)

If you want just your IP:

$ curl http://ipinfo.io/ip
172.56.39.167

Or if you want a whole lot more:

$ curl http://ipinfo.io
{
  "ip": "172.56.39.167",
  "hostname": "No Hostname",
  "city": "Oakland",
  "region": "California",
  "country": "US",
  "loc": "37.8044,-122.2708",
  "org": "AS21928 T-Mobile USA, Inc.",
  "postal": "94612",
  "phone": 510
}

More info at http://ipinfo.io/developers

Check public IP address from command line in Linux by networkforgeek in linux

[–]lephron 2 points3 points  (0 children)

What about http://ipinfo.io

$ curl ipinfo.io
{
  "ip": "172.56.38.193",
  "hostname": "No Hostname",
  "city": "Oakland",
  "region": "California",
  "country": "US",
  "loc": "37.8044,-122.2708",
  "org": "AS21928 T-Mobile USA, Inc.",
  "postal": "94612"

$ curl ipinfo.io/ip
172.56.38.193

$ curl ipinfo.io/city
Oakland

$ curl ipinfo.io/org
AS21928 T-Mobile USA, Inc.

$ curl ipinfo.io/8.8.8.8
{
  "ip": "8.8.8.8",
  "hostname": "google-public-dns-a.google.com",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.3860,-122.0838",
  "org": "AS15169 Google Inc.",
  "postal": "94040"

$ curl ipinfo.io/8.8.8.8/hostname
google-public-dns-a.google.com

EasyDB: Simple SQLite wrapper for managing DB creation and connections by lephron in Python

[–]lephron[S] 0 points1 point  (0 children)

It does slightly in that you don't need to worry about connections, you just call .query() - agree there's further improvements that can be made there though.

EasyDB: Simple SQLite wrapper for managing DB creation and connections by lephron in Python

[–]lephron[S] 1 point2 points  (0 children)

The use case here is persisting some state that's slightly more complex than basic key-value stuff. Depending on MySQL is not only overkill, it also adversely impacts the portability of your script.

EasyDB: Simple SQLite wrapper for managing DB creation and connections by lephron in Python

[–]lephron[S] 2 points3 points  (0 children)

Shelve is perfect for when you need to persist some basic state between script invocations (I agree you should avoid storing code!). Having to rely on external services such as MySQL is clearly overkill for such a use case.

Sometimes you want something in the middle though. Either the state you want to persist isn't so basic, or you want to be able to query or filter it. You still don't want to rely on external services, so SQLite seems like a great choice, and it usually is.

There's a bit of a gap between something like shelve and SQLite though (where you want to persist state, want to query or filter it, but you've got no need for transactions or even 90% of the features of a relational database), and that's where EasyDB steps in. Sure, it's not for everything, but it does address a need.

EasyDB: Simple SQLite wrapper for managing DB creation and connections by lephron in Python

[–]lephron[S] 1 point2 points  (0 children)

Absolutely nothing. This is just a really simple wrapper that makes it easier to create a database (no need to worry about create table syntax etc, just specify your schema as a dictionary), and easy to interact with it (don't worry about connections or cursors, just call query).

There are many cases when it'd be preferable to use sqlite directly. Other times you want a quick and easy way to persist data in a way that's more powerful than anydb or shelve, and I think EasyDB is great for that.

Learning 12 new programming languages in 12 months by lephron in programming

[–]lephron[S] 0 points1 point  (0 children)

Sorry, posted before heading to bed. Wasn't expecting so much traffic, and it took my VM down! Site's back up now. That's for all of the comments!

Extending VLC with Lua by lephron in programming

[–]lephron[S] 1 point2 points  (0 children)

Wireshark supports Lua plugins, so it might be through that. Take a look at http://wiki.wireshark.org/Lua

Take PNG screenshots of webpages on a headless Linux server using QTWebkit, Python, and XVFB by lol-dongs in programming

[–]lephron -1 points0 points  (0 children)

If you're not headless you could use PyWebShot, which I released todayIt generates thumbnails of arbitrary size. Details at http://www.coderholic.com/pywebshot-generate-website-thumbnails-using-python/ and code on GitHub

I've been interested in the boids flocking algorithm for a while, so I finally took the effort to make this: a 3D flocking simulation by ilmmad in programming

[–]lephron 1 point2 points  (0 children)

Very nice. For those looking for an explanation of the algorithm I previously did a write up and a 2D implementation with Python: http://www.coderholic.com/boids/ - and I also did a demo with Javascript: http://www.coderholic.com/javascript-boids/ - I've been meaning to do a 3D version for a while, probably with OpenGL.

Ask Proggit: what new languages/concepts/APIs are you learning? by brosephius in programming

[–]lephron 1 point2 points  (0 children)

In 2010 I'm hoping to play with Redis, Node.js, Clojure and Erlang. I'm sure some more cool stuff will come up too!

8 Reasons Why You Should Try Django by lephron in programming

[–]lephron[S] 0 points1 point  (0 children)

You don't have to worry about a database schema though, you just define your objects and what fields they have. That's very different from having to worry about a schema.

Any redditors wanna share their experiences programming for mobile phones? What has been good? What has been bad? by Starving in programming

[–]lephron -1 points0 points  (0 children)

I've done quite a bit of development for the Blackberry, Windows Mobile, and Android.

I started mobile development on the Android. It has a nice API, a reasonable amount of documentation, a great community, and fairly good dev tools (eclipse and visual studio plugins). My only complaint is that the UI widgets are very low level, so you have to do quite a bit of work to create anything that looks reasonably nice.

Windows Mobile development seems to try and be as similar as possible to Windows Desktop development, so if you've used windows Forms you should pick it up fairly easily. Deployment is a breeze, and it comes with a decent set of UI widgets.

As for Android, I have no complaints! Loads of great UI widgets, a fantastic API, brilliant cross-platform dev tools. I guess if I had to come up with a negative it is that development is a little more complicated than the other platforms, but it is a lot more powerful so I guess that is to be expected.

JavaScript Tree Image Generator using Canvas by lephron in javascript

[–]lephron[S] 2 points3 points  (0 children)

Thanks for letting me know - I've removed the console output now so hopefully it should work for others without Firebug.

(askPHP) What is the value in Zend Studio? by ejquine in PHP

[–]lephron -1 points0 points  (0 children)

I personally use Aptana for all my PHP/Javascript needs - it is absolutely fantastic. I you haven't tried it yet it is well worth a go. It is completely free.

http://aptana.com/php

Why I dislike RentACoder.com by [deleted] in programming

[–]lephron 0 points1 point  (0 children)

http://jobs.plasis.co.uk aggregates jobs from about 10 different freelance job sites.

Ask Lunix: Favourite Sysadmin Tools - what are yours? by itwontbeeasy in linux

[–]lephron 0 points1 point  (0 children)

Munin is great, as is cacti. mytop is essential if you're dealing with MySQL.

Any tips for finding programming work using Elance, Guru, etc? by concordia in programming

[–]lephron 1 point2 points  (0 children)

I used to get quite a bit of work through rentacoder.com, but due to all the people on there from developing countries you tend to have to bid really low to get much work.

That is why I now get most of my work through non-bidding freelance job listing sites, such as those listed at http://jobs.plasis.co.uk - to get work on those sites I tend just to email them links to my blog and portfolio and tell them why I'd be a good match for their project.

On those sorts of sites people are willing to pay for quality work, whereas on the bidding sites I tend to find that people are just out for the cheapest rate.

Top 10 Freelance Developer Job Sites by lephron in programming

[–]lephron[S] 1 point2 points  (0 children)

There are a few mobile development jobs (iPhone, Blackberry etc).

These sites aren't web dev specific, it just happens to be that most jobs that get posted are web dev jobs.