forumthread   1018

« earlier    

How can I open a file in VIM in readonly mode if it already has a swapfile? - Unix & Linux Stack Exchange
Q: When I use the command :e filename to open a file and this file is already opened by another vim instance, I get a prompt asking me if I want to open the file in read-only mode, edit anyway, recover, exit or abort. [...]
2013  forumthread  stackexchange  vim  scripting  issue  workaround  tips  links  example 
3 days ago by ezequiel
How to clear macOS Recents item folder (triggered by command+shift+f) - Quora
A: [...] In short, you need to set sensitive directories as “private” in Spotlight. [...]
2018  forumthread  macosx  ui  tips  filemanager  howto  privacy 
6 days ago by ezequiel
Trouble using Makefile - Raspberry Pi Forums
Q: [...] I am getting the error: [...]
[...]/usr/include/pcap/bpf.h:1274:73: error: unknown type name ‘u_int’
In file included from /usr/local/include/pcap.h:45:0,
from main.h:15,
from main.c:9: [...]
2012  issue  workaround  compiler  configuration  build  hotwo  tips  gnu  gcc  example  forumthread 
12 days ago by ezequiel
How to change a command line argument in Bash? - Stack Overflow
[...] You have to reset all arguments. To change e.g. $3:

$ set -- "${@:1:2}" "new" "${@:4}"
Basically you set all arguments to their current values, except for the one(s) that you want to change. set -- is also specified by POSIX 7. [...]
2011  2018  forumthread  stackexchange  unix  linux  posix  links  tips  example  howto  scripting  shell  bash 
28 days ago by ezequiel
git - Error reading response length from authentication socket - Stack Overflow
Q: In my ruby on rails project, I am using capistrano , unicorn, postgresql and nginx for deploying my project. when I run cap production git:check I am getting this error:
Error reading response length from authentication socket. [...]
ssh  issue  workaround  links  tips  remote  forumthread  stackexchange  2015  unix  linux  networking  security  configuration 
28 days ago by ezequiel
Python 2 and SSL issues (was: DPlay crash) · Issue #298 · spaam/svtplay-dl
[...]
requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2015  issue  python  ssl  compatibility  workaround  tips  example  unix  linux  libraries  github  forumthread  links 
28 days ago by ezequiel
python - TypeError: 'str' does not support the buffer interface - Stack Overflow
Q: [...] The above python code is giving me following error:

Traceback (most recent call last):
[...]
File "C:\Python32\lib\gzip.py", line 312, in write
self.crc = zlib.crc32(data, self.crc) & 0xffffffff
TypeError: 'str' does not support the buffer interface [...]
python  issue  compatibility  unicode  example  tips  workaround  forumthread  stackexchange  2011 
28 days ago by ezequiel
tty - Why does awk do full buffering when reading from a pipe - Unix & Linux Stack Exchange
A: It is likely to be buffering in awk, not cat. In the first case, awk believes it is interactive because its input and output are TTYs (even though they're different TTYs - I'm guessing that awk is not checking that). In the second, the input is a pipe so it runs non-interactively. [...]
awk  issue  workaround  configuration  tips  example  forumthread  stackexchange  2012  2013  gnu  unix  linux  macosx  posix 
28 days ago by ezequiel
F1 fan? Soccer fan? Here's the full blown windows version of Acestream, as a single Mac app. : mac
This is created using wine+winebottler+AceStream.exe. It's a single app, and because it requires no maintenance or any other programs (it has everything built in) it can be big. 900MB after unzip, but runs flawlessly (with the small hit in performance due to wine) on my 7 year old Macbook Air. Opens in 1 to 2 seconds.

Unlike SodaPlayer, it isn't buggy and unreliable. Unlike Windawszzz, it doesn't occupy 900 trillion GB and requires a reboot, or a VM. Also, unlike Windows, it isn't buggy and unreliable :)

This might be trivial to some, but can also be extremely helpful to others. Hopefully it helps someone.
macosx  reddit  links  downloads  acestream  tips  howto  guide  forumthread  opensource  football  sports  tv  streaming 
4 weeks ago by ezequiel
How do I use Python to easily expand variables to strings? - Stack Overflow
Q: What's a nice idiom to do this:
Instead of: print "%s is a %s %s that %s" % (name, adjective, noun, verb)

I want to be able to do something to the effect of: print "{name} is a {adjective} {noun} that {verb}"
2011  forumthread  stackexchange  python  example  tips 
5 weeks ago by ezequiel
python - Merging two dictionaries while keeping the original - Stack Overflow
Q: In Python, when I merge two dictionaries using the update() method, any existing keys will be overwritten.

Is there a way to merge the two dictionaries while keeping the original keys in the merged result? [...]
2016  forumthread  stackexchange  python  programming  example  tips 
5 weeks ago by ezequiel
Python: Dictionary merge by updating but not overwriting if value exists - Stack Overflow
[...] Works fine. Additionally what to be done, if i would like to compare each value of two dictionaries and only update d2 into d1 if values in d1 are empty/None/''? [...]
2011  forumthread  stackexchange  python  tips  example  programming 
5 weeks ago by ezequiel
How do I get Vim to recognize ESC key faster? - Stack Overflow
Q: I use Vim, almost exclusively in the console. When I exit insert mode by pressing <ESC>, there is a noticeable lag in Vim's recognizing the command. The lag is similar to the delay when I push the <leader> key, I assume to give me time to enter other characters in a mapping. Is there an option I can set to get Vim to recognize the escape key faster?
2012  forumthread  stackexchange  vim  configuration  keyboard  terminal  example  tips  tmux  screen 
5 weeks ago by ezequiel
Why does vim incsearch pause when cancelling a search with the <ESC> key? - Stack Overflow
Q: In vim, if you set incsearch then it will scroll to the next match of your current search term without moving the cursor. I often use this to read a section of code without moving the cursor there, because I can then hit <ESC> and the screen will return back to wherever my cursor was when I started searching.

However, vim has a pause after you hit <ESC>, and before it scrolls back to the cursor. I find this pause very irritating. What is the purpose behind this pause, and/or is this pause configurable?
2012  vim  configuration  tips  example  forumthread  stackexchange  keyboard  tmux  screen  terminal 
5 weeks ago by ezequiel
vimscript - How can I get the character at the cursor position in a multibyte aware manner? - Vi and Vim Stack Exchange
Q: [...] Vim has several useful functions for dealing with strings in a multibyte-aware fashion, but getting the cursor position seems difficult: [...]
2017  forumthread  stackexchange  vim  scripting  example  tips  links  unicode 
5 weeks ago by ezequiel
What is the difference between the vim snippets plugins? - Vi and Vim Stack Exchange
Q: There is a great number of snippets plugins for vim: ultisnips, snipmate, xptemplate, neosnippet and a lot more.

They all have pros and cons and more or less dependencies. [...]

[...] There is a listing here which could be a good start but some complete, clear and precises answers as our community can write would be pretty useful.
2016  forumthread  stackexchange  vim  plugins  comparison  links  development  tool 
5 weeks ago by ezequiel
Vim node.js completion? : node [reddit]
Q: Question for fellow Vim users out there. What do you use for completion (not necessarily auto-completion, CTRL-x CTRL-o is sufficient and preferable for making the completion window pop up)?

Doing some googling, nothing is jumping out at me and figured I'm not the first node.js developer that uses Vim.

EDIT: I should have explained this originally, but I used to use YouCompleteMe for this purpose (if I remember correctly it gave me node.js completion) but that's such a huge plugin that comes with much more than I need, and in an effort to slim down my vimrc I'm here asking.
node.js  development  tool  vim  links  tips  forumthread  reddit  2017  plugins  javascript  tern.js 
5 weeks ago by ezequiel
linux - how to change python interpreter used by jedi-vim - Vi and Vim Stack Exchange
Q: I have Anaconda (including python3.5.2), VIM (7.4) and Jedi-VIM installed on my system. There was also a python installed on the linux system by default.
The autocompletion is working on base packages, at least. But for packages like numpy (which was included in Anaconda) the completion is not working.
[...]
How can I get jedi-vim to use also the path of anaconda python for getting package autocompletion?
2016  forumthread  stackexchange  python  vim  tool  configuration  howto  tips  links 
5 weeks ago by ezequiel
git merge - How to stash unmerged code in git? - Stack Overflow
Q: I did a git pull and found that one of my files needs to be merged.

I don't really want to merge that file right now - I have another branch that I need to work on, and I will get back to this branch later to resolve the merge.

What is the best course of action for me to "undo" this pull? Or how can I hold off on this merge until I'm ready to deal with it? What do I need to do to be able to change branches, but then return to this unmerged state in my code?
2012  git  tips  example  cli  unix  linux  windows  macosx  forumthread  stackexchange 
5 weeks ago by ezequiel

« earlier    

related tags

2005  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  acestream  adobe  air  amazon.aws  amazon.boto  amazon.s3  api  audio  awk  bash  blogpost  browser  bsd  build  cli  codingstandards  colour  comparison  compatibility  compiler  configuration  ctags  customize  cygwin  debian  desktop  development  downloads  editor  emacs  encoding  encryption  english  example  fileformats  filemanager  filesystem  finances  firewall  firmware  fix  fonts  football  gaming  gcc  gimp  git  github  gnome  gnu  gui  guide  hardwaresupport  hotwo  howto  info  install  installation  issue  javascript  json  kernelmodule  keyboard  libraries  links  linux  logging  mac  macosx  mint  monero  mount  multitasking  neovim  network  networking  node.js  nvidia  opengl  opensource  packagemanager  patches  performance  photography  playingcards  plugin  plugins  posix  powermanagement  privacy  profiling  programming  python.pip  python  qt  reddit  remote  sansa.clip+  sansa.fuze+  sansa  scratch  screen  script  scripting  security  sharedlibraries  shell  software  sports  ssh  ssl  stackexchange  streaming  sysadmin  terminal  tern.js  textprocessing  textui  themes  tips  tmux  tool  tripod  tv  ubuntu.precise  ubuntu.xenial  ubuntu  udev  ui  unicode  unix  usb  vim  vpn  windows  wine  winecompatible  workaround  x11  x2go  xfce  xorg  xrdp  xterm 

Copy this bookmark:



description:


tags: