HNHacker News
TopNewBestAskShowJobs

m33k44

607 karma · joined December 19, 2018

submissionscomments
m33k44··on Ask HN: How do you manage the tab explosion in the browser?
I use Switch-Off addon both for Firefox* and Chrome. It has an option to limit how many tabs you can open.

* https://addons.mozilla.org/en-GB/firefox/addon/switch-off

https://chrome.google.com/webstore/detail/switch-off/ehjhebf...

m33k44··on Ask HN: Who is seeking a cofounder?
Profile: Polyglot engineer, with primary focus on C and C++. Location: UK, but open for remote collaboration. Contact: buk.mal@mail.uk
m33k44··on Startup idea checklist
Also there is Dr. Atul Gawande's "The Checklist Manifesto".
m33k44··on Ask HN: How do I make using a computer distraction free?
I have been using the switch_off[0] addon for Firefox and Chrome since last one year. It has worked very well for me in avoiding online distraction. It blocks specified websites at specified times of the day, and also prevents opening more tabs than specified. It is a paid addon tough.

[0] https://addons.mozilla.org/en-US/firefox/addon/switch-off

m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?
So something similar to what @rodeoclown described below?
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?

  > It sounds like the Animal table is going to be the join table between Pet and the different types of animal tables. Correct?
Yes, that is correct.
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?
What are the pros and cons of this approach?
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?
Just one 64 bit size field in a 1 billion row table will amount to about 8 GB data for that table.

Edit: Basically what I am looking for is a trade-off between space and performance.

m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?

  > By "Pet" class, do you mean a table for pet records?
Yes.

  > Having an AnimalRabbit table implies a many-to-many relationship between Animal and Rabbit. Are you storing different rabbit types as parent records?
The whole point on making an Animal table was so that it could be referenced by the Pet table, because Pets can be more than one type. If I include Dog and Cat directly in Pet table then there will be lots of fields in the Pet table empty; also tomorrow if I want to add Rabbit as a Pet then I need to modify the Pet table to include Rabbit fields with null values in the previous rows. Having a separate Animal table allows me to add new types of Pets without modifying the Pet table and also saves table space.
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?

  > What attributes do all pets share?
Pets have owner, feeding time, outdoor time etc.

  > What attributes are unique to dogs?
Type, Height, Medical record, Sex, Barking pitch etc.

  > What attributes are unique to cats?
Type, Colour, Weight, Medical record, Sex etc.
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?

  > I agree if you can use a recursive table
Could you please elaborate on that? Which table will have recursive relation in this case?
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?

  > Recursive relation within the same table. A single table can solve this problem.
How? Which table will recurse?
m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?
> Does this need to be tabular data?

No, not a requirement. But what will I lose if I choose graph DB over RDBMS?

m33k44··on Ask HN: How do I represent a hierarchy in RDBMS?

  > Are there any significant differences between AnimalCat and AnimalDog? Feels like there can just be an "animals" table with an enum "type" field
The AnimalCat and AnimalDog are just relationship tables. The alternative to not using separate relationship tables is, just as you said, to use an enum type field in the Animal table. I was actually trying to avoid using an extra field in the table to indicate type, hence my question on what are better approaches to avoid both table size increase and performance issues.
m33k44··on Trying to succeed as an entrepreneur for 10 years. Should I quit? Anyone else?
Look at the history of the makers of Candy Crusher game. You could just be on the verge of success.
m33k44··on Ask HN: What tools/methods do you use to focus your time well?
I use switch_off Firefox/Chrome addon (https://addons.mozilla.org/en-GB/firefox/addon/switch-off) to keep me focused. Other than that I just maintain a simple TODO text file in the home directory.
m33k44··on The Notion of “Trolling” in Ancient Sanskrit
Indian languages are heavily influenced by Samskrutam and have borrowed words from the language. So the word vitanDa in Kannada is borrowed from Samskrut language.
m33k44··on Basic Income as Common Dividends: Piloting a Transformative Policy
I use to be a proponent of UBI, but in recent months have changed my mind after moving to a shared accommodation(mostly students). In this house there are 4 students and 2 non-students. These two guys don't work, are living on government dole outs and the whole day and night play video games, and not only are they themselves not working, but they have started setting a wrong example for the students. And it is not that jobs are not available, it is just that because the government is paying unemployment benefits people don't care even if jobs are available. There should be no free money as I have started seeing negative side of this policy in recent months.

I think governments should provide free education and healthcare to everyone and peg the prices of housing to some standard price index. That's it. No blanket free money.

m33k44··on Fuchsia OS Introduction
Ask the Symbian guys and gals :)
m33k44··on Ask HN: What should be considered when starting a web development project?
> Security - as much as you can, use common sense and current best practices.

Please could you share any links to current best practices? In some of the previous comments OWASP was mentioned, apart from that are there any other resources to follow for web app security?

m33k44··on Ask HN: Is jQuery on its way out?
I recently made a decision on the following front-end stack:

- Bootstrap 3.x

- jQuery

- KnockoutJS

because of the following reasons:

- The devices that will be accessing the web app may have older browsers, both desktop and mobile.

- My users will be in geography where network connection is sometimes slow.

- These libraries have been in the wild for very long time and time tested with lot of support available on public forums.

- Very easy to get started.

- As I am not primarily a front-end web developer, I am not in a position to handle various quirks of different browsers; if libraries such as bootstrap, jquery and knockoutjs handle that for me for older devices and browsers then it is useful.

If I had an option to go for a more modern stack, then I would have gone with svelte.technology, unpolyjs and bootstrap.

m33k44··on Ask HN: What should be considered when starting a web development project?
Well, I am not a web developer; thought I have developed simple web apps for understanding the development process but never deployed anything in the wild. My experience is into embedded and desktop application development. I recently received a request from one of my clients to develop a small web app that has to be accessible from the client's multiple offices with 3K employees. The employees use varying devices and web browsers (e.g. IE8+, old Android and iOS phones etc). I am looking for information on what things I should look for, from deployment, security and maintanibility point of view, before, during and after deploying the software. The web app is a simple work log book where employees log in the tasks done everyday and supervisors audit the information entered.

I want this web app to be secure, scalable and maintainable. If the client in future wants someone else to take over the project then it has to be easy for them to do so.

m33k44··on Ask HN: FastMail vs. ProtonMail?
There is also tutanota.com based in Germany. There pricing is here: https://tutanota.com/pricing
m33k44··on Ask HN: How to decide on price for first freelance project?
If the scope of the project is huge then don't go for fixed-bid quote, go for a T&M quote. Also, when freelancing you need to consider other costs (e.g. insurance, medical, pension, electricity, computers, internet connection, furniture, taxes etc) that the employer will not be paying but you will have to pay. So factor that in to your quote. The London contract rates is somewhere around £65 to £200 per hour depending on the project and your skill-sets.
m33k44··on Ask HN: How to Get Good at Sales?
I am an software engineer and an introvert. Have been sitting at my desk coding all my career. Once I got a job at a technology company, but the office I was sitting in had very few engineers and most of it was filled with sales and marketing personnel. I was surrounded by all sales and marketing people. The sales and marketing department at that company ran a one month programme open for everyone at the company to sell company products on weekends at multiple brick and mortar retail stores prior to Christmas season. I thought, hell why not I should participate and give it a go; what could go wrong? So I enlisted in the programme. On the first day I was sent back home from the entrance of one of the retail stores because I was wearing jeans pant which was against the retail store's policy. So I went back home and dressed accordingly and returned back. For the next 4 weekends over the month I spent selling company products at 4 different retail stores directly to consumers. What I experienced was that people started coming to me with their requirements and asking what product they should buy! I am not even a native english speaker and I was selling in an english speaking country. I went on to win an award for selling most products in that programme in that year.

So what did an introvert, non-english speaker with no experience of selling do to sell successfully and what did I learn? Here is what I learned, and it is really very simple:

The first rule of selling is don't sell; rather learn, inform and help i.e. genuinely learn about the customer's requirements/problems, genuinely inform the customers about the solution you have or anyone else who could provide the solution and genuinely help the customer with the decision making process. That's it. And your customers then become your recommender and help you "sell" more!

m33k44··on Ask HN: How to speak like a leader, not like an engineer?
The way I do it is mention the options and my preferred option with the justification on why my preference is better. That shows that I have thought through the problem and possible solutions carefully.
m33k44··on People Who Eat the Same Meal Every Day
According to yog and aayurved, the recommendation is to limit(not avoid) fibre-based, protein-based and fat-based food. Too much fibre and protein is bad for the digestion system and too much fat is bad for the body. Two tablespoon of Ghee(i.e. pure butter) everyday is recommended and is enough for the body. Also, the recommendation is to wake up at 4:00 am, mediate and/or exercise, drink a glass of warm(not cold) water before lunch, have lunch before 7:00 am, stomach should be max 2/3 filled after lunch, eat fruits and dry fruits the rest of the day whenever you feel hungry, drink warm water whenever you feel thirsty, have lite dinner before 5:00 pm, and sleep at 8:00 pm before doing some meditation.

That is the recommendation for a calm, refreshing and healthy life.

m33k44··on Ask HN: Why Did Your Business Fail?
> My business failed because I’m unintelligent

If that is the case then every successful business person should be categorised as "unintelligent"! Most of the successful business people have failed in their first attempt.

> lack business acumen and do not have a good network.

This could be the real reason. And it can be built with little bit of effort.

m33k44··on Ask HN: Alternative HN-Like Communities?
Just few weeks ago I started a Slack workspace mvphacks.slack.com for all developers working on their MVPs, or developers who want to join with other developers to build their ideas together.

The aim is to allow developers to create their own channel for the project they are working on. The developers can then post about their project or idea under the "general" channel to invite others to their channel for participating in their project or idea.

Here is the invite: https://tinyurl.com/ybongxl2 in case you want to join.

m33k44··on Ask HN: Any free resource(s) for Maths terminologies and notations?
Thank you very much for the link!
← PreviousPage 5 of 6Next →