Daniele Cruciani
Programmatore Developer PHP/MySQL Freelance
mobile: +39 3489215204

icq skype msn linkedin fb t ff youtube picasa google me on github

Advertisement

You are here

    base 64 encode by ebay (ending with **)

    I found this and thought it was my bug .. but ..

    When I get IEASToken in getUser ebay api request it returns a token with == a the end. It is a base64 encoded string, and have '=' sign at end as expected. But when eBay send notification, there are '**' in place of '=='

    So in php I register it as base64_encode(base64_decode(IEASToken)) ..

    Moving development to the extreme

    For sparing time, you end up wasting all time.

    Drupal 7: Views, view modes, templates and conditional field formatting

    Using drupal 6 I had chosen contemplate module for theming a contenttype, I also thought it was the right thing.

    But the problem was the need to have another place where to storetheming files, or put it in db, that is a practice I do not like.

    Also there could be a number of Views in a website, with differentvisualization, and choosing field view mode for a view is something Ido not like, because there is a better way, in my opinion.

    Signal page as correct in Google Webmaster Tool (simulate mouse click)

    Google webmaster tool signals scanning errors. The is option to signal error a scorrected, but sometime a lot of error is solved at once, but interface do not give option to select it all.

    Also this trick could be usefull in other service..

    I loaded this code in chrome console (developer tool), modified from example code https://developer.mozilla.org/en/DOM/element.dispatchEvent

    How to hide image to the visitor right click

    Well, I found this hack in http://coollogo.net/cool_logo_70/ a good resource for social icon.

    Given you want to show image.jpg, just put a transparent image in a div tag with the background-image: url('image.jpg') this way:

    Tags: 

    Why not to use remove link

    This is my experience: I have to rewrite administration page where
    there is remove button (in a form) with only javascript confirm.

    I thought: "no one had problem with no limitation in the past, why they
    should now? I'll use a link with javascript confirm.

    It happened I have a dashboard page where is listed the last entries
    and links for update and delete its. It happened that few day later 20
    entries was deleted and I was looking for what caused the problem for
    one day.

    Google Chrome no-cache and Login throw oauth services

    I found this very annoying, it seem chrome optimization make it not works things like "login via facebook" or "login via twitter" button with this browser and make it wait forever.

    php goodies: filter

    Filter is in php by default from 5.2.0 and is a usefull library for web developer, so it is the time to make use of it.

    It was created for validation and sanitization of foreign input, that is GET, POST, COOKIE, or anything that you can't trust on. With php filter one can tests if a variable is present in the current request: 

    if(filter_has_var(INPUT_POST,'login')) {
    //manage login
    }
    
    

    Using this function a check state of a checkbox in a form could be tested as well:

    Tags: 

    wwwsqldesigner short review

    Install

    Download from http://code.google.com/p/wwwsqldesigner/
    Very easy installation: you need a webserver running, unpack
    wwwsqldesigner it in a folder, setup your virtual host (I use
    personal domain for my pc), all done!

    Use

    There is a small tool bar to the right, very simple and intuitive to
    use, it is grouped in 4 areas:

    Wordpress Category external feed plugin

    This wordpress plugin is for show custom external rss feed in category page.

    For example if you want a category page list rss feed from another site category page, this is for you.

    It is my first wordpress plugin (ok, maybe not exactly the very first hello world like ;)

    It use simplepie because I like it. (it is included in package and license is almost compatible)

    License: GPL
    From an idea of: IM Evolution a SEO/SEM Company

    Pages

    Subscribe to Smartango RSS