Friday, August 22, 2014

jQuery .find() on data from .ajax()

To answer your question specifically, it seems to be working correctly. You said that it returns [object Object], which is what jQuery will return with the find("#result") method. It returns a jQuery element that matches the find query.

Try getting an attribute of that object, like result.attr("id") - it should return result.


In general, this answer depends on whether or not #result is the top level element.

If #result is the top level element,
<!-- #result as top level element -->
<div id="result">
  <span>Text</span>
</div>
find() will not work. Instead, use filter():
var $result = $(response).filter('#result');
If #result is not the top level element,
<!-- #result not as top level element -->
<div>
  <div id="result">
    <span>Text</span>
  </div>
</div>
find() will work:
var $result = $(response).find('#result'); 

Thursday, August 14, 2014

Coding Freelancer – Bill Gates

Gates is the symbol of Microsoft, and you can’t work on a computer without using some piece of software created by him or his employees. The worldwide impact Bill Gates has is unquestionable. Although he was frequently listed as the richest man on Earth, Gates comes from a middle class family in Seattle.

At 13, he managed to sell some of his things at the school’s rummage sale and bought himself computer time on a General Electric monster (no, there weren’t any PCs back then) and a Teletype Model 33 ASR terminal to use the machine. He taught himself BASIC and became able to program the system.

White Hat Hacker

He was so good at it, he and 3 friends managed to hack another such system, the PDP-10 belonging to the Computer Center Corporation (CCC), through the same terminal and obtain free computer time. When the CCC finally noticed, they banned the students from their machine. Gates offered to sell his coding expertise, and find other bugs in the CCC’s system. He would get more computer time as part of the deal.

Bill Gates had officially become a coding freelancer.

He went on coding as a freelancer for Information Sciences, Inc., creating a payroll program in Cobol when he was 16. At 17, he was writing the computer programs for class distribution amongst students.
The same year, he and his close friend Paul Allen, created a business venture called Traf-O-Data, a real-world "traffic analytics" tool, which failed miserably. Undeterred, he and Allen contacted a major company, MITS, who at the time was producing a computer based on the Intel 8080 CPU.

Gates told them they were finalizing a software capable of running on the machine. In reality, there was no software, the duo were flat out lying. Nevertheless, MITS president Ed Roberts agreed to meet them, and so they started writing the code they lied about. The meeting was a success, and Gates came up with the name "Micro-Soft" for their company.

 DHARMENDRA BAGRECHA
Want to update about Bill Gates

Post Original by : Hongkiat

Nathuram Godse - The Man Who Killed Gandhi

Nathuram Godse - The Man Who Killed Gandhi (The Other Side of The Story)