recentpopularlog in

ezequiel : 2009   100

« earlier  
I've Bricked My Netgear DG834G v3 - Please Help - OpenWrt Forum Archive
Q: I am hoping someone here more wise then me can help me unbrick my Netgear DG834G v3 Router.

Here are some details I have pulled from the router before I bricked it. [...]
forumthread  2009  router  hacking  firmware  links  issue  workaround  jtag  cli  example  linux  hardware  electronics 
6 weeks ago by ezequiel
unix - Bash script to receive and repass quoted parameters - Stack Overflow
Q: I'm trying to get quoted parameters of a bash script to safely be received by a nested script. Any ideas? [...]
2009  2015  shell  bash  posix  links  tips  example  forumthread  stackexchange  unix  scripting 
6 weeks ago by ezequiel
The Ultimate Guide to Create Users in Linux / Unix
Creating users in Linux or Unix system is a routine task for system administrators.

Sometimes you may create a single user with default configuration, or create a single user with custom configuration, or create several users at same time using some bulk user creation method.

In this article, let us review how to create Linux users in 4 different methods using useradd, adduser and newusers command with practical examples.
2009  blogpost  sysadmin  linux  unix  tool  tools  example  tips  howto  guide 
10 weeks ago by ezequiel
linux - How do I detach a process from Terminal, entirely? - Super User
Q: [...] However, I'm struggling with how to completely detach a process (e.g. Firefox) from the terminal it's been launched from - i.e. prevent that such a (non-)child process

* is terminated when closing the originating terminal
* "pollutes" the originating terminal via STDOUT/STDERR
[...]
2009  2011  forumthread  stackexchange  unix  linux  posix  shell  tool  cli  example  tips 
11 weeks ago by ezequiel
Automatically loading iptables rules on Debian/Ubuntu · major.io
If you want your iptables rules automatically loaded every time your networking comes up on your Debian or Ubuntu server, you can follow these easy steps.
iptables  cli  howto  sysadmin  tips  backup  2009  blogpost  debian  linux  networking  firewall  security  automation 
may 2019 by ezequiel
How to get a reference to current module's attributes in Python - Stack Overflow
Q: [...] How can I get a reference to all the names defined in mymodule from within mymodule itself? [...]
python  howto  tips  example  2009  stackexchange  forumthread 
april 2019 by ezequiel
We must rewrite everything
A few days ago, Simon Willison has written a very good post about node.js . Simon is very good at writing intro-technology posts that convey the essence of things very clearly. Once upon a time he encouraged me to study Django . The post about node.js also makes it clear why this is cool and what place it occupies in the modern web ecosystem. Who has not heard about node.js - start reading from this post.
russian  blogpost  2009  programming  multitasking  softwareengineering  design  example  tips  links  node.js 
march 2019 by ezequiel
adisp
Programming sometimes does not sleep well.

Any idea will come to mind, you will look at it - it seems simple and beautiful. Then you start to figure out the details, and everything seems to be going well too. And then you sit down to write code ... And then it turns out that in reality there are also other details that the brain, when speculative looking at, is conveniently omitted. The compiler, which does not have such moral flexibility, stubbornly insists that it does not, it does not work that way. And so does not work. And so, too. [...]
russian  blogpost  2009  programming  multitasking  softwareengineering  design  example  tips  links  python 
march 2019 by ezequiel
How to create a GUID/UUID in Python - Stack Overflow
Q: How do I create a GUID in Python that is platform independent? I hear there is a method using ActivePython on Windows but it's Windows only because it uses COM. Is there a method using plain Python?
2009  python  links  forumthread  stackexchange  tips  cli  unix  linux  windows  macosx  example 
february 2019 by ezequiel
Lua - Current time in milliseconds - Stack Overflow
Q: Is there a common way to get the current time in or with milliseconds?
There is os.time(), but it only provides full seconds.
2009  lua  time  api  example  tips  forumthread  stackexchange 
january 2019 by ezequiel
How to keep quotes in Bash arguments? - Stack Overflow
Q: I have a Bash script where I want to keep quotes in the arguments passed.

Example: ./test.sh this is "some test"

then I want to use those arguments, and re-use them, including quotes and quotes around the whole argument list.
2009  shell  bash  posix  links  tips  example  forumthread  stackexchange  unix  scripting 
december 2018 by ezequiel
Lionel Messi vs Manchester United (UCL Final) 2008-09 English Commentary HD 1080i - YouTube
(me: interview (spanish with english subtitles), pre-match analysis, Messi-centred highlights, goals (Messi scores the 2nd with a header), trophy presentation highlights)
fcbarcelona  2009  football  sports  english  video  youtube  messi  interview  spanish 
august 2018 by ezequiel
Can GIMP split an image into multiple images? - Super User
Q: I've been scanning a lot of photos recently, more than one at a time. I now have multiple jpegs, each containing multiple photos.
Can I, using GIMP , "split" a jpg into 3 smaller files? [...]
2009  forumthread  stackexchange  gimp  tips  howto  links 
july 2018 by ezequiel
scripting - Best/Easiest/Quickest way to get relative path between two files? - Stack Overflow
Q: [...] Is there some easy way (utility, script, snippet of code) to say "here's file A, here's file B, what is the relative path of file B in relation to file A?"
2009  forumthread  stackexchange  scripting  shell  python  example  tips  filesystem  cli  windows  unix  linux  macosx 
july 2018 by ezequiel
How can I display a JavaScript object? - Stack Overflow
Q: How do I display the content of a JavaScript object in a string format like when we alert a variable?
The same formatted way I want to display an object.
2009  forumthread  stackexchange  node.js  javascript  example  tips  logging 
march 2018 by ezequiel
formatting - How to turn off JSLint indentation warnings? - Stack Overflow
Q: I find that JSLint produces lots of warnings of the form:
Expected 'foo' to have an indentation at X instead at Y. [...]
tool  javascript  node.js  tips  issue  workaround  example  configuration  codingstandards  2009  stackexchange  forumthread 
march 2018 by ezequiel
Git: reset other branch to current without a checkout - Stack Overflow
Q: I need to reset other (existing) branch to the current one, without checkout. [...]
A: What you need is:
git update-ref refs/heads/OtherBranch refs/heads/CurrentBranch
git  cli  example  tips  2009  forumthread  stackexchange 
march 2018 by ezequiel
utf 8 - Reading a UTF8 CSV file with Python - Stack Overflow
Q: I am trying to read a CSV file with accented characters with Python (only French and/or Spanish characters). Based on the Python 2.5 documentation for the csvreader (http://docs.python.org/library/csv.html), I came up with the following code to read the CSV file since the csvreader supports only ASCII. [...]
2009  forumthread  stackexchange  python  example  tips  encoding  textprocessing  fileformats  unicode 
february 2018 by ezequiel
Accessing the index in Python 'for' loops - Stack Overflow
Q: How do I access the index itself for a list like the following?
[...]
When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case?

A: Using an additional state variable, such as an index variable (which you would normally use in languages such as C or PHP), is considered non-pythonic.
The better option is to use the built-in function enumerate(), available in both Python 2 and 3: [...]
2009  python  example  tips  forumthread  stackexchange  links 
february 2018 by ezequiel
How do you merge selective files with git-merge? - Stack Overflow
Q: [...] What is the best way to merge selective files from one development branch to another while leaving behind everything else? [...]
2009  git  cli  example  development  tool  tips  forumthread  stackexchange 
november 2017 by ezequiel
How do I merge a sub directory in git? - Stack Overflow
Q: Is it possible to merge only the changes for a sub-directory from a local git branch to a remote git branch or is it "all or nothing"? [...]
2009  git  cli  example  development  tool  tips  forumthread  stackexchange 
november 2017 by ezequiel
Highlight : Barcelona 4-2 Real Zaragoza 720HD - YouTube
(me: FC Barcelona goals: Messi (3), Ibrahimovic (1 (penalty)))
messi  2009  fcbarcelona  football  sports  video  youtube  english 
november 2017 by ezequiel
How to retrieve the hash for the current commit in Git? - Stack Overflow
Q: [...] How can I easily retrieve the hash from the current commit from Git?
git  cli  example  unix  linux  windows  macosx  tips  forumthread  stackexchange  2009 
november 2017 by ezequiel
git - Showing which files have changed between two revisions - Stack Overflow
Q: [...] Was wondering if there's something like "git status master..branch" to only see those files that are different between the two branches. [...]
(me: 'git diff --name-only', 'git diff --name-status', etc.)
2009  forumthread  stackexchange  git  cli  example  textprocessing  unix  linux  windows  macosx  tips 
august 2017 by ezequiel
linux - Access to errno from Python? - Stack Overflow
Q: [...] Using ctypes, libc.errno doesn't work because errno is a macro in GNU libc. Python 2.6 has some affordances but Debian still uses Python 2.5. Inserting a C module into my pure Python program just to read errno disgusts me. [...]
2009  forumthread  stackexchange  python  c  sharedlibraries  tips  howto  glibc 
july 2017 by ezequiel
git - How to list all the files in a commit? - Stack Overflow
Q: I am looking for a simple git command that provides a nicely formatted list of all files that were part of the commit given by a hash (SHA1), with no extraneous information. [...]
2009  git  example  tips  scripting  cli  tool  forumthread  stackexchange 
june 2017 by ezequiel
plugins - How to manually load an ftplugin after startup in Vim? - Stack Overflow
Q: Say I load a .txt file into Vim. Then I want to change the filetype=html but I also want an associated ftplugin loaded. How can I do this? [...]
2009  forumthread  stackexchange  vim  tips  plugins  example  scripting 
june 2017 by ezequiel
c++ - Is returning by rvalue reference more efficient? - Stack Overflow
A: [...] This returns a dangling reference, just like with the lvalue reference case. After the function returns, the temporary object will get destructed. You should return Beta_ab by value, like the following. [...]
c++  c++11  programming  example  tips  issue  memory  workaround  forumthread  stackexchange  2009 
june 2017 by ezequiel
git - Refresh all files in buffer from disk in vim - Stack Overflow
Q: The command to refresh a file from version on disk is :e!
How can I do the same for all files in the buffer?
Background: I need that because I am using git with multiple branches with one vim open that contains a buffer. When I checkout a branch, I would like to have vim refresh.
2009  forumthread  stackexchange  tips  vim  scripting  example  howto  editing  tool 
may 2017 by ezequiel
Can I use git diff on untracked files? - Stack Overflow
Q: Is it possible to ask git diff to include untracked files in its diff output? Or is my best bet to git add the new files I've created and the existing files I have edited, and use [...]
2009  git  tips  example  cli  tool  development  forumthread  stackexchange 
may 2017 by ezequiel
python - What makes pylint think my class is abstract? - Stack Overflow
Q: [...] I was surprised to see that pylint picks up on the fact that this is an abstract class on its own. What makes pylint determine this is an abstract class? Is it simply looking for NotImplementedError being thrown somewhere? [...]
python  tool  issue  tips  forumthread  stackexchange  2009 
may 2017 by ezequiel
Nicholas Piël » Socket Benchmark of Asynchronous Servers in Python
In this post i am going to look at a selection of asynchronous servers implemented in Python. [...]
http  python  tornado.python  concurrency  framework  libraries  comparison  links  tips  2009  blogpost  performance  statistics  linux 
april 2017 by ezequiel
networking - A clean, lightweight alternative to Python's twisted? - Stack Overflow
Q: A (long) while ago I wrote a web-spider that I multithreaded to enable concurrent requests to occur at the same time. That was in my Python youth, in the days before I knew about the GIL and the associated woes it creates for multithreaded code (IE, most of the time stuff just ends up serialized!) [...]
http  python  tornado.python  concurrency  framework  libraries  comparison  links  tips  forumthread  stackexchange  2009 
april 2017 by ezequiel
logging - Determining if root logger is set to DEBUG level in Python? - Stack Overflow
Q: [...] How can I later tell if the logger was set to DEBUG? I'm writing a decorator that will time a function if True flag is passed to it, and if no flag is given, it defaults to printing timing information when the root logger is set to DEBUG. [...]
forumthread  stackexchange  2009  tips  python  example  logging 
march 2017 by ezequiel
Accessing the index in Python 'for' loops - Stack Overflow
Q: How do I access the index itself for a list like the following? [...]
python  2009  forumthread  stackexchange  tips  example 
march 2017 by ezequiel
How can I access the current executing module or class name in Python? - Stack Overflow
I would like to be able to dynamically retrieve the current executing module or class name from within an imported module. Here is some code: [...]
2009  forumthread  stackexchange  python  internals  library  tips  example 
february 2017 by ezequiel
Is it possible to push a git stash to a remote repository? - Stack Overflow
Q: In git, is it possible to create a stash, push the stash to a remote repository, retrieve the stash on another computer, and apply the stash? [...]
2009  git  forumthread  stackexchange  backup  issue  cli 
january 2017 by ezequiel
How to edit multi-gigabyte text files? Vim doesn't work =( - Stack Overflow
Are there any editors that can edit multi-gigabyte text files, perhaps by only loading small portions into memory at once? It doesn't seem like Vim can handle it =(
2009  forumthread  stackexchange  vim  memory  tips  cli  links  issue  workaround 
october 2016 by ezequiel
types - Check whether variable is number or string in javascript - Stack Overflow
Q: Does anyone know how can I check whether a variable is a number or a string in javascript?
javascript  2009  forumthread  stackexchange  tips  example  scripting 
september 2016 by ezequiel
git ready » list remote branches
Sometimes you may need to figure out what branches exist on a remote repository so you can pull them down and check them out, merge them into your local branches, etc. If you’re using GitHub or gitweb to host your repository it’s usually easy to determine the branch names, but if you need to get them in general or for scripts it’s not exactly clear.
git  remote  scm  tips  blogpost  2009  development  tool  cli 
september 2016 by ezequiel
Efficient Editing With vim - Jonathan McPherson
This tutorial assumes a basic knowledge of vim -- insert mode, command mode, loading and saving files, etc. It is intended to help vi novices develop their skills so that they can use vi efficiently. [...]
vi  vim  tutorial  keyboard  tips  article  2009  editor  editing  cheatsheet  archived.version 
august 2016 by ezequiel
syntax - What does "use strict" do in JavaScript, and what is the reasoning behind it? - Stack Overflow
Q: Recently, I ran some of my JavaScript code through Crockford's JSLint, and it gave the following error:
Problem at line 1 character 1: Missing "use strict" statement.
[...]
javascript  tool  issue  forumthread  stackexchange  2009  example 
july 2016 by ezequiel
My new favorite Bash prompt - BrettTerpstra.com
[...] I’m using the PROMPT_COMMAND variable to run a few quick functions to generate the prompt. [...]
2009  blogpost  macosx  bash  unix  linux  example  cygwin  configuration  colour  terminal  script 
july 2016 by ezequiel
shell - Check if a function exists from a bash script - Stack Overflow
Q: How can I determine if a function is already defined in a bash script?
I am trying to make my .bash_login script portable between systems, so I want to add logic to only call a function if it exists.
I want to add __git_ps1() to PS1 only if that function exists on that system. This funciton normally defined in git-completion.bash which comes with git source, or by one of the bash completion scripts that ports/apt installs.
bash  shell  dash  scripting  howto  tips  example  forumthread  stackexchange  2009  unix  linux  macosx  cygwin 
july 2016 by ezequiel
javascript - Best way to track onchange as-you-type in input type="text"? - Stack Overflow
Q: In my experience, input type="text" onchange event usually occurs only after you leave (blur) the control.
Is there a way to force browser to trigger onchange every time textfield content changes? If not, what is the most elegant way to track this “manually”? [...]
javascript  web  development  scripting  forumthread  stackexchange  example  links  html  2009  2015 
july 2016 by ezequiel
Why Perforce is more scalable than Git
[...] Suddenly you have to clone something with git, and BAM! The world is changed. You feel it in the water. You feel it in the earth. You smell it in the air. Once you've experienced git, there is no going back, man. Git is the stuff man. You might have checked out firefox -- but have you checked out firefox ooon GIT? [...]
blogpost  comparison  perforce  git  scm  forumthread  2009  performance 
june 2016 by ezequiel
Using GIT, how can I selectively pull / merge changes from another's 'fork'? - Stack Overflow
Q: [...] What would be the most efficient method of getting these select amount of changes, merged into my 'fork'? [...]
(me: includes example on how to interactively "undo" changes introduced in the working copy with respect to a given commit, using vim)
git  scm  tips  example  vim  patches  forumthread  stackexchange  development  textprocessing  2009 
may 2016 by ezequiel
python - How do I pass a variable by reference? - Stack Overflow
Q: The Python documentation seems unclear about whether parameters are passed by reference or value, and the following code produces the unchanged value 'Original' [...]
python  programming  tips  example  code  forumthread  stackexchange  2009 
may 2016 by ezequiel
How to de-import a Python module? - Stack Overflow
Q: [...] Firstly I import a script and I take out the metadata, then I go for the next. But I want to de-import all the other modules except for the one that the user has selected. [...]
python  tips  example  forumthread  stackexchange  2009 
may 2016 by ezequiel
More Advanced Ruby Method Arguments – Hashes And Block Basics
[...] However, if you want to have an in-depth knowledge of Ruby you will need to know how to use hashes as method arguments as well as where blocks fit into the picture and this is what I am going to cover here. [...]
ruby  language  example  tips  2009  article  tutorial  blogpost 
march 2016 by ezequiel
version control - Change the author of a commit in Git - Stack Overflow
Q: [...] Is there any way to change the author of these commits to my name? [...]
git  scm  howto  tips  issue  workaround  fix  forumthread  stackexchange  2009  cli  example  development  tool 
march 2016 by ezequiel
merge - Git pull a certain branch from GitHub - Stack Overflow
Q: I have a project with multiple branches. I've been pushing them to GitHub, and now that someone else is working on them I need to do a pull from GitHub. It works fine in master. But say I have branch xyz. How can I pull branch xyz from GitHub and merge it into branch xyz on my localhost? [...]
git  scm  issue  workaround  tips  guide  links  stackexchange  forumthread  tool  development  2009 
february 2016 by ezequiel
version control - git workflow and rebase vs merge questions - Stack Overflow
Q: I've been using git now for a couple months on a project with one other developer. I have several years of experience with svn, so I guess I bring a lot of baggage to the relationship.
I have heard that git is excellent for branching and merging, and so far, I just don't see it. [...]
scm  git  development  tool  tips  howto  programming  forumthread  stackexchange  2009  2015  bestpractice 
january 2016 by ezequiel
A tale of two shells: bash or dash [LWN.net]
A reoccurring topic on Debian lists is the use of dash (Debian Almquist Shell) as opposed to bash (GNU Bourne-Again Shell). Currently /bin/sh defaults to bash on a Debian system, but some would like the default to be dash.
article  2009  unix  linux  debian  ubuntu  shell  bash  performance  booting  history  dash 
september 2015 by ezequiel
The NT Insider:Take a Break - Missed Breakpoints? Here's Why...
The current way breakpoints are handled in the Windows kernel debugger has some fundamental flaws that can make breakpoint recognition unreliable, especially in time-critical scenarios. This article describes the problematic scenarios in the kernel debugger, and proposes a work around that developers may use to avoid the problem.
article  windows  windbg  issue  debugger  kernel  debug  x86  amd64  tips  2009  internals  workaround 
july 2015 by ezequiel
How To Open, Edit and Print ANY Text Document
(me: links to software viewers/editors and websites that perform conversion between formats in files/documents)
article  2009  fileformats  webapp  howto  tips  windows  msword  odf  rtf  links  officeapp 
june 2015 by ezequiel
Capturing Process Memory Usage Under Linux (article, 2009)
Recently we here at EQware had occasion to want detailed information about process memory usage on an embedded Linux system. Naturally we turned to the web to discover what tools and techniques the community might have to offer.
article  linux  unix  2009  c  c++  programming  example  sourcecode  kernel  memory  links 
june 2015 by ezequiel
debugging - How to track memory allocations in C++ (especially new/delete) - Stack Overflow
How can I track the memory allocations in C++, especially those done by new/delete. For an object, I can easily override the operator new, but I'm not sure how to globally override all allocations so they go through my custom new/delete.
stackexchange  forumthread  c  c++  memory  debug  profiling  linux  unix  windows  tips  tools  valgrind  development  2009  mem.allocator 
may 2015 by ezequiel
Debian is switching to EGLIBC | Aurélien Jarno
(me: references to the forking being done because of the unresponsiveness/bad attitude on Ulrich Drepper's part)
debian  links  redhat  people  opensource  fossadvocacy  glibc  c  gnu  library  embedded  2009  blogpost 
may 2015 by ezequiel
dll - Windows malloc replacement (e.g., tcmalloc) and dynamic crt linking - Stack Overflow
Q: A C++ program that uses several DLLs and QT should be equipped with a malloc replacement (like tcmalloc) for performance problems that can be verified to be caused by Windows malloc. With linux, there is no problem, but with windows, there are several approaches, and I find none of them appealing: [...]
windows  dll  memory  issue  workaround  programming  development  design  library  forumthread  2009  c  c++  stackexchange 
february 2015 by ezequiel
What's a quick way to comment/uncomment lines in Vim? - Stack Overflow
Q: [...] In general, I'm looking for an easy and fluid way to comment and uncomment lines. Here I'm dealing with Ruby code, but it could be JavaScript (//) or Haml (-#).
vim  tips  howto  programming  forumthread  editing  plugin  links  development  stackexchange  2009 
july 2014 by ezequiel
c++ - G++ Multi-platform memory leak detection tool - Stack Overflow
Does anyone know where I can find a memory memory leak detection tool for C++ which can be either run in a command line or as an Eclipse plug-in in Windows and Linux
memory  library  build  multiplatform  linux  unix  macosx  windows  forumthread  2009  c  c++  gcc  security  stackexchange 
may 2014 by ezequiel
LXC containers or extremely fast virtualization | Stéphane Graber's website
This (quite long) post is about the LXC (Linux containers), an example of its usage on Karmic is provided after the introduction to contextualization.
lxc  linux.containers  ubuntu  ubuntu.karmic  ubuntu.lucid  networking  sysadmin  security  2009  virtualisation  blogpost 
february 2014 by ezequiel
« earlier      
per page:    204080120160

Copy this bookmark:





to read