Archive for "Coding"

Going to Battlemesh v7 in Leipzig

11th May 2014 in Coding

From tomorrow 12th of May 2014 until sunday 18th I will be in Leipzig for the 7th edition of the Wireless Battle of the Mesh, a grass root community-organized event related to wireless networking and community networks.

I'll hold two talks:

See you there!

continue reading "Going to Battlemesh v7 in Leipzig"

My First Ever Workshop: Let's Learn How to Code With Python!

12th February 2013 in Coding

My first ever workshop will be dedicated to Python!

continue reading "My First Ever Workshop: Let's Learn How to Code With Python!"

Bash Command to Add an SSH Key to a Remote Host

15th June 2012 in Coding

Today I want to share with you an useful bash command to add an SSH key quickly to a remote host.

continue reading "Bash Command to Add an SSH Key to a Remote Host"

Participating in Google Summer of Code 2012

19th March 2012 in Coding

I'm very happy to announce that the italian wireless community Ninux.org has been accepted as a mentoring organization for the Google Summer of Code 2012 program!

continue reading "Participating in Google Summer of Code 2012"

Django Tagging Autocomplete Tag-It

9th February 2012 in Coding

I wanted to implement this functionality in my django projects for some time now and I finally had the chance to work on a project that has this requirement in the specification.

This is an attempt to a django reusable app that aims to be functional but flexible. It's based on django-tagging-autocomplete and depends on django-tagging.

Features:

  • Tag editing
  • Autocompletition
  • Customizable maximum tags number
  • Costomizable max length of each tag
  • Customizable minimum amount of letters before the autocompletition starts
  • Aims to be flexible (help me if you want)

continue reading "Django Tagging Autocomplete Tag-It"

Tagging Autocomplete to work with Django 1.2

27th October 2010 in Coding

If you are using Django 1.2 and you tried installing Django Tagging Autocomplete you will have noticed that the autocompletition won't work unless you oad a second copy of jQuery. Since I find that a very crappy solution I found a solution that works better for me and I want to share it with you. 

continue reading "Tagging Autocomplete to work with Django 1.2"

How to get comments working with Django StaticGenerator

25th October 2010 in Coding

If like me you are using Django StaticGenerator to speed up your blog you should have noticed that your comments won't work anymore, since StaticGenerator will cache also the fields used by the django comment app to block spam and CSRF attacks.

In this post I'll share with you a quick and easy solution with jQuery.

continue reading "How to get comments working with Django StaticGenerator"

HTML Purifier Plugin for Joomla

18th October 2010 in Coding

Html purifier is a Joomla plugin based on the HTML Purifier library.

I developed the plugin in late 2007 with Matteo Maria Baccano, another PHP programmer I was working with at that time and now I just updated the plugin after a long time.

continue reading "HTML Purifier Plugin for Joomla"

Django: How to Retrieve Query String Parameters

3rd October 2010 in Coding

If you use Django you will surely know that its url routing is quite strict regarding the prettiness of its URLS but there are still cases in we need to handle query string parameters, like when dealing with external services that return a URL like: callback?verification_code=088145235648fs689sa56h&userid=854 . What to do in this case?

continue reading "Django: How to Retrieve Query String Parameters"

Django: Private File Upload and Serving

30th September 2010 in Coding

The standard Django FileFields assume you want to upload a file in a subdirectory of MEDIA_ROOT, what if you want to upload the file in a private directory above the web root, not accessible via http?
How can you serve the files then?

continue reading "Django: Private File Upload and Serving"

Django: FileField with ContentType and File Size Validation

24th September 2010 in Coding

Immagine that you need to add the possibility to upload a PDF or Zip file in the django admin, but you want to be sure your client will upload only these two filetypes and not other ones.
You might also need the same functionality in the frontend, so why not use "ModelForm" and have just one validation for both applications (admin and frontend)?

In this short post I'll share with you my simple solution.

continue reading "Django: FileField with ContentType and File Size Validation"

How to reinstall Nvidia drivers on Ubuntu

18th September 2010 in Coding

Every time I update my Ubuntu machine compiz stops working. I don't know very well the reason, also because I don't have so much time to investigate, I just know that by reinstalling the nvidia drivers the things get back working.

continue reading "How to reinstall Nvidia drivers on Ubuntu"

IE8 doesn't like 1x1px semi-transparent backgrounds

8th May 2010 in Coding

While developing this web-site I encountered one of those little tipical annoying bugs that characterize Internet Explorer. Even if version 8 is a much better browser than versions 6 and 7, it still sucks under many points of view if compared to other modern browsers like Firefox, Safari, Chrome and Opera.

The issue I want to talk about in this post is the use of a repeated 1x1 pixel semi-transparent background. While this works just fine in all the other modern browsers, IE8 has a little issue that drove me mad.

continue reading "IE8 doesn't like 1x1px semi-transparent backgrounds"

How to setup StaticGenerator with Apache + mod_wsgi

3rd May 2010 in Coding

I noticed StaticGenerator while I was looking for some cache invalidation solution and I understood that would have been just perfect for my web-site, but the instructions on its web-site show only how to make it work with Nginx configured as frontend server. What if you want to stick on Apache? Read the rest to know...

continue reading "How to setup StaticGenerator with Apache + mod_wsgi"

The development of nemesisdesign.net

5th April 2010 in Coding

It never took me so much time to build a web-site in my life.

I started to work on this web-site in the summer of 2008 but unfortunately, due to high amount of work and personal problems I've never had time to finish it. Recently I finally had the chance to finish it but unfortunately I didn't like the original design anymore, so I redesigned it again. 

Now I am almost close to launch it and I am very satisfied.

continue reading "The development of nemesisdesign.net"

Categories

Let's be social

Popular posts

Latest Comments

  1. <a href=" http://prescriptionnopharmacy.com ">online drugstore</a>, http://prescriptionnopharmacy.com online pharmacies prescription

    By ituhxl in My work featured on CSS Mania: HydroHolistic

  2. Helpful blog. But if I am using classes then how to get query string as it throws error If i do the same in classes like class view(): def callback(request): verification_code = request.GET.get('verification_code') userid = request.GET.get('userid')

    By drum in Django: How to Retrieve Query String Parameters

  3. <a href=http://www.aisha-davis.ru/organicheskaya_kosmetika.php>Органика косметика</a> - духи на натуральных маслах, Натуральная косметика.

    By Willisrip in Django: FileField with ContentType and File Size Validation

  4. ar le barreau de cette ville. En voici le texte :Les avocats du barreau de Constantine ayant eu le regret de constater que dans l'ensemble de l'arrondissement judiciaire :L'information des affaires pénales, sans échapper complètement aux juridictions d'instruction, devient de plus ...

    By Gnxiphsqp in IE8 doesn't like 1x1px semi-transparent backgrounds

  5. игровой автомат магические грибы <a href= http://arab2.amerikanskaja-ruletka.ru/news1600.html >покер на деньги для телефона</a> онлайн покер фарид покер 888 <a href= http://arab2.amerikanskaja-ruletka.ru >Реальные казино</a>

    By azart80 in How to get comments working with Django StaticGenerator

Popular Tags

censorship creativity criptography django google-summer-of-code ibiza inspiration javascript jquery linux nemesisdesign ninux nodeshot open-source performance photo programming python security staticgenerator talk upload wireless-community