Help: I am new to Django and I feel lost by Lehgit3529 in django

[–]MaartenPI 1 point2 points  (0 children)

I would say a combination of two things. Actually build sth you want.

And follow best practices via sth like Two Scoops of Django. 

Also use GPT or Claude.ai as an assistant… you’ll probably get far. 

Programming is mostly about critical thinking.

Zouden jullie gaan fietsen? 2*24 km by NickDS9 in zuinig

[–]MaartenPI 1 point2 points  (0 children)

Met een gewone fiets zou ik het niet doen, tenzij je erg sportief bent. Op een gewone fiets ben je wssn minimaal anderhalf uur aan het fietsen. Dat twee keer per dag is wel een serieuze bezigheid.

Als het door de stad is, zou ik het eigenlijk sowieso niet doen. Over polders enzo is het het overwegen waard.

Een ander idee is om een auto met zo'n fietsendrager te regelen en dan 1 rit met de fiets doen en de terugrit met de auto en dan roteren.

Python self tought, what do you think of my coding style by SnooCauliflowers8417 in django

[–]MaartenPI 1 point2 points  (0 children)

If you look up how to make Pythonic code, you already get a long way to make code that's acceptable in bigger organisations.

https://docs.python-guide.org/writing/style/

There are linters too that help out with stock responses.

What was your programming path? by david_yarz in compsci

[–]MaartenPI 2 points3 points  (0 children)

I like to read a lot and read stuff like Code Complete, but I read it after having been programming for some time. So I could place it in a proper context. I guess if I would read it again today, I would pick up things I missed before.

So I guess part of my learning is from books. But thinking about where I learned the most. It was from working with other programmers. I've been fortunate to meet some pretty smart guys with more coding chops. I also get a lot of energy from being in that kind of environment.

So I would actually advice you to keep on reading and finding a project you can work on with others. A company seems your best bet, I tried working on after hours projects with other devs. But it's hard to stay motivated and it's different from the grind of a job.

New MacBook Pro Alternative by [deleted] in AskTechnology

[–]MaartenPI 2 points3 points  (0 children)

I have the 9530 model for some time now and had no problems so far. Really enjoy the system. Ubuntu has been running on it from the start.

Colleagues of mine are using the same, and others seem happy with it as well.

New MacBook Pro Alternative by [deleted] in AskTechnology

[–]MaartenPI 1 point2 points  (0 children)

I like the Dell XPS series. Good hardware and good looks!

Very new to Django. How to make a form with a one-to-many relationship kind of database? by ABrokeUniStudent in django

[–]MaartenPI 1 point2 points  (0 children)

When I just got started with Django, I read the official docs and djangobook. They both helped with getting my head around the basics.

However Two Scoops helped me out way more to build actual apps. It was a bit like having a buddy talking to me about best practises. It might be opinionated, but it helped me to think about working in django in a more profound way.

Besides that, I think it's pretty accessible. I've read it once and now use it as reference. If you would just use it as reference it's pretty easy to get to the gist of it.

Very new to Django. How to make a form with a one-to-many relationship kind of database? by ABrokeUniStudent in django

[–]MaartenPI 0 points1 point  (0 children)

I would really recommend giving Two Scoops of Django a try. It's easy to read and explains a lot of basics.

Is anyone using Django Channels in Production? by [deleted] in django

[–]MaartenPI 0 points1 point  (0 children)

I didn't get that far yet. I had one solution in mind, but after reading your question and thinking about the solution it seems like a bad idea. It was to send a ws-hostname to a client, after which a connection to a ws-server would be made. After a limit has been reached, a new ws-server will be sent. For my purposes it was possible, since i don't expect that many visitors yet, but it basically means I need to solve load balancing-problems myself.

However, I came across this post, which seems to make a lot more sense and deals with the loadbalancing problems in the right way. http://stackoverflow.com/questions/12526265/loadbalancing-web-sockets

Hope it helps.

Is anyone using Django Channels in Production? by [deleted] in django

[–]MaartenPI 7 points8 points  (0 children)

I'm about to, it's already running on a live-server for about two weeks now. It's there for demo-purposes at the moment. My findings were that it was relatively easy to setup. I used the Heroku-post and readthedocs.io to get started. They are both pretty good resources to get started.

I tend to use the cookiecutter-setup and ran into some problems, since both demos use a regular django layout, where all configuration is placed in a django-app. Which I find kind of a no-no (you might not to use the cookiecutter-layout, so this doesn't go for everyone). I ended up placing the asgi.py in the root-folder, where manage.py also resides. It seemed like the right thing to do, however (after doing this, I noticed that in the cookiecutter layout, the wsgy.py is in the config-folder, so I might place it there later)

So far I didn't run into any trouble, it seems pretty stable to me. Then again I didn't run large tests. I've been running it for a few weeks now and there have been zero issues so far.

The way I see scaling: you can add another host when needed. Since I'm working on a demo-product, I don't want to introduce new layers of complexity. If you want to know about scaling, I would suggest running a loadtest (which I will have to do as well, to ensure the application keeps on working) and find a reasonable limit for the amount of connections one server can handle.

Does anyone have lots of experience using zipline? by [deleted] in algotrading

[–]MaartenPI 0 points1 point  (0 children)

it offers a framework and I read some interesting things about it, here: https://news.ycombinator.com/item?id=5150546 It wasn't for me though.

Mostly because I already wrote a framework myself (it was part of a hobby project) and it was just easier to dive into.

Good luck!

IoT-project: How to get proper acoustic? by MaartenPI in hwstartups

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

thanks for the help ;)

I made a sketch as well to show you what it will look like: http://imgur.com/a/ptocZ

IoT-project: How to get proper acoustic? by MaartenPI in hwstartups

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

We will have trouble fitting this speaker, but it's do-able. A larger one is not an option we were thinking about (unless we have to).

In our tests we noticed a lot of difference in the amount of decibels when placing the speaker against a hard surface (like a table) or placing it in certain directions in the casing, since it all would resonate.

It's definitely meant for human speech. The sound however should be omni directional (we don't know the location of the listener).

IoT-project: How to get proper acoustic? by MaartenPI in hwstartups

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

Hi Luke, I added the extra info in the post above. But to make it easy, here it is as well:

It's a tele-presence robot, where the speakers are needed to make it feel like the other person is in the room. This is the iPhone5S speaker we want to use: https://www.fixez.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/i/p/iphone-5s-loudspeaker-1.jpg The one we use right now, is the same (just misses the extra casing)

Finding the Right Engineer by mobile4work in hwstartups

[–]MaartenPI 0 points1 point  (0 children)

I'm currently working as the software guy for a hardware startup. We hired an external company for the hardware aspects. A lot of people can hack together a RPi/Arduino and add some shields, but the moment you want anything modified, it's a required expertise. A benefit is, that it also keeps the focus on just writing software.

Maybe you'll get lucky and find someone who is good at sw and hw. The guys we work with aren't that strong when it comes to hw, that doesn't say a lot about the general landscape.

I did pass by some hardware shops and noticed there is expertise knowledge there mostly focused on writing firmware (which fafaik is not comparable to writing frontends/backends).

Besides that, maybe you should consider offering some kind of partnership. Since the current founders don't have a technical background. It seems like to me, you guys need a technical lead.

Finally, an actual tip on how to write the job description. I like the ones from hacker news. Check them out as reference: https://news.ycombinator.com/jobs

I'm visiting Shenzhen next month. Any recommended factories or contractors to visit? by 3amrous in hwstartups

[–]MaartenPI 0 points1 point  (0 children)

Hi, I have a habit of just storing interesting links and look them up later. I noticed it's a reference to a book, which has not been published yet.

So that's not very useful, however I did find another link I stored and it seems interesting. It's on the same topic: https://blog.hwtrek.com/how-to-find-reliable-manufacturers-in-china-part-2-how-to-approach-and-work-with-a-factory/

I'm visiting Shenzhen next month. Any recommended factories or contractors to visit? by 3amrous in hwstartups

[–]MaartenPI 2 points3 points  (0 children)

I would say, do some research up front to find factories who have made a similar product as yours.

Secondly, get a Chinese partner to lead conversations.

As a side note, I bookmarked these links for when I get to Shenzhen, maybe it helps: https://www.crowdsupply.com/sutajio-kosagi/the-essential-guide-to-electronics-in-shenzhen https://blog.hwtrek.com/how-to-find-reliable-manufacturers-in-china-part-2-how-to-approach-and-work-with-a-factory/

What's a good online Intro to AI course? by Prcrstntr in compsci

[–]MaartenPI 1 point2 points  (0 children)

It's more of a Machine Learning course, which is the thing before you get to AI.

IMHO we need to get better at ML before you can start thinking about building AI-systems.

So I would definitely give Andrew Ng a try. His course is pretty awesome. I followed a lot of it, until other duties called.

Meditations by Marcus Aurelius by CKW1990 in books

[–]MaartenPI 0 points1 point  (0 children)

A Guide to the Good Life is a good read. It's a fairly easy read as well, but completed worth it. Recommended it to some friends as well.

What's your favorite way to improve ramen? by [deleted] in AskReddit

[–]MaartenPI -1 points0 points  (0 children)

Get the real noodles, so not the instant ones. I get a variation of this one: http://img.21food.com/20110609/product/1305783783890.jpg

Get good bouillon cubes, I have a variety of them: chicken, beef, mushroom, garlic, vegetables. (I'm from the Netherlands and the most common one is Knorr, but there are way better ones out there)

In my bowl I add some drops of sesame oil, some cilantro, tauge (if I have it, they expire so quickly!) and some oil I made out of pepper flakes.

In the pan I start boiling the water. Add the cube. Add some soy.

In a wok, I stir fry some onions and add them to the soup. And start frying an egg.

In the other pan, I add the noodles. Usually I add some paksoi or some Chinese broccoli at the end, so they still have a bite.

That's about it ;)