jwenting 1,905 duckman Team Colleague

First come up with an algorithm, and I seriously doubt you're going to do that.
In fact I seriously doubt there exists an algorithm that can do it, and even worse if you have to do it for several languages.
Most likely you're going to end up having to do some sort of dictionary lookup and maintain a dictionary you have to build manually.

jwenting 1,905 duckman Team Colleague

and don't use turbo c, it's a 30 year old dinosaur. Or are you still using a 286 running DOS 3 or 4?

jwenting 1,905 duckman Team Colleague

The computer stores that integer as a series of bits and bytes, iow in base 2. It's only for our own convenience as humans who're used to thinking in base 10 that most programming environments use base 10 for inputing and outputing numerical data.
To output in another base, most languages have either built in or 3rd party libraries available to do just that, no need to reinvent the wheel.

jwenting 1,905 duckman Team Colleague

that's not pseudocode at all, that's poorly written C++.

jwenting 1,905 duckman Team Colleague

you don't need help, you need a spanking. If you'd paid attention in class you'd have known how to do this...

It's simple math, compared with simple programming. Nothing at all complicated about it.

So rather than sit there playing games, reread your course notes and instruction books, fire up your programming editor, and start putting some programs together.

oussama_1 commented: Lool..spanking +4
jwenting 1,905 duckman Team Colleague

so now we're getting even math homework assignments pasted here verbatim, not just programming assignments any longer?

jwenting 1,905 duckman Team Colleague

now why did I read that as "voodoo chili" and my mouth started watering :)

jwenting 1,905 duckman Team Colleague

All but the first and last lines are irrelevant to the question, actually. Apart from some implementation details the question has a universal answer that's applicable to all systems.

jwenting 1,905 duckman Team Colleague

does it work? Does it do what you want it to do? If not, fix it so it does do what it's supposed to do.

jwenting 1,905 duckman Team Colleague

the only way to get that information is by installing a keylogger on the victim's computer. And we're NOT going to help you spy on people.

jwenting 1,905 duckman Team Colleague

open google, find local library, ask about books on ocr, read books, win?

jwenting 1,905 duckman Team Colleague

There's many entry level jobs out there for C++ programmers, but you're not going to get any job knowing just programming, no matter what the language.

The era of mindless code monkeys is long over.

jwenting 1,905 duckman Team Colleague

if you willingly spill your life on some website, you need to be delusional to expect that nobody will ever see that information...
Even if there's "protection" so "only friends can see it" what's to stop someone from "retweeting" that information? Or from an error causing it to be spilled? Or from some tech support person from taking a look at it (most likely not even because they're snooping, but because they're trying to analyse a problem and your data comes up as a possible cause or symptom of the problem)?

If you're so narcissist that you're spilling your life on facebook or twitter, you should be happy that everyone knows all about you, that's what those sites are for after all...

jwenting 1,905 duckman Team Colleague

cout << "*143#" << endl;

jwenting 1,905 duckman Team Colleague

no, we're just robots programmed to bitch to kids like you who're too lazy to do their own homework.

Assembly Guy commented: Heh. +5
jwenting 1,905 duckman Team Colleague

the bridge driver was NEVER a good option for anything except the most basic of experiments. It was NEVER intended to be used in production code or anything beyond a proof of concept (which it was itself, a proof of concept).
It's also been unmaintained for a decade or more.

So not having it is great, it forces you to think and use something better...

~s.o.s~ commented: Agreed +15
jwenting 1,905 duckman Team Colleague

hmm, Disney Star Wars... Hannah Montana meets a tribe of dancing Jar Jar Binks and they sing Kumbaya together while the planet explodes around them, only to be saved at the last second by Han Solo flying by in a shining white space ship that runs on moonbeams and leaves a rainbow trail as it goes into hyperspace.

jwenting 1,905 duckman Team Colleague

and scraping bank websites is NOT a good idea, you're almost certainly in violating of the bank's TOS if you do it.
And of course you'd need to fool your customers to allow your blatantly insecure app to log in using their real login details for the bank's website, NOT a smart idea.

jwenting 1,905 duckman Team Colleague

it's "plz hlp mi". Be sure to get your question title right next time.

jwenting 1,905 duckman Team Colleague

iamthwee every company has its rogues, and sometimes they can get away with it for a while.
I've worked for one big company where a rogue VP who led the department I worked for got away with buying millions of dollars worth of hardware and software outside of "official channels", from brands different than those dictated by official policy, for several years.
Of course in the end it bit him hard, his department was shut down, the hardware and software discarded, the people (good hands, most of them) he'd gathered around himself forced out of the company because we were all "tainted", all the years of hard work by all of us thrown out with the bathwater.

And yes, it's not always set in stone. Especially on smaller projects there's often not that much oversight. Or you're free to choose your own tools as long as you can work with the official ones as well and your choice doesn't interfere (no corrupting the official project files etc.). But for the most part it's usually easier and much better for your career prospects to stick to the official toolset.
What I've done at times is install other tools in tandem, use those where they were really superior (and not just "nicer") and then try to convince people with the power to make such decisions to get those tools added to the official set. But always try to make a valid business case. Just installing Netbeans and refusing to …

jwenting 1,905 duckman Team Colleague

There are many possible reasons for standardising on a specific IDE.
While company politics and personal preference of people in positions of influence with management often come into play during the initial selection process, they're utterly irrelevant once the decision has been made.

ANY standard is probably better than none at all for productivity.
What a standard work environment gives you is easier project management, just put the project files and structure into your version control system (and there too it doesn't matter which you use so much as that you use one and preferably one that integrates nicely with your other tooling) and now everyone can just check out entire projects and be up and running in a few minutes from when their machines are configured.
It's also a lot easier to sit down with a colleague and work together on a single machine for a bit if you're both fluent in the use of the same tools.
And finding help if you run into a snag becomes a lot easier as well. Why spend hours searching the internet when you get an error dialog from your IDE you've not seen before when there's 5 guys in the room with you who're all expert users of that same IDE...

While I have personal preferences, and if I were asked to set up an environment from scratch (and given a free hand in doing so) that environment would likely reflect those preferences, I'm by now well …

jwenting 1,905 duckman Team Colleague

it doesn't handle negative grades...

JeffGrigg commented: Yes; that's what we needed to know. +6
jwenting 1,905 duckman Team Colleague

@moaz, you might want to learn to be polite to people. It often helps to get help from them...
You might also learn to think for yourself, it helps you not need to ask for help so often.

And of course you might learn to search for information yourself, helps a lot too.
You can download the API docs (or reference them online) from the same place you can download the JDK...

jwenting 1,905 duckman Team Colleague

And most regulars don't care about rep points anyway.

iConqueror commented: one rep to you :) +0
jwenting 1,905 duckman Team Colleague

no, we're not going to help you to pirated books and other stolen property.

jwenting 1,905 duckman Team Colleague
  • Get piece of paper
  • Get pencil
  • Get cup of coffee
  • Start writing with one hand while sipping coffee with the other

there you go

jwenting 1,905 duckman Team Colleague

books about core concepts are ok. Swing isn't changing much, and hasn't changed much in years, so a book is good.

The main problem with books is books about The Next Big Thing (tm)(r) as such things tend to not last long enough for books to be written about them that are more than rubbish before the hype blows over.

jwenting 1,905 duckman Team Colleague

A big part of making websites is creativity. You're showing that you're not creative, not a good start...

Anyone can learn to hack some html together. It's the rest, which you want us to come up with for you, that's the part that sets the amateurs apart from the professionals...

jwenting 1,905 duckman Team Colleague

Stalin of course did have a slight advantage over Hitler in that he had 30 years to do his dirty work, Hitler only had about 13...
I seriously doubt whether there's much to choose between them, both in ideology and implementation both were rotten to the core.

jwenting 1,905 duckman Team Colleague

learn English so you can describe your problem in such a way that people can understand it...
And learn programming so you can implement your solution and show people what you have and tell them where you're stuck.

jwenting 1,905 duckman Team Colleague

Once you get comfortable with the different user interface (which cost me a few hours at most), there's very little difference for all sense and purpose.

jwenting 1,905 duckman Team Colleague

What we are going to see, and soon, is far more control over the internet by governments, far more restrictions on what you can do there, with eventually entire countries being unable to communicate with entire other countries.
Think the Great Firewall of China erected around every country or group of countries, active and passive censorship (all in the name of "protecting morality", "fighting terrorism", "stopping bullying", "preventing muslims from getting upset", etc. etc.).

That's going to affect everyone, obviously. The spread of information around the world we've come to expect and rely on will slow to a crawl, what is spread becoming seen as just government propaganda, and peoples and countries will end up as isolated as they were in the 1950s.

almostbob commented: You are right, and I hate that you are right, I like seeing everything I can think to look at +0
jwenting 1,905 duckman Team Colleague

Corporatization/monopolization of the internet -> this has already started but I expect in 5 years most uses of the internet will be dominated by a single company, and there will be far fewer start-ups.

They've been saying that for 20 years...

Possibly Quantum computing (hard to know if that is 5 or 20 years) from large-scale adoption.

Same

I suspect some more professionalization of programming (eg. self-regulating accreditation bodies like doctors and lawyers)

nope. Those are just government granted monopolies to lobby groups.
Doesn't work in an international context.
And as I can hire programmers in Uzbekistan to do my work for me if the ones in my home country are too expensive because a labour union demands they pay tens of thousands of dollars to get a permit from them to do their job, that's exactly what's going to happen (and that's exactly what most all "professional licensing" amounts to).

Probably more secrecy since the US patent system is becoming more strict about what algorithms/software is patentable.

That's been going on for decades as well. In fact in many countries it's illegal to use any encryption at all. And in other countries it's illegal to ship any encryption code to other countries (and/or you need a government license to use such code).

jwenting 1,905 duckman Team Colleague

(40+20+20+20)/4 = 25.

Which is probably your end score (and that's generous) if you can't even do this yourself.

jwenting 1,905 duckman Team Colleague

there was no shared library folder 30 years ago when TC was created and maintained...

jwenting 1,905 duckman Team Colleague

Java being programmed to make bad code harder to write (it's still possible, the moment you make things more fool proof nature creates a batter fool after all) they decided to not include certain capabilities that are extremely easy to abuse and very hard to use correctly, things like operator overloading and direct memory management.
That's all there is to it.

jwenting 1,905 duckman Team Colleague

operator overloading isn't bad in theory, but it has such massive opportunities for abuse, and in the wild is hardly ever used except incorrectly, that the designers of Java decided to do without in order to prevent an entire class of problems relating to the concept.
From operators with side effects, operators doing utterly illogical things (think Strawberry operator+(Apple a, Orange b)), the list goes on and on.

jwenting 1,905 duckman Team Colleague

blame people who don't know that K means Kilo to invent something meaning something else that causes confusion when used outside of its intended context...

jwenting 1,905 duckman Team Colleague

come up with idea you think is just past your current skill level.
Start implementing, start learning, win.

jwenting 1,905 duckman Team Colleague

You seam to know alot, so tell me why the dimension of Koch's curve is log(4)/log(3)?

mathematically dimensions can be broken numbers. Fractal geometry explains how those are calculated.

http://en.wikipedia.org/wiki/Fractal_dimension
http://davis.wpi.edu/~matt/courses/fractals/intro.html
http://www.vanderbilt.edu/AnS/psychology/cogsci/chaos/workshop/Fractals.html
http://www.wahl.org/fe/HTML_version/link/FE4W/c4.htm

It's a mathematical construct, not physical dimensions.

jwenting 1,905 duckman Team Colleague

\\ he means :)

stultuske commented: yes indeed ... typo :) +13
jwenting 1,905 duckman Team Colleague

contrary to popular belief, most popular beliefs are wrong.

Reverend Jim commented: Nice recursion. +0
jwenting 1,905 duckman Team Colleague

sounds perfectly logical... If anyone has a need to split up the entire globe into managable sections it's Santa after all.

jwenting 1,905 duckman Team Colleague

to summarise: program to the interface, not the implementation.
It's one of the basic tenets of good programming practice.

jwenting 1,905 duckman Team Colleague

I pity your customers...

blackmiau commented: agree +2
jwenting 1,905 duckman Team Colleague

given a website, make a temporal distribution of homework questions over a period of one month.

diafol commented: heh heh +0
Reverend Jim commented: LOL +0
ddanbe commented: Make it 2 weeks :) +0
jwenting 1,905 duckman Team Colleague

isn't it interesting how he thinks vb6 isn't bloated, when it depends on a massive runtime library as well as the entire win32 API to do anything at all?

Yet he considers anything else bloated that also depends on runtime libraries...

jwenting 1,905 duckman Team Colleague

That won't even compile.
And no, I won't rewrite that for you. I won't use lambdas, they're ugly, hard to read, an abomination.

jwenting 1,905 duckman Team Colleague

Last weekend someone in Second Life asked me if I was real. I replied that I was either real or a computer so well programmed it believes it's real.
The person asking the question decided based on that I must not be real...

if a AI(artifical intelligence) can harm us humans if it become to advanced

That would depend on how it is programmed and what it's programmed to do, obviously.
The control software in a guided missile can certainly harm humans, but it's not programmed with that intent. It's programmed to destroy its target, not caring or knowing what the target is except for the signature it perceives through its sensors.
Another program might be created to determine that some signature indicates entitities that should not be harmed, even entities that should be protected from harm. And then that program would have the rudiments of Asimov's 3 laws. You can see the beginnings of that in the safeguards built into many industrial robots, which tend to be programmed to shut down when the infra red signatures of human beings (but it doesn't know that's humans of course) enter within operating range of its robotic arms in order to prevent industrial accidents.

jwenting 1,905 duckman Team Colleague

of course your entire system doesn't have to be the same physical size as the part that does the interaction.

Given high enough bandwidth and transmission and processing speed, the interactive part can be the size of a bee and thousands of miles away from the computers that handle the actual processing and control, and those could be the size of houses.

As to how AI works, that's such a broad topic there are libraries full of books written about it, entire university courses discussing just the basics.
And it's at some levels more a philosophical than a technical topic. What is intelligence anyway, how can a machine achieve it and is it still a machine if it does, what level of autonomous action would the machine need to achieve to be considered intelligent.
Technically, many systems are intelligent to a degree, and often in very narrow bands.
A payroll system that based on its inputs decides what to pay out to whom has some level of intelligence.
A flight control computer that based on its inputs decides what to do to keep an aircraft level and on course has a level of intelligence.
The industrial robot that can detect disruptions in the flow of parts it depends on and knows to raise an alarm is intelligent to a degree.
The NPC in a videogame that calculates how to approach the player avatar displays a degree of intelligence.
All are different examples of …