Posts

google apps script - HeaderSection copy to new document -

in google apps scripts, i'm trying copy headersection new document in it's entirety (so can replace name text name) so used: var thedoc = documentapp.openbyid('idnumber'); var theprotoheader = thedoc.getheader().copy(); thedoc.saveandclose(); thedoc = documentapp.openbyid(thedocid); if (! thedoc.getheader()) { thedoc.addheader(); } var thenewheader = thedoc.getheader().clear(); thenewheader = theprotoheader; but no success last line ... ideas? wiki

java - PKIX vs SunX509 in TrustManagerFactory and KeyManagerFactory -

i trying create ssl-context https. i found code developer, no longer here. keystore keystore = keystore.getinstance("jks"); keystore.load(new fileinputstream(keystorefilename), password); keymanagerfactory kmf = keymanagerfactory.getinstance("sunx509"); kmf.init(keystore, password); trustmanagerfactory tmf = trustmanagerfactory.getinstance("pkix"); tmf.init(keystore); sslcontext sslcontext = sslcontext.getinstance("tls"); sslcontext.init(kmf.getkeymanagers(), tmf.gettrustmanagers(), (securerandom)null); i wondering why used pkix in trustmanager , sunx509 in keymanager . i found article, , did same thing. http://blog.palominolabs.com/2011/10/18/java-2-way-tlsssl-client-certificates-and-pkcs12-vs-jks-keystores/index.html i understand difference between stores based on answer. https://stackoverflow.com/a/19988445/398909 but couldn't...

r - HiClimR Hierarchical Climate Regionalization - Convert CRU data to run MultiVariate Clustering function and delimit to a specific region -

i'm newbie in r. use hiclimr package delimit areas homogeneous climatic characteristics in brazilian semi-arid regions. want run multi-variate clustering model cru database 0.5 degrees spatial resolution time series (1901 - 2015), listing variables (cld, dtr, frs, pet, pre, tmn, tmp, tmx). i don't understand how convert cru database object read in function hiclimr , how delimit specific region. thanks in advance wiki

bazel - Building tensorflow with python 3.4 for IBM+NVIDIA machine -

error: /gpfs/homeb/zam/padc005/.cache/bazel/_bazel_padc005/4f3eb26734397362b20fba00382498a3/external/protobuf/build:679:1: protocompile external/protobuf/python/google/protobuf/any_pb2.py failed (exit 1): protoc failed: error executing command (exec env - \ bazel-out/host/bin/external/protobuf/protoc '--python_out=bazel-out/local_linux-py3-opt/genfiles/external/protobuf/python' -iexternal/protobuf/python -ibazel-out/local_linux-py3-opt/genfiles/external/protobuf/python bazel-out/local_linux-py3-opt/genfiles/external/protobuf/python/google/protobuf/any.proto bazel-out/local_linux-py3-opt/genfiles/external/protobuf/python/google/protobuf/api.proto bazel-out/local_linux-py3-opt/genfiles/external/protobuf/python/google/protobuf/compiler/plugin.proto bazel-out/local_linux-py3-opt/genfiles/external/protobuf/python/google/protobuf/descriptor.proto bazel-out/local_linux-py3-opt/genfiles/external/protobuf/python/google/protobuf/duration.proto bazel-out/...

react native - Expo on iOS crashed without error -

i developing react native application via expo. earlier worked well, after decided translate app redux 1 monster commit began crash on ios , on android well. can reason of such behavior? in debugger put lot of breakpoints, couldn't find crashes. if install osx on virtualbox xcode , read logs help? wiki

c# - Missing app.config file, and option on "Add New Item" does not show configuration file -

Image
i'm missing app.config file on visual studio 2017. when go added using "add new item", "application configuration file" missing. on menu, tools - nuget package manage manager, "manage nuget packages solution" missing. is there way can options back? when create new project, options there, particular solution not. is there way can options back? when create new project, options there, particular solution not. you should make sure there project in particular solution , if have solution without project or project unloaded, not find application configuration file , manage nuget packages solution. besides, if there project in solution, please check if projects unloaded, if yes, should reload it: if above answer not solve problem, please share more detail info, screenshots better. wiki

php - how to send a mail if email id already exist in database? -

code: <?php if($this->input->post('send')) { $email = $this->input->post('email'); $this->db->select('password,firstname'); $this->db->from('user'); $where = "email = '$email'"; $this->db->where($where); $query = $this->db->get(); if ($query->num_rows() > 1) { $result = $query->result_array(); foreach ($result $row) { $password = $row['password']; $firstname = $row['firstname']; } if($result) { $toemail = $this->input->post('email'); $fromemail = "info@xyz.com"; $this->load->library('email'); $this->email->from($fromemail, 'test'); $this->email->to($toemai...