Friday, December 7, 2018
Thursday, December 6, 2018
Tuesday, December 4, 2018
Saturday, December 1, 2018
AWS Cloud Development Kit
AWS re:Invent 2018: Infrastructure Is Code with the AWS Cloud Development Kit (DEV372)
https://www.reddit.com/r/programming/comments/a22fay/aws_infrastructure_as_code_using_aws_cdk/
Monday, November 26, 2018
Sunday, November 25, 2018
PostgreSQL & Homebrew
https://stackoverflow.com/questions/15301826/psql-fatal-role-postgres-does-not-exist
If you're using postgres from Homebrew, then you want
If you're using postgres from Homebrew, then you want
/usr/local/Cellar/postgresql/9.2.4/bin/createuser -s postgres (for version 9.2.4, obviously). Saturday, November 24, 2018
Thursday, November 22, 2018
Database Indexes - How to determine if an Index is required or not
https://dba.stackexchange.com/questions/56/how-to-determine-if-an-index-is-required-or-necessary
http://blog.celerity.com/how-to-design-sql-indexes
http://blog.celerity.com/how-to-design-sql-indexes
22/08/2017, 19:03:36B-Trees in databases are not binary trees, they are BALANCED trees
Tuesday, November 20, 2018
UUID related
Seems like an exercise in trying to hack something using UUID guessing -
https://medium.com/@evinsellin/communicating-through-uuid-conflicts-fe50134304db
Labels:
computer science,
web applications
Electron, Desktop PWAs
Medium article:
https://medium.com/dailyjs/goodbye-electron-hello-desktop-pwas-f316b8f39882
YouTube video:
https://medium.com/dailyjs/goodbye-electron-hello-desktop-pwas-f316b8f39882
YouTube video:
Sunday, November 18, 2018
Saturday, November 17, 2018
Sunday, November 11, 2018
Friday, November 9, 2018
Wednesday, November 7, 2018
Database related - Composite Indexes
How do composite indexes work - https://stackoverflow.com/questions/795031/how-do-composite-indexes-work
https://stackoverflow.com/a/795068
https://stackoverflow.com/a/795068
Composite indexes work just like regular indexes, except they have multi-values keys.
If you define an index on the fields (a,b,c) , the records are sorted first on a, then b, then c.
Example:
| A | B | C |
-------------
| 1 | 2 | 3 |
| 1 | 4 | 2 |
| 1 | 4 | 4 |
| 2 | 3 | 5 |
| 2 | 4 | 4 |
| 2 | 4 | 5 |
- 12 Please note also that indexes are stored as Btree, so an (a,b,c) index will help on a search on (a) and on (a, b),
"MySQL can use multiple-column indexes for queries that test all the columns in the index, or queries that test just the first column, the first two columns, the first three columns, and so on. If you specify the columns in the right order in the index definition, a single composite index can speed up several kinds of queries on the same table." - Multiple-Column Indexes – AlikElzin-kilaka Sep 9 at 4:46
https://stackoverflow.com/questions/2349817/two-single-column-indexes-vs-one-two-column-index-in-mysql
https://stackoverflow.com/questions/179085/multiple-indexes-vs-multi-column-indexes?rq=1
https://stackoverflow.com/questions/2349817/two-single-column-indexes-vs-one-two-column-index-in-mysql
https://stackoverflow.com/questions/179085/multiple-indexes-vs-multi-column-indexes?rq=1
Monday, November 5, 2018
Thursday, November 1, 2018
Wednesday, October 31, 2018
Monday, October 29, 2018
Sunday, October 28, 2018
Friday, October 26, 2018
up - tool for writing Linux pipes
https://github.com/akavel/up
up is the Ultimate Plumber, a tool for writing Linux pipes in a terminal-based UI interactively, with instant live preview of command results.The main goal of the Ultimate Plumber is to help interactively and incrementally explore textual data in Linux, by making it easier to quickly build complex pipelines, thanks to a fast feedback loop. This is achieved by boosting any typical Linux text-processing utils such asgrep,sort,cut,paste,awk,wc,perl, etc., etc., by providing a quick,interactive, scrollable preview of their results.
Internationalization - React vs Angular
https://hackernoon.com/internationalization-in-angular-and-react-applications-a-comparison-93883f4e1cdb
Make sure to read the comments too.
Make sure to read the comments too.
Labels:
Angular,
javascript,
react,
web applications
Thursday, October 25, 2018
Tuesday, October 16, 2018
Erlang 'process'
https://www.quora.com/What-is-the-difference-between-system-threads-and-process-threads-as-in-Java-threads
Excerpt:
Excerpt:
Erlang uses the term "process" because it does not expose a shared-memory multiprogramming model. Calling them "threads" would imply that they have shared memory.
Sunday, October 14, 2018
Saturday, October 13, 2018
Thursday, October 4, 2018
Tuesday, October 2, 2018
Mongo - exporting and importing a single database
On Source Machine
-------------------------
mongo
> show dbs
> exit
mongodump -d abc_xyz_development
(Above command will create a dump/abc_xyz_development folder and put all the files inside it. This folder will need to be zipped and sent to whoever wants to import the database)
On Target Machine
-------------------------
Drop existing database
mongo
> show dbs
> use abc_xyz_development;
> db.dropDatabase();
> exit
Restore from Dump folder:
Command:
mongorestore -d
E.g.
mongorestore -d abc_xyz_development ~/abc_xyz_development
-------------------------
mongo
> show dbs
> exit
mongodump -d abc_xyz_development
(Above command will create a dump/abc_xyz_development folder and put all the files inside it. This folder will need to be zipped and sent to whoever wants to import the database)
On Target Machine
-------------------------
Drop existing database
mongo
> show dbs
> use abc_xyz_development;
> db.dropDatabase();
> exit
Restore from Dump folder:
Command:
mongorestore -d
E.g.
mongorestore -d abc_xyz_development ~/abc_xyz_development
Saturday, September 29, 2018
Wednesday, September 26, 2018
Sunday, September 23, 2018
Friday, September 21, 2018
Thursday, September 20, 2018
Monday, September 17, 2018
Saturday, September 15, 2018
React & JSX related: using JSX without React, minimal setup for trying out React
using JSX without React:
https://itnext.io/lessons-learned-using-jsx-without-react-bbddb6c28561
Minimal React.js Without A Build Step:
https://shinglyu.github.io/web/2018/02/08/minimal-react-js-without-a-build-step-updated.html
https://itnext.io/lessons-learned-using-jsx-without-react-bbddb6c28561
Minimal React.js Without A Build Step:
https://shinglyu.github.io/web/2018/02/08/minimal-react-js-without-a-build-step-updated.html
Thursday, August 30, 2018
Sunday, August 26, 2018
Saturday, August 25, 2018
Sunday, August 19, 2018
Saturday, August 11, 2018
Sunday, July 22, 2018
Spotify Engineering Culture
Spotify Engineering Culture
Spotify Engineering Culture - Part 1 -
Video: https://vimeo.com/85490944
Medium article: https://medium.com/project-management-learnings/spotify-squad-framework-part-i-8f74bcfcd761
Video: https://vimeo.com/85490944
Medium article: https://medium.com/project-management-learnings/spotify-squad-framework-part-i-8f74bcfcd761
Spotify Engineering Culture - Part 2 -
Video - https://vimeo.com/240501738
How is JavaScript used within the Spotify desktop application?
Quora question & answer:
https://www.quora.com/How-is-JavaScript-used-within-the-Spotify-desktop-application-Is-it-packaged-up-and-run-locally-only-retrieving-the-assets-as-and-when-needed-What-JavaScript-VM-is-used
Reddit Comments:
https://www.reddit.com/r/programming/comments/901p0j/former_software_engineer_at_spotify_on_their/
EDIT: It turns out that the Quora post was from 2015. The Reddit comments are scathing in their appraisal now.
EDIT: It turns out that the Quora post was from 2015. The Reddit comments are scathing in their appraisal now.
Labels:
design,
javascript,
software engineering,
web applications
Using jQuery vs more advanced JS frameworks
"Jquery results in mostly event handling and procedural code. The more advanced frameworks, if used properly end up more declarative with some event handling. That's much easier to write, read and understand."
Card
Saturday, July 21, 2018
Rails related blog
2015 blog by Vaidehi Joshi - has posts about Rails - 1 post per week in 2015
http://vaidehijoshi.github.io/http://vaidehijoshi.github.io/blog/categories/number-technicaltuesdays/
Computer Science Basics
2017 blog by Vaidehi Josh
Exploring the basics of computer science, every Monday, for a year.
Tuesday, July 17, 2018
Design related
https://fundrequest.io/
Checkout the above site for a decent design to try and re-implement for practice
Monday, July 16, 2018
Thursday, July 5, 2018
Monday, July 2, 2018
Tuesday, June 26, 2018
The Moden C++ Challenge - good book to improve programming with general stuff
Book link in pactpub.com - https://www.packtpub.com/mapt/book/application_development/9781788993869
Blogpost about the book by a C++ expert:
- http://scottmeyers.blogspot.com/2018/06/interesting-book-modern-c-challenge.html
All in all, there are 100 problems in a variety of areas, including string processing, dates and time, concurrency, cryptography, and networking.
Friday, June 22, 2018
Airbnb’s new Design Language System
https://airbnb.design/the-way-we-build/
I did not understand much. Have to read these articles again.
I did not understand much. Have to read these articles again.
Labels:
design,
mobile,
software engineering,
web applications
Thursday, June 21, 2018
Tuesday, June 19, 2018
Monday, June 18, 2018
Sunday, June 17, 2018
Wednesday, June 13, 2018
Tuesday, June 12, 2018
Sunday, June 10, 2018
Sunday, June 3, 2018
Constructing HTML with Templates
Using templates with script type="text/template"
Saturday, June 2, 2018
Subscribe to:
Posts (Atom)

MIPA