560 Posted Topics
Re: A more advanced method would be something like as demonstrated [here](https://www.cygnius.net/snippets/passtest.html). It's source code is also available for review. It estimates entropy taking into account dictionaries and common substitutions. One thing that has been noted before: capital letters have less entropy per keystroke then lowercase letters. (ie, it takes 2 … | |
Re: Asking "I want to make X but better, what can I do to do that" will generally end in diappointment. Mostly because you've got it backwards. You should be saying "I've already noticed that X isn't capable of doing this, and I'll fix it." | |
Re: Some critisism: 1. The moving header is painfull to look at. 2. The tutorial lacks any explanation of the mechanics of what's going on. 3. The tutorial teaches some bad practices. Most notable, `void main()` is incorrect, and it seems to have been used in every example except for the … | |
Re: Python might do well as an embeded embeded language, but it's not fast enough for real time aspects of most serious games. You could write the game with Python as the main language and write the things that need to be fast in C/C++. That's how "fast" Python game libraries … ![]() | |
Re: int size; int arr[size]; Yes, size is uninitialized, and the behaviour is undefined. This code is not correct. Also keep in mind that this will only work with C99 and later (C89 does not support variable length arrays). For fun, you can try to find the length of the array … | |
Re: > convert the date string to an actual date. > ["creation date"]=> float(1392057306) Wait, do you want to convert a string into a DateTime? Or a Unix timestamp into a DateTime? Or a string into a Unix time stamp? In any case, your progably looking for something from [here](http://www.php.net/manual/en/ref.datetime.php). | |
Re: You certianly can't write the entire thing in python. You might actually be able to program a hunk of the kernal in a minimallistic python environment though. Basically, you'll need to strip python down to the interpreter, compile it to an elf, and link that with your own C and … | |
Re: If you want to build an interpreter, make a repl. Repl stands for: Read, Evaluate, print and loop. Generally thats how pipeline programs work, and it's not unusual fotprograms that deal with real time data, as well as (of course) programming language interpreters. For simple programs it might look something … | |
Re: I can't speak for everyone, but we're not psychic. At the very least I don't know anyone with an Espeon as their avatar. | |
Re: Do you know [SQL](http://www.w3schools.com/sql/)? Do you know how to run SQL queries from [PHP](http://www.w3schools.com/php/php_mysql_intro.asp)? | |
Re: I tried to figure this out too. It looks like a derivitive of Pascal, but everything inside of the loop is very strange. Is this the OP's attempt of converting from this mystery language to C++? | |
Re: I'm not familiar with Kali, and I winged the entire thing without testing. Here goes. As root: # Create the users home directory. mkdir /home/<username> # Copy home over from root. cp -r /root/* /home/<username> # Create the account. useradd <username> -d /home/<username> passwd <username> # Set default permissions. chown … | |
Re: Yes, it's indeed dangerous. First question: Why? I wouldn't suggest updating the bios for the fun of it. Look to the manufacturers website first (non-third party). If yuo wanted to go ahead and do it, you can try [this](http://www.coreboot.org/index.php/Main_Page) or [this](http://www.openfirmware.info/Welcome_to_OpenBIOS). | |
Re: Help you with what? If you want to use python with no 3rd party libraries, then you'll want to use [CGI](https://docs.python.org/3/library/cgi.html) python scripts and [sqlite](https://docs.python.org/3.4/library/sqlite3.html). If you're open to using more libraries, then consider using Flask and SQALchemy. | |
Re: > Instead of the while stopping at 8 it just goes whole Fing hog. I'm not sure what that's even supposed to mean. "whole Fing hog"... I'm sure you can provide a more productive description then that! String's in C are null terminated, and cin doesn't read in the newline. … | |
I put this in the Unix catagory, however I beleive Windows pipes also can perform atomic writes - correct me if I'm wrong! Say I'm trying to save a large stream of information onto a filesystem. This filesystem might be local, it might be LTFS (a tape filesystem. Here, seeks … | |
Re: My first language was QBasic. Not reccomended though. For anyone learning programming, the first thing I usually try to tell them to keep in the back of their head is that programming is really diveded into two parts. The first part is language, which is how you communicate your ideas. … | |
Re: C is one of the most popular languages, and it also shares a "special closeness" with the computer. I would say it's worth learning it, even if you don't use it. I would also recommend you check out [Racket](http://racket-lang.org/) and [htdp](http://htdp.org/2003-09-26/) (MIT press). Racket is used to introduce programming in … | |
Re: One that's currently linked in my signature. Beginner-Intermediate Consider the following two graphs: [Click Here](http://imgur.com/bI6lTfY) The graph on the left is said to be two-colourable (or bipartite), because you are able to colour the nodes with two colours such that no adjacent nodes are the same colour. It is impossible … | |
Re: > Why would they display realtime cyber attacks? Why not? > How can they catch cyber attackts in 'real time'? They've set up honeypots (propably on client facilities) that report back. Then it's just statistical analisys. I have a hunch that they're just dumping all connections on the map for … | |
Re: Tip: learn both. Even if you're programming in a high level language, sometimes it's usefull to know whats going on underneath. For example, say knowing how tail-recursion can effect the stack, or say knowing the mechanics of stack smashing. Even futher, understanding how the Cashe works (this is hardware-low level) … | |
Re: > how could it intergrate with these knoweldges togather Lern them both. "Integrating" them is obvious once you do. I beleive most people into that sort of thing know a great deal of perl and bash. > what I should learn more than I have in this field"networking" It kind … | |
Re: > it's not taught in schools. It depends on the school. Generally I question schools that don't teach Math-based Computer Science, but I'm biased. > What can I do to improve my ability to tackle complex programming problems? You can try project euler. It was taken down recently, but you … | |
Re: By parsing the code, and making a lookup table of the symbols. The most trivial way to implment this is with regex's (which would probably only take a few LOC). A more powerfull way is to lexically analyse the code into tokens. [ctags](http://ctags.sourceforge.net/) is a project which can tag 41 … | |
Re: My quick 2 cents. I find that OOP is almost a natural extention to procedural programming. In fact, often my completly procedural programs will almost mirror OOP programs (not just me either). Going from one to the other is generally pretty easy. If I'm dealing with something more algorithmic, I … | |
Re: The majority of malware is installed by social engineering, not browser exploits. A script crawling the web will not be vunerable to this kind of attack (unless you write a crawler that speficially finds these kinds of sites, and tests them in sandbox's for statistical purposes). Furthermore, most web crawlers … | |
Re: We can't look at everyones initial post, and assume that that stick with only one language. :P I beleive you would get faster and probably better answers on the C# subforum. Assuming that you're on Windows (yes, C# is cross platform), then I think you're looking for [this](http://msdn.microsoft.com/en-us/library/windows/desktop/ms633499%28v=vs.85%29.aspx) guy and … | |
Re: So whats the problem? Look's ok to me (besides ever-helpfull indentation). | |
Re: > What is the common language to write for a handheld gps? Non in particular. When a company makes a product like that, they'll generally base it around a chipset (PIC, AVR, ARM, ...) and a provided (ish) tool chain. If it's advanced enough, it might be able to run … | |
Re: `__init__`, `withdraw` and `deposite` are fine. Though I would call `dep` something better, like `deposite` or `balance`. def fee(self, amount): if self.dep - amount < 1000: self.dep -= (amount + 10) return self.dep Uh, wern't the values $100 and $20? Also, what does `amount` have to do with anything? If … | |
Re: For the path problem: 1. Use relative paths when you can. 2. Detect the platform an decide on where you should look for the config files. 3. Use os.path.expanduser to find the users home directory and write the config there. 4. Use the installer to your advantage, and let the … | |
Re: 1. I was 11 years old. Been programming for 10 years. Currently in University for Mathematics and Computer Science, and I'm still learning. 2. I don't really have a favourite language. Thought, if you pressed me, I kind of like Scheme based languages. My usual preferences would be C, C++, … | |
Re: Also a Commodore 64. Kept using the monitor as a tv up until 2007-ish. Worked beautifully. It was a hand-me-down though. I'm not quite that old. | |
Re: http://rosettacode.org/wiki/Rosetta_Code | |
Re: Reading l33tspe4k is hard on the eyes. What error message shows up? | |
Re: 1. In C++, header files do not need `.h` (and do not recommend). So remove all of them. 2. Don't use `conio.h`. I don't know who taught you that, or what museum you got your book from, but they should have stopped teaching that two decades ago. 3. By convention, … | |
Re: 1. You missing `#include <stdio.h>` 2. Your missing `int main()`. Main returns an int. 3. Everything in your scanf is a string. Remove the quotes. 4. Lines 5 and 6 are missing `;`. 5. `printf` is expecting 3 numbers, yet you only gave it 2. 6. `getch()` does not exist … | |
Re: 2 things to note. > \#include <iomanip> You're not even using this. > getline(cin, info); Why not `cin >> info;`? Whats the problem with your code? What works and what doesn't? Be spesific about the things your having problems with. | |
Re: Buisy people tend to invest time in only a few games if any at all. I see no reason why it's worth investing time into this game. | |
Re: An idea for a website will never be as nice as a website for an idea. What kind of things are you interested in? | |
Re: You said you've searched on google? I'm not even an android developer, and I got this after a minute of looking: http://developer.android.com/reference/java/io/FileWriter.html http://developer.android.com/reference/java/io/FileReader.html | |
Re: Python has it's own forum. Are you taking about menu's in a Widget toolkit like TKinter? Or are you talking about nested loops. Or you can also put the loop in a function, and return. Also, python has a "for...else" construct which can do this. Google it. If you're talking … | |
Re: C# has it's own forum. Calculating words per minute is trivial. It's the number of words divided by the number of minutes. Acurracy is also trivial. It's the number of mistakes divided by the number of words times one hundred. | |
Re: First for the d drive problem. You probably don't need the recovery drive to be mounted, or if you do, you can assign it a different letter. After that you can create a virtual disk to be used for d drive. 1. Press "Windows key" and r, type in compmgmt.msc … | |
Re: > how to change the CentOS-Media.repo in etc/yum.repo.d without editor? Why not just use an editor? Use Vi/Vim (vi is availible on all unix systems), nano, or Emacs, etc... | |
Re: I would examine the disk with a dos boot floppy, and see if the drive is mountable. If it is, back it up from there. If it's not, try to fix the filesystem. If you can't, then you definatly have some work ahead of you. You could also try to … | |
Re: Since you're still backtracking through all of the possiblities (no assumptions have been made), it will work fine. It might be also interesting to note that this problem is an exact cover problem. | |
Re: > how will do that in java i have no idea can you please help me. Well, have you learned Java yet? [Here](http://introcs.cs.princeton.edu/java/home/) might be a good place to start. |
The End.