1,787 karma · joined Oct 29, 2013 (13y ago) · 405 submissions
author: The Tao of tmux (https://leanpub.com/the-tao-of-tmux) available to read for free online at https://leanpub.com/the-tao-of-tmux/free
software libraries: cihai, unihan-etl, tmuxp, libtmux, vcspull, libvcs
tony (at) git-pull.com
https://www.git-pull.com
(If what I say isn't helpful to you, disregard it. Spread the good will and good tidings!)
comment 9y ago · link · parent
- Low-carb and Keto
- Meals with Shirataki noodles
Monetization:
- Link to ingredients on Amazon affiliates
- Link to cooking supplies used in videos on Amazon affiliates
- Make an app that stores your recipes
- In the app, make a random button to switch through recipe ideas quickly
- Charge 2.99 for packs of 30 recipes
- Allow faceting through recipes by nutritional concerns, carbs, macros, etc.
- https://developers.google.com/search/docs/data-types/recipes
- Get into supplements
- Feeds > Email lists. I'd even say email lists are an antipattern. Offer ways for users to stay in touch without giving an email, that's a bit of a one sided deal. Go for Twitter, Facebook, YouTube etc. That way you can have your cake and eat it too, not annoying users, and letting them stay up to date with your content.
comment 9y ago · link · parent
But controlled obsolescence kills me. The real feature that improves in phones the past few years for me is the software and apps, not the hardware.
My wishlist:
- Give me a lighter, snappier OS. Not something clunkier and slower and uses more ram, gpu/cpu (aka battery life).
- Actually support updates to the things for longer than 2-3 years.
- (Not related to this phone) Use stock android, unless you're removing bloat. Why? Because inevitably there's going to be apps. What I want is a nice flat surface that includes wifi, bluetooth, and nice API's and permissions for those apps to plug into.
- The biggest feature you can give me on a phone? Battery life, Replaceable battery, Data/Cell reception, Speaker/Microphone quality.
- SIM card that's easy to get out.
- Actually, Dual SIM's.
- Support for carriers globally.
- And physical keyboards. Something for SSH'ing with.
comment 9y ago · link · parent
There are things that a human can suggest that computers can't. Such as a refactoring suggestion.
Here are a few ideas:
- Consider adopting a standard like EditorConfig (http://editorconfig.org/) for reviewers to have compliant indentation out of the box
- For Enterprise packages: perhaps there can also be an opportunity to sub-contract out features and write tests?
- Consider experimenting internal CI tools (like as done in open source projects) to scan for obvious/low-hanging fruit automatically
- Scanning for / suggesting package updates
- Provide QA / audit for a large open source project for exposure
- Security auditing
Here are things that are good to hear:
- Static / Linting: things like vulture, flake8, etc. seem like a nice thing to stick to. It's good that these linters have configuration files to it
184.
CarbLoaded: A Culture Dying to Eat (International Subtitles Version)(youtube.com ↗)
2 points · by git-pull · 9y ago · discuss
comment 9y ago · link · parent
I get the sentiment, but I'm immediately recalling times users have been spurned by projects that just didn't listen. In that light, this feels like a subjective statement.
I can tell you I'm racking my brain right now trying to invoke custom sphinx-doc builders programatically. And I get absolutely zero consideration in the issue tracker. Why? Because 99% of the cases of sphinx are invocation through ReadTheDocs and the project's Makefile. They don't care whether their internals are intuitive or not.
To most, it looks incredibly trivial. But I have a legitimate case to use sphinx this way, and they flip when I suggest adding an argument to insert a custom Builder. No, I have to create a side effect by inserting an extension, which registers the builder as a string, and then figure out why I'm not printing even basic debug statements.
I seriously only have the intention of making life easier for others. The internals of docutils and sphinx are no simple feat to understand.
Eh, other than my own personal problems, which I at least made patches for, there's gnome's spatial fiasco (https://www.osnews.com/story/7344). So, every time I did a gnome install I'd go into preferences to 'fix' it. Untold others did too.
I have sympathy toward open source projects not being able to change internals due to fear of introducing regressions and keeping code maintainable and (to a point) pragmatic. My point is, while there is people who pick small gripes over edge cases, there are simple little things that can cause headaches to users.
comment 9y ago · link · parent
> What if something goes wrong? What if its broken? What if there is a security issue?
Then, you'll fix it. They found bugs you wouldn't have noticed unless you put it out there.
It doesn't necessarily mean you'll lose users. Microsoft and Google have tons of security advisories. They patch, and go on building and marketing.
> What if no-one cares or uses it?
If you don't release, you risk a perilous prospect of being the product and service that's "stealth" and never ships. People are sick of those who always play it close to the vest, spin tall tales filled with marketing buzzwords, are the next big thing, but have nothing to show for it.
By you being able to show your project, and incorporate feedback on it, you demonstrate that you can execute things and be part of the club of people who ship, not just talk.
There's a psychological hump everyone needs to get over. It's about self-esteem and failing. You're worth publicizing your own creation and getting feedback, and still getting people to check back to see how you innovate and improve upon your feedback.
187.
Fidget spinner – Google Search(google.com ↗)
2 points · by git-pull · 9y ago · 1 comment
comment 9y ago · link · parent
If you don't believe me, clone git itself ($ git clone https://github.com/git/git) and open up the repo in tig(1)
To be honest, I only in the past 2 years even bothered to view ($ git log --graph). Regardless of --graph getting wide now and then, I always visualize my git history as a straight line.
Also, sometimes having a non-linear history is inevitable. Especially in large open source projects where you're pulling in patches to a branch, and patches on top of that. You're not always going to be merging a branch with a single author straight onto master.
Despite posts like this (http://www.bitsnbites.eu/a-tidy-linear-git-history/) encouraging good git hygiene, I've had multiple open source projects merge in code via GitHub and never had negative consequence for it :P
Maybe there are corner cases where git bisect wouldn't work? Though I never used git bisect even once. Most I do is scroll through tig and view diffs. Also used to play with a cool git plugin in vim (https://github.com/tpope/vim-fugitive).
Also, GitHub has (since that linear git history post) introduced Rebase + Merge https://github.com/blog/2243-rebase-and-merge-pull-requests. I think that'll get you what you want.
I do keep branches ("pull requests" if you're using GH lingo) up to date with ($ git pull --rebase). That does mean a force push ($ git push --force), but it's ok if it's your personal branch. I also use interactive mode ($ git rebase -i <sha>) to edit/blend multiple commits.
Also, when I do merge, if I go through CLI, I'll preserve the history of the branch by not doing fast forwards ($ git merge <branch> --no-ff).
comment 9y ago · link · parent
Put it this way: Think of it like a Socratic dialog. Just because a replacement for ls(1) may not be beneficial due to configuration and customization already being commonplace, isn't the same as saying the mere notion of a competing unix CLI tool is bad.
top(1) doesn't allow color configuration. I use htop(1), and like it.
ls(1) already has color customization via LS_COLORS and long-list format via -l in ls. And about 10+ other output options. It's quite flexible.
git status can be shown via `git status`, and via the PS1 in oh-my-zsh/pure.
> Nobody is going to use this to replace "ls" in scripts.
I'm concerned they will, and not recognize it. To beginner and novice shell users, it's easier to cargo cult stuff in and not know what's happening. And things will break in ways that's a nightmare for them to troubleshoot.
My gut instinct is being verified by comments in this thread mentioning alias'ing in exa as ls.
comment 9y ago · link · parent
I forgot to add: Having colors / fancy output when you just want to pipe information around the shell is of no value.
IMO it goes against the spirit of what commands like ls are meant to do, and the behavior exa provides is better placed, and already done well, via shell configuration (e.g. oh-my-zsh, presto, pure)
comment 9y ago · link · parent
The focus over the qualifier of whether it's "drop-in" misses the point. How else are people going to interpret and use "a modern replacement for ls", in practice?
Not to replace the file /bin/ls itself. Users will symlink/PATH/alias exa in as "ls" in front of /bin/ls in their shell for convenience.
comment 9y ago · link · parent
I went through maybe 10? in-ear headphones over 5 years.
Those things break all the time. And boy does it get annoying and expensive to replace these things:
- Sennheiser CX300-B In-Ear Stereo Headphone
- Sennheiser CX 400 In-Ear Headphone (Black) - 4 of these
- Etymotic Research ER6i Isolator In-Ear Earphones (Black)
- Many Sony headphones from the corner store :P
It's been maybe a year, with bluetooth headphones, my first bluetooth in-ear headphones still work. Maybe because there's less stress on the ear piece-wiring connection? I don't know.
Maybe I wasn't gentle enough with them, had bad luck, or got bad products. I don't know.
Also I forgot to mention how lame it is when the headphone jack itself on the laptop wears down or breaks. And you have to take the whole unit in for repair.
I look forward to never having to worry about that again :P
comment 9y ago · link · parent
The problem is smart phones are beginning to ditch these ports: it's not just the article, the iPhone is the latest device to get rid of the headphone jack. (Though you can get an adapter)
Over time though, I learned to manage dealing with wired headphones. Even in tricky situations. The best compromise for me was headphones that allowed the wire to disconnect from the headset with enough force (and potentially be replaced). https://i.imgur.com/Ud1e6QU.jpg
I gave bluetooth headphones a try since I used RS 185, sold them, and sennheiser bluetooth over ears (which I sold). Then, there were $20.00 bluetooth headphones on Amazon. So what the hay, gave it a shot?
The sound quality was decent. Not having to worry about leaving your seat with wires was also pleasant. Especially if you switch headphones between laptop and phones often, you can lose orientation.
So, while I used to have cynicism of bluetooth headphones, I gave them a shot with $19.99 headphones and was pleasantly surprised.
comment 9y ago · link · parent
You can grab them on Amazon for $20 to $50.
- SoundPEATS Bluetooth headphones is $19.99 with Amazon Prime. Some hiccups on this one with connecting. I keep this one as a backup when battery runs out.
- Phaiser BHS-730 works like a charm. $39.99 with Amazon Prime. Nice magnet feature that allows you to wear the unit around your neck when not using it.
They work with your smartphone and your laptop.
So the major downside? These things run out of battery power after 4-5 hours on average. This sucks because you're typically using them on the go.
Hopefully more people using bluetooth will result in future headphones with improved battery life.
comment 9y ago · link · parent
Even just with PATHs or aliases, or a new binary entirely.
And I'm a person who is no stranger to dot-configs. I've never taken it as far as Z(1), https://github.com/rupa/z.
A system builtin is stuff you'd see stowed away in /bin. They are essential low level binaries you have to trust. If somehow a malicious ls got out there, nothing's stopping people from writing memory-safe malware that uploads your $HOME configs to some server in a far away land.
The more I say this, I guess defaulting to a substitute for a builtin command doesn't matter. The average developer relies on so much third party stuff in their shell, vim, package manifests, and so on that all these years could have done bad stuff, nothing has happened.
Maybe it's my defense mechanism firing that my own dot-config has grown so big I don't remember what the hell's in it anymore.
In fact, it's a common thing for terminal applications to accept environmental variables to use third party applications. For instance, $EDITOR, and less often (but no less useful): $PAGER. You can give it a shot with most(1) [1], I mention it in my book, The Tao of tmux [2] (available free to read online).
So also, regarding $EDITOR, if you prefer that being in GNU nano, Pico, Vim, or emacs, set it in your .bashrc/.zshrc:
export EDITOR=vim
Also, for git's editor, I don't remember if it falls back to $EDITOR, but you can do:
export GIT_EDITOR=vim
Another tool at your disposal for ls(1), which even FreeBSD supports, it $LS_COLORS:
http://man7.org/linux/man-pages/man5/dir_colors.5.html
edit: actually, BSD's ls(1) seems to be $LSCOLORS (https://www.freebsd.org/cgi/man.cgi?query=ls&sektion=1):
[1] http://www.jedsoft.org/most/
[2] https://leanpub.com/the-tao-of-tmux/read#leanpub-auto-read-t...
comment 9y ago · link · parent
- Keep a clean room.
- Own less things.
- Wash clothes ahead of time. In big cities there'd also be cleaners that'd fold clothes, too.
- Have your bills paid and paperwork up to date. You don't want this weighing over your mind.
- Rearrange furniture.
- No caffeine after 2PM.
- Are you getting enough sleep? Consider going to a sleep specialist to get to the root of the problem.
- Hyperactive? Considering fitting gym into your schedule to get it out of your system.
- If it's possible in your commute, take a scenic route where there is more time to walk.
- Sometimes people check with a doctor to rule out ADHD, depression, and so on.
- Install a clean copy of your OS.
- Try switching between windows/linux and macos/linux. I flip between them every 6 months.
- Intermittent fasting has helped me focus. That is, not eating foods until 4 or 6PM, there are various types of this.
- Remove toxic people from your life. These are people in your life who aren't straight with you and suck your emotions away. Steer clear.
- Keep a change log of all the stuff you accomplish in a day. Helps you feel effective.
- White noise sound files (https://www.youtube.com/watch?v=dozJzkdLPRU) / White noise machine on Amazon
- Full spectrum light (I've found Verilux to be quite nice)
- Vitamin D if you don't get enough sun light. Zinc, Magnesium.
- Consider removing all stimulants (caffeine, energy drinks) for a few weeks and see if that causes things to return to equilibrium
comment 9y ago · link · parent
Technologies: C++, Python, Javascript (frontend and backend), Vue.js, Backbone, Linux, FreeBSD
Résumé/CV: https://git-pull.com
GitHub: https://www.github.com/tony
Book: https://leanpub.com/the-tao-of-tmux
Email: see profile
comment 9y ago · link · parent
A similar conceptual example: https://vuejs.org/v2/guide/comparison.html
Mention whether your SSG supports reStructuredtext, markdown, etc.
comment 9y ago · link · parent
IDE Support: KDevelop and CLion both support CMake as a flag ship project file.
Why? A CMakeLists.txt has all you need: the project's debug/release build commands, include's for completions, and library files.
Growing ubiquity: More and more open source projects are build around CMake
CoreCLR, Swift, lua, SFML, opencv, cafe, zlib, libevent, blender, protobuf
Some fast facts about these tools:
- CMake is complicated. Sure, there are macros. But it's not a bad thing. CMake's complexity is proportional to what it takes to do the job: finding header files and libraries across platforms, detecting compiler features, and so on.
- This isn't the kind of a job that can be solved by a simple, beautiful 50 line file.
For instance: Stuff like finding SDL2 header files across platforms is hard because OS leave them in /usr/include, /usr/local/include, then within that, some keep them under SDL or SDL2 within that. Ergo, custom modules need to be built to handle the differences that have organically manifested in distros over the years.
- In order to have software binaries built for as many platforms as possible, a build system needs to be able to test that certain functions exist.
For instance, tmux: https://github.com/tmux/tmux/blob/45ee118/configure.ac#L427. The only way for tmux to know if it should "polyfill" getopt is to run a small snippet of code.
If your system has it, it stores HAVE_GETOPT. If not, it has to get fill in getopt at https://github.com/tmux/tmux/blob/45ee118/compat/getopt.c via https://github.com/tmux/tmux/blob/45ee118/compat.h#L352
- Understand the point of these kind of tools is solve a problem: Getting your source to build across a range of platforms, not just Ubuntu!
- Not to mention, CMake has compatibility for various generator outputs. For instance, it can output Visual Studio projects, XCode projects, and even more popular, Ninja (https://ninja-build.org/)
- CMake gives leaves helpful debug output when so you can get help when you're troubleshooting (cmake --system-information sysinfo.txt)
comment 9y ago · link · parent
https://libtmux.git-pull.com/en/latest/api.html
https://libvcs.git-pull.com/en/latest/api.html
That is, global + expanded local ToC Section Navigation on the left, and laying out the API docs like python code (parenthesis wrapping parameters).
The tool that powers it is sphinx.ext.autodoc (http://www.sphinx-doc.org/en/stable/ext/autodoc.html). While it's opinionated toward Python, there are tools like Breathe (https://breathe.readthedocs.io/en/latest/) that can use doxygen's XML output to generate docs, too.
For REST-based API's that can be widdled down to language-library abstractions, I concur with stripe API documentation: https://stripe.com/docs/api
In addition, Heroku's platform API documentation is nice: https://devcenter.heroku.com/articles/platform-api-reference. Downside is the ToC makes the docs top-heavy.
Other points:
- I think it's OK to infer readers are going to be using Command/Ctrl-F searches liberally when viewing docs.
- For javascript (to augment what's already there), I like annotated source if the library is small enough, e.g. http://backbonejs.org/docs/backbone.html
comment 9y ago · link · parent
comment 9y ago · link · parent
Maybe by googling:
site:quora.com robotics
And seeing the people who answer and good writers.
Also, consider scientific journals and people who are PhD candidates at universities.
This balances their expertise with their willingness to be pitched to write on the subject.
comment 9y ago · link · parent
The site is a work in progress, you can preview at https://devel.tech.
This is docutils: https://devel.tech/site/updates
This is sphinx: https://devel.tech/features/django-vs-flask/
Docutils allows deep customization of source text, programmatically. There's a lot of work needed to bring it to the next level, but the potential is huge. There can be beautiful LaTeX PDF documents and improved HTML output.
That's not to mention the power of reStructuredText's custom roles: http://docutils.sourceforge.net/docs/howto/rst-roles.html
My ambition is to be able to give back improvements upstream (https://devel.tech/site/open-source).
Also, the maintainers on the docutils mailing list have been very helpful to me with questions relating to internals. I recommend checking it out at http://docutils.sourceforge.net/docs/user/mailing-lists.html.
Bulma is already a great flexbox-based framework: http://bulma.io. I threw out two huge framework (bootstrap 4 and mdbootstrap pro) to use this. The markup is far simpler, the spacing is grand, and the feature:size ratio is perfect. Highly recommended.
comment 9y ago · link · parent
I use Makefile's regularly on open source and personal profiles (e.g. https://github.com/tony/tmuxp/blob/master/Makefile). Feel free to take and use that code, it's available under the BSD license.
The creativity comes in when dealing with cross-platform compatibility: Not all file listing commands are implemented the same. ls(1) doesn't work the same across all shell systems, and find on BSD accepts different arguments than GNU's find. So to collect a list of files to watch, we use POSIX find and store it in a Make variable.
Then, there's a need to get a cross platform file watcher. This is tricky since file events work differently across operating systems. So we bring in entr(1) (http://entrproject.org/). This works across Linux, BSD's and macOS and packaged across linux distros, ports, and homebrew.
Another random tip: For recursive Make calls, use $(MAKE). This will assure that non-GNU Make systems can work with your scripts. See here: https://github.com/liuxinyu95/AlgoXY/pull/16
comment 9y ago · link · parent
- Permissively licensed: https://github.com/clangen/musikcube/blob/master/LICENSE.txt
- CMake: https://github.com/clangen/musikcube/blob/master/CMakeLists....
- Lean n' mean plug-in system to support audio codecs and sound systems? Check, https://github.com/clangen/musikcube/tree/master/src/plugins
- CURSES (TUI) C++ abstraction layer: https://github.com/clangen/musikcube/tree/master/src/musikcu.... Based off https://github.com/clangen/cursespp.
- Indexes (a la mpd?): https://github.com/clangen/musikcube/tree/master/src/core/li...
- Cross-platform audio abstraction interfaces? https://github.com/clangen/musikcube/tree/master/src/core/au...
This could stand a chance of uprooting the mpd + ncmpcpp combo that's been pretty standard for many terminal lovers.
That's not even to mention this app also has an android client (https://raw.githubusercontent.com/clangen/clangen-projects-s...), and something looks like it's being cooked up for windows, too: https://github.com/clangen/musikcube/tree/master/src/musikwi...
Amazing skills. Just 2 main contributors: https://github.com/clangen/musikcube/graphs/contributors. If the git history is pristine (information could have been lost/altered during a cross VCS import), the project was also around since at least 2008: https://github.com/clangen/musikcube/tree/b272bf6