HNHacker News
TopNewBestAskShowJobs

jventura

1,604 karma · joined February 4, 2016

https://joaoventura.net/
submissionscomments
jventura··on Show HN: Rooster – Personal Web Server with Rust
Cool! But if you want to go still lower level, maybe you could implement the basics of HTTP by reading and writing to the socket.

In Python the basics are quite easy (I wrote something about it here: http://joaoventura.net/blog/2017/python-webserver/), maybe it Rust it is as well?

jventura··on Show HN: Mail-a-Day (a weekend project)
Just to have a clickable link: http://mailaday.com/
jventura··on Ask HN: Side projects that are making money, but you'd not talk about them?
My astrology charts app for android [1] brings me about 5€/month. I earned more by doing some consulting with the technology I use for this app (Pybridge [2]) than with the app itself.

My web app [3] earned only 50€ since 2016. My other projects (ex: mockrest.com [4]) don’t make me any money at all. I have to use other strategy.. :/

[1] https://play.google.com/store/apps/details?id=com.flatangle....

[2] https://github.com/joaoventura/pybridge

[3] http://elements.flatangle.com/

[4] http://mockrest.com/

jventura··on C Internals
I do agree with you on this! I tried to follow the tutorial, but it is not easy for me to decipher the syntax without checking line by line. Maybe I'll come back to this eventually, but would prefer Intel syntax for readability..
jventura··on Show HN: Python on iOS Native Apps
Tested right now: 8 seconds of a white screen, then the blue logo appears for 2 seconds, and finally, at second 10, mails start to appear..

That is why I always test my apps on older hardware.. That, and because i only have old devices.. :)

jventura··on Show HN: Python on iOS Native Apps
A simple strategy is to include only the pyc or pyo files inside a zip file, and it will continue to work as well..
jventura··on Show HN: Python on iOS Native Apps
The answer to that post is mine, and i confirm that there’s some delay on start but on a moto g 2014 that i have it is ~3 seconds which is not much. By comparison, Outlook takes more than 10 seconds to start on my iphone 5s..
jventura··on Show HN: Python on iOS Native Apps
Libpython.a (and the others) have ~50MB and the standard library zip is ~4MB. But note that libpython and the others are fat libraries which includes X86 code that is only relevant for the iOS emulator and could be stripped eventually on release.
jventura··on Show HN: Python on iOS Native Apps
As the sibling commenter said, that project and kivy are geared to write android and ios apps entirely in Python.

My approach is different. I have most of the business logic in Python (I share lots of code between a web app and an Android app I have) and write the UI logic in the platform’s native language. This means the apps are always using native UIs and use the platform toolchains, and I can use all tools available natively on the platform.

jventura··on Some Sessions from the Python Language Summit
I have an Android app on the Play Store which uses Python and can confirm that the startup time is slow because of the imports. I think one possible solution could be to invoke the start of the interpreter outside the UI thread, at least it could give the illusion of a faster app start. Unfortunatelly the app gives me ~5€/month so it is not profitable enough for me to care.

I opened source the idea at https://github.com/joaoventura/pybridge

The thing that makes this different from a pure android python project is that I only use Python as a kind of mobile RPC backend. The UI is completely native in Java/Kotlin.

As a side note, today I’ve open sourced the same technique, but for iOS (https://news.ycombinator.com/item?id=23335704). I’m able to share all the python code but adapt the UI using the native tools..

jventura··on Show HN: Python on iOS Native Apps
This project is a base for which to add a python interpreter to a swift iOS project. It allows us to call python functions and get the resulting string, and then use the result in swift code (to update native widgets, etc.)

As I'm a beginner in swift and iOS, I've documented all the process at https://github.com/joaoventura/pybridge-ios/blob/master/docs....

I hope this allows me to share all the Python code in my Android app (https://play.google.com/store/apps/details?id=com.flatangle....), which uses the same technique but for android (https://github.com/joaoventura/pybridge)

jventura··on Hacker Mods Old Calculator to Access the Internet, Casio Files DMCA Complaint
Guilty until proven innocent...
jventura··on SQLite 3.32
Right! But as I said, the low traffic volume doesn’t require more than this kind of architecture.

I do regular file backups and have a cron job restarting the web apps each 20 minutes, it’s enough for now. I would love to have a more solid architecture, but it matches the traffic volume and it’s good enough..

jventura··on SQLite 3.32
I’m not in my computer now but I’ll look for a link..
jventura··on Hacker Mods Old Calculator to Access the Internet, Casio Files DMCA Complaint
I,ve seen the video at the bottom and the guy uses at most the calculator plastic case to house a oled display and a ESP. How can Casio (or someone on their behalf) find any plausible argument to file any complaint at all?

I guess if people had to pay at least one dollar to file a complaint like this, you’d have less.

Also, why did github removed the repo before checking things out first?

jventura··on SQLite 3.32
If you have ssh access to your web host, you may be able to upgrade it yourself. I needed something more recent for django 2.2 and had to download the latest sqlite, compile it, put the lib in some folder and add the lib to .bashrc so that python3 could use it (ld_include_flags or something like that).

Look for it on google, it’s possible to do it..

jventura··on SQLite 3.32
Most of my web apps’ databases are an SQLite file. It’s more than enough for the ammount of traffic they serve and the db files are easy to set up and backup..
jventura··on How to Serve over 100K Web Pages a Day on a Slower Home Internet Connection
It's working now! But check the content-type for https://blog.notryan.com/. It's returning text/plain, and I see the html src in firefox instead of the rendered web page..
jventura··on How to Serve over 100K Web Pages a Day on a Slower Home Internet Connection
Just to let you know that the link to server.c (at least in the blog index) is not working..

Cool project by the way! I'm thinking doing the same with a Rpy..

jventura··on Show HN: Pantry – Free JSON Storage for Personal Projects
I've done something similar for some of my students to test restful apis at http://mockrest.com.

It is quite similar to this although you just write your own data on a textarea, and get/post/put/delete to modify it.. Then you can copy-paste the result json from the backend to a text file or something like that..

It dynamically finds your objects (even nested ones) and you can CRUD them..

jventura··on Ask HN: What can I build for you?
Looking for ideas for SaaS or to make some side money, but thanks!
jventura··on Ask HN: Optimal cloud service to run tiny website with back end Python + SQLite?
I still use Webfaction for my webapps although since they were bought by GoDaddy, costumers seem to start moving away from it.. But it is quite simple to deploy a Python webapp, they have one-click installers and you can ftp your source files like we all used to do..

Prices start from 10$/month.

jventura··on Kick the Shit Out of Procrastination
> but also recognise that your brain/body only has so much "fuel" each day ...

My experience is similar to yours, and I would also add that that "fuel" grows if you maintain the effort throughout the days/weeks. But some of the days you'll have more fuel, others less, just to the best you can (I struggle a lot to keep that balance, not easy at all..)

jventura··on Workstream: A fast virtual computer you can use for anything
Can't you use VirtualBox or something like that?
jventura··on Ask HN: Who Is Firing?

  Whether the ${COUNTRY} social model is sustainable is another question. 
  There are plenty of apparently reasonable ${PEOPLE} that argue it is not.
${COUNTRY} = "USA"

${PEOPLE} = "americans"

it seems to compile as well...

jventura··on New iPhone SE
No headphone jack and form factor > 4" it's a no-go for me..

I'm still on the 5S, my next one will be a SE 1 when my 5S blows up..

jventura··on Ask HN: What is your blog and why should I read it?
http://joaoventura.net/blog/

After 2012, I've been writing very infrequently about things mostly related to Python..

jventura··on Apple Store leaks 4.7-inch ‘iPhone SE’ name
I guess it will sell well although I still prefer my 5S's (or the current SE) size..
jventura··on OBS Studio: Open-source software for video recording and live streaming
I had to move my classes online, so I've been using OBS for recording videos (mainly me talking while I go over the slides ~ 15-20 minutes).

The only thing I would like to see fixed on macOS would be that my students could see the mouse pointer. Beside that, I think it works quite well.

jventura··on Anyone looking for a co-founder?
Check the expiration date of the certificate at https://docs.restfuldata.com/. I had to click a lot on Firefox just to let me see the docs..
← PreviousPage 7 of 19Next →