Posts

bash - plot only specific columns in gnuplot -

i have csv file show below , want plot s(on x axis) , b(axis).how generate plot of lines gnuplot. test_image,original_size red-room.png,918394 q,s,b,s,c,r 0,1021763,0.121086,0.00001459,-11.26,-222.18 1,1061763,0.125086,0.00001459,-11.26,-222.18 2,1051763,0.121086,0.00001459,-11.26,-222.18 3,1041763,0.121086,0.00001459,-11.26,-222.18 4,986461,0.151573,0.00003318,-7.63,-211.67 5,955766,0.160869,0.00005782,-4.07,-201.37 basically need way tell gnuplot ignore first 3 rows , plot 2rd , 3rd column. you need tell gnuplot fields delimited commas , should plot columns 2 , 3: set datafile separator comma plot "data.csv" using 2:3 w lp gnuplot ignore first 3 lines automatically. wiki

mysql - I want to display record getting value from database where id=id (insert value into database from getter method not work) in java -

this question has answer here: what nullpointerexception, , how fix it? 12 answers i create java file name attend.java public class attend { string attend_id,studname,owner; public string getowner() { return owner; } public void setowner(string owner) { this.owner = owner; }public string getstudname() { return studname; } public void setstudname(string studname) { this.studname = studname; } public string getattend_id() { return attend_id; } public void setattend_id(string attend_id) { this.attend_id = attend_id; }} ; other file dao file attenddao.java , public class attenddao {public static list<attend> getallrecords(){ list<attend> list=new arraylist<attend>(); //attend u1=null; try{ connection con=dbconnector.getconnection(); preparedstatement ps=con.preparestatement("selec...

html - Creating a application in a website -

if wanted create small program, perhaps calculator or something, language use, , how implement it? very new coding, websites sorry if it's dumb question. this vague question few specifics answered 1,000 different ways. to started reading though, suggest read on differences between server-side , client-side coding languages web. understand languages want use , reasons. as general rule though, people build simple app calculator in javascript, doesn't require lot of interaction server, doesn't utilize data storage, , run on users machine rather tie resources on server. happy learning, , if want lot of responses on site, should include more specifics in questions. such broad question hard answer sort of brevity. wiki

css - How to change the background-color of a Gtk.InfoBar to yellow? -

Image
the default background color seems blue (from adwaita theme), if set type of message warning. preffer using css. example.py : # coding=utf-8 import gi gi.require_version("gtk", "3.0") gi.repository import gtk w = gtk.window() ib = gtk.infobar() w.add(ib) w.connect("delete-event", gtk.main_quit) provider = gtk.cssprovider() provider.load_from_path("style.css") w.get_style_context()\ .add_provider(provider, gtk.style_provider_priority_user) w.show_all() gtk.main() style.css : infobar { background-color: yellow; } screenshot : i use python 2.7.13 , gtk+ 3.22 on windows 10 updates installed , through msys2 updates installed pacman -syyu . from python gtk api : gtk.infobar has single css node name infobar. node may 1 of style classes .info, .warning, .error or .question, depending on message type. by default, gtk.infobar message type gtk.messagetype.info , style.css file should be, eg.: infobar....

Cookies Directory DIR -

$cookies = __dir__."\cookies.txt"; $cookies = __dir__."/cookies.txt"; c:\xampp\htdocs\tokenrestcurlsession why cookies stored $cookies = dir ."/cookies.txt"; forward slash , not backward slash rest of directory location (c:\xampp\htdocs\curlsession) ? when use realpath function "echo realpath("cookies.txt");" of cookies.txt getting (c:\xampp\htdocs\curlsession\cookies.txt). wondering possible use either / or \ when working dir ? wiki

cypher - Why do some relationship merge queries fail in Neo4j? -

i set neo4j instance (3.2) both on local machine (with brew ) , on remote machine (with docker). i'm trying run query, use py2neo functions ( merge on relationship) create cypher automatically. i define 2 node objects, 1 each subject , object labels entity property both. create relationship object relationship type ( is cheaper according to in query below) , add property called confidence relationship type. query i'm trying run: merge (a0:subject {entity:"vss"}) set a0:subject merge (a1:object {entity:"vanguard"}) set a1:object merge (a0)-[r0:`is cheaper according to`]->(a1) set r0.confidence="1.0" return a1, a0, r0 limit 1 this query works fine on local neo4j, on remote, following error: bolt.fetch s: failure {u'message': u'could not create token', u'code': u'neo.databaseerror.general.unknownerror'} i tried running above query directly in browser client too, , had same response, viz. wor...

Java class in android studio does not appeared as functions but only tags -

can tell me why java class looks fine , display functions don't know happened .anyone can me please .. here screenshot even if saying , screenshot shows holderactivity.java, code doesn't looks java file. looks xml file in right side of pic. if not mentioned java file , may excluded/closed java file project. if problem right click , include java file. if cant include open java file in notepad , copy paste code in new created file. if showed pic code, not java file. may extension different name showed. see other files, don't have extension still java files right. check it. wiki