Posts

Showing posts from September, 2013

java - Slick2d drawstring draws a box, no text -

i've seen references error before no solution. where drawing text, there solid box of specified color being drawn. the code this: truetypefont font; font awtfont = new font("arial unicode ms", font.bold, 12); //name, style (plain, bold, or italic), size font = new truetypefont(awtfont, true); //base font, anti-aliasing true/false while (!display.iscloserequested() ) { render(); font.drawstring(10, 10, "abc123", color.black); //x, y, string draw, color //enable these: glenable(gl_blend); glblendfunc(gl_src_alpha, gl_one_minus_src_alpha); //render this: glpushmatrix(); bodyposition = body.getposition().mul(30); gltranslatef(position.x, position.y, 0); gl11.gldisable(gl11.gl_texture_2d); glpopmatrix();

linux - Compare directories with ssh -

i have directory dira on laptop, , directory dirb on remote host can ssh . both directories include subdirectories. i compare full content of 2 subdirectories using ssh. in particular, want know file or subdirectory in dira not in dirb, , other way around. 2 directories large enough not want transfer full files through ssh , compare names , locations. do know how this? thank you. use rsync --dry-run option; like: rsync -ar --dry-run local-dir/ user@remote:remote-dir this output list of files would have been synchronized . if there no output; there no difference. edit : 2 options might consider: --ignore-times : ignore timestamp of local , remote files when comparing files. --size-only : if want speedup rsync command. rsync compares size of files. note error prone (files same size might differ) --itemize-changes : show changes between files you may take @ this anwser

websocket - Difference between Web Socket in Raspberry Pi and Arduino -

i use web socket between raspberry pi , server , works perfect, theory of web socket. but when search web socket arduino found lot of libraries , may of them http post not real web socket. send posts , receive gets, web socket open connection between 2 terminals , send posts , wait message other side. in arduino application need send http requests know state of led server, leads traffics, when using web socket server sends message arduino when state changed, , arduino waits message. does 1 know real web socket library arduino? there no "real" websocket library arduino. i recommend using raspberry pi farther arduino because more stable arduino since has operating system , supports multi processes ( unlike arduino runs 1 process @ time). if compare price of rpi , arduino build in wifi find have same price approximately.

Firebase Auth Signout Error - Swift -

when try sign out user using method, error: fatal error: 'try!' expression unexpectedly raised error: error domain=firautherrordomain code=17995 "an error occurred while accessing keychain." userinfo={nslocalizeddescription=an error occurred while accessing keychain., error_name=error_keychain_error, nslocalizedfailurereason=secitemdelete (-34018)}: file /library/caches/com.apple.xbs/sources/swiftlang/swiftlang-800.0.33.1/src/swift/stdlib/public/core/errortype.swift, line 146 func logout() { try! firauth.auth()!.signout() } i didn't find on web addressing error.. know problem? you need enable keychain sharing entitlement. from project navigator, go project settings , find target. under capabilities tab, turn on keychain sharing. i had same problem trying create new user. i'm not sure why firebase needs permission now, works.

javascript - Why does my jasmine tests fail on this directive? -

i have built angular directive oninputchange should fire callback when users changes value of input either clicking outside of input (blur) or hitting enter . directive can used like: <input type="number" ng-model="model" on-input-change="callback()"/> it uses following code: app.directive('oninputchange', [ "$parse", function ($parse) { return { restrict : "a", require : "ngmodel", link : function ($scope, $element, $attrs) { // var dirname = "oninputchange", callback = $parse($attrs[dirname]), evtns = "." + dirname, initial = undefined; // if (angular.isfunction(callback)) { $element .on("focus" + evtns, function () {

c - Thread-safe implementation of is_empty in a queue datastructure -

i trying create thread-safe queue, , while bulk of operations queue *queue_create_empty(void); void queue_enqueue(queue *q, const void *value, const size_t value_size); void *queue_dequeue(queue *q); void queue_destroy(queue *q, void (*freefunc)(void *value)); i finding 1 particularily elusive, bool queue_is_empty(const queue *q); in particular if function definition is bool queue_is_empty(const queue *q) { assert(q); pthread_mutex_lock(q->mutex); bool ret = q->is_empty; pthread_mutex_unlock(q->mutex); /* * here there possibility of race condition, queue may * empty @ point, , therefore return value misleading */ return ret; } then there possibility of race-condition. last comment here there possibility of race condition, queue may empty @ point, , therefore return value misleading describes issue. i have defined datastructure such, typedef struct queue { element *head; element *

php - How to get header values in laravel testing -

this how response in test case $response = $this->call('post','/api/auth/login',['username'=>'xx','password'=>'xxx'], [/* cookies */], [/* files */], ['http_clientsecret' => 'xxxx']); then can response content this $response->getcontents() i want know how response header data ? do like: $response->headers->get('content-type'); or whatever need. dd($response->headers); might useful if want see in response headers. $this->call() returns response extending symfony's response , headers object responseheaderbag has following methods .

Android Firebase database: how to retrieve multiple rows? -

Image
this database structure: what trying do, fill listview elements in database, in custom layout 3 textview each line: title date text title date text title date text i tried custom adapter, extending firebaselistadapter<>,with class store data, can't solve problem. can me, please? firebasedatabase database = firebasedatabase.getinstance(); databasereference myref = database.getreference(); myref.addlistenerforsinglevalueevent(new valueeventlistener() { @override public void ondatachange(datasnapshot datasnapshot) { if (datasnapshot.haschildren()) { (datasnapshot datasnapshot1 : datasnapshot.getchildren()) { your_module_obj= datasnapshot1.getvalue(your_module_class_name.class); } } } @override public void oncancelled(databaseerror error) { log.w("dd", "

Azure Sql Database replication - 9 1/2 hour delay + cant remove the replica -

Image
note this getting quite long try , re-edit parts through day. these databases no long active, means can play them work out going wrong. the thing left answer: given 2 databases running on azure databases @ s3 (100 dtu). should secondary ever behind primary database? while dtu hammered 100% on half day. reason dtu being hammered being io writes mostly. the start: few problems. dtu limits hit on monday, tuesday , extent on wednesday significant amount of time. 3pm utc - 6am utc. problem 1 (lag in data on secondary) : had appeared have caused lag of data in secondary of 9 1/2 hours. servers being spammed updates causing lot of io updates. 6-8 million records on 1 table 24 hour period example. problem drove reason post: shouldn't these more in sync? the data became out of sync on monday morning , continued out of sync until friday. on thursday new databases started replace these standard sql databases , left rot. well, me experiment @ least. the applicati

php - Multiple API requests with OVH API wrapper -

i trying create web interface interact ovh's api using official php wrapper. first ip list : $ips = $ovh->get('/ip'); but then, each ip address want related informations , put in table, : foreach ($ips $ip) { $ip_infos = $ovh->get('/ip/' . $ip_api); } it works, each call, have wait previous 1 come back. takes 30~40sec load full page because of ~100 ip. is there way send 1 big request instead of many little ones ovh php wrapper ? or maybe multithreading ? speed requests. unless php engine build "zts" (zend thread safety) , have pthread extension installed, can not achieved using official php wrapper. if using plain php mandatory, may patch wrapper use curl multi. see http://www.phpied.com/simultaneuos-http-requests-in-php-with-curl/ example. another way use hybrid approach using client side js. the php returns page list of ips the js requests ips details asynchronously this trigger multiple parallel requests , im

java - resolve dependencies from workspace projects in IDEA -

Image
i used work in eclipse, , know how can activate settings there. how can in idea? this default setting in intellij idea. however, applies maven modules within same intellij project (window). when importing multiple maven modules, intellij suggests creating separate intellij project each, can confusing. instead, however, can import multiple modules same intellij project via: file > new > module existing sources... or can achieve same result using + button in maven projects sidebar.

c# - MS sync with WCF: The request operation did not complete within the allotted timeout of 00:01:00 -

i'm quite new sync framework, have quite challenging task @ hand...we developing application sync client/server databases need use http protocol (using services) access server database. getting exception the request channel timed out while waiting reply after 00:00:55.1217210. increase timeout value passed call request or increase sendtimeout value on binding. time allotted operation may have been portion of longer timeout. stacktrace: server stack trace: @ system.servicemodel.channels.requestchannel.request(message message, timespan timeout) @ system.servicemodel.dispatcher.requestchannelbinder.request(message message, timespan timeout) @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs, timespan timeout) @ system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation) @ system.servic

excel - count blanks per row filtered on name -

greeetings i trying create formula in excel counting blank cells (that easy part ;)) but find number of blank cells per name in rowa. sheet1 b 1 *name* *data* 2 brian data1 3 niels data1 4 kurt data2 5 kurt 6 brian data3 7 brian 8 niels data2 should result in: sheet2 b 1 name percent empty cells 2 brian 50% 3 niels 0% 4 kurt 50% since 50 percent of brians fields empty. since 50 percent of kurts fields empty. anyone? to count empty cells, assuming f2 name value want up: =countifs(a:a,f2,b:b,"") to percentage of empty cells: =countifs(a:a,f2,b:b,"")/countif(a:a,f2)

Ignoring SCSS/SASS partials in Gulp task -

i've got following structure: ├── assets │   └── css │      └── output.css ├── gulpfile.js ├── index.html ├── package.json └── scss ├── some-other.css ├── _base.scss ├── _config.scss ├── _helpers.scss ├── _home.scss └── main.scss i'm using gulp compile css , scss files in scss/ 1 file in assets/css/ . relevant task gulpfile.js : gulp.task('build-css', function() { return gulp.src(['scss/**/*.scss','scss/**/*.css']) .pipe(concat('output.css')) .pipe(sass()) .pipe(gulp.dest('assets/css')); }); the problem scss/sass partials (those files starting underscore in scss/ fed through the task , fail. i'd ignore files anywhere in scss/ start underscore , end .scss . i've taken @ following wasn't able work: gulp doesn't ignore sass partials underscore how can use glob ignore files start underscore? it seems mislead , using suggestions in linked questions able wor

r - how to find index of similar strings from two data frames -

i have 2 df, want know index of strings in df2 matches df1 df1 <- structure(list(ids = structure(c(2l, 4l, 3l, 5l, 1l, 6l), .label = c(" p30561,p53762", " p41182,p56524", " p41182,q8wui4", " p41182,q9uql6", " q92793,q09472,q9y6q9,q92831", " q15021,q9bpx3,q15003,o95347,q9ntj3"), class = "factor")), .names = "ids", class = "data.frame", row.names = c(na, -6l)) my df2 looks below df2 <-structure(list(v1 = structure(c(1l, 2l, 5l, 4l, 3l), .label = c("p41182", "q15003", "q9bhx3", "q9bpxh", "q9ntj3"), class = "factor")), .names = "v1", class = "data.frame", row.names = c(na, -5l)) in c

xml - C++ Boost loop through unknown ptree and list values of attributes -

i'd parse random xml files nodes containing specific attribute , retrive values of attribute. use case there many xml different nodes attribute retrieve known. here example of file : <node> <container> <object attribute="value" /> <object attribute="value" /> <container/> <supercontainer> <subcontainer> <otherobject attribute="value" /> <subcontainer/> <supercontainer/> </node> this have using boost property_tree don't know in loop: ptree pt; read_xml(xml_file, pt); boost_foreach(boost::property_tree::ptree::value_type &ele, pt) { //no idea } ideas welcome. thanks ok, solved using following : void recursemanifest(ptree &pt, int lvl) { (ptree::iterator current = pt.begin(); current != pt.end();) { try { std::cout << current->second.get<std::string>("<xmlattr>.attribute") << st

java - JavaFX CheckBoxTreeItem detect when checkbox selected or unselected -

how detect when checkboxtreeitem selected or unselected? do use event handler or change listener or something? event checking for? there list of events can listen checkboxtreeitem.selection or something? thanks you go see javadoc: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/checkboxtreeitem.html you'll see there method called 'addeventhandler', think it's you're looking for. public <e extends event> void addeventhandler(eventtype<e> eventtype, eventhandler<e> eventhandler) 'registers event handler treeitem. treeitem class allows registration of listeners notified number of items changes, position or if values change'

php - How to convert an html content to wordpress -

i have following html code tried place in wordpress page. html: <div class="hovereffect"> <img src="<?php echo get_template_directory_uri() ?>phone.jpg" > <div class="overlay"> <h2>hover effect 9</h2> <a class="info" href="#">link here</a> </div> </div> at moment in site except image not show. how can use code wordpress in way can display image? i think forget tell place should images from. , forgetting semicolon after get_template_directory_uri();. this example, here i'm telling folder image from: <img src="<?php echo get_template_directory_uri(); ?>/assets/images/your_image.jpg">

loops - VBA to increase the year after it finds a D -

i have data j14(january 14) until d14 in column c2:c13. want date increase 1 each time ran goes d14 j15 f15 etc sheet 5 contains j-d in column a1:12 , 14 in b1:b12 range c2:c13 drop down 1 each run also below have works jan15 sub test() dim srchrng range, cel range dim lastrow string lastrow = activesheet.cells(rows.count, "c").end(xlup).row + 1 set srchrng = range("c2:c13") each cel in srchrng if instr(1, cel.value, "d") > 0 cel.offset(1, 50).value = range("c" & lastrow).select activecell.formula = "=sheet5!a1&sheet5!b1+1" end if next cel end sub

PHP DOMDocument : How to parse xml/rss Tags with CUSTOM field names? -

i have below rss parse, like: <?xml version="1.0" encoding="utf-8"?> <rss xmlns:x-wr="http://www.w3.org/2002/12/cal/prod/apple_comp_628d9d8459c556fa#" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:x-example="http://www.example.com/rss/x-example" xmlns:x-microsoft="http://schemas.microsoft.com/x-microsoft" xmlns:xcal="urn:ietf:params:xml:ns:xcal" version="2.0"> <channel> <item> <title>about apples</title> <author>david k. lowie</title> <x-trumba:customfield name="description">this description apples</xcal:customfield> <x-trumba:customfield name="category">fruits,food,apple</xcal:customfield> </item> <item> <title>about oranges</title>

php - codeigniter upload file redirects to unknown link -

this controller public function upload_file(){ $this->load->helper('form'); $this->load->helper('url'); // set path store uploaded files $config['upload_path'] = './uploads/'; // set allowed file types $config['allowed_types'] = 'pdf'; // set upload limit, set 0 no limit //$config['max_size'] = 0; // load upload library custom config settings $this->load->library('upload', $config); if($this->upload->do_upload()){ $this->add_view(); }else{ print_r('x'); exit(); } } and view echo form_open_multipart('pdfuploads/upload'); the problem don't know why redirected link http://localhost/tlc_hr/pdfuploads/upload give correct controller , action here echo form_open_multipart('controller/action'); and mentioned controller action upload_file()

Cannot set readonly property: class for class in groovy when initializing with map -

i trying create class , initialize values default value. have pojo in groovy, , have created initializewithdefaults method initialize values. trying pass map in constructor class mds { string id string mdsname string name string mdstype string mdscontext string mdsdatetime string mdsdomain public static void initializewithdefaults() { mds datasegmentiddef = new mds() map<string, object> prop = datasegmentiddef.properties prop.each { map.entry entry-> entry.value = "default-${entry.key}" } mds datasegmentid = new mds(prop) } } but keep getting error in thread "main" groovy.lang.readonlypropertyexception: cannot set readonly property: class class: com.ambuj.domain.mds you getting error, trying override class propery of *hashmap provided getclass() , of course not writeable. you should take care, properties trying copy. simple experiment in groov

javascript - Dynamically add array elements to JSON Object -

i'm creating json object array , want dynamically push data json object based on values array. see code better understanding of problem... for(i=0;i<duplicates.length; i++) { var request = { "name": duplicates[i].scope, "id": 3, "rules":[ { "name": duplicates[i].scope + " " + "op sdr sync", "tags": [ { "tagid": 1, "variables":[ { "variable": duplicates[i].variable[j], "matchtype": "regex", "value": duplicates[i].scopedef } ], "condition": false, }, { "tagid": 1, "condition": false, } ], "rulesetid": 3, } ] } } i take object properties duplicates array can

vba - Paste one array (single dimension) with >100K item into a excel range -

i posted same question on stackoverflow thread think here correct place ask (if not right, admin please remove it).every day need format date imported as400 (data, time,..). usualy (for thousands of record) use code. public sub cfn_formatdate(control iribboncontrol) application.screenupdating = false dim ur long, x long dim mycol integer mycol = activecell.column ur = cells(rows.count, mycol).end(xlup).row x = 2 ur if not isdate(cells(x, mycol)) select case len(cells(x, mycol)) case 8 cells(x, mycol) = dateserial(left(cells(x, mycol), 4), mid(cells(x, mycol), 5, 2), right(cells(x, mycol), 2)) case 6 cells(x, mycol) = dateserial(left(cells(x, mycol), 2), mid(cells(x, mycol), 3, 2), right(cells(x, mycol), 2)) end select end if next x columns(mycol).numberformat = "dd/mm/yyyy;@" columns(mycol).entirecolumn.autofit application.screenupdating = true end su

c# - How to Remove number from Extension with string? -

i want remove number extension string in c#. for example : "url1234.pdf" want last answer looks "url.pdf" thank contribution var filename = ""; if (file != null && file.contentlength > 0) { filename = system.io.path.getfilenamewithoutextension(file.filename); //path.getfilename(file.filename); var extension = system.io.path.getextension(file.filename); dbconnect.opendb(); dbconnect.dbselect("select max(id) id tblfileupload"); if(dbconnect.dr.read()) { filename += dbconnect.dr["id"].tostring(); } dbconnect.closedb(); var path = path.combine(server.mappath("~/file/"), filename+extension); new fileuploadlayer().save("aa", filename, file.contentlength); file.saveas(path);

hadoop - HiveServer2 - Hue connections -

we have hive running in cdh 5.4.5. in last few months, suffer lot of "silent crashes" - queries getting stucked , workflows in oozie run slower usual till reset hs2 , runs normally. our main thesis there many connections hs2, causing overhead , hs2 crashing. after monitoring number of connections using netstat, saw number of connections when problem occured 250 instead of 30. in addition, saw 70% percent of connections hue's. when compared number of hue connections number of queries done, didn't see correlation (oozie workflows not identified hue connection possible activity hs2 connections hive/impala queries). so, have question hue connections. on actions / events hue open new connection hiveserver2? every time query window opened? every time query launched?

node.js - gremlin create edge while satisfying multiplicity constraint,if violated drop existing edge then create else just create it -

i struggling quite time solve problem like i have graph in there defined multiplicity constraints . when new edge being created either new edge can created or can violate multiplicity constraint due data being changed. now when data has changed need delete/drop existing edge , create new one. problem. not able drop , create edge in single go. what have been trying sending query gremlin server via node-gremlin module of nodejs. relation trying create [merchant]-1--(sells)--*-> [product] . in given scenario 1 merchant can sell product . when other merchant starts selling product. need update reflect new relation between them. may case no 1 selling new edge has created. created edge returned. 29 jun 13:41:04 - [error: edge given label exists on in-vertex , label [sells] in-unique (error 597)] 29 jun 13:41:04 - { text: 'g.v().has(sidkey,sidval).ine(edgelabel).drop();graph.tx().commit();g.v().has(fidkey,fidval).oute(edgelabel).inv().has(sidkey,sidval).trynext().orelseget

Gradle transforms https maven repository to http 443 request -

my build.gradle configured as: repositories { mavenlocal() mavencentral() jcenter() maven { url "https://<myrepo>/repo" } } however, $ gradle build --debug gives me: [...] 12:01:58.487 [debug] [org.gradle.api.internal.artifacts.ivyservice.ivyloggingadaper] setting 'https.proxyhost' '<myrepo>' [...] 12:01:59.070 [debug] [org.gradle.internal.resource.transport.http.httpclienthelper] performing http get: https://repo1.maven.org/maven2/org/xbib/archive/maven-metadata.xml 12:01:59.316 [debug] [org.apache.http.client.protocol.requestaddcookies] cookiespec selected: default 12:01:59.324 [debug] [org.apache.http.client.protocol.requestauthcache] auth cache not set in context 12:01:59.325 [debug] [org.apache.http.impl.conn.poolinghttpclientconnectionmanager] connection request: [route: {tls}->http://<myrepo>:443->https://repo1.maven.org:443][total kept alive: 0; route allocated: 0 of 2; total allocated:

php - Update a field in mongodb document stored in a array of array in yii2 model -

i have database in mongodb restaurants. sample database follows. { "restaurantid":"1", "menu": { "menucategory": [ { "menucategoryid":"12" "menuitems": [ { "menuid":"123", "likescount":0 }, { "menuid":"1234", "likescount":0 } ] }, { "menucategoryid":"1290" "menuitems": [ { "menuid":"2222", "likescount":0 }, { "menuid

iCalendar events imported in Google Calendar are empty -

Image
when importing ics file ("icalendar") google calendar, import proceed , event appear in calendar, fields of events empty. the information displayed "busy" ("occupé(e)" on screenshot). no error message displayed during import. the ics file validated fine multiple validation libraries , online tools. this caused in case class property of events being private or confidential . see rfc 2245 , section 4.8.1.3 "classification". since ics added google calendar via public link, google considers should not read and/or display content of events not marked public . so solution change class of events class:public note misinterpretation of spec, stated that: [...] due "blind" nature of exchange processes using memo, these access classifications cannot serve enforcement statement system receiving icalendar object . rather, provide method capturing intention of calendar owner access calenda

jira - How to use Active Objects with annotation in atlassian sdk -

i jira plugin , need use active object. (jira v7.1.8) in official documentation outdated. written using xml, if understood correctly, used atlassian spring scanner (i use v1.2.3) following manual https://bitbucket.org/atlassian/atlassian-spring-scanner/src/1.2.x/readme.md?at=1.2.x&fileviewer=file-view-default nothing succeeded. atlassian-plugin.xml <atlassian-plugin key="${project.groupid}.${project.artifactid}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> <param name="plugin-icon">images/pluginicon.png</param> <param name="plugin-logo">images/pluginlogo.png</param> </plugin-info> <!-- add our

regex - Mysql find records with double letters in them -

guys need query list me records in there @ least 2 of same letter. unfortunately "regexp '[a]|[b]|[c]|[d]|[e]|[f]|[g]|[h]|[i]|[j]|[k]|[l]|[m]|[n]|[o]|[p]|[q]|[r]|[s]|[t]|[u]|[v]|[w]|[x]|[y]|[z]';" this 1 not work me, neither same expession [a]{2} attributes. any suggestions? help you can use query: select some_fields some_table field regexp 'a{2}|b{2}|c{2}|d{2}|e{2}|f{2}|g{2}|h{2}|i{2}|j{2}|k{2}|l{2}|m{2}|n{2}|o{2}|p{2}|q{2}|r{2}|s{2}|t{2}|u{2}|v{2}|w{2}|x{2}|y{2}|z{2}'; it return records in some_table field contains 2 identical characters side-by-side. examples of return (based on 1 of local mysql tables): hobbit abba isaac scrabble in case characters don't have together, may use other query: select some_fields some_table field regexp 'a.*a|b.*b|c.*c|d.*d|e.*e|f.*f|g.*g|h.*h|i.*i|j.*j|k.*k|l.*l|m.*m|n.*n|o.*o|p.*p|q.*q|r.*r|s.*s|t.*t|u.*u|v.*v|w.*w|x.*x|y.*y|z.*z'; examples of return (based on 1 of local mys

jquery - Bootstrap denies js "swap css file" script? -

i have tested script, , seems work fine until add bootstrap site. the intention animate header. on bootstrap have positioned first entry after <body> , before <nav> , moved around couple times trying different stuff. i'm pretty newbie, can't think of excluded in bootstrap situation. fyi i'm loading jquery slider anyways, it's not included action. doesn't seem jsfiddle circumstance, since involves 2 css files, right? <script src="js/jquery-1.11.3.min.js"></script> <script src="js/bootstrap.js"></script> <script> $(window).scroll(function() { var scroll = $(window).scrolltop(); if (scroll >= 50) { $('link[href="head1.css"]').attr('href','head2.css'); } else { $('link[href="head2.css"]').attr('href','head1.css'); } }); </script>

glsl - Push constant limit in geometry shader? -

i have geometry shader following push constant block: layout(push_constant) uniform instance { mat4 vp; vec3 poscam; float radius; float curvature; } u_instance; the push constants defined in pipeline layout this: uint32_t offset = 0; uint32_t size = 21 *sizeof(float); vk::pushconstantrange range {vk::shaderstageflagbits::egeometry,offset,size}; however, vulkan validation layers throw error: push constant range covering variable starting @ offset 0 not accessible stage vk_shader_stage_geometry_bit what 'not accessible' mean here? why wouldn't accessible? if move push constants different stage (e.g. fragment or vertex shader), no error occurs. additionally, error on nvidia geforce gtx 650 ti. i've tried on amd card, worked fine. is there kind of limitation on push constants geometry shaders? i've checked limitations nvidia gpu, total max push constant size 256 bytes, , geometry shaders supported. can't find in vulkan specificat