Unable to open database with sqlite3 on cygwin - windows

I seem to be getting the error as shown below:
Am I missing out on something here and not giving cygwin the right to write to a folder?

There is a very simple answer to this question. You cannot write to the C: drive. Try moving into a different folder and that will allow you to write your .sql files.

Related

How do I include a Julia file in a Jupyter notebook?

I was able to create a Jupyter notebook for Julia. I then proceeded to create a new folder, and then upload a source file to it.
How can I include this file (as in "include("the_file.jl")).
I am using Windows 10.
TIA.
Henry
Precisely as you would do it in the REPL or anywhere else.
include("the_file.jl")
If this doesn't work for you than you are probably in the wrong folder, which you can check with pwd() and change with cd(path::String).
Alternatively, you can specify the full path rather than the relative path:
include("/full/path/to/the_file.jl")
If you created the folder from within Julia, than you probably want
include("myfolder/the_file.jl")

How to add ~/bin/directory to a mac?

Sorry if this may be a stupid or simple question, but I am trying to install a program to my "bin" directory on my mac. Here is what it says:
Download a copy of changeInput by _________ and save it to the ~/bin/directory. > Note: You may need to create the ~/bin/ directory if it doesn’t already exist.
I seem to have "~bin" but I do not have the directory. I also cannot paste anything to this directory.
Once again, this may be a simple question for you, but please let me know how to do this on a mac(OS X). Thanks!

Error while trying to run Pharo for the first time

I am trying to run Pharo on my system (Ubuntu 17.10 64bit).I followed the exact procedure as given in the book Pharo By Example.
I Went into the Pharo6.1-64 directory and ran the following command in the terminal
./pharo shared/pharo6.1-64.image
I expected this to open the Pharo window where I can write code but instead saw this error in the Terminal.
./pharo: line32: /home/user/pharo6.1-64/vm/pharo: No such file or directory.
Do I need to download any additional files ?
I downloaded the zip from here and it said just extract and run.
It looks like there is something wrong with the file you downloaded. It does not seem to contain a vm. For now, try the other method mentioned in the book:
wget -O- get.pharo.org/50+vm | bash
Copy the pharo.image and pharo.changes to the directory containing the pharo executable and from terminal run the command
Pharo_executable path_to_Pharo_image

Running Spark on Windows Error 5 (Access Denied) even when running as Admin

I'm beginning with Spark so not really sure where my problem is and looking for a helpful hint here. I'm trying to run Spark (pyspark) on a windows 7 machine as an admin but it does not seem to be working (I still get the WindowsError 5). See image below:
I've downloaded the file (release 1.2.0 with pre-built for Hadoop 2.4 or later), unzipped it using tar via command line and set IPYTHON=1 before calling bin\pyspark. When I call it, pyspark runs but I get the error below as per image.
When I try calling certain SparkContext objects, I get name 'sc' is not defined.
I've got python 2.7.8 installed, Spyder IDE and am in a corporate network environment.
Does any one have a clue what could be going on here? I've looked up a few questions such as Why am i getting WindowsError: [Error 5] Access is denied? but could not find a clue.
Briefly:
I had what should be the same problem. For me, it was that the *.cmd files in the $spark/bin directory weren't marked as executable; please try to confirm by:
right clicking on pyspark2.cmd and:
properties / security tab then examine 'Read & execute'
I found the workaround on another site, that recommended downloading hadoop-winutils-2.6.0.zip (sorry don't have a link). Here is an example of the cmd to use (after moving to proper directory):
t:\hadoop-winutils-2.6.0\bin\winutils.exe chmod 777 *
I did need to run the chmod 777 cmd to make the /tmp/hive writeable too.
good luck!
(... new here - sorry for the poor formatting)
(update: Matt thanks for fixing formatting issues!)
root cause: the tar program i used on windows via tar -zxf <file.tgz> did not apply
the proper attributes to the extracted files. in this case the 'executable' files
weren't properly set. yeah, maybe i should update my version of cygwin.

Cannot find Mercurial global configuration file on osx

I am new to Bitbucket. I am trying to setup my computer to access Bitbucket using the following instructions. On Step 5, I am told to add ssh = ssh -C to file ~/.hgrc. I can't seem to find the file. Has anyone done this step successfully? How do I go about it?
It seems you don't have Mercurial installed at all. Step 3 of Bitbucket tutorial gives detailed description how to install it from MacPorts.
Once you have Mercurial installed just create .hgrc manually and add your configuration.
If you have not this file - create it. But you, maybe, just can't see it - dotted files are hidden. Anyway read hg help config
I had a problem with this too, but managed to find the .hgrc file. First get all hidden files visible by downloading this software http://invisiblix.read-write.fr/
Initially I tried to find the .hgrc file with spotlight but nothing came up. Happened to spotlight "~/", then this "~/.config" folder appeared, so I went there and found .hgrc in the same directory. Somehow it's always there but just not appearing even when called for in terminal.

Resources