Syntax Highlighting in Django
I am currently working on a project with Django A Python web framework ,
It will be a pastebin application , all good pastebins have syntax highlighting … I just wanted to show you how I did it … it can be useful for other projects,
1 def syntax(value,extension): 2 from pygments.lexers import get_lexer_for_filename 3 from pygments import highlight 4 from pygments.formatters import HtmlFormatter 5 "Highlights the syntax of a file based on file extension" 6 lexer = get_lexer_for_filename("file." + extension, stripall=True) 7 formatter = HtmlFormatter(linenos=True) 8 result = highlight(value, lexer, formatter) 9 return result
Sorry for the lack of posts , I will have more snippets up soon
Hacking your :CueCat
My name is Dan Keenan, and Mike had invited me to contribute to his blog. This an 11-minute video I put together almost a year ago on how to hack you single-board :CueCat.
Tags:tech technology hacks hacking cuecat video video+tutorials tutorials tech media iptv
Hak.5 Episode 2×04 is out!!!
A brand new episode of my Favorite iptv show is finally out !!!!
….I don’t need to say anymore … just watch :
[youtube:http://www.youtube.com/watch?v=xydftJ92etw]
Tags:Hak.5 iptv web media indemendant-media podcast vodcast vidcast video internet blogs blogging
wordpress vid tip #1 –installing wordpress locally
How to install wordpress on a local server , if you have any questions please do not hesitate to post them in the comments or email me at leachim6@gmail.com
I appologize for the audio quality It will be much better next time:
[youtube=watch?v=OD4nh5A5up4]
watch online here or download the mp4/h.254 .mov here
shownotes:
– Software used:
–obligatory technorati tags :
blogs blogging video tutorial tutorials Video+tutorial wordpress wordpress.org tech web websites guides
Podcast your gmail!!
This is one of the firsts posts I wrote on my blog…but I was just learning about blogging so It had no tags or catagories therefore nobody found it , it was also all 1 paragraph so here is Podcast your gmail 2.0 Now with 100% MORE TAGGING and 100% more ordered lists
This is a tutorial on how to get your Gmail delivered in voice form to your iPod (or any other mp3 player) as a Podcast
here are the steps:
- get your gmail feed the feed is https://username:password@gmail.google.com/gmail/feed/atom where username is your username and password is your password
- navigate to feedburner.com and enter yoru feed into the box on the homepage
- Create a Feedburner Account If you dont already have one (if you do just login)
- head to http://feed2podcast.com and sign up for an account there
- once you have an account , sign in and click “burn new feed here”, you will have to fill in every box but you can put whatever you want in it, once you create your podcast feed at the end of the page where it says “or copy your url”
- and go to advanced –> subscribe to podcast
- enter the url you copied before into this box
- hen right click your feed and click update , there you go gmail podcast
copy the url in the box and open itunes (or any other podcast client of your choice)
Obligatory Technorati Tags: Podcast gmail podcasting google hacks hacking podcasts email feeds feedburner feed2podcast