Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

sorting - bash sort unusual order. Problem with spaces? -


lots of time gone in bug, tracks sort...

can explain why unsorted result, when bash docs tell me delimiter transition white non-white characters? shouldn't first field sorted?

>sort myfile.txt 10_10000000 19 10_10000001 20 10_10000002 19 10_10000003 17 10_10000004 16 10_1000000 44 10_10000005 16 10_10000006 16 10_10000007 17 10_10000008 16 

of course using +0 -1 gives me expected result:

>sort +0 -1 myfile.txt 10_1000000 44 10_10000000 19 10_10000001 20 10_10000002 19 10_10000003 17 10_10000004 16 10_10000005 16 10_10000006 16 10_10000007 17 10_10000008 16 

some metainfo:

>type sort sort hashed (/bin/sort) 

i using

sort (gnu coreutils) 5.97   >locale lang=en_us.utf-8 lc_ctype="en_us.utf-8" lc_numeric="en_us.utf-8" lc_time="en_us.utf-8" lc_collate="en_us.utf-8" lc_monetary="en_us.utf-8" lc_messages="en_us.utf-8" lc_paper="en_us.utf-8" lc_name="en_us.utf-8" lc_address="en_us.utf-8" lc_telephone="en_us.utf-8" lc_measurement="en_us.utf-8" lc_identification="en_us.utf-8" lc_all= 

i think seeing locale-based issues. (many?) locales affect way sort works, in chars ignored. in case, looks space between fields being ignored when don't specify fields sort. remove space , can see row looks it's in wrong place correct.

if run sort different locale you'll different result:

$ lang=c sort myfile.txt 

my default locale en_au.utf-8 , see original sort results. when set lang=c, see results expecting.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -