Posts

Showing posts from August, 2010

compiler construction - Operator Precedence Parser: Where do we keep reduced tokens? -

an op precedence parser has stack , input buffer. i believe after popping, "id" token reduced variable "e". for every pop of "id" token stack after seeing mathematical operator in input, popped token kept? if input id+id*id$ , time $ reached, "id"s have been popped. kept? assuming goal build ast, id s (and other operand tokens such literal constants) put ast node created reduction. if you're directly evaluating or generating three-address code or ..., answer differ slightly. however, broad outline same: operator-precedence parsing bottom-up parse algorithm in right-hand side of production reduced corresponding non-terminal (on left-hand side of production) when it's last input symbol has been read (and lookahead indicates correct action reduction).

oauth 2.0 - IDX10503: Signature validation failed -

i getting following error valid token after application re-start or publish idx10503: signature validation failed. keys tried: 'system.identitymodel.tokens.rsasecuritykey exceptions caught: token: '{"typ":"jwt","alg":"rs256","kid":null}.{"unique_name":"test@test.com","iss":"xxxxxx","aud":"xxxxx","exp":1444876186}' this function generate key private void generatersakeys() { using (rsacryptoserviceprovider rsa = new rsacryptoserviceprovider(2048)) { key = new rsasecuritykey(rsa.exportparameters(true)); credentials = new signingcredentials (key,securityalgorithms.rsasha256signature, securityalgorithms.sha256digest); rsa.persistkeyincsp = true; } } this how configuration done services.configureoauthbearerauthentication(options => { options.automaticauthentication = true; options.tokenvalidationparam

javascript - How to create mutliple spans from within a Backbone view -

i have a collection of model data need render inside div this: _.each(model.stages, function(stagesdata){ this.$('.stagedate').text(stagesdata.get('status')); this.$('.stagestatus').text(stagesdata.get('timestamp')); }); this html i'm trying render data: <span class="stagedate"></span> <span class="stagestatus"></span> now what's happening right shows last item inside model in view , not all. know because loop overwrites created span, wanted understand way go it? please suggest! instead of text() : this.$('.stagedate').text(stagesdata.get('status')); use append() : this.$('.stagedate').append('</p>' + stagesdata.get('status') + '</p>');

PHP PDO Common Error i Faced -

i gotten error database connected fatal error: call member function prepare() on non-object in d:\home\site\wwwroot\databasemethods.php on line 22 i can't seem find causing 1 point out whats wrong please enlighten me. i have tried call connection before running prepared statement cant seems work or should thanks in advance databasemethods.php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(e_all); require_once("databaseconnection.php"); date_default_timezone_set("asia/singapore"); //register function registeruser($email , $password) { $conn = connect_db(); $stmt = null; $stmt = $conn->prepare("insert secure_login (email,password,created_dt) values(?,?,?)"); //error line $stmt->execute(array($email, $password , date("y-m-d h:i:s"))); if( $stmt ) { return "success";

linux kernel - Cannot reserve 512MB or more of CMA -

i'm trying reserve 512mb of cma memory on arm64 box 64gb of memory, , i'll "cma: failed reserve 512mib" error message during linux boot. reserving 384mb works fine. please let me know if need further info. i'd appreciate help. [esl_start_os]:[644l] start jump linux kernel booting linux on physical cpu 0x10000 initializing cgroup subsys cpuset initializing cgroup subsys cpu initializing cgroup subsys cpuacct linux version 4.1.0+ (s00327669@salem-linux) (gcc version 4.9.3 20141031 (prerelease) (linaro gcc 2014.11) ) #4 smp mon oct 5 12:00:57 edt 2015 cpu: aarch64 processor [411fd071] revision 1 detected pipt i-cache on cpu0 alternatives: enabling workaround arm erratum 832075 earlycon: serial console @ mmio32 0x60300000 (options '') bootconsole [uart0] enabled efi: getting efi parameters fdt: efi: uefi not found. cma: failed reserve 512 mib percpu: embedded 16 pages/cpu @ffffffd7bfa00000 s27648 r8

javascript - In PaperJS how to link onMouseUp event to origin of onMouseDown event when mouse has moved away from item -

in paperjs project have bunch of objects have circle path associated them. these paths each have mouse functions. what i'd create links between 2 circles when clicking on one, dragging mouse, , releasing mouse button on circle. for use paperjs onmousedown , onmouseup events, implemented inside object: function circleobj() { // object constructor this.circle = new path(...); this.circle.onmousedown = function(event) { //eventstuff } } where this.circle circle path. the problem when release mouse button no longer linked circle, , onmouseup function doesn't execute until click on actual circle again. therefore doesn't allow drag , drop on other circle, since 'drop' action doesn't register. how can have onmouseup event register , linked circle onmousedown event took place? if want keep mouse events tied constructor, think easiest keep initial point in global variable. it's cleaner adding , removing tool event view ,

osx - C Compilation error on mac -

gcc -c -o fsbench.o fsbench.c -o3 -wall -wextra gcc -o fsbench fsbench.o -o3 -wall -wextra -lpthread undefined symbols architecture x86_64: "_reposition_offset", referenced from: _perf_io in fsbench.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) make: *** [fsbench] error 1 i not able compile program on mac. keeps throwing error. tried several things , not able compile without error.

websphere - Which user between the wasadmin user and the root user is recommended to install IBM Installation Manager 1.8 on Linux? -

which user between wasadmin (nonroot) user , root user recommended install ibm installation manager 1.8 on linux? there no recommendation available on this. of cases, have seen wasadmin user installation of ibm products. advantage root is, if see risk of getting deleted im mistake, while installing products same user, go root.

android - Retrofit 2.0 POST method with body is String -

Image
this question may have been asked before new version 2.0 did not find correct answer yet. my problem below: public interface authenticationapi { @post("token") call<string> authenticate(@body string body); } then call: retrofit retrofit = new retrofit.builder().baseurl(authenurl) .addconverterfactory(gsonconverterfactory.create()) .build(); authenticationapi authen = retrofit.create(authenticationapi.class); try { call<string> call1 = authen.authenticate(authenbody); call1.enqueue(new callback<string>() { @override public void onresponse(response<string> response, retrofit retrofit) { log.d("thaipd", "success " + response.raw().message()); } @override public void onfailure(throwable t) { log.e("thaipd", &quo

sql - Oracle RTRIM trims more than asked for -

does know why these: select rtrim('123r_cluster', '_cluster') -- should give '123r' dual; select rtrim('123s_cluster', '_cluster') -- should give '123s' dual; select rtrim('123t_cluster', '_cluster') -- should give '123t' dual; select rtrim('123u_cluster', '_cluster') -- should give '123u' dual; return '123' instead of expected? i'm on oracle database 12c enterprise edition release 12.1.0.2.0 - 64bit production. the fun begins when try these: replace 123 else (no change still wrong results, i.e. trims 1 character more), replace "r" / "s" / "t" / "u" else, (works ok) replace "_cluster" else, (works ok) add after "_cluster" (no change). the documentation quite clear: the oracle/plsql rtrim function removes specified characters right-hand side of string. so doesn't remove string _c

ios - Sync Checkmarks Between UISearchController and FetchRequest -

i'm trying sync accessorytype.checkmark between search view , non-search view. i've tried setting cell.accessorytype = .none in few different spots on cellforrowatindexpath , yet keep getting random checkmarks when switch between fetchedresults , search results. don't know i'm screwing up, rest assured it'll startlingly stupid. i have uitableviewcontroller that's set up. when loads, have configured display items nsfetchrequest . works perfectly. i have uisearchcontroller that's set up. works , displays results want. i encounter problem of random checkmarks appearing when toggle between search , fetchrequest. array of stuff save working , right items in there---it's checkmarks getting ****ed up. feedback appreciated. i'm out of ideas. here relevant properties i've got declared before viewdidload in uitableviewcontroller class: // create array dump fetchresults var unfilteredjingles = [jingle]() // create array store filtered

javascript - Knockoutjs elegant way of populating the observable properties after posting to server -

i wanted know, elegant way of populating observable properties after posting json server. my js var vm = (function() { var commit = function(item) { var model = { name: item.name(), isactive: item.is_active() }; $.post('/to/server/post', model); .done(function(d) { item.id(d.id); }); } }()); in server public jsonresult post(itemvm model) { var item = new item { name = model.name, isactive = model.isactive }; // saving here , commit database model.id = item.id; return json(model, jsonresultbehavior.denyget); } while above snippet work. find hard maintain way, there elegant or way of doing this? need returned id update later on. btw, i'm using asp.net mvc 5, knockoutjs any appreciated. thanks

ios - Add subviews on Customize UIView works not as expect -

Image
i subclass class of uiview called: aurtabview . drag 3 views(white background) storyboard auto layout them 1/3 screen width of each. add uibutton on init method, works far below: then want add 2 uiview s on them. weird thing first , third autrabview works expect, middle 1 doesn't. this weird. checked uiview hierarchy below: any point? here code: class aurtabview: uiview { let tabbutton = uibutton() let smallcircle = uiview() let largecircle = uiview() required init?(coder adecoder: nscoder) { super.init(coder: adecoder) self.addsubview(tabbutton) self.addsubview(smallcircle) self.addsubview(largecircle) } override func layoutsubviews() { super.layoutsubviews() let height = self.frame.height tabbutton.frame = cgrect(x: (self.frame.width-height)/2, y: 0, width: height, height: height) tabbutton.backgroundcolor = uicolor.greencolor() smallcircle.frame = cgrect(x:

validation - How to allow CaptchaControl not a case sensitive in asp.net(both capital and small character should allow)) -

Image
captchacontrol code <captcha:captchacontrol id="captcha1" runat="server" captchabackgroundnoise="low" captchalength="5" captchaheight="60" captchawidth="200" captchalinenoise="none" captchamintimeout="5" captchamaxtimeout="240" fontcolor="#529e00" />

c# - Getting an access token in ASP.NET 5 -

my asp.net 5 (mvc 6 + beta7) web application (mvc + webapi) required access_token webapi login calls. so far, googling, have created following code startup.cs: app.useoauthbearerauthentication(options => { options.automaticauthentication = true; options.audience = "http://localhost:62100/"; options.authority = "http://localhost:62100/"; }); my client side is: var login = function () { var url = "http://localhost:62100/"; var data = $("#userdata").serialize(); data = data + "&grant_type=password"; $.post(url, data) .success(saveaccesstoken) .always(showresponse); return false; }; is required use useopenidconnectserver ? if so, how use signingcredentials token (e.g. mvc5 applicationoauthprovider)? please note site simple demo http site , not need ssl. is required use useopenidconnectserver? using aspnet.security.openidconnect.server not "required&

swing - Java Applet Layout Doesn't Appear As It Is Supposed To o_O -

Image
i taking java class semester , working on take-home quiz. in create calculator of sorts supposed 1st image attached as can see base panel supposed divided 2 rows , 1 column. upper panel divided 3 rows , 2 columns. lower panel has 4 buttons calculations performed. for quiz created 2 files, wholepanel.java , layoutpanel.java. here code wholepanel.java: package layoutpanel; import java.awt.borderlayout; import static java.awt.borderlayout.center; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author ross satchell */ public class wholepanel extends jpanel{ public jtextfield textbox1, textbox2, resultbox; public double num1, num2, result; public jlabel label1, label2, label3; public jbutton addbutton, subbutton, multipbutton, dividbutton; public wholepanel(){ // constructor jpanel upperpanel, lowerpanel, subpanel; upperpanel = new jpanel(); // panel top section lowerpanel = new jpanel();

c# - How to get filename from UploadFileCompletedEventArgs? -

my goal filename of finished file e. ... webclient webclient = new webclient(); webclient.uploadfileasync(new uri(address, "stor", filename)); ... void webclientuploadcompleted(object sender, uploadfilecompletedeventargs e) { //how filename e? } uploadfileasync accepts user state fourth parameter. can change call to: webclient.uploadfileasync(new uri(address), "stor", filename, filename); and retrieve in callback: void webclientuploadcompleted(object sender, uploadfilecompletedeventargs e) { var filename = (string)e.userstate; }

rest - Spring RestTemplate - BufferingClientHttpRequestFactory & SimpleClientHttpRequestFactory -

i saw below code in 1 of rest clients built using spring. rest client present within rest service , calling rest service. purpose of statement? return new bufferingclienthttprequestfactory(new simpleclienthttprequestfactory()) bufferingclienthttprequestfactory decorator around clienthttprequestfactory , resttemplate uses create clienthttprequest s faciliate http communication. decorator in particular provides buffering of outgoing/incoming streams. simpleclienthttprequestfactory implementation of clienthttprequestfactory , uses jdk facilities (classes java.net package) , therefore not depend on third party libraries, such apache httpcomponents http client, required implementation httpcomponentsclienthttprequestfactory .

c# - RowIndex out of range -

i'm having trouble code. i'm trying show different picture each case. code seems flawed, i'm pretty new c# , asp.net lost pretty easily. here's portion of code crashes: protected void onrowdatabound(object sender, gridviewroweventargs e) { gridviewrow row = gridview1.rows[e.rowindex]; string class = (e.row.findcontrol("txtclass") textbox).text; htmlcontrol htmctrl = e.row.findcontrol("imgid") htmlcontrol; switch (class) { case "a1": { string logo = @"c:\users\rudra\documents\visual studio 2010\projects\mvcapplication1\mvcapplication1\images\box_blue.png"; htmctrl.attributes.add("src", logo); break; } case "a2": { string logo = @"c:\users\rudra\documents\visual studio 2010\projects\mvcapplication1\mvcappl

asp.net mvc 4 - How to pass 2 parameters through $.getJson in MVC? -

i doing application in mvc. did cascading dropdownlist in list . while selecting value dropdown passed value $.getjson() controller. passing 1 id controller. problem need pass 2 id's controller. possible send 2 ids controller? my view page <div> @html.dropdownlist("business", viewbag.categoryid selectlist ,"select business category", new { id = "business" }) </div> <div> <label>select service type</label> @*<select id="buname" name="buname" style="width:150px"></select>*@ @html.dropdownlist("service", viewbag.service selectlist,"select", new { id = "service", name ="buname"}) </div> <div> <label> select location</label> <select id="location" name="location&qu

android - How to test if we are doing a release build in Gradle -

i need build operations during release build speed routine debug build. how test, if i'm doing release build in build.gradle script? splits { abi { enable /* condition here -> */ true reset() include 'x86', 'armeabi-v7a', 'mips' universalapk true } } i found example here , don't want set build property, prefer automatic. please try: splits { abi { if (project.gradle.startparameter.tasknames.any { it.tolowercase().contains('release') }) { enable true reset() include 'x86', 'armeabi-v7a', 'mips' universalapk true } else { enable true reset() include 'armeabi-v7a' universalapk false } } } however, mind fact configuration doesn't take task dependencies account. mean task may depend on release task , if isn't passed via

sunos - Sed commad not working in sun solaris machine -

i have xml file in searching below pattern. <serviceconfig id="554"> <comment>ecs_ocs_v1_0.0.0.7.32251@3gpp.org</comment> <maxcost>0.000000</maxcost> <maxcostlocalcurrency>true</maxcostlocalcurrency> <atomic>false</atomic> <tariffswitchhandling>external</tariffswitchhandling> <cdrattollfreeservice>false</cdrattollfreeservice> <bonusduringsession>false</bonusduringsession> <usermessagesstartofsession>true</usermessagesstartofsession> <usermessagesduringsession>true</usermessagesduringsession> <useaccumulatorstartvalues>false</useaccumulatorstartvalues> <validitytime factor="1">120</validitytime> <volume> <total preferredfactor="1024" preferred="500" minimumfactor="1000000" minimum="0"></total> </volume> <volumequotathreshold factor="1">0</volum

How to define format in Java String.format(format,args..) where args are dynamic -

when args dynamic how define format,where args 1 can define format “sss %d”? official javadoc ( https://docs.oracle.com/javase/7/docs/api/java/util/formatter.html ) states 3 kinds of formatting types: general, character , number : %[argument_index$][flags][width][.precision]conversion dates: %[argument_index$][flags][width]conversion others: %[flags][width]conversion none of them allows use conditions represent in case of non matching args ... . i think parse both parameters: string format , object[] arguments, create coherent pair of parameters depending on runtime circumstances.

java - Spark: Running multiple queries on multiple files, optimization -

i using spark 1.5.0. i have set of files on s3 containing json data in sequence file format, worth around 60gb. have fire around 40 queries on dataset , store results s3. all queries select statements condition on same field. eg. select a,b,c t event_type='alpha' , select x,y,z t event_type='beta' etc. i using aws emr 5 node cluster 2 core nodes , 2 task nodes. there fields missing in input. eg. a missing. so, first query, selects a fail. avoid have defined schemas each event_type . so, event_type alpha , schema {"a": "", "b": "", c:"", event_type=""} based on schemas defined each event, i'm creating dataframe input rdd each event corresponding schema. i'm using following code: javapairrdd<longwritable,byteswritable> inputrdd = jsc.sequencefile(bucket, longwritable.class, byteswritable.class); javardd<string> events = inputrdd.map( new function<tuple2<longwritab

c# - Grouping by a field in DocumentDB -

is possible, in way, group upon field in documentdb, stored procedure or not? let's have following collection: [ { name: "item a", priority: 1 }, { name: "item b", priority: 2 }, { name: "item c", priority: 2 }, { name: "item d", priority: 1 } ] i items in highest priority group (priority 2 in case). not know value of highest priority. i.e.: [ { name: "item b", priority: 2 }, { name: "item c", priority: 2 } ] with crude linq, this: var highestpriority = collection .groupby(x => x.priority) .orderbydescending(x => x.key) .first(); documentdb not support group nor other aggregation. second requested feature , listed "under review" on documentdb uservoice . in mean time, documentdb-lumenize aggregation library d

python - General Approach to Working with Data in DataFrames -

question experienced pandas users on approach working dataframe data. invariably want use pandas explore relationships among data elements. use groupby type functions summary level data on subsets of data. use plots , charts compare 1 column of data against another. i'm sure there other application haven't thought of. when speak other novice users myself, try extract portions of "large" dataframe smaller dfs sorted or formatted run applications or plot. approach has disadvantages in if strip out subset of data smaller df , want run analysis against column of data left in bigger df, have go , recut stuff. my question - best practices more experienced users leave large dataframe , try syntactically pull out data in such way effect same or similar cutting out smaller df? or best cut out smaller dfs work with? thanks in advance.

asp.net - ASP MVC to multiple IIS (Deploy) -

is there way deploy asp mvc application same config multiple iis (different server, same url) ? i have deploy same project multiple iis application, of course visual studio 1 click web publish it's ok, in case have more 10 deployment do. so there way, script powershell or else ? thanks i had similar issue , ended writing custom app. don't know of anyway handle automatically ms tools.

java - how to make a nested loop break if string.contains() is correct -

i'm having issues understanding nested loops , behavior. on first loop script asks 10 digit number otherwise keep looping, works fine. on second loop, i'm trying program keep running until users enters "999" anywhere in phone number. have idea i'm not able put together. if user enters 10 digit number doesnt contain 999, keep asking reenter phone number. import javax.swing.joptionpane; import java.lang.*; public class formatphonenumber { public static void main(string[] args) { final int numlength=10; string phonenum = null; string nines="999"; phonenum=joptionpane.showinputdialog(null, "enter telephone number"); while (phonenum.length()!=numlength) {phonenum=joptionpane.showinputdialog(null, "you must re-enter 10 digits telephone number."); } stringbuffer str1 = new stringbuffer (phonenum); str1.insert(0, '('); st

c - segmentation fault core dump after program runs and displays output -

i have made changes program started with: reason getting segmentation error. happens after output , think may have free statement in destroy function. ran through gdb , told me trying access 0x000000d memory location weird because can print out memory location of struct , shows different. know have missed small. appreciated thanks! had take m code down since on going project in school replies post on once have grade. you have undefined behavior in code. take line: struct person *userone=inputvalues(userone); here define variable userone , initialize calling inputvalues function, pass uninitialized pointer. means inside inputvalues function, temp pointer uninitialized, , value indeterminate leading said ub when dereference pointer. one possible solution define structure variable not pointer, , use when calling inputvalues , or dynamically allocating structure , pass function. or redesign program not pass argument function @ all, , let function allocate str

java - All ObjectEvents created share similar source information? -

any time use objectevent, every statement in it's "performed" method called. actionevent, if put separate action commands different objects, every action command called every object. similarly, using public library, jnativehook, utilizes global screen listening keyboard/mouse. there individual constants defined describe each key keyboard pressed, each "nativekeyevent" (the object event) performs every command despite conditional statements. in context: @override public void nativekeypressed(nativekeyevent nativekeyevent) { nativekeyevent e = nativekeyevent; color col; piece.tetcolor t; if(e.getkeycode() == (nativekeyevent.vc_space)); { system.out.println("space pressed"); } if(e.getkeycode() == nativekeyevent.vc_escape); { system.out.println("escape pressed"); } } this action performed of nativekeyevent. no matter key press, print out: space pressed escape pressed i had proble

java - Stack is not handling data properly -

ok, working on method splits numerical string characters , pushes each character sequentially integer 2 different stacks until sees operator skips , proceeds push rest of characters integers stacks. stack keeps displaying numbers not being read. text file being read looks this: 28302830-293817302 public void pushtostack(string line) { boolean pushtofirststack = true; (int = 0; < line.length(); i++) { if (character.isdigit(line.charat(i))) { if(pushtofirststack){ system.out.print(character.getnumericvalue(line.charat(i))); stack1.push(character.getnumericvalue(line.charat(i))); }else{ system.out.print(character.getnumericvalue(line.charat(i))); stack2.push(character.getnumericvalue(line.charat(i))); } pushtofirststack = !pushtofirststack; } else { //sets operator if(line.charat(i) == add){ return;

WSO2 APIM Publish API freezing when click Next : Manage > -

some times when publish api, on implementat fase, when click on next : manage >, publish application freeze, need restart apim restablishing publish application. no errors in logs. enviroment: redhat el 6.5, java 1.7.0_80, apim 1.9.1 sql server 2008. thank you

asp.net mvc - how to inject other services on generic account controller mvc -

i having trouble calling other services in account controller using identity account controller public class accountcontroller : controller { private readonly imyprofileservice _profileservice; private readonly iunitofworkasync _unitofworkasync; private applicationusermanager _usermanager; public applicationusermanager usermanager { { return _usermanager ?? httpcontext.getowincontext().getusermanager<applicationusermanager>(); } private set { _usermanager = value; } } private applicationsigninmanager _signinmanager; public applicationsigninmanager signinmanager { { return _signinmanager ?? httpcontext.getowincontext().get<applicationsigninmanager>(); } private set { _signinmanager = value; } } private applicationrolemanager _rolemanager; public applicationrolemanager rolemanager { { return _rolemanager ?? httpcontext.getowincontext().get<applicationrolemanager>(); }

get values from each itme in xml code with python -

i have xml code: <item> <field var="name" type="text-single"><value>jhon</value></field> <field var="subject" type="text-single"><value>test server</value></field> <field var="num_users" type="text-single"><value>11</value></field> <field var="num_max_users" type="text-single"><value>25</value></field> <field var="is_password_protected" type="boolean"><value>false</value></field> <field var="is_member_only" type="boolean"><value>false</value></field> <field var="language" type="text-single"><value>es</value></field> <field var="location-type" type="list-single"><value>worldwide</value></field>

Azure PowerShell cmdlet into Strings -

just quick question. running lines of code like, $publicip = get-content (get-azurevm -servicename $servicename -name $vmsname | get-azureendpoint | select { $._vip }) $osdisk = get-content (get-azurevm -servicename $servicename -name $vmsname | get-azureosdisk) and me ipaddress or variables, when trying put value csv cell, fails. think because tries add labels, not know how string , set variable that. know how remedy this? edit: if output with: get-azurevm -servicename "vm1" -name "vm1" | select dnsname | out-string is this: dnsname ------- http://example.cloudapp.net/ how put in " http://example.cloudapp.net/ " csv-entry? right trying put of code block csv giving me awful formatting erros. select

use smo to clone azure SQL database? -

i'm writing program test update scripts azure sql. idea - first clone database (or fill clone source schema , content) - run update script on clone locally have working, azure have probem don't see file names. if restore 1 database on same azure "server", don't have rename data files during restore too? for local restore this: restore.devices.adddevice(settings.backupfilename, devicetype.file); restore.relocatefiles.add(new relocatefile("<db>", path.combine(settings.datafiledirectory, settings.testdatabasename + ".mdf"))); restore.relocatefiles.add(new relocatefile("<db>_log", path.combine(settings.datafiledirectory, settings.testdatabasename + "_1.ldf"))); restore.sqlrestore(srv); is similar required cloning database on azure? lots of greetings! volker you can create database copy of [source] : create database database_name [ collate collation_name ] | copy of [source_server_name].sou

Cordova screen orientation plugin, screen is flashing when changing orientation on iOS -

i'm developing app using cordova/ionic, , using screen orientation plugin several different app screens. on android works fine, though while testing on ios device (7.1), whenever unlock orientation allow both landscape , portrait on screen, , going screen fixed on portrait, flashes black screen 100ms during 'orientation fix'. i wonder if encountered similar situation before, extremely helpful. much thanks!

Disable setText of Button Android -

i extended button class achieve sign in button of design user cannot change of details or style. after done that, found out can not stop user changing text or design of button either programmatically or xml. i want achieve sign in button facebook predefined login facebook. i tried overriding settext no luck, final method can not override public class signinbutton extends button{ @override public void settext(charsequence chars){ } } i suggest not extend button. make view extends view , use ondraw method paint it. this way view not button developer can't use settext()

amazon ec2 - Unable to create EC2 when subnet is used via Ansible(same works through AWS-CLI) -

i trying create ec2 instance using ansible. if try without subnet(and default security group), works perfect , creates ec2. not want. want create instance using specific 'sg' , using subnet that's existing(defined organization). same subnet , 'sg' works fine when using aws-cli(and via console too), same profile, same image, same key , same instance type. creates instance under subnet , assigns sg passed in command - perfect!! can rule out access/role related issues here(as cli/console works fine)? if so, else issue can ansible/boto? aws cli: aws ec2 run-instances --image-id ami-3d401234 --count 1 --instance-type t2.large --region us-east-1 --key-name mykeynamehere --security-group-ids sg-766b1234 --subnet-id subnet-09871234 --profile myprofilenamehere here playbook. - name: provision ec2 node hosts: local connection: local gather_facts: false tags: provisioning vars: instance_type: t2.large image: ami-3d401234 gro