By Sam on December 2, 2011
Another instructional blog post as I try to figure out something. Configuring a website with Rackspace.com is much different than setting one up with a shared hosting service such as Dreamhost or GoDaddy. I could write more about this, but it’s not really productive. Anyways, here are the steps I went through: 1. Buy a domain. I [...]
Posted in Blog | Tagged databases, Debian, dependencies, Linux, php, Rackspace |
By Sam on June 22, 2011
Impossible? No! Just add some AJAX to your <head> section: <script type=”text/javascript”> function request(query){ if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();} else{xmlhttp=new ActiveXObject(“Microsoft.XMLHTTP”);} xmlhttp.open(“GET”,”query.php?q=”+query,true); xmlhttp.send(); } </script> and create the new page query.php with the following content, replacing the default values where necessary: <?php $dbhost = ‘#REPLACE THIS#’; $dbuser = ‘#REPLACE THIS#’; $dbpass = ‘#REPLACE THIS#’; $conn = mysql_connect($dbhost, [...]
Posted in Blog | Tagged AJAX, don't try this unsupervised, javascript, php, sql |
By Sam on June 20, 2011
If you request the “offline_access” permission when using the Facebook PHP SDK (and sometimes even without it), it makes the default logout functionality not work very well. To fix this, here’s what worked for me: Change your logout url: $logoutUrl = $facebook->getLogoutUrl(array( ‘next’ => ($fbconfig['baseurl'].’logout.php’) )); On your logout.php page, add the following code: setcookie(‘fbs_’.$facebook->getAppId(), [...]
Posted in Blog | Tagged Facebook PHP SDK |
By Sam on June 15, 2011
One problem that seems to affect many web developers (and desktop programmers as well) is how to store recurring events in a database. There are several ways to do this, all with varying degrees of complexity (both inserting and selecting), storage requirements, and requirements on the type of recurrences. These can all be found by [...]
Posted in Blog | Tagged databases, MEEPME |
By Sam on April 26, 2011
Everyone remembers back when you had AOL Instant Messenger, a major threat was getting a virus. Once a friend got one, it would send itself as a chat message to all of their friends, propagating across the network. Now, there seems to be a similar menace facing Facebook, especially it’s chat feature. I recently received [...]
Posted in Blog |
By Sam on March 1, 2011
Because this might happen. And then this. <?php while(1){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://34st.com/wp-content/plugins/wp-polls/wp-polls.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $id=rand(11,13); curl_setopt($ch, CURLOPT_POSTFIELDS,"vote=true&poll_id=3&poll_3=$id"); curl_exec($ch); curl_close($ch); header(‘Location: http://getmeep.com/curl.php?loop=true’); } ?>
Posted in Blog |
By Sam on February 9, 2011
Aside from some technical glitches and miscommunication, tonight went pretty well for MEEPME. Almost a hundred people signed up, and everyone seemed to have a fun time playing around with it. We got to demo our new AJAXified text feed, and other than a screensaver problem and a video cable problem, it worked great all night. We [...]
Posted in Blog | Tagged Blarney, MEEPME |
By Sam on January 23, 2011
Wow, what a trip. When Matt contacted me a week before the competition to ask if I had a team yet, I had no idea we would get this far. Timeline Thursday, before competition – Meet up with Matt, go over idea, get introduced to Twilio API Friday, 6pm – Watch intros, get theme, meet [...]
Posted in Blog | Tagged Hackathon, MEEPME, PennApps |
By Sam on December 22, 2010
But I just finished a cool embedded systems project for a course I’m taking. And yes, I used the word “hacking” in the title for some sweet Google juice. Anyways, hit up the microblog (updates coming soon).
Posted in Blog |
By Sam on August 11, 2010
Was having some issues installing the latest version (3.1.0) of OpenVAS in a CentOS 5.5 VM today, so I thought I’d throw up a walkthrough in case anyone else was having similar issues. I’m not really a Linux expert, so it may look kind of backwards at times. I’m going to skip the long and [...]
Posted in Blog | Tagged dependencies, information security, Linux, OpenVAS |