| |
Big Feet Pajama Co. Announces Launch Of Online Store Las Vegas, NV (ContentDesk) August 19, 2005 -- Big Pajama Co., a premier maker of footed sleepwear for teens and adults today announced the launch of its new online store - www.BigFeetPJs.comThe website showcases Big Pajama Co.'s line of whimsical pajama designs in anti-pill micro-polar fleece, 100% cotton flannel and cotton jersey knit. This line will also be available for the first time at select
Cookies with httplib <p>I needed to do a simple http get in the other day, the only catch was that I had to send a cookie. My first thoughts were that this might be tricky, but in practise it's a doddle. Below is a simplistic example passing a cookie (called "Fish", with a value of "Cod") using Python's <a href="http://docs.python.org/lib/module-httplib.html">httplib</a>.</p>
<pre>
import httplib
conn = httplib.HTTPConnection( "www.example.com" )
Headers = {"Cookie" : "Fish=Cod"}
conn.request("GET", "/fishfinder.html", None, Headers )
response = conn.getresponse()
data = response.read()
</pre>
<p>How hard can it be?</p>
Easy security blanket <p>Back in May del.icio.us announced some changes to their api, in a post curiously titled <a href="http://blog.del.icio.us/blog/2006/05/feel_secure.html">Security blanket</a>.</p>
<p>It took all of two minutes to update my <a href="http://feetup.org/blog/dev/projects.html">linkblogging script</a> (a different url, and https rather than http), source code for which can be found in the usual location: <a href="http://feetup.org/code/py/pydelicious.py.txt">pydelicious.py</a></p>
<p>One gotcha for Pythonistas is that the default win32 build of older versions of Python doesn’t have any ssl support, I’ve tried <a href="http://alldunn.com/python/">Robin Dunn’s drop-in replacement for _socket.pyd</a> and it seems to work fine.</p>
More Delicious tinkering <p>You may have noticed that I’ve given my <a href="http://feetup.org/blog/dev/python/Delicious-Tinker-One.html">linkblog entry generator</a> a slight revision, the output should be a little more informative with links to the tags used, and a link to the other people linking to each item.</p>
<p>As before, it’s <a href="http://www.gnu.org/copyleft/gpl.html" title="GNU Public License"><span class="caps">GPL</span></a> licensed and the source code is available as: <a href="http://feetup.org/code/py/pydelicious.py.txt">pydelicious.py</a></p>
<p>One odd thing I encountered with <a href="http://dealmeida.net/en/Projects/PyTextile/">pytextile</a> was when I tried being too clever and used a definition list instead of nested unordered lists; definition list are pretty easy to do use in pytextile, but they appear to having a flaw in implementation. Their syntax is simple enough, for example</p>
<p>.bc dl. Monty Python:A British tv comedy series which first aired in 1969</p>
<p>would generate:</p>
<dl>
<dt>Monty Python</dt>
<dd>A British tv comedy series which first aired in 1969</dd>
</dl>
<p>It uses the colon character to split the items up, however if you try to use a link in a definition list things start getting strange. The format for a link is "link text":http://example.com and the definition list code spots the colon and split the link over two items! There’s probably a simple way around this but it’s not in my textile skillset yet.</p> Python Quickies... <p>Here's a few nice Python quickies, I know I could have used del.icio.us to
tag them and dump them here, but I wanted to add some more comments than
del.icio.us really allows, so they're here instead.</p>
<p>First off, the invaluable <a href="http://the.taoofmac.com/space/Python/Grimoire">Python Grimoire</a>
a vital resource for someone like me, someone who writes Python too
infrequently and sporadically and hence forgets some of the syntax and the
best <em>Pythonic</em> ways to do routine tasks. Rui's been maintaining it
for a while, but he's now relaunched it in <a href="http://the.taoofmac.com/space/TiddlyWiki">TiddlyWiki</a>
format, this is a great way to read and browse the grimoire, I love it!</p>
<p>Also a couple of nice things from Matt's <a href="http://www.postneo.com/postwiki/moin.cgi/PythonForSeries60">PyS60 wiki page</a>,
the <a href="http://www.bigbold.com/snippets/tags/series60">Series60</a>
tagged items from <a href="http://www.bigbold.com/snippets/">Code Snippets</a> and
<a href="http://simonjudge.com/">Simon Judge's</a> <a href="http://simonjudge.com/pythonfreeware.html">Python freeware</a>,
three handy little PyS60 apps - where's the source Simon? :-)</p>
<p>I've really got to sit down and tinker with PyS60 again, roll on the
26 hour day and the 9 day week...</p>
Del.icio.us tickering, step one <p>More
<a href="http://feetup.org/blog/linkblog/delicious-tinkering.html">del.icio.us tinkering</a>.</p>
<p>As you've probably seen I've got stage one working successfully,
which creates a daily post of my previous day's del.icio.us items.</p>
<p>I've achieved this using a lightly modified version of
<a href="http://dealmeida.net/">Roberto De Almeida's</a>
python script
<a href="http://dealmeida.net/blosxom/en/Programming/Python/delicious.html">pydelicious</a>
- lightly modified because I don't have the libxml2 module to hand, so
I've substituted Aaron Schwartz's
<a href="http://www.aaronsw.com/2002/xmltramp/">xmltramp</a> instead.</p>
<p>I run this script with cron every morning - the
<a href="http://del.icio.us/doc/api">del.icio.us api</a>
is UTC/GMT based so that suits me quite nicely. The script creates a
new text file containing my links (marked up with textile), which pyblosxom
renders as a new blog post.</p>
<p>My code is available here:
<a href="http://feetup.org/code/py/pydelicious.py.txt">pydelicious.py</a></p>
<p>As per xmltramp and Roberto's original my code is GPL licensed. I
like to think of my contribution as standing on the toes of giants...</p>
<p>Progress reports will follow
<a href="http://www.feetup.org/wiki/DeliciousTinkering">on the wiki</a>.</p>
department stores and boutiques."We're proud to showcase these unique sleepwear designs via the World Wide Web" stated Valerie Bent, President of Big Feet. "It gives us a platform to display the brand globally and gives consumers the ability to shop from the comfort of their homes or offices."Big pajamas are unisex in design Big and are offered in sizes X-small through X-large. The line will retail for an introductory price of $39.99 - $42.99. Contact:Valerie BentPresidentBig Pajama Co.(702) 270-9696e-mail protected from spam botswww.BigFeetPJs.com.
|
|