Posts

Showing posts from January, 2010

Referencing a nuget package create by an asp.net 5 class library from a Win Forms app targeting .Net 4.0 Client Profile -

i have asp.net 5 class library containing object model need share winforms application targeting .net framework 4.0 client profile. i have created nuget package asp.net 5 class library , tried referencing nuget package winforms application. when adding referece following error: could not install package 'package name 1.0.0'. trying install package project targets '.netframework,version=v4.0', package not contain assembly references or content files compatible framework. more information, contact package author. i tried adding dnx40 target framework in "frameworks" section of project.json file shown below. { "authors": [ "author" ], "dependencies": { }, "description": "shared object models", "frameworks": { "dnx40": { }, "dnx451": { }, "dnxcore50": { "dependencies": { "system.collections": "4.0.10

javascript - How to connect the ng-model of two different controller in angularjs? -

i have 1 table fill json data. after filling table, if 1 wants modify row pop-up window, can modify. what doing: made 2 controller, want pass ng-model value 1 controller other controller controller window. please tell me how connect these 2 controller. please see running example, http://plnkr.co/edit/6lrt1b1sycex0lvcjizz?p=preview index.html <!doctype html> <html> <head> <title>todo api client demo</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script> <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.

Get double variable when sent variable to next viewcontroller swift -

i create global variable after import statement: var kontenid = "" var judulkonten = "" then sent freetiles view controller (other view controller) through tableview , prepareforsegue: func tableview(tableview: uitableview, didselectrowatindexpath indexpath: nsindexpath) { //let cell = tableview.dequeuereusablecellwithidentifier(reusecontentfreeidentifier, forindexpath: indexpath) as! freetableviewcell var contentku = contents[indexpath.row] contentmodel kontenid = contentku.id judulkonten = contentku.title performseguewithidentifier("lemparkonten", sender: self) } override func prepareforsegue(segue: uistoryboardsegue, sender: anyobject?) { // new view controller using segue.destinationviewcontroller. // pass selected object new view controller. if (segue.identifier == "lemparkonten") { var svc = segue.destinationviewcontroller as! freetiles; svc.idcontent = kontenid svc.namacont

php - Searching for information about using info from form -

i modding system. , need information. situation - have got login form, , have got index file checks inputed data if ( username, password ). have created new select-box next inputs like: username:</p> password: </p> language: select box </p> i understood index.php file checks if username , password good, checks ain't using info... so, in order use language select box need use info not check. how use select-box value? tried doing $_post['language'], doesn't help. here index.php file https://jsfiddle.net/e40bsxox/1/ here html file https://jsfiddle.net/fd8x94j2/1/ in html file code have given select field name 'kalba'. in php file selected value using name as, in html file, <select type="language" id="kalba" name="kalba" class="text"> <option value="lt_lt" selected="selected">lietuvių</option> <option value="en_us">anglų</

Error: argument of length 0 returned in R -

background: i working functional diversity index fris who's r script provided @ : http://www.irstea.fr/la-recherche/unites-de-recherche/hyax/ecology-schleuter-2010 i have had number of problems script running errors think have found solutions to, novice in r , cannot fix latest one. it involves use of 3 data.frames number of each species of animal @ each habitat type, , max , min values of trait each species such as: abundance1 location s1 s2 s3 s4 s5 s6 s7 s8 s9 palm 6 3 0 1 0 16 0 2 3 forest 2 0 2 1 2 1 3 0 2 max1 species max s1 44.7344 s2 22.6966 s3 75.1817 s4 17.8176 s5 50.7472 s6 33.3660 s7 14.3341 s8 3.3947 s9 10.2510 min1 species min s1 25.3038 s2 19.5750 s3 60.5880 s4 16.2864 s5 46.1040 s6 10.9056 s7 8.7570 s8 2.1289 s9 4.1730 what i'

sungridengine - Purging Dead Nodes from SGE -

my qstat -g c indicates have dead nodes (formally ' cdsue '): cluster queue cqload used res avail total aoacds cdsue -------------------------------------------------------------------------------- all.q 0.11 18 0 9 37 0 10 is there easy way purge or remove these nodes queue? sge smart enough not allocate work them clutter various displays. i hardway. kill jobs "running" or stuck on dead nodes. run qconf remove node pipeline - qconf -dattr hostgroup hostlist <nodealias> @allhosts' qconf -purge queue slots all.q@<nodealias> qconf -dconf <nodealias> qconf -de <nodealias>

Hadoop services are not getting stated if i use particular zlib library -

i'm trying use different zlib library hadoop. when i'm using particular library, hadoop services not getting started. services starting if use different library. difference between libraries are, not working 1 using device file send data kernel driver compression. issue ? , error log in hadoop.

linker - How to fix the armadillo library to c++ -

i'm using macbook program bits of code here , there. wanted in c++ armadillo library. after installation , doesn't seem work. for instance can write arma::mat variable, etc when run code in textmate: vec q = randu<vec>(5); cout << normalise(q); i error output: "undefined symbols architecture x86_64: "_wrapper_dgesdd_", referenced from: void arma::lapack::gesdd<double>(char*, int*, int*, double*, int*, double*, double*, int*, double*, int*, double*, int*, int*, int*) in test-56d704.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) rm: /var/folders/sh/vr2n15ln47j0k33yh1j0_tyw0000gn/t/test.cpp.sfz5vezn: no such file or directory the weird thing if don't use normalise or norm functions compiles well. i include library #include '/usr/local/include/armadillo' edit: i've installed armadillo package both trying " brew install armadillo &q

java - Android: Notification is displaying more than once -

i need show notification @ 3 everyday. working fine , sending notification around 3 am. when test in phone notification comes immediately. read if time crossed show notification. fine this. issue: when click notification opens activity correctly. after few seconds loading notification. if click again closing notification , creating new 1 after few seconds. here code: 1. in activity oncreate() calendar calendar = calendar.getinstance(); // calendar.set(calendar.month, 10); // calendar.set(calendar.year, 2014); // calendar.set(calendar.day_of_month, 13); calendar.set(calendar.hour_of_day, 3); calendar.set(calendar.minute, 0); calendar.set(calendar.second, 0); calendar.set(calendar.am_pm, calendar.am); intent myintent = new intent(litcalactivity.this, myreceiver.class); pendingintent = pendingintent.getbroadcast(litcalactivity.this, 0, myintent, pendingintent.flag_one_shot); alarmmanager alarmmanager = (alarmmanager) getsystemservice(alarm_service); alarmmanager.setinexactrepea

html - Lazy loading Angular views -

i have calculator site utilizing angular. 1 page responsive , broken 7 sections of different calculators based on want. lazy load them cut down on loading @ once. <body ng-app> <div id="wrapper"> <section id="index page">1</section> <section id="calc 1">2</section> <section id="calc 2">3</section> <section id="calc 3">4</section> <section id="calc 4">5</section> <section id="calc 5">6</section> <section id="calc 6">7</section> <section id="calc 7">8</section> </div> </body> i'm looking load default index.html page initially, select calculator you'd page load other view clicking button (or link), nice fade in/out , load interactive items. i'm sort of looking similar picture, describes want minus user editing pages (they inputting values cal

php - Headers already sent running unit tests in PHPStorm -

Image
i'm trying use integrated method of running phpunit tests within phpstorm , having issues getting work. php: 5.6.10 phpunit: 4.5.1 phpstorm: 8.0.3 thanks https://stackoverflow.com/a/30345501/1636594 learned had downgrade phpunit version < 4.6. finding https://stackoverflow.com/a/25903332/1636594 tried both @runinseparateprocess notation , strerr="false|true" in configuration. process isolation, saw same issue user (basically phpunit --help instead of each test in isolation). stderr="false|true" same either way (cannot modify header information... blah blah). the tests run fine without process isolation or stderr set either 1 of true or false, both give successful passing tests. for i'm running tests in terminal, able use coverage feature useless line of code after header call.

How do I change change the text on a label to an input or raw_input from shell in python? -

i want make basic program using python use raw_input() or input() ask person input string shell , not in python application window. have code: import sys tkinter import * gui = tk() gui.geometry('450x450+200+200') gui.title = ('lol') label = label(text='my label').pack() def ask_text(): new_text = input('input text here:\n') change_text(new_text) def change_text(new_text): label2 = label(text=new_text).pack() if new_text != 'stop_program': ask_text() ask_text() when run this, python application keeps bouncing on mac, , ask me input app opens after put stop_program. want open , change label instantly after type put. how preferably using tkinter? thanks i modified code: from tkinter import * class mywindow(frame): def __init__(self, parent, *pargs, **kwargs): frame.__init__(self, parent, *pargs, **kwargs) self.label_text = stringvar() self.label_text.set("my label

java - Dropdown selection in selenium -

below html code: <div class="dropdown-datepicker ng-scope" ng-class="{invalid : !o[typeofdate].valid && formdata[typeofdate], valid : o[typeofdate].valid}" label-since-month="seit monat" label-since-year="seit jahr" month-placeholder="monat" year-placeholder="jahr" label-datepicker=" seit" date="employedsince" tooltip="bitte geben sie hier den monat und das jahr an, seit dem sie in dem unternehmen beschäftigt sind" set-tabindex="0" r-dropdown-datepicker=""> <p class="dropdown-date-label bold italic ng-binding"> seit</p> <div class="custom-select white month"> <span class="chevron-thin-down">-</span> <select class="special-valid ng-pristine ng-valid ng-scope ng-touched" ng-blur="isslidevalid(slider.index)" ng-model="o[typeofdate].month" name="years&quo

gis - How to create a stylesheet in Mapnik -

this question mapnik experts (node-mapnik experts more welcome), gis experts or xml experts. stylesheet.xml file, don't know how make own stylesheet. there automated generation stylesheet specific place or city? can't find tutorials how make stylesheet. can tell me how create own stylesheet? i'm complete beginner in mapnik , gis in general. thanks! i'm using node-mapnik , trying learn how create image specific place let's new york city. a loosely structured answer loosely structured question... tilemill place start if have geo-spatial dataset (shapefile, geojson, etc). with tillmill can load dataset, view map, create/edit stylesheet style map, , export stylesheet use own application.

ios - Reduce unwanted motion blur while using GPUImage to capture -

i'm writing app in swift, , using gpuimage capture , manipulate images. i'm looking way decrease exposure time reduce motion blur. if move in frame looks blurry. have lighting, i'm not sure why exposure isn't fast enough. i'm doing setup gpuimage: self.stillcamera = gpuimagestillcamera(sessionpreset: avcapturesessionpreset640x480, cameraposition: .front) self.stillcamera!.outputimageorientation = .portrait i setup filters want (a crop , optionally effects). start preview: self.stillcamera?.startcameracapture() and capture frame: self.finalfilter?.usenextframeforimagecapture() var capturedimage = self.finalfilter?.imagefromcurrentframebuffer() the reason you're seeing such long exposure times you're using gpuimagestillcamera , preview capture frames. gpuimagestillcamera uses avcapturestillimageoutput under hood, , enables live preview feed that. photo preview feed runs @ ~15 fps or lower on various devices, , doesn't provide clea

ajax - Javascript recursive function with defer not returning -

i got recursive function. can see loop through when data return null did not return promise when data not null after done recursive task. seem when finish doing recursive task, promise lost somewhere. point out did wrong here? var callrq1 = function(globalsystemid, globalgraphid, start, end, lastcheck) { var datetimeformat = "yyyy-mm-dd hh:mm:ss"; var d1 = new $.deferred(); var request1 = "../system/" + globalsystemid + "/highcharts.xml?type=" + globalgraphid + "&start=" + start + "&end=" + end; var requeststring1 = makejson(request1); //this makejson function ajax , return promise requeststring1.done(function(data) { if (data != null) { d1.resolve(data); } else { var theend = moment(lastcheck).format(datetimeformat); var newstart = moment(end).format(datetimeformat); var newend = moment(end).add(1, 'weeks').format(datetimeformat); if (newend <= theend) { /

ios - Differences between Using NSJSONSerialization.dataWithJSONObject and dataUsingEncoding to make up the HTTP body in Swift -

i have seen 2 kinds of methods make http body. first 1 is: let url = nsurl(string: "http://example.com") let request = nsmutableurlrequest(url: url!) request.httpmethod = "post" let poststring = "id=13&name=jack" request.httpbody = poststring.datausingencoding(nsutf8stringencoding) second 1 is: let url = nsurl(string: "http://example.com") let request = nsmutableurlrequest(url: url!) request.httpmethod = "post" let params = ["id":"13", "name":"jack"] dictionary<string, string> var err: nserror? request.httpbody = nsjsonserialization.datawithjsonobject(params, options: nil, error: &err) when directly print out request.httpbody data different. wondering there differences between these 2 methods in terms of implementation of server side? assuming i'am using php. there're 2 format data. in code using poststring.datausingencoding send

javascript - Bootstrap navbar width / max-width -

my bootstrap navbar links many, wraps (i think @ 970px) - don't want wrap, width of links in total 1020px. i've searched high , low answer :( when add width of 1020px .navbar .navbar-collapse nav bar little off center - how can 1020px width , stay centered? .navbar .navbar-collapse { text-align: center; width:1020px; } then how navbar not wrap collapse tablet? **edit: here's html - (link names removed). <!-- navigation --> <div class="container"> <!-- fixed navbar --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">toggle navigati

c# - Winforms CL20R3 with CefSharp Project -

i have similar problem question c# windows appication event: clr20r3 on application start the error this: application: mantenedorplanesmain.exe framework version: v4.0.30319 description: process terminated due unhandled exception. exception info: system.io.filenotfoundexception battery: in cefsharp.example.cefexample.init () in cefsharp.winforms.example.program.main () but on machines, example, on computer can use program without problem , in computer of office too. i tried find source of problem here in stackoverflow , realized error caused cs file not found, within project. when go see cefsharp.winforms.example.program.cs , comment line of cefsharp.example.cefexample.init() throws me same error in file. i tried everything, copylocal = true , x86 , still not working. think there may problem system language, common factor of machines worked, spanish language system. any ideas? in context filenotfoundexcepti

javascript - Can't retrieve all records from Cloudkit Cloud (JS) -

i have html table want populate values stored in cloudkit dashboard. i have retrieved records , populated tables them, , problem noticing if give time , try reload table again records not retrieved. haven't changed of code in time between, i'm puzzled how/why happening. below example of code, , error log: public-query.js : records.foreach(function(record) { var fields = record.fields; var tableactual = "<tr><td>" + record['created'].timestamp + "</td><td>" + fields['placename'].value + </td></tr> document.write(tableactual) error log: uncaught (in promise) typeerror: cannot read property 'timestamp' of undefined @ public-query.js:49:73 @ array.foreach (native) @ public-query.js:47:29 if remove example <td>" + record['created'].timestamp + "</td> error log next <td> undefined. to clear, there record being retrieved t

Java constructor (anti-pattern) super-classing String -

the intention of following design allow string values (in effect) subclassed enable number of conflicting constructor methods established (e.g. method signatures same though parameter names different). kindly consider following (non-functional) design: id interface (an empty - marker interface) public interface id {} classes interface (an empty - marker interface) public interface classes {} title interface (an empty - marker interface) public interface title {} tool class public tool(id id) throws exception { this.span = new span(); this.span.addattribute(new attribute(attribute.id, (string)((object) id))); } public tool(classes classes) throws exception { this.span = new span(); this.span.addattribute(new attribute(attribute.class, (string)((object) classes))); } public tool(title title) throws exception { this.span = new span(); this.span.addattribute(new attribute(attribute.title, (string)((object) title))); } public tool(id id, cla

javascript - Countdown inverted -

anyone can me? example, want countdown timer inverted, example: i insert date , hour in javascript or mysql (doesn't matter) , count .. example: inserted: 01/07/2015 today counter show: 1day 1hour 19min if don't want use jquery can this: var starttime = +new date("07/01/2015"); // m/d/y gets timestamp in ms var second = 1000; var minute = second * 60; var hour = minute * 60; var day = hour * 24; var element = document.getelementbyid('timer'); // target element timer function countup() { // time between , start date var time = date.now() - starttime; // days passed since start var days = math.floor(time / day); time -= days * day; // hours passed var hours = math.floor(time / hour); time -= hours * hour; // minutes passed var minutes = math.floor(time / minute); // update element element.innerhtml = days + 'day ' + hours + 'hour ' + minutes + 'min'; se

http - Serving video files from Tornado -

i have few hundred video files on server. since i'm not big business, find difficult transcode , maintain copies in storage available me. setup involves nginx , tornado. to solve problem, decided try , transcode on fly , serve these temporary files on-demand. before attempted create subprocess try , convert files me, decided try , serve static video file via tornado. class mediahandler(tornado.web.requesthandler): def serve(self, media, max_bufsize=1*1024*1024): bytes_read = 0 file_length = none remaining = none self.set_header('content-type', 'video/mp4') open(media.name, 'rb') f: while 1: # while transcoding, file size changing # compute every time file_length = os.fstat(f.fileno()).st_size # current length remaining = file_length - bytes_read # compute remaining bytes # we're producing faster we

javascript - Assigning a Value? -

i have following code in services.js/cordova .factory('gcs', ['$http', function($http) { var obj= {}; $http.post("mydomina.com?myrequest=getbyid", { "id": "1"} ) .success(function(data) { obj= data; //there data returned correctly db }) .error(function(data, status, headers, config) { return null; }); console.log(obj); //obj undefined? return { all: function() { return obj; } }; }]); i trying return json array (obj) database, however, obj undefined , thereby returning null in method (all) can tell me reason why? thanks you running issues you're mixing synchronous , asynchronous code. it's made more complicated fact you're letting variable used asynchronous callback visible external synchronous code. consider happening in example code. functi

internet explorer - how to store more than 50mb on windows phone 8.1 indexeddb HTML5 web app? -

using internet explorer 11 on windows phone 8.1 on actual nokia lumia 635 , emulators see 500mb or more storage available. via ie > settings > advanced settings > manage storage. using our business html5 web app or via html5 storage abuser can never store more 50mb this microsoft page says apps can store upto 250mb seems apply store apps rather web apps. this page job of investigating quotas didnt see ie on windows phone. i've not been able find examples or documentation explain limit or use more 50mb. achieve appreciated i can confirm html5 app compiled phonegap build , published windows app store allows use more 50mb of storage

java - When to expect getLastAccessedTime() to be updated in HttpSession -

according documentation, getlastaccessedtime() updated every time request made within life of session. my application has heartbeat servlet called every minute after user logs system , starts important scan process. when user logs in, session created , on heartbeat called periodically(every minute). logically should mean lastaccessedtime updated every minute. assumption correct? next, have session timeout settings of 15mins. if user has been inactive 15 mins (when not running scan), session destroyed , caught in httpsessionlistener's sessiondestroyed method. therefore lastaccessedtime should show session last accessed precisely 15mins ago. time not show when user logs out himself. to make clear, safe use lastaccessedtime find when user last active in session. also, safe assume time 15mins when session destroyed due inactivity? yes, getlastaccessedtime() updated whenever request comes cookie associated session. assumption correct lastaccessedtime updated every

python - pip install access denied on Windows -

i trying run pip install mitmproxy on windows, keep getting access denied, cmd , powershell using run administrator option. windowserror: [error 5] access denied: 'c:\\users\\bruno\\appdata\\local\\temp\\easy_install-0fme6u\\cryptography-0.9.1\\.eggs\\cffi-1.1.2-py2.7-win-amd64.egg\\_cffi_backend.pyd' how can make work? in case of windows, in cmd try run pip install using python executable e.g. python -m pip install mitmproxy this should work, @ least worked me other package installation.

linux - In an ELF executable what sections can pointers be stored in? -

which sections(.data, .rodata, .bss, etc) can used storing pointers in elf executable on linux, , other elf supporting operating system? edit: pointers referring c style pointers void* pointer = some_address; which sections(.data, .rodata, .bss, etc) can used storing pointers in elf executable is homework? if not, trying achieve? each of .data , .rodata , .bss can store pointers. can .text . elf allows arbitrarily named sections, full list of sections can store pointers impossible (because it's infinite).

ruby - Undefined method for main:Object (NoMethodError) though method is defined -

i have defined script following code snippet: check_params param def check_params(param) # code end when run get undefined method `check_params' main:object (nomethoderror) ruby expects method declared before call it, try move method definition before call method like: def check_params(param) # code end check_params param

Paste values from 3 cells into one cell with delimiters in excel -

i have following data c columns: b c -5.274 -20.63 9.251 where each number in different cell. i want combine these numbers in following way , paste them new cell (those of column d) -5.274 (-20.63 − 9.251) how can this? you can't copy , paste them that, can easily: d2: =a2 & " (" & b2 & " - " & c2 & ")"

html - Responsive Design - Toggle a Div's Visibility - how to integrate javascript with css @media -

i started previous thread same goal have real question , have created 2 fiddles jsfiddle #1 , jsfiddles jsfiddle #2 show problem. i attempting use principles of responsive design adapt changing screen size. has these 2 parts use css hide/show vertical menu div ( main-nav-vert ) using @media based on browser width. use menu button hide/show same div main-nav-vert using javascript. the problem having can find way integrate javascript @media rules. open way (but without jquery) the problem: test these fiddles , see problem: reduce window size see impact of @media , should hide menu on left. expand window , menu should reappear. shrink window again until menu disappears. click button , menu appears. click button second time hide it. now, expanding window no longer show menu. try #1 ( jsfiddle #1 ) javascript changes same display property of main-nav-vert @media changing. javascript changes element not underlying css (as shown in inspector). the element valu

ios - Carthage setup fails with code 65 -

i'm installing carthage on new machine. $ brew install carthage [in project root] $ emacs cartfile # alamofire github "alamofire/alamofire" # swifyjson github "swiftyjson/swiftyjson" $ carthage update *** fetching swiftyjson *** fetching alamofire *** checking out alamofire @ "1.2.3" *** checking out swiftyjson @ "2.2.0" *** xcodebuild output can found in /var/folders/8n/044rh7_j6nlcdtsb3cgp_snc0000gn/t/carthage-xcodebuild.log *** building scheme "alamofire ios" in alamofire.xcworkspace shell task failed exit code 65: ** build failed ** following build commands failed: compileswift normal x86_64 [project root]/carthage/checkouts/alamofire/source/request.swift compileswift normal x86_64 [project root]/carthage/checkouts/alamofire/source/responseserialization.swift compileswift normal x86_64 [project root]/carthage/checkouts/alamofire/source/manager.swift compileswift normal x86_64 [project root]/carth

html - Z-Index for Fixed Positioning ASP.NET -

so i've been working on webpage , i'm trying have text fixed in center of screen, once scroll down text go under other divs , un-seen. here code: <div class="parallax"> <div class="bg__1"> <div class="absolute-center"> <span style="font-size: 50px; color: aqua">in short.</span><br /> live life @ own pace.</div> <script> $(document).ready(function ($) { var h1animation = 'animated bouncein'; $('p').addclass(h1animation); }); </script> </div> <div class="bg__2" ></div> <div class="bg__3"></div> <div class="bg__4"></div> </div> i want <div class="absolute-center"> have contents render under following divs (bg__2, bg__3, bg__4). css code: [class*="bg_

wordpress - Aligning Bullet w/Text in Recent Post Widget Extended Plugin -

i'm using wordpress>atahualpa theme>recent posts widget extended on site toawaken.org . recent posts listed in r.h. sidebar. have added "bullet" (disc) in front of each post title. when did so, threw spacing off. if link site, see reason added bullet forcing text appear 1 line below bullet, instead of right next it, on same line bullet, should. want post's title line on same line bullet, not 1 line below it. tried adjusting margins/padding in css editor, no margin/padding combination changed this. nor did changing div list-style-position inside outside: div.widget ul li { display: list-item !important; list-style: disc !important; list-style-position: inside; color: #2d85ba; } if please check sidebar on site , offer remedy, appreciated. this plugin seems have clearfix implemented in <li> elements, , it's pushing headers next line. can override css: .rpwe-clearfix:before, .rpwe-clearfix:after { content: none;

PhoneGap build - gap:platform not excluding files from each platform build -

per documentation: warning: if not supply gap:platform attribute, referenced image copied platforms, increasing size of application packages. i have icons , splash screens reference each ios , android, example: <icon src="res/icon/android/icon-xxhdpi.png" gap:platform="android" gap:qualifier="xxhdpi" /> why when upload zip phonegap build, resulting ipa , apk include these files both platforms? hoping gap:platform not include files in resulting platform build. have been trying use .pgbomit file without luck, far. any thoughts appreciated. i figured out using .pgbomit file.

objective c - Window resizing problems in Xcode example -

i've downloaded apple's example glessentials . added programmatically window resizing in method awakefromnib in glessentialswindowcontroller class implementation: -(void) awakefromnib { nsrect rect = [view convertrecttobacking:nsmakerect(0,0,500,500)]; [self.window setframe:rect display:yes animate:no]; } here comes of fun. when doing such simple operation on working imac there no problems @ all. window size becomes expected. when doing operation on macbook window resizes value stored in .xib file. manually resize window new size , quit application. launch again. window resizes size window had @ last launch right before closed. any suggestions? as understood, nsopenglview class calls resize method after window initialized, that's why solution not allow window resize right after awakefromnib event remove resizable mask window styles: [window setstylemask:[window stylemask] & ~nsresizablewindowmask]; so final solution like: - (void) awake

crash - Crashing Java SE -

about 3 weeks ago started having problems java. removed old builds javara. after went control panel, removed builds javara didn't detect. i've set jdk path in path system variable. in hkey_local_machine\software\javasoft\java runtime environment, "currentversion" variable 1.8. everytime start, example, minecraft, this: screenshot problem details: problem signature: problem event name: appcrash application name: java.exe application version: 8.0.25.18 application timestamp: 54345ca0 fault module name: stackhash_6c95 fault module version: 6.1.7601.18869 fault module timestamp: 556366f2 exception code: c0000374 exception offset: 00000000000bfc22 os version: 6.1.7601.2.1.0.768.3 locale id: 1033 additional information 1: 6c95 additional information 2: 6c9598dce11d532ca85343c6a66626b7 additional information 3: 22bc additional information 4: 22bc6c5b2c92a40574c7d0615d3bd354 i appreciate suggestio

c++ - Pointer to template class object -

i'm trying create individual list templated value, unfortunately can not link list listelements templates. in main call list<int> list1; create instance of class list. list contains multiple listelements contain value, should templated. compiler throws error @ listelement* first; listelement* last; in list.h. says c2955 - 'listelement' : use of class type requires type argument list list.h #pragma once #include <string> #include "listelement.h" template<class t> class list { private: listelement* first; listelement* last; public: list(); ~list(); void printlist(); void pushback(t value); void pushfront(t value); }; list.cpp #include <iostream> #include "list.h" template<class t> list<t>::list() { first = null; last = null; } template<class t> list<t>::~list() { } template<class t> void list<t>::pushback(t value) { if (last) {

Python subprocess.check_output -

i trying use couple shell level commands python , set variables later use in program not appear calling commands outputs should simple 1-liners. not quite sure if it's due % or ; signs. current_vcodec = subprocess.check_output(["mediainfo", "--inform='video;%codecid%'", "%s" % source]) current_acodec = subprocess.check_output(["mediainfo", "--inform='audio;%codecid%'", "%s" % source]) duration = subprocess.check_output(["mediainfo", "--inform='video;%duration%'", "%s" % source]) i highly recommend use kenneth reitz's envoy python wrapper subprocess. makes calls command line far easier use. import envoy res = envoy.run("mediainfo --inform='video;%codecid%' {0}".format(source)) if res.status_code != 0: print("media info failure: {0}".format(res.std_out + " " + res.std_err)) else: print(res.std_out) cur

delphi - Setting IHTMLDocument2 to nil (or FreeAndNil) causes Access violation -

i have system using ihtmldocument2 work html received idhttp, far good, problem depending on version of windows + version of internet explorer + other detail have not figured out, because mistakes not understand why happens. example, create: var idoc : ihtmldocument2; begin idoc := createcomobject(class_htmldocument) ihtmldocument2; //work html... end; the problem @ end, see forms , errors, if this: idoc := nil; get error access violation @ address 000007fee4cff3e1 in module 'jscript9.dll'. read of address ffffffffffffff.. this error not occur cancel idoc, moments later (do not know when, not view debug) if this: freeandnil(idoc); get error access violation @ address 0000000000000000 in module 'program.exe'. execution of address 0000000000000000 this error occurs @ point. and if nothing, or: = nil or freeandnil (). have error of dll 'jscript9.dll' the problem in machines work in way , others way, have 2 windows same configur