This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Features / Getty Images autoembed
« on March 9th, 2014, 07:31 PM »
A few days ago Getty Images announced the ability to directly embed their images (without watermark) in any website using their iframe which adds credits at the bottom of the image. On WordPress.com it's already been added the possibility to auto-embed the image simply adding a link to the image. Would be great to have the same here, or maybe a plugin? :)
http://en.blog.wordpress.com/2014/03/06/embed-support-getty-images/
http://en.blog.wordpress.com/2014/03/06/embed-support-getty-images/
2
Archived fixes / follow_me() bug, shows up from time to time.
« on January 28th, 2014, 12:13 AM »
Just for the records it happened again now (Firefox 26.0)
3
Archived fixes / select has visibility:hidden on create new topic
« on January 26th, 2014, 11:13 PM »
Default is as attachment 'wedge1'. If I set visibility:visible I see as attachment 'wedge2'
4
Off-topic / Aeva: preg_replace(): The /e modifier is deprecated, use preg_replace_callback
« on January 24th, 2014, 01:31 AM »$input = preg_replace('`(#[^"<]*)`e', 'str_replace("~", "-", "$1")', $input);
What should I replace this line with to avoid being flooded with errors on PHP 5.5.x ? :angel: :eheh:
5
6
Nao you're a css genius so you have to help me :P
Here's my website: http://bassano.cngei.it/beta/
As you can see when hovering the primary menu, a .sub-menu appears. Problem is I can't find a way to have that sub-menu positioned just under the start of the primary menu. If you change resolution the sub-menu position changes... I tried everything... fixed width, position:relative, fixed, etc... :^^;:
Here's my website: http://bassano.cngei.it/beta/
As you can see when hovering the primary menu, a .sub-menu appears. Problem is I can't find a way to have that sub-menu positioned just under the start of the primary menu. If you change resolution the sub-menu position changes... I tried everything... fixed width, position:relative, fixed, etc... :^^;:
7
Off-topic / Page load bottleneck
« on June 4th, 2013, 10:52 AM »
http://tools.pingdom.com/fpt/#!/d3pSnc/http://multiformeingegno.it/
I can see it takes 1.66 seconds to load the 7.1KB of index.php... what can cause this slowness?
Server configuration? Because it's all "wait" time!
I can see it takes 1.66 seconds to load the 7.1KB of index.php... what can cause this slowness?
Server configuration? Because it's all "wait" time!
8
Off-topic / json_decode and arrays
« on May 24th, 2013, 05:06 PM »<?php
$json = file_get_contents('http://pastebin.com/NLHGMapT');
$track_data = json_decode($json);
?>
<?php
echo '<ul>';
foreach ($track_data as $data)
{
if (!empty($data)) {
$text = $data->track[0]->artist->{'#text'};
}
echo '<li><span>'; echo $text; echo '</span></li>';
}
echo '</ul>';
?>
How can I have $text for every array (track[0], track[1], track[2], track[n]) in respective <li>s?
9
Off-topic / jQuery(document).ready function issue
« on May 14th, 2013, 12:25 AM » jQuery(document).ready(function() {
jQuery(".fancybox").fancybox({
helpers : {
title : { type : 'float' }
},
beforeShow: function(){
this.title = '<div>'+jQuery(this.element).next('div').html()+'</div>';
}
});
jQuery("a.fancybox").fancybox({
tpl: {
next: '<a title="Avanti" class="fancybox-nav fancybox-next"><span></span></a>',
prev: '<a title="Indietro" class="fancybox-nav fancybox-prev"><span></span></a>'
}
});
});
The first part (.fancybox) is "ignored", the second (a.fancybox) is taken into account. If I remove the second, the first is taken into account. -_-
10
Off-topic / json_decode transforms dot in comma
« on May 12th, 2013, 04:10 PM »
Here's the JSON input: http://pastebin.com/xGWtWb5P
I do a json_decode
Code: [Select]
But instead of dots for GPS coords it outputs commas... O_O
Original: LAT 41.917866942 LONG 12.873182618
json_decode: LAT 41,917866942 LONG 12,873182618
It's not htmlentities fault, I tried disabling it and it still outputs commas.
I do a json_decode
<?php <a target="_blank" style="color:darkgrey" rel="nofollow" href="http://maps.google.com/maps?q='.htmlentities($value->location->latitude).',+'.htmlentities($value->location->longitude).'">mappa</a> ?>
But instead of dots for GPS coords it outputs commas... O_O
Original: LAT 41.917866942 LONG 12.873182618
json_decode: LAT 41,917866942 LONG 12,873182618
It's not htmlentities fault, I tried disabling it and it still outputs commas.
11
Off-topic / for(i=1;i<j;i++)
« on May 5th, 2013, 03:36 PM »
What does this mean?
Code: [Select]
I have a map with 3 markers set at loadtime. Then I have a function to calculate a route (so in the map 2 new markers are set, with a total of 5). I'm trying to remove the first 3 markers to leave just the route markers when route is calculated. I first pushed markers in an array with mkArray.push(marker);. Then the code above should remove the 3 initial markers.
The code does something, you can see it here (to test you can enter "Ostia" in input box). As you can see it removes the first marker when route is calculated. It's a starting point but I need to remove all markers except the 2 related to the route. :D
var i, j=mkArray.length-1;
// Keeping the first and last one
for(i=1;i<j;i++) {
mk=mkArray[i];
mk.setMap(null);
I have a map with 3 markers set at loadtime. Then I have a function to calculate a route (so in the map 2 new markers are set, with a total of 5). I'm trying to remove the first 3 markers to leave just the route markers when route is calculated. I first pushed markers in an array with mkArray.push(marker);. Then the code above should remove the 3 initial markers.
The code does something, you can see it here (to test you can enter "Ostia" in input box). As you can see it removes the first marker when route is calculated. It's a starting point but I need to remove all markers except the 2 related to the route. :D
12
Off-topic / Pass text to a url through input form
« on April 27th, 2013, 07:11 PM »
I need a box where users type an address and when they press the "Go" button they're pointed to: `http://maps.google.it/maps?saddr=INPT_VALUE&daddr=My+Address&dirflg=r` (where of course INPUT_VALUE is the address typed in the box).
I'm looking for the cleanest solution. Is this possible with just HTML (or Javascript is needed)? :)
EDIT: Not jQuery.
I'm looking for the cleanest solution. Is this possible with just HTML (or Javascript is needed)? :)
EDIT: Not jQuery.
13
Off-topic / Zopfli compression
« on April 5th, 2013, 05:58 PM »14
Jekyll is a blog-aware, static site generator in Ruby
http://jekyllrb.com
https://github.com/mojombo/jekyll
Seems interesting :)
http://jekyllrb.com
https://github.com/mojombo/jekyll
Seems interesting :)
15
Off-topic / GetSimple CMS
« on March 31st, 2013, 07:23 PM »
I've never heard of it...
http://get-simple.info/start/
It's XML based.. uhm, performances would not appreciate it :P
http://get-simple.info/start/
It's XML based.. uhm, performances would not appreciate it :P