Posts

bower 1.0: what's the deal with .bower.json? -

i upgraded bower 1.0, did bower install , found bunch of new .bower.json files (note leading period). i found no references .bower.json on changelog or in docs. supposed .gitignore these? original bower.json without dot plus metadata. you can't delete them because bower uses metadata. decided leave original bower.json file untouched , create .bower.json 1 instead.

java - sql command not properly ended (where is my mistakes) -

i hope receive answer time i wrote below code don't know mistake seem correct think this code should insert more million records oracle xe wrote single insert statement when execute preparedstatement 1 one it's run took 6 hours !!!!!! because forced use thread.sleep() package tokenizing; import java.sql.*; import java.util.stringtokenizer; public class tokenextraction2 { public static void main(string[] args) throws exception { string mytext[]=new string[2276]; jdbc db=new jdbc(); string st1=null; int i=0; int j=0; string tokens[][]=new string [3000000][2]; st1="select ntext newstext "; resultset result=db.select(st1); while(result.next()) { mytext[i]=result.getstring("ntext"); ++i; } db.closedb(); i=0; stringbuilder st= new stringbuilder("insert tokens5(token,tokenlength) values"); w...

c# - Special letters check -

how can check if textbox contains numbers, letters, , have special letters "õ, ä, ö, ü"? i use code check numbers , letters: regex.ismatch(value, "^[a-z0-9]+$", regexoptions.ignorecase) does how can strip non-ascii characters string? (in c#) contain pointers? you include unicode using \uxxxx syntax within regex additional letters want strip test for. regex.ismatch(value, "^[a-z0-9\u00c0-\u00f6]+$", regexoptions.ignorecase)

user - Easy linux permissions inquiry -

i want give user full rwx permission on directory (recursively), including files or subdirectories may created in future. not want make them owner of directory. syntax should use? - debbie you've got 2 choices: a) user in group owns directory tree use group permission: chmod -r g+rwx thedir b) user not in group owns directory tree use "everyone else" permission flags: chmod -r o+rwx thedir

sql server - SQL query one to many relationship join without duplicates -

i'm running queries in sql server 2008.. have sales table , payments table.. sale has multiple methods of payment (part giftcard + part cash or part credit + part cash etc..) want list sales , payments each sale in table. if left join on sales.saleid = payments.saleid duplicate sales rows when there more 1 matching payment rows.. so have been doing getting sales , count of how many matching payment rows there (select count(*) payments payments.saleid = sales.saleid) numofpayments . in php script check number of payments , if > 1 run query payment details. the output trying this ----------------------------------------------------- | saleid | saledate | amount | payments | ----------------------------------------------------- | 123 | 2013-07-23 | $ 19.99 | cash: $ 19.99 | | 124 | 2013-07-23 | $ 7.53 | cash: $ 7.53 | | 125 | 2013-07-23 | $174.30 | credit: $124.30 | | | | | giftcard: $ 50.00 | | 126 | 201...

css3 - Javascript - getting element box-shadow details accurately -

i have come bit unstuck.. well near enough every css property has seperate parts ie. margin-left border-top-color transition-duration however, have searched around bit , seem's me not case box-shadow . example have 4 <input> 's, h spread & v spread & blur & color . , wan't change elements box shadow on change of these fields. after finding out there isn't specifics on box shadow, decided best way split box-shadow array using this element.style.boxshadow.split(' '); however result not come in right order shown in fiddle <div id="test" style="box-shadow: 1px 1px 3px #999;"> welcome </div> console.log( element.style.boxshadow.split(' ') ); is resulting in output ["rgb(153,", "153,", "153)", "1px", "1px", "3px"] the color different , order has changed doesn't sound reliable me. is there way can acuratelly get/set dif...

gridview - DevExpress ComboBoxEdit in Grid does not drop down -

i have devexpress grid control dynamically loaded datatable . columns loaded datatable except 1 in want use comboboxedit selecting 3 different values. all rows show correctly, , comboxbox shows in grid each row. however, can't drop down. no matter there seems no values in dropdown, or not drop down other reason. when add value column shows in grid, still no response when clicking dropdown-button on combobox. the user should able select 1 of 3 values, not type or add values. here's call add rows gridview: f1grid.datasource = accounts; f1grid.refreshdatasource(); f1gridview.refreshdata(); this code i'm using initialize repository combobox: repositoryitemcombobox repositoryitembetvillk = new repositoryitemcombobox(); repositoryitembetvillk.items.clear(); repositoryitembetvillk.items.addrange(new string[] { "12", "24", "36"}); repositoryitembetvillk.showdropdown = showdropdown.singleclick; repositoryitembetvillk.allowdropdownwhenr...