Posts

iphone - sqlite insert putting values into wrong fields -

i'm trying insert this - (void)insertblogstory:(nsstring *)storytitle link:(nsstring *)link storydescription:(nsstring *)storydescription storyhtml:(nsstring *)storyhtml pubdate:(nsstring *)pubdate blog:(nsstring *)blog { nslog(@"storytitle %@",storytitle); nslog(@"link %@",link); nslog(@"storydescription %@",storydescription); nslog(@"storyhtml %@",storyhtml); nslog(@"pubdate %@",pubdate); nslog(@"blog %@",blog); if(addstmt == nil) { const char *sql = "insert contents (storytitle, link, storydescription, storyhtml, pubdate, blog, read) values (?, ?, ?, ?, ?, ?, ?)"; if(sqlite3_prepare_v2(_database, sql, -1, &addstmt, null) != sqlite_ok) nsassert1(0, @"error while creating add statement. '%s'", sqlite3_errmsg(_database)); } sqlite3_bind_text(addstmt, 1, [storytitle utf8string], -1, sqlite_transient); sqlite3_...

On specific key press event in chrome extension -

i want make google chrome extension, in there simple index.html . on page when i'll press alt + ctrl + a mouse focus should on first text box. i'm having difficulties how implement code keyboard shortcuts. you might want accesskey syntax: http://www.cs.tut.fi/~jkorpela/forms/accesskey.html#ex hth :) edit : right, page example wasn't here's reference implementation. basically, want add accesskey="f" c-a-f call attention input field. slightly modified example wikipedia's basic search form: <form action="http://en.wikipedia.org/w/index.php" id="searchform"> <div id="simplesearch"> <input type="text" name="search" value="example text" title="search wikipedia [f]" accesskey="f" id="searchinput" /> <button type="submit" name="button" title="search wikipedia text" id="searchbutton...

javascript - Date formatting -

using following: var date = new date(parseint(jsondate.substr(6))); i get: mon feb 22 1993 00:00:00 gmt+0000 (gmt standard time) how format too 22-02-1993 ? you use getfullyear , getmonth (note values start 0 ), , getdate functions on date instance, assemble string. (those links specification, can hard read; mdc bit better.) or use library datejs (although hasn't been maintained in quite time) or joidegn mentions , moment.js .

telerik - Layout Problems with JavaScript / Kendo UI -

i'm working on project requires kendo ui. working q1'12 beta. appliction must have footer visible. content of application in remaining space above footer. please note not want footer on top of content. want 2 distinct sections (content , footer). for reason, when use kendo grid larger data set, grid grows larger space alotted it. while footer need be, grid appears grow behind footer. because of this, users cannot interact scroll bar. have included code below. how fix this? keep spinning wheels on , seems easy/common problem. can't find solution. <body> <div id="mylayout" class="k-content" style="background-color:gray; height:100%;"> <div id="contentarea" style="background-color:silver;"> <div id="mylist"></div> <script type="text/javascript"> var mydatasource = new kendo.data.datasource({ type: "json", pag...

ASP.NET Web Api metadata exchange? -

does knows if there way expose new asp.net web api rest interface metadata wcf (/help)? <standardendpoints> <webhttpendpoint> <standardendpoint name="" helpenabled="true" automaticformatselectionenabled="true" /> </webhttpendpoint> </standardendpoints> help page generation not supported in first drop of asp.net web api (in asp.net mvc 4 beta) planned supported in later versions. generation of test client website planned supported.

java - missing feature in lucene 4.0 snapshot -

i'm trying use lucene 4.0 snapshot version, standardanalyzer missing in version :(. knows on how replace this? in sample code given in lucene summary the standardanalyzer used, no found.. thanks in advance. looks standardanalyzer moved under org.apache.lucene.modules.analysis.standard.* can find standardanalyzer in svn trunk the reason here

java - Aspects are not executed -

i'm trying test simple aspect. app compiles , runs fine, not aspect executed. or @ least, not output aspect should produce. (my aim write exception logger ex occures in app. first test aspect should run...) maybe has more experience in aspects see's i'm doing wrong? package business; public interface customer { void addcustomer(); } import org.springframework.stereotype.component; @component public class customerimpl implements customer { public void addcustomer() { system.out.println("addcustomer() running "); } } @requestscoped @named //this backing bean jsf page public class service { @inject customer cust; add() { system.out.println("service running "); cust.addcustomer(); } } @aspect public class aspectcomp { @before("within(business..*)") public void out() { system.out.println("system out works!!"); } } spring: <beans xmlns="http...