How to resolve the error “[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open

How to resolve the error “[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open

I'm using Ubuntu 14.04 on my machine. I installed composer and then laravel in the document root i.e. /var/wwwI also gave -R 777 persmission to folder laravel present in directory /var/wwwThen I go to directory laravel using cd /var/www/lar

How to convert string to int64_t?

How to convert string to int64_t?

How to convert program parameter from argv to int64_t? atoi() is suitable only for 32 bit integers. 1:A C99 conforming attempt.[edit] employed @R. correction// Note: Typical values of SCNd64 include "lld" and "ld".#include #include int64

slf4j & log4j2 maven setup query

slf4j & log4j2 maven setup query

I am using log4j2 and slf4j in my project & using maven for the build. I am using the following pom file (releveant dependencies shown only) but I am getting the error copied below with this pom file - any idea what I need to add/remove to

Return elements of list as independent objects in global environment

Return elements of list as independent objects in global environment

I have a list, and would like to break the elements of the list into seperate objects in the global environment. For example, I would like the list: obj to be three seperate objects a, b, and c. I tried to achieve this with: lapply(obj, FUN

Error installing python-snappy: snappy-c.h: No such file or directory

Error installing python-snappy: snappy-c.h: No such file or directory

I am using amazon ec2 ubuntu 11.04 server sudo pip install python-snappy also I tried to downloaded package and entered "sudo python setup.py install"I got the error: running build running build_ext building 'snappy' extension gcc -pthr

Why is there a questionmark on the private variable definition?

Why is there a questionmark on the private variable definition?

I am reading an article about the MVVP Pattern and how to implement it with WPF. In the source code there are multiple lines where I cannot figure out what the question marks in it stand for.private DateTime? _value;What does the ? mean in

Syntax error : missing ';' before 'type'

Syntax error : missing ';' before 'type'

So i have this error: Error 3 error C2143: syntax error : missing ';' before 'type' g:\lel\tommy\tommy\tommy.c 34 tommyfrom this block of code:#include #include #include #include #include struct matrep { unsigned rows,cols;

recommended c# winform controls packs [closed]

recommended c# winform controls packs [closed]

Am looking for commercial/free recommended c# winform controls packs 1:DevExpress I've tried ComponentOne, DevExpress and Telerik 2:I've used the controls from both Infragistics and DevExpress and find the DevExpress ones to be far su

How to manually symbolicate a crash log with atos

How to manually symbolicate a crash log with atos

After searching all over the internet to find a way to symbolicate my crash logs I received from Apple, I finally figured out how to use the atos command in terminal to symbolicate the crash logs. I have the dSYM file, the .app file and the

Theos for armv7 and arm64

Theos for armv7 and arm64

I'm trying to get theos working on OSX Mavericks. I recently purchased an iPhone 5s and have since then jailbroken it. Now I am trying to get Theos working so I can start working on some tweaks again. I had it working on OSX Lion and for IO

ImageMagick Install Windows

ImageMagick Install Windows

I am trying to install ImageMagick on Windows. What I did is install Windows RailsInstaller created my version and now I need to use ImageMagick but for some reason it doesn't work.I took the binary source code and install and run it from t

Receiving push notification even after the app is deleted iPhone

Receiving push notification even after the app is deleted iPhone

I implemented push notification in my app.It is working fine.Now the problem is even after i deleted my app from device it is getting the push notifications.So is there any way to unregister the app from push notification when it is delet

How do I tokenize input using Java's Scanner class and regular expressions?

How do I tokenize input using Java's Scanner class and regular expressions?

Just for my own purposes, I'm trying to build a tokenizer in Java where I can define a regular grammar and have it tokenize input based on that. The StringTokenizer class is deprecated, and I've found a couple functions in Scanner that hint

Why emacsclient can't find socket after executing 'emacs --daemon'

Why emacsclient can't find socket after executing 'emacs --daemon'

It is so confusing that emacsclient said it can't find socket just after executing emacs --daemon in bash:$ ps aux | grep emacsshiangro 1744 0.0 0.0 2432784 604 s000 S+ 1:03下午 0:00.00 grep emacs$ /usr/local/bin/emacs --

Property spark.yarn.jars - how to deal with it?

Property spark.yarn.jars - how to deal with it?

My knowledge with Spark is limited and you would sense it after reading this question. I have just one node and spark, hadoop and yarn are installed on it.I was able to code and run word-count problem in cluster mode by below command spark-

ElasticSearch: No filter registered for [match]]

ElasticSearch: No filter registered for [match]]

I'm trying to do this query to my ElasticSearch Server.{ "query" : { "match" : { "name" : "network" } }, "facets" : { "departments" : { "terms" : { "field" : "department

No Such Method Error when creating JUnit test

No Such Method Error when creating JUnit test

I've tried figuring out this problem for the last 2 days with no luck. I'm simply trying to create an annotation based JUnit test using the spring framework along with hibernate.My IDE is netbeans 6.5 and I'm using hibernate 3, spring 2.5.

Python Socket Listening

Python Socket Listening

All of the below mentioned is on windows machines using python 2.7Hello,I am currently attempting to listen on a socket for data send by a remote program. This data is then printed to the screen and user input is requested that is then retu

Angular2 - Redirect to calling url after successful login

Angular2 - Redirect to calling url after successful login

I have my application up and running with Angular 2.1.0.The routes are protected via router Guards, canActivate.When pointing the browser to a protected area like "localhost:8080/customers" I get redirected to my login page just like expect

successful/fail message pop up box after submit?

successful/fail message pop up box after submit?

Basically after clicking the submit button, I want a pop up box to pop up saying successful or fail, then clicking OK to confirm the message. At the moment i am getting a pop up box "undefined" followed by failed message pop up box. HELP P

Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm using xcode 5 for my mobile app project. I got this error when I try build the project. ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"' ld: wa

Grails 2.3.2 not working

Grails 2.3.2 not working

Good morning,I created a new project withGrails 2.3.2Java JDK 1.7.0_45When I run the command: grails run-appsee the following errors:**| Configuring classpathnov 09, 2013 1:52:27 PM java.util.prefs.WindowsPreferences | Running Grails applic

php how to get web image size in kb?

php how to get web image size in kb?

php how to get web image size in kb?getimagesize only get the width and height.and filesize caused waring.$imgsize=filesize("http://static.adzerk.net/Advertisers/2564.jpg");echo $imgsize;Warning: filesize() [function.filesize]: stat failed

How to find all XML elements by tag name in Groovy?

How to find all XML elements by tag name in Groovy?

How I can find all elements in XML by their tag name in Groovy (GPath)?I need to find all car elements in this document: 378932 audi This is what I tried and failed:def xml = new XmlSlurper().pa

How to deal with this ERROR (1049, “Unknown database '/users/ohyunjun/work/astral/mysql'”)

How to deal with this ERROR (1049, “Unknown database '/users/ohyunjun/work/astral/mysql'”)

In the Django settings.py, I set databases option this wayDATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.path.join(BASE_DIR, 'mysql'), 'USER': 'root', 'PASSWORD': 'sp153426',