Posts

mysql - sql like search character -

mysql - sql like search character - hello wanted search after 5 character (yyyy-mm-dd) 2000-02-01 2001-01-01 2001-01-05 2001-03-03 i wanted mm value select * day , employee employee.id = day.employee , employee = "$_id" , day.leaveday "%$month%"; the problem if utilize % % (wildcard) 20001 - 03 - 03 , 2000-02-01, show how value mm? any ideas? in advance help, , i'm sorry if has been asked before i'm taking leaveday date, datetime, or timestamp column. if not first create 1 since you're storing dates. prevent invalid dates such 20001 showing up. utilize mysql extract function run this select * day , employee employee.id = day.employee , employee = "$_id" , extract(month day.leaveday)=3 mysql

javascript - How can i load js files in specific pages using jQueryMobile? -

javascript - How can i load js files in specific pages using jQueryMobile? - it's known fact jquerymobile loads pages ajax , not including in dom header content in every pages. i need load custom js file in pages, how can achive this? until have placed .js files in body, there problems code there it's not workaround. until can find solution utilize rel="external" workaround, need find reply question. you utilize javascript dynamically add together js file dom. this demoed here: http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml javascript javascript-events jquery-mobile

iphone - Duplicate protocol definition -

iphone - Duplicate protocol definition - getting warning message duplicate protocol definition of modalviewdelegate ignored defined protocol in modalviewcontroller.h file @protocol modalviewdelegate; -(void)dismissview:(id)sender; @interface modalviewcontroller : uiviewcontroller { id<modalviewdelegate>delegate; } @property (nonatomic, assign) id<modalviewdelegate>delegate; @end in modalviewcontroller.m file synthesize delegate in mainviewcontroller.h file @protocol modalviewdelegate -(void)diddismissmodal:(id)sender; @end @interface mainviewcontrollerontroller : uiviewcontroller <modalviewdelegate> -(void)showmodal:(id)sender; in mainviewcontroller.m not synthesize delegate am supposed delegate in mainviewcontroller.m file too? why i'm getting warning message of duplicate protocol definition? try remove @protocol modalviewdelegate; in modalviewcontroller.h , import mainviewcontroller.h in file. iphone ios4

What's the best way to standardize a development environment for a small team? -

What's the best way to standardize a development environment for a small team? - at work, (2 other developers , me) develop of our code on single internal machine (via network file sharing). machine runs our development environment (nginx, apache, php, mysql, memcache, gearman, etc), unruly installed on non linux environment. we're getting few more team members (one remote) , looking improve way manage mutual development environment (our developers utilize windows, mac, , linux). how team create mutual development platform? few things i'm thinking about: same setup (a single machine write code), create external (maybe spin cloud server). force utilize linux , replicate environment on thier development machines. create virtual machine replicates environment , develop within vm. i'm curious others doing... thoughts on best practices? in experience, i've used virtual machines (vmware) , has worked pretty in creating same environment big tea...

maven release plugin with parameterized version -

maven release plugin with parameterized version - is possible utilize maven release plugin multi-module project, of inter-module dependencies specified using parameter parent pom? when seek phone call release:prepare next error: [error] failed execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on project forest-parent: version not updated: ${some.version} -> [help 1] here plugin definition: <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-release-plugin</artifactid> <version>2.1</version> <configuration> <goals>deploy</goals> <tagbase>https://svn.domain.com/svn/project/tags</tagbase> <autoversionsubmodules>true</autoversionsubmodules> <tagnameformat>@{project.version}</tagnameforma...

c# - Unlock section in applicationHost.config programmatically -

c# - Unlock section in applicationHost.config programmatically - i have checked servermanagaer class , gives lot of functionality work iis, contains methods update values in applicationhost.config file, can't fine way unlock sections there. for illustration purpose appcmd.exe unlock config command used. need same programmatically. as said can run appcmd process. hint if don't console popup can redirect output. here code msdn // start kid process. process p = new process(); // redirect output stream of kid process. p.startinfo.useshellexecute = false; p.startinfo.redirectstandardoutput = true; p.startinfo.filename = "write500lines.exe"; p.start(); // not wait kid process exit before // reading end of redirected stream. // p.waitforexit(); // read output stream first , wait. string output = p.standardoutput.readtoend(); p.waitforexit(); more details see here c# .net iis

How to use OpenGL orthographic projection with the depth buffer? -

How to use OpenGL orthographic projection with the depth buffer? - i've rendered 3d scene using glfrustum() perspective mode. have 2d object place on 3d scene deed label particular 3d object. have calculated 2d position of 3d object using using gluproject() @ position place 2d label object. 2d label object rendered using glortho() orthographic mode. works , 2d label object hovers on 3d object. now, want give 2d object z value can hidden behind other 3d objects in scene using depth buffer. have given 2d object z value know should hidden depth buffer, when render object visible. so question is, why 2d object still visible , not hidden? i did read somewhere orthographic , perspective projections store incompatible depth buffer values. true, , if how convert between them? i don't want transformed, instead want appear flat 2d label faces photographic camera , remains same size on screen @ times. however, if hidden behind want appear hidden. first, should...