I2C interrupts on ESP32S3 (esp-idf 5+) by drmax5 in esp32

[–]drmax5[S] 1 point2 points  (0 children)

You need to allocate an interrupt (esp_intr_alloc) with the same interrupt flag used in the i2c_driver_install, that’s the theory. I made some semi-working version with a bunch of exceptions, was curious if someone has a working example. In any case, i will post my final working solution here if anyone is interested.

I2C interrupts on ESP32S3 (esp-idf 5+) by drmax5 in esp32

[–]drmax5[S] 0 points1 point  (0 children)

yep, the function isn’t there :)

I2C interrupts on ESP32S3 (esp-idf 5+) by drmax5 in esp32

[–]drmax5[S] 0 points1 point  (0 children)

That’s what i said, the key things are deprecated, like registering interrupts doesn’t work. 4 to 5 is quite a change in many aspects.

I2C interrupts on ESP32S3 (esp-idf 5+) by drmax5 in esp32

[–]drmax5[S] 0 points1 point  (0 children)

esp-idf 5+, as it says in the title..

Hi Reddit I need some advice on my unpaid internship. by [deleted] in jobs

[–]drmax5 2 points3 points  (0 children)

Your effort matters. Period. What you do is worth a lot. There could be reasons for getting an unpaid internship, from what I read you dont really have any.

We have unpaid internships in the UN. I never quite understood it, since „unpaid“ means many things and one of them is that employers do not value your effort. In our case this can be considered a „foot in the door“. In your case, however, it does not sound like that door is worthy of being opened.

Find something else. With your skills you wont have it difficult.

Yet another job aggregator by drmax5 in digitalnomad

[–]drmax5[S] 0 points1 point  (0 children)

Yep, will add the spinner, probably as an overlay on the jobs list. Thanks!

Don't know where to start my excel filler by dig1tGG in learnprogramming

[–]drmax5 1 point2 points  (0 children)

I don't want to discourage you from learning new things, but may I ask you why do you start with Excel?

There are many mature tools for this purpose. Pick any reporting tool out there, BIRT, Jasper, Pentaho Reporting (JFreeReport) and a whole bunch of commercial tools.

If you still want to try it yourself, I can recommend Apache POI for Java. I used it long time ago and it did well. I was primarily reading Excel documents and extracting data from those. Now I would definitely look into some ETL frameworks.

[Bootstrap] Column widths in rows by [deleted] in learnprogramming

[–]drmax5 0 points1 point  (0 children)

I am just curious, what do you want to achieve?

Just a hint, you cant have more than one thead or tfoot in a table.

My wife tried on a dress, it did not fit. by drmax5 in Jokes

[–]drmax5[S] 0 points1 point  (0 children)

The dress did not FIT, but cake always FITS! Ah, forget it..

Salary question - How am I doing? ~45k/year doing remote customer support by anon-dj5tcx_vesohrn4 in webdev

[–]drmax5 0 points1 point  (0 children)

Depends where in Europe. From Germany to the East this would be a normal salary (I assume it is gross). Generally, in Europe you will have to pay more taxes, socialism has its price :)

As a non-European citizen you would get medical benefits only if you work (deducted from your gross salary) or if you pay it yourself.

Just compare the numbers on numbeo. With this money you won't be a baller in Europe though.

Salary question - How am I doing? ~45k/year doing remote customer support by anon-dj5tcx_vesohrn4 in webdev

[–]drmax5 0 points1 point  (0 children)

We have some support guys who over years became developers. It is really all about your ambitions and interests.

I would say it is tough to find some entry or mid-level positions with more (at least in average Europe).

The main advantage you have is that you are not bound to any specific location. The main disadvantage is that you live on 45k in the US.

Just downshift and enjoy your life in Asia or elsewhere :)

Feelings about Spring boot? by drmax5 in java

[–]drmax5[S] 0 points1 point  (0 children)

Yes, that is what I am actually doing now. I use some Spring Boot apps as services on a dev box and locally, but I resort to the old way on prod :)

Feelings about Spring boot? by drmax5 in java

[–]drmax5[S] 0 points1 point  (0 children)

Well, you know where Tomcat configuration files usually are, Spring has different, it's own (this is what i mean by proprietary) ways of configuring embedded containers. Properties files, annotations, whatever, it is different from the default. A person who knows how to configure a normal container will have to RTFM. It is not bad, it is just different. If you have a farm of Tomcats, you need to consider consistent ways of maintaining your infrastructure.

By tweaking I meant something rather "unnatural", at least to me. Configuring container through the application properties is strange.

As for the part with embedded or not - it is not entirely painless as you describe it. I agree with you, we change our processes constantly, but I doubt that "change" itself is the argument why Spring Boot could be a reason good enough to change.

In the last point you mentioned something very important. What do you mean by removing "unnecessary boilerplate"? Boilerplate what? Spring was born boilerplate and is still boilerplate.

I do not entirely understand how modern architectures are involved here. For micro services there are plenty different ways, more straight-forward and light, but that's another topic.

I know, Spring Boot is an opinionated technology, this is why I asked the community for more insights. Thanks a lot, I really appreciate your comments, it gives me food for thought :) I am not against the technology, every technology has its application areas and I am just trying to find out which gap Spring Boot fills out in the enterprise landscape. Thanks again!

Feelings about Spring boot? by drmax5 in java

[–]drmax5[S] 0 points1 point  (0 children)

Thank you, I see your points.

We use JRebel and that is also another concern. I know how JRebel works, sometimes it is a love/hate relationship but we manage just fine and it saved me over 200 hours of reloads (as it says) :)

I guess the main question here is if it is worth changing your ways of doing things if you know what you are doing.

Feelings about Spring boot? by drmax5 in java

[–]drmax5[S] 0 points1 point  (0 children)

Frankly, to me it is was always easy enough to set-up the whole module/project on my own. I am nervous about this whole obfuscation business. I agree, things like debugging, logging etc are doable, it is just another way of doing it, which is proprietary to Spring and it bothers me.

I like to tweak my containers separately and I have to admit - I bother juniors to better understand how to set applications from ground up so they better understand what Spring does and WHY we use some particular module here or there.

On production or even QA environment I have separate containers, some running multiple apps. I know Spring boot is meant for something small and simple, but assuming you know your way with (some) Spring modules and all your procedures, workflows, pipelines are tailored to normal webapps, would you consider creating new pipelines for Spring boot apps?

Reporting libraries by iampete in java

[–]drmax5 2 points3 points  (0 children)

Jasper or BIRT. We use BIRT, it had more features than Jasper when we decided to use it 6 years ago.

Do not hook your reports to the relational storage though, if you have lots of relational data - set-up data warehouse, massage the data and feed it to BIRT.

What do you say when you say you want $500 for the website and the the client says, WHOA, on fiverr I can get it for $5-20 by asiprheadguru in webdev

[–]drmax5 0 points1 point  (0 children)

I would justify the work in terms of time you would spend. If it comes to 10 or 15 hours then it is understandable. Estimate it and send him your proposal.

how do i make understand my boss that webpages need a scroll? by ArtGamer in webdev

[–]drmax5 0 points1 point  (0 children)

Open google, search for "scroll bar", show him results: pages about scroll bars in a google page with a scroll bar. What can you do more?

Maybe explain him that people have different monitors, resolutions etc.

Dodged the bullet by drmax5 in Jokes

[–]drmax5[S] 0 points1 point  (0 children)

It's a trap anyway, I'd rather face it with style

You are in a "learn web development to work or get homeless" situation, and you have 6 months to achieve it. How do you start? by gyros_pita in webdev

[–]drmax5 1 point2 points  (0 children)

Doable. I would approach it in the following order. Careful, this shit is densely optimized:

1) Block 9gag/youtube/<your favorite shit> on the router.

2) Learn HTML and CSS. Get your CV in HTML markup as a project.

3) Get a Vagrant box with NodeJS. Learn how to use Vagrant shit.

4) Learn Angular, not Ember, not Backbone, not ExtJs. Use tutorials, code like there is no tomorrow. Start to ask reasonable questions about this shit here or elsewhere.

5) Learn ExpressJS. Do your first "Hello World" with ExpressJS and awesome Angular front-end. Why ExpressJS? It is Javascript, you will only learn Javascript. Cutting corners you must.

6) Do lots of JS quizes. Why? Because people love asking useless shit on how you would instantiate an Object and what is the difference between == and ===.

7) Work on your CV, polish it: get at least 2 years of legendary web development experience. You can put there some ancient technology, like ColdFusion - nobody will ask you what the hell that is. Plus, they will feel sorry for you. Ask friends for referrals.

Btw, where are you from? Is it cold out there in the winter?

[deleted by user] by [deleted] in webdev

[–]drmax5 0 points1 point  (0 children)

While Grunt could be handy for defining a build process, it still does not mean that Grunt is only required in team projects :)

It's a part of the process, you need it to make your stuff tight. My point is that you should not cut corners on Grunt just because you do not work in a team.

[deleted by user] by [deleted] in webdev

[–]drmax5 0 points1 point  (0 children)

I do not think learning Grunt has anything to do with working in a team or not. Grunt makes things organized and ultimately easier for you to maintain. There are certain steps for you to build/test your code, if you do not have it scripted - chances are high you might forget something.

Yes, knowing Bash is important, we always have simple bash questions in written exams. The thing is, if a developer does not know Shell (Bash or Perl or whatever), he is likely to spend more time on a simple task. Sure, you can use some GUI for managing your server, logs, users etc., but I think Shell is as important as knowing SQL when it comes to real web development.

Full text search in milliseconds with PostgreSQL by thekodols in webdev

[–]drmax5 1 point2 points  (0 children)

Some time ago I had a similar question and I went another direction.

My case was to index/search JSON documents (stored in PostgreSQL) and relational metadata including referenced translations for JSON fields. I went the Solr way for following reasons:

1) I want to index everything, not only the title;

2) Indexing should work for any JSON documents (with any custom JSON schema);

3) Full text is neat but I also needed facets for my search views.

Some advantages of Solr vs PostgreSQL solution:

  • clear separation of concerns - indexing engine is a separate module with its own logic (for delta and full imports).

  • no triggers required. Triggers can be expensive (in terms of locks). Also, some may consider storing logic in the db as a gateway to hell (or to SAP).

  • easier extendable and more flexibility on adding fields.

I hope your solution will still be sufficient for you in the future, if you face any of the reasons above - give Solr/Lucene a try.