17. grep so powerful and fast and versatile !!
18. Just how powerful is inkscape !!!
Great Inkscape tutorials
Nick Saporito: https://www.youtube.com/channel/UCEQXp_fcqwPcqrzNtWJ1w9w
19. Prevent mac from sleeping / shutting down the hard disk:
Caffeinate is a very handy utility
20. Free ebooks / cheat sheets:
yet to completely explore.. but good to have it listed.
21. Tab opening extensions, firefox:
Does not have a feature to open tab the very end by default - otherwise a fine extension.
Give cmd + y as a shortcut for the default behaviour.
22. Centring an image inside a div
https://www.sitepoint.com/community/t/centering-image-inside-flexbox/287444
https://css-tricks.com/almanac/properties/v/vertical-align/
23. Duplicates in a column, google sheets:
https://stackoverflow.com/a/23346059
https://www.techjunkie.com/highlight-duplicates-google-sheets/
24.Sandbox at the kernel level, tight security and low overhead..
https://github.com/netblue30/firejail
25. Interesting way to package linux applications:
Motivation to do so.. worth a read.
https://github.com/AppImage/appimagekit/#motivation
26. Git remove untracked files
https://koukia.ca/how-to-remove-local-untracked-files-from-the-current-git-branch-571c6ce9b6b1
27. Strikethrough shortcut on mac (Notes)
https://appuals.com/how-to-strikethrough-using-a-keyboard-shortcut-on-a-mac/
28. prevent scrolling for a fixed position div
29. I hear you brother. Only waiting for a chance to make things right.
http://tonsky.me/blog/disenchantment/
30. make a directive for (read more <--> read less toggle)
https://developer.mozilla.org/en-US/docs/Web/API/Element/getClientRects#Example
Idea for developing an angular2 directive
31. ngElse:
https://medium.com/aviabird/ngif-else-lands-in-angular-2-0-a242940e54ff
Never tried it in real life.
32. IPython autoreload enable by default:
ipython profile create~/.config/ipython/profile_default/ipython_config.pyc.InteractiveShellApp.extensions = ['autoreload'] c.InteractiveShellApp.exec_lines = ['%autoreload 2'] c.InteractiveShellApp.exec_lines.append('print("Warning: disable autoreload in ipython_config.py to improve performance.")')33. 404 and 500 funny:
https://www.atlassian.com/blog/statuspage/error-pages
https://rigor.com/blog/2012/07/15-awesome-fail-pages
34. Multiple router outlets:
https://www.techiediaries.com/angular-router-multiple-outlets/
Suggested use-cases:
https://stackoverflow.com/questions/34628848/angular2-multiple-router-outlet-in-the-same-template
Update: 18th Sept 2018
https://stackoverflow.com/a/42204114
Tried this, but did not work :(
SYO
35. This is very interesting !
Performance of multiple ifs and switch-cases of different styles:
https://stackoverflow.com/questions/6665997/switch-statement-for-greater-than-less-than
great job by the writer of the post
36. Activate screen saver on mac with a keyboard shortcut:
http://osxdaily.com/2014/07/10/set-screen-saver-keyboard-shortcut-mac/
37. ArangoDB awarded:
https://www.arangodb.com/gartner-peer-insights-customer-voice-arangodb-report/
38.
brew cask install mactex
screwed up node and npm and universal build
To fix,
- brew install node npm
- also, delete node_modules and npm install
39. Install TexMaker on Mac:
http://macappstore.org/texmaker/
This worked :)
Mac app store is Amber's site. :D
But no compile:
So, Installed mactex
https://thetechsolo.wordpress.com/2016/01/28/latex-on-mac-the-easy-way/
This messed up my node, npm, universal build installation #38
40. Installing inkscape on Mac
- https://inkscape.org/en/download/mac-os/
Thought home brew would be straight forward.
But:
Error 1:
SHA256 mismatch homebrew inkscape
Found this:
https://github.com/caskformula/homebrew-caskformula/issues/58#issuecomment-399280275
So did this:
https://github.com/caskformula/homebrew-caskformula/issues/57#issuecomment-397919379
Now
Error 2: pdf-parser.cpp:41:10: fatal error: 'goo/GooHash.h' file not found
So now trying this:
https://github.com/caskformula/homebrew-caskformula/issues/54#issue-325454295
This worked.
41. Readability counts (Reference: Zen of Python)
https://github.com/standard/standard
42. Performance analysis tool:
Good for first cut general metrics -
https://developers.google.com/web/tools/lighthouse/#devtools
43. How much should you send ?
JS payload
https://medium.com/@addyosmani/the-cost-of-javascript-in-2018-7d8950fbb5d4
44. This is a pain:
Javascript -- detecting an undefined property of an object
https://stackoverflow.com/questions/27509/detecting-an-undefined-object-property
45. Nice datepicker widget for angular2 / angular4 :
https://github.com/kekeh/mydatepicker#options-attribute
46. HE HE :P I did not know this.
https://stackoverflow.com/questions/12008120/console-log-timestamps-in-chrome
47. Angular component to implement -- circular determinate progress:
https://bootsoon.github.io/ng-circle-progress/
barebones bootstrap:
https://bootsnipp.com/snippets/featured/circle-progress-bar
Indeterminate can be done using bootstrap / font-awesome:
https://fontawesome.com/v4.7.0/examples/#animated
48. How to clamp text to "n" number of lines:
1. https://css-tricks.com/line-clampin/
2. http://hackingui.com/front-end/a-pure-css-solution-for-multiline-text-truncation/
The articles do not talk about which browsers support which solution.
Angular plugin proven to be handy:
https://www.npmjs.com/package/ngx-ellipsis
(tip: set height in em units --> to get n-lines in height)
Promising idea of the directive and API:
https://www.npmjs.com/package/ngx-multi-line-ellipsis
49. One of the very first error / crash loggers that I used:
ACRA: https://github.com/ACRA/acra
50. Core contributor to sentry Javascript
https://www.youtube.com/watch?v=e4eE5VeO1_o
Effort that goes into getting a good usable stack trace.
51. Error logging for Javascript:
https://medium.com/@aleixsuau/error-handling-angular-859d529fa53a
https://medium.com/@jico/the-fine-art-of-javascript-error-tracking-bc031f24c659
Something nice (cancelled request):
https://glebbahmutov.com/blog/catch-all-errors-in-angular-app/#do-not-report-cancelled-requests
Logly tips:
https://www.loggly.com/blog/angular-exception-logging-made-simple/
52. Sentry install for client side js error logging.
(Eg. Angular does not pass on its error to JS )
Best practice checklist
1. General JS sentry
2. Framework specific sentry
2.5 Test setup locally (create an error manually)
2.6 Test setup in production
3. Whitelist your domain.
4. Setup source maps -
https://raven-js.readthedocs.io/en/stable/sourcemaps.html
https://docs.sentry.io/clients/javascript/sourcemaps/
- https://cdn.ravenjs.com/3.26.4/raven.min.js
transfer size ~13KB
actual size ~ 36KB
53. Thumbnail generation for files on a browser:
- if we restrict thumbnails to image files then only raw JS can be used. small snippets to resize image
- pdf-js: mozilla maintained library for pdf manipulations in the browser.
- 3rd party API route: Seems promising: https://filepreviews.io/
- server side: https://www.npmjs.com/package/filepreview (very prominent con: lots of dependencies; definitely far from a light solution )
54. Prevent a line / phrase from breaking into multiple lines.
Try:
display: inline-block;
55. Unanswered question:
HTML5 can keyboard type be specified independent of input type .
For a numeric keyboard:
https://stackoverflow.com/questions/6178556/phone-numeric-keyboard-for-text-input
http://blog.pamelafox.org/2012/05/triggering-numeric-keyboards-with-html5.html
https://seesparkbox.com/foundry/cracking_the_code_for_a_numeric_keyboard
56. Unanswered question:
Chrome Android --> force full screen
57. How to delete a local branch that is no longer present on remote (may be you deleted the branch using some other machine)
╰─$ git branch -d origin/dev
error: branch 'origin/dev' not found.
╰─$ git fetch --prune 1 ↵
From gitlab.com:{{$organization_name}}/{{$project_name}}
- [deleted] (none) -> origin/dev
https://stackoverflow.com/a/35941658
58. make [(ngModel)] like integrations with parent component
https://www.concretepage.com/angular-2/angular-2-two-way-data-binding-ngmodel-example --> best explained here. Suffix hidden magic :P (not very well documented in the angular documentation)
https://blog.rangle.io/angular-2-ngmodel-and-custom-form-components/
https://dzone.com/articles/simplifying-custom-two-way-data-binding-in-angular
59. Broswer safety features:
certain navigation functions, like focus() etc are not reflected; unless called in response to a user generated event.
60. Angular Modules:
https://malcoded.com/posts/angular-fundamentals-modules
61. Angular apply styles to child components:
https://alligator.io/angular/styles-between-components-angular/
62. Angular cheat sheet on accessing child components:
https://alligator.io/angular/viewchild-access-component/
63. Backing up gitlab data:
https://gitlab.com/gitlab-com/support-forum/issues/412
TODO: try-out if this works.
64. Div element not taking height despite having content inside ?
Assign it a row class; (assuming you have bootstrap handy) The div in question should start occupying space.
65. Input box placeholder styling:
https://css-tricks.com/almanac/selectors/p/placeholder/
Also, read the comments. They provide a wealth of info, that will save time.
66. Ajax file download:
gist: https://gist.github.com/javilobo8/097c30a233786be52070986d8cdb1743
67. Centring an image
https://www.lifewire.com/center-images-with-css-3466389
Always useful. In margin-left/right:auto we trust
68. Tips on designing forms
https://uxdesign.cc/design-better-forms-96fadca0f49c
69. Using google queries to mine passwords:
(albeit searching gitlab / github / bitbucket)
and other open code repositories for passwords --> could get you into servers.
But this can get you into CRMs email accounts :D
Lesson: NEVER make your wiki's public
70. UX copy writing:
https://uxdesign.cc/how-to-build-a-better-product-with-ux-writing-926d78209ce8
Nice tips.
Especially the one about German :D being the gold standard for word length
71. Space Simulation and Visualisation engines
Stelerium: stellarium.org
72. Dart and flutter.io
https://hackernoon.com/why-flutter-uses-dart-dd635a054ebf
73. Dynamically adding a component to Angular:
Short and to the point prescription of what to do:
https://medium.com/front-end-hacking/dynamically-add-components-to-the-dom-with-angular-71b0cb535286
In case someone wants to dive to level 1 of the internals
A journey of discovery:<template>:
74. Suggestions / Guidelines for completing the design --> development --> iterate loop; without missing to capture any part of the thought process.
General guide:
https://uxdesign.cc/https-medium-com-91bilal-guide-to-successful-design-handoffs-18345f42d5d6
Zeplin specific guide:
75. web workers and threading in Browser + Js environment:
https://itnext.io/achieving-parallelism-in-javascript-using-web-workers-8f921f2d26db
76. The Font-Weight property mess:
https://stackoverflow.com/questions/3367589/font-weight-is-not-working-properly
77. DOM manipulation techniques:
https://blog.angularindepth.com/exploring-angular-dom-abstractions-80b3ebcfc02
Associated risks:
https://angular.io/guide/security#xss
78. Angular internals (dependancy tree and tree shaking):
https://blog.angularindepth.com/angular-dependency-injection-and-tree-shakeable-tokens-4588a8f70d5d
79. Nice article on Semantic Versioning (semver for shorts)
https://developer.telerik.com/featured/mystical-magical-semver-ranges-used-npm-bower/
80. Interesting Gmail search queries:
https://www.lifewire.com/how-to-search-mail-in-gmail-1172081
81. Not asking your designer to follow bootstrap grid ratios can cause a lot of problems.
82. You know your code is going to work when the diff looks like:
143 <3
:D
83. RISC ideators get Turing Award
RISC and ARM !!
https://www.nytimes.com/2018/03/21/technology/computer-chips-turing-award.html
may be then AVR too stands for what wikipedia says :)
"
Alf and Vegard's RISC
The creators of the AVR give no definitive answer as to what the term "AVR" stands for. However, it is commonly accepted that AVR stands for Alf and Vegard's RISCprocessor. Note that the use of "AVR" in this article generally refers to the 8-bit RISC line of Atmel AVR Microcontrollers.
"
https://en.wikipedia.org/wiki/Atmel_AVR
84. Git interactive add !!!
https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging
git is too good to be true. Wish that kind of control was available in life :P
85. Template literals javascript:
ver elegant way of solving the typical pintf from c; with the ugly %d, %s for typing variables
86. Tracking on Dropbox Website:
URL1: https://www.dropbox.com/plus
(I clicked on the header button on the plus page)
URL2: https://www.dropbox.com/buy?_tk=plus_header_button
(I clicked on the plans button in the footer)
URL3: https://www.dropbox.com/plans?trigger=homepagefoot
87. This is epic or what ?
https://github.com/localstack/localstack
- still studying it, don't understand it fully.
-
88. Rubber duck debugging :D
https://en.wikipedia.org/wiki/Rubber_duck_debugging
89. Notepad (F5-keybinding) gives out current timestamp !!
https://ask.metafilter.com/267294/How-do-you-guys-keep-a-diary-with-timestamps-automated
can be achieved with custom keybindings for google docs too !
90. Slow clap for google !
- is this a migration solution at all ?
- :D copy paste kar lo :D
91. Translation / Localization service for tech products:
- interesting workflow
92. NPM plugin development:
- interesting strategy:
https://docs.npmjs.com/cli/link
93. wow ! how we are being tracked:
-
List of events being tracked:
https://clickclickclick.click/#eb35964c5fe445133ecef6635b800692
94. cross domain cookies:
https://medium.com/building-contently/tracking-people-across-multiple-domains-when-cookies-just-arent-enough-b270cc95beb1
-
How Facebook does it:
http://www.nfriedly.com/techblog/2010/08/how-facebook-sets-and-uses-cross-domain-cookies/
-
More general discussion:
https://stackoverflow.com/questions/3342140/cross-domain-cookies
95 Very good blog on how to handle shell script arguments
- Also a very good template: (I am personally thinking of making this my standard)
- Also, I could not find any good gists for this, so may be it would be a good idea to add this as a gist
- Also, I should stop using also to start my statements
http://shelldorado.com/goodcoding/cmdargs.html
96 Position: static, relative, absolute, fixed
- https://www.w3schools.com/css/css_positioning.asp
97 Z-index is not as simple as it sounds:
- https://philipwalton.com/articles/what-no-one-told-you-about-z-index/
98 ::before and ::after in html,css are evil.
- need to know why were they introduced in the first place
99
Using reserved and unsafe characters not recommended:
- Why are the unsafe characters unsafe ?
https://stackoverflow.com/questions/726662/what-characters-are-unsafe-in-query-strings
- This answer in particular quotes an RFC in the w3 org
https://stackoverflow.com/a/726717
- What vulnerebilities may arise:
https://stackoverflow.com/a/727150
100
Fundamentals of micro services architecture:
https://www.nginx.com/blog/microservices-at-netflix-architectural-best-practices/