Jump to content
MakeWebGames

Spudinski

Members
  • Posts

    1,731
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Spudinski

  1. It will allow swap, Linux wouldn't be able to be installed without a swap configured. But as said, freeing memory would allow it to run. CentOS will run on 128mb of memory: http://www.centos.org/product.html, additionally Ubuntu would also. Since those are the two popular choices for VPS owners, I'd consider it realistic(although not recommended). Swapping and freeing memory can done in a number of ways, though. If one would need memory written to disk, sync would do the trick(even though it has limits), or you can kill off some applications. When you think in theory of how the swapping is accomplished, it is possible for a system to run with less than minimal amounts of memory with some additional help. Even if yum/apt fails it doesn't mean the OS is useless, it's always possible to compile applications yourself, where you would have more control over how much memory is spent.
  2. 15USD per month is cutting it, 15USD per year is just blatantly outrageous. A Linux kernel will run on the specs of the above mentioned, but it's really pushing it as a web-server. It's like putting the Hulk in a 2x2m room, it lives, but it can't do anything else. Those are about the specs of a router, not a web server. So I'd highly suggest increasing your budget by a factor of ten, or going shared. @a_bertrand: Yum will run, as well as the OS. But will soon become semi-unresponsive due primarily to excessive swapping.
  3. Spudinski

    Smarty

    I think Smarty is good at what it's supposed to do, but it's rather expensive in terms of developing. Although it offers a lot, it's not something I would use on a website. It's just not satisfying with small projects. When talking about large scale developments and implementation thereof, it's great. It offers a lot that IS actually useful to web designers. But, I'm a web developer, and rarely depend upon it for any of my projects as I can easily write a simple script to do what is required.
  4. Jail and brave both run on crons. Set them up.
  5. Kill puppy addon?  
  6. +1 -tooshort-
  7. Good day, Since my usual help site isn't responding to this query, I will post it here to get a broader audience for help. My problem is as follows: I have an implementation of SWFUpoad, help together with ifunk. All script are stock, except the settings={} variable and the debug controller(I don't know why anyone would want debug as default). All scripts have been tested locally, and they all functioned without any complications on my WAMP setup. But, and here comes the problems, when I began testing the scripts on a live server the one specific script, "swfupload.js" began to malfunction in ways I did not anticipate it to. Directly after finishing the upload to the server, the page goes completely blank(WSOD), and nothing in my scripts seem to indicate anything towards this behaviour. Through debugging the script I have received the following error(s): Script output is: Resource interpreted as Other but transferred with MIME type undefined.swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) Resource interpreted as Other but transferred with MIME type undefined. swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:496User Notice: SWFUpload.prototype.startUpload(undefined) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(StartUpload,) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(ReturnUploadStart,true) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:496User Notice: SWFUpload.prototype.startUpload(undefined) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(StartUpload,) swfupload.js:457User Error: SWFUpload.prototype.callFlash(StartUpload,) **swfupload.js:458Uncaught Call to StartUpload failed** Resource interpreted as Other but transferred with MIME type undefined.   Normal output is(on local): User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,)swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:496User Notice: SWFUpload.prototype.startUpload(undefined) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(StartUpload,) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(ReturnUploadStart,true) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,) swfupload.js:496User Notice: SWFUpload.prototype.startUpload(undefined) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(StartUpload,) swfupload.js:453User Notice: SWFUpload.prototype.callFlash(TestExternalInterface,)   StartUpload() trace: Uncaught Call to StartUpload failed SWFUpload.callFlashswfupload.js:458 SWFUpload.startUploadswfupload.js:497 $.fn.swfuploadjquery.swfupload.js:40 e.extend.eachjquery.min.js:2 e.fn.e.eachjquery.min.js:2 $.fn.swfuploadjquery.swfupload.js:16 (anonymous function)/projects/upload.vh/?page=upload#:78 f.event.dispatchjquery.min.js:3 f.event.add.h.handle.ijquery.min.js:3 f.event.triggerjquery.min.js:3 f.fn.extend.triggerjquery.min.js:3 e.extend.eachjquery.min.js:2 e.fn.e.eachjquery.min.js:2 f.fn.extend.triggerjquery.min.js:3 $.fn.swfupload.each.$.each.settings.(anonymous function)jquery.swfupload.js:30 (anonymous function)swfupload.js:732 SWFUpload.executeNextEventswfupload.js:752 (anonymous function) Notice User Notice & Error are my debug, not the script. Also, the MIME type warning is not what I think would be causing this, since it's a server-side configuration error on Apache content-types. My current script can be located here: https://gist.github.com/1722413 Thank you S.
  8. Well done, man! I wanted to make something like this some time ago to be in line with Minecraft, but I eventually ran out of patience getting algorithm to work correctly.
  9. It's not the result that matters, it's how one get's there.
  10. I agree. To add with my own opinion: Display it where it's relevant, or rather, where users would most likely want it to show. As most users will have an idea of what their stats are, they will most likely just need a review of it from time to time. One could even use keyboard shortcuts to show a div element. I mean come on, it's HTML5. I think users would prefer this, since it's easy, and gives them more control over their gameplay.
  11. Spudinski

    Phone Scam

    I thought I'd share this... quite funny.   [video=youtube;-uBpV13tDkU]http://www.youtube.com/watch?feature=player_embedded&v=-uBpV13tDkU
  12. Updated Logo = +1
  13. php.net ~tooshort~
  14. $q=$db->query("SELECT * FROM users $levelmin_clause$levelmax_clause$id_clause$name_cl ause$location_clause$online_clause$daysmin_clause$daysmax_clause$moneymin_clause",$c);   Whitespace she be a bitch. I'd suggest rewriting the script, especially if that's how the query looks.
  15. Pfft, type. Edited. Post the error you get from the "sql" file.
  16. Why is your script so convoluted? There's no need to apply a filter to every variable individually, you can use a loop.   Replace line 56 with:   print '</a></td> <td>' . $r['level'] . '</td> <td>' . $r['money'] . '</td> <td><a href="mug.php?ID=' . $r['userid'] . '">[Mug]</a></td> <td><a href="attack.php?ID= ' .$r['userid'] . '">[Attack]</a></td> </tr>';
  17. Danny, user/pass for demo? Edit: Nevermind, demo:demo
  18. Ruby's intention is to be fun to use, and to be as expressive and clean as possible. While the syntax is a bit on the "awkward" side for PHP developers, it may resemble some point of Javascript. Edit: See http://www.slideshare.net/DefV/rails-advantages-and-techniques, it explains below in depth. The things I personally find amusing from Ruby is: - Ability to join methods to each other, much like one would do in Javascript(jQuery users will like this). Example: post = <<-"." Rails on Ruby . print post.lines.to_a.reverse.join   Output: Ruby on Rails   - Simple typecasting & conversion of variables, though it may be difficult to learn for first timers. Example: "50".to_i * 2 Output: 100 PS. PHP developers may be used to "50" * 2 = 100 In ruby, it's "5050".   - Easy arrays, although arrays alone can not contain key=>val like PHP user would know. key=>val is done by Hashes. Example: long_array = Array.new short_array = [] other_array = [a, b, c] another_array = %w[a b c] array_one = %w'a b c' array_two = 'a b c'.split   - Ranges, "A range represents a subset of all possible values of a type, to be more precise, all possible values between a start value and an end value." Example: 'a'..'z' 0..0 0.1...1.0 r = 'a'..'d' puts r === 'c' // check if c is in range true   - % Notations, and modifiers. [TABLE=class: wikitable, width: 1] [TR] [TD]Modifier[/TD] [TD]Meaning[/TD] [/TR] [TR] [TD]%q[ ][/TD] [TD]Non-interpolated String (except for \\ \[ and \])[/TD] [/TR] [TR] [TD]%Q[ ][/TD] [TD]Interpolated String (default)[/TD] [/TR] [TR] [TD]%r[ ][/TD] [TD]Interpolated Regexp (flags can appear after the closing delimiter)[/TD] [/TR] [TR] [TD]%s[ ][/TD] [TD]Non-interpolated Symbol[/TD] [/TR] [TR] [TD]%w[ ][/TD] [TD]Non-interpolated Array of words, separated by whitespace[/TD] [/TR] [TR] [TD]%W[ ][/TD] [TD]Interpolated Array of words, separated by whitespace[/TD] [/TR] [TR] [TD]%x[ ][/TD] [TD]Interpolated shell command[/TD] [/TR] [/TABLE]
  19. Gestures are regional as well, did you know? Like when someone points their index finger at me, I take it as offensive, almost like they are going to blame me. Well, in the America's, it simply means "come here". Edit 1: Also how the we(and UK) are some of the only countries that drive on the left side of the road... And everybody else drives on the right side? Who decided that? [ATTACH=CONFIG]260[/ATTACH] Edit 2:
  20. - Use Dojo instead of jQuery on projects. - Switch projects from XML to JSON. - Implement/create an PHP IDS. - Use HipHop for PHP projects. - Get studies going. - Get a raise. - Rebuild PC to use AMD CPU & GPU. - Upgrade car audio.
  21. I thought I'd share the following: A quite entertaining way of learning Ruby. The guided tutorials are simple enough for anyone to get, though some parts of the language will be more familiar with experienced developers. http://tryruby.org An awesome site, it consists of a basic set of lessons to get you used to the language and interpreter. http://railsforzombies.org/ I love their videos, even though it's a bit lengthy for those who just want to jump in. In all, pretty decent way of getting acquainted with RoR. S.
  22. Greetings, I've been involved in the web development industry for quite some time, from things as simple as contact forms to complex applications used for data analysis. As some of you on here may or may not know, I've recently finished my studies and is about to start my career. As a service to the good of everyone, I will be offering my professional services for free on a first come first serve basis. Many of you might think I've gone mad, but I will be building up my portfolio over the next couple of years and some of this will be a great addition. My skill set for this is limited, as well as the duration of this due to the nature for this. The things I will be helping with are: - fault-finding and repair (no fubar) - maintenance and administration - script and small application development These services are limited to within bounds of PHP, Javascript. MySQL and *nix. Furthermore, all the work I do will acquire an Attribution 3.0 Unported license, unless otherwise arranged. If you wish to contact me, please PM me for my Skype. Regards Spudinski
  23. http://php.about.com/od/learnmysql/ss/create_tables.htm http://www.smartwebby.com/PHP/database_table_create.asp Pick one.
  24. Not really, since those are private proxies, and by proxy I mean an implementation of squid and a subnet of IPs. There are countless other ways to block spam, so don't rely on any "proxy blocker".
  25. It's not the point, you can see past the initial post. You don't need a "couple of friendly maths boffins" to know what you posted, a few cryptographic hashing functions has this same problem. And furthermore it would be highly impractical to attempt a dictionary attack on a hash. The point I'm getting at is that sha1 can be broken, and shouldn't be considered as suitable for a "webgame" because it does not align with the perfection you portray a simple login script must have. You want to have a perfect script, thus all aspects of it has to be perfect as well.
×
×
  • Create New...