-
Posts
861 -
Joined
-
This service is really good there is one thing that I have found out that must be done for it to work correctly. These firewall rules must be in place or the service will not work correctly.add rule - static ip of google cloud print service pc to http://www.google.com/cloudprint Port tcp/443 add rule - static ip of google cloud print service pc to talk.google.com Port tcp/5222 The second one is really important else the printers will seem like they are offline and you wont get a very good print service. I hope this helps anyone else.
-
I Have been playing with it but cant seem to get the service to work on a server will work on client. But have been using the driver for a while it works really well. Teachers can now print from home.
-
I dont know If this is the correct place to put this but here goes. I have been looking at a saml called lemonldap nd I have got it linked up to my ad and can log in fine now come the confusing saml bit as I have never done it before I hope there is some help here It is only a trial atm but due to the fact we are a smal school we dont want to be paying £100s if I can get this woring for free.
-
the problem is we just need it local as its part of our digital display we did use powerpoint but it like to crash a lot. so I have been doing it via a webpage. I may have to look at the auto rename just its a lot of work for me every time a picture is changed
-
Ok Here is the issue. I have a folder the photos are put into and taken out of. this folder syncs with a web folder. What I want to do is create a webpage that takes the photos in the folder and displays them as a slideshow. I can do this manually but when the photos get changed weekly it becomes a bit of a nightmare I am not the best at coding I know basic php and a little java. even if there was a script that i could get to run nightly to rename old and new photos to add them to slidshow. any ideas would be good.
-
Lol looks like noone else has even heard of it lol just installed looks good even integrates with glpi will report back when had a play.
-
I woke up this morning and thougt to myself when will it end. Working as a ICT Tech in a school is great but it looks like I may have do do more Outgoings (food fuel gas electric mortgage)- doing nice things = still cant afford to live. Gas prices keep going up petrol keeps going up cost of living keeps going up wages stay the same. My parter told me to sell myself I told her none would buy a body like this lol. Never mind off to earn some more penny's.
-
I Have been using GLPI with fusion inventory for a good few years and it has gone from strength to strength with printer levels and PC monitoring checking software installed and so on and it works really well. Now From the same people I have seen Shinken | The next Industry Standard in IT Monitoring I know some people use NAGIOS but I am wondering if anyone has used this and is so what is it like?? It looks fairly new. I am going to give it a go but would like to hear from people that have use it and maybe compared it to NAGIOS.
-
Hi I have been working on a scrolling calendar for my xibo display It uses simplepie and jquery.newsScroll it works atm but not as I would like it to so that I could share it here is the code require 'simplepie.inc'; // Create a new class that extends an existing class class SimplePie_Item_Extras extends SimplePie_Item { var $show_past_events = TRUE; function set_show_past_events($value = FALSE){ $this->show_past_events = $value; } /** This is an example of adding a new method to an existing class */ function check_url($url_to_check){ $tmp = str_replace("/basic","/full",$url_to_check); // if(!strpos($tmp,'?')) // $tmp = $this->append($tmp,"?") // else{ // if(!(substr($tmp, -1) === '&')) // $tmp = $this->append($tmp,'&'); // } // if($this->show_past_events) // $tmp = $this->append($tmp,'futureevents=false&'); // else // $tmp = $this->append($tmp,'futureevents=true&'); // if($this->sort_ascending) // $tmp = $this->append($tmp,'sortorder=ascending&'); // else // $tmp = $this->append($tmp,'sortorder=descending&'); // if($this->orderby_by_start_date) // $tmp = $this->append($tmp,'orderby=starttime&'); // else // $tmp = $this->append($tmp,'orderby=lastmodified&'); // if($this->expand_single_events) // $tmp = $this->append($tmp,'singleevents=true&'); // else // $tmp = $this->append($tmp,'singleevents=false&'); // return $tmp; } // Retrieve the value. function get_gcal_starttime($format = false) { // We want to grab the Google-namespaced tag. // http://simplepie.org/wiki/tutorial/grab_custom_tags_or_attributes $when = $this->get_item_tags('http://schemas.google.com/g/2005', 'when'); // Once we grab the tag, let's grab the startTime attribute $date = $when[0]['attribs']['']['startTime']; if ($format) { // Let's pass it through strtotime() and then format it with date(). This will be the date we display. return date($format, strtotime($date)); } else { // Otherwise we'll return it as-is with no modifications. return $date; } } function get_gcal_endtime($format = false) { // We want to grab the Google-namespaced tag. // http://simplepie.org/wiki/tutorial/grab_custom_tags_or_attributes $when = $this->get_item_tags('http://schemas.google.com/g/2005', 'when'); // Once we grab the tag, let's grab the startTime attribute $date = $when[0]['attribs']['']['endTime']; if ($format) { // Let's pass it through strtotime() and then format it with date(). This will be the date we display. return date($format, strtotime($date)); } else { // Otherwise we'll return it as-is with no modifications. return $date; } } function get_gcal_where() { // We want to grab the Google-namespaced tag. // http://simplepie.org/wiki/tutorial/grab_custom_tags_or_attributes $where = $this->get_item_tags('http://schemas.google.com/g/2005','where'); // Once we grab the tag, let's grab the startTime attribute return $where[0]['attribs']['']['valueString']; } /** This is an example of modifying an existing method of an existing class. */ function get_id() { return $this->__toString(); } } $feed = new SimplePie('http://www.google.com/calendar/feeds/ford.plymouth.sch.uk_fcbr34ae6jag4pah8oogd7id50%40group.calendar.google.com/private-9b334582e4341761e0cc732328184757/full?futureevents=true'); $feed->handle_content_type(); $feed->set_item_class('SimplePie_Item_Extras'); $feed->init(); $feed->handle_content_type(); ?> Super Duper News Scroller get_items(0, 15) as $item) : ?> get_title(); ?> Date get_gcal_starttime('j F Y'); ?> Time get_gcal_starttime('h:i') =='12:00'){echo "all day";} else {echo $item->get_gcal_starttime('H:i');echo' - ';echo $item->get_gcal_endtime('H:i');}?> Event get_content('j F Y H:i'); ?> Location get_gcal_where($string); ?> <br /> $('#widget').newsScroll({<br /> speed: 2000,<br /> delay: 5000<br /> });<br /> <br /> // or just call it like:<br /> // $('#widget').newsScroll();<br /> at the moment you need to change Parents Calander manually as a lot of the code does not work i have zipped the other files if anyone else wants a play. I have used various of open sources to create this I just want to make it easier for other people to use. gcalander.zip
-
Thank you sorted it I think my bad feel an idiot I was not calling the function correctly ie I used echo $tmp; when it should have been echo check_url($url) ok for now but might be back lol
-
ok now I am confused for I am not that clever at php can someone tell me why $tmp = str_replace("/basic","/full",$url); but if i call it as a function IE function check_url($url){ $tmp = str_replace("/basic","/full",$url); } it stops working ??
-
here is the orignal code have changed the $feed bit but it does not seem to return anything I dont know why I was given the code and only know the basics of php I cant seem to find ot why its not working changing $feed = $url_to_check; to $feed = check_url($url_to_check); the tells me Fatal error: Call to undefined function check_url() in C:\xampp\htdocs\test\new.php on line 38 insted of blank page $url_to_check = ('http://www.google.com/calendar/feeds/ford.plymouth.sch.uk_fcbr34ae6jag4pah8oogd7id50%40group.calendar.google.com/private-9b334582e4341761e0cc732328184757/basic'); // Create a new class that extends an existing class function init(){ $this->set_item_class('http://schemas.google.com/g/2005'); } class Gcal_edit { function check_url($url_to_check){ $tmp = str_replace("/basic","/full",$url_to_check); if(!strpos($tmp,'?')) $tmp = $this->append($tmp,'?'); else{ if(!(substr($tmp, -1) === '&')) $tmp = $this->append($tmp,'&'); } if($this->show_past_events) $tmp = $this->append($tmp,'futureevents=false&'); else $tmp = $this->append($tmp,'futureevents=true&'); if($this->sort_ascending) $tmp = $this->append($tmp,'sortorder=ascending&'); else $tmp = $this->append($tmp,'sortorder=descending&'); if($this->orderby_by_start_date) $tmp = $this->append($tmp,'orderby=starttime&'); else $tmp = $this->append($tmp,'orderby=lastmodified&'); if($this->expand_single_events) $tmp = $this->append($tmp,'singleevents=true&'); else $tmp = $this->append($tmp,'singleevents=false&'); return $tmp; } } ?> Super Duper News Scroller
-
I am in the process of orting out our google calander but i have a problem $url_to_check = "googlecalander.com/somecalandertest/basic"; class googlecalander_output { var $show_past_events = FALSE; var $sort_ascending = TRUE; var $orderby_by_start_date = TRUE; var $expand_single_events = TRUE; function check_url($url_to_check){ $tmp = str_replace("/basic","/full",$url_to_check); if(!strpos($tmp,'?')) $tmp = $this->append($tmp,'?'); else{ if(!(substr($tmp, -1) === '&')) $tmp = $this->append($tmp,'&'); } if($this->show_past_events) $tmp = $this->append($tmp,'futureevents=false&'); else $tmp = $this->append($tmp,'futureevents=true&'); if($this->sort_ascending) $tmp = $this->append($tmp,'sortorder=ascending&'); else $tmp = $this->append($tmp,'sortorder=descending&'); if($this->orderby_by_start_date) $tmp = $this->append($tmp,'orderby=starttime&'); else $tmp = $this->append($tmp,'orderby=lastmodified&'); if($this->expand_single_events) $tmp = $this->append($tmp,'singleevents=true&'); else $tmp = $this->append($tmp,'singleevents=false&'); return $tmp; } $feed = temp }?> echo $feed; it will eventually put on an internal web so that people can put in any google cal xml rss url and depending on setting will change the url and at the moment display it but eventually I will use the $feed to feed it to another programme as a correctly formated feed. at the moment nothing happens $feed is blank this is not my code but orignal code does not work either
-
YouTube for Schools launched
alonebfg replied to AngryTechnician's topic in Internet Related/Filtering/Firewall
I love this tool and have been playing with it and looks really good the only issue i have is the fact with SWGFL You don't have the ability to rewrite url or headers and so this will not work but as I was told on the phone if you want to pay £1000 more a year or so you can get the rm box whatever is is called and this will do it ( at the moment still looking at using dansguardin with swgfl but without much success. Grrr why are they so far behind the times. -
I found out today something really interesting. Due to the price of gold being so high pc components mobile phones and anything with electronics in it get broken down for amongst other things gold. A friend Helps in plant using chemicals to extract the gold. any the funny thing is that your old mobile phone thats broken and someone will give you 5p for can be worth up to £10 in gold. I thought he was joking till i told the other half and apparently the kids saw it on TV (bang goes the theory I think) where a bloke produced £50 in gold from old phones sim cards motherboards but could of got £120 if he done it right. Perhaps i am in the wrong business. LOL I wonder why the kids love to recycle there money in it for someone lol.

