Monday, 5 December 2011

when i make control dynamically from javascript in asp.net then some control make out side of page like div and linkbutton

I think you’re asking if you can dynamically create a server control in ASP.NET with JavaScript. The short answer is no.

You can create DOM elements via JavaScript, but you can’t create server controls, such as LinkButtons, since they "run at" the server, not the client.

That said, ASP.NET versions 2+ come with AJAX-enhanced controls that probably will meet your needs (http://dougv.us/o1) maybe the AlwaysVisible control is what you’re after. Versions 3.5+ natively support jQuery (http://dougv.us/o2), which you could use to remove / show / hide server controls after they are output.

Ask me anything

Friday, 2 December 2011

hi. i have to implement a sorting concept.

Could you clarify what you mean by sorting concept, and what language you’re using? Short of a clarification, I think the most common example — in C++ courses, anyway — of sorting is what’s called a "bubble sort." Basically, you use an array of unsorted values. You then iterate that array, checking the values and swapping positions in the array if one value is "greater" than the next. By repeating this process several times, you can effectively, if inefficiently, sort your data. Wikipedia article on bubble sorting: http://dougv.us/nz A tl;dr version with C++ code: http://dougv.us/ny

Ask me anything

Saturday, 15 October 2011

Write a pseudocode to accept n number and display their cubes.

I’m probably an asshole for being this blunt, but if you can’t manage this assignment on your own, you shouldn’t be studying computer science.

Ask me anything

Wednesday, 12 October 2011

Hi Doug, I saw your response to a person on Yahoo answers, It was probably a couple of years ago. I’m trying toget my hands on a Sap tool to practice on it on my own. You mentioned you were doing the same at that time. Do you still have it? Thanks

Sorry, I don’t recall this. I did have a client a while back who was interested in SAP but I don’t believe I ever followed through.

If you could provide a link to the question, it might help refresh my memory.

I don’t believe I’ve ever said I use pirated software, and I’d be surprised to see anything in which I offered to share pirated software. It’s possible I noted that stealing software was an option, but I have to believe that if I said that, I also said that doing so was legally and morally wrong. Again, a link to the question you’re referencing would clear things up for me.

For the record, I have often said — and stand by the statement — that it’s everyone’s right to make personal copies of software he has legally purchased, even if a EULA forbids personal copies; but I don’t believe it’s OK to distribute copy-restricted software in violation of license terms.

Ask me anything

Monday, 10 October 2011

Book Review: The Art of Deception: Controlling the Human Element of Security

The problem with “The Art of Deception” is its age and the limited scope of the exploits Kevin Mitnick discusses.

Almost every (usually fictional) exploit that Mitnick describes involves exploiting large organizations — places where there are clear heirarchies, overlapping departmental responsibilities and integrated networks.

Also, a significant amount of what he discusses involves phone phreaking; given that was how he cut his teeth in the social engineering game, it’s not surprising.

But when you read an example that involves dialing in to a Nortel DMS-100, you know you’re reading dated material. Sure, some companies still use 30-year-old telephone switches, and PBX is still a highly exploitable technology. But an update to 21st century tech is sorely wanted here.

Generally speaking, every example Mitnick provides for a successful social engineering attack comes down to three basic steps:

  • Get a name and title on someone in a large company.
  • Call a low-level employee on the telephone, masquerading as that person, and ask for some information that lines up the target.
  • Call the target, repeat the information given by the low-level employee, get the target to compromise the system.

Sure, this can work — if you target large enough an operation. But what about small companies? Or individuals? Or non-corporate espionage? They go largely unaddressed.

Continue reading: Book Review: The Art of Deception: Controlling the Human Element of Security »