Search found 312 matches

by Area Man
Fri Apr 26, 2013 5:32 pm UTC
Forum: Computer Science
Topic: Soft hash function
Replies: 13
Views: 8744

Re: Soft hash function

You could use the Damerau-Levenshtein distance (or similar string diffing function) to modify the color value, instead of hashing.
by Area Man
Wed Apr 03, 2013 5:30 am UTC
Forum: Coding
Topic: Can someone explain to me how to set up proper security?
Replies: 9
Views: 8373

Re: Can someone explain to me how to set up proper security?

So I am doing something(mostly as a hobby right no but it has a purpose) that requires a log in through a website. For the most part, its a one page message board, with only two users(but the potential for more). I basically want to make sure only people with proper accounts can access this page. I...
by Area Man
Thu Mar 21, 2013 1:12 am UTC
Forum: The Help Desk
Topic: Computer won't boot, keeps restarting
Replies: 2
Views: 3592

Re: Computer won't boot, keeps restarting

Can you get into the BIOS setup? if not, it's mainboard or hardware issue; if yes ...? I would say it might be bootloader, but I've unplugged everything except the motherboard and CPU power and one stick of RAM, and it still happens. 'everything' meaning every card, drive, and wire except power butt...
by Area Man
Fri Mar 08, 2013 4:49 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1951814

Re: Coding: Fleeting Thoughts

Sorry to interrupt, but I had a quick question. Say I write a c++ program with an infinite loop and within the loop it creates text files (with different names, text0.txt, text1.txt. . .) What will happen if the hard drive runs out of space to store these? (unlikely, I know, but just curious) Will ...
by Area Man
Wed Feb 27, 2013 5:16 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1179: "ISO 8601"
Replies: 379
Views: 97881

Re: 1179: "ISO 8601"

I can't tell you how often I rage about this. (from three+ years ago): http://forums.xkcd.com/viewtopic.php?f=40&t=41156&p=1745253&hilit=8601#p1745253 it should just be DD/MM/YYYY. Makes the most sense. No! Would you seriously write time as ss:mm:hh? or mm:ss:hh? No. The date is just an ...
by Area Man
Thu Feb 21, 2013 5:01 am UTC
Forum: Hardware
Topic: Crashy-ass computer... It's a mystery
Replies: 35
Views: 23566

Re: Crashy-ass computer... It's a mystery

Have you checked for bios updates, or just googled the mobo model? could be a known problem with a bad revision or batch. Or simply an hdd controller going.
And (obv) check for firmware of any other components you have.
by Area Man
Mon Feb 18, 2013 10:27 pm UTC
Forum: Coding
Topic: Dear Coders *user request*
Replies: 8
Views: 3249

Re: Dear Coders *user request*

Ixtellor wrote:Please learn from Google.

Indeed, so why blame coders?
Google was created by coders to get quick, relevant results. Other "web portals" were designed by corporations to keep you on their site.
by Area Man
Thu Feb 07, 2013 3:12 am UTC
Forum: Hardware
Topic: Crashy-ass computer... It's a mystery
Replies: 35
Views: 23566

Re: Crashy-ass computer... It's a mystery

My first thought was about PSU or video, too. Try * running in runlevel 3 to see if it's X * a different window manager, or * run off a live disk with older/newer components ? I've had power issues before which would (in my case) randomly reboot the system. May be neighbours turning on washing machi...
by Area Man
Tue Jan 29, 2013 5:05 am UTC
Forum: Coding
Topic: Using Integers for Input Values
Replies: 5
Views: 1732

Re: Using Integers for Input Values

Looks ok to me. Are you sure your php parser is being run on this?
Make sure it's a php file.
Try a simple echo "5=".(3+2); and check the error logs, the handler might be crashing or something.
by Area Man
Tue Jan 29, 2013 2:46 am UTC
Forum: Coding
Topic: Using Integers for Input Values
Replies: 5
Views: 1732

Re: Using Integers for Input Values

Is this native code or a web page? if web, client or server? if server, what language? ...checking a few other threads you started, it looks like you're doing a website. Most scripting lanuages let you treat input as either strings or numbers, or at least provide a string parsing routine [php:intval...
by Area Man
Sun Dec 23, 2012 7:10 pm UTC
Forum: The Help Desk
Topic: HTML form processing (with PHP?) gives 404
Replies: 2
Views: 2143

Re: HTML form processing (with PHP?) gives 404

Many servers won't let you submit post data to static (html) files, since they can't do anything with it anyway (it's a setting, somewhere). Try using an actual php script.
by Area Man
Sat Nov 24, 2012 8:36 pm UTC
Forum: The Help Desk
Topic: Ht tp connection fails, ftp and ssh do not <resolved>
Replies: 5
Views: 1412

Re: Ht tp connection fails, ftp and ssh do not

Check IPTables, UFW or any firewalls you may have running. Also, NMAP will tell you what's going on port/connection -wise.
by Area Man
Sat Nov 24, 2012 7:12 pm UTC
Forum: Computer Science
Topic: Help me please? I need to understand how a video card works
Replies: 5
Views: 6003

Re: Help me please? I need to understand how a video card wo

3.1: Typically, using a memory bus. But it may depend on which CPU, motherboard, and video card. For e.g., most new AMD and Intel CPUs have video built in (I don't know how they connect internally), and the motherboard must support it. For discrete cards, it depends on the physical bus PCIe, AGP, et...
by Area Man
Sat Mar 05, 2011 2:02 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1951814

Re: Coding: Fleeting Thoughts

I always recommend using at least -Wall when developing.
Better yet, add -pedantic -Wextra -Werror ; the compiler is your friend.
by Area Man
Sun Feb 27, 2011 6:30 pm UTC
Forum: Coding
Topic: Catch question
Replies: 5
Views: 1274

Re: Catch question

Exception handling is for run-time errors, not syntax or compiler errors - OP seems a bit confused there. What it does is let you separate the normal code flow from error routines, just as you divide your program into functions which take care of specific tasks. This is apposed to intertwining the p...
by Area Man
Tue Feb 08, 2011 1:50 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1951814

Re: Coding: Fleeting Thoughts

PHP found and fixed the problem earlier, this bug was found thanks to it. And for PHP it was only on 32 bit systems - so it didn't affect us (at work) at all.
ed. except for that one windows server... :roll:
by Area Man
Tue Feb 08, 2011 5:40 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1951814

Re: Coding: Fleeting Thoughts

joshz wrote:I don't really get all the Java hate, tbh. I mean, it's a little slow since the jvm has to run, but other than that, why is it that bad?


There are many reasons for my distaste for java, it could fill essay of it's own, but today I'll keep it succinct: it sucks worse than PHP.
by Area Man
Mon Jan 24, 2011 6:33 pm UTC
Forum: Coding
Topic: Fairly simple program, Fairly simple programmer (C++)
Replies: 8
Views: 1607

Re: Fairly simple program, Fairly simple programmer (C++)

You must add a person to the vector using push_back() before you can access it using [].
by Area Man
Sun Jan 23, 2011 9:46 am UTC
Forum: Religious Wars
Topic: Internet Explorer 9
Replies: 79
Views: 15115

Re: Internet Explorer 9

Well, the world doesn't begin and end with you; there are people being born every day, and some are young enough to not "remember" mini trends a decade-ago. There are jokes that have been told for thousands of years, doesn't make them any less amusing the first time you hear them. ... and ...
by Area Man
Sat Jan 22, 2011 3:08 am UTC
Forum: Coding
Topic: Fairly simple program, Fairly simple programmer (C++)
Replies: 8
Views: 1607

Re: Fairly simple program, Fairly simple programmer (C++)

Took just a quick look, didn't try building, but...
1. Use a vector instead of an array, that way you use vector.size() instead of asking for and using population.
and 2. check out the second while loop and that last if. I recommend using a -Wall switch (or equivalent for your compiler).
by Area Man
Thu Jan 20, 2011 4:05 am UTC
Forum: The Help Desk
Topic: Most efficient Linux setup?
Replies: 8
Views: 1469

Re: Most efficient Linux setup?

My home server is running a tiny, optimized LFS image, if you really want to learn the details.
by Area Man
Fri Dec 31, 2010 6:35 am UTC
Forum: Coding
Topic: Error: Field '----' has incomplete type.(C++ issue question)
Replies: 2
Views: 3259

Re: Error: Field '----' has incomplete type.(C++ issue quest

Graph.h doesn't know what a Coordinate is. You need to #include coordinate in graph.h, not #include graph.h in coordinate.cpp. BTW, you can use default values for the constructor instead of defining 3 variations: Graph( Coordinate a=1, Coordinate b=1, Coordinate c=1 ) { // ... } Same with Coordinate.
by Area Man
Mon Dec 27, 2010 4:53 pm UTC
Forum: The Help Desk
Topic: need help
Replies: 3
Views: 980

Re: need help

calzoncillos0610 wrote:Can anyone please help me, how can I check the server status remotely? Is there any tool for that? Please advice me..

Your post is as informative as the title, as well as in the wrong forum... you're 3 for 3.

Does this server have an operating system?
by Area Man
Wed Dec 22, 2010 3:25 pm UTC
Forum: Computer Science
Topic: Feels type insecure? (informal discussion of opinions)
Replies: 15
Views: 2950

Re: Feels type insecure? (informal discussion of opinions)

dynamic typing does the work of dealing with types for you "int" instead of "var" ... yeah, there goes my day, better to crash at runtime. You still have to annotate, possibly many times for the same variable with dynamic types. Otherwise it could be (in js) "", undefi...
by Area Man
Wed Dec 22, 2010 4:09 am UTC
Forum: Computer Science
Topic: Feels type insecure? (informal discussion of opinions)
Replies: 15
Views: 2950

Re: Feels type insecure? (informal discussion of opinions)

Type problems are usually found where units of code interact not the units themselves. Yes, well, you don't write unit tests to check for types everywhere, you make sure that every line of code has a chance to fail. Especially where units interact. A function expecting an object with property x can...
by Area Man
Tue Dec 21, 2010 1:46 pm UTC
Forum: Computer Science
Topic: Feels type insecure? (informal discussion of opinions)
Replies: 15
Views: 2950

Re: Feels type insecure? (informal discussion of opinions)

I'm not saying you don't need tests, just that the compiler does the work for you of catching many problems before you waste time on running the comprehensive tests.
by Area Man
Tue Dec 21, 2010 4:46 am UTC
Forum: Computer Science
Topic: Feels type insecure? (informal discussion of opinions)
Replies: 15
Views: 2950

Re: Feels type insecure? (informal discussion of opinions)

It's a common concern, that's why "test-driven" development was basically reinvented -- to custom simulate what a compiler would do for you. And it's still not up to par. So while many claim that scripting is faster than the compile cycle, they conveniently sidestep the fact that you also ...
by Area Man
Tue Dec 07, 2010 7:56 pm UTC
Forum: The Help Desk
Topic: Configuring Raid 0
Replies: 9
Views: 1143

Re: Configuring Raid 0

Do a format of the spare drive. FYI, RAID 0 is only for performance, and RAID in general is not a fallback (as in backup) solution, just gives you higher reliability/availability and speed. I.e., if you accidentally delete a file or get a virus, it will only happen faster and more reliably; you're n...
by Area Man
Sat Dec 04, 2010 10:50 pm UTC
Forum: The Help Desk
Topic: Need an error-tolerant WinXP copy program
Replies: 8
Views: 1261

Re: Error-tolerant WinXP copy program

Maybe try an archiving tool - 7zip, FreeArc and the like.
Not sure how they'll handle corrupt files, though.
by Area Man
Tue Nov 30, 2010 1:36 am UTC
Forum: Coding
Topic: How Do I Learn About [n]?
Replies: 181
Views: 377009

Re: How Do I Learn About [n]?

headprogrammingczar wrote:If you know Java, you already know most of C about curly braces.
by Area Man
Tue Nov 30, 2010 1:32 am UTC
Forum: Coding
Topic: PHP error debugging
Replies: 10
Views: 3197

Re: PHP error debugging

You can set display_errors on to show up in the browser. It will also write an error log.

http://www.php.net/manual/en/errorfunc. ... ration.php
by Area Man
Sat Oct 09, 2010 4:56 am UTC
Forum: Coding
Topic: Plain HTML rendering widget?
Replies: 14
Views: 1789

Re: Plain HTML rendering widget?

You should use the superior Qt framework -webkit is used by chrome.
They're both native C++, but I believe qt supports lua to some degree.
Maybe look into QML.
by Area Man
Mon Oct 04, 2010 2:57 am UTC
Forum: Computer Science
Topic: question about windows/linux systems for businesses
Replies: 5
Views: 1653

Re: question about windows/linux systems for businesses

What's going on at your uni is called Active Directory, with roaming profiles. The Linux systems are most likely running Samba.
by Area Man
Tue Sep 28, 2010 4:20 am UTC
Forum: Coding
Topic: C++ Problem with cin>> buffer (i think it's the buffer...)
Replies: 14
Views: 2784

Re: C++ Problem with cin>> buffer (i think it's the buffer..

Yeah, I realize that this is just testing code. The thing about that is that you don't just one day fall into good habits.

If you write all your POC code in a pret-a-porter manner, you won't waste time doing simple things twice; and it makes the testing and debugging itself quicker+easier.
by Area Man
Sat Sep 25, 2010 2:15 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 550296

Re: The "IT DOESN'T WORK!" thread

Have you tried setting the surface normals?
by Area Man
Sat Sep 25, 2010 3:00 am UTC
Forum: Coding
Topic: C++ Problem with cin>> buffer (i think it's the buffer...)
Replies: 14
Views: 2784

Re: C++ Problem with cin>> buffer (i think it's the buffer..

Try cin.get( move ); cin.ignore( numeric_limits<streamsize>::max(), '\n' ); (you want only one character input each time, right?) Besides that, the code looks a little messy , probably due to your amendments, but the magic 19 everywhere definitely has to go; what if I want a 30x22 grid? or run-time ...
by Area Man
Thu Sep 23, 2010 3:15 am UTC
Forum: Coding
Topic: Working with CSV files on a web server.
Replies: 12
Views: 1719

Re: Working with CSV files on a web server.

(ed. forgot to mention, you'll have to increase the upload limit, too, or split the csv into chunks on newlines) ed2. just had a quick look, csv import has a "Column names" field, if it does what I think it does, ignore the rest. Create a dummy table with column order matching the csv, and...
by Area Man
Thu Sep 23, 2010 1:37 am UTC
Forum: Coding
Topic: truly stand-alone applications
Replies: 25
Views: 3657

Re: truly stand-alone applications

Scripting has nothing to do with "standalone". JS is just another programming language. No, it has limitations, by design. Server-side code is usually something heftier to do work. And while browsers may be ubiquitous, their versions and level of js support varies, which means that to wri...
by Area Man
Thu Sep 23, 2010 1:26 am UTC
Forum: Coding
Topic: Working with CSV files on a web server.
Replies: 12
Views: 1719

Re: Working with CSV files on a web server.

You can import csv directly using phpMyAdmin. You may have to set the php timeout limit for for such a large file.
by Area Man
Wed Sep 22, 2010 3:46 am UTC
Forum: Coding
Topic: truly stand-alone applications
Replies: 25
Views: 3657

Re: truly stand-alone applications

Thread title wasn't clear enough‽ ...adding a webserver+scripting and possibly a network connection doesn't aid "stand-alone" imo. Anyway, learning a new language is not a bad idea. If you know java and C then using Qt in C++ should be rather straightforward. As was mentioned, any exotic l...

Go to advanced search