Posts

Showing posts from July, 2014

asp.net mvc 3 - Make the MVCContrib-generated-column-names to make ajax calls -

Image
it sounds simple question, i've been strugling entire afternoon. i'm trying put grid in partialview pagination, sorting , everything. first problem pager links: did not hold filter options, since not on pages query string. that's how solved it: public class paginationcontainer { public ipagination paginatedresult { get; set; } public routevaluedictionary routevaluedictionary { get; set; } } i created class, used pager: @using mvccontrib.ui.pager @model aqxweb.models.paginationcontainer @{ string action = viewcontext.controller.valueprovider.getvalue("action").rawvalue.tostring(); string controller = viewcontext.controller.valueprovider.getvalue("controller").rawvalue.tostring(); } @functions { public routevaluedictionary getroute(int page) { var routevalues = new routevaluedictionary(); foreach (string key in model.routevaluedictionary.keys) { routevalues[key] = model.routevaluedictionary[key]; } routevalues["page"] = page; return routevalu...

asp.net - Sage ACT for Web Custom Contact Tab - How to make it respond to switching contacts -

i have custom plugin on sage act crm web , when switch contacts when plugin in view not switch current contact on plugin page. if switch tabs , go switches. you need include snippet of javascript in aspx page. <script language="javascript" type="text/javascript" > function refreshtablist() { location.reload(true); } </script> you can find reference on act developer community forum : additionally, i have discovered if put space in plugin name stop working (at least act 2011).

android - How to emulate iOS, Windows Phone and Blackberries on Ubuntu -

i'm planning on using gwt , phonegap produce native apps android, ios, windows phone , blackberry. i'm vaguely familiar pure android development (i've downloaded sdk, etc.) , understand sdk comes own dalvik emulator. but after cursory inspection of ios , blackberry sdks, doesn't have emulators port on ubuntu desktop. what want situation develop these native apps via gwt , phonegap on ubuntu laptop, , when phonegap wraps each end-deliverable , produces correct binary (apk, ipa, etc.) can throw correct emulator , see in action. as far know not possible, have options here? in advance! iphone development requires computer running mac os x. however, seem can develop iphone under linux using monotouch . but, it's not in native code of iphone (objective c) performance no guarantee. wine still can't run many applications anyway, doubt run visual studio. here's link claims can't, unless hacking steps. however, there alternative visual studio creating ...

How to make RSS fead reader for Eclipse -

i wondering if there tutorials out there on how make rss feed reader eclipse. if know any, or rss tutorials, helpful well. not tutorial: rssowl great rss reader based on eclipse. open source, might want inspect sources .

objective c - NSMutableDictionary losing object -

i'm trying store arrays of objects in mutable dictionary, seems dictionary losing of arrays (or maybe arrays losing data?). anyways, here's i'm at: - (nsdictionary *)getticketsbyday:(nsarray *)tickets { // take array of tickets , return dictionary dates (given // nsdateformattershortstyle) keys , arrays of tickets values nsdateformatter *formatter = [[nsdateformatter alloc] init]; [formatter setdatestyle:nsdateformattershortstyle]; // nsdate object without time (only month, day, year) unsigned int flags = nsyearcalendarunit | nsmonthcalendarunit | nsdaycalendarunit; nscalendar *calendar = [nscalendar currentcalendar]; nsmutabledictionary *datesdict = [[nsmutabledictionary alloc] init]; (ticket *ticket in tickets) { nsdatecomponents *ticketdatenotimecomponents = [calendar components:flags fromdate:[ticket createdat]]; nsdate *ticketdatenotime = [calendar datefromcomponents:ticketdatenotimecomponents]; nsstring *datestring = [formatter stringfromdate:ticketdatenotime]; nsm...

jquery - google maps api v3 in fancybox 2.0.6 -

Image
hi have problem google map loading in hidden fancybox my example: gidzior.net/fancymap written based on thread stackoverflow.com/questions/10890948/jquery-fancybox-with-google-maps what can fix ?? this code: <body style="padding: 20px;"> <!--[if lt ie 7]><p class=chromeframe>your browser <em>ancient!</em> <a href="http://browsehappy.com/">upgrade different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install google chrome frame</a> experience site.</p><![endif]--> <header> <a id="inline" href="#inline1" >show map</a> </header> <div role="main"> <div id="inline1" style="width:800px; height: 350px; display: none;"> <div id="map_canvas" style="width: 100%; height: 100%"></div> </div> </div> <script src="//ajax.googleapis.c...

Reading scientific notation tab delimited text file in MATLAB -

is there built-in function can read scientific notation tab delimited text file in matlab? a line of data looks like: -1.52e-01 -1.32e-01 7.20e-02 -6.78e-04 1.97e-04 -1.89e-03 0.00e+00 i've tried tdfread(filename, delimiter) without success. the command looking dlmread . synopsis: data = dlmread (file) data = dlmread (file, sep) data = dlmread (file, sep, r0, c0) data = dlmread (file, sep, range)

javascript - Iterate Grid Rows One at a Time -

i'm needing to iterate thru grid, , apply changes children of each row. instance, if had grid 3 rows, how make each row's children different color? here jsfiddle of basic html + css create grid. i'm wanting make each row different color. http://jsfiddle.net/onestepcreative/24ljw/6/ thoughts? in advance! here's version simple javascript. can css using nth-child selector http://jsfiddle.net/24ljw/8/

ios5 - How to add Connection Outlets from separate class file (.m) Objects to ViewController's MainStoryboard -

i want maintain data encapsulation , have separated nsobject class (.h , .m file) viewcontroller.m . i have objective-c working correctly class instantiated in viewcontroller 's viewdidload , can set, , nslog private values via nsobject 's methods. what can't in mainstoryboard assign connection outlets , received actions. iboutlets (a uilabel , uibutton ) aren't showing in connection inspector. however, have many objects in viewcontroller 's .[hm] file can setup outlet connections to. it's new file's objects can't view in storyboard tool. what doing wrong? // gametimer.h #import <foundation/foundation.h> @interface gametimer : nsobject { uilabel *gametimerlabel; nstimer *gametimer; unsigned int gametimerticks; } @property unsigned int gametimerticks; @property (nonatomic, retain) iboutlet uilabel *gametimerlabel; @property (nonatomic, retain) iboutlet uibutton *startbutton; // instantiate timer - (ibaction)onstartpressed:(id)sender; // u...

mysql - How to combine these two queries into one optimized query to avoid a Select N+1 -

this online photo library. have 2 tables; "photosearch" , "photos". first, "photosearch", has few columns , contains searchable data photos, such "photoid", "headline", "caption", "people", "datecaptured" , "keywords". has multi-column full-text index on (headline, caption, people, keywords). second table, "photos", contains of photos data; heights, widths, copyrights, caption, id's, dates , more. both have 500k+ rows , headline , caption fields return 2000+ characters. this approximately how query looks now: (things note: cannot use joins fulltext searching, hence keywords being stored in 1 column - in 'de-normalized' table. also, kind of pseudo code app code elsewhere - it's close ) this particular query being looped through , inside loop, sql statement being executed... select photoid photosearch match (headline, caption, people, keywords) against ('"...

entity framework - Include Foreign Key Properties in DataObjects.Net -

i'm concerned in problems have entity framework , may need find replacement. according ormbattle, best candidate dataobjects.net, result of initial investigations promising, except 1 feature need in our structure: consider 2 classes: order , customer, in class "order" have "customer" navigation property (and "orders" navigation property in customer class). need property customerid in class order. totally possible in lowly ef4. how can achieve goal? you can add non-persistent property special getter job: public long customerid { { return getreferencekey(typeinfo.fields["customer"]).value.getvalue<long>(0); } } the setter can added in same manner. hope helps. p.s. copy of original answer can found on official dataobjects.net support site .