Posts

java - How can get numbers between brackets ([ ]) in a string -

i have string it: string msg = "[05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16]"; and need numbers between brakets in array. can me? pseudo code: string replace '[' '' string replace ']' '' string split @ ' '

java - Gradle and Maven compile my project but I am getting NoClassFoundError -

i trying compile project uses gradle , maven. project use library on local maven repository. library referenced in gradle , maven: gradle: dependencies{ compile 'cf.charly1811.java.utils:mimetype:1.0' } maven: <!-- dependencies --> <dependencies> <dependency> <groupid>cf.charly1811.java.utils</groupid> <artifactid>mimetype</artifactid> <version>1.0</version> </dependency> </dependencies> when try compile project using mvn clean package or gradle clean jar success. error arises when mimetype class called: exception in thread "thread-4" java.lang.noclassdeffounderror: cf/charly1811/java/utils/mimetype @ cf.charly1811.java.web.requesthandlerthread.process(requesthandlerthread.java:120) @ cf.charly1811.java.web.requesthandlerthread.handlerequest(requesthandlerthread.java:85) @ cf.charly1811.java.web.requesthandlerthread.ru...

powershell - What is conceptually wrong with get-date|Write-Host($_) -

i'm trying understand powershell, find somethings not intuitive. understand of in pipeline objects passed, instead of traditionally text. , $_ refers current object in pipeline. then, why following not working: get-date|write-host "$_" the errormessage is: write-host : input object cannot bound parameters command either because command not take pipeline input or input , properties not matc h of parameters take pipeline input. @ line:1 char:10 + get-date|write-host $_ + ~~~~~~~~~~~~~ + categoryinfo : invalidargument: (10-9-2014 15:17:00:psobject) [write-host], parameterbindingexception + fullyqualifiederrorid : inputobjectnotbound,microsoft.powershell.commands.writehostcommand $_ current single item in pipeline. write each item in pipeline write get-data | foreach { write-host $_ } or in short form get-data |% { write-host $_ } conceptually, foreach cmdlet receives function parameter, pipeline input , applies function o...

Does Excel VBA object model allows for access to keyboard shortcut to VBA IDE menu items? -

Image
does excel vba object model allows access keyboard shortcuts vba ide menu items ? (i create additional item in menu , connect choosen shortcut) for example code below returns "c&lear" means can access "clear" item typing "l" when "edit" group in vbe ide active, can access "clear" typing "delete" button alone : debug.print application.vbe.commandbars(1).controls(2).controls(6).caption is there way find pragrammaticaly direct shortcut item in ide menu ("delete" in case above) ? add item vba ide menu new custom shortcut ? debug.print application.vbe.commandbars(1).controls(3).controls(6).caption returns "&immediate window" access immediate window direct shortcut "ctrl+g" is there way find pragrammaticaly direct shortcut item in ide menu ("delete" in case above) yes, there is. try this debug.print application.vbe.commandbars(1).controls(2).controls(6).s...

sql server 2008 - MSSQL store procedure is executing twice in PHP PDO -

i have block of code getting executed twice when post hits payment gateway.any welcome on issue. have checked code there no 404 resuest script. $stmt = $dbadapter->prepare('exec myprocedure ?,?,?,?,?,?,?,?'); $stmt->bindparam(1,$id, pdo::param_int); $stmt->bindparam(2,$transaction, pdo::param_str); $stmt->bindparam(3,$person_id, pdo::param_str); $stmt->bindparam(4,$amount); $stmt->bindparam(5,$orderid, pdo::param_str); $stmt->bindparam(6,$bankclientid, pdo::param_str); $stmt->bindparam(7,$transaction_time, pdo::param_str); $stmt->bindparam(8,$status, pdo::param_int); $id = $stmt->execute();

jquery - How can i run php script when page is fully loaded -

i fetching tweets , showing them slider . when open page shows me tweets 1 above create mess. , after page loaded shows me tweets wanted . there way show tweets or run php code when page loaded ? it sounds tweets output via php, , styled slider javascript, in between data being output , javascript loading, see unstyled data. a simple solution give containing element style of display:none, show via javascript when page has loaded: css #tweet-holder{ display:none; } php / html <div id="tweet-holder"> //all tweets go here </div> js $(function(){ $('#tweet-holder').show(); });

java - Unable to login to AD account with given password -

we have set accounts users temporary passwords. user receives password through email , suppose able log in it. have since fixed our previous problem of our passwords not meeting ad requirements , using defaults testing. here error receive in console. please let me know if there else can supplied. thanks: console 2014-09-10 13:25:32,685 [ajp-0.0.0.0-8009-4] error com.util.adutil - error building user attributes java.lang.numberformatexception: input string: "exampletest" @ java.lang.numberformatexception.forinputstring(numberformatexception.java:65) @ java.lang.integer.parseint(integer.java:492) @ java.lang.integer.parseint(integer.java:527) @ com.example.publicwebsite.example.account.util.adutil.buildaccount(adutil.java:742) @ com.example.publicwebsite.example.account.util.adutil.searchforusers(adutil.java:841) @ com.example.publicwebsite.example.account.util.accountutil.searchforusers(accountutil.java:157) @ org.apache.jsp.public_.exa...