Posts

Showing posts from May, 2014

extjs - Radiogroup does not have a value -

i have problem radiogroups in extjs 6.2.1. the user editing 2 different records same store in 2 forms located next each other. radio group values set on form value has been changed last. other value empty. i have reproduced in small fiddle: https://fiddle.sencha.com/#view/editor&fiddle/23t8 is extjs bug , if so, how fix?

Nesting Angular component inside nested component -

guys! my problem have component nested inside component component route. it's this: (main component router-outlet ) appcomponent -> leadercomponent -> navigationpathcomponent . inside last component use @input() retrieve values parent , works inside component code not in template. here code: navigationpathcomponent: import { component, input } "@angular/core"; @component({ selector: "navigation-path", template: "{{los}}", style: "irrelevant"] }) export class navigationpathcomponent { @input() los: string; } and inside leadercomponent template there is: <navigation-path los="somestring"></navigation-path> which should result in if add {{los}} <navigation-path> template should output somestring in browser instead outputs nothing. although if log out inside component code output somestring console. p.s. if move <navigation-path> appcomponent template (one nesting l

javascript - How to iterate object in angular2 -

below categoriesproducts json catagoriesproducts: any[] = [ { "categories":[ { "catagories1": [ { "productid": 2, "productname": "catagories1 product1", "productcode": "gdn-0023", "releasedate": "march 18, 2016", "description": "15 gallon capacity rolling garden cart", "price": 32.99, "starrating": 4.2, "imageurl": "http://openclipart.org/image/300px/svg_to_png/58471/garden_cart.png" }, { "productid": 5, "productname": "catagories1 product2", "productcode": "tbx-0048", "releasedate": "may 21, 2016", "description": "curved claw steel hammer",

c# - Find and replace using Microsoft.Office.Interop.Word does not support line break vb.net -

i using word document template predefined fields(bookmarks)! bookmarks problematically updated actual value @ run time , works fine, of word in document not marked bookmark using find & replace feature of microsoft.office.interop.word replace word actual value, when replace word text contains line breaks line break not appear in document whole text comes in single line. in below code have replaced text "address" in document following text park royal house no: 3301 wing - d city: xxxx state: yy zip: 100215 but comes in document this park royal house no: 3301 wing - d city: xxxx state: yy zip: 100215 following sample code replace text in word doc private sub replaceworkdoctext() dim objapplication microsoft.office.interop.word.applicationclass = nothing dim objdocument microsoft.office.interop.word.document = nothing dim findtext string = "address" dim replacetext string = "park royal house no: 3301 wing - d" + _

c++ - Basic DLL Function -

i'm new world of c , programming generally! trying create simple dll file prints messagebox hello world! here's cpp //main.cpp #include "main.h" // sample exported function void dll_export somefunction(const lpcstr sometext) { messageboxa(0, sometext, "dll message", mb_ok | mb_iconinformation); } extern "c" dll_export bool apientry dllmain(hinstance hinstdll, dword fdwreason, lpvoid lpvreserved) { switch (fdwreason) { case dll_process_attach: // attach process // return false fail dll load break; case dll_process_detach: // detach process break; case dll_thread_attach: // attach thread break; case dll_thread_detach: // detach thread break; } return true; // succesful } and here h //main.h #ifndef __main_h__ #define __main_h__ #include <windows.h> /* use exported function of dll, include header * in project. */ #ifdef buil

python - How to change the order of DataFrame columns? -

i have following dataframe ( df ): import numpy np import pandas pd df = pd.dataframe(np.random.rand(10, 5)) i add more column(s) assignment: df['mean'] = df.mean(1) how can move column mean front, i.e. set first column leaving order of other columns untouched? one easy way reassign dataframe list of columns, rearranged needed. this have now: in [6]: df out[6]: 0 1 2 3 4 mean 0 0.445598 0.173835 0.343415 0.682252 0.582616 0.445543 1 0.881592 0.696942 0.702232 0.696724 0.373551 0.670208 2 0.662527 0.955193 0.131016 0.609548 0.804694 0.632596 3 0.260919 0.783467 0.593433 0.033426 0.512019 0.436653 4 0.131842 0.799367 0.182828 0.683330 0.019485 0.363371 5 0.498784 0.873495 0.383811 0.699289 0.480447 0.587165 6 0.388771 0.395757 0.745237 0.628406 0.784473 0.588529 7 0.147986 0.459451 0.310961 0.706435 0.100914 0.345149 8 0.394947 0.863494 0.585030 0.565944

sharepoint online - HttpContext is null when running an HangFire job in provider hosted app -

i have set scheduled background job @ point when user uploads document backgroundjob.schedule(() => moveuserdocument(document.filename), timespan.fromdays(1)) the background job should trigger below code, problem httpcontext null. i grateful if can point me in right direction. public actionresult moveuserdocument(string filename) { var documentcomments = new list<string>(); user spuser = null; var username = ""; var id = ""; var title = ""; var emailaddress = ""; var spcontext = sharepointcontextprovider.current.getsharepointcontext(httpcontext); var document = spcontext.documents.singleordefault(c => filename == c.documentname); id = document.id.tostring(); title = document.title; emailaddress = document.emailaddress; using (var clientcontext = spcontext.createuserclientcontextforsphost()) { if (clientcontext != null) { spuser = clientcontext.web.current

xml - Create parent node in XMLSCHEMA -

have objects: create or replace type test.type_numberlist table of number; / create or replace type test.type_test object ( list test.type_numberlist , obj1 number , obj2 number ) / create simple xml schema: begin dbms_xmlschema.registerschema( schemaurl => 'testschema.xsd', schemadoc => '<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb" xsi:schemalocation="http://xmlns.oracle.com/xdb http://xmlns.oracle.com/xdb/xdbschema.xsd"> <xsd:element name="document" type="type_testtype" xdb:sqltype="type_test" xdb:sqlschema="test"/> <xsd:complextype name="type_testtype" xdb:sqltype="type_test" xdb:sqlschema="test" xdb:maintaindom="false">

json - ionic2 Property does not exist on type '{}' -

Image
i getting json in typescript in ionic framework. the json is: { "result": "success", "user": { "loggedin": true, "name": "nulra", "password": "" } } and print data: console.log("nulra checking: " + data.result + " " + data.user); it gives error: typescript error property 'result' not exist on type '{}'. property 'user' not exist on type '{}'. auth-service.ts: login(credentials) { let opt: requestoptions; let myheaders: headers = new headers; myheaders.set('accept', 'application/json; charset=utf-8'); myheaders.append('content-type', 'application/json; charset=utf-8'); opt = new requestoptions({ headers: myheaders }) return new promise((resolve, reject) => { this.http.get(apiurl+'login/0/login?email='+credentials.

Azure Application Insights - availability testing with basic auth? -

Image
i trying setup availability testing (url ping test) azure application insights on endpoint requires basic authentication. seems standard approach https://username:password@myendpoint.com isn't accepted azure (error message says url malformed , maybe missing https/http @ beginning). is there other way achieve except of using multi-step web test or azure functions, assuming want stay in azure ecosystem? :) passing basic auth credentials in url has been deprecated rfc 3986 (here snippet rfc) 3.2.1. user information the userinfo subcomponent may consist of user name and, optionally, scheme-specific information how gain authorization access resource. user information, if present, followed commercial at-sign ("@") delimits host. userinfo = *( unreserved / pct-encoded / sub-delims / ":" ) use of format "user:password" in userinfo field deprecated. the alternate use authorization header pass cred

c# - OpenXML strange behaviour with font-size -

i using dll create methods generates me logic create paragraph based on parameters passed: for example on c# code have this: // document permission title docrun accesstypetitle = new docrun(); run permissiontitle = accesstypetitle.createparagraph("document access", paragraphcolor,fontsizetext,defaultfont); i have method on dll logic: public class docrun { public run createparagraph(string text, string colorval, string fontsize,string font) { run run = new run() { rsidrunproperties = "00c53974" }; runproperties runproperties = new runproperties(); runfonts runfonts = new runfonts() { ascii = font, highansi = font, eastasia = "segoe ui", complexscript = font }; color color = new color() { val = colorval }; //kern kern = new kern() { val = (uint32value)24u }; fontsize fontsize11 = new fontsize() { val = fontsize }; fontsizecomplex

Get sim number in android programmatically -

i want verify user cell number same sim number used in device during registration in android application. how sim number in app compare user entered number? if impossible other verification process? code can find sim number if number saved our phone directory or can never find sim number in case. telephonymanager telephonymanager = (telephonymanager) getsystemservice(context.telephony_service); mobile number = telephonymanager.getline1number(); impossible device has saved sim number can possible. otp verification process best , please enter number , otp verify.

go - Creating Multi dimensional Nested Map slice in Golang -

tldr; it's storing value of child category index of parent id in array. see equivalent php code @ end of block. i need store value of dad-daughter number. there multiple person father , each father has multiple daughter. father may not have daughter either.so, need store value :- variablename[dadid][indexfrom0toavailablevalue] = {"id": id, "name": name} where indexfrom0toavailablevalue index of number of daughter , id , name . what doing :- patu := make(map[int][]map[string]string) p,n := 0,0 _,c := range dadhu { // c.daughter of value 2 means, current c father if( c.daughter == 2 ) { // below using len(daddhu) know // number of rows available. creating bug // creating lots of blank map. patu[c.dadid] = make([]map[string]string, len(dadhu)) // created array `patu` `dadid` store // children below range loop in above array p++ } } fmt.println("total father : ", p

ios - Swift 2.3 to Swift 3.1 Migration - EZSwipeViewController beneath StatusBar -

Image
i in process of migrating swift2.3 project swift3.1. part of it, facing trouble swipe controller used - ' ezswipeviewcontroller '. i using xcode8.3, , testing on ios10.3.2 device/simulator. before conversion, viewcontroller (with navigatiobar) displayed under status bar after conversion viewcontroller (with navigatiobar) goes beneath status bar. i looked @ solutions , understood below work, did not work in case :-| edgesforextendedlayout = [] extendedlayoutincludesopaquebars = false automaticallyadjustsscrollviewinsets = false here below screenshots reference - give view layout top constraint superview (either in storyboard or code), let relative margins. start under status bar. might have add leading, trailing , bottom constraints too, avoid upsetting autolayout.

android - How to get images from Sd card and put into array list -

i want make slide show , images sd card. wanna use several images, how can put images arrylist ? below code 1 image. imageview imageview = (imageview)findviewbyid(r.id.imageview); bitmap bitmap = bitmapfactory.decodefile("/sdcard2/image/index1.png"); imageview.setimagebitmap(bitmap); below answer can use fetching images sd card using content uri,try this ,this surely work you,assuming have knowledge regarding content uri.

c# - Is it possible to auto register in Castle Windsor based on naming convention? -

public interface imyspecialservice {} public interface myspecialservice : imyspecialservice {} is possible register myspecialservice chosen implementation of imyspecialservice without having specify details of either interface or implementation? i.e. can configure castle windsor use interface name minus i ? this 1 should work you: container.register( classes.fromthisassembly() .innamespace("yournamespace") .withservice.defaultinterfaces() ); more here: https://github.com/castleproject/windsor/blob/master/docs/registering-components-by-conventions.md

Laravel image display with image path -

i'm using laravel 5.4. when upload image directly stored in public/category/abc.jpeg $file->storeas('public/category', abc.jpeg) method. , stored image path in database. i link storage folder public directory php artisan storage:link . these steps work storing image , path of image in database. facing problem displaying image. want display image saved url in database(public/category/abc.jpeg). i search don't find solution find load image image name using storage::url($image_name) .

Get all unique associations in Rails 5 -

i have , object rides , ride belongs_to company. i list of rides @rides = ride.where(...) what need store companies of ride in @companies want have every company once, if 2 rides have same company. you can unique companies of rides below: @rides = ride.includes(:company).where(...) @companies = @rides.map(&:company).uniq note: includes load companies in single query associated resulting rides (prevents n+1 query problem).

javascript - Is it possible to bypass popup blocking on Safari latest (currently: 10.1.2) when using window.open? -

based on useful replies here (like this ), built code deal popup blocking works fine on other browsers (like chrome), not on safari - loader , target page samples, internal documents in production version: //redirecting user temporary page displaying loader test=window.open('https://codepen.io/jackrugile/full/ejsbf/', '_blank'); //settimeout simulate api call settimeout(function() { //this part not work on safari change new page target page test.location.replace('http://google.com'); }, 3000) i aware popup evil, blocked reason , more, consider developing tool accessed , used exclusively inside given corporate environment, popup in requirements of company , no, discussing many devices , people little technical prowess think disabling blockers our own app. any tip make work on safari, provided possible @ all? might consider dropping window.open() part, need have reliable check verify whether document opened or not.

javascript - Conditional rendering is not working as expected in reactjs -

function demo(props){ return( <div> {props.boolean && <div>} <h1> hi,many of these kind of dom elements here </h1> {props.boolean && </div>} </div> ) } reactdom.render( <demo boolean="true"/>, document.body ); <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>js bin</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script> <!doctype html> </head> <body> </body> </html> here want form tag if prop boolean value true,but not working expected. if use code

java - How to map timestamp to date in Object mapper -

right mapping timestamp date using object mapper, turning date object's date this, if timestamp 1359657000, it's date should 01/31/2013, showing me date 01/31/1970, didn't issue approach. public class abcd{ private date year } and json { "data": { "fromdate": 1335810600" } } and when map object mapper objectmapper mapper =new mapper(); mapper.readvalue(data,abcd.class); now value of year coming 31st dec 1970, although should coming 31st dec 2013 not sure if understand issue, in of situations don't want deal timestamps: mapper.disable(serializationfeature.write_dates_as_timestamps); then can define format of date : @jsonformat(shape = jsonformat.shape.string, pattern = "dd-mm-yyyy") public date date;

java - display welcome messsage on browser using spring mvc -

here trying print message "welcome spring - mvc" on browser. not getting printed. here controller class handles request. package org.spring.controller; import org.springframework.stereotype.controller; import org.springframework.ui.modelmap; import org.springframework.web.bind.annotation.requestmapping; import org.springframework.web.bind.annotation.requestmethod; @controller public class helloworldcontroller { @requestmapping(value="/",method=requestmethod.get) public string sayhello(model model){ model.addattribute("message", "welcome spring - mvc"); return "welcome"; } @requestmapping(value="/helloagain",method=requestmethod.get) public string sayhelloagain(modelmap model){ model.addattribute("message", "welcome again spring - mvc"); return "welcome"; } } here welcome.jsp , view displayed <%@ page language="java

yarn: how to install scoped package from github branch -

i want install @nuxtjs/axios , from fork url - https://github.com/bjornmelgaard/modules branch - axios_vue_overlap_fix package name - @nuxtjs/axios what command should use? edit : question had both npm , yarn tags. i'll leave in case else finds useful. as far understand, npm maps github packages repository roots. since nuxtjs "modules" repository appears pile of largely-independent packages, might have jump through hoops. i got working way. install whole fork, note git+https syntax, , branch identifier # following repo url: npm install git+https://git@github.com/bjornmelgaard/modules#axios_vue_overlap_fix then npm install dependencies of axios module (because of repo structure, npm not you): cd node_modules/@nuxtjs/modules/modules/axios && npm install and require so: const axios = require('@nuxtjs/modules/modules/axios')

azure data factory - Copying 7 column table to 6 column table -

i'm porting sql server integration services packages azure data factory. i have 2 tables (table 1 , table 2) live on different servers. 1 has 7 columns, other six. followed example @ https://docs.microsoft.com/en-us/azure/data-factory/data-factory-map-columns table 1 ddl: create table dbo.table1 ( zonename nvarchar(max), propertyname nvarchar(max), basepropertyid int, dfp_ad_unit_id bigint, momenttype nvarchar(200), operatingsystemname nvarchar(50) ) table 2 ddl create table dbo.table2 ( zoneid int identity, zonename nvarchar(max), propertyname nvarchar(max), basepropertyid int, dfp_ad_unit_id bigint, momenttype nvarchar(200), operatingsystemname nvarchar(50) ) in adf, define table 1 as: { "$schema": "http://datafactories.schema.management.azure.com/schemas/2015-09-01/microsoft.datafactory.table.json", "name": "table1", "properties": { &quo

php - Get seperate keys and values from string where all data is inline -

Image
i using custom meta box class adding meta boxes in wordpress. 1 of fields using repeater field add multiple blocks of same fields 1 post. when retrieve data, keys , values combined inside 1 string. see screenshot: inside slide_re_ can see keys , values lot of different characters added. need string 'slide_text_field_title => 'slide 1' and rest of values. how extract or filter data string? what have there serialized array. to convert array, use: unserialize($array['slide_re_'])

sparql - retrieving a blank node used as a type -

i have ontology like: :indi_1 :segment; [ :builds {:indi_2}]; :hasid 1. now want find individual(s) indi_1 builds. made following query: select distinct ?a {:indi_1 ?b. ?b _:blanknode} but still segment in results. plus can't reach inside blank node retrive indi_2 . how should build query? i don't know why you'd expect ?b :blanknode require ?b blank node. :blanknode blank node, in sparql query acts variable, it's requiring ?b has type. query written isn't legal. looks want :indi_1 ?b . ?b _:blanknode instead (note . , not ; ). at rate, check whether blank node, @ sparql 1.1 spec , , notice there's isblank function. that's you'd use filter results. you'd have this: select * { ?a ?b filter isblank(?b) } but if you're looking list of individuals, need bit more closely @ rdf serialization of data. don't care ?b blank, rather it's restriction right properties. axiom like:      :a builds {:b, :c

apache pig - pig editor not able to register UDF -

in cloudera distribution, able register udf , used in pig, if accessing ozzie workflow pig action , keeping udf in >workflow location>/lib folder. i not able register udf in pig editor providing location of udf example register /apps/udf/udfm-0.0.1.jar . resulting in file not exist." error. execute permission provided udf how resolve issue?

android - issue in keyboard show when setimeoption(EditorInfo.IME_ACTION_SEND) triggers -

i using actionsend send message in chat application...it works hides keyboard each time when setimeoptions(editorinfo.ime_action_send) triggers...donno why..any idea? below snippet used in code if (session.isenterkeypresstosend()) { sendmessage.setimeoptions(editorinfo.ime_action_send); sendmessage.setinputtype(inputtype.type_class_text); } sendmessage.setoneditoractionlistener(new textview.oneditoractionlistener() { @override public boolean oneditoraction(textview textview, int i, keyevent keyevent) { if (i == editorinfo.ime_action_send) { showkeyboard(); return true; } return false; } });

joomla - Calculations In PHP -

i needing perform calculation , round results in php. have tried below end 0. if manually perform calculation should not case. below syntax , after is val1-val2 answer above / val1 answer above * 100 (to percent) here syntax use print "<td>" . number_format(round($res->val1-$res->val2/$res->val1)*100) . "%" . "</td>"; edit let's use real life example $val1 = 1122 $val2 = 280 i want calculation steps $val1-$val2 = 842 then 842/$val1 or 842/1122 = .75 if use ($val1-$val2)/$val1 = 1 incorrect. echo round((($val1 - $val2) / $val1) * 100).'%'; works fine? see here https://3v4l.org/d4bpe

numpy - How to process (stretch) only the signal of a mix of gaussian? -

i have mixture of 2 gaussians use gmm separate. once predict , know data point belong gaussian (0-background, 1-signal), want process signal part only. processing can histogram eq or clipping, on results 1 (signal). please provide example on how might that, given img original image , pred prediction gmm. img = cv2.imread(path, -1) img_flatten = img.flatten().reshape(img.flatten().shape[0],1) gmm = gaussianmixture(n_components=2, covariance_type='full') gmm.fit(img_flatten) pred = gmm.predict(img_flatten) you can retrieve signal in flat image selecting parts predicted 1 : signal = img_flatten[pred==1] i not familiar processing methods want, clipping values exceeding e.g. 0.5 can use: signal[signal>0.5] = 0.5 finally can reconstruct processed image: img_flatten[pred==1] = signal processed_img = img_flatten.reshape(img.shape) edit: spotted cv2 provides histogram equalization method, instead of wrote above, might use processing signal data: signa

javascript - Node echo server degrades 10x when stream pipes are used over buffering -

Image
on node v8.1.4 , v6.11.1 i started out following echo server implementation, refer pipe.js or pipe . const http = require('http'); const handler = (req, res) => req.pipe(res); http.createserver(handler).listen(3001); and benchmarked wrk , following lua script (shortened brevity) send small body payload. wrk.method = "post" wrk.body = string.rep("a", 10) at 2k requests per second , 44ms of average latency, performance not great. so wrote implementation uses intermediate buffers until request finished , writes buffers out. refer buffer.js or buffer . const http = require('http'); const handler = (req, res) => { let buffs = []; req.on('data', (chunk) => { buffs.push(chunk); }); req.on('end', () => { res.write(buffer.concat(buffs)); res.end(); }); }; http.createserver(handler).listen(3001); performance drastically changed buffer.js servicing 20k requests per second @ 4ms of ave

asp.net - Update dropdown after Items.Clear() -

i populate dropdown several items. when user chooses 1 of these items, second dropdown gets populated. when user clicks on "x" button on first dropdown, 2 dropdown must cleared. first dropdown gets cleared automatically, , clear second dropdown using "dropdown.items.clear()". it happens when load again data first dropdown, second dropdown not update. this code: protected void dropdowndiagstati_selectedindexchanged(object sender, eventargs e) { int selectedindex = this.dropdowndiagstati.selectedindex; populateddlstates(selectedindex); } private void populateddlstates(int selectedindex) { // ottengo diagrammi di stato in sessione arraylist diagrammistato = session["statediagrams"] arraylist; if(selectedindex > 0) { // ottengo il diagramma di stato selezionato docspawr.diagrammastato currdiagstato = (docspawr.diagrammastato)diagrammistato[selectedindex - 1];

sqlite3 insert from php 5.3.6 doesn't commit, leaves "-journal" file -

i have 3 web pages on yahoo hosted web site use sqlite3 databases. working fine until week ago. of sudden inserts , updates no longer being saved in database files. also, in same directory database files, there "-journal" file left over. file permissions on database file , directory , parent directory 777. can read database fine, no updates occurring. have tried several things: pulled down database home computer , ran python sqlite3 test see if insert data database. worked fine - record inserted via python , no "-journal" left over. tried switching on pdo instead of sqlite3. still not saving data - still "-journal" left over. tried adding transactions ($db->exec('begin;') , $db->exec('commit;');). did not work. added try/catch try {...} catch (exception $e) {error_log($e);}. no errors logged. tried adding logging after each step. log messages printed, including error_log('last row id inserted: ' . $db->

How to setup a VSTS build definition to publish Azure Functions with this configuration? -

Image
we using vs 2017 on single solution multiple projects , right mouse click , deploy 3 c# azure function 2 different azure function apps slots. how set vsts build definition accomplish on every check in? we using dlls , setting function.json way. don’t know if need deploy differently based on type of configuration. "scriptfile": "..\\bin\\target.dll", "entrypoint": "target.application.run" i able create vsts deployment through following steps solutions structure build configuration steps sync master branch added nuget restore using default options added msbuild step followign optons project : vstssolution.sln (selected using '...') msbuild version: latest msbuild architechture: msbuild x86 clean: checked create log file: checked added app service deploy function app1 azure subscription: target subscription app service name: target function app deploy slot: if check allows select actual slot want dep

java - Fill ArrayList with objects fills with same values -

i trying fill empty arraylist "circles" objects circle random sizes , random locations, later on paint. for loop fills array normally, reason when copy circ.addall(circles) doesn't work. tried use .clone() , circ = circles ,... ended either nullpoint exception error or circles having same values. code. public class board { public static int size = 400; public static arraylist<circle> circles; public static void fillarray(arraylist<circle> circ){ random r = new random(); int rand = r.nextint(10)+5; circles = new arraylist<circle>(rand); system.out.println("random ="+ rand); for(int = 0; i< rand; i++){ circles.add(new circle(circle.x, circle.y,circle.size)); system.out.println(i+". "+ circles.get(i).x +" "+ circles.get(i).y +" size je "+ circles.get(i).size); //fills normaly } circ.addall(circles); system.out.println("aaaaa"+c

git - Can I live-preview the results of a pull request before accepting it? -

my boss has idea our website , i'm wondering how possible is. we want bring on non-technical people approval process pull-requests on github. example, have who's job assure accuracy of things saying, , have else who's job make sure website has design. the problem neither of these people technical , can't read code nor use software git bash. them somehow able preview changes of pull request see how looks (rather seeing code itself). possible git? if not how else can integrate them yes, can. called, "have proper release channel" once that, can build release git branch , install it. as long "deploying via git checkout" you'll never want. problem order of operations work against you. with proper release channel, order of operations like commit code build installable install installable but since building installable own step, can reorder steps: build installable (pre commit) install installable (pre commit) comm

Cofused with regex in Python -

this question has answer here: difference between 2 regular expressions: [abc]+ , ([abc])+ 5 answers i have following code: re.findall(r'(\w)*','2sq') why result of programme is: ['q', ''] ? i thought ['2','s','q',' '] . remove * , you'll expected result. * greedy, looks want each \w , findall that.

cmake - CPack install OPTIONAL files -

i'm trying use cpack generate rpm file , i'm using install this: install(files ${project_binary_dir}/some_file destination /tmp/ optional) but seems cpack ignores optional flag , reports error file not exist. there option cpack set optional files?

inheritance - Why can't CSS padding be partially inherited using shorthand? -

from time time when browsing through stylesheets, have seen rules such following: padding: 10px inherit; i didn't know if valid css made 3 jsfiddles. 3 fiddles have <p> child of <div> parent (and tested in chrome 59.0). in first jsfiddle , child inherits parent padding (a single inherit keyword) , inspection of elements show both <p> , <div> have 10px padding in both x- , y-directions: div {padding: 10px 10px} p {padding: inherit} in second jsfiddle , child <p> has both x , y padding explicitly inherited (1 actual <length> , 1 inherit keyword): div {padding: 10px 10px} p {padding: 10px inherit} inspection of <p> shows css has broken (i.e., no padding inherited); in third jsfiddle (for completeness), child <p> has both x , y padding explicitly inherited, in case there 2 separate inherit keywords: div {padding: 10px 10px} p {padding: inherit inherit} and css breaks <p> (i.e., no padding inherited)

android - How to install Fastlane on Buddybuild -

i try install fastlane in pre build step on buddybuild. my pre build script looks this: #!/bin/bash if ! fastlane >/dev/null; echo "installing fastlane may need sudo" sudo gem install fastlane else echo "updating fastlane may need sudo" sudo gem update fastlane fi i following error: error: error installing fastlane: error: failed build gem native extension. /usr/bin/ruby2.1 mkrf_conf.rb . building native extensions. take while... /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': error: failed build gem native extension. (gem::ext::builderror) . /usr/bin/ruby2.1 extconf.rb . mkmf.rb can't find header files ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 how can solve this? rest of log gem files remain installed in /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2/ext/gems/gems/unf_ext-0.0.7.4 inspection. results logged /var/lib/gems/2.1.0/gems/unf-0.

python - what do psycopg2's server connection status values mean? -

i trying output status of connection after open connection , after close it. getting output of 1 when open , 2 when close it, there no talk these values mean in psycopg2's documentation. know different status values mean? i using status function connection status values. those documented status constants , can find them here: http://initd.org/psycopg/docs/extensions.html#connection-status-constants this not tell numeric representation/value of it, though. if print each constant, did, should this: from psycopg2 import extensions ext print(ext.status_ready) #1 print(ext.status_begin) #2 print(ext.status_in_transaction) #2 (this alias status_begin) print(ext.status_prepared) #5 note documentation states: "the status undefined closed connectons (sic) ." http://initd.org/psycopg/docs/connection.html#connection.status

Simple C example of add/sub/mul/div operations in double-precision floating-points using a single-precision Floating-point system -

i working on algorithm requires calculations in large numbers, upto e+30. using 32 bit system compiler support of 32 bits long/float/double. far, searching online, i've learned single-precision floating points (fps) can used double-precision fps. from question asked earlier ( emulate “double” using 2 “float”s ) found paper has algorithm work double-precision fps in gpus. confusing me implement in c. need 4 basic mathematical operations. there way find example me understand better? thanks in advance. here code working on. might have errors can not see, suggestions appreciated rectify error preety trying implement. in algorithm, polynomial_order should able go forth order (can settle @ third order if standard deviation smaller). few things not sure 1) procedures make_float() , make_float() correct or not, 2) use of make_float() in program. #define polynomial_order (3) #define tc_table_size (14) typedef struct vector_float2{ float x; float y; }float2; typedef struct