560 Posted Topics

Member Avatar for ronniel.duque.1

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 …

Member Avatar for Hiroshe
0
630
Member Avatar for johnMArc

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."

Member Avatar for Hiroshe
0
60
Member Avatar for geekboots

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 …

Member Avatar for deceptikon
0
306
Member Avatar for Christopher_7
Member Avatar for Jack_9

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 …

Member Avatar for iamthwee
0
410
Member Avatar for oanahmed

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 …

Member Avatar for oanahmed
0
349
Member Avatar for fobos

> 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).

Member Avatar for Hiroshe
0
195
Member Avatar for Jack_9

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 …

Member Avatar for mike_2000_17
0
264
Member Avatar for archie.herbias

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 …

Member Avatar for archie.herbias
0
2K
Member Avatar for Abeeha sheikh

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.

Member Avatar for Ancient Dragon
0
147
Member Avatar for lilapontes

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)?

Member Avatar for rubberman
0
173
Member Avatar for rela

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++?

Member Avatar for rubberman
0
799
Member Avatar for Slavi

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 …

Member Avatar for Hiroshe
0
278
Member Avatar for mnewsome

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).

Member Avatar for Xlphos
0
207
Member Avatar for tanuja vykuntpu

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.

Member Avatar for tanuja vykuntpu
0
120
Member Avatar for mixelplik

> 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. …

Member Avatar for mixelplik
0
298
Member Avatar for Hiroshe

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 …

Member Avatar for Hiroshe
0
196
Member Avatar for iConqueror

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. …

Member Avatar for Reverend Jim
0
214
Member Avatar for philosopher779

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 …

Member Avatar for Dani
1
383
Member Avatar for EnergeticJet

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 …

Member Avatar for DragonMastur
0
382
Member Avatar for Ummn

> 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 …

Member Avatar for Hiroshe
0
270
Member Avatar for iConqueror

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) …

Member Avatar for iConqueror
0
449
Member Avatar for Eng.Ray

> 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 …

Member Avatar for Eng.Ray
0
89
Member Avatar for glen.persson
Member Avatar for iConqueror

> 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 …

Member Avatar for jwenting
0
224
Member Avatar for zhoudavid

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 …

Member Avatar for mike_2000_17
0
262
Member Avatar for iConqueror

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 …

Member Avatar for Hiroshe
0
305
Member Avatar for hulk123

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 …

Member Avatar for Hiroshe
0
114
Member Avatar for Martin_3

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 …

Member Avatar for Hiroshe
0
364
Member Avatar for kazzmagic
Member Avatar for Hiroshe
0
81
Member Avatar for iConqueror

> 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 …

Member Avatar for Hiroshe
1
171
Member Avatar for kxjakkk

`__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 …

Member Avatar for Hiroshe
0
616
Member Avatar for lewashby

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 …

Member Avatar for snippsat
0
438
Member Avatar for iConqueror

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++, …

Member Avatar for almostbob
0
195
Member Avatar for blackmiau

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.

Member Avatar for almostbob
4
1K
Member Avatar for DeanMSands3
Member Avatar for prathibha20
Member Avatar for rubberman
0
131
Member Avatar for Auroch

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, …

Member Avatar for Lucaci Andrew
0
278
Member Avatar for EarhawkPH

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 …

Member Avatar for Lucaci Andrew
0
166
Member Avatar for yaldoo

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.

Member Avatar for NathanOliver
0
4K
Member Avatar for BogdanCov

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.

Member Avatar for vegaseat
1
287
Member Avatar for RikTelner

An idea for a website will never be as nice as a website for an idea. What kind of things are you interested in?

Member Avatar for vegaseat
0
268
Member Avatar for Stefce

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

Member Avatar for Stefce
0
213
Member Avatar for pizzaaaa

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 …

Member Avatar for rubberman
0
151
Member Avatar for Kunal_2

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.

Member Avatar for Hiroshe
0
67
Member Avatar for Daniel_25

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 …

Member Avatar for Hiroshe
0
143
Member Avatar for ITPT

> 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...

Member Avatar for ITPT
0
179
Member Avatar for khakilang

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 …

Member Avatar for Word_1
0
308
Member Avatar for tapananand

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.

Member Avatar for tapananand
0
308
Member Avatar for anita_2

> 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.

Member Avatar for anita_2
0
187

The End.