Posts

Showing posts from August, 2011

c++ - Benchmarking and restricting execution to a specific CPU -

how can constrain benchmarks run on single cpu (e.g. c0)? running benchmarks , want expose tests environment similar target. advice how ensure there minimal other processes running run benchmarks. import std.datetime; import std.stdio; void algorithm() { writeln("hello!"); } void main() { stopwatch stopwatch; stopwatch.start(); algorithm(); stopwatch.stop(); auto duration = stopwatch.peek(); writeln("hello duration ==> ", duration); } have tried using numactl ? useful memory , process binding here link man page . for example numactl --physcpubind=0 myapp args will bind process myapp core 0. depending on want there may different syntax. example specifying specific cores on cpu or memory binding. format of arguments application may impact numactl syntax. as reducing number of other processes there several options, specifics os dependent. if want test system in environment minimal background noise design

PHP file timestamp (change Attribut) -

i have pictures in folder , rename them php. unfortunately change attribut set current date , time. want keep original one. possible? before rename command, file's existing modification time using filemtime() function, this: $mtime = filemtime($file); then, after rename command, set modification time value using touch() function, this: touch($file, $mtime, $mtime); read more: filemtime touch

php - PHPUnit in Eclipse cannot create test case from existing class -

Image
i have installed pti plugin in eclipse luna in order use phpunit. whenever try create test case existing php class (right click on php file -> new -> new phpunit test case) dialog doesn't work (the "finish" button seems nothing): after checking eclipse log found error: org.eclipse.ui error thu jul 23 19:09:39 cest 2015 unhandled event loop exception java.lang.nosuchmethoderror: org.eclipse.php.internal.debug.core.preferences.phpdebuggersregistry.getdebuggerconfiguration(ljava/lang/string;)lorg/eclipse/php/internal/debug/core/debugger/abstractdebuggerconfiguration; @ org.phpsrc.eclipse.pti.core.launching.phptoollauncher.createconfiguration(phptoollauncher.java:376) @ org.phpsrc.eclipse.pti.core.launching.phptoollauncher.findlaunchconfiguration(phptoollauncher.java:265) @ org.phpsrc.eclipse.pti.core.launching.phptoollauncher.launch(phptoollauncher.java:136) @ org.phpsrc.eclipse.pti.core.launching.phptoollauncher.launch(ph

c# - Build Error after third party assembly was strongly named. -

i have been working on upgrading application use mongodb 2.0 driver, have hit road block since mongodb not releasing named version of assemblies. result cannot build assembly in solution gets registered in global assembly cache (gac) because gac requires assemblies named. using technique explained on ian picknell's , ryan farley's blogs able name assemblies; mongodb.bson.dll, mongodb.driver.dll , , mongodb.driver.core.dll . after signing them removed old references these assemblies , added references new named versions. when try build project in vs2013 2 errors(see below) generated both of trying reference weakly named assembly (this understanding because error states publickeytoken=null). i've tried building named assemblies straight source code since mongodb open source has been generating hundreds of errors i'm still working through. error 1 type 'mongodb.bson.bsondocument' defined in assembly not referenced. must add reference assembly '

Kendo DataSource create method not getting called -

why transport's create method not being called when click "save changes" button on grid? appears working except controller code create isn't getting called. kendo code: var ds = new kendo.data.datasource({ transport: { read: { cached: false, url: '@url.action("getlistoffacilities", "tactic")', datatype: "json" } } }); var orgdatasource = new kendo.data.datasource({ transport: { read: { url: '@url.action("readorganizations", "tactic")', datatype: "json" }, create: { url: '@url.action("addorganization", "tactic")', type: "post", datatype: "json" } }, batch: false schema: {

c++ map creation and allocation in a class member -

i transferring language c++, complete beginner c++ , trying learn essentials around struct creation , use in maps. have sketched below: struct cubic { int x, y, z; cubic neighbor(int); }; struct space{ cubic location; bool open; bool blocked; }; class table { int bound; cubic center; std::map<cubic, space> grid; table* new(int, cubic); }; std::map<cubic, space> allocate(int bound, cubic center) { std::map<cubic, space> ret; (int x = -bound; x <= bound; x++) { (int y = std::max(-bound, -x-bound); y <= std::min(bound, -x+bound); y++) { int z = -x - y; cubic cb = cubicadd(center, {x, y, z}); ret[cb] = {location: cb, open: true}; //this huge error, see below }; }; return ret; } it table cubic coordinates hexagons. other code can posted, not relevant matter @ hand; i.e. works in there , have no problems understanding that, issue in trying un

mysql - When should we go for one-to-one relation model vs adding attributes to same table? -

i'm using sails framework build website , mysql database. have table called "property". , there other details "total budget", "hold period", "rentable area", "investor share", "company share", "sale price" , many more attributes related property in one-to-one fashion. i'm unable decide whether create separate small tables these details (by grouping them under small tables "equity", "funding",...) "property id" primary key each of small tables(creating one-to-one association on sails) or make these attributes under "property" table. adding them attributes "property" table make table big 40 columns(is problem?). note: these attributes mandatory details , not "null" anytime. i go 1 table, specialy if fields mandatory. you far mysql limit , not problem. your code easier write , read. it better mysql performances because won't

servicemix - Osgi:list command not found -

i have installed apache service mix 6.0 on mac. starting karat(4.0) container using ./bin/karaf or ./bin/servicemix. when run command osgi:list "command not found" but if run list can list of deployed components. can tell me has changed, why osgi:list not working actually it's karaf 3.0.4 not 4.0.0 used in servicemix 6. list of changes commands can found in karaf documentation but osgi:* changed bundle:* command scope.

java - Why do noise algorithms use 256 permutation values? -

i have seen many noise implementations things perlin , simplex noise achieve procedural terrain generation , , seem use 256 permutation values. why this? , effect of using more 256? you use number of permutation values. reason powers of 2 preferred is, because cheaper compute modulus of n^2. the reason is: value % (n^2) is equivalent to value & (n^2 - 1) and cheaper compute bitwise & instead of %. for example in code write this: int v = perm[(x + perm[y % 256]) % 256]; or int v = perm[(x + perm[y & 255]) & 255]; both give same result second method faster. of course power of 2 can used this. think reason choosing 256 is balance between variety of pseudo random numbers , low memory consumption.

database - how to distribute oracle databse -

i want distribute oracle database 11g on 3 servers don't know how start. read documents : http://docs.oracle.com/cd/b10501_01/server.920/a96521/ds_concepts.htm and others same . didn't find how start. want start document how start distribute oracle , contains : 1) how install oracle distribution 2) how link them rules 3) how query in java application according comment, want integrate several existing system. in case, easiest approach database links: there no special installation involved. add remote databases tnsnames.ora know how connect each other. then create database link, e.g.: create database link orlando connect joe identified mysecret using orcl33b; now can query data (or insert or update): select a.name, b.total_amt person join sales@orlando b a.id = b.cust_id; sales@orlando refers remote table sales in remote orlando database. there different types of database links (regarding authentication, sharing , availability in o

java 6 - I am getting ';' expected error,illegal start expression and else without if -

i want out put this- 150 can fitted in: short int long 150000 can fitted in: int long 1500000000 can fitted in: int long 213333333333333333333333333333333333 can't fitted anywhere. -100000000000000 can fitted in: long import java.io. ; import java.util. ; import java.text. ; import java.math. ; import java.util.regex.*; public class solution { public static void main(string[] args) { /* enter code here. read input stdin. print output stdout. class should named solution. */ byte b; long l; int t, v; int[] n; scanner in=new scanner(system.in); system.out.println("inter number"); v=in.nextint(); n=new int[v]; int i=0; while(n.hasnextint()) { n[i]=in.nextint(); i++; } for(int k=0;k<t;k++) {if(b<n[k]) { system.out.println(k+"this fit in"); system.out.println("*short"); system.out.pri

python - Line breaks Django string -

is there way display line breaks in rendered django string? contact_message = "name: %s | email: %s" % ( form_name, form_email, ) for example, code above prints as: name: <rendered name> | email: <rendered email> is there way make print this: name: <rendered name> email: <rendered email> i using send_mail function, hoping make readability more visually appealing. thank you! when sending mail, simple \n should enough: contact_message = "name: %s\nemail: %s" % ( form_name, form_email, ) this won't work in html, there need html tags , have mark string safe: https://docs.djangoproject.com/en/1.8/ref/utils/#module-django.utils.safestring

r - Select list of columns from a data frame using dplyr and select_() -

i'm trying use following function extract columns data frame: library('dplyr') desired_columns = c( 'a', 'b', 'c') extract_columns <- function(data) { extracted_data <- data %>% select_(desired_columns) return(extracted_data) } but when try it, don't expect: > df <- data.frame(a=1:5, b=1:5, c=1:5, d=1:5) > df b c d 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5 > extract_columns(df) 1 1 2 2 3 3 4 4 5 5 i seem getting first column , can't figure out i'm doing wrong. how can requested columns? you missing .dots argument in select_ : extract_columns <- function(data) { extracted_data <- data %>% select_(.dots = desired_columns) return(extracted_data) } extract_columns(df) b c 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5

pentaho - Method named getTime is not declared when using a Timestamp in Kettle -

if declare user defined java expression (which uses janino) in kettle so: new java.util.date(agent_start_time.gettime()) (where agent_start_time defined timestamp) i error: 2015/07/23 16:25:10 - [test-timestamp].user defined java expression.0 - caused by: org.codehaus.janino.compileexception: line 1, column 44: method named "gettime" not declared in enclosing class nor supertype, nor through static import which strange doco states timestamps support gettime java.util.dates (albeit @ different granularity) looks user-defined java expression step doesn't support timestamp parameters ( bug pdi-14347 ). you can cast date, via select values step, appears resolve issue in testing.

plot - Matlab coneplot meshgrid error MATLAB:griddedInterpolant:NdgridNotMeshgrid3DErrId / not plotting anythin -

basically want plot 3d vector field using coneplot in matlab. script looks this: data=oommf2matlab('420x350x5-2_5-5.omf'); x=linspace(data.xmin,data.xmax,data.xnodes); y=linspace(data.ymin,data.ymax,data.ynodes); z=linspace(data.zmin,data.zmax,data.znodes); [x,y,z]=meshgrid(y,x,z); scale=4; angle = data.datay ./ data.datax; colors = angle; figure; coneplot(data.positionx,data.positiony,data.positionz,data.datax,data.datay,data.dataz,x,y,z,scale,colors); oommf2matlab function converting data matlab , returns structure this: xmin: 0 ymin: 0 zmin: 0 xmax: 4.2400e-07 ymax: 3.5400e-07 zmax: 1.2500e-08 xnodes: 212 ynodes: 177 znodes: 5 datax: [212x177x5 double] datay: [212x177x5 double] dataz: [212x177x5 double] positionx: [212x177x5 double] positiony: [212x177x5 double] positionz: [212x177x5 double] running script gives me error error using interp3 (line 146) input grid not valid meshgrid. error in coneplot (line 144) ui = interp3(x,y,z,u,cx,cy,cz,method);

Java NullPointerException in if statement -

i nullpointerexception in following code. else if (isempty(href)) system.err.println("this empty link: " + href); where isempty function following. public boolean isempty(string href){ if (href.equals("") || href.equals("null") || href == null || href.isempty()) return true; else return false; } is because can not compare string null? can make function work? your isempty test doing things in wrong order. change this: if (href.equals("") || href.equals("null") || href == null || href.isempty()) return true; to: if (href == null || href.equals("") || href.equals("null") || href.isempty()) return true; if href null , first test short-circuit rest of if , won't npe. (by way, explicitly testing href.equals("") , calling href.isempty() redundant. need 1 or other.) by by-the-way, recommend, matter of style simplifying method sing

Corruption of the heap using OpenCV C++ HOG Detector -

hi stackoverflow community, i've been developing algorithm using opencv library. didn't have memory issues until when i'm integrating algorithm in application. i'm not skilled in c++ , "properly coding" don't know can cause problem. the error when release code typical "corruption of heap". in code below can see function in breakpoint. i think problem related mat frametemp . in function send mat parameter, copy mat temporary mat , work 1 (detecting persons in image , marking rectangle in them). return temporary mat. there has wrong memory allocation/deallocation of these mat can't find answer this. wrong in code sure can me solve breakpoint. in advance answering. mat predetection(mat &frame){ mat rois; mat frametemp; frame.copyto(frametemp); // hog people detections hogdescriptor hog; static vector<float> detector = hogdescriptor::getdefaultpeopledetector(); if (!detector.size()) { fp

opencv - Streaming from DSLR (EDSDK) to Open CV in real time -

i have found 10 questions on this theme couldn't answer them, sorry. i trying make open cv application run input dslr camera. at moment, using processing, getting camera input syphon, using on processing limited open cv. since need play pose estimative, couldn't on processing. plus, have got 10 fps using syphon, opencv, plus artoolkit libraries...not prototype. i trying use open cv 3.0. got calibration sample file working using webcam. wanted replace webcam input dslr camera using edsdk. pieces of code have found reference disconnected (different versions/languages). the edsdk sample file comes sdk complex, can't deduce code. don't need complexity (ui, buttons, memory card access, etc). live camera input working webcam. this simplest code make retrieve webcam input on opencv. #include "opencv2/opencv.hpp" #import "edsdk.h" //probably working fine using namespace cv; int main(int, char**) { videocapture cap(0); // replace here

Making a karaf/docker service read a configuration file -

starting io8 maven archetype, i'm setting docker container containing karaf container containing cxf restful web service. i want read file when starts parameterizes it. what's procedure setting (a) docker container can receive config file when launched, , (b) finding file inside? to provide configuration file container can use following: docker run -d -v /path/to/your/config.file:/path/inside/the/container/config.file yourimage for more information please refer official documentation on how use volumes .

eclipse - multiple projects jqassistant -

i have multiple maven projects related each other in eclipse. need check projects e.g. cyclic dependencies. have folder contains constraints in every single project. is there possibility check rules (constraints) jqassistant without putting them folder in each project ? maybe there way define rules in root project , let tool know projects has search for. thanks help tino ps: sorry bad english :) there's 1 way share rules between projects creating plugin, i.e. jar file containing rules. the documentation provides examples for the structure of such plugin how plugin used jqassistant. would solve problem?

c# - PcapDotNet An attempt was made to load a program with > an incorrect format -

i'm attempting use pcapdotnet library project, however, exception when launching appliction. i'm using visual studio 2010, winpcap 4.1.3 , pcapdotnet 1.0.2.21772. the exception is: could not load file or assembly 'pcapdotnet.core, version=1.0.2.21772, culture=neutral, publickeytoken=4b6f3e583145a652' or 1 of dependencies. attempt made load program incorrect format. i used 32 bit dll file , problem solved.

java - AndroidManifest.xml not working properly -

we sooooo close finishing our game, ready published through google play having problems making of game services work. we have simple achievement button should call achievement ui, same goes logging in. not prompts when running on our android device. we have playgamesplatform.activate(); in our start function social.localuser.authenticate((bool success) => { // handle success or failure }); connected log in button and social.showachievementsui(); on our show achievement button. our email connected tester on google play , game service api's enabled my real question androidmanifest game play service unity created. this it: <?xml version="1.0" encoding="utf-8"?> <!-- file automatically generated google play games plugin unity not edit. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.example.games.mainlibproj" android:versioncode="

c# - Loading items from entity framework created database into dropdownlistfor helper -

i have been struggling loading display list of items database table created through entity framework. i have found code examples online many have static list of items created , added dropdown list list like. http://www.aspnetmvcninja.com/general/asp-net-mvc-dropdown-list-example . found article scott allen basis have ( http://odetocode.com/blogs/scott/archive/2010/01/18/drop-down-lists-and-asp-net-mvc.aspx ) think issue im not correctly loading data _jobs? here code have in controller , other classes, or guidance appreciated feel im close , yet not. public class jobscontroller : controller { var tasks = db.jobtypes.select(c => new selectlistitem {value = c.jobtypeid.tostring(), text = c.jobdescription}); viewbag.jobtypeallnames = tasks; return view(); } i have 2 classs being used entity framework code first. job class references jobtypes class. public class job { [key] [display(name="job id")] public int jobid { get; set; } [display(name

android - how to resolve fatal exception 6 when multiple video playing at a time in videoview -

this code. public class mainactivity extends activity { listview listview; customlistadapter adapter; private static progressdialog progressdialog; public static int currentitem; public static arraylist<string> videolist; public static mediacontroller mediacontroller ; boolean pauseonscroll = true; boolean pauseonfling = true; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_view); videolist = new arraylist<string>(); mediacontroller = new mediacontroller(mainactivity.this); videolist.add("http://journey.coderspreview.com/uploads/home_video/mov_bbb.mp4"); videolist.add("http://journey.coderspreview.com/uploads/experience/165/video/father-and-young-daughter.mp4"); videolist.add("http://journey.coderspreview.com/uploads/experience/185/video/couple-on-sail-boat.mp4&quo

HTML Tables break layout with latest Chrome Browser 44.0.2403.89 -

i came across strange 1 today, wasted lot of time, first thought module upgraded on drupal or code change. in fact, related google chrome's browser update. currently google chrome's latest version 44.0.2403.89. previous version running 43.0.2357.132. tables on site displaying fine. , actually, after hours of troubleshooting, thought check website safari , sure enough things displaying have. checked firefox, no problem , displayed had. seems google has changed in chrome cause tables break. idea what's going on , how can fix it, or bug latest chrome version? here sample of table being broken chrome: http://www.yoninja.com/jp/browse/results/taxonomy%3a74 see how middle column's table flows under right side bar. if check page previous version of chrome (43.0.2357.132), displays fine. displays perfect in safari , firefox's latest version. gives?!? * update * have temporarily fixed using drupal's view theming , modifying views-view-table--(viewname).tpl

Java 6 pattern matcher performance improvements -

i facing 1 problem java 6 pattern matcher, running matcher against large string (10,000+ characters), site becoming slow. is there way split strings many strings , speedup performance using java6. here code, thing matcher pattern variable (blocked words) the pattern user defined , large text of 100+ words (blocked words) string text = "very large text file content"; string spamregexpdefinedbyuser = "superman"; pattern pattern = pattern.compile(spamregexpdefinedbyuser, pattern.dotall); matcher matcher = pattern.matcher(text); you using solution not designed such tasks. should consider usage of trie data structure @fge mentioned. algorithm solves task called aho-corasick . here existing implementations in java (i've never used of these however): https://github.com/raymanrt/aho-corasick https://github.com/robert-bor/aho-corasick

naudio - Record audio from microphone and speaker in C# -

i'm building application record audio microphone , speaker file (.wav). want application write data file microphone , speaker same merged file. i'm having trouble save merged file both. saves microphone. this code: using naudio.wave; using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; namespace test_recorder { public partial class form2 : form { private wavein recorder; private bufferedwaveprovider bufferedwaveprovider; private savingwaveprovider savingwaveprovider; private waveout player; public form2() { initializecomponent(); } private void button1_click(object sender, eventargs e) { startrecording(); } private void button2_click(object sender, eventargs e) { stoprecording(); } pub

vb.net - VB not stopping at exceptions -

i vb.net, there driving me nuts. many times when exception occurs, continues somewhere else, exiting sub or function, otherwise keeps on rolling. example, using asc() instead of ascw(). didn't throw exception, left function if return executed. meanwhile i'm leaving red dot stop points on has chicken pox trying figure out causing it. is there setting can used used cause vb stop , give line number? have tried using try..catch..finally statement. e.g. ex.string put exception string in message , tell vb line. try 'code here catch ex exception messagebox.show("something went wrong. " & ex.tostring, "data error ") end try

node.js - NodeJS Mongoose Schema 'save' function error handling? -

i having problem outputting error user using res.send(err), being called in callback of mongoose user schemas 'save' function. note when use console.log(err), show's expected error (such username short), res.send outputting '{}' in postman when sending request post values should cause error. also wondering if should doing input validation in router or in mongoose user schemas .pre function? putting validation there seems correct, keeps node router file cleaner. here code in question... app/routes/apirouter.js var user = require('../models/user'); var bodyparser = require('body-parser'); ... apirouter.post('/users/register', function(req, res, next) { var user = new user; user.name = req.body.name; user.username = req.body.username; user.password = req.body.password; user.save(function(err) { if (err) { console.log(err); res.send(err); } else { //user saved

sql server - Better Practice: Delete&Insert vs. Update -

i need parse data (~60000 rows) csv file , write them mssql table (the data date/time , value decimal number). each day 1 such csv file. catch is, in csv file each day have data last 5 days, meaning have data dates wrote in past days, need replace data file. i trying decide between 2 methods: bulk delete of old data need re-write when new csv file, , insert, vs finding each record based on date&time , id , update it. 1.what better practice cause less fragmentation , maintenance issues on database? which be less expensive performance point of view? if comes choosing between two, prefer keeping db in shape on high performance because file written during night anyway. edit: in case i'll add maintenance plan rebuilds indexes on daily basis after bulk deletion , insertion of new data, enough avoid fragmentation issues, or there missing? faster & better way delete old data, import data ssis or bulk insert in case if don't have ssis , rebuild fragmente

jquery - php array merge JSON array data is not getting displayed while executing each loop -

i have 2 php array $pricelist & $product. after merge these array json encoded got json array follows. my php array as: array ( [0] => array ( [pricelist] => array ( [price_id] => 2 [price_name] => abc [date_time] => 2015-07-06 16:22:56 [dealer_type] => dealer [purpose] => dealer [status] => active ) ) [1] => array ( [product] => array ( [cat_id] => 1 [subcat_id] => 3 [brand_id] => 1 [p_code] => pp12567 [name] => akai [model_no] => [specification] => color tv [color] => [quality] => [size] =>

asp.net - timestap time used in instagram API in c# -

i've been cached response instagram api.but response contains specular time format, didn't meet anywhere. "created_time":"1437648595", and question is: how convert template (as string type) system.datetime type? tanx instagram uses value unix time , can double first , can use ; datetime dt = new datetime(1970, 1, 1, 0, 0, 0, 0, datetimekind.utc); dt = dt.addseconds(1437648595).tolocaltime(); it returns 23.07.2015 13:49:55 in time zone in utc+03:00 .

asp.net mvc - In a particular project (MVC5) I could not able to add view as well as in the existing razor view Intellsense is not working in VS 2012 -

one of project build in mvc5 need modify in view, in project not able add view right click option ( both view folder particular controller). copied existing view , rename per requirement, in view intelsence not working. can suggest me patch missing anywhere? thanks in advance.. you have modify vs2012 asp.net-mvc-5-vs2012 visual studio 2012 update 4 web tools 2013.1

php - inner-join doctrine data fetch -

i want fetch data doctrine --- example --- ( mybundle:myentityone ) --- $ id need find name , name connected entiry named " myentitytwo ". than ( mybundle:myentitytwo ) --- need find $item based on name got " myentityone ". can have idea how write query it. what kind of relationship between entityone , entitytwo? first define relationship between them in entityone , entitytwo on onetomany this: 1 entityone have many entitytwo use query in entityrepository on entityone: public function findallitems() { $em = $this->getentitymanager(); $qb = $em->createquerybuilder(); $query = $qb->select("o","t") ->from($this->getentityname(), 'o') ->innerjoin("o.name","t") ; return $query->getquery()->getresult(); }

c# - OneNote API - Cannot get Pages -

Image
i have been playing around onenote api, , have been successful @ getting notebooks,sections,pages. today have been unsuccessful getting pages using section.pagesurl . my request: https://www.onenote.com/api/v1.0/sections/0-2b36c9469d6fe2e!19161/pages where 0-2b36c9469d6fe2e!19161 id of section. this has worked before, has somehow stopped working. right before request notebooks, once finding correct notebook returned list, sections , again find correct section. the response getting 200(ok) empty array: { "@odata.context":"https://www.onenote.com/api/v1.0/$metadata#me/notes/sections('0-2b36c9469d6fe2e%2119161')/pages", "value":[ ] } although can see same notbooks , sections in onenote client. , sections have pages. not getting them more. any reason why happening? could bug on side or there i'm missing? i add bearer token httpclient so: _client = new httpclient(); _client.defaultrequestheaders.authorizatio

r - Custom colours with geom_tile -

Image
if have data frame looks this: name track position color 1 0 1 #009acd 2 b 1 15 #50568b 3 c 2 55 #8c7125 4 0 44 #009acd 5 b 3 98 #50568b 6 d 0 99 #77df98 what correct way use geom_tile each level of name column plotted track x-axis point, position y-axis point, , color actual color of tile? it should this: we need set col , fill argument color variable, use scale_color_identity , scale_fill_identity : library(ggplot2) df1 <- read.table(text = "name track position color 0 1 #009acd b 1 15 #50568b c 0 55 #8c7125 0 44 #009acd b -1 98 #50568b d 0 99 #77df98",header=true,comment.char = "") ggplot(df1, aes(track, position, col = color, fill = color)) + geom_tile() + scale_color_identity() + scale_fill_identity() + #prettify theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank(), axis.ticks.y = ele

java - org.apache.cxf.interceptor.Fault: [warning] org.eclipse.jetty.io.EofException: timeout -

i using apache karaf container along jetty, spring , cxf. , noticed lot of warning while authenticating using spring security. tried find information on web, not find much. experienced similar issue. why such warnings? impact? code snippet public void preparesecuritycontext(servletrequest request, servletresponse response, filterchain chain, meetingref user, string username, string token) throws ioexception, servletexception { // build authentication object user's info abstractauthenticationtoken auth = new usertokenauthentication( username, token, getauthorities(user)); auth.setdetails(new webauthenticationdetailssource() .builddetails((httpservletrequest) request)); // set authentication securitycontext securitycontextholder.getcontext().setauthentication(auth); // continue through filter chain chain.dofilter(request, response); } below snippet of exception stacktrace: 2015-07-23t0