Posts

sql - Include a string in Select Query -

i'm wondering can query below? select america, england, distinct (country) tb_country which (my intention to) display : america england (list of distinct country field in tb_country) so point display (for example) america , england if distinct country field returns nothing. need query list select dropdown, , give sticky values user can pick, while allowing add new country wish. it goes without saying, should 1 row in tb_country has value of america or england, not show duplicate in query result. if tb_country has list of values : germany england holland the query output : america england germany holland you need use union: select 'america' country union select 'england' country union select distinct(c.country) country tb_country c union remove duplicates; union not (but faster it). the data type must match each ordinal position in select clause. meaning, if first column in first query int, first column unioned sta...

View detailed warnings in MySQL Workbench? -

how view detailed warnings in mysql workbench? when execute command, see brief summary of /how many/ warnings there were. i'd see detailed report of actual warnings contained. thanks. mysql has great documentation showing warnings http://dev.mysql.com/doc/refman/5.0/en/show-warnings.html

c# - How do I start a program with arguments when debugging? -

i want debug program in visual studio 2008. problem exits if doesn't arguments. main method: if (args == null || args.length != 2 || args[0].toupper().trim() != "rm") { console.writeline("rm must executed rsm."); console.writeline("press key exit program..."); console.read(); environment.exit(-1); } i don't want comment out , and in when compiling. how can start program arguments when debugging? set startup project. go project-><projectname> properties . click on debug tab, , fill in arguments in textbox called command line arguments .

java - Setting a custom browser as default browser in blackberry -

i have made own browser - trying set own browser default browser when user clicks on blackberry default browser, brower open. is possible this? thanks in advance unfortunately, can't replace system browser own browser. and polling in background other answer says bad idea several reasons, including needless use of battery charge.

generating google api key in android -

i developing android application involves google map activity.i have done coding part.now want generate google api key system.can in regard.thanks in advance tushar sahni everything need know explained in documentation . copying there: run command generate certificate: $ keytool -list -alias alias_name -keystore my-release-key.keystore (rename alias_name , my-release-key.keystore meaningful) the result above command this: certificate fingerprint (md5): 94:1e:43:49:87:73:bb:e6:a6:88:d7:20:f1:8e:b5:98 then go http://code.google. com/android/maps-api-signup.html , follow instructions register certificate.

ExtJS - Custom Column Renderer on TreeGrid isn't being fired -

i have extjs treegrid , i'm trying add custom renderer particular column. unfortunately it's not working - event isn't being fired , no warnings given off. couldn't find api treegrid either. has else experienced this? here's code: var tree = new ext.ux.tree.treegrid({ title: 'my tree grid', loader: treeloader, columns:[{ header: 'title', dataindex: 'title', width: 500 },{ header: 'testing', width: 100, dataindex: 'testing', renderer: function(value) { console.log('test'); }, align: 'center' }] }); thanks! there no api treegrid because it's user extension (ext.ux). you'll have take @ source code more information. if don't have source in project, go following page: http://dev.sencha.com/deploy/dev/examples/treegr...

java - How to detect presence and location of JVM on Windows? -

i'm trying detect if there jvm installed , located can run java.exe . all i've managed find hkcu\software\javasoft\java runtime environment\<ver> . safe assume installed in %programfiles%\java\jre<ver> ? i'm trying in c#, assume answer pretty language agnostic, answer appreciated. edit: ok silly me, found how detect whether java runtime installed or not on computer using c# pointed me @ hklm\software\javasoft\java runtime environment\currentversion works hklm\software\javasoft\java runtime environment\<ver>\javahome . managed find these instead underneath hklm\software\wow6432node\javasoft\java runtime environment . there way detect of these should checking without trying sniff @ cpu type? i'm going throw hat in ring code i've ended using: string javadirectory = null; // native registry key - 32b on 32b or 64b on 64b // fall on 32b java on win64 if available registrykey javakey = registry.localmachine.opensubkey("s...