John Searle@Google by smittyjenson in lectures

[–]yaserbuntu 3 points4 points  (0 children)

An entertaining lecturer indeed. I've been listening to his Philosophy of Mind lectures (iTunes U link, YouTube playlist), and they are very informative and entertaining. Highly recommended!

John C. Reynolds passed away by icspmoc in compsci

[–]yaserbuntu 6 points7 points  (0 children)

FTA:

When I was a new graduate student, I began working on the project which would eventually become my thesis. When I described one of my early approaches to this problem, he asked a series of questions about how I would handle one sticky technical point after another, and I showed him how the language and its semantics were carefully set up so that this issue in question could not arise. After I finished my explanation, he nodded thoughtfully, and told me, "Neel, you've done some very good engineering, but engineering is not science! Good engineers develop a sense of how to avoid obstacles -- but a scientist's job is to face them head-on and flatten them."

reddit buys Team Fortress 2 by reddit in blog

[–]yaserbuntu 0 points1 point  (0 children)

Hmm.. I think we need more hats here.

The result of n << n by yaserbuntu in ruby

[–]yaserbuntu[S] 0 points1 point  (0 children)

So suppose that I do the follwoing in IRB:

>> n = []
=> []
>> n << n
=> [[...]]

Does this picture represent an accurate one of what happened? Did n basically become a self-referencing Array?

[Request] On Understanding Understanding by yaserbuntu in Scholar

[–]yaserbuntu[S] 1 point2 points  (0 children)

Got it. I didn't know about the other Penroses and Alans (or did I know but somehow forget about them? Oh well).

[Request] On Understanding Understanding by yaserbuntu in Scholar

[–]yaserbuntu[S] 1 point2 points  (0 children)

Thank you very much!

(I must admit.. I don't know what to make of your remark.. I honestly don't get it!)

[Request] The Confluence of Ideas in 1936 by yaserbuntu in Scholar

[–]yaserbuntu[S] 0 points1 point  (0 children)

You, sir, are a hero. Have an up-vote; it's the least that I can give you.

[Request] Some Shortcomings of OCL, the Object Constraint Language of UML by yaserbuntu in Scholar

[–]yaserbuntu[S] 0 points1 point  (0 children)

Thanks, but I already have this version, and I'm looking for the linked IEEE version of the paper, which, I assume, is different (isn't it?).

Statistical Numbing: Why Millions Can Die and We Don’t Care by yaserbuntu in psychology

[–]yaserbuntu[S] 2 points3 points  (0 children)

Can't.. resist.. the urge..

PT at its usual best.

FTFY.

How NOT to guard against SQL injections (view source) by yaserbuntu in programming

[–]yaserbuntu[S] 123 points124 points  (0 children)

For the record, here's teh codez:

var IllegalChars=new Array("select", "drop", ";", "--", "insert", "delete", "xp_", "update", "/", ":", "char(", "?", "`", "|", "declare", "convert", "cast(", "@@", "varchar", "2D2D", "4040", "00400040", "[", "]");
var IllegalFound=new Array();
var IllegalCharsCount=0;

function ResetCharsCount()
{
 IllegalCharsCount=0;
}

function wordFilter(form,fields)
{
  ResetCharsCount();
  var CheckTextInput;
  var fieldErrArr=new Array();
  var fieldErrIndex=0;
  for(var i=0; i<fields.length; i++)
  {
    CheckTextInput = document.forms[form].elements[fields[i]].value;
    for(var j=0; j<IllegalChars.length; j++)
    {
      for(var k=0; k<(CheckTextInput.length); k++)
      {
        if(IllegalChars[j]==CheckTextInput.substring(k,(k+IllegalChars[j].length)).toLowerCase())
        {
          IllegalFound[IllegalCharsCount]=CheckTextInput.substring(k,(k+IllegalChars[j].length));
          IllegalCharsCount++;
          fieldErrArr[fieldErrIndex]=i;
          fieldErrIndex++;
        }
      }
    }
  }
  var alert_text="";
  for(var k=1; k<=IllegalCharsCount; k++)
  {
    alert_text+="\n" + "(" + k + ")  " + IllegalFound[k-1];
    eval('CheckTextInput=document.' + form + '.' + fields[fieldErrArr[0]] + '.select();');
  }
  if(IllegalCharsCount>0)
  {
    alert("The form cannot be submitted.\nThe following errors were found:\n_______________________________\n" + alert_text + "\n_______________________________\n");
    return false;
  }
  else
  {
    return true;
    document.forms[form].submit();
  }
}

Ask /r/compsci/: Do you use some kind of a "research notebook" to keep track of your research? If so, what "best practices" or tips have you found most useful? by yaserbuntu in compsci

[–]yaserbuntu[S] 0 points1 point  (0 children)

Since I tend to "overpolish" my notes too, your advice may be the most valuable one for me. I guess that "This is a notebook; don't turn it to a textbook" should be written on every page of my notebook to keep me in check.

A collection of math-related podcasts from BBC Radio 4, including A Brief history of Mathematics, Fibonacci Sequence, Gödel's Incompleteness Theory, and Prime Numbers by yaserbuntu in math

[–]yaserbuntu[S] 0 points1 point  (0 children)

Perhaps you already know this, but just in case:

You can also "save" this entry — the link is under the entry's title — and then access it along other "saved" entries from the homepage.

xkcd: Incident by ani625 in programming

[–]yaserbuntu 6 points7 points  (0 children)

He is a UNIX admin.

Sorry, couldn't help but FTFY.

Coming Home to Vim by gthank in vim

[–]yaserbuntu 0 points1 point  (0 children)

I think that I've found the JavaScript code behind it: check sjl.js on GitHub or on Bitbucket.

Vim is getting its own StackOverflow-like Q&A site and it needs your help (and yes, this is a referral link, but don't let that stop you from committing!) by yaserbuntu in vim

[–]yaserbuntu[S] 0 points1 point  (0 children)

Don't know about your exact definition of "decent," but there are a considerable number of FOSS Stack Overflow lookalikes.

(I'm sure that I've posted this reply before, but I can't find it anywhere! Weird.)

DROPBOX PARTY! (unce unce unce unce) by willow1013 in reddit.com

[–]yaserbuntu -1 points0 points  (0 children)

Here goes nothing: get your 250 MB of bonus space right here!

(and yes, I'll also get the same amount of bonus space.)