search
 
arrowarrow Most recently updated: Snippets
info This is a list of the currently available snippets, with noted their author and the unique Identification Number of the snippet. Click on any listed snippet to see its full text.
What are snippets?
Optional sorting commands:
Order by amount of visits: click here
Normal order: click here
Current order: normal
List titles only: click here
Showing topics: 1, 10
Available total: 394
Rss
Snippets: Search Full Poster with Google
 
Javascript Ajax Pass An Array To Php Or Server Rebuild The Correct Array Identification Number: 394 Preview: {OBJECTIVE}: given a javascript array, post it to a server (arguably via ajax) and make the server rebuild the correct array. Two functions, one to produce the data to dispatch, another to rebuild the dispatched data. The second function is still implemented in javascript, though by the objective we'd be on the server side at that stage (where javascript could not be run in many cases, for instance PHP); yet it is an example that can be implemented in any other server side language with the greatest ease (javascript to Php conversion syntax may come in handy). function jsArrayToServer(array, separator, concatenator){ var output=''; if(typeof array == 'object'){ separator=separator||'§'; concatenator=concatenator||'~'; if(concatenator.indexOf('-')>=0){concatenator='~';/*do not use a dash (-) to concatenate for indexOf may return -1*/}; var separatorInstances=[]; for(var i=0; i... Author:  ALBERTO  
Saturday March 13, 2010 - 11:48:01 Visitors: 1,774
Tagged by its author as: Programming JavascriptList topics of this author only: click here Javascript DOM: Make Spreadsheet Editable Table Add Header Cells, Collect Inputs Identification Number: 393 Preview: {OBJECTIVE}: make a spreadsheet table with editable cells content via user inputs, include rows and cells editable headers to describe what each column and row is for, print it to document via javascript and add functionality to collect all the provided inputs (included empty) and collect them in a suitable way to dispatch it to a post ajax script if requested. function spreadsheetEditableTable(r,c,tid){ //custom parameters: var onCellFocusBGcolor='#00ffff'; var onCellBlurBGcolor='#ffffff'; var tableHeadersBGcolor='#ff0000'; var maxrows=49; var maxcols=9; var maxtext=100;/*max chars: 10 *100 *50 = 50,000 less one cell */ //end custom; //validation and initialization start: r=Math.abs(r); c=Math.abs(c); tid=(tid)?' id="'+tid+'" ':''; var output=[]; if(r && c){ r=(r... Author:  ALBERTO  
Friday March 12, 2010 - 12:41:32 Visitors: 1,813
Tagged by its author as: Programming JavascriptList topics of this author only: click here Emil Cioran: On the Heights of Despair. A Selection. Identification Number: 392 Preview: [On Being Lyrical] Why can't we stay closed up inside ourselves? Why do we chase after expression and form, trying to deliver ourselves of our precious contents or "meanings," desperately attempting to organize what is after all a rebellious and chaotic process? Wouldn't it be more creative simply to surrender to our inner fluidity without any intention of objectifying it, intimately and voluptuously soaking in our own inner turmoil and struggle? Then we would feel with much richer intensity the whole inner growth of spiritual experience. All kinds of insights would blend and flourish in a fertile effervescence. A sensation of actuality and spiritual content would be born, like the rise of a wave or a musical phrase. To be full of one's self, not in the sense of pride, but of enrichment, to be tormented by a sense of inner infinity, means to live so intensely that you feel you are about to die of life. Such a feeling is so rare and strange that we would live it out with shouts. I fe... Author:  ALBERTO  
Sunday February 28, 2010 - 11:06:25 Visitors: 1,155
Tagged by its author as: BooksList topics of this author only: click here Php Check Whether A Web Site Or A Web Resource Exists/Responds Identification Number: 391 Preview: {OBJECTIVE}: given a web site url, regardless of whether it is of a single file (html, image, whatever) or of the main website url address, determine whether that resource is currently available, or whether that resource or website actually responds (ie: "exists"). It is not a difficult goal at all, though it may seem so to some new to the task. function webExists($url=''){/*validation of the allowed url formats, like leading http, must be done prior to call*/ return ( ($output=@get_headers($url)) && isset($output[0]) && strpos(strtolower($output[0]), ' 200 ok')!==false )? $output:false; /*keep this comment to reuse freely http://www.fullposter.com/?1*/} {INPUTS}: a string representing an address pointing to a web resource. {RETURNS}: boolean false for a web resource that does not yield any response upon call, or an array listing the returned headers (handy for further inspection, if needed). {CAVEATS}: validation of the allowed u... Author:  ALBERTO  
Saturday February 27, 2010 - 23:05:51 Visitors: 1,661
Tagged by its author as: Programming PhpList topics of this author only: click here Sia Il Nulla E Nulla Fu Identification Number: 390 Preview: [Primo: Fa' La Domanda Giusta] L' essenza del nichilismo risiede nel terrore che i significati possano esaurirsi. E' irrilevante a questo punto se questa evenienza possa verificarsi o meno: il semplice fatto di poterla postulare, è sufficiente ad evocare l'ipotesi ed a consegnarla ad una esistenza istantanea che oramai esige d'esser fronteggiata. Essenza della psico(pato)logia: Lo posso pensare, dunque potrebbe anche essere; cogito, ergo est. Se al contrario fosse possibile una sintesi che unifica tutti i significati in un nucleo conclusivo e risolutivo, questo nucleo coincide ancora con l'esaurimento per condensazione di tutti i significati: ed il Nirvana è noioso. Se invece i significati non possono esaurirsi, allora siamo condannati ad un eterno pellegrinaggio all' interno di una rapsodia la cui sostanziale futilità non ci sfugge: quella «rapsodia di percezioni, mai inquadrabili coerentemente addentro ad alcun testo» cui si rivolgeva Kant ed a... Author:  ALBERTO  
Tuesday February 9, 2010 - 22:24:03 Visitors: 1,696
Tagged by its author as: Philosophy ReviewsList topics of this author only: click here Php: Get Value Of Specific Html Meta Tag Identification Number: 389 Preview: {OBJECTIVE}: given an html source, get the content (value) of any specified meta tag (if present in the html source). function getMeta($t='', $which='description'){ preg_match_all('/]+>/i', $t, $m); if(is_array($m) && isset($m[0])){ $L=sizeof($m[0]); for($i=0; $i... Author:  ALBERTO  
Thursday September 24, 2009 - 14:00:09 Visitors: 4,243
Tagged by its author as: Programming PhpList topics of this author only: click here Php Given Url Fetch Youtube Video Codes Embed/Include Video In Other Webpage Identification Number: 388 Preview: {OBJECTIVE}: given a youtube web address to a video, grab the code for embedding the video in another/your webpage. This goal might be achieved by just populating a youtube video object set of tags with the given address: hovewer, this function stands as a way to grab similar data directly from the online original resource. function youtubevideo($url='', $resizeByPercent=100){ $urlelements=parse_url($url); if(!isset($urlelements['scheme']) || $urlelements['scheme']!=='http'){return '';}; if( !isset($urlelements['host']) || strpos($urlelements['host'], 'www.youtube.'!==0) ){return '';}; $url=trim(@file_get_contents($url, 0, null, 0, 50000)); preg_match_all('/]+>/', $url, $match); if(!is_array($match) || !isset($match[0][0])){return '';}; preg_match_all('/value="([^"]+)"/', $match[0][0], $value); if(is_array($value) && isset($value[1][0])){ $value[1][0]=html_entity&... Author:  ALBERTO  
Saturday September 19, 2009 - 02:03:02 Visitors: 4,354
Tagged by its author as: Programming PhpList topics of this author only: click here Php Find Length Of Texts Or Longest Within Instances Of A Given Html Tag Type Identification Number: 387 Preview: {OBJECTIVE}: given an input text with html mark-up (tags), find for a given tag type how much text (excluded nested html tags) each tag pair of that type encapsulates. Useful to extract from a page only the portion(s) that are longer, thus increasing the chances of ignoring the insignificant or more decorative parts. function paragraphsLengths(&$text, $tag='div'){ if(!$text || !$tag){return false;}; $matches=array(); preg_match_all("/]*>/i", $text, $open, PREG_OFFSET_CAPTURE); if(!isset($open[0])){return false;}; $L=sizeof($open[0]); $openoffsets=array(); $closedoffsets=array(); for($i=0; $i... Author:  ALBERTO  
Saturday September 19, 2009 - 00:24:26 Visitors: 3,726
Tagged by its author as: Programming PhpList topics of this author only: click here Riflessioni Sulla Morte Di Carlotta Fondelli Identification Number: 386 Preview: Mi rendo conto che sarò forse impopolare ma vorrei dirla questa cosa impopolare. Premetto che non sono un vigile urbano nè lavoro nelle forze dell' ordine - sto in tutt'altro campo: programmazione informatica, e opero come volontario in ambulanza (non sporadicamente) quindi più che fra quelli che avrebbero potuto investirla, avrei potuto essere fra quelli che l'avrebbero soccorsa. I vigili urbani in quanto tali non recano alcuna responsabilità - cioè la responsabilità è quella di avere investito con una guida incauta, non quella di averlo fatto indossando una divisa. Le nostre forze dell' ordine svolgono un lavoro ingrato, dove per 1200 euro al mese si fanno letteralmente sparare in faccia (vedasi l'episodio a Siena) e la vita di solito ce la salvano. I Vigili urbani, comminando multe, sono meno popolari, ma nessuna delle nostre città sarebbe migliore senza gli uni e gli altri. Le persone non si rendono bene conto. Tre settimane fa mi proposero di andare da mestre a pado... Author:  ALBERTO  
Thursday July 30, 2009 - 15:29:52 Visitors: 4,898
Tagged by its author as: News Digests and Press ReviewsList topics of this author only: click here Henri Poincaré: Mathematical Creation Identification Number: 385 Preview: Henri Poincaré Mathematical Creation==== |All the inventions that the world contains, Were not by reason first found out, nor brains; But pass for theirs who had the luck to light Upon them by mistake or oversight. SAMUEL BUTLER (1612-1680)| The genesis of mathematical creation is a problem which should intensely interest the psychologist. It is the activity in which the human mind seems to take least from the outside world, in which it acts or seems to act only of itself and on itself, so that in studying the procedure of geometric thought we may hope to reach what is most essential in man's mind. This has long been appreciated, and some time back the journal called L' enseignement mathematique, edited by Laisant and Fehr, began an in vestigation of the mental habits and methods of work of different mathe maticians. I had finished the main outlines of this article when th... Author:  ALBERTO  
Tuesday June 16, 2009 - 01:05:38 Visitors: 4,066
Tagged by its author as: Scientifical ReviewsList topics of this author only: click here
 

Footers

search profiles Join Update poster
reviews Blog Snippets Polls
Favourite web sites Shoutbox Chat Statistics
frequently asked questions Manuals Terms Of Service Contact Full Poster
Applications Discussion groups Free Area Events
Copyright © Full Poster - 2006, 2010 - All rights reserved