Posts

Google App. Engine - Hosting our Web Application -

all, we trying host our web application on google app. engine little success. here specifics: web application built on html5, svg & javascript. using python 2.6 upload. used following tutorial upload getting errors once uploaded. link tutorial: http://www.labnol.org/internet/host-website-on-google-app-engine/18801/ we getting errors in appcfg.py python file. totally clueless how go using guidance awesome, tutorials more so. update: further outcry , milimetric's helpful post, here more detail: we have managed upload web application onto google app engine. going dashboard, can see application running (we can see instance graphs , cpu stats), however, when execute custom link web application, 'hello world' message. we followed tutorial milimetric & rolled 'appcfg.py' original state. following tutorial, made changes 'app.yaml' (inserted our application name). didnt write custom python script. we not getting errors anywhere, message...

c# - FormClosing delegate event problem -

i have 2 forms named 'mainform' , 'addrslt'. idea when users click on button in mainform, addrslt form show() , user populate treeview. when user want close addrslt form, program instead hide() form (using e.cancel = true; ) later if user reopen he/she can add more things treeview. in mainform have button showing addrslt form, , inside button's click code, there formclosing delegte detect , copy contents od treeview in addrslt form treeview in mainform. now problem want check duplicated nodes , not add them treeview in mainform. done right, have message box tells user program had not added existing nodes! thats ok till now.. but problem each time this, messagebox appear n+1 times! mean if first time, message box appears 2 time , etc... here code! sorry long story! private void menufileaddtestresults_click(object sender, eventargs e) { addrslt.show(); addrslt.formclosing += delegate { foreach (treenode node...

c# - Set directory permissions on Windows XP -

when right-click on file or directory in windows xp , select 'properties' usual windows properties pop-up. in pop-up there 2 places can set file permissions, first, in 'security' tab, has checkboxes 'full control', 'modify', 'read & execute' etc. , second can found clicking 'advvanced' button @ bottom of 'security' tab. i know how set file/directory permissions 'advanced' section programmatically in c# (using .getaccesscontrol, .addaccessrule , .setaccesscontrol), cannot find way of programmatically setting file permissions in normal 'security' section of file properties window. can tell me how programmatically in c#? these different views of same underlying data - need use methods mention update file permissions. information available here: http://msdn.microsoft.com/en-us/library/system.io.file.setaccesscontrol.aspx

How to show documentation in Clojure -

i following : (defn ss [] "kjhhj") (doc ss) but "nil" returned. why this? update: if : (defn tt "kjhhj" [] 1) (str (doc tt) ) as shown empty string... "doc" output go out or something? the docstring comes before arguments function. have defined function no docstring returns string. user> (defn ss [] "kjhhj") #'user/ss user> (ss) "kjhhj" user> (doc ss) ------------------------- user/ss ([]) nil nil user> (defn tt "kjhhj" []) #'user/tt user> (tt) nil user> (doc tt) ------------------------- user/tt ([]) kjhhj nil user>

c# - Datagridview similar to SQL Server Table designer with combo box and datetime picker -

Image
from long time i've been struck datagridview in c#.net. need customized datagrid view combo boxes, text boxes , date time picker controls validate on row-leave , cell-leave events. i'm attracted datagrid of sql server data entry. manytimes tried didn't succeed. please suggest me if know any. if using winforms can add combobox columntype [for further reference] http://msdn.microsoft.com/en-us/library/bxt3k60s.aspx msdn for datetimepicker see example image showing how customise datagridcolumntype uploaded below

osx - trying to write a paper on mac os x and win xp system scheduling cant find info -

im trying write paper on mac os 10 , windows xp system scheduling cant find information on web can suggest websites ?? this might mac mac osx internals

html - How does one get the width of an absolute/fixed element with jquery/js, on resize? -

lets have fixed or absolute positioned element: <div> fixed div. </div> with following css: div:first-of-type { background-color: red; position: fixed; top: 20px; left: 20px; right: 20px; bottom: 20px; } you can figure out width via: $(function() { $(window).resize(function() { var $myfixeddiv = $('div:first'); console.log($myfixeddiv.width()); //$myfixeddiv.innerwidth(), $myfixeddiv.outerwidth() }); }); however, when resize window, width reported both firefox , chrome 0. how 1 figure out true width is? you take window's width , minus 40 both axis. var width = $(window).width()-40; var height = $(window).height()-40; then rather using css top, left, bottom , right set width think unreliable in long term set div's width js var mydiv = $('#mydiv'); mydiv.width = width; mydiv.height = height;