Clechay
-
Posts
68 -
Joined
-
Last visited
Reputation Activity
-
Clechay reacted to mariushm in PHP password generator (Which is considered secure)
Both are equally bad.
You should use mt_rand or mt_srand
Why limit the characters to only those in the array? There's other characters on all keyboards that can be easily typed:
From "!" (0x21) to "~" (0x7E) all characters can be manually entered by keyboard or safely printed on screen or sent through email.
Sure, you may want to avoid similar characters like ' (apostrophe, 0x27) and ` (grave accent, 0x60) but it's no biggie.
so you could have:
function make_password($length=16) { $code = ''; for ($i=0; $i<$length;$i++) { $character_code = mt_rand( 0x21 , 0x7E ); $code .= chr( $character_code ); } return $code; } But Honestly, a better password would be to pick 5-8 random words from a dictionary and capitalize some letters and add some punctuation or hyphens, exclamations, would make for better passwords. Then make a sha256 or md5 hash of that phrase and store that in the database (hashes are fixed length, good for DB storage)
obligatory xkcd
-
Clechay reacted to Mira Yurizaki in Which programming program should i use
http://wiki.unity3d.com/index.php/UnityScript_versus_JavaScript
-
Clechay got a reaction from maz0r in Ultimate Programming Resources Thread
You can add Microsoft Visual Code - text editor based on same technology as Atom but fast and stable
-
-
-
-
-
Clechay reacted to Dat Guy in Web Development
Why do you think every frontend has to have scripts of any sort?
-
-
Clechay reacted to mikat in Web Development
because it's the only scripting language that all browsers can parse?
-
Clechay reacted to Limecat86 in Post your programs!
This is my MVC framework. Still a work in progress though.
Created for learning purposes only. Maybe I'll use this someday for a personal project.
https://github.com/iDutch/RHMVC
-
Clechay reacted to Geit in Laptop for Visual Studio development
The screen size (UHD) I find to have no use for me on a laptop. You gotta scale up everything on laptop monitor anyways, as you do not want to have your face glued to the screen to see stuff, so for my opinion 1080p is enough.
The ram depends on what you are working with. If you got multiple dockers or vagrants running, you might be even lacking when having 16gigs of ram. I've hit that 16gb mark with my work laptop, but if you aren't running any virtual machines, then you should not worry for this
-
Clechay reacted to Nuluvius in Laptop for Visual Studio development
Totally. It's kinda been by subtle point all along
-
Clechay got a reaction from Nuluvius in Laptop for Visual Studio development
Anybody who says SSD is not a must is not a serious programmer
-
Clechay reacted to beanhubbleday in What do you language recommend new programmers start with?
English
-
Clechay reacted to dfsdfgfkjsefoiqzemnd in What do you language recommend new programmers start with?
"What do you language recommend new programmers start with?"
Based on that title structure, I'd recommend English.
Joking aside, I'd start with the basics of html, then once you can make a half-decent site (in notepad, no sitebuilding tools) I'd switch to php.
-
Clechay reacted to SCHISCHKA in What do you language recommend new programmers start with?
https://en.wikipedia.org/wiki/Brainfuck
you missed one
-
-
Clechay reacted to Mira Yurizaki in Can I use the source code of the amazon echo for my own commercial use.
It completely depends on the licensing of the source code. If it's an open source one (like BSD, MIT, or GPL), you'll probably be able to get away with what you are proposing provided you abide by what's stated in the license file.
Some are more relaxed about what you do with the code than others. For example, MIT licenses require that you only keep the license file and the copyright information. If it's GPL though, any changes you make must be GPL licensed as well, and you must provide a way for someone to obtain said source code.
But all in all, read the license thoroughly. If you miss even one thing, Amazon can sue the pants off you.
-
Clechay reacted to Fourthdwarf in Can I use the source code of the amazon echo for my own commercial use.
You're right.
It is illegal to do *anything* with it though, including reading, using or compiling it.
-
Clechay got a reaction from IAmAndre in Which technology to push data to browser?
You make an interface that app (backend) uses identically to communicate with every client but this interface utilizes different technologies depending on what client supports. Example of such interface is socket.io which is in fact capable of using not only few different socket technologies but also xhr if client does not support sockets at all
-
Clechay reacted to Mira Yurizaki in Need a program to monitor CPU TEMPS
Software is unreliable. Get a thermal probe and hook it up to a multimeter :3
(I'm not being serious, by the way)
-
Clechay got a reaction from Mira Yurizaki in Which technology to push data to browser?
Check out socket.io
-
Clechay got a reaction from Nineshadow in Which technology to push data to browser?
Check out socket.io
-
Clechay got a reaction from Mira Yurizaki in How to Pick a Programming Language
Somebody ignored JS and Ruby as web-server langs despite PHP being incapable of creating functional server