Posts

Showing posts from February, 2015

Linq date and datetime comparer -

Linq date and datetime comparer - i need query of day, problem i'm getting error when seek compare value comes db (which datetime ), against datetime.today.date value. what i'm trying accomplish registers of day. list<client> _cliente = c in db.cliente bring together v in db.vendedor on c.idvendedor equals v.idvendedor v.fecha.date.equals(datetime.today.date) this i'm getting: 'the specified type fellow member 'date' not supported in linq entities. initializers, entity members, , entity navigation properties supported.' maybe can this: var today = datetime.today; var tomorrow = today.adddays(1); list<client> _cliente = c in db.cliente bring together v in db.vendedor on c.idvendedor equals v.idvendedor v.fecha >= today && v.fecha < tomorrow linq datetime date linq-to-...

java - Signature with HMAC SHA-256 and Base64Encoder -

java - Signature with HMAC SHA-256 and Base64Encoder - i tried lot creating signature access 1 web service. they required generate signature each request. for generating signature, have 1 message "abc" , 1 secrete key "xyz". according them signature should processed next ruby code require 'base64' require 'openssl' secret = "xyz" request = "abc" digest = openssl::digest::digest.new('sha256') signature = base64.encode64(openssl::hmac.digest(digest, secret, request)).chomp signature should 9zjsfvb3k5npnlf5he+gfyyaxnwcij6j8ycrpxw5gg0= not getting using java code below: secretkey secretkey = null; byte[] keybytes = keystring.getbytes("utf-8"); mac mac = mac.getinstance("hmachsa256"); secretkey = new secretkeyspec(keybytes,mac.getalgorithm()); mac.init(secretkey); byte[] text = basestring.getbytes("utf-8"); //mac.update(digest.digest()); byte[] ...

asp.net - WebSite dynamic port (VS2010) -

asp.net - WebSite dynamic port (VS2010) - how alter vwdport website (not web application) in visual studio 2010? found many articles says click project , in f4 properties window set “use dynamic ports” false...but problem don't see such alternative in properties window , think it's because using website , not webapplication / webproject. there other way it? thanks you can properties of web site project (f4) , alter "use dynamic port" settings , port. sorry, can post screen shot in german: asp.net visual-studio

restart - How to start an application in android when mobile is switched ON? -

restart - How to start an application in android when mobile is switched ON? - hai have application using background service.its running clearly.if mobile switch off,my service ound service off.when application started background service strated .i want restart service 1 time again when mobile switch off? possible? explain code update public class loginform extends activity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview (r.layout.login); receiver = new connectionreceiver(); registerreceiver(receiver,new intentfilter(connectivitymanager.connectivity_action)); } } private class connectionreceiver extends broadcastreceiver{ private timer mtimer; private timertask mtimertask; @override public void onreceive(context context, intent intent) { networkinfo info = intent.getparcelableextra (connectivitymanager.extra_network_info); if(nul...

jpeg - jpg file difference : from wireshark tcp stream and from a C++ socket -

jpeg - jpg file difference : from wireshark tcp stream and from a C++ socket - i'm trying record jpeg image sent ethernet photographic camera in mjpg stream. image obtain borland c++ application (vspcip) looks identical in notepad++ tcp stream saved application wireshark (except number of characters : 15540 in file, , 15342 in wireshark file, whereas jpeg content-length announced 15342). have 198 non-displayable characters more expected both files have 247 lines. here 2 files : http://demo.ovh.com/fr/a61295d39f963998ba1244da2f55a27d/ which tool utilize (in notepad++ (i tried display in utf8 or ansi : files still match whereas don't have same number of characters) or editor) view non-displayable characters ? std::ofstream default opens file in text mode, means might translate newline characters ( '\n' binary 0x0a) carriage-return/newline sequence ( "\r\n" , binary 0x0d , 0x0a). open output file in binary mode , solve problem: std::ofstr...

Ruby: marshal and unmarshal a variable, not an instance -

Ruby: marshal and unmarshal a variable, not an instance - ok, ruby gurus, hard 1 describe in title, bear me explanation: i'm looking pass string represents variable: not instance, not collection of properties create object, actual variable: handle object. the reason dealing resources can located on filesystem, on network, or in-memory. want create uri handler can handle each of these in consistent manner, can have schemes eg. file:// http:// ftp:// inmemory:// you idea. it's lastly 1 i'm trying figure out: there way string representation of reference object in ruby, , utilize string create new reference? i'm interested in marshalling reference, not object. ideally there taking object#object_id , easy plenty get, , using create new variable elsewhere refers same object. i'm aware fragile , unusual utilize case: works within 1 ruby process long there existing variable maintain object beingness garbage collected, both true inmemory scheme i'm ...

iphone - php can't use SimpleXMLElement(500 server error), and can't echo out data -

iphone - php can't use SimpleXMLElement(500 server error), and can't echo out data - i have 2 problems. (1) wrote iphone app send updated gps info iphone periodically(maybe period=1s). wrote these lines in server's php <html> <body> <?php $xmlfile = file_get_contents("php://input"); echo $xmlfile."<br>"; echo "hello world!"; ?> </body> </html> and in iphone side, implement nsurlconnection delegate method connection: didreceivedata: by printing info out in xcode console test whether xml string has been sent server. , receive next in xcode console successfully, <html><body><openingtagofxml>the xml string sent.</openingtagofxml><br>hello world!</body></html> but, when running app, visit www.mywebsite.com/index.php(i.e. php shown above), only hello world! shown on page! suppose xml code can displayed out on client browser, too. why? becau...

testing - grails: how to test controller with multiple actions and multiple redirects? -

testing - grails: how to test controller with multiple actions and multiple redirects? - i having next problem: want test logout action of controller. before calling login method of controller both redirect same page. getting next error message: groovy.grails.web.servlet.mvc.exceptions.cannotredirectexception: cannot issue redirect(..) here. previous phone call redirect(..) has redirected response. i understand problem, suggested solutions (calling reset() method; calling grailswebutil.bindmockwebrequest()) not work. i doing integration testing , using class controllerunittestcase. any suggestions? dominik ok, found answer(s): i forgot phone call setup super class: @before void setup() { super.setup() you cannot phone call reset() if want maintain session because clears session. phone call instead: redirectargs.clear() cheers, dominik testing grails redirect controller action

iphone - Stretching an UIImage while preserving the corners -

iphone - Stretching an UIImage while preserving the corners - i'm trying stretch navigation arrow image while preserving edges middle stretches , ends fixed. here image i'm trying stretch: the next ios 5 code allows image when resized stretch center portions of image defined uiedgeinsets. [[uiimage imagenamed:@"arrow.png"] resizableimagewithcapinsets:uiedgeinsetsmake(15, 7, 15, 15)]; this results in image looks (if image's frame set 70 pixels wide): this want resizableimagewithcapinsets supported on ios 5 , later. prior ios 5 similar method stretchableimagewithleftcapwidth:topcapheight can specify top , left insets means image has have equal shaped edges. is there ios 4 way of resizing image same ios 5's resizableimagewithcapinsets method, or way of doing this? your assumption here wrong: prior ios 5 similar method stretchableimagewithleftcapwidth:topcapheight can specify top , left insets which means image has have equal...

PHP Cookies are not being set -

PHP Cookies are not being set - i'm having issues setting cookies. problem cookies aren't beingness set, have setup test below see if beingness set never beingness set. i've checked in browser see if beingness set, nil site. i help me create cookies set. i'm not quite sure do. give thanks you. here code: <?php session_start(); setcookie("ridarray","", time()+3600); if (isset($_cookie['ridarray'])) { echo "ridarray set."; } ?> <head> </head> <html> <body> <?php if (isset($_cookie['ridarray'])) { echo "ridarray set."; } else { echo "not set"; } ?> </body> </html> here's problem, setcookie documentation: cookies must deleted same parameters set with. if value argument empty string, or false, , other arguments match previous phone call setcookie, cookie specified name deleted remote client. internally ...

java - Are there any broadcast receivers for my Intent? -

java - Are there any broadcast receivers for my Intent? - i have developed application need utilize pdf-viewer. how can programatically check existence of application able respond intent? this post in android developers blog describes how test intent receiver without trying send intent. as teaser, here's of import part of code. should read blog post more details , finish function can re-create , paste. list<resolveinfo> list = packagemanager.queryintentactivities(intent, packagemanager.match_default_only); homecoming list.size() > 0; java android

ocr - iPhone: How to use Tesseract -

ocr - iPhone: How to use Tesseract - this regarding utilize of tesseract in iphone app. followed steps provided here: http://iphone.olipion.com/cross-compilation/tesseract-ocr now have 2 questions: 1) how utilize in iphone project (which files need included, methods need called, etc.) 2) googled , found i'll have include libtesseract_api.a but got message: file built unsupported file format not architecture beingness linked (i386) please help me understand this. i guess have tried run app in simulator, back upwards i386 architecture. please follow this link create static library. iphone ocr tesseract

Running hadoop mapreduce job from java program -

Running hadoop mapreduce job from java program - i need invoke mapreduce job java code. possible? i was trying run toolrunner.run(new validation(), pathsmovetofinal.toarray(new string[pathsmovetofinal.size()])); from code. when trying run, gives warning: [unable load native-hadoop library platform... using builtin-java classes applicable] and stuck there. could please give me suggestion? give thanks much! java hadoop mapreduce

Satisfying a Unary Prolog predicate -

Satisfying a Unary Prolog predicate - in order write procedure satisfy(p,l) returns list l of terms x such unary predicate p(x) succeeds. have attempted following: satisfy(p,l):- findall(x,call(p(x)),l). am on right track or have gone off? you can using builtin predicate call/2: satisfy(p, l):- findall(x, call(p, x), l). prolog

c# - Nhibernate: Trouble mapping a one-to-many relationship -

c# - Nhibernate: Trouble mapping a one-to-many relationship - i'm very, new nhibernate, , i'm there lot of obvious things i'm overlooking here, i've been searching reply few days , cannot find solution fits specific problem. really, appreciate help. i'll describe problem first, , post code: in object model, have "event" ilist of "organizer". want utilize nhibernate when "session.save(anevent)", info written 3 tables in database: events, organizers, , organizers_events (the bring together table). when utilize below code, next error: invalid column name 'eventid' my code: first, .hbm files: <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="bll" namespace="businesslogic"> <class name="event" table="events"> <id name=...

facebook - No authorization dialog -

facebook - No authorization dialog - how can create facebook app doesn't require users log in/authorize app? possible canvas apps? the conversion in auth dialog quite poor (39%) app, though inquire basic info only. hence question. thanks advice! there no special actions necessary run canvas app in facebook without authentication. set canvas url , secure canvas url in app's settings ( https://developers.facebook.com/apps/<app_id>/summary ) , should work. keep in mind cannot access of useful functionality facebook offers if forego authentication. you'll missing out on: the invite friends dialog creating notifications retrieving user's friend list , information etc. in fact, if you're not leveraging of available functionality facebook provides, there's no sense in creating canvas app. might enjoy benefits of using entire window application , host standalone. facebook authentication canvas authorization

Deployment to tomcat from eclipse via M2eclipse and Maven -

Deployment to tomcat from eclipse via M2eclipse and Maven - i'm using m2e create maven archetype projects (in case simple web app) aim of using maven deploy remote tomcat server. i've added tomcat-maven-plugin pom.xml file, , appears correct. <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>tomcat-maven-plugin</artifactid> <configuration> <server>localserver</server> </configuration> </plugin> and when type "mvn tomcat:deploy" terminal deploys successfully. know settings.xml tomcat settings in order. is possible deploy application straight eclipse without having go through terminal. in other words possible pass command "mvn tomcat:deploy" eclipse maven? cheers you can run maven goal straight eclipse run configurations http://mevenide.codehaus.org/mevenide-ui-eclipse/user-guide/run.html ...

ubuntu - php filemtime returning false other then the php application's root directory -

ubuntu - php filemtime returning false other then the php application's root directory - i developing php application using ubuntu 11.10 in development environment. have directory '/usr/src/app_name/' contains pdf files. need retrieve file names along lastly modification time. the next code snippet: foreach (new directoryiterator('/usr/src/app_name') $file) { if($file->isdot()) continue; print $file->getfilename().' : '.date ("f d y h:i:s.", filemtime($file)).'<br>'; } i file names correctly gives me: php warning: filemtime(): stat failed.... , time 1 january, 1970. but, if alter directory application root directory i.e. foreach (new directoryiterator('/var/www/app_name') $file) { if($file->isdot()) continue; print $file->getfilename().' : '.date ("f d y h:i:s.", filemtime($file)).'<br>'; } i names of php files of app along lastly modificat...

php - PhotoUpload to Facebook from own Website -

php - PhotoUpload to Facebook from own Website - i want build litte php script allows website visitors upload picture. after uploaded gets badge (two images merged). far, good. the next step should be – publishing facebook (upload photo albums). lost. how can this? need facebook developer api? and after upload image should deleted server. big in advance :) none of have programm it, want tipps. view tutorial here: http://www.epixseo.com/index.php/facebook-php-3-3-1-and-javascript-sdk-graph-api-tutorial/ this has need. php facebook facebook-graph-api share

eclipse - How do I query for empty/nonempty fields in a Trac reposoitory with Mylyn? -

eclipse - How do I query for empty/nonempty fields in a Trac reposoitory with Mylyn? - i'm trying create 4 distinct queries trac repository mylyn plugin eclipse 3.7.1. want split tasks 1 of next categories: my problem: non-resolved tickets assigned me somebody elses problem: non-resolved tickets assigned else nobodys problem (yet): non-resolved, unassigned tickets no problem: resolved tickets i have no problem creating first , lastly queries, selecting appropriate status and, in first case, assignee. 2 in middle causing problems: somebody elses problem: i'd here, tickets not in status "closed" , assigned not me. tried next requirements: all statuses except "closed" owner not "[my user id]" but unassigned tickets well. i'd lke tickets fulfills status != closed && owner != me && owner != '' skips lastly requirement. nobodys problem (yet): here i'd tickets without assignee, if leave field empty ...

iphone - Generating a unique ID in Objective C -

iphone - Generating a unique ID in Objective C - how unique ids in objective c. want create unique id session & generate id each time server phone call happens. each time id should unique. i tried using cfuuid class gives huge unique id (4fe9d00c-531e-45e8-b10e-11968acc36e9). want unique id of smaller size. any clue? a guid (by shear combinations) generates unique id. if it's less characters want 1 alternative base64encode guid. allows 64 possibilities per char instead of 16 (0-9, a-f) this: 540c2d5f-a9ab-4414-bd36-9999f5388773 becomes: xy0mvkupfes9npmz9tihcw for example: (c# though) http://www.singular.co.nz/blog/archive/2007/12/20/shortguid-a-shorter-and-url-friendly-guid-in-c-sharp.aspx here's post on objective-c encode/decode (look @ mike ho post): any base64 library on iphone-sdk? iphone objective-c ios cocoa-touch

php - How to create soapvar object for xsd:anyType -

php - How to create soapvar object for xsd:anyType - can please explain how assign type anytype paramater using soapvar in php? <complextype name="entry"> <sequence> <element name="key" nillable="true" type="xsd:anytype" minoccurs="0" /> <element name="value" nillable="true" type="xsd:anytype" minoccurs="0" /> </sequence> </complextype> for example: $arr=array('key'=>new soapvar('email_address',soap_enc_object,'xsd:anytype'),'value'=>new soapvar('xxxx@gmail.com',soap_enc_object,'xsd:anytype')); when passing above array userprofile in register user along soapclient in yodlee sdk homecoming "unknown" exception. hai found out issue based on namespace url problem , used this $arr=array('key'=>new soa...

facebook - How to get the hash of the avatar via XMPP for offline buddies? -

facebook - How to get the hash of the avatar via XMPP for offline buddies? - we need hash of avatar of buddy doesn't appear in online status when logged in don't presence message hash of buddy's avatar doesn't appear online. of course, can't inquire vcard-temp buddies every time performance reasons. is there ways hash of avatar buddies doesn't appear online when user logged in via pure xmpp? cache lastly time saw them online? without changing of sending clients set avatar hash in pep should be, reply "no". facebook hash xmpp photo offline

.net - Sentence case or proper case in a TextBox -

.net - Sentence case or proper case in a TextBox - i want textbox create text come in sentence case(propercase) .. don't want write code in event lost focus or keypress . just default, whenever user enters or types in textbox first letter of every word should automatically converted uppercase . i don't know of way in winforms without putting code in event. charactercasing property of textbox allows forcefulness characters entered upper or lower case, not proper casing. incidentally, it's single line of code in event: textbox1.text = strconv(textbox1.text, vbstrconv.propercase) a more generic handler doing across multiple textboxes involves attaching number of events same code: 'attach multiple events handler private sub makepropercase(sender object, e eventargs) handles _ textbox1.lostfocus, textbox2.lostfocus, textbox3.lostfocus 'get caller of method , cast generic textbox dim currenttextbox textbox = directcast(sender, tex...

Jquery Globalization reverse algorithm -

Jquery Globalization reverse algorithm - jquery globalization works great. you can format currency doing this: $("#currencyinput").val(globalize.format(100000.25, "c")); is possible reverse formatting able edit value back? (keeping civilization format) $("#currencyinput").val(globalize.reverseformat("$100,000.25", "c"));// 100000.25 the globalize plugin provides parseint() , parsefloat() methods can use: $("#currencyinput").val(globalize.parsefloat("$100,000.25", 10, "c")); jquery jquery-globalization

iphone - Is it possible to get paypal credentials while using paypal ios library? -

iphone - Is it possible to get paypal credentials while using paypal ios library? - i using paypal ios library transactions. haven't found method there paypal credentials can save them in nsuserdefaults, user need not login 1 time again , agin or there way maintain session same? by saving password 3rd party software . possible medium misuse these features. companies high level of trust such google, apple, microsoft , others allowed that. not individual developers us iphone paypal credentials

java - Is there an efficient way to "crop" a file (remove x number of bytes from tail)? -

java - Is there an efficient way to "crop" a file (remove x number of bytes from tail)? - good afternoon all. wondering how efficiently remove x number of bytes end of file? (inverse operation of append) reading bytes original file , writing them new file doesn't seem right (fast) if file huge one. is there way perchance set file length? or rather, what's best way "crop" file? randomaccessfile.setlength(long newlength) java file io

javascript - jQuery: nth-child Selector throwing "undefined" and crashing site -

javascript - jQuery: nth-child Selector throwing "undefined" and crashing site - $('#mapid').val($(".firstbox ul li:nth-child(" + mapi + ")").class()); returning undefined error loops indefinitely... i tried doing: $('#mapid').val($(".firstbox ul li:nth-child(2)").class()); , same error occurs. the elements undoubtedly exist, , script positioned @ bottom of page. no, not utilize wordpress (i saw mutual theme regarding error). here html: <div id="map-box" class="firstbox"> <ul> <li class="14" id="thelimit"> <div class="left"> <h1>the limit</h1> <span class="inf">a branching map. mix-n match of alot of themes 1 map. <p>recommended players: 3<br /> author: <a href="http:/...

mysql - Error Code: 1005. Can't create table '...' (errno: 150) -

mysql - Error Code: 1005. Can't create table '...' (errno: 150) - i searched solution problem on net , checked questions no solution worked case. i want create foreign key table sira_no metal_kod. alter table sira_no add together constraint metal_kodu foreign key(metal_kodu) references metal_kod(metal_kodu) on delete set null on update set null ; this script returns: error code: 1005. can't create table 'ebs.#sql-f48_1a3' (errno: 150) i tried adding index referenced table: create index metal_kodu_index on metal_kod (metal_kodu); i checked metal_kodu on both tables (charset , collation). couldn't find solution problem. have idea? in advance. edit: here metal_kod table: metal_kodu varchar(4) no pri durum bit(1) no metal_ismi varchar(30) no ayar_yogunluk smallint(6) yes 100 error code: 1005 -- there wrong primary key reference in code usually it's due refer...

java - HttpServletResponse sendRedirect permanent -

java - HttpServletResponse sendRedirect permanent - this redirect request temporary 302 http status code: httpservletresponse response; response.sendredirect("http://somewhere"); but possible redirect permanent 301 http status code? you need set response status , location header manually. response.setstatus(httpservletresponse.sc_moved_permanently); response.setheader("location", "http://somewhere/"); setting status before sendredirect() won't work sendredirect() overridde sc_found afterwards. java servlets

JQuery AutoComplete multiple instances with multiple auxiliary fields to fill in -

JQuery AutoComplete multiple instances with multiple auxiliary fields to fill in - i have jquery autocompletion plug installed , working on 4 input text boxes, search1, search2, etc.. each search box there 2 other boxes filled in when search results selected, location1, webaddress1, location2, web address2, etc....to 4. can first set filled in doing $( "#location1" ).val(ui.item.location); how can create more generic works in each case. here's have far (it's asp.net vb):- $(function() { $( ".resortnamesearch" ).autocomplete({ source: function( request, response ) { $.ajax({ url: '/remotecall/default.aspx?calltype=resortsearch&term=' + request.term, datatype: 'json', success: function( info ) { response( $.map( data, function( item ) { homecoming { ...

php - real time validation of username and email address using ajax post -

php - real time validation of username and email address using ajax post - i set simple form , utilize ajax+jquery check valid username (doesn't exist in db) , email address (valid format , doesn't exist in db) follows <body> <div> <h5> sign </h5> <hr /> <div> username:<input type="text" size="32" name="membername" id="username"><div id="usernamestatus"></div><br /> email:<input type="text" size="32" name="memberemail" id="memberemail"><div id="emailstatus"></div><br/> password:<input type="password" size="32" name="memberpwd"><br /> <button id="signup" disabled="true">sign up</button> </div> <script> function isemailvalidandnew() { var pattern = new regexp(/^((...

properties - Change application.conf runtime? -

properties - Change application.conf runtime? - i want set database connection @ run time play project. know can set property run time next code: @onapplicationstart public class bootstrap extends job { @override public void dojob() { // set values in properties file play.configuration.setproperty("db.driver", dbdriver); play.configuration.setproperty("db.url", dburl); play.configuration.setproperty("db.user", dbusername); play.configuration.setproperty("db.pass", dbpassword); } } but when executing code above file not changed, think in memory. how can set database properties , forcefulness play! utilize properties in order connect right database onapplicationstart? thanks! update 2012-01-29 solution possible via plugin. in plugin have override onconfigurationread() , apply properties configuration file @ moment. seek post code have time this. by time alter properties, db plugin in...

Application Signature for 2 days in android -

Application Signature for 2 days in android - i wanted add together application signature application, valid 1 or 2 days. did plenty googling did not find plenty info. please allow me know how can create application expired in 2 days.. simply add together alarm of calculating time equals 2 days @ first start of app.when alarm gets expired callback , set global flag false.code in app if flag false, display lock screen android android-layout

sql - mysql SELECT IF statement with OR -

sql - mysql SELECT IF statement with OR - the next works - returns y when chargeback equal 1 else defaults n if(fd.charge_back = 1, 'y', 'n') charge_back however cannot seem 1 working? syntax valid if(compliment = ('set' or 'y' or 1), 'y', 'n') customer_compliment presumably work: if(compliment = 'set' or compliment = 'y' or compliment = 1, 'y', 'n') customer_compliment mysql sql select if-statement

Is there a way to find out which PHP pages are taking more resources in a linux server? -

Is there a way to find out which PHP pages are taking more resources in a linux server? - my linux server websites maintain going downwards 1 time again , 1 time again ssh, ftp, etc alive. had @ server through ssh , used top command lists processes. shows when php pages executed, mysql cpu usage reaches 100%. there command/log can used find out php pages taking much of mysql usage? give thanks you... if mysql getting stuck @ 100% you've got badly tuned mysql queries within 1 of php applications. time clock in mysql daemon , won't show in %d value. indexes out of date. if have access d/b through @ command prompt through ssh seek doing analyze table , optimize table on big tables. @ "the slow query log" in mysql documentation. unfortunately fixing need application internals. php linux apache

logging - log4j Logger messages are not displayed on JBoss webapp -

logging - log4j Logger messages are not displayed on JBoss webapp - i utilize jboss 6 , static logger logger = logger.getlogger(foo.class); displays nothing tried adding log4 project, removing it, placing log4j file on main/resources folder, placing no log4j file , no results. only system.out seems work, doesn't provide info see i see hibernate log working not mine what missing? turns out logging work. hibernate logging controlled jboss logging settings. my logging began work placed log4j on right next classes folder, , placing log4j jar project logging jboss log4j jboss6.x

jquery - Will setTimeOut function in recursive function cause stack overflow? -

jquery - Will setTimeOut function in recursive function cause stack overflow? - does next function cause stack overthrow eventually? var isfinish= false; function foo(){ // ajax phone call //in ajax success success: function(response){ settimeout(function(){ if (!isfinish) { foo(); } },1000); } } it shouldn't. settimeout asynchronous (presumably ajax request), foo able exit immediately. if jquery has memory leaks in $.ajax , that's issue. jquery

Create a TTF in Objective-C -

Create a TTF in Objective-C - is there way create true type font file programmatically in objective-c ? found reference, http://developer.apple.com/fonts/ttrefman/index.html, doesn't seem there built in methods accomplish this. suggestions? guidance? no, there isn't procedural font creation code. your best bet start fontforge: http://fontforge.sourceforge.net/ objective-c c cocoa-touch true-type-fonts

sql server 2008 - How to most efficiently join two tables? -

sql server 2008 - How to most efficiently join two tables? - i have 2 tables store amounts , adjustments lineitemtypes of specific reportingperiod. looking efficient way query amount , adjustment each reportingperiod/lineitemtype combination exists across 2 tables. schemas nowadays below: @reportingperiodcomposition (1030 rows - table variable) src int, groupreportingperiodid int, reportingperiodid int, clientid int, perioddate date, ... primary key clustered (src, reportingperiodid) amount (~30,000,000 rows) reportingperiodid int, lineitemtypeid smallint, amount decimal, primary key clustered (reportingperiodid, lineitemtypeid) adjustment (~180,000 rows) reportingperiodid int, lineitemtypeid smallint, amount decimal, comment nvarchar(2500), ... adjustmentid int, primary key nonclustered (adjustmentid), unique key clustered (reportingperiodid, lineitemtypeid) i select amounts , adjustments unique reportingperiodid/lineitemtypeid yielding next result set: ...