Posts

Showing posts from August, 2011

How to run cassandra queries with non-primary key columns in where clause faster.? -

i taking performance benchmarks consider cassandra db solution our project. have created table 28 columns couple of columns primary key. i loaded tables data around 250+ millions of records. when hit queries primary key columns in clause, results satisfactory. when parallelized queries in 5 threads, complete close 1 million queries in 2.5 minutes. however, when tried queries non-primary key columns in clause, 1000 queries took 2 hours. i knew that, not having primary key big disadvantage, still might have kind of situation down line. i tried see if can use secondary indexes, seems restricted 1 column only. i not find right example custom indexes needs index type class. if used columns in primary key, helpful @ least 5%.? is cassandra solution if expect more query situations without primary key columns in clause? i believe might have faced situation, great if 1 can share experience. is cassandra solution if expect more query situations without primary ke...

python - How to get the total number of entries contained in a TFRecord file? -

i able write , read tfrecord files tensorflow. how can total number of entries contained in tfrecord file? there api count? the tfrecords file format sequence of structures in form: struct tfrecords { uint64_t length; uint32_t length_checksum; uint8_t data[length]; uint32_t data_checksum; } × n there no metadata tell how many entries there, reliable way total read whole file (thus no apis total) , call num_records_produced() . you write custom metadata containing number first record when producing tfrecords. if sure every record has same length, number of entries decompressed_file_size / (length_of_each_record + 16) .

Monit doesn't start again with a bash script after docker stop -

i have docker container uses monit start few services mongodb, nginx. have bash script used docker start monit. here contents of file: #!/bin/bash # monit start apps /usr/bin/monit -c /etc/monitrc & # stay container stay alive while [ 1 ] ; if !(pgrep monit) /usr/bin/monit -c /etc/monitrc & fi sleep 5m done the problem when run docker create command create container, bash script runs , monit brings services, if stop container , start again, monit doesn't come or if come up, doesn't start services. verify whether bash script fine. used following reference https://blog.deimos.fr/2016/01/13/docker-why-you-should-use-monit-instead-of-supervisord/ to run multiple processes in container, use init system supports running in docker pid 1 s6 via s6-overlay or supervisord . adding custom scripts in between adds link in service chain , possibility of introducing issues system. signals , docker a docker stop sends sigterm signal container proces...

android - ListFragment not displaying async data -

i using loopj asynchronously load json data listfragment. using default listview comes listfragment , calling method filllistview in loopj's onsuccess callback function. have looked around @ many similar postings issue cannot resolve mine. i have tried loading listfragment mainactivity calling menucatfragment.newinstance("a","c").setlistadapter(adapter); but not working too. can please help. public class menucatfragment extends listfragment {
 //android studio auto-generated code ommitted public menucatfragment() { }
 @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); if (getarguments() != null) { mparam1 = getarguments().getstring(arg_param1); mparam2 = getarguments().getstring(arg_param2); } myapp = (app)this.getactivity().getapplication(); currentrestosummary = myapp.getselectedrestosummary(); restoid = currentrestosummary.getrestoid(); tr...

actionscript 3 - Calling a function and receiving: "Incorrect number of arguments. Expected 1." -

in small project, made function call function under condition. import flash.events.event; var yspeed:number=0; var maxspeed:number=5; var accel:number=.1; stage.addeventlistener(event.enter_frame, code); function code(codeevent:event){ if(sprite1.y>449){ code2(); } } function code2(code2event:event):void{ if(yspeed<5){ yspeed+=.5 yspeed-=accel } if(yspeed>5){ yspeed=5 } sprite1.y-=yspeed; trace(yspeed) } i error: line 9 1136: incorrect number of arguments. expected 1. on line nine, has code2(); note, have tried doing code2(event); code2(code2event:event); code2(code2event); and of them come different errors. tried changing names of function, , adding :void after calling it. currently, sprite1's position x=182 , y=482 on stage 320x480 i not have clue on why happening. when define function parameters not define default values, required (you must provide values parameters ...

java - Buttons will not be displayed horizontal to each other. Only overlapped on top of each other -

i having issues printing buttons java swing project. class, suppose replicate gui. far, have been able fine. having issue buttons overlapping each other in same location opposed next each other horizontally. below image of how buttons being printed onto the panel. so have 2 panels, 1 houses labels , text boxes ( toppane ) , 1 houses buttons, 5 in total ( bottompane ). trying 5 buttons print across bottom of gui , having hard time. feel missing simple. -------------------------------------------------------------- | label [textfield] | | label [textfield] | | label [textfield] | |------------------------------------------------------------- | [button] [button] [button] [button] [button] | -------------------------------------------------------------- but this: -------------------------------------------------------------- | ...

matlab - What's wrong with the use of arrayfun and bsxfun? -

Image
i want integrate function follows: in code, define indicator function follows: pconstfundingrange=[0:0.25:2,inf]; pconstfunding=[0,tempfundinginitialpara,0]; % note tempfundinginitialpara constant each interval) fundinginitial=@(t)... arrayfun(@(s)pconstfunding(find(s<pconstfundingrange,1,'first')),t); with function defined, define function: integral of fundinginitial : fundinginitialterm=... @(t,t)arrayfun(@(s1,s2)integral(fundinginitial,s1,s2),t,t); my goal enter 2 vectors: vec1=[1,2]' , vec2=[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9] , compute integral of given function f(s) follows: hence, use following code: bsxfun(@(t,t)fundinginitialterm(t,t),vec1',vec2) however, outputs following error message: error using arrayfun all of input arguments must of same size , shape. previous inputs had size 1 in dimension 1. input #3 has size 41 how solve problem? this way integrals can computed: f= @(s) sqrt(s); vec1=[1,2] ...

python - Peewee: Outer transaction does not roll back inner transaction (savepoints) -

running following python script twice throws error: peewee.programmingerror: relation "test_table" exists because table not removed on .rollback() . removing inner transaction ( with test_db.atomic() ) works. why inner transaction (which savepoints according documentation ) not rolled back? from datetime import datetime peewee import model, datetimefield playhouse.postgres_ext import postgresqlextdatabase """ create role test login; drop database if exists test; create database test owner test; """ credentials = { "database": "test", "user": "test", "password": none, "host": "localhost", "port": 5432, "register_hstore": false, } test_db = postgresqlextdatabase(**credentials) test_db.connect() test_db.set_autocommit(false) test_db.begin() # start transaction class testtable(model): timestamp = datetimefield(null=fal...

sas not do sum of all obeservation -

i have dataset name censusdata 11346 observation in last observationare blank data.we have find total population variable name t_p. i using code: data q1(keep=t_p count); set censusdata; array num(*) t_p; retain count; i=1 dim(num); if t_p = count=t_p; else count+t_p; end; run; problem sas find sum of first 3236 observation sum of 3237 4683 observation , on.they cannot sum of observation need. we need sum of totalpopulation(t_p) & need output dataset this totalpopulation=number sum variable in proc sql step: proc sql; create table q1 select sum(t_p) total_pop censusdata; quit;

.net - How to add limited time and functionality for C# application? -

i have desktop c# application, best way add these functionalities: limited time after app needs reinstall? limited privileges? (each user have different access functions of software) i want these options without login or server accessibility. want library or dll. it can done , hard @ same time. why can done? can write time of first launch \ installation in text file / registry / somewhere else, , check on every launch. however, not rely on approach since experienced user can "reset" limitation deleting / modifying file / registry key. if application commercial, means (often, huge) loss of money. recall how different commercial applications provide trial functionality (ms windows, ms office, adobe photoshop etc.) , recall how cracked 300 kb application :) if want make safe, need use generated , expirable license keys - better license server , since offline keys generation / validation algorithm can hacked well. you cannot implement role-based system...

python - PyInstaller - DLL Loading behavior -

i'm using pyinstaller create windows standalone application ( -onefile option) users (ie. no installation, user double clicks application , runs). works, dlls getting found , whatnot. however, i've noticed application attempts load dlls folder application started from. security risk, since lot of users running application downloads folder standalone downloadable. the dlls being searched in these risky locations system dlls such bcrypt.dll, secur32.dll, iertutil.dll, sspicli.dll, etc. these dlls found in system32 folder, it's searches directory application launched first. python-specific dlls , wxpython related dlls being found correctly on first try in special _meixxxx folder pyinstaller creates. other system dlls such kernel32.dll , user32.dll located right away in c:\windows\system32 i've read on dll search order on windows, , suspect it's because dlls dependent dlls , therefore searched first in directory application started from. based on how pyinstalle...

UICollectionView Strange gap between cells (Swift) -

Image
i'm trying display 2 sections of images in columns of 3. reason, there these strange gaps between of cells. i've looked everywhere in storyboard , seems correct. i've experimented setting columns 2, 4, 5, 6, , on. there no strange white lines columns set other number. these lines appear both in 5s simulator , on physical iphone 5s. override func viewdidload() { super.viewdidload() let width = cgrectgetwidth(collectionview!.frame) / 3 let layout = collectionviewlayout as! uicollectionviewflowlayout layout.itemsize = cgsize(width: width, height: width) } this error being caused floating point calculation did width . an iphone 5s has 320 pixels on width. assuming collectionview has same width screen, width , height of each cell 320 / 3 = 106.666666667 , repeating decimal. to fix this, i'd recommend using number divisible 3, , smaller (and close to) 320 collectionview width. if use 318, resulting width , height of each cell 318 / 3 = ...

arrays - Error with my ArrayList Code (Brackets Error) -

currently having error issue when compile file i've been checking while loops , stuff , see issue can't find it it's error showing (i hope) hopefully can out on bracket missing on or type of bracket cuz confused ;_; import java.util.scanner; import java.io.file; import java.util.stringtokenizer; import java.util.inputmismatchexception; import java.io.filenotfoundexception; import java.util.nosuchelementexception; public class inputfiler { public static void main(string [ ] args)throws inputmismatchexception { //error checking commandline input //to make sure user entered @ least 1 comandline argument if(args.length == 0) { system.out.println("please enter file name " + "as 1st commandline argument."); } else { integer[ ] array = inputfiler.readfilereturnintegers(args[0]); inputfiler.printarrayandintegercount(arra...

testing - How can access vistors to the wordpress admin area -

i want access visitors admin area test theme before purchase. there way it? just "wpbakery visual composer" https://vc.wpbakery.com/try/ thanks in advance yes, there plugin creates test drive sandbox you. http://codecanyon.net/item/test-drive-sandbox/13970142

linux - Accidentally enabled Firewall - SSH connections to port 22 are refused -

i have remote azure ubuntu vm firewall wasn't enabled. while changing configurations accidentally enabled firewall forgot allow port 22 ssh. port 443 allowed in firewall. it's lame mistake cannot ssh vm. ssh connection refused every time. there way out of this? unfortunately (august 2016) not possible on azure. way fix download vhds vm, boot them locally in hyper-v, vmconnect them, fix problem , upload them azure. it requested feature here: https://feedback.azure.com/forums/216843-virtual-machines/suggestions/3761826-virtual-machine-console-access

spring batch - mark read data as "processing" by a table column flag then restore at the end -

below relevant portion of code reader, processor , writer , step batch job create. i have requirement update flag column in table data being read ( source table ) mark data being processed job other apps don't pick data. once processing of read records finished, need restore column original value other apps can work on records too. i guess, listener approach take ( itemreadlistener ? ) . reader listener seems suitable first step ( i.e update flag column ) not restore @ end of chunk. challenge seems making read data available @ end of processor. can suggest possible approaches? @bean public step step1(stepbuilderfactory stepbuilderfactory, itemreader<remittancevo> reader, itemwriter<remittanceclaimvo> writer, itemprocessor<remittancevo, remittanceclaimvo> processor) { return stepbuilderfactory.get("step1") .<remittancevo, remittanceclaimvo> chunk(constants.spring_batch_chunk_size) ...

android - getView() method of custom adapter never gets called -

Image
i've read various threads on topic none of them seem apply code. i'm trying populate fragment listview custom nearbyadapter. however, getview() method never gets called (as demonstrated logs not showing up). view seems appropriately attached fragment, demonstrated button in view showing up, not listview. relevant nearbylistfragment.java code: public class nearbylistfragment extends listfragment { private int mimagesize; private boolean mitemclicked; private nearbyadapter madapter; private list<place> places; private latlng mlatestlocation; private static final string tag = "nearbylistfragment"; public nearbylistfragment() { } @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { log.d(tag, "nearbylistfragment created"); view view = inflater.inflate(r.layout.fragment_nearby, container, false); ...

twitter bootstrap 3 - Bootstrap3 btn-group-justified not working? -

Image
i trying this: this code: <div class="row"> <div class="col-md-3"> <div class="btn-group btn-group-justified"> <button type="button" class="btn btn-danger">proveedor</button> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="#">action</a></li> <li><a href="#">another action</a></li> <li><a href="#">something else here</a></li> </ul> </div> </div> <div class="col-md-3"> ...

c# - Xml Requests do not work -

i cannot bare bones asp.net core web api project work using xml instead of json. please help! i have created new project , adjustments default configuration add xml formatters... public void configureservices(iservicecollection services) { // add framework services. services.addapplicationinsightstelemetry(configuration); services.addmvc(config => { config.inputformatters.add(new xmlserializerinputformatter()); config.outputformatters.add(new xmlserializeroutputformatter()); }); } my controller contains simple , post methods: [route("api")] public class messagecontroller : controller { [httppost] public void post([frombody] message message) { } [httpget] public iactionresult get() { return ok(new message { testproperty = "test value" }); } } when try calling post method content-type: application/xml , api returns 415 unsupported media type. ha...

html5 - PouchDB: What to expect on a remote url of the database? -

i trying create offline first mobile app using pouchdb database. after creating instance of pouchdb, says create remote database, should provide remote database url. var remotedb = new pouchdb("http://sampleurl.com/sampledb"); now, question is, should setup url ( in case: http://sampleurl.com/sampledb ) provided run remote database pouchdb? are there setup needed or provide url , go? thanks. appreciate help! just provide url , go! of pouchdb api available communicate remote database. there useful options , configuration available when creating new instance of pouchdb, such setting headers , default authentication. can read more here: https://pouchdb.com/api.html#create_database

How to store all pixel values of an image in either in an array or in a vector using matlab -

this question has answer here: image pixel values 1 answer i want store pixel values of image in either in array or in vector using matlab. please suggest me how can it? probably seems want store image in 1d, can done as: i = imread('cameraman.tif'); i_1d = i(:); you take transpose of vector i_1d = i(:)';

c# - Can we attach more than one object in entity framework and do savechanges once -

i using visual studio 2012 , entity framework 6.0 , doing crud operation have challenge face that. i doing multiple entries in 1 form , want update or save details @ once doing this: create object , store values , add / update attach 1 one , save changes. but can attach multiple object of class , savechanges @ last mean after loop. running save multiple savechanges attaching multiple objects? example: for(int i=0; < comingrequestdata.count(); i++) { objectexample obj = new objectexampole(); obj.value1 = comingrequestdata[i].value1; obj.value2 = comingrequestdata[i].value2; obj.value3 = comingrequestdata[i].value3; context.objectexamples.attach(obj); } context.savechanges(); can this? little bit confused please 1 me. you can try shown below. .attach if have entity exists in database, , have constructed entity manually, use .attach . .addobject if have brand new object, use .addobject . for(int i=0; < comingr...

animation - Android Animated Vector Drawable: change rotation degree at runtime -

i'm trying make android vector animation, contains rotation on vectorial group. basically, if degree transition constant, use resources: my vectordrawable: <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportheight="600" android:viewportwidth="600"> <group android:name="myrotationgroup" android:pivotx="300.0" android:pivoty="300.0" android:rotation="0"> <path android:name="myname" android:fillcolor="#000000" android:pathdata="m300,70 l 0,-70 70,70 0,0 -70,70z"/> </group> </vector> my animatedvectordrawable: <animated-vector xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/my_v...

delphi - May DWS calling functions from sample unit? -

may dws calling functions sample unit? example: fexecution.info.func['test.clickproc'].call(aparams); (this not working) fexecution - idwsprogramexecution; function declared in script code: unit test; uses utestunit; procedure testfunc(lparam: string); begin showmessage(lparam); end; procedure clickproc(sender: tobject); begin showmessage('dws'); end; var s: tstringlist; var btn: tbutton; begin btn := tbutton.create(mainform); btn.onclick := clickproc; btn.parent(mainform); end. clickproc in example. i don't think can done. the symbol lookup in call info.func[] doesn't resolve name unit scope , identifier instead simple lookup symbol named "test.clickproc". since clickproc procedure symbol named "clickproc" lookup doesn't find it. i thought maybe possible find procedure symbol manually via symbol tables... var fexecution: idwsprogramexecution; unitsymbol: tunitmainsymbol; funcsymbol: tfuncs...

c++ - C++11 constexpr compilation error -

i trying declare constexpr , throws compilation errors. static constexpr float gobasemovementspeed = (1.135f / 440.f); why line not working? error c2144: syntax error : 'float' should preceded ';' error c4430: missing type specifier - int assumed. note: c++ not support default-int gobasemovementspeed member of class. compiler: visual studio 2013 visual studio 2013 not support c++11 features. in same time supports tiny part of c++14 features std::make_unique example. constexpr not supported on visual studio 2013. for full list: https://msdn.microsoft.com/en-us/library/hh567368.aspx

javascript - Scrolling animation not applying top the first menu item -

i managed implement snippet grabbed here on wordpress site: http://scentology.burnnotice.co.za/ $("#primary-menu > li > a").on("click", function(event){ event.preventdefault(); var bookmark = $(this).attr("href").substring(1,$(this).attr("href").length); bookmarktag = $("a[name='"+ bookmark +"']"); if(bookmark !== undefined) { $('html,body').animate({scrolltop: bookmarktag.offset().top}, math.floor(bookmarktag.offset().top)); } }); when click on menu item,it leads me right section perfectly.only problem when click on home item, scrolls top animation not apply goes fast. how can apply animation home menu item well? can please try below code works me. can change animatespeed want $("#primary-menu > li > a").on("click", function(event){ event.preventdefault(); var bookmark = $(this).attr("href").substring(1,$(this).attr(...

WSO2 APIM 2.0 Clustering deployment issue when generate access token -

i deployed 2 keymanager nodes, 2 pub-store nodes, 1 gateway manager node , 2 gateway worker nodes in 1 server, , deployed nginx load balance. when try generate application access token, reported below error: 2016-08-29 03:10:59,558 [-] [http-nio-9443-exec-5] error subscription-add:jag org.jaggeryjs.scriptengine.exceptions.scriptexception: error while obtaining application access token application:defaultapplication 2016-08-29 03:29:37,439 [-] [http-nio-9443-exec-45] error amdefaultkeymanagerimpl error while creating tokens - sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target javax.net.ssl.sslhandshakeexception: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target @ sun.security.ssl.alerts.getsslexception(alerts.java:...

ios - Executing the NSOperation when all other operations in NSOperationQueue finished no matter whether they finished successfully or not -

hi have strange situation here : overview: i working on app user can initiate multiple operations , these operations run on background thread hence not block ui. of these operations dependent on each other , not. in order ensure operation execute after necessary dependencies operations finished executing using dependency property of operation. making use of asynchronous operations. here implementation : import uikit import coredata import swiftyjson class vmbaseoperation: nsoperation { var finishedstatus : bool = false var executionstatus : bool = false var retrycount : int = 0 private (set) var requesttoqueue : baserequest? = nil var vmoperationcompletionblock: ((json?) -> void)? var vmoperationfailureblock: ((webresponseerror?) -> void)? override init() { super.init() } convenience init(withvmrequest request : baserequest) { self.init() requesttoqueue = request } override func start() { ...

java - Colons in Apache Spark application path -

i'm submitting apache spark application yarn programmatically: package application.restapplication; import org.apache.hadoop.conf.configuration; import org.apache.spark.sparkconf; import org.apache.spark.deploy.yarn.client; import org.apache.spark.deploy.yarn.clientarguments; public class app { public static void main(string[] args1) { string[] args = new string[] { "--class", "org.apache.spark.examples.javawordcount", "--jar", "/opt/spark/examples/jars/spark-examples_2.11-2.0.0.jar", "--arg", "hdfs://hadoop-master:9000/input/file.txt" }; configuration config = new configuration(); system.setproperty("spark_yarn_mode", "true"); sparkconf sparkconf = new sparkconf(); clientarguments cargs = new clientarguments(args); client client = new client(cargs, config, sparkconf); client.run()...

Add a variable to a javascript callback -

i using library must define callback function, , library execute function upon event: // initialize callback library. // `lib` main variable library , defined globally function initializations() { var extra_var = 'pass me callback'; var libprops = { libcallback: function(settings) { stuff } }; lib.reconfigure(libprops); } the library runs callback (i have no control on this): var settings = 'xyz'; libprops.libcallback(settings); so clearly, 1 of variables input defined callback settings variable. want pass in variable of own: function mycallback(settings, extra_var) { // stuff involving settings // stuff involving extra_var } how can define libprops.libcallback within initializations() extra_var passed in, function mycallback defined elsewhere? ie so: function mycallback(settings, extra_var) { // stuff involving settings // stuff involving extra_var } is possible? reason want define mycallback() outside o...

java - Unable to hide a JButton when clicked.(JButton in a JTable) -

i'm making jtable n putting jbuttons in jtable . want hide button when clicked. after editing code not happening, plz help. image == https://www.dropbox.com/s/nkslfwho2lzdcqs/javadouuubt.png?dl=0 when click on allow, work on database n should hide (but isn't hiding). //code table == string[] columns = {"username", "phone", "rooms","allow","cancel"}; //jt1 table name string data2[][] = {{"john", "18", "male","allow","cancel"}, {"daisy", "19", "female","allow","cancel"}, {"dave", "23", "male","allow","cancel"}, {"jake", "30", "male","allow","cancel"}}; jt1 = new jtable(data2, columns); jt1.setpreferredscrollableviewportsize(new dimension(450, 63)); jt1.s...

Getting garbage values while implementing linked list using structs in C# (unsafe construct) -

i trying verify behavior reported 1 of friends, implemented singly linked list in c# using struct. since had use pointers used unsafe construct provided c#. set property allow unsafe code in build tab of project properties make code compilable. here complete code implementation: public unsafe struct nodelist { public node* head; public node* current; public void addnode(int d) { node n = new node(); n.data = d; n.link = null; if (head == null) { head = current = &n; } else { (*current).link = &n; current = &n; } console.writeline(head->data); } public void traversenodes() { node* temp = head; while(temp != null) { console.writeline(temp -> data); temp= temp -> link; } } } public unsafe struct node { public int data; public nod...

javascript - The code does not work in FF and IE? -

$(window).on('scroll.toelement', function (e) { var s_top = $("body").scrolltop(); var el = $("#popular").offset().top; if(s_top > el){ console.log('test') $(window).off('scroll.toelement'); } }); the chrome , opera works in ff , ie not work. how solve problem, tell me? need function console.log() worked 1 time achievement of desired block. 2 browsers wrote ok, in other 2 - not working. , can not understand why. example i found solution: replaced var s_top = $("body").scrolltop(); on var s_top = $(window).scrolltop(); example

javascript - Canvas Restart On Button Click -

i have canvas html element gets displayed when click on button. the problem having animation in canvas lasts 1 second. when click on button change css property display:none display:inline , animation has ended, loading in background. what want happen click on button restart canvas animation. dont mind loading in background, want restart on click of button. this html canvas , button: <canvas class="canvas2" id="canvas2"></canvas> <script src="canvas.js"></script> <div class="buttons"> <button class="two">canvas 2</button> </div> this javascript canvas. animation bouncing square left right: var canvas = document.getelementbyid('canvas2'); var c2 = canvas.getcontext('2d'); c2.fillstyle = "black"; c2.fillrect(0,0,canvas.width,canvas.height); var posx = 20; posy = canvas.height / 2; vx = 8, vy = -10; gravity = 1; setinter...

oracle goldengate works fine, but i keep getting OGG-00945 -

looks goldengate working fine, keep receiving error @ target in mgr.prm report file as warning ogg-00945 startup of ggcmd ^e failed (parameter file /u01/app/oracle/product/12.1.0.2/ogg/dirprm/^e.prm not exist ^e) i receive warning every 1hr in mgr.rpt , replication working good. what can issue? pointers? thanks harish you have incorrect autorestart parameter in mgr.prm . edit manager parameter file , remove incomplete or unwanted autorestart parameters, these: autorestart ^e autorestart . autorestart

php - Can't write txt-file on server | not within allowed path(s) -

i'm having trouble writing file in private folder on school's server. i've heard problem rights. or code? believe folders location correct. few errors: 1 $testfile = "schoolserver/test.txt"; 2 3 if (!file_exists($testfile)) 4 { 5 $fileoperation = "a"; 6 $test = preg_replace( '/\h+/', ' ', $test); 7 $file = fopen ($testfile, $fileoperation); 8 fwrite ($file, $week . "\r\n" . $test . "\r\n" . "\r\n"); 9 fclose ($file); 10 } warning: file_exists(): open_basedir restriction in effect. file(test.txt) not within allowed path(s): (d:\sitestemp) in d:\register-test.php on line 3 warning: fopen(): open_basedir restriction in effect. file(test.txt) not within allowed path(s): (d:\sitestemp) in d:\register-test.php on line 7 warning: fopen(test.txt): failed open stream: operation not p...