Jump to content

hackalive

Members
  • Posts

    652
  • Joined

  • Last visited

Everything posted by hackalive

  1. Hi I have a chat script that works with AJAX by posting and retrieiving from a DB. However I want it to work like Google Wave and show you live typing update, so you can see as they are typing. How can I do this? Cheers in advance.
  2. "A common answer to this, is store a time stamp of their activity, then check it for a time frame (say 5 mins) then show them as active or not based on that. This is answered almost weekly, so you should find ideas about this topic already in the forums." Okay so how with PHP do I log activity, etc? I need a clean neat way of doing it.
  3. Hi Guys, Like in FB chat, how can I make divs open side by sie, and others by the side of others etc? Cheers in advance.
  4. Any suggestions on how to do the AJAX code?
  5. Hi Guys, I need to (through a MySQL Database) log users "activity" basically need to know if they are active or not. I am building a chat script like that of Facebook and need to figure out how they do the "online" "offline" thing for users. So my DB would need to track session activity (I think). If any one can help, or provide links that would be much appreciated. Cheers
  6. i checked my history, couldnt find it, cant seem to track it down. It does exists and Im so annoyed I didnt favorite it
  7. Hi guys, so I have some javascript which changes the document body background image on click, now I want this to happen as a fade so it fades from one to another. Any ideas? Cheers in advance.
  8. I remember reading a while back a website which was all about "open Source Image Standards", I cant find the website now but I got the link from a page commenting on Moodle 2.0 (which I also cant find). The site was like a foundation or group which has standards and guidelines for web 2.0 style icons for open source projects. If anyone know the site please post it for me. Cheers and have a good Easter.
  9. Thats okay the aim is not and never will be to compete with GIT, it will be for inhouse use only. Now just to get started
  10. Thorpe, I was thinking of making my own system which I incorporate with an software update system I built and some other things. Would it be possible to build my own basic one faily simple do you think and where should i get started? I want it to be entirely web-based and not need "installing" like GIT etc, so build it all in PHP is my goal, what do you think? Cheers in advance.
  11. Thorpe, can you explain how git differes from CVS , or link to something that clearly explains GIT, please?
  12. okay i will look into those, thanks thorpe. I primarily ask becuase i dont like CVS and was looking at making a small system for use on a project of mine. Thanks again.
  13. okay so how does the merge affect their alterations (of person B)? (and what other than CVS do you use thorpe?)
  14. Hi guys, just a quick question, in CVS what happens if two users try to commit changes at the same time, presumably one will overwrite the others so the first persons changes will no longer exist in the system. Is this correct? Basically if two people (A and B) checkout the same file and make different edits but then A submits his and the B not long after wont As changes no longer exist?
  15. So no one on this forum has any idea?
  16. @thrope: thanks This is the code date_default_timezone_set("Australia/Perth"); $datetimestamp1 = '2010-12-13T13:22:13+08:00'; $datetimestamp2 = date('c'); $interval = date_diff($datetimestamp1, $datetimestamp2); echo $interval->format('%i'); renders error:
  17. Alot of work to go, but here is my progress so far: <?php // path to image $path = $_SERVER['DOCUMENT_ROOT'].'/watermark/picture.jpg'; // upload the image $image = imagecreatefromstring(file_get_contents($path)); // get image dimensions $w = imagesx($image); $h = imagesy($image); // set percentage watermark shoudl cover. (NB: 30.00 = 30%) $p = 30.00; // do percentage calculations $wp = ($p/100)*$w; $hp = ($p/100)*$h; // get watermark $watermark = imagecreatefrompng('watermark2.png'); // get watermark dimensions (NB: NOT USED ANYMORE, KEPT FOR YOUR REFERENCE) $ww = imagesx($watermark); $wh = imagesy($watermark); // rescale image $source_image = imagecreatefrompng("watermark.png"); $source_imagex = imagesx($source_image); $source_imagey = imagesy($source_image); $dest_imagex = $wp; $dest_imagey = $wh; $dest_image = imagecreatetruecolor($dest_imagex, $dest_imagey); imagecopyresampled($dest_image, $source_image, 0, 0, 0, 0, $dest_imagex, $dest_imagey, $source_imagex, $source_imagey); // place watermark imagecopy($image, $dest_image, (($w-$wp)/2), (($h-$hp)/2), 0, 0, $wp, $hp); // display new image header('Content-type: image/jpeg'); imagejpeg($image); imagedestroy(); exit(); ?> Ill see if I cant fix the bugs later and get them to you in the first day or two of the new year.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.