Posts

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.

bash - executing scripts on Google App Engine localhost -

is there easy way execute scripts on google app engine localhost? instance have few scripts generate pilot data, it's quite painful copy-and-paste them interactive console time. currently, i'm using simple bash script this, i'm not sure best solution. curl --data-urlencode "code=`cat src/gen_pilot_data.py`" http://localhost:8079/_ah/admin/interactive/execute thanks, v check out remote_api_shell.py, included in sdk. lets run code on local machine against apis on app engine app, in production or on dev_appserver. the other option have make scripts handlers, , or post relevant urls.

simultaneous - Can i increase my weblogic 8 license for more than 3 user -

i using weblogic 8 in project. deployed folder accessed 3 user simultaneously. fourth user unable access url. , getting 403 error. error is: the server not licensed operation. what solution this?? what solution this?? pay more money.

android - ListView color issue -

Image
hey i'm not professional coder stretch, i've been playing around simple to-do list learn basics of android development. i've been able want working, there 1 problem listview has me totally stumped. i've extended simplecursoradapter in order format data coming sqlite database , change color of duedate text based on whether or not duedate has expired. formatting works flawlessly, i'm getting odd results colors. the first few entries in listview expect them to, scroll down, inconsistencies start popping items no due date set colored red or green. more scroll , down in list, more inconsistencies appear until every row colored whether should or not. can me understand going on here? please see custom adapter below. public class proadapter2 extends simplecursoradapter { private static int[] = {r.id.priority, r.id.projectname, r.id.duedate}; private static string[] = {"priorities", "projectname", "duedate"}; private cont...

nservicebus - Impossible to have two sagas that handle the same message type -

i have 2 different sagas (i mean saga types) handle same message. public class attachmessagetobugsaga : tpsaga<attachmessagetobugsagadata>, iamstartedbymessages<messageisnotattached>, ihandlemessages<messageattachedtogeneralmessage> { public override void configurehowtofindsaga() { configuremapping<messageattachedtogeneralmessage>( saga => saga.id, message => message.sagaid ); } public void handle(messageisnotattachedtobug message) { send(new attachmessagetogeneralcommand { messageid = 66, generalid = 13 }); } public void handle(messageattachedtogeneralmessage message) { //do stuf fhere } } public class attachmessagetobugsagadata : icontainsagadata { public guid id { get; set; } public string originator { get; set; } public string originalmessageid { get; set;...

css - Website doesn't find stylesheet in Safari/IE -

Image
no idea why happening... looks in firefox: and looks in safari: a quick inspection firebug safari shows not picking style sheets except transmenu.css (for menu - isnt' being used). can't find reason why happen. any ideas? website: http://tradartsteam.co.uk thanks @thomas clayson: remove </script> on ln. 35 of source-code. edit : it's 2 lines after <script type="text/javascript" src="/_common/js/mootools-1.2-more.js"></script> update : @thomas clayson: way page display fine comment out entire <script> element $.noconflict(); inside until before <script language="javascript" type="text/javascript" src="/js/swfobject.js"></script> . $.noconflict(); on own breaks page again. i'll more digging , update answer again (unless else can find solution before me). super massive update : @thomas clayson: after going little batty couldn't see/find problem, se...

c# - saving and retrieving values from session state in asp.net -

i reviewing web code , not sure how asp.net session state works. helps gratefully appreciated. if user object saved session state during login, , user.firstname , user.lastname set. if other web pages retrieve user object session , set firstname else persisted on other web pages? or, need re-add user object session once has been modified? thanks session persisted on server, tracked via client. repeat - via client. in cases, sessions tracked cookies. using example, when user object saved session: session["userinfo"] = new user { firstname = "joe", lastname = "bloggs" }; a cookie sent client unique identifier. cookie passed along further http requests client/browser unless expires. if user comes along (from different machine) first time, session["userinfo"] null. an alternative cookies "cookieless-session" - instead of using cookie store session identifer - identifier tacked onto url. so answer no - other web ...

export a php file to excel -

how can set style table while export php file excel using following code can export php file excel header("content-disposition: attachment; filename=".$fname."application.xls"); print "<html xmlns:x=\"urn:schemas-microsoft-com:office:excel\"> <style> @page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;} tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell; } .style0 {mso-number-format:general; text-align:general; vertical-align:bottom; white-space:nowrap; mso-rotate:0; mso-background-source:auto; mso-pattern:auto; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:arial; mso-generic-font-family:auto; mso-font-charset:0; border:none; mso-protection:locked visible; mso-style-name:normal; mso-style-id:0;...