How to find motivation/energy to do a long-term creative project when having a full time jobs + other responsibilities?
Wake up at 0430, exercise, take a shower and then work till you need to get ready for your full time job. If possible also dedicate half of your lunch hour to your project as well, together with half a weekend day. It's quiet so early in the morning, so your productivity will skyrocket. I've coded my Paras this way while working a full time, heavy blue-collar job.
Ask HN: What problem are you close to solving and how can we help?
251–260 of 486 posts
Re: Ask HN: What problem are you close to solving and how can we help?
#252I’m working on a MEMS problem. I need to be able to 3D print micron (or even sub micron) scale features for a very high aspect ratio MEMS which uses electromagnets to actuate. Only problem is the leading candidate technology EFAB (electrochemical fabrication) only works with conductive materials. Does anyone know of a technology which provides similar abilities to EFAB but can also print features with non conductive…
Re: Ask HN: What problem are you close to solving and how can we help?
#253The system is a bunch of batch jobs that are scheduled to run at different intervals. These jobs can be modelled as an acyclic directed graph of steps. They basically download files from vendors and map the rows inside them into a generic format (for generating reports). There are a lot of vendors and each vendor can have a different file format containing different fields -- hence requiring custom business logic to populate (map) the corresponding generic file (like aggregating fields, fetching values from DB, etc.). Also these vendors' files sometimes contain errors, or are dropped late for download, etc. -- failures can happen and these failed instances of jobs should be able to rerun.
Existing system is built using Spring Batch and Spring Integration. The problems with the existing system are:
1. there are more than 200 jobs and most of them have their own custom logic during mapping -- cannot be generified
2. lot of manual work needed to onboard new vendors
3. jobs are synchronous and run only on one node, typically for lots of hours
4. rerunning jobs is a nightmare
Dream state for this system:
1. Dynamically add jobs to the runtime using generic components that can be reused -- maybe through an API / UI
2. Preferably, multiple records from a single file be processed across distributed nodes to generate a single output generic file
3. Rerunning should be easier
I am a noob to CS. I did a good bit of research for the past month. Found a few data-science tools in Python -- which is a no-no for a production system. Also, I know that the steps cannot be made generic after some extent since custom mapping logic is required for almost every vendor. But asking to see what is possible. Any help to point to prospective tools and technologies to solve the above will be much appreciated.
Thanks
Re: Ask HN: What problem are you close to solving and how can we help?
#254My problem is that it doesn't matter how I design the thing, either the screws offer too little precision so I can't help but to crush the tip into the sample every time, or too little travel distance so I can't help but crush the tip into the sample when adjusting the coarser screws near the tip. This is the kind of thing that looks like a non-problem on the web, because everybody just ignores this step.
Re: Ask HN: What problem are you close to solving and how can we help?
#255We are having atrocious READ/WRITE latency with our PG database (api layer is django rest framework). The table that is the issue consists of multiple JSON BLOB fields, with quite a bit of data— I am convinced these need to be abstracted to their own relational tables. Is this a sound solution? I believe it is the deserialization in these fields of large nested JSON BLOBS that is causing latency. Note: this database…
- Change the field type from JSON to JSONB (better storage and the rest) https://www.postgresql.org/docs/13/datatype-json.html
-Learn the json in-build functions and see if one of them can replace one you made ad-hoc
- Seriously, replace json with normal tables for the most common stuff. That alone will speed up things massively. Maybe keep the old json around in case, but remove when it become old(?)
- Use views. Views allow to abstract over your databaee and allow to change internals
- If a big things is searching and that searching is nkind of complex/flexible, add FTS with proper indexing to your json then use it as first filter layer:
SELECT .. FROM table WHERE id IN (SELECT .. FROM search_table WHERE FTS_query) AND ...other filters
This speeeeeedupppp beautifully! (I get sub-second queries!)- If your query do heavy calculations and your query planner show it, consider move them into a trigger and write the solved result into a table, and query that table instead. I need to loans calculations that requiere sub-second answers and this is how I solve it.
And for your query planner investigation, this handy tool is great:
Re: Ask HN: What problem are you close to solving and how can we help?
#256Need help to decide the tools to be used for the below problem: The system is a bunch of batch jobs that are scheduled to run at different intervals. These jobs can be modelled as an acyclic directed graph of steps. They basically download files from vendors and map the rows inside them into a generic format (for generating reports). There are a lot of vendors and each vendor can have a different file format containi…
Re: Ask HN: What problem are you close to solving and how can we help?
#257Need help to decide the tools to be used for the below problem: The system is a bunch of batch jobs that are scheduled to run at different intervals. These jobs can be modelled as an acyclic directed graph of steps. They basically download files from vendors and map the rows inside them into a generic format (for generating reports). There are a lot of vendors and each vendor can have a different file format containi…
Use Airflow maybe?
Re: Ask HN: What problem are you close to solving and how can we help?
#258We are experiencing very high CPU load caused by tinc [0], which we use to ensure all communication between cloud VMs is encrypted. This is primarily affecting the highest traffic VMs, including the one hosting the master DB. I am starting to consider alternative tools such us wireguard to reduce load, but I am concerned of adding too much complexity. Tinc's mesh network makes setup and maintenance easy. The wireguar…
Have you noticed whether it is worse for lots of small requests vs large data transfers?
I use a very similar setup, but haven't seen tinc CPU usage matter yet, though for very low traffic.
Re: Ask HN: What problem are you close to solving and how can we help?
#259Yeah, this week I've restarted my scanning tunnel microscope that I'm failing to make work for years... The current one is a standard pair of long metal bars with the piezoelectric component on one end, with 2 screws, and a 3rd screw on the other end. My problem is that it doesn't matter how I design the thing, either the screws offer too little precision so I can't help but to crush the tip into the sample every tim…
Perhaps you could somehow attach the piezoelectric component or bars to a micrometer [1] which is designed for accurate and repeatable measurement?
Re: Ask HN: What problem are you close to solving and how can we help?
#260I discuss some intellectual problems and solutions.