Posts

Showing posts from May, 2015

javascript - Defining transpency in bmp files -

a game i'm researching, has textures on interface. textures in-game transparent. game old (1999) , textures saved .bmp . here sample texture file: sample texture interface file this game written in c++. here's question: how possible, game understands parts of .bmp , black , transparent surface? can give me idea, how define 1 well? i'm working in canvas (javascript, babylonjs ), need idea, not code.

sitecore8.1 - Sitecore 8.2 showing error attempt to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed -

i have upgraded sitecore 8.1 sitecore 8.2. have method in using: sitecore.context.pagemode.ispageeditor for giving error: attempt method method_name access method 'sitecore.context+pagemode.get_ispageeditor()' failed. what missing? the sitecore.context.pagemode.ispageeditor is deprecated in sitecore.kernel since sitecore 8.0 update-6 see release notes : deprecated , removed functionality the properties ispageeditor, ispageeditordesigning , ispageeditorediting in class context.pagemode sitecore namespace have been deprecated in favor of new introduced properties isexperienceeditor , isexperienceeditorediting. old properties removed in 1 of future major versions. (438475) in sitecore 8.2 update 1 sitecore.context.pagemode.ispageeditor removed use sitecore.context.pagemode.isexperienceeditor same for: ispageeditor, obsolete use isexperienceeditor instead ispageeditorclassic, deprecated false ispageeditordesigning, ob

excel vba - VBA Open file with wildcard knowing only extension -

i trying excel open file in given folder (thisworkbook.path\peach\apple) has .xlsm extension (there 1 file). possible open wildcard character? not know name of file, extension. if not, there way it? just ask file system first matching file: dim path string: path = thisworkbook.path & "\peach\apple\" findfirstfile = dir$(path & "*.xlsm") if (findfirstfile <> "") workbooks.open path & findfirstfile else '// not found end if (this not search sub-directories)

excel - Access Export to Text File (Formatted files) then Import it issues -

Image
my coworker , noticed issue trying import formatted file text file preduced using access export text file. the sample file within access after create looks this: the sample file looks when exported using text file option: ------------------------------------------------------------------------------------------------------ | id | famousname | famousfor | ------------------------------------------------------------------------------------------------------ | 3 | bill gates | american businessman | ------------------------------------------------------------------------------------------------------ | 4 | muhammad ali | american boxer , civil rights campaigner | ------------------------------------------------------------------------------------------------------ | 5 | john f. kennedy | pres

javascript - Uncaught ReferenceError: $ is not defined? -

how come code throws an uncaught referenceerror: $ not defined when ok before? $(document).ready(function() { $('#tabs > ul').tabs({ fx: { opacity: 'toggle' } }); $('#featuredvid > ul').tabs(); }); results in tabs don't close anymore. jquery referenced in header: <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/sprinkle.js"></script> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-1.2.6.min.js"></script> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-ui-personalized-1.5.2.packed.js"></script> you should put references jquery scripts first. <script language="javascript" type=&q

c++ - g++ internal compiler error segmentation fault with recursive constexpr -

i updated g++ version 6.3.0 (g++ (homebrew gcc 6.3.0) 6.3.0), g++: internal compiler error: segmentation fault: 11 (program cc1plus) . previous version (i'm not sure around) 5.2 worked. , on 1 of other computers use g++ (ubuntu 5.2.1-22ubuntu2) 5.2.1 , works. the code is: constexpr bool checkforprimenumber(const int p, const int t) { return p <= t or (p % t , checkforprimenumber(p, t + 2)); } constexpr bool checkforprimenumber(const int p) { return p == 2 or (p & 1 , checkforprimenumber(p, 3)); } int main() { static_assert(checkforprimenumber(65521), "bug..."); } i compile code with g++ test.cpp -std=c++11 -fconstexpr-depth=65535 what can possibly work around this? edit: bug report sumitted the error comes stack overflow internally in g++. allegedly able increase stack (on macos 10.11.6). however, did not resolve issue @ hand. came solution, split check 2 branches, here code: constexpr bool checkforprimenumber(const int p

amazon web services - When deploying a Docker container to AWS, do i need to deploy my own reverse proxy as well? -

i have rails api handle data , server logic other client apps. when dockerizing , deploying aws elastic beanstalk (generic docker - single container), fails. need deploy multiple containers, include own configuration of nginx? or aws have way handle reverse proxy me? looking little guidance. if have handle nginx myself that's fine (and pointers there nice), i'm trying offload setup , configuration possible onto services aws provides , keep more narrow focus on code need write api itself you can use aws alb, application load balancer ( https://aws.amazon.com/de/elasticloadbalancing/applicationloadbalancer/ ), deploy in ec section , understand container configuration, offers target container / port in ecb stack. way avoid own nginx container load balancer configuration, alb handle you, ssl interception , promise reliable ( , limitations )

Test Spring REST service with Spring security on SoapUI -

Image
i'm have spring service this: localhost:8889/projectx/insurance/?policy=1 @restcontroller @requestmapping(value="insurance") public class insuranceservice { @requestmapping(value="/", method=requestmethod.get, produces = mediatype.application_json_value) public list<policy> getpolicy(@requestparam(value="policy") int policy){ ... } } that produces json policy info. in websecurityconfig.java have security: @override protected void configure(httpsecurity http) throws exception { http .authorizerequests() .antmatchers("/insurance/**").access("hasrole('advicer')") ... so if try consume service on soapui directed login form how can consume service correctly authentication? i switch off security junit testing, profile. in websecurityconfig.java file add @profile("default") then n

c++ - Why are C++11 override and final not attributes? -

i somehow missed attributes introduced in c++11. found out, i'm wondering why override , final added identifiers special meaning , not standard attributes. the purpose of override generate compile time error , purpose of many of standard attributes. feels if fit in concept there reason i'm missing. they were, once, before got changed in response comment us 44 on c++11's fcd: even if attributes continue standardized on continued objections both of 2 vendors cited principal prior art, can live them exception of virtual override controls. result awful, shown in example in 7.6.5 (excerpted): class d [[base_check]] : public b { void some_func [[override]] (); virtual void h [[hiding]] (char*); }; here have 6 keywords (not counting void , char ): 3 normal keywords, , 3 [[decorated]] keywords. there has been public ridicule of c++0x ugliness. poor language design, in face of backward compatibility concerns (e.g., existing

javascript - how to set parametr in bot api telegram for reply mark up keyboard? -

i know url send message in telegram bot api: https://api.telegram.org/bottoken/sendmessage?chat_id=10101010&text= "this test" but how set parametr url use replymarkupkeyboard need url no code tnx if found answer own: for send replykeyboardmarkup url should use way: https://api.telegram.org/bottoken/sendmessage?chat_id=10101010&text= "test"&reply_markup={"keyboard":[["a","b"]]} and find url (or use code send message) in php code is: $replymarkup = array( 'keyboard' => array( array("a", "b") ) ); $encodedmarkup = json_encode($replymarkup); $content = array( 'chat_id' => "10101010", 'reply_markup' => $encodedmarkup, 'text' => "test" ); $newn = json_encode($content); $newh = json_decode($newn); echo http_build_query($newh)

Maven: Error on sending email (SMTP Office365) using ch.fortysix, maven-postman-plugin -

i able receive email when use smtp smtp.gmail.com in maven pom.xml file fails when use smtp.office365.com using maven-postman-plugin . plugin have added in pom file below <plugin> <groupid>ch.fortysix</groupid> <artifactid>maven-postman-plugin</artifactid> <version>0.1.6</version> <executions> <execution> <id>send_an_email</id> <phase>site</phase> <goals> <goal>send-mail</goal> </goals> <inherited>true</inherited> <configuration> <!--mailhost>smtp.gmail.com</mailhost--> <mailhost>smtp.office365.com</mailhost> <mailuser>abcd123@xyz.com</mailuser> <!-- put password here --> <mailpassword>ksdj

php - Setup Wordpress with Magento using Ngix shows 404 Error -

i using magento2 , fishpig wordpress integration extension , using nginx server. wordpress directory on magento root name "wp". magento working fine , display blog content when accessing wordpress admin url or frontend shows 404 error page not found. after research, found have setting in nginx config file (/etc/nginx/sites-available) , setup location of wp directory. below code have tried add in nginx config file location /wp { index index.php index.html index.htm; try_files $uri $uri/ /wp/index.php?$args; } location /wp { index index.php index.html index.htm; try_files $uri $uri/ /index.php?$args; } location /wp/wp-admin/ { index index.php index.html index.htm; try_files $uri $uri/ /wp/wp-admin/index.php?$args; } below url have gone through -: nginx configuration wordpress blog in subfolder of magento root https://codex.wordpress.org/nginx https://www.getpagespeed.com/web-apps/magento-wordpress-integration-nginx below ng

r - Calculate the mean of one column across multiple .csv files How? -

i newbie in r , have got calculate mean of column sulf 332 files. mean formulas bellow works 1 file . problem comes when attempt calculate across files. perhaps reading files , storing them in mydata not work well? me out? many thanks pollutantmean <- function(specdata,pollutant=xor(sulf,nit),i=1:332){ specdata<-getwd() pollutant<-c(sulf,nit) for(i in 1:332){ mydata<-read.csv(file_list[i]) } sulfate <- (subset(mydata,select=c("sulfate"))) sulf <- sulfate[!is.na(sulfate)] y <- mean(sulf) print(y) } this not tested, steps followed. note kind of questions being asked on , on again (e.g. here ). try searching "work on multiple files", "batch processing", "import many files" or akin this. lx <- list.files(pattern = ".csv", full.names = true) # gives list of xy <- sapply(lx,

node.js - How to maintain get and post data in virtual host? -

i have nodejs, php , apache2 running on ubuntu 14.04. there nodejs listening on different ports (eg. 3000, 3001...). so, want setup virtual host, when user requests nodejs service, user can go " http://nodejs.example.com/api " instead of " http://example.com:3001/api " , @ same time, want maintain post/get data being sent. following virtual host configuration: #/etc/apache2/sites-available/mysite.conf <virtualhost *:80> serveradmin webmaster@localhost servername example serveralias nodejs.example.com proxyrequests off proxypreservehost on proxyvia full <proxy *> require granted </proxy> <location /> proxypass http://127.0.0.1:3001/ proxypassreverse http://127.0.0.1:3001/ rewriteengine on rewriterule http://nodejs.example.com:3001/$1 [r=301,l] </location> errorlog ${apache_log_dir}/error.log # possible values include: debug, info, notice, warn, error,

haskell - Typeclasses for overloading division -

i'm defining own complex number data type learning exercise, , i've run trouble overloading (/) operator. seems can't include in instance of floating or fractional , compiler saying (/) isn't visible method of classes. there (preferably numeric) typeclass allow me overload operator? eg. instance someclass => someclass (complex a) (/) b@(complex r i) = fmap (/(r^2 - i^2)) (a * (conjugate b)) here's current implementation implementation interested: module complex data complex = complex {real :: a, imaginary :: a} = complex 0 1 instance num => show complex show (complex r i) | < 0 = show r ++ " - i" ++ show (negate i) | otherwise = show r ++ " + i" ++ show instance functor complex fmap f (complex r i) = complex (f r) (f i) instance num => num (complex a) (+) (complex ra ia) (complex rb ib) = complex (ra + rb) (ia + ib) (-) (complex ra ia) (complex rb ib) = complex (ra - rb) (ia - ib)

java - jar opens on mac, not windows -

i developing desktop application on mac, , have "prototype" jar ready show. application end running on windows pcs (windows 7 java jre7, no jdk installed on these computers). i have edited jar's manifest locate main class. can double click jar file on mac, , opens perfectly. when try open same jar on windows, getting "a java exception has occurred". java virtual machine launcher error message. i have right-clicked jar>open with> made sure javaw.exe being used open. any thoughts? there file paths in program nothing writes outside of jar or creates new. understand, using forward slashes (programmed on mac) shouldn't have effect when using java (windows uses backslashes). any ideas?

beautifulsoup - Python 3.6 Beautiful Soup - Attribute Error -

i can import beautifulsoup using python 2.7 not when try using python 3.6, though beautifulsoup claims work on both? sorry first question apologies if it's trivial or if haven't used proper conventions. from beautifulsoup import * traceback (most recent call last): file "", line 1, in file "/users/tobiecusson/desktop/python/ch3-pythonforwebdata/assignmentweek4/beautifulsoup.py", line 448 raise attributeerror, "'%s' object has no attribute '%s'" % (self. class . name , attr) ^ syntaxerror: invalid syntax from bs4 import beautifulsoup traceback (most recent call last): file "", line 1, in file "/users/tobiecusson/desktop/python/ch3-pythonforwebdata/assignmentweek4/bs4.py", line 448 raise attributeerror, "'%s' object has no attribute '%s'" % (self. class

android - How to update TextView of custom ArrayAdapter on the basis of EditText? -

i have custom arrayadapter horizontal linearlayout containing 02 edittext fields , 01 textview.....all set take/show numberdecimals. all want whenever number input in of edittext fields, product of 2 numbers (edittext 1 & edittext 2) shown in textview. i've tried both onfocuschangedlistener , textchangedlistener textview doesnt updated during live entries. doesnt show anything. i'm new programming, cant find other solution that. in advance! below adapter code: textview labelview; edittext ratioview; edittext rateview; textview avgview; public fibresadapter(activity context, arraylist<fibres> fibreslist) { super(context, 0, fibreslist); } @nonnull @override public view getview(int position, @nullable view convertview, @nonnull viewgroup parent) { if (convertview == null) { convertview = layoutinflater.from(getcontext()).inflate(r.layout.list_item, parent, false); } final fibres currentfibre = getitem(position); labelview =

MySQL: How do I get the AVG value in one column for entries sharing distinct values in another column? -

in case of table such: id num grp 1 12.3 group1 2 2.4 group2 3 7.6 group2 4 4.5 group1 5 8.9 group1 6 12.6 group1 7 1.1 group2 8 7.8 group1 i output result grid additional column have value of 9.22 in rows grp value of group1, , 3.7 in rows grp value of group2. so, in each case, average num value of rows same grp value. i'm still learning mysql. think know components need (avg, distinct/group by, , possibly self join?), i'm struggling find right way put them together. can please try query below, using group by of avg , join same table, can column value expectation: select ta.id, ta.num, ta.grp , ag.avgnum ( select grp, avg(num) avgnum tablename group grp ) ag join tablename ta on ta.grp = ag.grp rextester demo: http://rextester.com/szw95037

Best way to import MongoDB data in Azure Machine Learning -

i have mongodb database (the bitnami one) hosted on azure. want import data there use in azure machine learning experiment. currently, exporting data .csv using mongoexport , copy/pasting "enter manually data" module. fine small amounts of data prefer have more robust technique larger databases. i thought using "import data" module http url along http port (28017) of mongodb instance read not recommended use of http mongodb feature. finally, have installed cosmosdb instead of bitnami mongodb , worked fine thing costs arm when used sitecore (it reaches around 100€ per day) , can't afford switched mongo. so there better way export data mongo azure ml ? one way use python code block in azureml, this: import pandas p import pymongo m def azureml_main(): c = m.mongoclient(host='host_ip') = p.dataframe(c.database_names()) return

amazon web services - Create dns entries in route 53 using boto -

i looking way pass json file using boto have dns entries , dns entries can made in route 53 fast possible. appreciate possible help, direction or anything. thanks in advance :) if can afford keep script running every 30 seconds great. you can write python script following. trigger sns notification each autoscaled instance using cloudwatch metrics bind sns sqs queue. retrieve information sqs queue. (instance ip , hostname) generate required route53 records using information according requirement. if instance deleted removed associated records.

android - How to add a custom element to the recyclerview? -

i have recyclerview data. tried add custom first element. if(position == 0) { trend item = items.get(holder.getadapterposition()); int = 0; items.add(i, item); } @override public int getitemviewtype(int position) { if (position == 0) return 1; else return 2; } @override public myviewholder oncreateviewholder(viewgroup parent, int viewtype) { if (viewtype == 1) { inflater = layoutinflater.from(parent.getcontext()); return new myviewholder(layoutinflater.from(parent.getcontext()).inflate(r.layout.item_trendsnewuser, parent, false)); } else { inflater = layoutinflater.from(parent.getcontext()); return new myviewholder(layoutinflater.from(parent.getcontext()).inflate(r.layout.item_trends, parent, false)); } i duplicating first element twice. how add custom row custom options? you should create 2 viewholder different views , in itemviewtype check specific position , according inflate specific

Firebase Notification Not Showing on Android Device -

i trying develop module show notifications using firebase. module has 3 function subscribe , unsubscribe topics. has 2 services mentioned in firebase sample i know working because syncing topics firebase console. new topics being created. this module connected main app module uses it. my problem when notification sent, don't receive. firebase module code : android manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ineqe.firebasenotification"> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.call_phone" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:nam

angular - How to load a function of one component in another -

i have function in navbar shows notifications , want run same function in component show latest notifications not sure process. my navbar component, @component({ selector: 'header-navbar', templateurl: './app/navbar/navbar.html', }) export class navbar implements oninit { notification : any; header :any; constructor(public http: http, fbld: formbuilder, public config: config,public router: router) { ngoninit(){ this.getnotifications(); } getnotifications(){ var headers = new headers(); headers.append('content-type', 'application/json') this.http.get(this.header + 'getcategorynotificationscountbyuserid/'+this.user.username, { headers: headers }) .subscribe( response => { if (response.json().error_code == 0) { this.notification = response.json().result; } else {

typescript - Index signature of object type implicitly has an 'any' type in Angular 2 official documentation -

i have error when tried implmement reactive form validation of angular 'cookbook' section, can watch on here: https://angular.io/docs/ts/latest/cookbook/form-validation.html#!#reactive i tried google problem couldn't find solution. the error code : index signature of object type implicitly has 'any' type the following code being used: onvaluechanged(data?: any) { if (!this.form) { return; } const form = this.form; (const field in this.formerrors) { // clear previous error message (if any) this.formerrors[field] = ''; // sends error code const control = form.get(field); if (control && control.dirty && !control.valid) { const messages = this.validationmessages[field]; // sends error code (const key in control.errors) { this.formerrors[field] += messages[key] + ' '; // sends error code } } } } formerror

android - onClick event on ViewHolder does work inside GridView -

my recyclerview has cardview , cardview contains 1 gridview , other textviews . public mycardviewholder(view view) { super(view); this.view=view; gridview = (gridview) view.findviewbyid(r.id.gridview); nicknametextview =(textview) view.findviewbyid(r.id.card_nickname_textview); ... } i set onclicklistener on viewholder when click inside gridview , click event never gets fired. here code onclicklistener : view.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { ... }); } thanks help. following code can proceed click events element :) public class homerecycleradapter extends recyclerview.adapter<recyclerview.viewholder> implements view.onclicklistener { private list<string> mitemlist; recyclerview mrecyclerview; context context; homeitemviewholder mhomeitemholder; public homerecycleradapter(list<string> itemlist) { mitemlist = ite

makefile - Parallel Make - Sub-Projects called multiple times -

the question answered on file-level. have bigger project has quite lot of inter-project-dependencies (caused dbus headers, generated dynamically). i ve created following example ( example files zip - real project more complex). the top-level makefile following: sub-%: $(make) -c $(patsubst sub-%,%,$@) default: $(make) -j12 sub-p1 sub-p2 sub-p3 the makefile of sub-project ( p1 , p2 , p3 ): all: p1 ../lib/lib.a: $(make) -c ../lib lib.a p1: ../lib/lib.a cp -f ../lib/lib.a p1 and makefile of lib looks this: lib.a: sleep 2 date > $@ echo done building $@ the problem : library built each p* -project separately in parallel - in example it's not problem, in our case causes unsolvable problems. when call make on top-level, following output: $ make make -j12 sub-p1 sub-p2 sub-p3 make[1]: entering directory '/home/kkr/tmp/parallelmake' make -c p1 make -c p2 make -c p3 make[2]: entering directory '/home/kkr/tmp/paralle

c# - Azure AppService Convert word to PDF -

is there way convert word document pdf in azure app service? can't use office libraries don't want office dependencies. lot of third party solutions seem use gdi+ not possibility on azure app service. my solution looks moving azure cloud service have gdi+, prefer keep app app service. it seems aspose has solution this, , since platform independent gonna go ahead , guess has no problematic dependencies. problem costs money. as free solution can call third party web service, there many of them, guess of them have rest api. i suggest take @ openxml office document library, , pretty sure has no weird dependencies problem not support conversions, either have manually, or search web third party library helps it, couldn't find any...

nlp - Chatbot training platform that supports Arabic -

i looking chatbot training platform (like ibm watson conversation service or api.ai) has arabic support . i know wit.ai has support arabic reading blogpost seems it's in beta. moreover, has been suggested wit.ai suited towards hobbyists , not advisable build complex conversational bots it. so want know whether there exists service chatbot training ( except wit.ai ) has arabic support ? according answer in ibm support forum should happen end of 2016

python - Z3 - How to set a byte constraint on a BitVec -

i'm trying set list of possible allowed bytes in bitvec i'm not sure i'm setting constraints in right way. e.g: let have 32 bit bv called bv , solver() called s : s = solver() bv = bitvec(8 * 4) i want each byte can either 0x2 or 0x34 or 0xff used extract() : i = 0 while (i < 8 * 4): s.add(extract(i + 7, i, bv) == 0x2) s.add(extract(i + 7, i, bv) == 0x34) s.add(extract(i + 7, i, bv) == 0xff) += 8 sadly, s.check() returns unsat . i think not correct way express bytes may 0x2 or 0x34 or 0xff . did write constraints in right way or thought process plain wrong? i = 0 while (i < 8 * 4): s.add(or(extract(i + 7, i, bv) == 0x2), extract(i + 7, i, bv) == 0x34), extract(i + 7, i, bv) == 0xff)) += 8

sql server 2012 - How to update multiple rows with same id in sql -

here code: getting error while updating rows declare @xmldocument xml set @xmldocument = '<employeezonemapping> <employeezonedata> <employeeid>5</employeeid> <servicecirclezoneid>3</servicecirclezoneid> <employeezonemappingstatus>1</employeezonemappingstatus> </employeezonedata> <employeezonedata> <employeeid>5</employeeid> <servicecirclezoneid>6</servicecirclezoneid> <employeezonemappingstatus>0</employeezonemappingstatus> </employeezonedata> </employeezonemapping>' ;with xmldata ( select a.details_employeezonemapping.value('(employeeid) [1]','int') employeeid, a.details_employeezonemapping.value('(servicecirclezoneid) [1]','tinyint') servicecirclezoneid, a.details_employeezonemapping.value('(employeezonemappingstatus) [1]','bit') employeezonemappingstatus @xmldocument.nodes ('employ

javascript - How do I show an external JS function (returns array) into a html list -

i developing mobile application. need show array in list on html. have function in external .js file returns array json data retrieved. this function in javascript: function getnames() { var url = api + "/name"; $.getjson(url).done(function (answer) { if (!answer.length) { console.warn("empty list"); } api.name = response; (i = 0; < response.length; i++) { $('#names').html(api.name[i].name); } }).fail(function (data, status, error) { console.error("something went wrong"); }); } this html list want them displayed in: <div> <div class="widget-container"> <div class="list-group"> <a> <h4 id="names"> <script type="text/javascript"> window.onload = function () { getnames(); }; </script> </h4> </a> repeate

javascript - Optimize CSS Delivery of the following -

eliminate render-blocking javascript , css in above-the-fold content page has 16 blocking css resources. causes delay in rendering page. none of above-the-fold content on page rendered without waiting following resources load. try defer or asynchronously load blocking resources, or inline critical portions of resources directly in html. optimize css delivery of following: you should consider minify css files in unique optimized file (optimize css delivery). this allow reduce number of http request server. you can use tools google pagespeed test have tips on how further optimize website. specifically css minification can use tools grunt or gulp.

select - Error: symbol `__fileimporter_class_MOD___copy_character_1' is already defined -

i have bit of code: subroutine readchartovariable(self,format,varout) implicit none ! declaring part class(fileimporter) :: self character(len=25) :: defaultvalue = 'null' character(len=25), intent(out) :: varout character (len=*) :: format class(*), allocatable :: value ! executing part allocate(value,source = defaultvalue) call self%readvaluetovariable(format,value) select type(value) type (character(*)) varout = value end select end subroutine readchartovariable what is, calls readvaluetovariable value being character type. readvaluetovariable reads character file , returns in value . compiling (gcc 4.8.5) leads error /tmp/cc5juib6.s: assembler messages: /tmp/cc5juib6.s:156: error: symbol `__fileimporter_class_mod___copy_character_1' defined the error caused type (character(*)) line (without character functionality compiles). don't understand what's wrong here, maybe can me?

How to make custom tags with angular 2? -

i have problem custom component. problem link model [(ngmodule)] = "value" , gives error follows: unhandled promise rejection: template parse errors: can't bind 'ngmodule' since isn't known property of 'gpi-input'. 1. if 'gpi-input' angular component , has 'ngmodule' input, verify part of module. 2. if 'gpi-input' web component add "custom_elements_schema" '@ngmodule.schemas' of component suppress message. (" <div> <h1>input:</h1> <gpi-input name="somevalue" [error ->][(ngmodule)]="valueinput"> escriu algu plis!! </gpi-input> the code components are: import { component, forwardref } '@angular/core'; import { ng_value_accessor, controlvalueaccessor } '@angular/forms'; const noop = () => { }; export const custom_input_control_value_accessor: = { provide: ng_value_accessor, useexisting: forwardref((

How to phone number masking when call using twilio via PHP android? -

i want create calling between driver , rider using anonymous phone no. both not see own no. see twilio assign no. how can integrate in custom php , please tell me work flow. if u have code must share git link. try using twilio sdk still not working.i not getting php side. twilio developer evangelist here. i'd first start working through tutorial have on masked phone numbers php . doesn't give android app side of things, teach how number masking works. then, check out documentation twilio programmable voice android , try build quickstart application . once have 2 parts, should able fit them complete solution. if have trouble bits, please post on stackoverflow code , feature having difficulty with.

overlay - One script using packages that are incompatible with one version of R -

i analysing movement data using script provided lascelles et al (2016) in paper "applying global criteria tracking data define important areas marine conservation". have made changes , additions script , face problem different packages needed not work within same version of r. i using package "trip" can see works >=3.2.5 depends on spatstat works >=3.3.0. script uses overlay function "sp" package, function has been deprecated, in order run needs older version of r (i have used version 3.0.3. is there way use multiple versions of r within same project, or have rewrite script avoid using functions not work within same r version? if don't need of new functions/features introduced in later versions of trip , spatstat think can use checkpoint package , install versions earlier date. there a nice vignette can have at , like: install.packages("checkpoint") library(checkpoint) checkpoint("2016-01-01")

sqlite - Wrap website with cordova phonegap. What happens with audio files? -

i have learn new language site, want wrap in cordova phonegap. app needs work offline. want make available on app store. the project budget low. need find quick way create app within budget , time frame. my question. possible wrap whole site? , save offline. happens database? need recreate database app, use sqlite ect. some pages have audio files, user can listen word pronunciations. happens audio files. need rebuild this? or there quicker way. can of achieved using cache? if there better way of doing please let me know. thanks in advance cordova-plugin-inappbrowser provides web browser view displays when calling cordova.inappbrowser.open(). var ref = cordova.inappbrowser.open('http://apache.org', '_blank', 'location=yes'); the cordova.inappbrowser.open() function defined drop-in replacement window.open() function. existing window.open() calls can use inappbrowser window, replacing window.open: window.open = cordova.inappb

java - Using private key (p12) embedded in a jar file for GoogleCredential Builder -

i using google sheets api query spreadsheet on google. code works fine when run inside eclipse. but, when project packed jar (say, spreadsheets-api.jar) , used different project maven dependency, running issues following method call: public static sheets createservice() throws googleserviceinitexception { if (properties == null) init(); url keyfile = googlespreadsheetservice.class.getresource(getvalue(propertyenum.privatekey_file)); if (keyfile == null) throw new googleserviceinitexception("missing private key file"); credential credential; try { credential = new googlecredential.builder().settransport(http_transport).setjsonfactory(json_factory) .setserviceaccountid(getvalue(propertyenum.service_account_id)) .setserviceaccountprivatekeyfromp12file(paths.get(keyfile.touri()).tofile()) .setserviceaccountscopes(scopes).build();

swift3 - domain: "Error in the Request" - code: 401 in Swift 3 -

when run program terminates giving message. "(nserror)domain: "error in request" - code: 401" - regarding line self.calend = (list as! array<msgraphserviceevent>) full code var calend:array<msgraphserviceevent> = array<msgraphserviceevent>() client.me.events.read(callback: {(list: [any]?, error) in self.calend = (list as! array<msgraphserviceevent>) self.tabletest.reloaddata() }) (also getting errors in values - "message" : "compacttoken parsing failed error code: -2147184105" ) i'm calling graph api , trying data table view.how solve error , data through office365 api call?

java - Is there any way to copy contents in Internet explorer window to Jframe application window? -

i creating 1 small executable application using java , jframe automation project. want copy particular content website(which opened in internet explorer) clicking button in jframe application? i recommend selenium , jsoup. selenium has code allow connect browser java(or other languages). there little bit of setup work going. http://www.seleniumhq.org/download/ shows there internet explorer driver. use chrome , today had update chromedriver because stopped working. there code in selenium clicking buttons, identifying resources, , getting web page source. you can combine selenium jsoup. jsoup familiar getting large sections of html out of web page. before knew selenium, used jsoup download page's source code , parse it. https://jsoup.org/ happy automating.