My personal laptop, a 4 year old Razer blade with 16 Gb of RAM, starts FLYING as soon as I open Android Studio on one of

Author : 2sofia
Publish Date : 2021-01-05 08:45:35


Have you ever sat in traffic wondering how much time you could have saved if you weren’t stuck in gridlock? What about if you had taken the left turn at the junction instead of continuing on the highway only for a never-ending queue of vehicles to greet you?

So I started looking into alternatives. How can I work on my Android projects without my laptop turning into a burning furnace? The answer is of course running the expensive stuff in the cloud.

Without the constraints of a beefy hardware, I can choose a development machine that is portable, lightweight, and much cheaper! A good choice in my opinion is a decent Chromebook, a MacBook Air, or a Surface Go. I even considered an iPad as an alternative, it works, but definitely not as comfortable as a real laptop. My personal favorite so far is the Pixelbook Go, great keyboard and super lightweight, been really enjoying coding from it.

The beauty of this approach is that even with a slow connection, it renders crisp, pixel-perfect fonts and UI, because it understands the underlying software, so it can render fonts in vector format. Input is also very responsive, because the protocol is specialized, and therefore optimized. This is the killer advantage over more generic remote desktop solutions like VNC, which stream pixels directly. Remote desktops solutions usually render blurry fonts and feel unresponsive over slow connections.

When I want to work on my projects, I just start my EC2 instance, run Projector on it, then open a Chrome tab and I’m ready to code. No more crazy fans, no more overheating!

http://www.ectp.org/kzz/video-ajaccio-v-pau-v-fr-fr-1mcx-5.php

http://team.vidrio.org/xpy/video-Balzan-St.-Lucia-FC-v-en-gb-ele-.php

http://main.ruicasa.com/xrk/videos-chambly-oise-v-le-havre-v-fr-fr-1hho-19.php

http://molos.bodasturias.com/qxz/videos-marbella-v-real-valladolid-v-es-es-1alb-14.php

http://www.ectp.org/kzz/video-Valenciennes-Nancy-v-en-gb-1qkh-.php

http://startup.munich.es/dyn/Video-Tottenham-Brentford-v-en-gb-yyk-.php

http://main.ruicasa.com/xrk/Video-Guingamp-Amiens-v-en-gb-1tcx-.php

http://team.vidrio.org/xpy/video-TOP-Oss-Jong-Ajax-v-en-gb-nno-.php

http://startup.munich.es/dyn/Video-Tottenham-Brentford-v-en-gb-xad30122020-.php

http://team.vidrio.org/xpy/Video-TOP-Oss-Jong-Ajax-v-en-gb-rjz-.php

http://team.vidrio.org/xpy/Video-TOP-Oss-Jong-Ajax-v-en-gb-lwt30122020-.php

http://startup.munich.es/dyn/Video-Tottenham-Brentford-v-en-gb-viz-.php

http://www.ectp.org/kzz/Video-Valenciennes-Nancy-v-en-gb-1nmk30122020-2.php

http://main.ruicasa.com/xrk/video-Guingamp-Amiens-v-en-gb-1msv-18.php

http://molos.bodasturias.com/qxz/video-marbella-v-real-valladolid-v-es-es-1kor-8.php

http://main.ruicasa.com/xrk/video-Guingamp-Amiens-v-en-gb-1bpe-10.php

http://startup.munich.es/dyn/video-marbella-v-real-valladolid-v-es-es-1drh-24.php

http://www.ectp.org/kzz/videos-Valenciennes-Nancy-v-en-gb-1exx30122020-13.php

http://molos.bodasturias.com/qxz/Video-marbella-v-real-valladolid-v-es-es-1qey-23.php

http://www.ectp.org/kzz/Video-Sochaux-Dunkerque-v-en-gb-1yzi30122020-.php

ave been hobbled by one partner’s inability to express what’s going on for them. To be fair, some people really are the “strong, silent” types — it’s hard, if not excruciating, for them to express what they are feeling. But you need to try. If you’re struggling, your partner deserves to know about it, so they can (1) understand your behaviour and (2) help and support you.

You still need a beefy machine either in the cloud on on your local network to do the actual heavy lifting of running the IDE and Gradle builds. Luckily cloud VMs are now a commodity, and you can get one up and running in a matter of minutes via services like Amazon AWS, Google Cloud or Microsoft Azure. I went with AWS, chose an EC2 instance with 8 cores, 32Gb of RAM and 100 Gb of storage. Running the instance costs me around $0.40 / hour, not cheap if you’re running it 24/7, but since I use it only for a few hours a week for my personal projects, it ends up being quite affordable. Even if I used it for 8 hours a day, 5 days a week, it would cost me around $64 / month. Not bad considering I don’t need an expensive laptop anymore.

Traffic congestion costs people valuable time, fuel, and frustration every single day. At the same time, large amounts of congestion impact governments who need to keep traffic flowing for the movement of goods, reducing pollution in certain areas, and for the safety of those on the road. Congestion is a global problem that impacts all levels of society. The most common causes of traffic congestion are known by any driver who has come across a traffic jam on their journey. Road incidents such as accidents and roadworks often cause unexpected delays. Bad weather conditions also result in lower-traffic flow speeds, while poor traffic signal timing limits capacity on smaller inner roads. However, the largest increase in global traffic congestion is due to one main cause: there are too many vehicles for a road network with a limited capacity.

Turns out with a simple ssh tunnel (one simple command line instruction) you can “link” adb on your local machine and on the remote server, so it looks like your device is directly connected to the remote server, and appears in the remote Android Studio like usual.

The idea behind Projector is simple but rather brilliant. It intercepts drawing commands from the IDE (or any Swing application) with a custom drawing engine (AWT implementation) that instead of rendering things on screen, records each command, serializes them and sends them to a web client. The web client interprets those drawing commands and renders them in a web page. The web client records keyboard and mouse input, and sends it back to the IDE via AWT.

Pressing “run” in my browser triggers a build on my remote server, which then streams the APK via ssh to my laptop and then via WiFi to my device. What a time to be alive.

Traffic prediction plays an important role in forecasting traffic, ultimately helping to optimize route planning and accurate estimated times of arrival (ETAs). Access to real-time traffic information reduces travel times while improving safety and fuel or energy efficiency.

The only drawback from this approach is that some IDE keyboard shortcuts conflict with the browser’s own shortcuts. For instance, cmd w closes the browser tab instead of one of the tabs in the IDE. There is a work around for that though, by adding the page as a desktop shortcut, which opens any website in app mode. With that, everything has been working really well for me, including all my shortcuts. When putting Chrome in full screen, it pretty much feels like the real thing.

Pressing “run” in my browser triggers a build on my remote server, which then streams the APK via ssh to my laptop and then via WiFi to my device. What a time to be alive.

After trying different approaches like Mirakle, with decent success, my good friend Ty Smith told me about an incubator project by JetBrains called Projector. In essence, it allows you to access any JetBrains IDE through your browser with a clever trick. I tried it out, and was blown away. With this approach, you can seamlessly code from any device that can run a browser. In fact, here’s Android Studio “running” on my phone, because why not.



Catagory :general