Posts

asp.net mvc 4 - MVC 4 is overwriting specific Action-Parameters -

mvc 4 present me strange behaviour @ moment. imagine following code: testcontroller.cs public class testcontroller : controller { public actionresult index(function function, string action) { return view(); } public class function { public string action { get; set; } } } it seems, when call url directly through browser (localhost:port/test), action-property gets automatically filled "index". if action named "mysuperduperactionwhichgetsinvokedquiteoften", methodname in property. can explain mvc doing here? problem is, of course want fill stuff myself, example through ajax-query. if mvc filling in property itself, breaks behaviour. i could, of course, rename property , working, still quite interesting what's going on. edit i understand second parameter, string action, get's filled method-name. why on earth mvc bind any property/parameter named same request-value of it? it problem default mo...

android - Navigation Type (Fixed Tabs + Swipe) -

in application have tabhost tabwidget have several tabs. need tab show me inside tabcontent schedule grid allow swipe right , left move through months. need tab stay fixes , schedule swipes. the navigation type (fixed tabs + swipe) allow me that? understand navigation allow swipe tab don't stay same. what need possible? , attention. i possible, stay codes on tabhost , tabwidget. so assume 1 of tabs calling activity named schedule.class, default tabhost not allow swiping change tab feature, fine. so in schedule activity, using viewpager , learnt how use article: http://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/ which pretty easy understood. may try use it, hope answered question update: here's sample schedule.class @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.schedule); viewpager viewpager = (viewpager) findviewbyid(r.id.viewp...

google app engine - Schedule 2 cron jobs -

how cron 2 tasks below (i want 2 cron jobs run in 30 seconds difference.) cron: - description: task1 url: /task1 schedule: every 1 minutes 10:00 14:00 - description: task2 url: /task2 schedule: every 1 minutes 10:00:30 14:00:30 the cron jobs don't allow seconds specified. however, use the task class , set countdown amount on task2 equal 30 seconds. i don't think timing guaranteed, should work approximately well.

Windows Server AppFabric 1.1 - Failed to read remote registry key from host -

i have installed , configured appfabric cache cluster 1 host (the local machine). use sql provider. when launch caching administration windows powershell using administrator privileges, got following error, use-cachecluster : errorcode<errcadmin040>:substatus<es0001>:failed connect hosts in cluster @ line:1 char:62 + import-module distributedcacheadministration;use-cachecluster <<<< + categoryinfo : notspecified: (:) [use-cachecluster], datacachee xception + fullyqualifiederrorid : microsoft.applicationserver.caching.datacacheexc eption,microsoft.applicationserver.caching.commands.usecacheclustercommand when opened dcacheadministration.log shows below, host xxx reachable.,distributedcache.cacheadmin,verbose,2013-5-2 13:54:06.042 failed read remote registry key host xxx: microsoft.applicationserver.caching.datacacheexception: errorcode<errcadmin026>:substatus<es0001>:remote registry access failed on host xxx. check i...

php - In ZF2, How we can add conditional form fields on some specific selection in select box or after clicking on check box -

how can add conditional form fields on specific selection in select box or after clicking on check box in zf2 , validate server side code using zf2 feature validation? there no way add dynamic field in zf2 validation lib.

sql server - stored proc from multiple select statements in Tsql -

-> want write stored proc outputs columns 2 select statements ->the columns 1 select statement inputs second select statement create procedure sp_proc @inputid int begin select t1.ticketid ticket, t2.name name, t3.status status, t2.id id table1 t1 inner join table2 t2 on t1.ticketid= t2.ticketid inner join table3 t3 on t3.name = t2.name t1.ticketid not null , t2.id = @inputid select t1.ticketid, t2.name , d.desc, t2.id table1 t1 inner join table2 t2 on t1.ticketid= t2.ticketid inner join( select top 1 table4 t4 order t4.date t4.ticketid = ticket)as d on t4.ticketid = t2.ticketid t4.ticketid =ticket i want ticket, name,status, id , desc when user supplies @inputid proc an inline scalar query work create procedure sp_proc @inputid int select t1.ticketid ticket, t2.name name, t3.status status, t2.id id, [desc] = (select top(1) [desc] table4 t4 t4.ticketid = t1.ticketid order t4.date) table1 t1 inner join table2 t2 o...

django - what might delay my celery tasks? -

lo guys, i have lil problem , maybe me figure out happening here: i have thousands of same tasks should execute in milliseconds , right after restart worker execute in milliseconds, right after logging of bunch of tasks big blob celery saying done ( http://d.pr/n/66h ) in lager time frame .. , after each of tasks take around 5-13s execute. made me calculate celery might done of tasks in week of execution time. (aaaaahhhhh) after worker restart 30-60 task executed in normal speed say. after 1 result every few seconds - mentioned above kinda 4-13s. sure in cases there little bit more than in others, not justify differences 0.08s 13s! im using redis broker (in gonna switch rabbitmq soon) , result backend , task saves data solr instance of connections should still done in milliseconds! id able figure out delays tasks. anybody? cheery andy we had same problem here. solved problem playing aroung celery-settings in our django-settings. after decreasing concurrency (to...