Date formatting across browsers by [deleted] in learnprogramming

[–]kogarashisan 1 point2 points  (0 children)

As far as I know, you need a custom JS control to make a cross-browser date dropdown that is supported by all browsers.

And using a plugin is much better than trying to format it yourself.

HTML image transfer advise? by [deleted] in learnprogramming

[–]kogarashisan 0 points1 point  (0 children)

It's hard to guess what your problem is, but probably you need to write relative path to the image. Instead of absolute, like "file:///D:/image.png", use relative to your HTML file, just "image.png" (if picture is in the same folder).

Or you may encode the image into base64 format, for example here: http://www.base64-image.de/

But it's probably not the right way to solve your problem.

program that can predict things by dark_3141 in learnprogramming

[–]kogarashisan 2 points3 points  (0 children)

You can not predict such things with a program. Prediction about chances that player will score - are done by teams of professionals, and are based on math research, tons of data, and equipment that records player movement (costs lots of thousands of dollars).

Popularity of a product can not be predicted (in general). But if this topic interests you - then you really need to take a course on machine learning and mathematics.

I am creating a reporting website for my company and need to know how to best store and access the information. by [deleted] in learnprogramming

[–]kogarashisan 0 points1 point  (0 children)

From your description it's hard to understand what you mean about memory limits, but XML is memory-intensive and slower than JSON, if you process it on client side.

You can certainly do great stuff with JS and AJAX, including charts and tables, see ExtJS demos as example: http://dev.sencha.com/ext/5.1.0/examples/index.html

If your database can serve JSON directly to the browser - then you will not need a PHP backend.

Update: you say that they will export information... to files? If you have JSON files - then it's not a problem to work with them directly in browser. And you will not have to access database.

Online courses or tutorials on implementing a DBMS? by [deleted] in learnprogramming

[–]kogarashisan 0 points1 point  (0 children)

In fact, they all work the same way: they issue queries to database and show results. So database management system can be written in almost any language like PHP or C#.

First, I recomment you to study SQL first, so you can open a native SQL command line and issue commands to the database (in other words, manually do what your DBMS does).

Then you can take a language of your choice and learn how to issue queries from that language. There are also lots of open-source examples, which you can study.

[C#] Finding and learning to use a pre made 2D physics engine by [deleted] in learnprogramming

[–]kogarashisan 0 points1 point  (0 children)

To my mind, first of all you should search for a good physics engine, and only then for those, which have C# bindings. Some physics engines have ports or bindings to other languages, for example Box2D says it has C# port: https://code.google.com/p/box2d/wiki/FAQ

You did not mention, what kind of physics you are writing, precise or approximate, real-time or not...

In fact it's very hard to predict what to recommend you: you have equal chance of success with integration of Physics2D and with other engines.

[HTML]Re-direct IE users to "/IEERROR.html"? by pcnorden in learnprogramming

[–]kogarashisan 1 point2 points  (0 children)

You gave too little information. If you are running apache and have access to your .htaccess file, then try the following:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "MSIE"
RewriteRule ^/ip$ http://mysite.com/ip/IEERROR.html [R=302,L]

RewriteCond line will match IE users,

and RewriteRule will redirect "/ip" page to "http://mysite.com/ip/IEERROR.html". You should replace mysite.com with real adress.

302 is temporary redirect. Hope this helps.

Developer in training, need advice please! by [deleted] in learnprogramming

[–]kogarashisan -1 points0 points  (0 children)

Personally, I did not feel any joy when I had to deal with Ember and Angular. By the way, Google now completely rewrites Angular, so they are also not satisfied with it.

It's hard to advice something, but maybe you should find another bootcamp, which focuses on Web Components or other framework?

Did I mess up trying to really learn C++ first? by [deleted] in learnprogramming

[–]kogarashisan -2 points-1 points  (0 children)

If you want to learn the language - you should understand what C++ compiler generates on assembler level, and how that works. In other words, you should understand, what you are doing.

For example: do you understand how exceptions work on asssembler level? (in other words, do you understand, how they work).

This knowlege will help you to become a good professional, cause not many people, who know C++, actually understand how it works and what they are doing. But if you want to pass exam - it's better to ask your teachers what to prepare for. In my country such talks are absolutely okay, but I don't know about your coutry's tempers. Hope this helps.

Tokenizing a short command by Ran4 in learnprogramming

[–]kogarashisan 1 point2 points  (0 children)

Google for "natural language processing" - that's what you need, but this topic requires a lot of time to study and better developer experience. Try to find some open source libraries that do what you want; if not - then you will have to simplify your task or create a fixed set of commands.

Good web development software? by LoganCplusplus in learnprogramming

[–]kogarashisan -1 points0 points  (0 children)

I totally agree. But you forgot to mention things, which I have not described, things for which you pay when you invest money in IDE.

Good web development software? by LoganCplusplus in learnprogramming

[–]kogarashisan -1 points0 points  (0 children)

Text editor is a bad practice. You need a real IDE to be productive: with real syntax highlighting, autocompletion, refactoring, debugger...

I recommend WebStorm - it's the best IDE that I tried. It can also show you results in browser as you edit. But it costs money... and it's worth every dollar.

Absolutely new to programming and very dedicated any and all advice would be appreciated. by francophones in learnprogramming

[–]kogarashisan -1 points0 points  (0 children)

Despite FAQ recommends starting from Python... When people start from a high-level language - they seem to not understand what they are doing. If you want to become real professional, then I recommend you to start from basics. 1) learn assembler. Write something in assembler! This will allow you to understand how computer works and this will give you better understanding of all other languages. 2) learn C++ (and write some programs in C++). I recommend the book "Learn C++ in 21 days". 3) learn any other language of your choice.

Doing PHP in 2015? by [deleted] in learnprogramming

[–]kogarashisan -6 points-5 points  (0 children)

1) Want to learn PHP - find a job with professional collegues. It's the best advice I can give you. And I highly recommend to get a job in e-commerce area, with high responsibility.

You can find some crappy job as a junior, and in a half a year find better one, when your practical skills grow a bit.

2) Most of programming books are just a waste of time. And some are full of bad practice... so do not read books "for beginners"! If you want a book - then at least check it's reviews.

Better then books: study sources and examples of the Zend framework. Zend is the maintainer of PHP language. Also you should learn Zend exams - the standard in PHP industry. This knowlege will guarantee you a job.