Posts

Showing posts from April, 2013

numpy - How to 'unpack' a list or tuple in Python -

i'm writing python program play tic tac toe, using numpy arrays "x" represented 1 , "o" 0 . class includes function place mark on board: import numpy np class board(): def __init__(self, grid = np.ones((3,3))*np.nan): self.grid = grid def place_mark(self, pos, mark): self.grid[pos[0],pos[1]] = mark so that, example, board = board() board.place_mark([0,1], 1) print board.grid yields [[ nan 1. nan] [ nan nan nan] [ nan nan nan]] i wondering if pos[0], pos[1] argument in place_mark function somehow replaced 'unpacked' contents of pos (which list of length 2). in ruby done using splat operator: *pos , not appear valid syntax in python. with numpy, there's difference between indexing lists , multi-dimensional indexing. self.grid[[0,1]] equivalent concatenating self.grid[0] , self.grid[1] , each 3x1 arrays, 3x2 array. if use tuples instead of lists indexing, correctly interpreted multi-dim

amazon web services - AWS Certificate Manager Certificate is not visible to AWS Beanstalk from Console -

i new aws , need select aws certificate manager provisioned certificate elastic beanstalk loadbalancer using aws console . deployed java application on linux instance using elastic beanstalk , worked fine http. provisioned new wildcard certificate using aws certificate manager. under elastic beanstalk configuration - network tier - load balancing settings gear icon, changed "secure listener port" = 443 , "protocol" = https. but "ssl certificate id" not list certificate pick. please suggest missing here. i have read many suggestions cli not cli expert , wanted use console feature simplicity. edit-1: can see certificate under ec2 - load balancer - listener tab if try add https, not under beanstalk. not sure if shall add listener under ec2 or not, think need add ssl beanstalk application deployed using beanstalk ec2. to setup ssl certificate elastic beanstalk environment, please see configuring elastic beanstalk environment's loa

How to hold c++ console application active? -

i tried hold c++ program on top hwnd_topmost . code works , hold application everytime on top, not active. how can hold window everytime in focus , active? want write hex numbers rfid reader in program, on same pc should other work. maybe c++ code helpful! in advance!

oracle - SHA-512 Database Datatype -

for exsting java application going use sha512 hash store password(hash & salt) oracle 11g db.since sha512 have fixed length of 128 , random 16 bit salt thinking of updating column datatype varchar2(150). standard or have other suggestions.

Selenium Python print out value of textfield using get_attribute('value') is not printing the value. I am getting blank printed -

i trying print out value of textfield. value not being printed out, getting blank output, empty. textfield have value on web page. using name_element.get_attribute('value') should print value of textfield. not know why not working me. in pycharm console output is: print_value_from_name_textfield the next line not printing out value print name_element.get_attribute('value') i expecting value "data object name" printed value in textfield on web page. getting blank output. my code snippet is: def print_value_from_name_textfield(self): name_element = self.get_element(*mainpagelocators.data_objects_name_textfield_edit) print "print_value_from_name_textfield" print name_element.get_attribute('value') the html is: <div class="marginbelow"> <span class="gwt-inlinelabel defaultformlabelwidthcompact myinlineblock">name</span> <input id="data_configurat

Spring Boot + JPA + Hibernate: Unable to locate persister -

i trying work entity inside request method of spring boot application. entity in project , pom.xml has dependencies it. why error message?: org.hibernate.unknownentitytypeexception: unable locate persister: com.ric.bill.model.bs.par package com.ric.web; import java.util.concurrent.atomic.atomiclong; import javax.persistence.entitymanager; import javax.persistence.persistencecontext; import net.sf.ehcache.cachemanager; import net.sf.ehcache.management.cache; import net.sf.ehcache.management.cachestatistics; import org.hibernate.stat.statistics; import org.springframework.beans.factory.annotation.autowired; import org.springframework.boot.autoconfigure.domain.entityscan; import org.springframework.cache.annotation.enablecaching; import org.springframework.transaction.annotation.enabletransactionmanagement; import org.springframework.transaction.annotation.propagation; import org.springframework.transaction.annotation.transactional; import org.springframework.web.bind.annotati

sql - Oracle - Deleting overlapping records -

Image
due mistake while populating table data there erroneous records in table now. in particular, there overlapping timestamps. want delete records, have characteristics shown in following example: insert test_overlap (ticket_sk,ticket_id,valid_from,valid_to) values ('1','3',to_timestamp('27.05.2016 17:27:08','dd.mm.rr hh24:mi:ssxff'),to_timestamp('31.05.2016 18:34:16','dd.mm.rr hh24:mi:ssxff')); insert test_overlap (ticket_sk,ticket_id,valid_from,valid_to) values ('2','3',to_timestamp('31.05.2016 18:34:16','dd.mm.rr hh24:mi:ssxff'),to_timestamp('31.05.2016 18:34:26','dd.mm.rr hh24:mi:ssxff')); insert test_overlap (ticket_sk,ticket_id,valid_from,valid_to) values ('3','3',to_timestamp('31.05.2016 18:34:26','dd.mm.rr hh24:mi:ssxff'),to_timestamp('01.06.2016 08:56:51','dd.mm.rr hh24:mi:ssxff')); insert test_overlap (ticket_sk,ticket_id,valid_fr

How to specify the version in bower override? -

this part of bower.json: "overrides": { "tinymce-dist": { "main": [ "tinymce.js", "themes/modern/theme.js", "plugins/*/plugin.js" ] } }, for reason of this issue , want specify version of tinymce-dist 4.3.12. how work? adding "version": "4.3.12" doesn't work. thank you! type command in project root. remove tinymce-dist first , reinstall in version 4.3.12. solve problem. $ bower uninstall --save tinymce-dist $ bower install --save tinymce-dist#4.3.12 refer doc ,your bower.json should adds dependency specification. command above jobs you. "dependencies": { "tinymce-dist": "4.3.12" },

c# - UWP app show image from the Local folder in the WebView -

Image
i working on uwp app supports both windows 8.1 , 10. there have webview set html generated in code using navigatetostring. there need show images in appdata folder e.g. appdata\local\packages\1bf5b84a-6650-4124-ae7f-a2910e5e8991_egahdtqjx9ddg\localstate\c9dfd4d5-d8a9-41c6-bd08-e7f4ae70e423\4f31f54f-1b5b-4812-9463-ba23ea7988a0\images i have tried using ms-appdata:///local/ , file:/// , forward slashes, slashes in img src. none of them loading images. since above path long, have sample image @ appdata\local\packages\1bf5b84a-6650-4124-ae7f-a2910e5e8991_egahdtqjx9ddg\localstate\1.png , trying access in different ways , none of them showing image in web view. can access browser. , if give http url img src in below code works. please let me know how can show images in localstate folder in webview. e.g 1. string figures = "<figure><img src=\"ms-appdata:///local/1.png\" alt =\"aaa\" height=\"400\" width=\"400\"/><figcap

javascript - Highchart: How could I set animation duration in case of adding data points to bar/column chart? -

here code in concern: http://jsfiddle.net/e0qxfltt/14/ $(function() { var chartdata = [50, 30, 4, 70, -10, -20, 20, 30]; var index = 1; var chart1, chart2; $('#b').click(function(){ var buttonb = document.getelementbyid('b'); buttonb.disabled = true; if(index < chartdata.length){ chart1.series[0].remove(); chart1.addseries({data: [chartdata[index - 1]]}); settimeout(function(){chart1.series[0].setdata([]);}, 1000); settimeout(function(){ chart2.series[0].addpoint([index, chartdata[index - 1]]);; index++; }, 1000); } settimeout(function(){buttonb.disabled = false;}, 3000); }) chart1 = new highcharts.chart({ chart: { renderto: 'container', type: 'column' }, title: { text: '' }, xaxis: { title: { text: '' }, gridlinewidth: 1, tickpixelinterval: 80, ca

string - toString() changes ":" to "=" in a java hashmap -

i have following public static void main(string []args) throws jsonexception{ map<string,string> varmap = new hashmap<string,string>(); varmap.put("var","123"); varmap.put("other_var","234"); jsonobject json = new jsonobject(); json.put("variable",varmap); system.out.println("json " + json); } this gives me correct result follows json {"variable":{"var":"123","other_var":"234"}} but in json can use string value, changing following gives me unexpected result public static void main(string []args) throws jsonexception{ map<string,string> varmap = new hashmap<string,string>(); varmap.put("var","123"); varmap.put("other_var","234"); jsonobject json = new jsonobject(); json.put(&qu

android - How do I convert this RxJava observable to emit results every 200 ms? -

i have observable: observable<string> concatenatedsets = observable.just("1/5/8", "1/9/11/58/16/", "9/15/56/49/21"); concatenatedsets.flatmap(s -> observable.from(s.split("/"))) .map(s -> integer.valueof(s)) .subscribeon(schedulers.computation()) .observeon(androidschedulers.mainthread()) .subscribe(i -> tvcounter.settext(string.valueof(i))); how convert or operator chain onnext called 200 ms in between calls? i looking @ question: pause between call onnext in rxjava but answers there start creating pause using interval so observable.interval(100, timeunit.milliseconds) however, creating observable in way (using just ), how mix both functionalities ( just , interval ) or do achieve pause of 200 ms between emissions? ps: tried delay - postponed overall execution once time provided. zip might answer confusing, how zip observable , interval one?

sql - Reduce row duplication when multiple values exist in child records -

Image
i have database , need generate report tables have been provided with. however, data source query using -while in essence works fine- producing duplicates due "parameter" , "op parameter" fields (each can 1 of 2 values each unique tag). what take each parameter, each op parameter, , values , tag them on new fields unique tag (e.g., 'ai17611a') each tag shown once parameters. is possible? if so, how go it? if want new field each possible value of [op parameter] use aggregation ( group by ) query, e.g., sample table [so38830066] id tag parameter op parameter -- -------- --------- ------------ 1 ai17611a hlpr hlop 2 ai17611a hlpr hhaopt 3 ai17611b hlpr hlop 4 ai17611c hlpr hhaopt the query select so38830066.tag, so38830066.parameter, min([op parameter]='hlop') ishlop, min([op parameter]='hhaopt') ishhaopt so38830066 group so38830

c# - make abstract a method with body for overriding -

i have beverage class, has getters/setters work size of beverage. program has decorator pattern, want combine behavior of methods equally named. my intent have method body allows me size of beverage, then, want able override behavior on child classes. in sum, want method that: if not overriden, behaves method in parent class if overriden, behaves coded what did create method called getsizeofbeverage behaves "old" getsize did, , made getsize "new" method abstract can override it, want solution not imply new method name. here code: using system; namespace decorator { class program { static void main(string[] args) { beverage beverage = new espresso("small"); beverage = new whip(beverage); console.writeline(beverage.getdescription() + " $" + beverage.cost()); } } abstract class beverage { private string description; private string siz

centos - How to output detail message about 5.x.x error on Sendmail -

i'm using sendmail version 8.14.4 on centos 6.3. sendmail.cf of sendmail left default of centos. sendmail not output detail response message below. aug 8 21:44:44 localhost sendmail[5075]: u78cicqr005073: to=hogehoge@grandeur09.com, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120005, relay=mail.grandeur09.com. [124.24.34.228], dsn=5.1.1, stat=user unknown on other hand, postfix can output detail response below. aug 8 21:43:40 localhost postfix/smtp[4993]: ea843120806: to=<hogehoge@grandeur09.com>, relay=mail.grandeur09.com[124.24.34.228]:25, delay=0.32, delays=0.01/0.01/0.28/0.01, dsn=5.1.1, status=bounced (host mail.grandeur09.com[124.24.34.228] said: 550 5.1.1 <hogehoge@grandeur09.com>: recipient address rejected: user unknown in local recipient table (in reply rcpt command)) the below message important me. user unknown in local recipient table (in reply rcpt command)) do know how output detail response message returned downstream smtp serve

fortran90 - compiling fortran 77 code with ifort : libg2c missing -

i compiling fortran 77 code ifort 2013 compiler. code requires linking libg2c, library missing. can find it? working on remote computer cluster, there way install library locally? libg2c library used obsolete g77 compiler. if reference in makefile found, remove it. "ifort" command should able provide necessary libraries.

Changing folder name Batch filepath -

in batch file, first create lala file in folder: c:lala-20160322-othercode , next day creates file in lala-20160323-othercode , on. in same batch file, want use created file. not know write after -filepath since lala in differnt folder every time. batchfile in folder above lala-20160322-othercode. how can this? file called lala, on computer there many folder (every day folder) lala. new batch files. many thanks!!!!!!!!!!!!!!!! code: @echo off setlocal call "c:\folder\nameofpythonprogramm" pythonfunction -filepath ????? -pythonfunction first had %1 questionmarks are, want dynamic file path save test.bat , , run folder in open cmd prompt access file lala* in dir corresponding desired month. let me know if errors. @echo off setlocal enabledelayedexpansion set "dir=c:\lala-months" set "cur_month=august" /r "%dir%" %%g in (.) (set "mon=%%g" if not '!mon:%cur_month%=!'=='!mon!' echo %%g ) exit /b

How can I compare the hour to a string/number in bash? -

we have server use run selenium tests our extension (for chrome , firefox). run selenium tests every 2 hours. want run different tests after 14:00 before 14:00. have variable: start_hour=`tz='asia/tel_aviv' date +"%h"` and know how compare specific hour, such 08:00 (it's string): if [ "$start_hour" = "08" ]; ... fi but how check if variable shows hour after 14:00 (including 14:00), or before 14:00? can compare strings in bash , how? want check if $start_hour >= "14", or not? is answer different if want check after 08:00 or before? to perform greater or less-than comparisons, test operations -gt , -le , -ge , , -le exist. start_hour=$(tz='asia/tel_aviv' date '+%k') [ "$start_hour" -ge 8 ] note use of %k vs %h , , 8 vs 08 -- leading 0 can prevent numbers being interpreted decimal. similarly, in native bash syntax, numeric comparison: start_hour=$(tz='asia/tel_aviv

ios - How to compare PHAsset to UIImage -

i have converted phasset uiimage : phimagemanager *manager = [phimagemanager defaultmanager]; [manager requestimageforasset:asset targetsize:phimagemanagermaximumsize contentmode:phimagecontentmodedefault options:requestoptions resulthandler:^void(uiimage *image, nsdictionary *info) { convertedimage = image; [images addobject:convertedimage]; }]; now want that: [selectedassets removeobject:image]; where selectedassets array of phasset , image uiimage so have implemented isequal that: - (bool)isequal:(id)other { if (other == self) return yes; if (!other || ![[other class] isequal:[self class]]) return no; nsdata *data1 = uiimagepngrepresentation(self.image); nsdata *data2 = uiimagepngrepresentation(((tinselect

javascript - NodeJS - convert relative path to absolute -

in file-system working directory here: c:\temp\a\b\c\d and under b\bb there's file: tmp.txt c:\temp\a\b\bb\tmp.txt if want go file working directory, i'll use path: "../../bb/tmp.txt" in case file not exist want log full path , tell user: "the file c:\temp\a\b\bb\tmp.txt not exist" . my question: i need function convert relative path: "../../bb/tmp.txt" absolute: "c:\temp\a\b\bb\tmp.txt" in code should this: console.log("the file" + converttoabs("../../bb/tmp.txt") + " not exist") use path.resolve try: resolve = require('path').resolve resolve('../../bb/tmp.txt')

javascript - How to follow mouse movement the opposite direction? -

i have div follows mouse coordinates opposite direction , within div .box . when move mouse red box should move opposite direction, looks kind of parallax effect. move on mouse speed , not want. box move slightly, see box move little bit opposite direction. , have align box center of mouse. i have code script let red box follow mouse movement, doesn't know how above work. $(document).ready(function(){ $('div.container').on('mousemove',function(e){ var x = e.pagex - this.offsetleft; var y = e.pagey - this.offsettop; $('div.box').css({'left': x, 'top': y}); }); }); hope can me out. thanks. http://codepen.io/anon/pen/zbrkga try change top bottom , left right may solve problem like, $('div.box').css({'right': x, 'bottom': y}); $(document).ready(function() { $('div.container').on('mousemove', function(e) { var x = e.pagex - this.offsetleft;

java - Linked in url returning the response code 999 -

i need implement crawl code in linkedin. i have tried httpurlconnection.open connection , linkedin url opens in browser perfectly, while using java code getting response code 999. please suggest correct thing have do.

php cURL cookie is not passed -

there site, search phone numbers. need make either php script or curl command able search cron job . when visit search page, "session" cookie created, used obtain results. on result page, in case cookie missing or contains wrong information, search not yield results. so figured visit search page, grab cookie, post cookie, alongside search parameters need result page, different (the search page's form action points that). the first part done. able grab cookie, either parsing header: $curl = curl_init(); curl_setopt($curl, curlopt_url, 'https://www.eofcom.admin.ch/eofcom/public/searcheofcom_inafree.do'); curl_setopt($curl, curlopt_useragent, 'mozilla/5.0 (windows nt 6.1; wow64; rv:35.0) gecko/20100101 firefox/35.0'); curl_setopt($curl, curlopt_returntransfer, 1); curl_setopt($curl, curlopt_header, 1); curl_setopt($curl, curlopt_verbose, true); $result = curl_exec($curl); curl_close($curl); preg_match_all('/^set-cookie:\s*([^;]*)/mi',

regex - How do you ignore but preserve ANSI escape codes with sed? -

if print string " hello, \e[38;5;200mworld\e[0m ", might see " hello, world " word " world " highlighted strong magenta color (ff00df) assuming terminal supports it. however, if pipe output of program tree column , you'll see alignment broken, since escape codes incorrectly counted in line length calculations. as more direct example, tried split string characters in sed using following: sed 's/\(.\)/\1 /g' ...which yields... h e l l o , 3 8 ; 5 ; 2 0 0 m w o r l d 0 m ... when piped string shown earlier. how go matching escape codes purposes of counting, replacing, preserving, etc. while editing stream? that not exactly, looking for, can develop idea further: you can remove control characters using col : $ col -bx or using sed : $ sed -r "s/\x1b\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|k]//g" you can use regular expression extract sequences should not counted or processed other way. another interesting

A cross-platform way to detect Operational System double-click min interval with C++ -

my application targeted windows, linux , mac osx. currently, have implementation of double-clicking uses hard-coded threshold of time between clicks differentiate between single , double clicks (i don't use gui libraries, since application precisely relies on custom gui implementation). however, application ready shipment , have more proper implementation of double-clicking. that, mean 1 reads double-clicking minimum time interval being used user in operational system, instead of arbitrarily defining such interval. me, relevance of should obvious, if not, thinking avoiding problems are, instance, mentioned in comments answer question: double click, how handle it? the problem here sums this: how read operational-system double-clicking min interval in cross platform application written in c++ , not use gui libraries? there way read such system-level information works windows, linux , os-x? i surprised it's hard find information on that, considering 1 suppose it's su

python - How to fetch resultant of a POST request in a web-scrapper? -

i trying scrape out data this website. there table in there different organisations listed , name each organisation link webpage more information organisation. those links instead of being hard-coded hyperlinks call javascript function computed when function called. <a href="javascript:view_ngo('4309','','1','0')" class="bluelink11px"> biswasuk sevasram sangha </a> so not possible scrape out information following links. is there workaround execute javascript function , html of resultant webpage? using python 3, , using beautiful soup web scraper. first, javascript not executed server side client side. here, should use debugging facilities or browser (firefox function f12 enough) see happens when click on 1 of links. see javascript code prepares , send post request so view_ngo(a, b, c, d) generates following post request: post http://ngo.india.gov.in/view_ngo_details_ngo.php with follow

javascript - Confirmation message after window.print() -

its known there no way determine whether user clicked print or cancel on print window produced window.print(). so im stuck next best thing ask user if did print successfully. i have this: $(document).ready(function(){ window.print(); var = confirm('confirm printing successfull , mark job cards released?'); if(a == true) { $.post('printsuccess'); window.location = '/menu'; } }); trouble is, confirmation box pops before print window does, how can ensure print window appears first? there few ways make sure print dialog finished before running code block. browser support varies, may need combine of them match need. see below stackoverflow topics. how detect window.print() finish close window automatically after printing dialog closes the following code should work modern browsers. var printcompletecallback = function () { var conf = confirm('confirm printing successfull , mark job cards release

Batch script for fetching sub-strings having multiple decimal places -

i have string having nomenclature a.b.c.d, where; a= single/2/3/4 digit number b= single/2/3/4 digit number c= single/2/3/4 digit number d= single/2/3/4 digit number e.g. can say, 8.0.0.78 or 81.0.13.332 or 90.03.30.5467 or 1234.234.2345.1, etc. requirement fetch a, b, c , d in separate variables, i.e.; number before first decimal, number between 2 occurrences of decimal pairs , number after last decimal. how can achieve it? have tried fetching positions before, in-between , after decimals , fetch values between positions, however, because of variable length of string, not able through. after values, have compare values string , decide string has higher value. please help. thanks, nishant

pyspark - hive meta store.db error in spark 2.0 -

i new user in spark. working on remote linux os based pc using putty. job purpose have created hive table in spark can manipulate sql queries on it.after putty session on when re-enter in linux pc , creating table have got errors java.sql.sqlexception: unable open test connection given database. jdbc url = jdbc:derby:;databasename=metastore_db;create=true, username = app. terminating connection pool (set lazyinit true if expect start database after app). original exception: ------ java.sql.sqlexception: failed start database 'metastore_db' class loader org.apache.spark.sql.hive.client.isolatedclientloader$$anon$1@79ac37cd, see next exception caused by: error xsdb6: instance of derby may have booted database /home/ubuntu/spark-2.0.0-bin-hadoop2.7/metastore_db. i have run query spark.sql("create table if not exists fact_cmdoubtfulaccount (entityid string,leaseid string,suiteid string,txndate date,txndateint int,period string,baddebtamt int)") b

Android getting points of a specific direction in some meters in google map -

i able current direction when walk. try make drawing arc or quarter circle direction , getting edge points of circle . actually trying 3 points . able current location . other 2 locations edge points of arc in direction . not must drawing arc or circle direction. maybe drawing polygon acceptable me. can me find out solution on ? thanks, maybe can start reading documentation of shapes in google maps android api, explains here simple ways add shapes maps in order customize them application. polyline series of connected line segments can form shape want , can used mark paths , routes on map. the polyline class defines set of connected line segments on map. consists of set of latlng locations, , creates series of line segments connect locations in ordered sequence. check link on how create polylines polygon object similar polyline objects in consist of series of coordinates in ordered sequence. however, instead of being open-ended, polygons designed define

c# - How to handle exceptions from async method with using Enterprise Library? -

exceptioncallhandler default exception call handler in enterprise library, doesn't work async methods. how should rewrite handler work async methods? it code, doesn't work. public imethodreturn invoke(imethodinvocation input, getnexthandlerdelegate getnext) { if (input == null) throw new argumentnullexception("input"); if (getnext == null) throw new argumentnullexception("getnext"); imethodreturn methodreturn = getnext()(input, getnext); methodinfo methodinfo = input.methodbase methodinfo; bool istask = methodinfo != null && typeof(task).isassignablefrom(methodinfo.returntype); task continuetask = null; if (istask) { task task = methodreturn.returnvalue task; if (task != null) { continuetask = task.continuewith((t) =>

r - Error: length(cols) > 0 is not TRUE on SparkR agg function -

i try group dataframe column: >sparkr::agg(sparkr::groupby(df, "column_1")) why following error: error: length(cols) > 0 not true i found out kind of error ( see one ) relates parameters provided function (here: agg). missed specifying output column: sparkr::agg(sparkr::groupby(df, "column_1"), "column_1")

bash - Print specific line and if it contains space - replace or print path -

like in title - need find , read through files specific name, check 7th line specific pattern , if found - print path or replace line. have problem pipe or exec output of awk. find . -name "meta" -exec awk 'nr==7 && /t/' {} \; how pipe output of command, or use -exec on it? change awk script print file name. find ... -exec awk 'nr==7 && /t/ { print filename }' {} \; or alternatively use exit code signal result find find ... -exec awk 'nr==7 { exit($0~/t/) }' () \; -o -ls you need take care have same exit code if file short; that's why use counter-intuitive nonzero (failure) exit code case when match found. if want replace line match, sed -i might both easier , more portable, though gnu awk has --inline option. find ... -exec sed -i '7s/.*t.*/foobar/' {} \; notice need sed -i '' '7s... on *bsd platforms, including osx (i.e. -i option requires mandatory option argument; pass empty

php - How to get all posts with one category on one page in wordpress? -

i new in wordpress. have make template post. don't know how posts 1 category on 1 page in wordpress. can please me sort out problem? try below code. can add category id , post per page want. <?php $catquery = new wp_query( 'cat=3&posts_per_page=10' ); while($catquery->have_posts()) : $catquery->the_post(); ?> <ul> <li><h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <ul><li><?php the_content(); ?></li> </ul> </li> </ul> <?php endwhile; ?>

Is it a valid Ruby Mash syntax? -

i find below mash declared in readme of https://github.com/hw-cookbooks/haproxy : haproxy 'myhaproxy' config mash.new( :global => { :maxconn => node[:haproxy][:global_max_connections], :user => node[:haproxy][:user], :group => node[:haproxy][:group] }, :defaults => { :log => :global, :mode => :tcp, :retries => 3, :timeout => 5 }, :frontend => { :srvs => { :maxconn => node[:haproxy][:frontend_max_connections], :bind => "#{node[:haproxy][:incoming_address]}:#{node[:haproxy][:incoming_port]}", :default_backend => :backend_servers } }, :backend => { :backend_servers => { :mode => :tcp, :server => [ "an_node 192.168.99.9:9999" => { :weight => 1, :maxconn => node[:haproxy][:member_max_connections] } ] } }

java - Spring hibernate Issue -

hibernate spring , maven im using hibernate 5 , spring 4 in personal project. unable find root cause of problem. can me find out issue code? <?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <context:component-scan base-package="fr.geom.core.controller"/> <context:component-scan base