Author Archive > Pau Sanchez

Fast mockup designs

When designing desktop apps, websites, and mobile applications, more than once I have tried using an application like mockingbird or Pencil Project. On one hand, mockingbird, is a web application that can be accessed from any browser and allows you to design multiple pages with different elements. On the other hand, Pencil Project, initially born […]

Continue reading

Job Offer: Software Developer Engineer

We are looking for a SDE for our team in El Campello, Alicante (Spain). The contact details and the offer itself is on the PDF below: https://dl.dropbox.com/u/20600084/JobOffer_SDE-Aug2012.pdf We speak English, we speak Spanish. If you have fluency in any of both, you might apply to the offer. We are looking for passionate programmers who love […]

Continue reading

Manso Hack: Speedup Google App Engine SDK SQLite Database

I was trying to initialize a local database using the Google App Engine SDK, and I was going crazy. –use_sqlite parameter was not even solving my problem. Inserts on the database were really slow, like 10 per second. A nightmare. OK, ok, it is an SDK, it emulates the server… it is intended to be […]

Continue reading

, , , , ,

Manso Trick: Easy way to generate random hex string in Python

Generate a random string in hexadecimal is one of those things that you always have to do, from time to time. As far as I know, the easiest way to do this in python is to import uuid module and run the following code: uuid.uuid4().hex With the call above we have 32 hexadecimal characters string […]

Continue reading

,

MansoTrick: Convert 24h time string to 12h AM/PM format (Python)

Manso trick to convert from 24h time format to 12h (AM/PM) time format in Python def ampmformat (hhmmss): “”” This method converts time in 24h format to 12h format Example: “00:32” is “12:32 AM” “13:33” is “01:33 PM” “”” ampm = hhmmss.split (“:”) if (len(ampm) == 0) or (len(ampm) > 3): return hhmmss # is […]

Continue reading

, ,

Google App Engine SDK 1.4.0 released

The version 1.4.0 of Google App Engine SDK has been released. I would highlight 3 things on this release: The taskqueues are now part of the official API, they are not experimental anymore 😉 They have multiplied by 20 the maximum time of execution on cron tasks and task queues. From 30 seconds to 600 […]

Continue reading

, , ,

Manso Trick: Getting the latitude/longitude from an address

For a project soon to be born (I hope), I’ve been doing a quick research for a way to obtain the latitude and longitude from a geographical address. For example, to determine the latitude/longitude from a totally random address like “Emerson Street, Palo Alto, California”  BTW, Hi Mariano! Thanks for the stay in USA last […]

Continue reading

, , , , ,

Unicode support in Python: Frustrations and Solutions

To be honest, I think the support of unicode in Python before Python 3, being totally honest, is a f*knig nightmare. I prefer PHP 5.x support for unicode (= zero support). One can get just crazy, sometimes things work, sometimes things crash somewhere unexpectly, or they don’t really crash, they just crash when you want […]

Continue reading

, , ,

Serializing native data in Python

For a project I’m currently working on I needed to serialize some structures in Python. The only premise is that they were only made with basic/native Python types, such as lists, dicts, strings, integers, … The thinkgs I was considering were: compact representation fast serialization/deserialization human-readable / human-editable a must So after thinking for a […]

Continue reading

, , , , ,

bbcodeutils: BBCode parser and BBCode to HTML for Python

Yesterday I was looking for a Python module able to parse Bulletin Board Code (bbcode for friends) or able to transform bbcode to HTML. After looking on the Internet I decided to create bbcodeutils a Python module to parse, generate and transform bbcode. I created in a way that I think is really simple to […]

Continue reading

, , ,

prev posts