Posts

Showing posts from April, 2012

push notification - Objective C iOS 8 deprecated code -

i have depracated code when upgrading target ios 10. please can 1 me convert following i'm unable find solution. - (void)userrequestspushnotificationson { uiapplication *application = [uiapplication sharedapplication]; uiusernotificationtype notificationtypes = uiusernotificationtypealert | uiusernotificationtypebadge | uiusernotificationtypesound; uiusernotificationsettings *settings = [uiusernotificationsettings settingsfortypes:notificationtypes categories:nil]; [application registerusernotificationsettings:settings]; [application registerforremotenotifications]; } uiusernotificationtype & uiusernotificationsettings deprecated. many in advance! what need implement unusernotificationcenter . here's guide setup: push notifications in ios 10 wiki

java - Adding several JSONObject into one but not as an array -

i working on java api , need format data json. want following structure : { "main": { "point1": { "x": 0.18, "y": 10.8, "z": 0 }, "point2": { "x": 0.18, "y": 9.36, "z": 0 }, "point3": { "x": 0.18, "y": 8.46, "z": 0 }, "point4": { "x": 0.18, "y": 7.38, "z": 0 } } } basically there list of points in "main" jsonobject object don't want array. jsonobject main = new jsonobject(); for(point p : points){ jsonobject point = new jsonobject(); jsonobject coordinates = new jsonobject(); coordinates.put("x", p.getx());

javascript - previous URL document.referrer is empty -

i have saved link on page: https://sites.google.com/site/sanccvfx/home http://127.0.0.1:5000 , http://192.168.1.2:5000 but when capture using document.referrer come out empty string instead of coming. wiki

php - How to fetch an array from a prepared statement inside a class -

i wrote code: public function getdataasarray($myquery){ $this->connection = mysqli_connect($this->host, $this->dbusername, $this->dbpassword, 'portal'); $statement = $this->connection->prepare($myquery); $statement->execute(); $data = $statement->get_result()->fetch_array(); $results = array(); while($line = $data){ $results[] = $line; } return $results; } i'm trying return result database array can use in foreach loop. doesn't work before of exhausted memory allocator. i have working (unsafe) code: public function getdataasarray($myquery){ $this->connection = mysqli_connect($this->host, $this->dbusername, $this->dbpassword, 'portal'); $query = mysqli_query($this->connection, $myquery); $results = array(); while($line = mysqli_fetch_array($query)){ $results[] = $line; }

stripe payments - Facebook messenger iOS apple pay -

i checking if facebook messenger open apple pay option. tried safari supports apple pay, not web browser inside facebook messenger. is there way go around today. thanks in advance! i'm sure answer no, since it's specific safari. wiki

batch file - Getting Autosys Job Status from Autosys CLI using Java -

i used batch file fetch status of autosys job autosys cli. want same in java. want fetch data automated mails. know runtime class can used executing external commands , used powershell. not sure how same autosys cli. fetch data automated mails. set server1=xxxxxx set autoserv=xxxxx set path=xxx /f "tokens=1" %%j in ('autostatus -j xxxxjob') set status=%%j wiki

angular - How can I disable AOT in angular2? -

i got this: ng build --prod --no-aot but not able understand difference between ng build --prod and ng build --prod --no-aot the flag --prod aot compilation default. if want build without aot run ng build without flag. wiki

Linking CUDA files to an existing c++ project using Cmake -

i've been trying port part of existing c++ project cuda. found this great example on how include simple cuda kernel existing header file, key separate gpu code cpu, , further on include function definitions. i've been trying accomplish similar, yet can't seem make example work cmake tool, build tool of project. cmake looks in lines of: include_directories($cmake_current_source_dir) find_package(cuda quiet) if(cuda_found) set( codebase basic.cpp kernel.hpp ) include_directories(${cuda_include_dirs}) message(status "cuda detected") set(cuda_propagate_host_flags on) set(cuda_separable_compilation off) list( append cuda_nvcc_flags -gencode=arch=compute_30,code=compute_30,ccbin=g++-4.8 ) list( append cuda_nvcc_flags -gencode=arch=compute_52,code=sm_52 ) #collect cuda files file(glob kernels *.cu) #build static library cuda_add_library(kernel_lib ${kernels} static) set(libs ${kernel_lib} ${codebase}) add_library(codeba

Hide return value from a Spring MVC controller in SpringFox 2 -

Image
i have async spring mvc controller returns future . springfox 2 renders this: how remove it? thank in advance! i resolved issue adding following method call sprinffox's docket : .genericmodelsubstitutes(responseentity.class, completablefuture.class) hope someone. wiki

python except and finally do not work with KeyboardInterrupt -

after executing following code, when press control+c, execution ends , nothing printed console import time x = 1 try: while true: print x time.sleep(.3) x += 1 except keyboardinterrupt: print "bye" finally: print "this one" there indentation problem in code. if changed to: import time x = 1 try: while true: print x time.sleep(.3) x += 1 except keyboardinterrupt: print "bye" finally: print "this one" output is: 1 2 3 4 5 6 bye 1 wiki

php - How do I change the comment font in PhpStorm 2017 -

Image
my comment font written in persian. because current font not display properly, want change font. how do this? wiki

javascript - How to delete a table line in angular js? -

i`ve got problem delete items object. made function deleting,but unfortunetly can delete 1 number in object.like if have 2 tasks , choose delete 2nd delete 1st one. no idea how fix it:( $scope.deletetask = function(taskindex){ $scope.tasks.splice(taskindex,1); } here`s code blocks easier understanding of code: <tr ng-repeat="task in tasks"> <td> <button class="btn btn-danger" ng-click="deletetask(task)">delete</button> </td> <td>{{task.taskname}}</td> <td><input type="checkbox" ng-model="statuscheck"> </td> <td style="{{setstyletotd(statuscheck)}}">{{statuschecker(statuscheck)}}</td> <td><button class="btn btn-primary">edit</button></td> </tr> var taskinformation = [ { taskname: "test task" , status: false } ]; (i know there lots of problems mine didnt

java - Dropbox API ListFolder limit 2000 entries -

i found out listfolder/continue api returns 2000 entries only. , have tried recursion , while loops fetch metadata , add existing top level result.getentries() list. none of these approaches working, still see 2000 metadata entries in ultimate result. has tried , made work in java? each page of listfolder results, i.e., each response single call listfolder or listfoldercontinue , can contain 2,000 entries. (note number not guaranteed, should not rely on it.) to make sure can of items in folder, need use both listfolder , listfoldercontinue , calling listfoldercontinue latest cursor when hasmore on last call true . there's working example here: https://github.com/dropbox/dropbox-sdk-java/blob/c6aeb4bf3011e6b803eaa325ea20a52f8412ee0f/examples/tutorial/src/main/java/com/dropbox/core/examples/tutorial/main.java#l32 wiki

regex - Regular expression to match a line that doesn't contain a word? -

i know it's possible match word , reverse matches using other tools (e.g. grep -v ). however, i'd know if it's possible match lines don't contain specific word (e.g. hede) using regular expression. input: hoho hihi haha hede code: grep "<regex 'doesn't contain hede'>" input desired output: hoho hihi haha the notion regex doesn't support inverse matching not entirely true. can mimic behavior using negative look-arounds: ^((?!hede).)*$ the regex above match string, or line without line break, not containing (sub)string 'hede'. mentioned, not regex "good" @ (or should do), still, is possible. and if need match line break chars well, use dot-all modifier (the trailing s in following pattern): /^((?!hede).)*$/s or use inline: /(?s)^((?!hede).)*$/ (where /.../ regex delimiters, i.e., not part of pattern) if dot-all modifier not available, can mimic same behavior character class [\

node.js - how to update data using knex() in loopback? -

i trying code update data in loopback not work please give right solution if trying update data not updated please tell me answer how code work: return new promise(function(resolve, reject) { //builds sql query var query = knex('customer_information').insert({ customer_id: data.customer_id ? data.customer_id : null, company_name: data.company_name ? data.company_name : null, country: data.country ? data.country : null, address1: data.address1 ? data.address1 : null, address2: data.address2 ? data.address2 : null, city: data.city ? data.city : null, state: data.state ? data.state : null, postalcode: data.postalcode ? data.postalcode : null, phonenumber: data.phonenumber ? data.phonenumber : null, customertype: data.customertype ? data.customertype : null, }); console.log(query); datasource.connector.query(query.tostring(), null, function(err, response) { c

winforms - C# adding collection of custom properties from the property grid at design time -

Image
i have issue of not being able add created columns collection of type. i have following property: public observablecollection<browselayoutcolumns> _browselayoutcolumns = new observablecollection<browselayoutcolumns>(); [category("design")] public observablecollection<browselayoutcolumns> browselayoutcolumns { { return _browselayoutcolumns; } set { _browselayoutcolumns = value; } } browselayoutcolumns [typeconverter(typeof(browselayoutcolumns))] public class browselayoutcolumns : datagridviewcolumn { #region properties public string columnname { get; set; } public string bindingfield { get; set; } #endregion public browselayoutcolumns() : base(new datagridviewtextboxcell()) { } public override object clone() { var copy = base.clone() browselayoutcolumns; copy.columnname = columnname; copy.bindingfield = bindingfield; retur

level - Combine LOD and Octree for select meshes -

i have prepared simple pieze of code mixing concepts. in example load geometry (buffergeometry) coming gltf file. i using lod feature combined simplifymesh function in order have 5 level of details. i using octree object push lods. it seems working fine. my problema want able pick meses mouse middle button, raycaster.intersectoctreeobjects function not working. function expects array of meses , not array of lods passing. could me addapt code ver able pick lod meses in octree? here full code. <!doctype html> <html lang="en"> <head> <title>three.js webgl - level-of-details</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <style> body { background:#000; color:#fff; padding:0; margin:

github - Build a jenkins job from a git repo subdirectory -

my git repo (repo.git) has 2 folders (mod1 , mod2) in same branch. these database objects different modules. need have 2 jobs on jenkins build mod1 , mod2. build set "build parameters" in can specify module built. source git repo branch mentioned in configuration. how can specify folder (mod1 or mod2) parameter ? you can use string paramter plugin and cd relevant folder , build .. wiki

asp.net - Trying to run a 32-bit .NET app on a 64-bit Windows client -

yes, have checked other similar questions, none of them seem match problems having. i have 64-bit windows client 64-bit oracle installed, app uses library requires 32-bit oracle client. created directory , put 32-bit instant client basic files it, , added suggested entries web.config, when try running app locally, 2 sorts of exceptions thrown. here web.config file: <configuration> <configsections> <section name="oracle.dataaccess.client" type="system.data.common.dbproviderconfigurationhandler, system.data, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" /> </configsections> <system.data> <dbproviderfactories> <!-- remove in case defined in machine.config --> <remove invariant="oracle.dataaccess.client" /> <add name="oracle data provider .net" invariant="oracle.dataaccess.client" descript

html - Modifying table rows with jQuery -

i have small table want modify jquery. don't have ability change classes on static html needs done via jquery. i'd see if td class=x says '48 hour hold' td class=y in , in tr changed unavilable. don't know how exclude things in different tr. <table> <tr> <td class="x">48 hour hold</td> <td class="y">available</td> </tr> <tr> <td class="x">reference desk</td> <td class="y">available</td> </tr> </table> $(document).ready(function(){ if($(".x:contains(48 hour hold)")){ $(".y:contains(available)").text('unavailable'); }; }) the result should this: <table> <tr> <td class="x">48 hour hold</td> <td class="y">unavailable</td> </tr> <tr> <td class="x">reference desk</td> &

javascript - Dynamically retrieve all fields present in Solr documents -

is possible dynamically retrieve fields present in set of solr documents , still maintain reasonable performance? end goal here dynamically populate list of numeric fields users sort current query upon. in perfect world, i'd able have list contain of numeric fields present in docs returned user's query. if isn't possible achieve, though, i'm going populate list numeric fields via luke handler. unfortunately seems luke handler returns fields entire collection, can't restricted current query. i'm new solr, help/discussion appreciated! wiki

html - How to center a div and make it "sticky" then disappear -

i have been searching , trying sorts of things working. have site making want logo centered @ top of screen. z-index highest thing on page , stay in place while user scrolls down. then, logo passes div beneath it, have logo fade out. so basically, want centered (responsive, possible?) div sits on top in z-space , stays put while scroll down. fades out begins running content down page. codepen: https://codepen.io/anon/pen/gxkjno if add position:fixed either #logo element or logo wrapper div ( #logo_div ) breaks in different ways. #logo-div { z-index: 1; width: 30vw; height: 30vh; margin: 0 auto; display: block; } #logo { max-height: 100%; max-width: 100%; margin: 0 auto; } #testy { display: block; overflow: hidden; position: relative; } #separator { background-color: white; z-index: -999; } #map-canvas { background-color: grey; z-index: : -998; } <div id="logo-div">

python - Creating a namedtuple from a list -

consider list variable t in [55]: t out[55]: ['1.423', '0.046', '98.521', '0.010', '0.000', '0.000', '5814251520.0', '769945600.0', '18775908352.0', '2.45024350208e+11', '8131.903', '168485.073', '0.0', '0.0', '0.022', '372.162', '1123.041', '1448.424'] now consider namedtuple 'point': point = namedtuple('point', 'usr sys idl wai hiq siq used buff cach free read writ recv send majpf minpf alloc vmfree') how convert variable t point? obvious (to me anyways..) approach - of providing list constructor argument - not work: in [57]: point(t) --------------------------------------------------------------------------- typeerror traceback (most recent call last) <ipython-input-57-635019d8b551> in <module>() ----> 1 point(t) typeerror: _

ios - Expected Type in Protocol -

i implemented protocol in objective-c , when use own class type definition xcode tells type required. #import <foundation/foundation.h> #import <uikit/uikit.h> #import "lprphotocapturecamera.h" @protocol lprphotocapturecameradelegate <nsobject> - (void)camera:(lprphotocapturecamera *)camera finishedcapturingphoto:(uiimage *)captureduiimage; @end i looked in header files apples delegates , edited protocol @class lprphotocapturecamera , works. #import <foundation/foundation.h> #import <uikit/uikit.h> #import "lprphotocapturecamera.h" @class lprphotocapturecamera; @protocol lprphotocapturecameradelegate <nsobject> - (void)camera:(lprphotocapturecamera *)camera finishedcapturingphoto:(uiimage *)captureduiimage; @end i wonder why xcode not throw error uiimage here, have explanation this? what happened (i guessing because did not show files) lprphotocapturecamera.h imports lprphotocapturecameradelegate.h

docker for windows - How to read Powershell variable inside Dockerfile? -

i'm building docker windows image. try pass variable powershell command, not work. dockerfile # escape=` microsoft/windowsservercore shell ["powershell", "-command", "$erroractionpreference = 'stop'; $progresspreference = 'silentlycontinue';"] run $somevar="2.60.3" ; echo $somevar docker build sending build context docker daemon 2.048kb step 1/3 : microsoft/windowsservercore ---> 2c42a1b4dea8 step 2/3 : shell powershell -command $erroractionpreference = 'stop'; $progresspreference = 'silentlycontinue'; ---> using cache ---> ebd40122e316 step 3/3 : run $somevar="2.60.3" ; echo $somevar ---> running in dd28b74bdbda ---> 94e17242f6da removing intermediate container dd28b74bdbda built 94e17242f6da tagged secrets:latest exprected result i can workaround using env variable and, possibly, multistage build avoid keeping variable: # escape=` microsoft/windowsservercore

c++ - QChar get digit value if `isDigit()` -

how digits value elegantly? qchar qc('4'); int val=-1; if(qc.isdigit()){ val = qc.tolatin1() - '0'; } does not good. neither converting qstring since creating qstring object , start parsing purpose seems overkill. qchar qc('4'); int val=-1; if(qc.isdigit()){ val = qstring(qc).toint(); } any better options or interfaces have missed? there method int qchar::digitvalue() const which : returns numeric value of digit, or -1 if character not digit. so, can write: qchar qc('4'); int val = qc.digitvalue(); wiki

javascript - Loading cross-domain endpoint with jQuery AJAX -

i'm trying load cross-domain html page using ajax unless datatype "jsonp" can't response. using jsonp browser expecting script mime type receiving "text/html". my code request is: $.ajax({ type: "get", url: "http://saskatchewan.univ-ubs.fr:8080/sasstoredprocess/do?_username=darties3-2012&_password=p@ssw0rd&_program=%2futilisateurs%2fdarties3-2012%2fmon+dossier%2fanalyse_dc&annee=2012&ind=v&_action=execute", datatype: "jsonp", }).success( function( data ) { $( 'div.ajax-field' ).html( data ); }); is there way of avoiding using jsonp request? i've tried using crossdomain parameter didn't work. if not there way of receiving html content in jsonp? console saying "unexpected <" in jsonp reply. jquery ajax notes due browser security restrictions, ajax requests subject same origin policy ; request can not retrieve data different domain, subdomain,

c# - Zoom lens on diferent screen resolutions -

i´m using code create zoom lens, working fine on computer, when try program run on notebook (not 1080p screen) not working correctly. what lens show part of image, part mouse hover, in square zoomed. on other computers not showing part mouse is, zoomed part showed far way mouse pointer. what should code work on others computers resolutions?? public partial class formlens : form { picturebox picturebox1 = new picturebox(); // have picture box int zoom = 4; // variable zoom value bitmap printscreen; timer timer = new timer(); public formlens() { initializecomponent(); picturebox1.dock = dockstyle.fill; // occupy full area of form picturebox1.borderstyle = borderstyle.fixedsingle; // have single border of clear representation controls.add(picturebox1); // add control form formborderstyle = formborderstyle.none; // make form borderless make lens timer.interval = 100; // set interval timer timer.ti

r - How to create a dot plot with a lot of values in ggplot2 -

Image
i created bar chart show population distribution of vietnam. vietnam2015 data: year age.group est.pop 1 2015 0-4 7753 2 2015 5-9 7233 3 2015 10-14 6623 4 2015 15-19 6982 5 2015 20-24 8817 6 2015 25-29 8674 7 2015 30-34 7947 8 2015 35-39 7166 9 2015 40-44 6653 10 2015 45-49 6011 11 2015 50-54 5469 12 2015 55-59 4623 13 2015 60-64 3310 14 2015 65-69 1896 15 2015 70-74 1375 16 2015 75-79 1162 17 2015 80+ 1878 this bar chart , wondering if make dot plot instead of bar chart. library(tidyverse) vietnam2015 %>% filter(age.group != "5-9") %>% # somehow weird value creeped data frame, therefor filtered out. ggplot(aes(x = age.group, y = est.pop)) + geom_col(colour = "black", fill = "#ffeb3b") now know dot plot data not many data points. can create dot plot 1 dot represents 1000 people or mill

jquery on working on php result button -

i have ajax script , using script show result in php, in result printing button & want use jquery method on button, jquery not working. my ajax code below $(document).ready(function(){ $.ajax({ url : "<?php echo base_url('/map/connection_list/')?>", type: "post", datatype: "html", success: function(data) { $("#res").html(data); //$("#content").html(data.content); // $('[id="content"]').val(data.content); }, error: function (jqxhr, textstatus, errorthrown) { alert('error data ajax'); } }); $("#yes").click(function(){ alert("ok"); }); }); result php code below <button id='yes' class='btn btn-primary'>yes</button> <button id='no' class='btn btn-default'>no</button> now want use jquery function on button used in below f

java - Kafka topic details not displaying in spark -

i have written topic in kafka my-topic , trying fetch information of topic in spark. facing difficulty in displaying kafka topic details getting long list of errors. using java fetching data. below code: public static void main(string s[]) throws interruptedexception{ sparkconf conf = new sparkconf().setmaster("local[*]").setappname("sampleapp"); javastreamingcontext jssc = new javastreamingcontext(conf, durations.seconds(10)); map<string, object> kafkaparams = new hashmap<>(); kafkaparams.put("bootstrap.servers", "localhost:9092"); kafkaparams.put("key.deserializer", stringdeserializer.class); kafkaparams.put("value.deserializer", stringdeserializer.class); kafkaparams.put("group.id", "different id allotted different stream"); kafkaparams.put("auto.offset.reset", "latest"); kafkaparams.put("enable.auto.commit", false);

Web Service Creation in SAP MDG -

i have requirement wherein need expose data have in mdg via web service. external systems running on java or .net should able call these web services , insert/update/search bp. what best , effective way create web services in sap mdg? one thing have found configuring in soa manger i.e. data replication using enterprise service oriented architecture using drf best way create services in mdg , expose functionalities? wiki

vba - modifying function cohort/matrix of ratings migration -

i have function trying modify. the function below calculates migration frequencies of ids moving 1 rating on period of 1 calendar year restricts computation cohorts formed @ end of year (ystart) , transitions occuring until end of year (yend). if not specified transition matrix estimated year end following first rating year end preceding last rating action. my problem if have monthly data can calculate transition matrices within calendar year. however, estimating rolling transitions such instance feb-2002 feb-2003, mar-2002 mar-2003. function, such written limits year end year end. can modify compute rolling 12-month frequencies? function cohort(id, dat, rat, _ optional classes integer, optional ystart, optional yend) 'function written data sorted according issuers , rating dates (ascending), 'rating classes numbered 1 classes, last rating class=default, not rated has number "0" if ismissing(ystart) ystart = year(application.

web testing - Understand the XXE injection payload? -

i know xxe, want know basic format of basic payload, , want understand in simple language, can me, ?xml version="1.0" encoding="iso-8859-1"? !doctype foo !element foo !entity xxe system "file:///etc/passwd" ] foo&xxe;/foo i know function of lowest part, want know above 1 doctype , element one, will big help, thank you wiki

PHP: Writing CSV file to mysql inserts empty record -

this question has answer here: parse error php: import csv file mysql using database [duplicate] 1 answer warning: fgetcsv() expects parameter 1 resource, boolean given in c: 2 answers i open csv file , trying write in mysql db. it writes empty records , loop not break. below code and throws error 1.warning: ,,fgetcsv() expects parameter 1 resource, string given in on line 19 <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "ib"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("connection failed: " . $conn->connect_error); } $file=$_files["file"]["tmp_name"]; echo $file; $fh = fopen($fi

jquery - how do I resolve this types conflict? -

i'm executing grunt task "typescriptusingtsconfig" , i'm getting following error: conflicting definitions 'jquery' found at: 'c:/code/platts.bentek.web.benport/src/platts.bentek.web.benport.website/ node_modules/ng2-select2/node_modules/@types/jquery/index.d.ts' ---and--- 'c:/code/platts.bentek.web.benport/src/platts.bentek.web.benport.website/ node_modules/@types/jquery/index.d.ts'. consider installing specific version of library resolve conflict. what strategy resolving conflict? main app greenfield development can use latest version of jquery. however, drilling node_modules ng2-select2, looks it's wired use jquery v2.0.39. there way use both versions of jquery? or main app limited lowest version of jquery used child component? update i assuming jquery @types configuration existed @ app root level , nested implementation within select2 control b/c error message stated there conflicting definitions b/t these 2 location

reactjs - React-Select -- Get unselected value -

i'm using react-select in current app , can't seem find way unselected value. i'm new react maybe there "react" way not obvious me. seems weird can't find mention of anywhere. this best way come with, seems obtuse: class productmultiselect extends component { constructor(props) { super(props) this.state = { selectedvalues: [] } this.onchange = this.onchange.bind(this) } onchange (value) { // update redux form this.props.input.onchange(value) const newvalues = value.map( product => product.value) if (newvalues.length == 0 || newvalues.length < this.state.selectedvalues.length) { const removedvalue = this.state.selectedvalues.filter(x => newvalues.indexof(x) < 0 ); this.setstate({selectedvalues: newvalues}) } else { const newvalue = newvalues.filter(x => this.state.selectedvalues.indexof(x) < 0 );

salt stack - Running post-provisioning action after multi-host vagrant provision -

i have vagrantfile takes salt-ssh roster , configures hosts each of entries. i need use salt orchestrate runner finish off provisioning (specifically, configure redis cluster) after vms up. does know way of doing this? know can provide list of orchestrations run on master. but docs indicate it'd run on vagrant up, , given behaviour of other salt provisioning options, seems it'd run master came up, not after master , minions have come up. can suggest way of executing salt orchestrations after vms , provisioned? contents of vagrantfile: require 'yaml' require 'resolv' # run "vagrant plugin install vagrant-hostmanager" if produces error require 'vagrant-hostmanager' box = "centos/7" roster = yaml::load(file.read("etc/salt/roster")) pattern = /.*lab.*/ master_pattern = /.*orchestrator.*/ # filter stuff we're not interested in roster = roster.select |hostname, roster_entry| roster_entry.key?("host

php - WebEdition: Creating Object Folder in Root is not possible -

we imported older project new version of webedition. not able create new object folders in root of objects - in subfolders possible. comes message: "das verzeichnis ist ungültig" ("the folder invalid") we using webedition 7.0.3 thx in advance! wiki

How to check if a function in Google App Script is already being executed by another user? -

i have function (function doget()) in google app script being called chrome extension. function being called everytime user clicks button in chrome extension popup.html. button in popup.html simultaneously being clicked 30+ users. can place check if function being executed 1 user, next user cannot execute till ? you can use lock service of app script. the lock service allows scripts prevents concurrent access sections of code. can useful when have multiple users or processes modifying shared resource , want prevent collisions. function doget(){ var lock = lockservice.getscriptlock(); lock.waitlock(10000); // in milliseconds // code lock.releaselock(); } wiki