Posts

Showing posts from February, 2013

c++ - How to check crash log using android ndk in cocos2d-x -

i use cocos2d-x develop game, after runs in ios, turn around android platform. but run somewhere in android, , receive error log this: 08-26 10:49:23.823: a/libc(2884): fatal signal 11 (sigsegv) @ 0x0000000c (code=1), thread 2917 (thread-285) with this, can't fix crash log. so question how can check stack of crash log? and in so, there similar questions, none useful answer me. using ndk-stack read crash logs unable line no stack trace in android ndk how useful crashlog information android cocos2dx c++ i find perfect answer in http://www.cocos2d-x.org/boards/6/topics/20437 . the solution is: when errors on logcat, saved on $project_path/obj/local/armeabi $project_path path cocos2d-x android project. symbolicate messages understandable, can use ndk-stack tool. open terminal (or cygwin, not sure though) , type in cd $android_ndk adb logcat | ./ndk-stack -sym $project_path/obj/local/armeabi where: $android_ndk path android ndk $project_path...

ext.net - ColumnModel Set Header error with mono 3.3.0 -

this asp.net gridpanel code columnmodel id columnmodel3 <south split="true" collapsible="true" collapsemode="mini"> <ext:panel runat="server" id="pnlmsglst" frame="true" height="145" title="消息列表" autoscroll="true" collapsed="true"> <content> <ext:gridpanel id="vehgridpnl" runat="server" storeid="msgstore" striperows="true" frame="true" autoheight="true" autoexpandcolumn="id" autoscroll="true" enablehdmenu="false"> <columnmodel id="columnmodel3" runat="server"> <columns> <ext:column columnid="id...

javascript - GoogleMap error cause by markercluster -

Image
hi guys i'm having problem don't understand why , have tried google error got doesn't help. seems markercluster causing problem did try in other application works fine. have tried delete var markercluster = new markerclusterer(map, markers); but got error uncaught typeerror: cannot read property '__e3_' of undefined html <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=aizasycwdpcih080dnctyc-uprmlon2mt2bmsuk&sensor=true"></script> <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js"></script> <script type="text/javascript" src="findout.js"></script> findout.js var markers = []; var place...

java - What is a best way to add scheduler to Solr? -

i have custom data import handler. schedulers running code in inform(solrcore core) method (handler implements solrcoreaware). don't think it's request handler knows schedulers. don't want use code on client side (eg. using solrj). need have 1 jar file user add solr classpath, register handler , that's all. is there better common way add scheduler solr server? try looking @ solr-data-import-scheduler . although haven't used personally, know of people have done, , seem happy it.

how to get access token after windows azure active directory authentication -

we have implemented active directory authentication using process given @ url http://msdn.microsoft.com/en-us/library/windowsazure/dn151790.aspx . here able authenticate user on https://login.microsoftonline.com/ , return web site not able access token after successful authentication. following code through able access user name, surname etc after successful authentication not access token. can provide me code through can access token after authentication. public class homecontroller : controller { public actionresult index() { claimsprincipal cp = claimsprincipal.current; string fullname = string.format("{0} {1}", cp.findfirst(claimtypes.givenname).value, cp.findfirst(claimtypes.surname).value); viewbag.message = string.format("dear {0}, welcome expense note app", fullname); return view(); ...

join - MySQL select only the newest records older than 2 days (timestamp) -

i have people table, units table, , wellness table (described below). @ work have check on people, , if haven't been seen 2 days go looking them... i'd able select records wellness table older 2 days, newest ones (as there multiple entries per person per day, how want because wellness.username field can tell saw who, , when). people +------------+-------------+------+-----+-------------------+----------------+ | field | type | null | key | default | | +------------+-------------+------+-----+-------------------+----------------+ | id | int(11) | no | pri | null | auto_increment | | fname | varchar(32) | no | | null | | | lname | varchar(32) | no | | null | | | dob | date | no | | 0000-00-00 | | | license_no | varchar(24) | no | | null | | | date_added | timestam...

javascript - How do I find the total of a particular model attribute in a collection? -

how find total of particular attribute in models of collection? var mymodel = backbone.model.extend({ }); var mycollection = backbone.collection.extend({ model : mymodel, }); whenever there value change in models, have show total of values. for example, have 10 models in collection , there property in models called amount . should show total of amount whenever property gets new value. the code used : debitamounttotal: function(){ return this.reduce(function(memo, value) { return memo + value.get("amounttcy"); }, 0); } but concatenates values : if first value 8 , second value 8 result 88 instead of 16 assign default value of 0 amount in each model. bind changed event models of collection, , add/remove collection. for changed event, use reduce method of underscore.js iterate on collection , find sum of amounts.

android - Radio Group value selection issue -

i have following radiogroup: <radiogroup android:id="@+id/radiogroup1" android:layout_width="wrap_content" android:layout_height="wrap_content" > <radiobutton android:id="@+id/rd_male" android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true" android:text="male" /> <radiobutton android:id="@+id/rd_female" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="female" /> </radiogroup> i want selected value in radio group, hence written following code in oncreate method: int checkedradiobutton = rggender.getcheckedradiobuttonid(); switch (chec...

python RE and list processing -

i've file below elapsedtime2.68s: placeorder elapsedtime2.69s: classarestcall elapsedtime0.11s: getorderlist elapsedtime0.11s: classarestcall elapsedtime2.10s: placeorder elapsedtime2.11s: classarestcall elapsedtime0.10s: getorderlist elapsedtime0.10s: classarestcall elapsedtime2.00s: placeorder elapsedtime2.01s: classarestcall elapsedtime0.28s: getorderlist elapsedtime0.28s: classarestcall elapsedtime1.64s: placeorder elapsedtime1.65s: classarestcall elapsedtime0.11s: getorderlist elapsedtime0.11s: classarestcall elapsedtime1.99s: placeorder elapsedtime2.01s: classarestcall how can parse file result? average min max classarestcall 1.23 0.1 2.69 getorderlist 0.15 0.1 0.28 placeorder 2.082 1.64 2.68 i've developed 1 approach solve using re , list operation. approach scan whole list once every new method name. how can stats api names scanning list once. import re def get_stats(n, p_api): list_of_rt = [] line in n...

IE9 stopped working with Selenium C# -

i new selenium, using following code snippet automate menu items[ajax]. ijavascriptexecutor executor; executor = (ijavascriptexecutor)driver; executor.executescript("return $(\"a:contains('" + category + "')\").mouseover();"); executor.executescript("return $(\"a:contains('" + subcategory + "')\").click();"); on mouse-over submenu opened. getting popup message, ie stopped working @ times. how rid of behaviour.

jquery - Continuous status updates from a process using AJAX and PHP -

i've php script pushes large media files remote server via ftp. working smoothly. enhance , make report ajax client initiates transfers. basically, report below after each transfer: 1/12: file xbacd.dat has been copied /dir1/sub2/ - 2.2mb 2/12: file impact_analy.ppt not found in /var/www/files - resuming. 3/12: file abc_consult.doc has been copied /dir1/sub3/ - 8.2mb ajax handler on other hand should displaying in div, , when arrives. i had no luck following code, , hence switching on ajax. ob_start(); require_once 'init.php'; while(files){ // transfer code // status echo "$idx/$count: file $f has been copied $tar_dir - $s"; ob_flush; flush; } i'll tell did once, i'm no sure it's best solutions worked. should have iframe , set target of form iframe <script> function showmsg(msg){ alert(msg); } </script> <form action="thecommandhandler.php" method="post" ...

can i create a array of special characters in Peoplesoft -

can create array of special characters in peoplesoft below. local array of string &myarray; &myarray = createarray( "!","@","#","$","%","^","&","*","(",")" ); your code should work charm :) did encountered issue when executing ? on side, no problem when looping on array , displaying strings.

c# - Deploying my visual studio web application using IIS -

Image
i have publish website @ visual studio . , try setup website iis . have done : i click add new website in ' sites ' folder in iis , when browse physical path , pool , there error saying cannot verify access path , while pool authentication passed . this first time publishing site , want host site on localhost whenever type localhost site without running through visual studio . can me iis error on cannot verify acess path ? this of error : i have spent long time trying grips myself, , believe can offer answer may else comes across question in future. think problem stems terminology used in iis, , fact trying deploy 1 website localhost in order test it. in iis, 'website' (i.e. adding if right-click sites , "add website...") not commonly refer website. folder on disk, url binding. default web site, example, has folder \inetpub\wwwroot, , binding "http:*:80:" means http request (port 80) go "website". website have publi...

jsf - Unable to download the created zipped file correctly from server -

i having folder, trying zip , on button click event should downloaded on user's machine. able generate zip file correctly. have written code download after getting downloaded user's machine server. shows unable open zip file invalid. how caused , how can solve it? here's code performs download functionality. public string getaszip() { try { facescontext ctx = facescontext.getcurrentinstance(); externalcontext etx = ctx.getexternalcontext(); httpservletresponse response = (httpservletresponse) etx .getresponse(); servletoutputstream zipfileoutputstream = response .getoutputstream(); response.setcontenttype("application/octet-stream"); response.setheader( "content-disposition", "attachment; filename=" + downloadlink.substring(downloadlink.lastindexof("\\") + 1,downloadlink.length(...

html - What is the CSS property that makes a <fieldset> fully enclose it's contents? -

i using <fieldsets> group gives me message in ide saying <legend> missing. decided try , simulate <fieldset> <div>. .grid-select .group { border: 1px solid #d9d9d9; padding: 12px; -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; -webkit-border-radius: 0.25em; -moz-border-radius: 0.25em; border-radius: 0.25em; margin-bottom: 1.667em; position: relative; z-index: 89; padding-top: 1.667em; } this not work me seems <div> not wrap around other <div> elements inside fieldset in same when used <fieldset> . is there other property <fieldset> has don't have? note inside .group <div> have display: inline; , float: left note inside .group have display: inline; , float: left this problem. floated elements not contribute height of parent. in other words, surrounding div thinks floated elements non-existent. workaround set .group...

sql - how can i get ot_total and ot_shipping into one row in mysql? -

Image
how can ot_total , ot_shipping 1 row in mysql ? i want charge of each orders ot table. how can table bellow in mysql ? thank much. set foreign_key_checks=0; -- ---------------------------- -- table structure `ot` -- ---------------------------- drop table if exists `ot`; create table `ot` ( `id` int(10) not null auto_increment, `orders_id` int(10) default null, `class` varchar(30) default null, `value` float(30,0) default null, primary key (`id`) ) engine=myisam auto_increment=6 default charset=utf8; -- ---------------------------- -- records of ot -- ---------------------------- insert `ot` values ('1', '1', 'ot_shipping', '10'); insert `ot` values ('2', '1', 'ot_total', '100'); insert `ot` values ('3', '1', 'ot_insurance', '1'); insert `ot` values ('4', '2', 'ot_shipping', '10'); insert `ot` values ('5', '2', 'ot_tot...

android - onResume() is not called in physical device instead onCreate() is called -

iam little bit amazed this.i have onresume() in activity.its called , works in emulator, in physical device samsung galaxy note specific jellybean installed,its not called.instead oncreate() called time.why happens? public void onresume(){ super.onresume(); if(firsttime){ try { toast.maketext(getapplicationcontext(), "resuming activity",toast.length_long).show(); addreminder(); } catch(exception exception) { exception.printstacktrace(); } } else { firsttime=true; } } this code.firsttime static boolean variable.it used prevent onresume() being called when app started first time considering current scenario, should save variable in preferences instead of relying on activities lifecycle since lifecycle depends on many things. using static variable scenario bad choice in general.i think should solve problem.

zend framework2 - How to pass variables to layout.phtml globally in ZF2? -

i want pass series of variables layout.phtml throughout whole application(globally). , mean don't wanna use $this->layout()->somevar = somevalue; in each , every action i've got, since lot of work , code. there way in 1 place? or mentioned got! hope not :) maybe using sessions ? – remi thomas thanks solution. time being that's i'm using. logged-in user info, system , layout settings , acl list. problem have define new object in layout.phtml don't think appropriate, it? read somewhere whatever data need use in view models should passed using controller actions. , specially i'm not fan of cutting corners, if there's clean way i'd rather not way. , have number of unread messages each user , use in layout.phtml. if in layout.phtml it's lot of php script inside view model or layout. thanks the best , cleanest way using viewhelper, orochi suggests. here instructions create own viewhelper: http://framework.zend.com/manual/2...

MongoDB Update for array of object -

i having following document in mongodb { "_id" : objectid("521aff65e4b06121b688f076"), "uuid" : "160597270101684", sessionid" : "160597270101684.1", "stamps" : { "currentvisit" : "1377500985", "lastvisit" : "1377500985" }, visits : [ { "page":"google.com", "method": "get" } ] } requirement: if uuid , sessionid not present insert document above otherwise have push object visits array. any greatful. mongodb supports upsert option on update updates matching document if exists, , inserts new document if doesn't exist. in mongodb 2.4+ can use $setoninsert operator further tweak set fields only if upsert performs insert. db.test.update({ uuid: "160597270101684", sessionid: "160...

Index out of range exception in 2D Array (C#) -

char[,] map = new char[10, 20]; (int = 0; < map.getlength(0); i++) { (int j = 0; < map.getlength(1); j++) { map[i, j] = '.'; } } i want make elements of map[i,j] point , when try run compiler says: index out of range exception. maybe it's stupid question had ask it. see i in j-loop for (int j = 0; j < map.getlength(1); j++)

.net - Why are there neutral cultures for cultures with only one region specific culture? -

why there region specific cultures neutral cultures 1 region specific culture? or flipped version...why there neutral cultures when there's 1 region specific culture? e.g. russian or czech. russian, have ru , ru-ru . czech, there cs , cs-cz . there no other region specific culture either czech or russian. why .net containing both cs , cs-cz , not 1 of them? first 1 not tied country, second tied czech republic... there no other czech speaking country. cs , cs-cz cultures should identical why having both of them specified? (note: makes me wonder why there 1 russian specific culture. wikipedia says there many other countries russia spoken) the existence of cultures, in technical sense “culture” (a collection of cultural conventions, called “locale”) matter of definition. should not confuse concept of culture particular sets of cultures defined in context, .net. concept of culture open-ended definition: allows new cultures specified desired. everyone , br...

ios - How to add a custom splash that dissapears after a custom time to allow for webview to load. Objective-c -

i'm using code show splash screen thing see black. uistoryboard *storyboard = [uistoryboard storyboardwithname:@"mainstoryboard_ipad" bundle:nil]; splashviewcontroller *splash = [storyboard instantiateviewcontrollerwithidentifier:@"splash"]; splash.modaltransitionstyle = uimodaltransitionstylecrossdissolve; splash.modalpresentationstyle = uimodalpresentationfullscreen; [self.window addsubview:splash.view]; the view controller of splash screen loading because break points being called cant see view controller see black. i think instead of adding splash.view window subview can use presentviewcontroller:animated:completion: present splash view controller.

c# - Upload xml file on ftp binary -

i have code, send xml file ftp server, size of file on ftp server smaller original file. i'm trying enable binary transmission, result still same. fileinfo f = new fileinfo("c:\\users\\l\\desktop\\data.xml"); long original_vel = f.length; ftpwebrequest request = (ftpwebrequest)webrequest.create("ftp://***"); request.usebinary = true; request.method = webrequestmethods.ftp.getfilesize; request.method = webrequestmethods.ftp.uploadfile; request.credentials = new networkcredential("*****", "*****"); streamreader sourcestream = new streamreader(@"c:\\users\\l\\desktop\\data.xml"); byte[] filecontents = encoding.unicode.getbytes(sourcestream.readtoend()); sourcestream.close(); request.contentlength = filecontents.length; long ftp_vel = request.contentlength; stream requeststream = r...

user interface - Property of PUSH-BUTTON in MATLAB GUI -

in gui's can press same pushbutton twice/thrice/multiple times? i've designed gui pushbutton, works once @ first when pressed that. function flip_h_callback(hobject, eventdata, handles) = getimage(handles.axes1); hflip = flipdim(a,2); axes(handles.axes1); imshow(hflip); guidata(hobject, handles); above code flip . flips image horizontally. when run , if press pushbutton image gets flipped again if press same button not! thought second time if press call flip_h_callback again not that. why so? can that? it call callback whenever press push button. your callback not correct. you never capture output flipdim , whenever callback executes flips original matrix , show result got on first flip. instead use: a= flipdim(a,2); also, better have copy of initial image.

javascript - in firefox, image not showing. But in IE, it works -

Image
in ie, code shows 3 images (minimize, restore, close) in right , top of window. in firefox , chrome, fails. how correct? thanks. function panel(_caption,_width,_height,_confirmfunction) { this.icon=new array(); this.icon["minimize"]=env.envpath+'/ui/images/minimize.gif'; ... this.init=function() { this.maindiv=document.createelement("div"); this.maindiv.style.csstext="padding:2px 2px 2px 2px;position:absolute;width:"+_width+"px;left:50%;margin-left:-"+(_width/2)+"px;top:50%;margin-top:-"+(_height/2+50)+"px;border-right:1px solid gray;border-top: 1px solid white;border-left:1px solid white;border-bottom:1px solid gray;background-color:#f2f1ed"; document.body.appendchild(this.maindiv); this.maindiv.handler=this; this.tooldiv=document.createelement("div"); this.tooldiv.style.cs...

php - Format the date string "2013-08-26T12:00:00.000" -

the date represented string "2013-08-26t12:00:00.000". how format date string in following way?: "2013-08-26 12:00:00" date("y-m-d h:i:s", strtotime("2013-08-26t12:00:00.000"));

actionscript - Open a link in web browser using flash swf -

i new flash coding , didn't know more. i want make flash file send url web browser open particular link. i've made such file execute after making swf file, not open link. any 1 me regarding small problem. check out navigatetourl() : http://help.adobe.com/en_us/flashplatform/reference/actionscript/3/flash/net/package.html#navigatetourl() note won't work unless it's triggered user action; i.e. mouse click or key press

cassandra - Showing old cluster ips when i run nodetool status for new cluster -

i have cassandra cluster of 4 nodes (version 1.2.5). made image of 1 of cassandra instance in existing cluster , created new cluster 2 nodes. when started new instances , checked nodetool status showing old cluster ips also. checked cassandra.yaml file. seeds set new nodes only. else needs changed? i think cluster metainfo stored in system keyspace--check peers table.

Lock a single row in SQL Server from being selected -

can use lock, in sql server, such if select 1 record locked record should not returned other select query until lock has been removed. below sample query: sql table name : table1 let data in sql table : 1 column "name" having values ("abc","xyz","test") in 3 respective rows so, if run select query lock below : select top 1 * table1 -- suppose query returns abc then if run same query in new query window (many times) should not return value "abc" until remove lock. select * t (xlock, rowlock, holdlock) --disallow readers, lock on rows not pages or table somecondition this not block concurrent readers in snapshot mode, though. can't block those.

sockets - Bind failed with Invalid argument error -

i'm trying write simple program uses bind. code compiles on solaris, bind() failed invalid argument error. i have tried many times getting same error, i'm unable figure out error. here code : int my_func () { struct sockaddr_storage name; struct addrinfo hints, *res; int status; char hostnamestr[256]; gethostname (hostnamestr, 256); int irc; memset(&hints, 0, sizeof(hints)); hints.ai_family = af_unspec; hints.ai_socktype = sock_stream; if ((status = getaddrinfo(hostnamestr, null, &hints, &res) != 0)) { printf("getaddrinfo: %s\n", gai_strerror(status)); return 1; } memcpy(&name, res->ai_addr, res->ai_addrlen); freeaddrinfo(res); monsocket = socket (name.ss_family, sock_stream, ipproto_tcp); int ilasterror = wsagetlasterror (); if (monsocket == -1) { fprintf (stderr, "cannot open socket monitors [%s]\n", wsaerror (ilasterror));...

PHP resize and crop centered-top image -

i'm trying resize (keeping aspect ratio) , crop excess of image (outside thumbnail limits), doing while crop x = center , y = top. i'm missing here, final image fits inside thumbnail area, , not fill , crop excess. hope can me on this. this code, far: $image_width = 725; // not static, example $image_height = 409; // not static, example // image can wide or portrait $width = 140; $height = 160; $thumbnail = imagecreatetruecolor($width, $height); $white = imagecolorallocate($thumbnail, 255, 255, 255); imagefill($thumbnail, 0, 0, $white); $width_ratio = $image_width/$width; $height_ratio = $image_height/$height; if ($width_ratio>$height_ratio) { $dest_width=$width; $dest_height=$image_height/$width_ratio; } else{ $dest_width=$image_width/$height_ratio; $dest_height=$height; } $int_width = ($width - $dest_width)/2; $int_height = ($height - $dest_height)/2; imagecopyresampled($thumbnail, $original_ima...

ASP.NET MVC editor templates and Html.EditorFor(...) - how to disambiguate the type name? -

when using html helper in razor syntax: @html.editorfor(model => model.prop1) ... convention render view under views/<crtview|shared>/editortemplates/prop1typename.cshtml . so far good. notice if (qualified) type of prop1 my.org.ns.thetype , file thetype.cshtml rendered. but if have model .prop1 , .prop2 , , : prop1.gettype().fullname == "my.org.ns1.thetype"; prop2.gettype().fullname == "my.org.ns2.thetype"; //same type name different namespace and call razor: @html.editorfor(model => model.prop1) @html.editorfor(model => model.prop2) ...i can't display different views different types. is there way disambiguate this? maybe there's more know naming convention .cshtml file? you can use this overload specify name of editor use. this, name editortemplates first.cshtml , second.cshtml , in view, this. @html.editorfor(model => model.prop1, "first") @html.editorfor(model => model.prop2, ...

caching - mirth can connect with Cache,sybase,informix database? -

i want know mirth can connect other database like(cache,sybase,informix). getting no way connect above database using mirth because in mcsm(mirth connect server manager) there few database option like(postgres,durby,oracle,mysql). there alternate way use url of (cache,informaix database) in mcsm. please me highly apprecialble. derby postgres mysql oracle sql server2000 sql server -these various different rdbms system mirth can support @ moment in latest version 2.2.2.6388 having said that, means mirthdb database mirth uses integration purpose can configured/installed on of above rdbms systems, of times either postgre or mysql. other this, there no other means of connecting informix (even though love see happen), depends on mirth corp.

javascript - Force an Attachment to be open before Submitting a Form -

i using bpm software create approval process. the first user submit information related document , attach document form being submitted approval. i trying build approval form requires user open attachment (normally pdf) before being able submit approval decision. once user opens attachment (or clicks link) approval selections enabled (approve, rework, cancel) , user submit. i happy if selections enabled , submit disabled, either way submittal cannot happen until after file or link clicked. if you're talking client validation, trick: $('#pdflink').click(function(){ $('#submitbutton').prop('disabled', false); }); your submit button html should this: <input type="submit" id="submitbutton" disabled />

heroku - Model field not displaying in Django Admin -

i have django project hosted on heroku i added new slug field model from django.db import models class category(models.model): name = models.charfield(max_length=30) slug = models.slugfield(unique=true) def __unicode__(self): return self.name migrated using south on heroku. checked heroku postgresdb added field. fine. opened admin. no slug field showing... added slug fields[] in admin.py. still not showing. here admin.py from django.contrib import admin models import category class categoryadmin(admin.modeladmin): fields = ('name', 'slug') admin.site.register(category, categoryadmin). i did heroku restart... no change. can done show ?

optimization - Extremely Slow Query which contains multiple Sub-Queries SQL Server 2008 R2 -

i working on query audit of form. there several pages worth of questions audit. when form filled out answers stored in 2 tables in following fashion: table 1: smsmir.obsv obs episode no | form usage | quest | answer | ... 123456789 | admission | question 1 | yes | ... 123456789 | admission | question 2 | 150 | ... ... table 2: smsdss.qoc_vst_summ qoc episode no | ht ind | wt ind | adv dir | ... 123456789 | 1 | 1 | 0 | ... ... table 1: smsmir.obsv obs stores information in vector, each question there row. table 2: smsdss.qoc_vst_summ qoc stores answers in row, there 1 row per visit. table 3 same, there 1 row per visit id. my query starts off collecting visit ids stored in table , passed off next set in order answer questions. reason pull visit ids other table because visit start , end date stored. table looks this: table 3: smsdss.bmh_plm_ptacct_v pav episode no | adm date | ... 123456789 | 2013-08-01 | ... ... my desired output of fo...

Access 2007, possibly VBA: issue with having to fill out too many fields -

this issue bit complicated explain please bear me. have comp table. table houses salaries of employees. have emp table. see below: **comp table** **empl table** id: year: salary: id: region: 1 2013 $50000 1 usa 1 2012 $45000 2 canada 1 2011 $40000 etc.. etc.. etc.. 2 2013 $45000 etc.. etc.. etc.. each salary has own year. problem when create new employee have fill out years 2006-2013 queries , reports work. there way can auto fill years no information? can use vba this? summary: best way create new employee don't have fill out comp table them (but still have queries, forms, , reports work). you use vba magic automatically populate [comp] table dummy records "back beginning of time", better solution adjust queries , reports hand...

java - Can't install tutorial content for javaee7 tutorial with updatetool -

i downloaded latest javaee7 tutorial , tried downloading tutorial files command updatetool . did following steps: downloaded glassfish4 zip file , unzipped i set $as_java variable equal $java_home . java_home correctly pointing valid oracle-7-jdk earlier configuration. i added parent glassfish , glassfish directory path . when which updatetool , following: /home/frrole/glassfish4/bin/updatetool . guess fine. i'm able fire glassfish server `asadmin start-domain now when type updatetool , receive following error: frrole@frrole-ner1:/usr/lib/jvm/java-7-oracle$ updatetool the software needed command (updatetool) not installed. if choose install update tool, system automatically configured periodically check software updates. if configure tool not check updates, can override default behavior via tool's preferences facility. when tool interacts package repositories, system information such system's ip address , operating system type ...

asp.net mvc - TypeScript not compiling with WE3 and TS 0.9.1.1 -

i upgraded latest version of webessentials v3 , ts files in asp mvc 4 project aren't compiling js anymore. verified options --> text editor --> typescript --> project --> automatically compile typescript files part of project option checked, nothing happens when save or compile project. i've tried deleting existing .js , .min.js files we2 created, didn't help. tried adding new ts file project , didn't generate js file. reinstalled ts 0.9.1.1 , didn't help. sooooo do? missing obvious? not working or have wrong expectations? do need go we2? update: created brand new asp mvc 4 c# project verify wasn't original project, got same results. interestingly enough, created new typescript project , ts files compiled on save... that's interesting.. there links in change log of we3, here 1 describes how enable compile-on-save feature, see http://typescript.codeplex.com/wikipage?title=compile-on-save details. i've created nuget pa...

php - CakePHP 2.3 - cron dispatcher -

i followed instructions website: http://colorblindprogramming.com/cronjobs-in-cakephp-2-in-5-steps , cronjob not work. this /app/cron_dispatcher.php: <?php if (!defined('ds')) { define('ds', directory_separator); } if (!defined('root')) { define('root', dirname(dirname(__file__))); } if (!defined('app_dir')) { define('app_dir', basename(dirname(__file__))); } if (!defined('webroot_dir')) { define('webroot_dir', basename(dirname(__file__))); } if (!defined('www_root')) { define('www_root', dirname(__file__) . ds); } if (!defined('cake_core_include_path')) { if (function_exists('ini_set')) { ini_set('include_path', root . ds . 'lib' . path_separator . ini_get('include_path')); } if (!include('cake' . ds . 'bootstrap.php')) { $failed = true; } } else { if (!include(cake...

angularjs - Building a checkbox filter using ng-repeat -

i have json object i'm building checkboxes using ng-repeat orderby: 'name' : <div ng-controller="ctrl"> <ul> <li ng-repeat="fruit in fruits | orderby:'name'"> <label> <input type="checkbox" name="{{fruit.name}}" id="{{fruit.name}}"> {{fruit.name}} </label> </li> <ul> </div> now want sort items first "checked" , alphabetically. here's fiddle: http://jsfiddle.net/dqftw/67/ you should have additional column in data status default false(unchecked), or u needed. use ng-model data should below. $scope.fruits = [{'name':'apple',status:false}, {'name':'mary',status:false}, {'name':'mike',status:false}, {'name':'adam',status:false}, {'name':...

docusignapi - Obtaining DocuSign OAuth IntegratorKey -

i'd make app can allow users authenticate own docusign account , manage account through app. imagine use of oauth api grant me access token make requests on behalf of account. however, seems docusign's rest api has me specify user's integratorkey (in addition email , password). understanding integratorkey obtained through developer account setup, don't want users going through ref: http://www.docusign.com/p/restapiguide/content/oauth2/oauth2%20token%20request.htm i believe sobo accomplish you. sobo (send on behalf of) functionality, can send requests on behalf of other users in same account. docusign dev center has page dedicated feature , lays out steps needed , how account needs configured. please read following page info: http://www.docusign.com/developer-center/explore/features/sobo just highlight of main points, need have following settings enabled under account preferences use sobo: - apiaccountwideaccess - allowsendonbehalfof and gene...

sql - Nhibernate map several concrete classes from abstract class -

i'm new nhibernate , in project i'm working i'm using .hbm mappings. as project itself, have several concrete classes based on single abstract class, below: public mustinherit class networkbase property name string property id long ... end class public class networktype1 inherits networkbase property specificpropertytonetworktype1 string ... end class public class networktype2 inherits networkbase property specificpropertytonetworktype2 integer ... end class the abstract class networkbase table on sql db, specificpropertytonetworktype1 , specificpropertytonetworktype2 properties in concrete classes should records, not fields, in table, each record identified specific code, along lines networkid | propertyid | value 1001 1 lorem 1002 53 11 networkid 1001 should of concrete type networktype1, , 'lorem' value should loaded on specificpropertytonetworktype1, while networkid 1002 of co...

Why are there two different HTML entities formats and what is their difference? -

when encoding text html entities, noticed there 2 formats. example, string ç á ê can encoded to &ccedil; &aacute; &ecirc; or &#231; &#225; &#234; is there advantage of 1 on other? why there 2 formats? one unicode values characters , other shorthand html defines these specific characters. same end result first example easier humans understand when looking @ code (without cross referencing http://www.unicode.org/charts/ ). you'd use unicode approach characters don't have shorthand equivalents.

asp.net - Can't set focus on TextBox inside detailsview -

the detailsview.findcontrol("textbox1") returns me correct textbox want set focus setting focus using of following ways not work (textbox)detailsview.findcontrol("textbox1").focus() page.setfocus("textbox1"); got id of textbox viewing page source , setfocus on that. made sure detailsview in edit/insert mode before focus set. none of above has worked, stuck. note - works if detailsview inside panel not working inside tabpanel instead of (textbox)detailsview.findcontrol("textbox1").focus(); try scriptmanager.registerstartupscript(this, this.gettype(), "setfocus", "document.getelementbyid('" + (textbox)detailsview.findcontrol("textbox1").clientid + "').focus();", true); update here's approach uses scriptmanager: textbox textbox = (textbox)detailsview.findcontrol("textbox1"); scriptmanager.getcurrent(this).setfocus(textbox);

java - Spring bean creation is failing for beans without an "id" attribute -

i have spring controller definition follows : @controller @requestmapping("/queue") public class queuecontroller { queuesservice queueservice; public queuecontroller(queuesservice queueservice) { if (queueservice == null) { throw new illegalargumentexception("queueservice cannot null"); } this.queueservice = queueservice; } } and corresponding entry in context-configuration file follows (where bean definition not have "id" attribute): <bean class="com.xy.web.controllers.queuecontroller"> <constructor-arg ref="queueserviceimpl"></constructor-arg> </bean> now,during application startup, spring throwing below exception: caused by: org.springframework.beans.beaninstantiationexception: not instantiate bean class [com.xy.web.controllers.queuecontroller]: no default constructor found; nested exception java.lang.nosuchmethodexception: com.xy.web.controllers...