Profile
Achievement
You have not received any achievements.ginoplusio's Recent Snippets
- All /
This is a tutorial I've found for integrate Facebook Connect function with your web community.
        
        
        
            1 
        
        
            1611 
        
                    posted 15 years ago by ginoplusio
            The first function make short urls.
The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location"...
        
        
        
            1 
        
        
            2522 
        
                    posted 15 years ago by ginoplusio
            This function validate a mail address in a smart way: if the address to validate has a correct syntax (checked with regular expression), it tries to connect to the mx server of the address. This means that the program have to use the smtp protocol to...
        
        
        
            3 
        
        
            1840 
        
                    posted 15 years ago by ginoplusio
            This function calculates distance with the Haversine formula, this formula assumes that our Earth is spherical, but it isn’t since it’s more like a big orange fruit also compresses at poles. I’ve read that this function has an error about + o â...
        
        
        
            3 
        
        
            7046 
        
                    posted 15 years ago by ginoplusio
            When you show the coordinates of a point, it’s sometimes better to show them as degrees and not as deciaml (even if decimal is simpler). Each of the two coordinates can be converted with the same function. In the function call the “tipo†is the...
        
        
        
            1 
        
        
            1524 
        
                    posted 15 years ago by ginoplusio
            There are free exchange rates data that are easy to retrieve and parse, here is the code of a mini webbot written in ASP that goes out on Bank of Italy site, get the exchanges rates and print them.
        
        
        
            2 
        
        
            1549 
        
                    posted 15 years ago by ginoplusio
            I’ve made this class that can use normal session variables, or cookies. This class can use cookies in two ways: store a single variable in each cookie, or pack many variables, encrypt, and store them into cookies.
Now I always use this class whe...
        
        
        
            2 
        
        
            1399 
        
                    posted 15 years ago by ginoplusio
            I’ve made a ruler to measure distances on a Google Map V3. The file Ruler.js contains a two function: one to calculate the distance between two points on the map with their position expressed in decimal degrees, and one function that add the ruler....
        
        
        
            1 
        
        
            1884 
        
                    posted 15 years ago by ginoplusio
            Calculate dir size recursive, follow the link above because the version above is better.
        
        
        
            0 
        
        
            1291 
        
                    posted 15 years ago by ginoplusio
            This is the code to make a simple gallery really fast, with php, jquery and a dir full of pictures.
        
        
        
            2 
        
        
            2145 
        
                    posted 15 years ago by ginoplusio
            Count how many users are connected to a site (execute this function in every page, put it in the header).
        
        
        
            1 
        
        
            1670 
        
                    posted 15 years ago by ginoplusio
            When you click on the text box the default value (such as "write here") disappears and you can type in. On blur if the textbox is empty it will appear the default value again.
        
        
        
            1 
        
        
            1244 
        
                    posted 15 years ago by ginoplusio
            converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"
        
        
        
            0 
        
        
            1574 
        
                    posted 15 years ago by ginoplusio
            - fields on db with utf8_general_ci collation
- make this query after any connection
- put meta charset utf8
- read and write strings without problems
        
        
        
            0 
        
        
            1138 
        
                    posted 15 years ago by ginoplusio
            asp function similar to php one, to truncate long words inside a string
        
        
        
            1 
        
        
            1540 
        
                    posted 16 years ago by ginoplusio
            a set of function useful to check data (functions name in italian but easy to translate).
        
        
        
            0 
        
        
            2431 
        
                    posted 16 years ago by ginoplusio