Posts

Showing posts from April, 2010

multithreading - Creating a new object of a class with a new name on clicking a button in java swing -

i want start new thread new object name , of specific class whenever click button in java swing application. example thread t1 = new myclass(); t1.start(); thread t2 = new myclass(); t2.start(); thread t3 = new myclass(); t3.start(); ... so on... how can achieve this? i think should use arraylist<e> this. first lets create one: arraylist<thread> threads = new arraylist<> (); now have empty arraylist of threads. when want add new thread, use add method. thread t = new myclass(); threads.add(t); //use array list declared above ^^^^ t.start(); and if want thread, use get method. example, thread thefirstthread = threads.get(0); you should declare array list in class, not in method new array list not created every time call method. i know want create thread different name. might possible reflection (or not) think arraylist more suitable. edit: as madprogrammer has suggested, hashmap works well. let me show how implement map. f...

php - running using xampp error on ubuntu : Fatal error: Call to a member function rowCount() on a non-object -

i'm testing program running using xampp , windows 7 , when i'm upload server using ubuntu ( mysql , php , apache using apt-get ) it's getting error fatal error: call member function rowcount() on non-object in /var/www/siarsip/class/user.php on line 56 here code snipped : function getalluser(){ $query=$this->db1->query("select a.user_id,a.username,a.password,a.nip,a.role,b.category,a.input_date,a.last_update users right join user_categories b on a.role=b.usercat_id order role"); $jml_data=$query->rowcount(); if($jml_data>=1){ $hasil=$query->fetchall(); //line 56 return $hasil; }else{ return $jml_data; } } i've tried change line 56 : if(!empty($query) , $jml_data > 0) { still not working. update : using @cjriii code, i've update line 56 using : if(is_object($query)) { { code here } } now there's no error, i've tried login produces same error "fa...

ruby - Getting error :ActiveRecord_Associations_CollectionProxy -

club model there store student class information. i have following associations: class club < activerecord::base has_many :mcqs end class mcq < activerecord::base #validation validates :topic, presence: true,length: { minimum: 5 } validates :club, presence: true #association belongs_to :user belongs_to :club end and here club controller- class clubscontroller < applicationcontroller def student_show_index @club = current_user.clubs end def student_show_topic @club = current_user.clubs @mcq = @club.mcqs end end i want print mcq of particular club student. here view show topic of mcq(student_show_topic). <%= render 'assessment/type' %> <h1>list of topics</h1> <div class="main-cont"> <div class="stream-cont"> <div class="stream-cont"> <% @mcq.each |f| %> <div class="feed...

Spring AOP or AspectJ or Spring with AspectJ -

i learning spring aop, confused spring aop, aspectj n spring aop annotation. spring aop means springs aspect oriented programming xml based configurations. aspectj means aop implementation not spring based, if want use need include third party jars apart spring. spring aop annotation means spring uses aspectj annotations provide aop feature. am correct understanding?

Javascript code freezes the browser -

i'm trying make function generates duplicated css properties html class use. function works in 3 steps. 1 - console, create object : var obj = new module('prefix', 'suffix'); 2- add couple of properties : obj.addproperty('width', 'px', 2); obj.addproperty('height', 'px', 2); 3 - run cloning process : obj.clone('15', '3'); but than, freezes no apparent reason. here's full code : <script> window.cloner_module = function(prefix, suffix) { this.properties = [] this.prefix = prefix; this.suffix = suffix; this.addproperty = function(option, type, side) { var array = []; array.push(option, type, side); this.properties.push(array); } this.clone = function(max, step) { var array = []; var entry_count = 0; var innermodulearray = []; var modulearray = []; var property; var option; var type; ...

php - How can I add other data after the resulting query -

i have query. $stmt = $this->getconnection()->prepare("select * detailuser id = ?"); $result = $stmt->fetchall(pdo::fetch_assoc); and want add amount in result after dateadded, confuse how add amount. amount in table , have no reference on first table (detailuser) $amount = 100; $rec = array( 'data'=>$result, ); echo json_encode($rec); {"data":[{"firstname":"alex","friendname":"alice","amount_due":"600.00","dateadded" :"2015-09-14 13:30"},{"firstname":"annie","friendname":"karren","amount_due":"600 .00","dateadded":"2015-09-14 13:30"},{"firstname":"helen","friendname":"alice","amount_due":"600.00","dateadded":"2015-09-14 13:30"}]} thank in advance you can ...

How to force java to accept the same type generic parameters -

i found following code snippet java™ tutorials type inference static <t> t pick(t a1, t a2) { return a2; } serializable s = pick("d", new arraylist<string>()); so a1 , a2 can different type here, how can force them same type? pick("d", "e"); can called. how can force them same type? if t specific type string , 1 can avoid generic. can restrict there scope, - static <t extends number> t pick(t a1, t a2) { return a2; } pick(0, 1) , t restricted number , sub classes. i've not draw example of <t extends string> string class final .

javascript - How to make .MP3 Audio Player that prevents right click save target as... with Jquery -

i have been building website sell instrumentals / music , trying find way create simple .mp3 audio player button prevented users right clicking save target as... while simultaneously hiding actual .mp3 file link. needed play 1 sound @ time (prevent sounds overlapping.) discovered if heard, downloaded. the method discovered (with stackoverflow community) not 100% full proof against users finding , downloading .mp3 files, make little more difficult. https://jsfiddle.net/9a9jbqzz/1/ steps (optional) first step convert name of sound file confusing md5 hash (this not 100% necessary makes little more tricky), example taking values 'control.mp3' , 'smooth.mp3' convert them md5 hash. link online md5 hash converter (you name them randomly want 12345abc ect.) control.mp3 in md5 hash form = cef83b993c716dd543b6fa4f053cc4a4 smooth.mp3 in md5 hash form = cbbe0ab9d89c68f24f4fadff907fa720 now have md5 hash version of file names. rename mp3 files corresponding md5...

nlp - How to set delimiters for PTB tokenizer? -

i'm using stanfordcore nlp library project.it uses ptb tokenizer tokenization.for statement goes this- go room no. #2145 or go room no. *2145 tokenizer splitting #2145 2 tokens: #,2145. there way possible set tokenizer does't identify #,* delimiter? a quick solution use option: (command-line) -tokenize.whitespace (in java code) props.setproperty("tokenize.whitespace", "true"); this cause tokenizer tokenize on white space. need other tokenize on white space?

php - Products list not seen while editing, using form model binding in laravel 5.1 -

in ecommerce project, have product , carousel model. product.php <?php namespace app; use illuminate\database\eloquent\model; use illuminate\database\eloquent\softdeletes; class product extends model { use softdeletes; protected $dates = ['deleted_at']; protected $fillable = [ 'code', 'name', 'description', 'special_note', 'sort', 'display', 'weight', 'enquiry' ]; public function carousels() { return $this->belongstomany('app\carousel')->withtimestamps(); } } carousel.php <?php namespace app; use illuminate\database\eloquent\model; use illuminate\database\eloquent\softdeletes; class carousel extends model { use softdeletes; protected $dates = ['deleted_at']; protected $fillable = ['name', 'display', 'sort']; public function products() { return $this->belongstomany(...

javascript - Best way to remove the object from an array using AngularJs -

i have array of objects. want remove multiple objects array. i have used below code working absolutely fine, need check guys if there better way or fine. i have done angularjs , js. orders main array on operations performed. order array of selected items remove main array orders $scope.order = {}; $scope.removeorders = function () { angular.foreach($scope.order, function (data) { (var = $scope.orders.length - 1; >= 0; i--) { if ($scope.orders[i].name == data.name) { $scope.orders.splice(i, 1); } } }); } you can make quite bit shorter using filter : $scope.removeorders = function () { $scope.orders = $scope.orders.filter(function(order){ return !$scope.order.some(function(remove){ return remove.name === order.name; }); }); // remove order $scope.orders, if it's name found in $scope.order };

Implement Pipe in C -

i implementing pipe in c. when try command 'cat aa | grep "something" ' in program. grep process hanging there, seems waiting input. don't know why. here core code. take executecommand call execve function , arguments correctly passed. if ((pid = fork()) < 0) { perror("fork failed\n"); exit(1); } if (pid) { // parent pipe writer close(pd[0]); close(1); // replace input pipe dup(pd[1]); // recursively call next commands executecommand(cmds, env); freecommandsarray(&cmds); exit(0); } else { // child pipe reader close(pd[1]); close(0); // close read end dup(pd[0]); executecommand(*(++splitcmds), env); freecommandsarray(&cmds); exit(0); } the full code open. problem have use full path of command file first parameter execve (e.g. /bin/ls ls), otherwise, got error message, no such file existed. it quotation mark @ first argument of grep cause probl...

Python Spell Correct -

i trying write python script spell correction languages - english[gb], german, spanish, italian, french. as first step, installed pyenchant in machine[ 64bit, python 2.7 ] , when tried import enchant package, got following error message. *importerror: 'enchant' c library not found. please install via os package manager, or use pre-built binary wheel pypi.* when googled error message, got know 64-bit version of enchant package not available yet. can me using enchant package or other package/technique spell correction above mentioned five languages. pyenchant can spelling check in 5 languages under python 32 bit - if have use 64 bit python need build enchant , pyenchant 64 bit , resolve issues yourself. note 32 bit python works fine, usages, on 64 bit machines , in general more libraries supported. for installing on python 2.7 (32 bit) should need is: pip install -u pyenchant if having problems after next step uninstall , reinstall: pip uninstal...

How to make a button set a photo to the homescreen? (Android Sudio) -

okay, creating wallpaper app android platform, , have xml set perfectly, cannot figure out procedure set selected photo home screen/lock screen via button. input appreciated greatly. try this: add code in manifest.xml <uses-permission android:name="android.permission.set_wallpaper"/> and can set background code: button buttonsetwallpaper = (button)findviewbyid(r.id.set); imageview imagepreview = (imageview)findviewbyid(r.id.preview); imagepreview.setimageresource(r.drawable.five); buttonsetwallpaper.setonclicklistener(new button.onclicklistener(){ @override public void onclick(view arg0) { // todo auto-generated method stub wallpapermanager mywallpapermanager = wallpapermanager.getinstance(getapplicationcontext()); try { mywallpapermanager.setresource(r.drawable.five); } catch (ioexception e) { //...

Implementing the board to act as a UVC device -

all, i wanted capture , encoding of camera modules, , made in form uvc device, have development board can capture , encoding, if implementing board act uvc device, when used otg or usb connection development board, can see image acquisition.

javascript - How to do grid update without closing window -

i have grid data. using "popup editing" , custom template window. editable: { mode: "popup", window : { resizable: true, animation: false, modal: false }, template: kendo.template($("#popup-editor").html()) }, i want make grid update when user looking @ editing window, window closing when this: $("#grid").data("kendogrid").datasource.read(); how update grid without window closing? according kendo documentation should: -set grid's editable configuration option -declare field definitions through datasource schema -configure datasource performing crud data operations defining transport -> create/update/destroy attributes and popup editor update datasource automatically

multithreading - Java multi-threading programme not using a lot of CPU -

i beginner in programming , java, , first multi-core program. problem program never uses more 13% of cpu. not know if in right way or not. how compute faster , use more cpu resources? my program consists of 3 class: the "main class instantiates work object number of threads a "t1" class extends thread , contains work performed a "work" class launches desired thread numbers , displays time taken threads perform work here code of main class: public static void main(string[] args) { system.out.println("number of cpus available = " + runtime.getruntime().availableprocessors()); //display number of cpus available int iteration = 100000000; // define number of itterations threads /* instantiates each work different number of threads (1, 4, 8, 12, , 24) */ work t1 = new work(1); work t4 = new work(4); work t8 = new work(8); work t12 = new work(12); work t24 = new work(24); /* launch work each thr...

objective c - UIAlertView first deprecated IOS 9 -

i have tried several ways use uialertcontroller,instead of uialertview. tried several ways cannot make alert action work. here code works fine in ios 8 , ios 9 showing deprecated flags. tried elegant suggestion below can't make function in context. need submit app , last thing address. thank further suggestions. newbie. #pragma mark - buttons ================================ - (ibaction)showmodesaction:(id)sender { nslog(@"iapmade: %d", iapmade3); // iap made ! =========================================== if (!iapmade3) { //start game here gameplayscount++; [[nsuserdefaults standarduserdefaults]setinteger:gameplayscount forkey:@"gameplayscount"]; nslog(@"playscount: %ld", (long)gameplayscount); if (gameplayscount >= 4) { uialertview *alert = [[uialertview alloc]initwithtitle:@"basic" message: three_plays_limit_message ...

gmail - When Service Account should be used to access google api? -

i trying use google api getting new emails gmail account. reading docs found there 2 types access api first 1 without authorization (with json credential) , second 1 one service account (with p12 certificate , secretkey) can not understand difference between access? should use? thanks oauth2 first type looking at. oauth2 consent screen displayed user must approve access. usage want access users gmail account, want access users google calendar, want access users google drive. with service account access pre-authorized taking service account email address , adding user data in question. usage: want allow other users upload files google drive account, add service account email address folder on google drive service account able upload folder out having prompt user permissions. use oauth2 when want access users account, use service account when want access account controlled developer. if want access users gmail account need use oauth2 cant grant user access ...

c# - Get rid of xmlns attribute when adding node to existing xml -

i have xml-file: <ns2:root xmlns:ns2="namespace"> <ns2:a> <ns2:b>some content</b> <ns2:c>some content</c> <ns2:d>some content</d> </a> </root> i need add new node in specific place, code is: var doc = xdocument.load(file); xnamespace ns2 = "namespace"; doc.element(ns2 + "root").element(ns2 + "a").element(ns2 + "c").addafterself( new xelement(ns2+"new", new xelement("new1", new xelement("new2","some content"), new xelement("new3", "some content")))); the output is: <ns2:root xmlns:ns2="namespace"> <ns2:a> <ns2:b>some content</b> <ns2:c>some content</c> <ns2:new> <new1 xmlns=""> <new2>some content</new2> ...

PHP (Regex) Check if a string contains at least 4 digits + 2 letters -

i check string if contains at least : 2 letters (a-z) case insensitive 4 digits (0-9) the order not important. a1234b , abcd1234 , 4444aa etc etc. my actual regex if (preg_match("/[a-z][^a-z]*[a-z]*[0-9]/i",$string)) { echo 'secure'; $continue = true; } and doesn't function if string start digit. thank you ^(?=(?:.*[a-za-z]){2})(?=(?:.*[0-9]){4})\w+$ you can use lookahead here apply conditions.see demo. https://regex101.com/r/vv1ww6/22 $re = "/^(?=(?:.*[a-za-z]){2})(?=(?:.*[0-9]){4})\\w+$/m"; $str = "a1234b\nabcd1234\n4444aa\n12\n12a\n12aa22"; preg_match_all($re, $str, $matches);

javascript - jQuery to animate div based on time -

i displaying prayer time in div tag , want animate particular div if 15 - 20 minutes close prayer time. <div class="pt-time"><b>fajr</b><br> <span id="contentplaceholder1_lblfajrtime">04:48</span></div> </div> <div class="pt-circle"><div class="pt-time"><b>dhur</b><br><span id="contentplaceholder1_lbldhurtime">12:19</span></div></div> <div class="pt-circle"><div class="pt-time"><b>asr</b><br><span id="contentplaceholder1_lblasrtime">15:43</span></div></div> <div class="pt-circle"><div class="pt-time"><b>magrib</b><br><span id="contentplaceholder1_lblmagribtime">18:19</span></div></div> <div class="pt-circle"><div class="pt-ti...

umbraco7 - Umbraco search engine duplicate bug -

hi here scenario created site1 in blog has examine search engine , working correctly. have copy whole page duplicate new demo site2 test search engine , picked searched item on page self "and picked item on site1!" :/ that's bad issue.. any idea how avoid picked search item on other site or content?? here search code: @{ string searchterm = request.querystring["search"]; var searcher = examinemanager.instance.searchprovidercollection["websitesearcher"]; var searchcriteria = searcher.createsearchcriteria(examine.searchcriteria.booleanoperation.and); var query = searchcriteria.groupedor(new string[] { "nodename", "addblogimage", "blogtitle", "datepublished", "blogcategory", "blogauthor", "blogbodytext", "blogreadmore" }, searchterm).compile(); var searchresults = searcher.search(query); } @{ try { if (searchresults.any()){ <div class="i...

html - XSLT Assign Function Return Value to Variable -

i can generate id way: <td id= "{generate-id(@value)}"> </td> however, want assign variable , use variable. so, tried that: <xsl:variable name="value_holder" select="{generate-id(@value)}" /> <td id= "{$value_holder}"> </td> however xslt doesn't work due line: <xsl:variable name="value_holder" select="{generate-id(@value)}" /> how can store variable , use inside html element? this has solved it: <xsl:variable name="value_holder" select="generate-id(@value)" /> <td id= "{$value_holder}"> </td>

ruby - How to refactor the below code in such a way that if I made changes in display_home_page method I need not to make changes in the process method -

below 2 methods: 1 display_home_page : display on console, , 2 process : calling method based on user input on choice variable. def display_home_page print " 1 timeline\n 2 tweet\n 3 other's timeline\n 4 retweet\n 5 follow\n 6 wall\n 7 logout\nenter choice : " end def process(choice) if choice == "1" my_timeline elsif choice == "2" tweet elsif choice == "3" others_timeline elsif choice == "4" re_tweet elsif choice == "5" follow elsif choice == "6" my_wall else error_message end end perhaps this: mapping = { '1' => 'my timeline', '2' => 'tweet', '3' => "other's timeline", '4' => 'retweet', '5' => 'follow', '6' => 'my wall', '7' => 'logout' } def display_home_page mapping.each |number, meth...

regex - Python Regular expression: is there a symbol to search for more than one occurence of a pattern? -

i know * 0 or more, , + 1 or more, if wanted indicate 2 or more (more 1)? for example, have >>> y = 'u0_0, p33, avg' >>> re.findall(r'[a-za-z]+', y) ['u', 'p', 'avg'] but want obtain ones have 2 or more letters. in example, avg . how do this? y = 'u0_0, p33, avg' print re.findall(r'[a-za-z]{2,}', y) ^^^ {m,n} causes resulting re match m n repetitions of preceding re, attempting match many repetitions possible. example, a{3,5} match 3 5 'a' characters. omitting m specifies lower bound of zero, , omitting n specifies infinite upper bound. example, a{4,}b match aaaab or thousand 'a' characters followed b, not aaab. comma may not omitted or modifier confused described form.

c# - No updated data in detail DataGrid -

there 2 datagrid on form linked collectionviewsource. when update observablecollection parts updated datagridmaster. if click on it, data appears in datagriddetail1. question. how make data updated without mouse clicks? xaml: <window.resources> <collectionviewsource x:key="vsmaster" source="{binding parts}"/> <collectionviewsource x:key="vsdetail1" source="{binding parties_v1, source={staticresource vsmaster}}" /> </window.resources> <datagrid x:name="datagridmaster" autogeneratecolumns="false" enablerowvirtualization="true" itemssource="{binding source={staticresource vsmaster}}" margin="0,10,346,384" rowdetailsvisibilitymode="visiblewhenselected"> <datagrid x:name="datagriddetail1" isreadonly="true" selectionmode="single" autogeneratecolumns="false...

java - WatchService - incorrectly resolved absolute path -

i've been playing around java.nio.file.watchservice , noticed path s returned watchevent.context() not return correct .toabsolutepath() . here example application: public class fswatcher { public static void main(string[] args) throws ioexception, interruptedexception { if (args.length != 1) { system.err.println("invalid number of arguments: " + args.length); return; } //run application absolute path /home/<username> final path watcheddirectory = paths.get(args[0]).toabsolutepath(); final filesystem filesystem = filesystems.getdefault(); final watchservice watchservice = filesystem.newwatchservice(); watcheddirectory.register(watchservice, standardwatcheventkinds.entry_create); while (true) { watchkey watchkey = watchservice.take(); (watchevent<?> watchevent : watchkey.pollevents()) { if (watchevent.kind().equals(standardwatcheventkinds.overflow)) { continue; } ...

osx - Adjust screen brightness in Mac OS X app -

i want control brightness of main-screen within mac os x app (like f1/f2 buttons). in ios, there's this: uiscreen.mainscreen().brightness = cgfloat(0.5) in osx have nsscreen, nice find out main-screen is, misses .brightness method. so how can adjust monitor brightness using swift on osx? there's no such nice api doing on os x. we have use ioservicegetmatchingservices find "iodisplayconnect" (the display device) use kiodisplaybrightnesskey set brightness: func setbrightnesslevel(level: float) { var iterator: io_iterator_t = 0 if ioservicegetmatchingservices(kiomasterportdefault, ioservicematching("iodisplayconnect"), &iterator) == kioreturnsuccess { var service: io_object_t = 1 while service != 0 { service = ioiteratornext(iterator) iodisplaysetfloatparameter(service, 0, kiodisplaybrightnesskey, level) ioobjectrelease(service) } } } setbrightnessleve...

vbscript - Script not working on windows 7 -

i working on vbscript activates application, sends password application , minimizes application. script fails sending keys. application not password, when double-click on script receives password , minimizes. don't know error is. it's called this: initliszeusb.bat : pause start %mydrive%"runsandisksecureaccess_win.exe" pushd %~dp0 ping 10.10.10.10 -n 1 -w 10000 >nul start /b "" cscript "d:\min.vbs" min.vbs : option explicit dim oshl : set oshl = createobject("wscript.shell") oshl.appactivate "sandisk secureaccess" oshl.sendkeys "pass1_word~" 'enters password wscript.sleep(3000) oshl.sendkeys "% n" 'minimises window wscript.quit in windows 7, experienced issues when using sendkeys send keys other apps (the way do), when sendkeys not running in elevated process. macro/script works 100%, looks keystrokes getting lost. way around found running sender application (or script) e...

angularjs - Use Raphael in Angular-Meteor project -

i have working raphael.js fiddle : http://jsfiddle.net/el4a/sbxjfafx/10/ now, need created svg inside angular-meteor project. need on several places has abstract. first question already: should use factory or directive this? i've been trying make factory now, honest, have no idea i'm doing. don't have errors, image doesn't show up. this raphael code inside factory : 'use strict'; angular.module('timeappapp').factory('svgfactory', function($rootscope){ raphael.fn.piechart = function (cx, cy, r, values) { var paper = this, rad = math.pi / 180, chart = this.set(); function sector(cx, cy, r, startangle, endangle, params) { var x1 = cx + r * math.cos(-startangle * rad), x2 = cx + r * math.cos(-endangle * rad), y1 = cy + r * math.sin(-startangle * rad), y2 = cy + r * math.sin(-endangle * rad); return paper.path(["m", cx, cy, "l", x1, y1, "...

java - Save XDrawPage, Get Fullscreen presentation -

i'm trying control simpress presentation java program. can next effect of presentation when it's not fullscreen. if put propertyvalue "isfullscreen" "true", presentation.isrunning() return false, , xslideshowcontroller null. public static void lancerpresentation(string url) throws indexoutofboundsexception, com.sun.star.io.ioexception, interruptedexception{ //we open file "~/documents/testuno.odp" xcomponent xcomponent=null; xpresentation2 presentation2 =null; try { // remote office component context xcomponentcontext xcontext = com.sun.star.comp.helper.bootstrap.bootstrap(); xcomponent = openpresentation(xcontext, url); xpresentationsupplier presentationsupplier = unoruntime.queryinterface(xpresentationsupplier.class, xcomponent); xpresentation presentation = presentationsupplier.getpresentation(); presentation2 = unoruntime.queryinterface(xpresentation2.class, presentation);...

azure - Add Multiple Web Apps to App Service Environment -

have started using app service environments , need little help. have created ase , added wep app it, web app has it's own service plan , resource group. need add new web app same ase, web app have different service plan , resource group. when try deployment error saying following "not enough available reserved instance servers satisfy request". suggestions how can resolve this, have looed around , can't seem find solution works. thanks you need scale app service environment first. navigate app service environment details in portal , scale number of machines (you have default configuration now, 2 small workers). allocate more capacity , able use them new plans. one thing mention - 1 worker used high-availability purposes have guarantee sites during outages/services upgrades etc. if have 2 workers, 1 can used sites , 1 spare. if have 3 workers, 2 can used apps/plans. it 1 spare worker per 20 workers; if have let's 40 workers, have 2 spare machin...

Override xml-defined spring bean in java-based configuration -

i'm extending complete product called hippo cms own rest interface. hippo cms using apache cxf rest , acquires resources definitions spring bean defined somewhere in hippo cms sources. definition this: <bean id="jaxrsrestplainresourceproviders" class="org.springframework.beans.factory.config.methodinvokingfactorybean"> <property name="targetclass" value="org.apache.commons.collections.listutils" /> <property name="targetmethod" value="union" /> <property name="arguments"> <list> <ref bean="customrestplainresourceproviders" /> <ref bean="defaultrestplainresourceproviders" /> </list> </property> </bean> <bean id="defaultrestplainresourceproviders" class="org.springframework.beans.factory.config.listfactorybean"> <property name="sourcelist"> <list> ...

PHP and MYSQL supported versions for upgrade -

we trying upgrade php website connects mysql db. trying use following version of apache, php,mysql , phpmyadmin php : 5.6.6 mysql : 5.6 open ssl: v1.0.2a apache server : 2.4.12 php myadmin : 4.4.1.1 php 5.6.13 latest version. new versions php released (5.6.9 -->5.6.10 --> 5.6.11 --> 5.6.13). i trying check php compatibility mysql, apache , phpmyadmin. there php/mysql compatibility/supported versions upgrade. we trying select correct versions of php , mysql upgrade. thanks ashok wikipedia: xampp under components you'll find list of components including php, apache, mysql , phpmyadmin version numbers included, far know, use latest stable version of each component you'll have overview of versions pick. edit: use latest versions work together, should trick of finding out versions use.

c# - Serializing the path of the running application -

Image
good day, i have client application sends server lists of application client opens. particulary sends file path, file name , hostname. problem sent data should serialize , deserialize when received in server. new c# have little idea of serialization. this client side private list<int> listedprocesses = new list<int>(); private void senddata() { string processid = ""; string processname = ""; string processpath = ""; string processfilename = ""; string processmachinename = ""; listbox1.beginupdate(); try { piis = getallprocessinfos(); (int = 0; < piis.count; i++) { try { if (!listedprocesses.contains(piis[i].id)) //placed on list avoid redundancy { ...

cocoapods - Module file's deployment target is ios9.0 v9.0 with XCode 7 / Swift 2 -

Image
i have project using modules have installed via cocoapods. 1 of them charts ( https://github.com/danielgindi/ios-charts ). in order migrate project swift 1.2 swift 2 have gone through wizard comes when first opening project xcode 7. charts module available swift 2, , have changed podfile contain following in order upgrade newer , not yet officially released version: pod 'charts', :git => 'https://github.com/danielgindi/ios-charts.git' now project workspace opens fine in xcode except 1 error message can't rid of myself, , cannot find helpful informations in web: at place import "charts" module above mentioned error message pops up. first, made sure whole project set deployment target ios 9.0 8.0 before. as didn't solve issue, have done product -> clean, product -> clean build folder , deleted "derived data" folder's contents. have re-started xcode after these steps error still appears. does have clue have missed?...

Is it possible to add a tooltip containing component in Vaadin? -

Image
i need display tooltip contains table. table exist customcomponent. 1 of solutions duplicate table in html , use setdescription() method. looks little ugly, on opinion. what mean ugly? @ examples @ vaadin book - nice. i tried put table button description. button b = new button("button"); b.seticon(fontawesome.legal); b.addstylename(valotheme.button_friendly); b.setdescription( "<table>\n" + " <tr>\n" + " <th style=\"padding: 10px;\">month</th>\n" + " <th style=\"padding: 10px;\">savings</th>\n" + " </tr>\n" + " <tr>\n" + " <td style=\"padding: 10px;\">january</td>\n" + " <td style=\"padding: 10px;\">$100</td>\n" + " </tr>\n" + " <tr>\n" + ...