-
Posts
1,731 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Spudinski
-
Thanks man. After our little discussion about what to write with regards to Node, I think I'll do something basic still: MySQL. Might do SQLite, but the basis for both is the same in Node.js.
-
Section 1.3, being Content. If we are the sole owners of what we post, as you define "intellectual property", we should have all rights to it, including the removal thereof.
-
I just looked through a whole file, and didn't find any preg_match() being used. :confused: Edit: Never mind, I found ereg(). I'm guessing your familiarity with regex isn't that great, right? So I'll suggest you use a conditional statement for that, such as: // will return true if $myVar is less than zero. if (.... || ($myValue < 0 || abs($myValue) > PHP_INT_MAX))
-
I'm a temporary table, and what is this?
-
To give my view on economics within games. It is as you say important to have a means of converting currency into usable elements within the game. A currency can be anything, coins, money, ore or even items. The let down I find is that there are too many currencies within amateur games. This might not necessarily be a let down, depending on how you manage it, but one should keep in mind that each currency used requires a lot of attention to the small details. -toolazytowritemore-
-
Way to early to ask such a question in my opinion.
-
In theory that sounds wonderful, but in reality isn't not very plausible unless you use Node specifically for web services or a daemon. Node JS has a lot of functionality for low level development, and thus one would be robbing it of it's really raw power when tunnelling requests through a reverse proxy. Both methods mentioned are plausible though, thanks for the mention.
-
:'( -tooshort-
-
NOTE: This tutorial is for *nix variants only! With my first encounters with Node.js I was tempted not to run Node.js applications on a live server. I really couldn't afford to rewrite all my script to node. I didn't want to sacrifice my Apache. After reading through many of setups of Node.js and Apache2.x, I began to get frustrated with what most were suggesting. Some even went as far as to say you need to setup a reverse proxy with Node.js to redirect requests to Apache. That's quite ludicrous. So let me give you possible setup. Requirements: 2 static IP addresses and an additional Address record. Assumptions: basic sysadmin knowledge of your distro, and a working installation of Apache2.x. Step 1 Getting Node.js To get started, get Node.js. There are are many ways to get it, but I would not recommend installing from the source if you aren't familiar with it. A package manager would be your best bet, see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager. Next, test that Node.js is installed and working on your system: # node -v v0.6.12 Step 2 Configuring Apache2.x Now that you have Node.js and Apache2.x installed, it's time to make them work together separately. Firstly, edit your Apache2.x configuration to listen only on one IP as default configuration is to listen on all available interfaces. Sample: /etc/apache2/ports.conf Listen 123.45.67.111:80 # this should be in a <IfModule /> wrapper Listen 123.45.67.111:443 Apache will need to be restarted to take effect, so run: (As for those asking, Apache needs to be restarted for the IP addresses to be released) # service apache2 restart * Restarting web server apache2 [ OK ] Confirm that Apache is now running only on a specific IP address: # netstat -ln | grep 80 tcp 0 0 123.45.67.111:80 0.0.0.0:* LISTEN If everything works, then you are still good. If not, please retrace your steps carefully. Step 3 Setting up DNS Now that we have Apache only using one of our two IP addresses, we can go one step further and begin preparing for a Node.js application. At this point, you have two choices: a. Use a domain name specifically for a Node.js application, or b. Use a sub-domain specifically for a Node.js application. I will definitely suggest the latter. You will need access to your DNS records for this, but luckily it's a simple addition. What you need to do, is create a sub-domain with an Adress(A) record which you point to the second IP address of your server. I'm not going into much detail here, as DNS is a whole other subject. But after you have done that, confirm that the alterations are correct: # dig sub.domain.com | grep IN ;sub.domain.com. IN A sub.domain.com. 13744 IN A 123.45.67.222 ...Other results... If everything is in order, you are good to go and create an application, if not, retrace your steps carefully and make sure that you set up the A record correctly. Step 4 Your Node.js Application Well then, that was quite simple wasn't it? But now let's actually get something running. Any Node.js application will work, as long as you specify the IP it should listen on. Defining which IP Node.js should listen on can be read about here: http://nodejs.org/api/http.html#http_server_listen_port_hostname_callback Here's a simple application for you to use, just to test everything. server.js var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(80, '123.45.67.222'); console.log('Server started.'); And then, simply run it: node server.js Or, if you want to run it in the background: nohup node server.js & Additional FAQ Where should I put my Node.js application? I would suggest alongside your website's Apache web-directory. On Debian systems this is located at /var/www/domain.com, so similarly create a directory /var/www/sub.domain.com to contain the files of your Node.js application. Any questions and comments are welcome.
-
Developer version? It has been discussed before the release, I'd think it's still appropriate to receive a stripped version? Even if confidentially. I can't see why a developer would spend full price on the engine and hope their modification/alteration will sell good enough to make up for personal losses. Congrat's though.
-
Whatever troll, @Mr. Troll 'le am leonvictor2012. Anyway... I need to study the new Facebook API's for a work project, if anybody is interested, I can write a tutorial or two for using the different APIs. I haven't used the FB API(JS or PHP) since the now Legacy Javascript API though, but I need to learn about the new APIs anyway. +1?
-
Yea. Ok. Good luck. Edit: Chrome also supports WebGL... Might want to take a look at that.
-
I'd like it if you release V1.x with an appropriate opensource license, like BSD. But, I fear people will make it better than whatever there already is, so you'd also loose a lot of money.
-
What happens when you test it? Do a var_dump() of mysql_error(). I don't see any syntax errors within your SQL queries, so it's most likely an unidentified or miss-referenced column name.
-
The PHP interpreter doesn't parse white space, it won't matter anyhow. The only exception is heredoc blocks. On another note, *nix uses different line endings than Windows. From Windows to *nix shouldn't render text malformed, but visa versa will. Another thing you can do is use long comments, i.e. /* ... */
-
Well then...
-
I'm not just simply "complaining". I'm discussing a relevant topic. Moderators should be people who people can look up to and ask for help as well. They shouldn't be shielded behind a brick wall, they are helpers, thus they should do so. Take for instance a post I made some time back, about uncaught methods. It doesn't receive any attention at all, not even a suggestion or probable solution. Every moderator has access to delete that post, yet they aren't knowledgeable to assist. This isn't right... Same with PHP, I doubt many will be able to even work with ORM, or even know what the acronym is. Does that make them inferior? No, but it does prove a point: they're moderating content they know jack about.
-
http://api.jquery.com/category/selectors/
-
@Dominion: I've read your post. But, if you remember correctly, they didn't want to operate it. That responsibility fell to Alain and Nick. Posts: Sure spam and garbage is fine, but not deleting member content. And by member content I mean a post that's well produced, no matter how insulting anyone may find it. Professional: I'll quote. Arriving at... Nickson and yourself, I know are well educated enough to be able to grasp most of the aspects discussed on here. But some of the rest, trying not to single out anyone, I doubt I can say the same for. Mainly, I'd say moderators should be people who actively work within the field or have a well-rounded knowledge base with regards to the content that they are supposed to moderate. I think we can all agree on that clarification. RPGs/Webgames are a sub-field of development/programming, and also on the graphical side others. To explain further, it's much like a Unix systems administrator working on Debian. Having the knowledge and being able to apprehend other things as well.
-
Well, this topic has drifted so far off course I might as well share my opinion as well. Firstly, ColdBlooded should remember that this isn't HIS forum, it's MWGs. They agreed to it. So they really don't have a say over the operations of it, nevertheless send a damn "Official Warning". He should go stick that worthless piece of text up somewhere deep. Secondly, people ranting on about how people(including me) are negative on here about MCCodes. You guys should remember that most of us actually did try to help, and either they stole our idea for profit and deny it, or they sponge off of us to do certain tasks. E.g.: Guess who suggested a bug tracker? Guess who suggested an online script to verify clients? Geesh, the list goes on and on. I'm not saying I should get the credit for it, as I'm sure other people have mentioned it as well, but the priceless of it all is just a really dirty business. Thirdly, to the "MWG mod team", or whatever you want to call yourselves. I'd highly suggest you don't "discuss" people behind their backs, that's just plain fucked up. I'm not singling out anyone though, as I know some of the staff is actually decent, but the rest is just plain childish gossiping over people. Fourth, to Octraine: Are you back then? I thought you said you packed your bags and moved on? Anyway, I don't mind either way. Fifth, to RulerofZu. You have your opinions, which closely follow a lot of people on here. I don't think it's fair that you are getting singled out specifically. Sixth, to staff specifically. Banning or deleting posts should be done democratically. Just because one of you think the post is irrelevant or for any other assumption you may have made, does not mean WE agree. And I don't think it's fair you blame it on US, when you have no idea what our connection is with the topic at hand. You guys do not know everything, there are things WE are much better with than you as well, especially Danny who acts like such a smart ass. I've never seen this hierarchy of moderation and knowledge anywhere else. Normally moderators are people who are professionals in the field/area they moderate.
-
MCCodes Releases Updated Versions for all Paid MCCodes Products
Spudinski replied to Dabomstew's topic in Announcements