I reinstall xampp and since then it do problem now sudenly it stop to work the apache is running but when I try to run localhost via broswer I get: ERR_CONNECTION_REFUSED What's the problem and how can I fix it? SOLVED Because I change the port to 8080 berfore that I need to enter via localhost:8080 now its working great. thanks all
I want to show that seeds of different species display different length due to the factor Species. For each species, I have several trees and for each tree, I have several seeds measured. Using R, I did an ANOVA: summary(aov(Length ~ Species)) However, the reviewer noticed a problem of independence because seeds may provide from the same tree. (and this is indeed a real problem !) To answer this issue, I think that I should do a nested ANOVA. Is that right ? However, there are plenty of ways to write the code: summary(aov(Length ~ Species*Tree)) summary(aov(Length ~ Tree*Species)) summary(aov(
I have tried code entered into the putty command line such as rsync -avz myHugeFile.dat [email protected]: Trouble Uploading Large Files to RStudio using Louis Aslett's AMI on EC2 (code taken from the linked question above) Though I could not get it to work and I think this was due to not knowing how to properly frame it in light of the location of the files. I am putting this as a separate question rather than a comment as I don't have enough 'reputation' to comment. in the context of a windows user asking this 1) Was I correct to use this in Putty? 2) Did I need to put anythin
I am try to query from and database using eclipse link using entities. when I use normal query records are returned from current date by when I use JPA zero records are returned. Where could I be doing wrong, Or how can I use to_char function in JPA my database is postgresql. normal sql query that returns records select * from mytable where to_char(transaction_date, 'YYYY-MM-DD') = '2016-01-19'; MyEntity @Temporal(javax.persistence.TemporalType.DATE) private Date transaction_date; EntityManager e = EntityMgr.MyFact().createEntityManager(); e.getTransaction().begin(); Query qry = e.createQuery(
Im trying to configure xampp in windows server 2012RT 64-bit. I downloaded latest version of xampp(xampp-win32-7.0.1-0). I am using oracle 11gR2 version, so I downloaded oracle instant client 11_2 (64-bit). I enabled extension for oracle in php.ini file extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client extension=php_pdo_oci.dll And restarted xampp server, I got error like this,
Quero gravar a url do componente BannerAd após efetuar o Load, percebo que o componente passa a url ao navegador padrão do dispositivo. O código é o seguinte: unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes,System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Edit, FMX.Advertising; type TForm1 = class(TForm) BannerAd1: TBannerAd; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.fmx} pr
I've written a program that needs to deal with a function that can throw multiple exceptions. For each exception I catch I have some code that will handle it specifically. However, I also have some code I want to run no matter which exception was caught. My current solution is a handle_exception() function which is called from each except block. try: throw_multiple_exceptions() except FirstException as excep: handle_first_exception() handle_exception() except SecondException as excep: handle_second_exception() handle_exception() Is there a better way to do this? I would like the code to look l
I thought one of the advantages of Azure was that I could turn services on and off depending on when I want them to be available. However I cant see how to pause my App Service Plan. Is it possible? I want to use the S1 tier so that I can play with what it offers. However I want to be able to pause the cost accumulation when I am not using it. I see from the app service pricing help that an app will still be billed for even though it is in the stopped state. Yet the link also clearly states that I only pay for what I use. So how does that work?
I would like to develop Android app with Android Studio, but the only device I have for now is an iPhone (5 and 6). Is there a way to have a live-preview of an app on iOS? For installing Android OS on iPhone I've seen solutions like iDroid, but they seem to be not supported and not exactly working in this kind of way.
I'm using jenkins to build docker containers and send the completed image to AWS S3 bucket. I'm trying to get a file that is pulled from Github onto the docker image and then package it up into a docker image. Currently I have jenkins completing the git pull and building the container but I can not get it to copy the files to the container. I get this error: Building in workspace /var/lib/jenkins/jobs/copy-to-docker/workspace [workspace] $ /bin/sh -xe /tmp/hudson5108979322433439821.sh + docker cp /var/lib/jenkins/jobs/Move git pull files to docker/workspace/html/:index.html + :/var/lib/docker/
i'm trying to align some floats, it works great if I use 'X' character as the fill parameter in the formatting doc : <ul> {% for race in rrr[1] %} <li><i class="fa fa-road"></i> {{ '{:X>5.1f}'.format(race.distance_number) }}km <i class="fa fa-area-chart"></i>{{ '{:.0f}'.format(race.elevation_number) if race.elevation_number is not none else '' }} </li> {% endfor %} </ul> If I use a X it aligns things well with {{'{:X>5.1f}'.format(race.distance_number) }} But if I use a space {{ '{: >5.1f}'.format(race.distance_number) }} which ultimately is what I want, it's not aligned anymore is there any w
I have an existing Web API 2 service and need to modify one of the methods to take a custom object as another parameter, currently the method has one parameter which is a simple string coming from the URL. After adding the custom object as a parameter I am now getting a 415 unsupported media type error when calling the service from a .NET windows app. Interestingly, I can successfully call this method using javascript and the jquery ajax method. The Web API 2 service method looks like this: <HttpPost> <HttpGet> <Route("{view}")> Public Function GetResultsWithView(view As String, pPaging As Pag
Is it possible to define cell format on AlaSQL export to Excel? I'm maintaining a system that exports grid data to Excel using AlaSQL. The problem is that Excel data is not being converted to NUMBER. DATE values do OK, but Numeric types are always displayed as General. By forcing a convertion to Number type in JS, the message "Number stored as Text" is shown on xls file. I think it would be easier solving this problem using js-xlsx directly, but it would generate lots of changes in the project and this is not an option. I need to use something like it's shown here jsFiddle, passing json option
What are the differences between the ternary operator shorthand (?:) and null coalescing operator (??) in PHP? When do they behave differently and when in the same way (if that even happens)? $a ?: $b vs. $a ?? $b
When doing fitting, I always come across code like clf = svm.SVC(kernel='linear', C=1).fit(X_train, y_train) (from http://scikit-learn.org/stable/modules/cross_validation.html#k-fold) What does clf stand for? I googled around but didn't find any clues.
I'm writing a parser that converts messy author strings into neatly formatted strings in the following format: ^([A-Z]\. )+[[:surname:]]$. Some examples below: Smith JS => J. S. Smith John Smith => J. Smith John S Smith => J. S. Smith J S Smith => J. S. Smith I've managed to get quite far using various regular expressions to cover most of these, but have hit a wall for instances where a full name is provided in an unknown order. For example: Smith John John Smith Smith John Stone Obviously regular expressions won't be able to discern what order the given name, surname and middle name(s) are in
I'm trying to improve my website by making it more accessible and compliant with WCAG 2.0 (Level AA) guidelines. It's a Wordpress site that uses Contact Form 7 to create forms. By default, Contact Form 7 doesn't add a label to its input elements. It's easy enough to manually add a label complete with a for attribute to input of type "text": <label for="address">Street Address*</label><br /> [text* Address1 id:address] However, I'm having trouble doing this for radio buttons. I know that there's an option to "use_label_element" when generating a radio button tag with Contact Form 7, however thi
Quite often I use values between 0.0 and 1.0 to hold progress, or transparancy, or other things that can go from none to full. A percentage if you will. I don't want to call it a percentage because it is not expressed as a value from 0 to 100. To give my variables a clear name, I still would like to describe this kind of value. What would be an appropriate name?
When I tried to compile my SDL project in CodeBlocks I got the following error: -------------- Build: Debug in SDLTEST (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -LC:\MingwLibs\SDL2-2.0.3\lib -o bin\Debug\SDLTEST.exe obj\Debug\main.o -lmingw32 -lSDL2main -lSDL2 c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lSDL2main c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lSDL2 collect2.exe: error: ld returned 1 exit status Process terminated with status
When I tried to compile my SDL project in CodeBlocks I got the following error: -------------- Build: Debug in SDLTEST (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -LC:\MingwLibs\SDL2-2.0.3\lib -o bin\Debug\SDLTEST.exe obj\Debug\main.o -lmingw32 -lSDL2main -lSDL2 c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lSDL2main c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lSDL2 collect2.exe: error: ld returned 1 exit status Process terminated with status
I'm designing tests in Selenium WebDriver Framwework and I would like to insert text into fields in login box. Here is a website www.fitandjump-widzew.pl After click on "Zaloguj" button in top right corner, Login box appears. I would like to insert text into E-mail inputfield. Here is my code: WebElement emailInput = driver.findElement(By.xpath("//[@id=\"inputFields\"]")); emailInput.click(); emailInput.sendKeys("[email protected]"); After execution I get this error: org.openqa.selenium.ElementNotVisibleException: element not visible Can anyone help me to insert text into this field? P
I'm trying to create a page where someone can upload a document or image and it will be stored in the MySQL database, however, for some reason the content of the documents/images aren't actually being insert in to the table I created. Oddly, the rest of the columns within the table are getting populated, it's only the one LONGBLOB column that is not. Here is the HTML code for the form: <form method="post" enctype="multipart/form-data"> <input type="submit" value="Submit" /> <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> <label>Select Event:</label> <select name="eventID"> <?php f
Firefox 43 now enforces add-on signing. I don't understand how one is to test and debug an extension in these versions of Firefox prior to having the extension signed. If I'm writing a new extension, how do I go about testing the unsigned version in the latest versions of Firefox? Is there an explicit way to disable the signing enforcement for developers?
There is a similar problem like this but instead, his problem was passing the ID. But mine is something else. Like this. But I get errors. $this->db->join($user_role, $user_role.'school_id = user.school_id', 'left'); Gives Unknown column 'adminschool_id' in 'on clause' $this->db->join($user_role, $user_role'.school_id = user.school_id', 'left'); Gives unexpected ''.school_id = user.school_id''
There is a similar problem like this but instead, his problem was passing the ID. But mine is something else. Like this. But I get errors. $this->db->join($user_role, $user_role.'school_id = user.school_id', 'left'); Gives Unknown column 'adminschool_id' in 'on clause' $this->db->join($user_role, $user_role'.school_id = user.school_id', 'left'); Gives unexpected ''.school_id = user.school_id''
Within Laravel you can easily define abilities and then hook into them later on a user request regarding to do different actions: $gate->define('update-post', function ($user, $post) { return $user->id === $post->user_id; }); But almost all my defined abilities has this part $user->id === $model->user_id in it. I don't like it as it's a kind of repeating a condition over and over which I think could be more abstract. Most of my defined abilities are according to updating/deleting records, so it would be better if I could make a global condition applied to all of them or if there could be a gro
I'm creating a blog with wordpress, I'm using the DIVI theme and I need to change the appearance of the category pages of the blog... what's the easiest way to do that? I understood I should look for category.php in the editor and create a new php file, but I couldn't find anything...
I want to include spring fox inside my Spring MVC project. But I always get errors, when I try to enable "EnableSwagger2" annotation inside my SwaggerConfig.java. I am using springfox-swagger 2.2.2 and the version for the spring-webmvc, it is 3.2.2.RELEASE @Configuration @EnableSwagger2 @ComponentScan(basePackages = "com.example.synbio.controller") public class SwaggerConfig { } I have tried many things, but my build still giving me error. I have put the mapping inside servlet-context.xml: <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/mvc" xml
The following piece of code compiles under clang++ 3.7.0 but is denied by g++ 5.3.1. Both have -std=c++14 option. Which compiler is correct? Anyone knows where in the standard talks about this? Thanks. #include <stdexcept> using namespace std; constexpr int f(int n) { if (n <= 0) throw runtime_error(""); return 1; } int main() { char k[f(1)]; } Output $ g++ -std=c++14 c.cpp c.cpp: In function ‘constexpr int f(int)’: c.cpp:7:1: error: expression ‘<throw-expression>’ is not a constant-expression } ^ $ clang++ -std=c++14 c.cpp $ $ g++ -v Using built-in specs. COLLECT_GCC=/usr/bin/g++ COLLECT_LTO_
I am trying to do expand and collapse with [+] and [-] in a website using selenium. My html code is <div onclick="abc_Click(this);" class="liCollapsed"> Here abc_Click(this) is the Onclick event which i am trying to click. The code I am using is By.xpath("[@onclick='abc_Click(this)']")).click(); But the [+] is not clicked. Please help me on this.