Comments

 (610) 
  1. Everything
  2. Snippets
  3. Images
  4. Hardware
sunslayer commented on Javascript Snippet: Convert Height and Weight  -  Oct 08, 2012

Code

 
the 10's will cancel out, and 5/11 is the inverse of 2.2

Code

 
will return a more precise answer
sunslayer commented on mIRC Snippet: calculator  -  Sep 06, 2012
@alimak96

Quote

added [ ($3 == +) || ($3 == -) || ($3 == *) || ($3 == /) ] in ( if )
if the person didnt use on of these it will send a notice to him
You Can Only Use Numbers And ( +,-,*,/ )
That's what I was talking about
sunslayer commented on mIRC Snippet: calculator  -  Sep 06, 2012
There should be some sort of validation on $3 making sure its an operator
sunslayer commented on mIRC Snippet: Pastebin Uploader  -  Aug 31, 2012
nice job, but you could use a binvar to increase the size limit of the uploads
sunslayer commented on PHP Snippet: Calendar Class  -  Aug 21, 2012
nice job. but you could simplify your code farther by using cal_days_in_month() to fill an array like this

Code

 
then printing the calendar would just be a matter of creating a new table row after every 7 days

note that this method assumes Sunday to be the first day of the week
sunslayer commented on mIRC Snippet: ASCII Battleship v0.2  -  Apr 10, 2012
@Spoof i sincerely hope you are kidding.
sunslayer commented on mIRC Snippet: ASCII Battleship v0.2  -  Apr 09, 2012

Quote

Shouldn't it be called " v1.0 " seeing how 1.0 = 1 ? hmmm
lol, dyslexic moment?
sunslayer commented on CSS Snippet: CSS treeview  -  Apr 06, 2012
I'm not sure about what gooshie meant but for me i preferred having a max height so when you had a snippet that was very long you wouldn't have to scroll that far to get to the comments section
sunslayer commented on CSS Snippet: CSS treeview  -  Apr 06, 2012
^ agreed about the height of the main snippet section
sunslayer commented on CSS Snippet: CSS treeview  -  Apr 06, 2012
that would be great
sunslayer commented on CSS Snippet: CSS treeview  -  Apr 06, 2012
added.
sunslayer commented on CSS Snippet: CSS treeview  -  Apr 05, 2012

Quote

images located here
lol :)
sunslayer commented on mIRC Snippet: $aliases(file) v1.0  -  Apr 03, 2011
just because its an english speaking site doesn't mean the users have to speak english
sunslayer commented on Javascript Snippet: HTML5 Canvas Fire  -  Mar 30, 2011
@Hawkee it works fine for me on Firefox with my edit
sunslayer commented on Javascript Snippet: HTML5 Canvas Fire  -  Mar 29, 2011
@Hawkee change

Code

 
to

Code

 
making more use of jQuery would eliminate the need for browser checking
sunslayer commented on Javascript Snippet: HTML5 Canvas "Fireworks"  -  Mar 27, 2011
from reading the code it looks like it clears the obj arrays and timers
sunslayer commented on Javascript Snippet: HTML5 Canvas "Fireworks"  -  Mar 27, 2011
the reset button doesn't seem to do anything, but nice job
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 24, 2011
added
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 23, 2011
yeah, i forgot to remove the asort() when i was testing. fixed. and to make it more dynamic(until i can figure out the control positioning) the url is passed through command line arguments
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 23, 2011
it's inherited from the timer class, I'm also working on a GUI version of this but positioning the controls seems to be a bit tricky to get them where i want them
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 23, 2011
Hawkee it seems to be a bug in that version as i get the same error when i run it on 5.2.6, it runs fine on 5.3.0
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 23, 2011
I've been debugging it for a while, it may be something on your end? unless anyone else is getting the same error
is your version configured for CLI? type "php -v" from the command prompt it should say PHP x.x.x (cli)
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 22, 2011
ah, the toString method is in the timer class, try adding another __toString method to the Rss class

still doesn't make sense that it works for me though, what version of PHP are you using?
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 22, 2011
hmm, strange It works fine for me, what does method_exists('timer','getRss') return?
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 22, 2011
@[Plornt] you will get a DOMDocument::load error

@Hawkee are you using the updated timer class?
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 22, 2011
edited, and yes it has to be run from the command line
sunslayer commented on PHP Snippet: Command Line RSS Feed Monitor  -  Mar 22, 2011
@[Plornt] you can't access the DOM through the command line to run multiple you can run multiple processes i might add that later if this gets enough of a response
sunslayer commented on PHP Snippet: PHP Timer  -  Mar 21, 2011
this has many uses, checking your email/rss feeds, and(what I'm using for) can be combine with GTK to create timer-like jobs in a gui setting
sunslayer commented on PHP Snippet: PHP Timer  -  Mar 19, 2011
it follows the same basic syntax as mIRC, timer(interval, repitition) where interval is the interval between executions and repitition is the number of times its repeated(n<1 for infinite), also you can queue multiple callbacks to one timer by using add() method, i forgot to mention it in the example but you can also pass parameters in an array as a second param for add(). exec() simply executes the timer

it also throws an error if you create a timer that will take longer than max_execution_time allows the script to run for
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. Next
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.