-
Posts
3,655 -
Joined
-
Last visited
-
Days Won
12
Content Type
Profiles
Forums
Events
Everything posted by a_bertrand
-
Yes it's an issue with chrome and the actual version of VBulletin installed. A new version is available but nobody installed it. I would suggest to use firefox or IE.
-
No this is clearly some issues with javascript... We can't answer you like that you must give us access to your website (as normal player that's it) if you want that some of us have a look ;)
-
Virtualisation, VServer, VMWare and others
a_bertrand replied to a_bertrand's topic in Linux and Webservers
- Check vserver and then tell me if it does indeed put more stress or not. I can tell you that from my own trials as well as all the docs I found the fact is that it is nearly free... doesn't increase the load. - A complete VPS would for sure allow to run 2 different OS, but that wasn't my goal. Also running a VPS means you will eat something like 512Mb of ram to have something usable, here I save them ;-) - Also, never said it's the only solution or the best solution for everything, I just said it's the solution I choose. -
Questions concerning Mccodes and Ravan.
a_bertrand replied to SacreBleu's topic in General Discussion
Nope, if you buy a stolen car, even if you didn't stole the car yourself you could be considered guilty too, and in every case the car will be given back to its true owner so you would lose the money you payed for. This is the law in most countries and for sure in all EU countries. Same would apply here, even if you could demonstrate you wasn't aware of the issue with Ravan and their illegal license, you would still be eligible to close your site due to the use of the illegal software. -
Questions concerning Mccodes and Ravan.
a_bertrand replied to SacreBleu's topic in General Discussion
I'm not really all that closer to the developers and I have actually nothing to do with the code / mods or games run with McCode myself. -
Questions concerning Mccodes and Ravan.
a_bertrand replied to SacreBleu's topic in General Discussion
Don't think I took an offensive attitude against you... -
Questions concerning Mccodes and Ravan.
a_bertrand replied to SacreBleu's topic in General Discussion
Did you ever tried to sue a "company" which is not actually one, and where the guys behind this pseudo company are in another country as yours? No? Then you should try once... loads of fun and loads of money spent. Now I do remember that the McCode owners did actually started a few things against Raven website which as been shut down a couple of times, but that doesn't stop them to restart it. The only thing I could say is that if you buy McCode you will have a new version of the code where Raven use an old and un-secure one. As I'm not part of McCode myself, I can just say: do whatever you want, it will not change my life, but thinking it's easy to stop somebody to use your stolen code is pure ignorance of all the troubles it means. Think that a guy took 30 years to get finally justice for a patent against Sony... And the payment from Sony at the end barely covered the costs. Cool isn't it? And the patent? Ooo something stupid called "walkman". (yes the guy won at the end... but the walkman are history in the mean time) -
A picture of a nebula with some overlay effect maybe done in photoshop. I don't find it all that good sorry.
-
Would you compete in a MWG Mini-Game Contest?
a_bertrand replied to Sim's topic in Question of the day
Well I find your suggestion good Nickson, remains to see what kind of subject we come with. Also do we rely on a framework / existing script or we assume you start from 0? For example do we do mods for McCode? -
Would you compete in a MWG Mini-Game Contest?
a_bertrand replied to Sim's topic in Question of the day
I doubt you will have a lot of people participating if it takes more than 1 or 2 hours... 10 hours is already a lot. Also, what kind of tasks will you give? And how should it be judged? -
I shall add some general information: Optimization is generally (if not always) done at the cost of code readability. Which means you may loose some clean code because you optimize it. In some case optimization will speed up execution at the cost of more RAM requirements. That means: - Optimize ONLY when you need it, and not otherwise, as you may end up with a code hardly maintainable which at the end may even prove to be slower due to poorly written code. - Optimize ONLY the piece of code which really have some impact. That means if you have 2 functions one of which you call it only once and the other 100 times, you may get better results by optimizing the code which really eat up time in total: 1x1000 ms vs 100x1 ms => the single called function will have an higher impact on the other side: 1x10 ms vs 100x10ms will make more sense to optimize the one you call 100x. This makes overall code hard to optimize without a good profiler. Overall I would tend to start without any optimization, with a code which does exactly what I want and not use tricks unless I do see I have really a bottleneck somewhere. For most of you, PHP will be fast enough without any special tricks. Your players will have more issues with the network / server connections than with your own PHP code. Or if you really need to optimize something, then I would start to check the SQL queries and see if some index may not help, as this is usually something developers tend to keep on the side and forget. That doesn't mean put an index everywhere! as index are also expensive during insert / updates / delete. To come to your "avoid the usage of * at all cost", in theory I would tend to agree, but instead of making multiple selects (scattered across your code) to retreive the pieces required, a much smarter and efficient way would be to load all at the beginning and then use the pieces where required even if some of the data loaded is not always used. Think that this kind of optimization (avoid to read a whole row) is effective specially where the database server is NOT the same as the web server and that the data need to be sent over the network, otherwise it will have little to no impact. As conclusion, forget optimizations as "this will fix all your speed issues" as this is not true. Code optimization is extremely difficult, require a full knowledge of YOUR specific problem (as every code work differently) and require quiet some knowledge. So stay away till you really need some.
-
Seeking several partners (programmer, artist(s), designer, content creator)
a_bertrand replied to Sim's topic in Requests
Could you please make it in the section: http://makewebgames.io/forumdisplay.php/379-Partnerships And follow the rules (of that section). -
Would you compete in a MWG Mini-Game Contest?
a_bertrand replied to Sim's topic in Question of the day
I would not go for too big projects. Projects that takes 1-2 hour max would be my idea otherwise people would not submit it as it would be too much work for just a little fun. Question, which language? PHP only? What would be judged on? Code quality? Speed? Short code? Or first to submit? -
I'm willing to make the judge... let's hope there is a bit more than 2 submissions as last time I did such thing I didn't got many more.
-
Wrong section. Use: http://makewebgames.io/forumdisplay.php/379-Partnerships And follow the rules of the section!
-
Desktop and by far the best solution for me. As a 30'' screen and 8Gb ram plus 3 HDD don't fit all that well in a laptop. However I do have a laptop for when I need to do presentations.
-
With PHP I mainly develop in a procedural way. But day to day I mainly use C# where I work exclusively in OO
-
I would personally do it like that: For small table, order by rand is a solution... For bigger tables DO NOT use it instead: "SELECT COUNT(*) FROM MY_TABLE" "SELECT * FROM MY_TABLE LIMT ".rnd($maxrow).",1
-
Ok just for the shake, I gave a trial of the first problem at Project Euler... Beside being an easy problem I managed to do it in one row in C#: Console.WriteLine(Enumerable.Range(1, 1000).Where(row => row % 3 == 0 || row % 5 == 0).Sum()); Enumerable.Range generates all the numbers starting at first argument and till second one exclusive. With a LINQ statement I select only those which are either dividable by 3 or 5 and make the sum of those. Console WriteLine will output the result. Again was just for the fun, and to see how that would work with LINQ ;)
-
My own opinions: - Switching from one language to another is not simply matter of learning the syntax and a few functions, it's actually a lot more. If you know how to code with at least one language usually you will take about a couple of weeks before you may start really to work with another. Yet before you really can code correctly with this new language and framework (usually a language is not just a set of keywords but contains also some libraries), you will need 6-18 months. Which means, switching from one language to the other is something expensive in term of time, and therefore you will not want to deal with more than one language for you different projects even if this is hardly doable as you may need HTML, CSS, JS, SQL and some backend (PHP, C, Java or whatever). But the less you change between language the better it is. So saying that you should experiment with a language for a given problem may be true but in practice you will stick with a language which will fit most cases. - C for web oriented matters? Nope sorry it's certainly not the best choice. You can do it, sure, but you will have certainly an harder time than others even like PHP. And harder time means longer development time and more error prone. - A language doing all is not cutting anymore? Well, yes and no. Certainly some languages do offer some advantage over some others in certain areas, but mixing C, Assembler and Python in a single project will make like just extremely difficult and will produce a software hardly maintainable. BTW Assembler may or may not be faster than C... depends how you write in assembler or in C and what you do exactly. Today you will hardly use assembler beside for some very specific areas. Even talking about C / C++ vs C# speed: http://blogs.msdn.com/b/ricom/archive/2005/05/19/420158.aspx If you don't want to read all those blog posts (which btw are not running with the latest .NET either) shows that the first 6 version of their C++ code was actually slower than a first C# code... Shows that getting better results with C / C++ is not given, same for assembler! So trust me, don't spend too much time trying to learn 200 different languages, as you will never end and never master any. What counts is what you will use at your company or which language you know better. You are extremely good with python and you have all your libs written in python? Stick with it. If you know very well PHP and do only web development then don't switch either. On the other side if you need to do GUI, server and web development then choose a language which will do all those for you in a correct way. Again this is my own opinion and experience.
-
You may check php.net or any web tutorials. If you know Python it should not take you that long to understand PHP.
-
Ok, I will try to contact you once the site I'm talking about is back as currently I don't have it online. Let's hope in one week.
-
I could use some help, but I do require either somebody willing to help on the content, therefore content writing or implementing with the help of the engine (no direct coding) the story or work on the engine itself, however this is C# code (not really the simplest code to start with) with ASP.NET and Silverlight.
-
For those which rent a dedicated server, runs a linux server at home or offer web hosting in some way (VPS renter do not apply here) may face one day one of the following problem. For the others it may be obscure, and for those I'm sorry but I will not explain all the details. The problem: Imagine that you have a server which runs some services like MySQL, Apache, PHP, DNS, FTP and maybe some others. Now, one day you decide that you have still place left on it to host firends of users of other kind. Or you may discover that one service / software is unstable / unsecure and requires some isolation of some sort. In case you host things for somebody else, you certainly don't want to grant him/her full access to your server, therefore you MUST somehow separate his/her stuff from your own. In case of stability / security issues, you may not want to compromise the whole server in case one thing is hacked or crash. Solutions: To host PHP files of friends or other and yet prevent them to access your files to easily, you may install a package like PHP-FPM or equivalent: http://adityo.blog.binusian.org/?p=428 However this will work ONLY for PHP and will not make a complete isolation, which means your other users will quiet certainly have some kind of access to the whole server. VMWare or other virtualisation software offer a complete isolation / separation and offer like another server available for whatever you want. This is usually what VPS are and you may as well do the same on your own dedicated server to host VPS for friends or others. However there is a few drawbacks, a VPS eats a lot of ressources CPU/DISK and more so Memory! As you will hardly run a successful VPS with less than 512Mb which means you will eat 1/2 Gb of ram for each VPS you run. Therefore if you have 4Gb ram, you will not run more than 6 VPS successfully as you need to save some resources for the host machine as well! Another issue is that each VPS do require its own IP if you want to access it from the outside. One of the main advantage of this solution is that you may also install other OS like installing a windows on a linux or the reverse. For my personal needs which are basically hosting players small web sites, with PHP enabled, and yet completly isolate this from the remaining part, I decided to use VServer which is somethings special ( http://linux-vserver.org/Welcome_to_Linux-VServer.org ) as it's mainly a special Linux Kernel (which you may find pre-compiled for most major distributions). Once installed this kernel allows you to create virtual servers nearly like a VPS with a couple of main differences. Virtual servers don't use ANY memory by their own, as the kernel and drivers are shared with the host. Which means the virtual servers will use only the memory used by the soft running on it. Starting vserver will use like 200 Kb! For my own need I installed an apache in this vserver with php and that's it. For the IP you may either use some NAT or let the vserver use it's own IP. I decided to go for private IPs and an apache proxy forwarding which means the apache on the host will forward the requests to the guest on the private IP. Therefore PHP scripts running in this vserver will see only the files which are on the guest system... which is nearly empty. Therefore the best solution for me and certainly something to check if you didn't know about it.
-
Sorry but I could not agree less. Unity 3D offers C# or Javascript coding with integration with VisualStudio or not. Offers even profilers, and special effects which blenders can only dream of. For me blender is a cool free 3D modeling / rendering software but certainly not a pro soft nor really a game engine.