I'll add more to this later but for now:
Find out how I have it set in regular Windows from the command prompt:
git config --list
Output:
... etc
I'll add more to this later but for now:
Find out how I have it set in regular Windows from the command prompt:
git config --list
Output:
... etc
import os | |
import chromadb | |
chroma_client = chromadb.Client() | |
collection = chroma_client.create_collection(name="wiki") | |
def load_txt_files(directory): | |
txt_files = [] | |
names = [] |
Seeing this error in the bash shell when launching some apps, such as scite:
** (scite:5298): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Update as per comments below.
It appears adding this library fixes the problem: at-spi2-core
// Q sample by Jeff Cogswell | |
/*=========== | |
We want to call these three functions in sequence, one after the other: | |
First we want to call one, which initiates an ajax call. Once that | |
ajax call is complete, we want to call two. Once two's ajax call is | |
complete, we want to call three. | |
BUT, we don't want to just call our three functions in sequence, as this quick |
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>cr</Title> | |
<Shortcut>cr</Shortcut> | |
<Description>Code snippet for Console.ReadLine</Description> | |
<Author>*Not* Microsoft Corporation</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
// Uses https://github.com/CraZySacX/node-jdbc | |
// Assumes you have already installed the JDK, hadoop, and hive! | |
// Just a quick demo with callback hell... Really you'll | |
// want to use async or something similar... | |
var JDBC = require('jdbc'); | |
var jinst = require('jdbc/lib/jinst'); | |
jinst.setupClasspath([ | |
'/usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.4.jar', | |
'/usr/local/apache-hive-1.2.2-bin/lib/hive-jdbc-1.2.2-standalone.jar' | |
]) |
It turns out you can have separate GTK rc files for separate apps, just by setting an environment variable. For this example I'm using this theme: https://github.com/axxapy/Adwaita-dark-gtk2
First, clone the GTK theme you want into a directory such as ~/.config/geany/gtk
mkdir ~/.config/geany/gtk2/
cd ~/.config/geany/gtk2/
git clone git@github.com:axxapy/Adwaita-dark-gtk2.git
That's it. You only have to do that part once. Now any time you run geany, just set an environment variable first, like so:
# Global initialisation file for SciTE | |
# For Linux, place in $prefix/share/scite | |
# For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
# Documentation at http://www.scintilla.org/SciTEDoc.html | |
# Globals | |
# Window sizes and visibility | |
if PLAT_WIN | |
position.left=0 |
There are a lot of Q&As out there on how to do this... Some good info here: http://askubuntu.com/questions/159575/how-do-i-make-java-default-to-a-manually-installed-jre-jdk
I usually install my JDK under /usr/lib/jvm alongside the others:
cd /usr/lib/jvm
sudo tar xf ~/Downloads/jdk-8u91-linux-x64.tar.gz
sudo chown -R root:root jdk1.8.0_91
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_91/bin/java 1