jqGrid get Row Column Value

This took me a while to figure out, so I am putting it here for prosperity. This is how to get the value of a specific column in a jqGrid selected Row;

ondblClickRow: function(id, rowid) {
    var ret = $("#grid").getRowData(id);
    window.location = '/Clients/Details/' + ret.ClientID;
}

Enjoy!

Input hidden missing from post FormCollection

I futzed around trying to get my hidden selected ID to be in the FormCollection object posted to my ASP.NET MVC controller.

I could not for the life of me figure out why it was not in the collection.

The input was defined like this;

<input id=”pkid” type=”hidden” value=”15″ />

Finally after looking around I noticed it was missing the ‘name’ attribute.

<input id=”pkid” name=”pkid” type=”hidden” value=”15″ />

After that the hidden was in the AllKeys and I could get the value, perhaps

widely known but it messed with me for a bit.

Enjoy!

Payday Online sucks with black hole force

In the last three days I have gotten over 200 comments on posts from Payday Online (www.yesmyloans.com) using some horrific auto post utility software package to go out and post SPAM comments all over blogs.

I havent any word to appreciate this post…..Really i am impressed from this post….the person who create this post it was a great human..thanks for shared this with us.

One of their favorite and this one;

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

I did a whois on the www.yesmyloans.com and came up with;

Domain Name: yesmyloans.com
Registered at http://www.dynadot.com

Registrant:
Cristina Dasianu c/o Dynadot Privacy
PO Box 701
San Mateo, CA 94401
United States

Administrative Contact:
Cristina Dasianu c/o Dynadot Privacy
PO Box 701
San Mateo, CA 94401
United States

1-650-585-1961

And from the hundreds (yes hundreds no shit I am not joking in the last 60 hours 274 of these);

Name: payday online
E-mail: yesmyloans1@gmail.com
Website: http://www.yesmyloans.com/
Country code: US
IP address: 70.86.162.178
Referrer:
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

Its internet douchbags like this who make putting anything on the internet difficult. I sincerly hope not a single sale is derived from their tactics.

Blah.

jQuery Replace craziness

 

I spent way too much time figuring this out.

var originalString = “Batman And Robin”;

var replacedSpaces = originalString.replace(‘ ‘, ‘_’);

This doesn’t work, it only replaces the first instace of the match, so replacedSpaces == “Batman_And Robin”.

var replacedSpaces = originalString.replace(/ /g, ‘_’);

This does work, and now replacedSpaces == “Batman_And_Robin”.

 

Powershell v1 Uninstall Nightmare

So I wanted to install the SQL 2008 Express edition but it has a pre-requiresite of Powershell v2, simple enough I thought.

It starts to install, and fails telling me that Powershell v1 is already installed and that I have to remove it. To remove it the screen says go into “Add or Remove Programs” and then remove powershell.

Ah but there is the problem, of course there is not a “Windows Powershell” it is something more like; “Hotfix for Windows XP (KB926139-v2)”

Sure that is very clear indeed. Found this here.

Enjoy!

Renaming MVC Application Ambiguous

Seems when you rename a MVC application in ASP.NET MVC and then perform a ‘Clean Solution’ and ‘Build Solution’, well it doesn’t exactly clean.

Just friggin’ lovely.

Go into your applications ‘Bin/’ folder and delete all the files there first, then perform a ‘Clean Solution’ and ‘Build Solution’ and enjoy!

Caturday Browser Memory Tests

I saw this posting over on Fark yesterday and knowing how the previous Caturdays go I knew it would be a page filled with images, links, loads of text – a great page to do another quick browser memory test on.

So I started the browser, set the home page to nothing, closed. Started browser, pasted URL into the address bar hit enter. I then waited ten minutes for various memory collections to happen and give each browser a period to “stabilize”.

Capture 

Here are the browsers I tested;

* IE 8.0.7100.0 64-bit – 248MB used
* IE 8.0.7100.0 32-bit – 245MB used
* Maxthon 2.5.1.4751 32-bit – 234MB used
* Opera 9.64 Build 10487 32-bit – 234MB used
* Firefox 3.5b4 32-bit – 137MB used
* Google Chrome 2.0.172.30 32-bit – 62MB used

So I guess the proof is in the memory usage, speaks volumes for WebKit to me.

Enjoy!

Firefox memory usage is out of control

Well I am about at my breaking point with using this release of Firefox (v3.0.10), seems there is *REALLY* something seriously wrong with its RAM consumption.

I have three pages open in the browser and its is using over 1GBof RAM, yes that’s right over 1024^3 bytes of RAM;

firefox_really_part_two

So I think well hell surely somebody see’s this as a problem and most likely there is a fix or something. Well I was sorta right;

firefox_really_part_one

That nugget of wisdom is found here.

Its no damn wonder people are using IE and Chrome. Bah!

Ramblings of an often confused opinionated yak shaver.