Posts

Showing posts from March, 2011

android - Where is Publishing State for a product in Google in-App Billing -

Image
based on google documentation on link http://developer.android.com/google/play/billing/billing_admin.html#billing-catalog said product has "publishing state" publishing state item's publishing state can published or unpublished . visible user during checkout, item's publishing state must set published , item's application must published on google play. note: not true test accounts. item visible test account if application not published , item published. see testing in-app billing more information. but cant see in product list. there state "active"/"inactive" , these publishing state?

Sending image from C# program to PHP webpage for display -

Image
i'm new c#, , i'm working piece of code: //take snapshot left camera , save current directory "snapshot.png" case key.z: int left = camleft.device.lenscorrection1; camleft.device.lenscorrection1 = 0; thread.sleep(150); bitmapsource bmpsource = camleft.device.bitmapsource bitmapsource; memorystream ms = new memorystream(); bitmapencoder encoder = new pngbitmapencoder(); encoder.frames.add(bitmapframe.create(bmpsource)); encoder.save(ms); ms.seek(0, seekorigin.begin); system.drawing.bitmap bitmap = new system.drawing.bitmap(ms); string filepath = environment.currentdirectory; string filename = system.io.path.combine(filepath, @"snapshot.png"); bitmap.save(filename, imageformat.png); bitmap.dispose(); camle...

javascript - Angular directive ng-if does not evaluate conditional statement -

i'm new web dev , angularjs. i'm trying use directive ng-if display div block if list returned database greater 1, it's not working. misusing directive? i've looked around , haven't found solutions work. currently, both divs displayed , ng-ifs ignored. <div> <div ng-if="listofthings.length > 1"> <h1> {{listofthings.length}} </h1> </br> <div ng-repeat="thing in listofthings"> <label> {{ thing.name }} </label> </div> </div> <div ng-if="listofthings.length == 1" class="col-sm-4 col-sm-offset-4"> <h1> {{ listofthings[0].name }} </h1> <iframe width="560" height="315" ng-src="{{ listofthings[0].embed }}" frameborder="0" allowfullscreen></iframe> </div> </div> i tried code, works in plunker, not in code reas...

c++ - DirectX Transforms not working -

Image
i have begun directx c++ tutorial , drew triangle, whenever try transform it, matrix, never works although followed tutorial step step , looked in msdn tutorial, didn't figure out problem, here's full code: main.cpp: #include <windows.h> #include <d3d9.h> #include <d3dx9.h> #include "define.h" lresult winapi wndproc( hwnd, uint, wparam, lparam ); int winapi winmain( hinstance hinst, hinstance hprevinst, lpstr lpcmdline, int ncmdshow ) { hicon icon; icon = loadicon(hinst, makeintresource(idi_app_icon)); wndclass wc; wc.cbclsextra = 0; wc.cbwndextra = 0; wc.hbrbackground = (hbrush)null; wc.hcursor = loadcursor(hinst, idc_arrow); wc.hicon = icon; wc.hinstance = hinst; wc.lpfnwndproc = wndproc; wc.lpszclassname = ...

java - CDI with Primefaces Charts not rendering properly -

i have 4 primefaces bar charts renders, not. in 1 of them, inject http user session attribute , use render chart (the idea show data corresponds (logged in) user department). there 4 session beans i'm using javax.enterprise.context.requestscoped. sometimes, glassfish destroys instance expected, not. based on exception below, how can resolve it? thanks in advance. the xhtml below shows main code 2 of 4 bar charts: <p:tab title="horas de treinamento (por funci)" closable="true" > <p:barchart id="horasbars" value="#{charthorasfunci.modelhoras}" legendposition="ne" orientation="horizontal" seriescolors="aa5555, 00438f" xaxislabel="horas" yaxislabel="funcis" title="34 horas de treinamento (orçado/realizado) por funci" > </p:barchart> </p:tab> <p:tab title="horas de treinamento (por escritório)" closable="...

asp.net - Async/Await vs TPL vs WCF Service vs Web API: So many choices -

my asp.net 4 web app calls code spawns process long running script. standard output read , returned value updated in database. "fire , forget" bit of code ui remains responsive , user doesn't have wait around these 2 operations complete. end result of these 2 operations not needed calling code don't think need "await" , don't need indication of success or failure. i'm getting confused of available options. best way code these 2 operations sent off on merry way , thing on own? well, "best way" may debatable, proceed tpl using following: task parenttask = task.factory.startnew(() => somemethod(someparameter)); note: if “long running script” calls wcf service, following article on wcf asynchronous programming may helpful. http://blogs.msdn.com/b/wenlong/archive/2009/02/09/scale-wcf-application-better-with-asynchronous-programming.aspx

angularjs - Breezejs + Angular - How to Properly Map Database Property Names? -

i have working , reusable custom <select> directive populates via ng-options , here snippet: ng-options="datum.name datum in data track datum.id" this works intended when use local test json file populate can define name , id properties manually. when using breezejs (which pulling data expected), database has product , deviceid instead of desired name , id properties. i want able pull data, map product , deviceid name , id doing ensures goal of reusability of custom <select> directive. many different entities need map name , id , important reusability. how accomplish this? i've looked @ mapping json entities , jsonresultsadapter thinking right direction. unfortunately, these examples seem missing need (unless i'm missing something). are there other solutions or ways tackle problem? there best practice way of doing using breezejs? thank in advance light can shed. *found solution i using custom directive (but add options-ma...

vim - How to make comments Italic in gVim? -

i new vim , use gvim of coding purposes. trying figure out add in _vimrc (in windows) make comments italic. i tried adding highlight comment cterm=italic but didn't work. modifications far in vimrc (if matters) is: color slate set number set nowrap set guioptions+=b if has('gui_running') set guifont=consolas:h10 endif so can comments appear in italics (consolas, italic, size 10)? the cterm definition high color terminals; gui, need use gui= argument: highlight comment cterm=italic gui=italic also, put after :colorscheme command in ~/.vimrc , or else might overridden.

objective c - What is the relationship between NSManagedObject subclasses and the xcdatamodeld file? -

i started creating entities in xcdatamodeld (xcdatamodel) file. i subclassed entities using create nsmanagedobject subclass… menu entry. i added custom code these subclasses. if want make changes (like add/remove attribute, relationship) entity @ moment, make these changes: at xcdatamodeld (xcdatamodel) file, at custom nsmanagedobject subclass, at both, xcdatamodeld (xcdatamodel) file , custom nsmanagedobject subclass? so, relationship between nsmanagedobject subclasses , xcdatamodeld file? have keep 2 elements in sync? xcdatamodeld rules :) or more specifically, resulting managed model. whatever there or not determine store structure. so ... make changes in model file first , foremost. enable echo these changes managed object subclasses. not mandatory addition, believe mandatory attribute/relationship removal (not tested). if have custom code, advise add in category on managed object subclass allow regenerate classes interface when change mod...

php - exclude certain tags in wp_query and output 20 -

what wrong code: <?php $the_query = new wp_query( array( 'tag__not_in' => array( 8,9,10 ) ), 'posts_per_page' => 20 ); ?> i have tried , tried cant work posts per page outside array , being used second parameter wp_query. change this: <?php $the_query = new wp_query( array( 'tag__not_in' => array( 8,9,10 ) ), 'posts_per_page' => 20 ); ?> to: <?php $the_query = new wp_query( array( 'tag__not_in' => array( 8,9,10 ), 'posts_per_page' => 20 ) ); ?>

jsf - Unable to delete rows in datatable multiple times -

i have primefaces datatable table conditional delete button delete row if clicked. clicking on first time works. delete row , table refreshed new table. when try delete table again, table refresh no entries. if update table using 1 of buttons created, table show again entry tried delete still there. looking it, see method in action being called when deleted first 1 successfully. however, when try again, method not being invoked. why isn't it? <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> </h:head> <h:body> <h:form> <p:datatable id="cartable" var="car" value="#{dtbasicview.cars}"> <f:facet name="header"...

escaping - How to Print An Odd Number of Backslashes in Python -

i need print string part of list has 3 backslashes in in python. however, not appearing simple expected. print ["\\\"] traceback (most recent call last): file "<string>", line 1, in <fragment> eol while scanning string literal: <string>, line 1, pos 13 any string has odd number of backslashes because python escaping quote. tried escaping myself: print ["\\\\\\"] ['\\\\\\'] which 6 backslashes. not wanted. has stumped few of around water cooler. '\\\\\\' string contain 3 backslashes. can see there 3 characters in string applying list it: in [166]: list('\\\\\\') out[166]: ['\\', '\\', '\\'] '\\'*3 work: in [167]: list('\\'*3) out[167]: ['\\', '\\', '\\'] or since in [169]: hex(ord('\\')) out[169]: '0x5c' you avoid need escape backslash using \x5c : in [170]: print('\x5c\x5c\x5c') \\\ ...

ios - UIImage/UIView Animation cycles images too fast, need to slow it down -

i've got image slideshow animation in app, standard seems go ridiculously fast, i'm not sure why default speed. anyway need way of slowing down. speed of animation fine, each image doesn't stay on screen long enough @ all! appreciated. - (void)animateimages { static int count = 0; nsarray *animationimages =@[[uiimage imagenamed:@"blur_edges.png"], [uiimage imagenamed:@"blur_edges2.png"], [uiimage imagenamed:@"blur_edges3.png"], [uiimage imagenamed:@"blur_edges4.png"], [uiimage imagenamed:@"slide8.png"]]; uiimage *image = [animationimages objectatindex:(count % [animationimages count])]; [uiview transitionwithview:_imview duration:1.5 options:uiviewanimationoptiontransitioncrossdissolve animations:^{ _imview.image = image; }...

facebook - GraphApi Search User -

Image
i'm doing tests graph api , search option , several doubts came mind. 1) when search: search?type=user&q=lucas+olivel&fields=name,id,picture why receive results "matheus olivela", "gabriel olivel pagliuca" people hasn't lucas in name? 2) i've friend on facebook named "daniel genezini", when search: search?type=user&q=daniel+genezini&fields=name,id,picture i didn't receive results; because privacy configuration? found "search person (if allow name searched for)." on https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0 page, user config on facebook? 3) field search using search , user type based on name? no possibilities search other fields or more one? reference: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0 1.) facebook search graph api did not support exact match 2.) user can untick settings "let other search engines link timeline" @ http...

Get event information using angularjs -

i trying track button clicks user performs on page/view. trying element idwhich clicked. is there way without having tie function or directive each element? ng-controller , ng-click html: <body ng-controller="mycontroller" ng-click="go($event)"> <div id="box1"> <div id="box2"> <div id="box3"></div> </div> </div> </body> js: $scope.go = function(e) { var clickedelement = e.target; console.log(clickedelement); console.log(clickedelement.id); }; demo: http://plnkr.co/edit/1o6pcvrvgu7bl8b6tlpf?p=preview directive: html: <body my-directive> <div id="box1"> <div id="box2"> <div id="box3"></div> </div> </div> </body> js: app.directive('mydirective', function () { return { link: function (scope, element, attrs) { element....

sql - Converting a Date Format to YYYYMM in Cognos Report Studio -

i have date column in format 12 may, 2014 want convert yyyymm/ 201405 format. tried multiple options extract(year, sys_date)*100 + extract(month, sys_date))*100 cast(extract( year, sys_date), varchar(4)) + cast(extract( month, sys_date), varchar(2)) this 1 works returns me in yyy,ymm format. cast(to_char(sys_date, 'yyyymm'), int ) for above two, gives error: error occurred while performing operation 'sqlopenresult' status='-28' can 1 please guide. thank in advance. i got looking for. did: translate(cast(to_char(sys_date, 'yyyymm'), varchar(6) ), ',' , ' ') i sure there better way result use sql gives me want :)

javascript - what is this angular error? -

just made simple controller injection. var simpleproductlistcontroller = basecontroller.extend({ _notifications:null, _productsmodel:null, init:function($scope,productsmodel,$route){ }, definelisteners:function(){ this._super(); }, destroy:function(){ } }) /... simpleproductlistcontroller.$inject = ['$scope','productsmodel','$route']; the console error points this: http://errors.angularjs.org/1.2.16/ng/areq?p0=simpleproductlistcontroller&p1=not%20ananunction%2c%20got%20undefined argument 'simpleproductlistcontroller' not ananunction, got undefined how supposed debug this? got batarang nothing here. basically, angular saying simpleproductlistcontroller undefined. when i've gotten error, because created controller , tried inject app did not load file defines controller adding script tag index.html file.

content management system - Configure a public site in AEM (CQ5) -

current behavior i have publish node @ " http://pubxx.correlate.net/ ", when hit particular url prompts me log in. once log in takes me " http://pubxx.correlate.net/projects.html " as admin can see site ("geometrixx outdoor site") available me , can view site @ " http://pubxx.correlate.net/content/geometrixx-outdoors/en.html " future behavior required i need configure publish node such user requests " http://pubxx.correlate.net/ " directly taken "geometrixx outdoor site" either after or prior log in prompt. if not possible configure way, please point out closest possible solution this. i new aem , cq hence not aware of configuration scenarios, excuse me if have missed out other critical details required analyse problem (if please point me , provide same). hoping quick response, , thank help. note before: please make sure runmode publish. can check: /system/console/config -> tab 'sling setti...

c# - How to query all rows in windows azure table storage? -

i trying list of entities inside azure table. any idea how go writing query? i using c# btw. thanks. to answer question, following: var acc = new cloudstorageaccount( new storagecredentials("account name", "account key"), false); var tableclient = acc.createcloudtableclient(); var table = tableclient.gettablereference("table name"); var entities = table.executequery(new tablequery<myentity>()).tolist(); however please keep in mind table service returns maximum of 1000 entities in single call it. if there're more 1000 entities available in table, returns continuation token can used fetch next set of entities. executequery method handles continuation token internally if want cancel operation reason, can't that. a better approach use executequerysegmented method , have application deal token. here's sample code so: var acc = new cloudstorageaccount( new storagecred...

javascript - d3.js tree diagram - expand only next level nodes when clicking on root node -

i have tree diagram i'm trying adapt here, problem automatically expands root nodes in tree when click on collapsed node, rather expanding immediate children. here's fiddle. how resolve this? http://jsfiddle.net/heaversm/nw577/ the function handling toggling / collapsing of nodes: function togglechildren(d) { if (d.children) { d._children = d.children; d.children = null; } else if (d._children) { d.children = d._children; d._children = null; } return d; } the problem nodes start expanded , state of individual node toggled on click. is, nodes underneath root still expanded, not shown. click root node, are. not expanded root, never collapsed. to fix, collapse nodes start with: tree.nodes(root).foreach(function(n) { toggle(n); }); complete demo here .

python - Tornado application asynchronous mode -

i wonder if there method verify tornado application running in asynchronous mode under tornado wsgi. if you're using tornado wsgi, can guarantee tornado not running asynchronously. documentation tornado.wsgi.wsgiapplication states this: a wsgi equivalent of tornado.web.application. wsgiapplication similar tornado.web.application, except no asynchronous methods supported (since wsgi not support non-blocking requests properly) . if call self.flush() or other asynchronous methods in request handlers running in wsgiapplication, throw exception.

c# - RDLC parameters filter after records pulled -

i'm trying determine best practices client-side reporting using reportviewer displaying rdlc. when designing report, can specify parameters pass report can used filter records. using sql profiler, however, when running report appears filter applied after records pulled down report. seeing correctly? if so, why isn't kind of thing discouraged? shouldn't records filtered perhaps @ dataset level or @ point such records filtered prior being sent client (for performance reasons, of course)? have looked , looked discussion of these kinds of issues on internet , see multitude of ways implement parameters (ie, how to) no discussion of when 1 way better , why. isn't new, expect there more out there. can point me discusses if have missed something? i experimented client side rdlc , came conclusion data handling inefficient. point out, encountered issues parameters not filtering you'd expect. used crystal reports (on think based) 10 years ago , i'm s...

javascript - jQuery - How to select last column of all rows in a table? -

assuming have html table follows (with appropriate tr, td tags): a1 | b1 | c1 a2 | b2 | c2 a3 | b3 | c3 a4 | b4 | c4 <table border="1"> <tr> <td>a1</td> <td>b1</td> <td>c1</td> </tr> <tr> <td>a2</td> <td>b2</td> <td>c2</td> </tr> <tr> <td>a3</td> <td>b3</td> <td>c3</td> </tr> <tr> <td>a4</td> <td>b4</td> <td>c4</td> </tr> </table> i'm trying select c* rows perform action on them. using $('td:last') selector selects last td tag, i.e., c4. i tried $('tr > td:last') didn't work. correct selector in case? :last jquery selector, select very last element of type . you're looking :last-child . similarly, td:first-child first cell, while :first gets first element of type. her...

Python unittest not recognizing tests -

i'm trying learn how use unittest framework in python. keep getting message below when run file containing tests. ---------------------------------------------------------------------- ran 0 tests in 0.000s ok i've searched here , elsewhere , can't figure out why not recognizing tests. each test starts test , other portions of unittest seem match documentation requires. here text of script: import unittest datetime import datetime, timedelta class activity(object): 'holds detail information on activity' def __init__(self, location, activity_name, activity_id, start_date, end_date): self.activity_name = activity_name self.activity_id = activity_id self.start_date = datetime.strptime(start_date, '%m/%d/%y').date() self.end_date = datetime.strptime(end_date, '%m/%d/%y').date() self.location = location if __name__ == '__main__': unittest.main() class testactivity(unittest.test...

excel - Find all values greater or equal than a certain value -

let's have following table. team score aa 81 bb 67 cc 44 dd 1.5 jj 279 ll 49 tt 201 gg 158 mm 32 hh 89 i want teams scored more 80 in table. tried index + match function follows gives me smallest value greater 80. here code: =index($a$2:$a$11,match(80,$b$2:$b$11,-1)) although put values in lookup_array argument in descending order, function gives me 1 answer: smallest value greater 80. i trying without having sort array , huge database mind you. thank you. how using autofilter? you're quite flexible in filtering values in column score.

listview - Android Filter data in listivew from ActionBar using SearchView -

i'm trying filter data on listview using searchview widget not wroking, can write query , not filter anything. this code i'm using: public class conectadosactivity extends actionbaractivity implements onquerytextlistener { listview listview; listconectadosadapter adapter; protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.lista_conectados); actionbar = getsupportactionbar(); actionbar.setdisplayoptions(actionbar.display_show_home | actionbar.display_show_title | actionbar.display_show_custom); getsupportactionbar().setdisplayhomeasupenabled(true); getsupportactionbar().sethomebuttonenabled(true); cd = new connectiondetector(getapplicationcontext()); session = new sessionmanager(getapplicationcontext()); session.checklogin(); listview = (listview) findviewbyid(r.id.listado_conectados); listv...

how to update property automatically in c# -

i have json object. want update lastupdate property whenever of other properties set (changed). how can fix without calling lastupdate property calling function? public class tickerdata { public string symbol { get; set; } public string exchange { get; set; } public securitytype securitytype { get; set; } public string currency { get; set; } // convert enum later public strategy entrystrategy { get; set; } public ohlcv ohlcv { get; set; } public historicaldataeventargs[] historicaldata { get; set; } public datetime date { get; set; } public decimal open { get; set; } public decimal high { get; set; } public decimal low { get; set; } public decimal close { get; set; } public datetime lastupdate { get; set; } } it sounds more accomplish change tracking. i'm not sure how pure you're trying keep object, implement inotifypropertychanged maybe new caller information attributes in .net 4.5 - monitor changes p...

python - How to return sqlite3 db access responses -

i'm new python. i've created sqlite3 db wrapper class handle database interaction in application. question how return success/failure messages db wrapper class methods, addrow, updrow (which add , update rows) invoking program? here's class code cobbled far:- class dbmanager(object): def __init__(self, db): self.conn = lite.connect(db) self.conn.execute('pragma foreign_keys = on') self.conn.execute('pragma synchronous=off') self.conn.commit() self.cur = self.conn.cursor() def query(self, arg): self.cur.execute(arg) self.conn.commit() return self.cur def addrow(self, tablename, data): """ insert data table. data not have escaped. """ global actinserts # create new cursor # tc = self.conn.cursor() # opened @ init tablelist = "" valueholder = "" valueli...

python - __init__() takes exactly 3 arguments (1 given)? -

it asking 3 arguments , have given one. how give 2 more , explain how well? thanks import pygame, random, collisionobjects pygame.init() screen = pygame.display.set_mode((640,480)) class pirate(pygame.sprite.sprite): east = 0 def __init__(self, screen, dx): self.screen = screen pygame.sprite.sprite.__init__(self) self.image = pygame.image.load("king_pirate/running e0000.bmp") self.image = self.image.convert() trancolor = self.image.get_at((1, 1)) self.image.set_colorkey(trancolor) self.rect = self.image.get_rect() self.rect.inflate_ip(-50, -30) self.rect.center = (0, random.randrange(30,450)) self.img = [] self.loadpics() self.frame = 0 self.delay = 4 self.pause = self.delay self.dx = dx def update(self): #set delay self.pause -= 1 if self.pause <= 0: self.pause = self.delay self.fr...

c++ - Efficiently "Hash" Set of Values to Indice -

first of all, disclaimer; hash inaccurate term i'm aiming for, please, feel free suggest better title. at rate, i'm attempting program complex spatial algorithm running in real-time. in order save cycles, i've decided generate lookup table contains of 32,000 possibilities. if conventionally, values(inclusive range , field count) 2x +0 -> +15 , 3x -2 -> +2 mapped 2 four-bit , 3 three-bit values respectively, giving me lookup-table size of 2 ^ (2*4 + 3*3) = 131,072 entries, 410% waste . given nature of algorithm, collisions absolutely cripple functionality (so no traditional hash functions unless guarantee no collisions relevant values). beyond that, structure i'm working rather large (ie, /really/ avoid allocating more 200% of need). finally, since table referenced often, i'd avoid overhead of traditional hash-table in both bucket lookups , excessively complex hash function. having taken more traditional computer-science approach, i'm beginning ...

Rails + FactoryGirl: What is the "evaluator" in after(:create) do |something, evaluator|? -

i've been using factorygirl while now, still don't know evaluator means in after create hook: factory :products_color_with_variants after(:create) |pc, evaluator| pc.variants << factorygirl.create(:variant) end end i've been using first argument block, object created. evaluator , can use for? this can you. can access transient attributes it

webfont loader - Trouble understanding Firefox error: SyntaxError: missing } after property list -

i have following script provides local server fallback fonts: <!-- load fonts via webfont.js local fallback: https://github.com/typekit/webfontloader --> <script src="//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js"></script> <script>window.webfont || document.write('<script src="../assets/js/webfont.js"><\/script>')</script> <script> webfont.load({ // load fonts cdn google: { families: ['flamenco'] }, custom: { families: ['fontawesome'], urls: [ '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css' ] } // load server fallback if cdn unavailable fontinactive: function (family, fvd) { if (family === 'flamenco' || 'fontawesome') { webfont.load({ custom: { families: ['flamenco', 'fontawesome'], urls: [ '../assets/fonts/local-fonts...

r - Return a data frame using replicate command -

the "do" command mosaic package nicely returns data frame default. require(mosaic) require(sleuth3) nulldist1 <- do(10)*t.test(incidents~shuffle(launch), data=case0401,var.equal=true)$statistic class(nulldist1) now, i'd use replicate command same thing. there argument 1 can set in replicate command force return data frame? tried simplify="data.frame" didn't work. nulldist2 <- replicate(10,{ t.test(incidents~shuffle(launch), data=case0401,var.equal=true)$statistic }) class(nulldist2) any thoughts? data.frame(result = replicate(10,t.test(rnorm(100),rnorm(100))$statistic))

css - pureio pure-u-1-2 not aligning side by side -

i have exact code, still divs stacking on each other. i've looked similar questions in of them there obvious reasons why divs not side side. cannot figure out why should not work <div class="pure-g-r"> <div class="pure-u-1-2"><h2>hello</h2></div> <div class="pure-u-1-2"><h2>hello</h2></div> </div> any suggestions? it seems pure has removed "grid-g-r" part, "grid-g" iff specify screen resolution. this works: <div class="pure-g"> <div class="pure-u-1 pure-u-md-1-2"><h2>hello</h2> </div> <div class="pure-u-1 pure-u-md-1-2"><h2>hello</h2> </div> </div>

ios - Passing data between different apps on a single device -

i'm designing game , i'm still pretty in planning phase part. i'm considering pretty cool feature, i'm not sure if doable yet. have in mind is: possible access game save 1 game using second game. clearler explanation: release game a, user plays through game , collects game items along way (weapons, equipment, whatever). later, release game b, can considered continuation of game (think dlc terms). game b can played scratch, standalone release, i'd offer players option transfer character progression previous one. have option that? is instance possible create save file on device in neutral directory (not linked specific app), different apps can reference same file on device? these options: app , app b launch each other using url custom scheme launching data pass between them appended end of url they can share data using keychain they can share data using custom pasteboard treat data document , share via uidocumentinteractioncontroller they can sha...

jenkins - github api to compare commits, response status is diverged -

when configuring jenkins, want detect feature branches whether have merging conflicts, use github api v3 test on 2 intentional conflicted branches. after merge branch1 master, compared branch2(b2) this: curl -i https://api.github.com/repos/hao1987/myself/compare/hao1987:master...hao1987:b2 and returns long json has attribute: "status": "diverged" i wonder if means conflict, , can try types of "status" this isn't documented (sorry!), status can 1 of 4 things: "diverged" = commits introduced on both head , base branch since common ancestor "ahead" = commits introduced on head after common ancestor base "behind" = commits introduced on base after common ancestor head "identical" = branches point same commit so, "diverged" doesn't tell whether merge between branches result in merge conflicts.

c# When does System.Drawing.Bitmap decompress the image stream? -

right using system.drawing.bitmap take image , divide regions. assume bitmap must decompress image in order perform operations on it. however, bitmap class accepts these formats: bmp, gif, exif, jpg, png , tiff some of these formats compressed, if data in stream compressed, doesn't have decompressed perform manipulations? if so, mean bitmap class allocates more memory decompressed version of stream? i feel if bitmap class makes data modifications stream have decompress stream should make bitmap class take same amount of memory working bmp streams when works png streams, despite fact png streams smaller. in fact does, gdi needs raw pixel data feed graphic card and/or represent it, yes, it's being decompressed, may don't see memory rising because it's done system/graphic card. some special cases dxt textures , other special types understood hardware , don't need decompressed work.