ebouchut + set   74

Data Structure: sorting (basic) - DEV Community 👩‍💻👨‍💻
The sorting algorithms I'm covering in the article include bubble sort, selection sort, and insertion sort.
algorithm  sort  programming  data  structure  bubble  collection  array  list  set  order 
6 weeks ago by ebouchut
Geode Query Request SELECT ... IN
SELECT orderId, name FROM /orders WHERE orderId IN SET('A', 'B', 'C')
geode  query  request  search  set  IN  multiple  value  find  oql 
11 weeks ago by ebouchut
Posgres SQL: Current Date at midnight
SELECT date_trunc('day', now());

;; date_trunc | 2018-11-26 00:00:00+00
postgres  SQL  date  current  now  today  midnight  hour  start  day  beginning  time  set  get  from notes
november 2018 by ebouchut
git - How does origin/HEAD get set? - Stack Overflow
# Update origin/HEAD locally

git fetch
git remote set-head origin -a
git  remote  clone  origin  HEAD  branch  default  set  update  change  settings  configure  configuration  fix  starred  config 
october 2018 by ebouchut
Apache log4j 1.2 - Short introduction to log4j
-Dlog4j.configuration=file:///somewhere/log4j.properties

# Content of /somewhere/log4j.properties
# Root logger option
log4j.rootLogger=DEBUG, stdout

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
log4j  sl4j  activate  enable  set  configure  log  level  debug  logger  change 
september 2018 by ebouchut
macos - What does "@" signify in unix file permissions? - Ask Different
# List FILE's extended attributes
#~~~~~~~~~~~~~~~~~~~~~~~
ls -@l FILE

# Remove some ext. attributes
#~~~~~~~~~~~~~~~~~~~~~~~
sudo xattr -d com.apple.quarantine FILE
sudo xattr -d com.apple.metadata:kMDItemWhereFroms FILE
mac  macos  ACL  chmod  file  mode  filemode  read  write  execute  permission  change  remove  modify  set  list  at  @  sign  attribute  extended 
july 2018 by ebouchut
Solarized with iTerm2 – mheap
I forget this every time I reinstall my machine, so I think it’s time to document it somewhere.

Download Solarized
Unzip it and double click on the colour scheme you want (light or dark)
Open iTerm2’s preferences.
Go to colours, load presets and select Solarized. Make sure that the minimum contrast slider is set to low
Click on text, make sure that “Draw bold text in bright colours” is disabled
Done! You should now have a working colour scheme
solarized  color  scheme  iterm2  iterm  terminal  settings  configuration  set  use  load  change  starred 
march 2018 by ebouchut
Alfred 2 Workflow for Audio Device Selection - hmmm....
Alfred V2 has a great new feature called workflows. I’ve been playing with a few others wrote and had ported my old custom commands to …
alfred  workflow  audio  device  output  select  selection  mac  macos  change  set  switch  speaker 
february 2018 by ebouchut
Spark: Shortcut Manager
Spark is a powerful, and easy Shortcuts manager. With Spark you can create Hot Keys to launch applications and documents, execute AppleScript, control iTunes, and more...
You can also export and import your Hot Keys library, or save it in HTML format to print it.
Spark is free
mac  macos  shortcut  key  binding  manage  list  export  keyboard  set  define  create  add  change  update  modify  automate  automation  script  applescript  launch  run  trigger  software  free  itunes 
november 2017 by ebouchut
jdberry/tag: A command line tool to manipulate tags on Mac OS X files, and to query for files with those tags.
tag is a command line tool to manipulate tags on Mac OS X files (10.9 Mavericks and above), and to query for files with those tags. tag can use the file system's built-in metadata search functionality to rapidly find all files that have been tagged with a given set of tags.
mac  macos  tag  file  folder  finder  CLI  command  line  query  search  apply  set  list  find  update  change  tagging 
september 2017 by ebouchut
Log4j: Set the name of the configuration file to log4j.properties
Configure log4j to search for a configuraton file named `log4j.properties` instead of the default name `log4j.xml`:

-Dlog4j.configuration=log4j.properties
log4j  configuration  config  file  settings  set  change  properties  name  from notes
august 2017 by ebouchut
vim number toggle
```
function! NumberToggle()
if(&relativenumber == 1 && &number == 1)
set number
set norelativenumber
elseif (&number == 1 && &relativenumber == 0)
set norelative...
vim  toggle  number  relative  switch  change  set  configuration  configure  from notes
april 2017 by ebouchut
fastutil: type-specific maps, sets, lists and queues with a small memory footprint and fast access and insertion
fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues with a small memory footprint and fast access and insertion; provides also big (64-bit) arrays, sets and lists, and fast, practical I/O classes for binary and text files. It is free software distributed under the Apache License 2.0. It requires Java 7 or newer.

The classes implement their standard counterpart interface (e.g., Map for maps) and can be plugged into existing code. Moreover, they provide additional features (such as bidirectional iterators) that are not available in the standard classes.

Besides objects and primitive types, fastutil classes provide support for references, that is, objects that are compared using the equality operator rather than the equals() method.
java  library  performance  fast  collection  map  set  list  memory  size  small  speed  java7 
january 2017 by ebouchut
sql - How do I use currval() in PostgreSQL to get the last inserted id? - Database Administrators Stack Exchange
;
; Get the last sequence value
SELECT last_value FROM public.users_id_seq;

; Set the sequence value
SELECT setval('public.users_id_seq', (SELECT MAX(id) FROM users));
;
set  get  database  sequence  number  postgres  id  currval  setval  change  update  ldmobile  index  find  search  SQL  psql  define 
march 2016 by ebouchut
bkeepers/dotenv: Loads environment variables from `.env`.
"Shim to load environment variables from .env into ENV in development.

Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.

But it is not always practical to set environment variables on development machines or continuous integration servers where multiple projects are run. dotenv loads variables from a .env file into ENV when the environment is bootstrapped."
gem  rails  ruby  configuration  credentials  password  security  key  identifier  load  environment  vairable  set  define  file 
february 2016 by ebouchut
Create .ruby-version and .ruby-gemset files using RVM
#rvm --create --ruby-version use my_ruby_version@my_gemset

rvm --create --ruby-version use ruby-2.0.0-p247@my_gemset
ruby  version  gem  gemset  rvm  configuration  set  ldmobile 
september 2015 by ebouchut
Druid Conjure generate a random date
${name:"now", type:"randomChoice", remember: false}
2015-08-23T13:09:00.000Z
2015-08-23T13:10:00.000Z
2015-08-23T13:11:00.000Z
2015-08-23T13:12:00.000Z
druid  donjure  test  data  set  date  now  random  randomChoice  from notes
august 2015 by ebouchut
d8a conjure: Insert samples into Duird
"d8a-conjure is a great tool to learn how to use once you begin writing your own queries. It is one way to push data to firehose. "
druid  populate  test  dataset  data  insert  set  sample  generate  generator  JSON  document  tool 
october 2014 by ebouchut
Rvm mixed mode
#~~~~~~~~~~~~~~~
# rvm
#~~~~~~~~~~~~~~~
# In order to use my own set of gems (teamocil, boom...)
#rvm gemset use ruby-2.1.0@eric

# Use RVM in mixed mode
# On a system where rvm is installed gl...
rvm  mixed  mode  gemset  set  gem  ruby  version  configuration  global  user  from notes
june 2014 by ebouchut
How can I get the intersection, union, and subset of arrays in Ruby? - Stack Overflow
"You can do set operations on arrays by doing:
&(intersection),
-(difference),
|(union)"
ruby  set  operation  array  intersection  union  difference  collection 
march 2014 by ebouchut
Efficient, Immutable, Thread-Safe Collection classes for Ruby
"Hamster started out as an implementation of Hash Array Mapped Tries (HAMT) for Ruby (see lampwww.epfl.ch/papers/idealhashtrees.pdf) and has since expanded to include implementations of other Persistent Data Structures (see en.wikipedia.org/wiki/Persistent_data_structure) including Set, List, Stack, Queue, and Vector.

Hamster collections are immutable. Whenever you modify a Hamster collection, the original is preserved and a modified copy is returned. This makes them inherently thread-safe and sharable. (For an interesting perspective on why immutability itself is inherently a good thing, you might like to take a look at Matthias Felleisen’s Function Objects presentation: www.ccs.neu.edu/home/matthias/Presentations/ecoop2004.pdf)

Hamster collection classes remain space efficient by making use of some very well understood and very simple techniques that enable sharing between copies.

Hamster collections are almost always closed under a given operation. That is, whereas Ruby’s collection methods always return arrays, Hamster collections will return an instance of the same class wherever possible.

And lastly, Hamster lists are lazy – where Ruby’s language constructs permit – making it possible to, among other things, process “infinitely large” lists. (Note: Ruby 1.9 supports a form of laziness using Enumerator. However, they’re implemented using Fibers which unfortunately can’t be shared across threads.)
"
ruby  collection  thread  safe  set  hash  array  list  stack  queue  vector  immutable 
april 2013 by ebouchut
Hudson - Setenv Plugin
"Set environment variables for a project, to be referenced during build steps.

This plugin adds a section to job configuration pages for specifying key/value pairs of environment variables. These environment variables will be available to build steps in both freestyle and Maven projects, including the Ant, Maven, shell, and batch steps in freestyle projects."
plugin  extension  define  set  jenkins  export  variable  environment  hudson 
december 2011 by ebouchut
Official Names for Character Sets
"[...] Official names for character sets that may be used in
the Internet and may be referred to in Internet documentation."
character  set  charset  unicode  utf8  utf-8  standard  specification  reference  IANA  ASCII  name  caractere  jeu 
november 2008 by ebouchut

related tags

$0  $PROGRAM_NAME  4.1  10.10  @  absent  absolute  access  ACL  activate  ad  add  address  advertising  agent  alfred  algorithm  all  annotation  any  api  apple  applescript  apply  argument  array  ASCII  aspect  at  attribute  attr_accessor  attr_reader  attr_writer  audio  automate  automation  axe  axis  back  background  backward  bash  bashrc  beginning  binding  branch  browser  bubble  build  bundle  cancel  caractere  change  characer  character  charset  chmod  choose  CIDR  CLI  client  clone  close  collection  Collector  color  command  config  configuration  configure  console  contain  control  conversion  convert  converter  cookie  create  credential  credentials  CTE  current  currval  customize  data  database  dataset  date  day  dbunit  DCM  debug  decrease  default  define  deserialize  deserializer  device  diff  difference  directory  display  distinguish  document  donjure  druid  dynamic  empty  enable  encode  encoding  environment  execute  exist  export  expression  extended  extension  fast  field  file  filemode  filter  find  finder  fix  flag  floodlight  folder  font  foreground  form  forward  fragment  free  french  garbage  GC  GDPR  gem  gemset  generate  generator  geode  get  git  gitlab  global  google  group  Gson  GUI  harmcrest  hash  HEAD  height  helper  horizontal  hotspot  hour  HTML  hudson  I18N  IANA  id  identifier  image  immutable  IN  in?  includes?  increase  index  inet  injection  input  insert  instance  instance_variable_get  instance_variable_set  interest  intersection  intialize  IP  ISO-8859-1  issue  item  iterm  iterm2  itunes  java  java7  java8  javascript  jenkins  jeu  JSON  junit  jvm  keep  key  keyboard  keyboardmaestro  label  LANG  last_value  launch  layout  LC_ALL  ldmobile  learn  level  library  line  linux  lisp  list  load  log  log4j  logger  login  mac  macos  macro  maestro  manage  map  mapping  matcher  maven  max  MDX  memory  meta  midnight  mixed  mode  modify  module  monitor  mulit-module  multi  multiple  name  nnoremap  node  nodeset  not  now  null  number  oauth  online  only  open  operation  opt  opt-out  option  Optional  oql  order  origin  out  output  outût  overlap  parameter  pass-through  password  performance  performancememory  permission  personalise  personalize  platform  plugin  populate  postgres  postman  preference  preferences  presence_in  present  privacy  process  programming  project  prompt  properties  ps  PS1  psql  publisher  query  queue  rails  random  randomChoice  ratio  rbenv  read  reference  regexp  regular  relative  remote  remove  repository  request  reset  resize  resolution  result  rtf  ruby  rubyonails  rubyonrails  run  runner  running  rvm  safe  sample  scheme  screen  screenflow  script  search  security  select  selection  sequence  Serializable  serialize  serializer  set  setf  setq  setting  settings  setup  setval  shortcut  show  sign  simple_form  site  size  SKU  sl4j  small  software  solarized  sort  speaker  specification  speed  split  spring  SQL  ssh  ssh-agent  stack  standard  starred  start  stream  structure  switch  tag  tagging  TDD  terminal  test  testing  text  thread  time  today  toggle  token  tool  top  tput  travel  tree  trigger  troubleshoot  tune  UI  unicode  union  unit  unset  unsubscribe  update  use  user  utf-8  utf8  vairable  value  variable  vector  version  vertical  vim  vimrc  wallpaper  web  white  width  window  with  workflow  wrapper  write  xattr  xsl  yosemite 

Copy this bookmark:



description:


tags: