A.I, Data and Software Engineering

Categoryfront-end

front-end development

Dumping Emails using JavaMail and jsoup

email icon

This post demonstrates the ETL process by scraping emails as text files for later processing, such as NPL or other ML models. We use JavaMail API for getting emails and Jsoup to get texts from email body if it is in HTML format. FileUtils This helper class contains a helper method that saves a string to file. 1234567891011121314 public class FileUtils { public static void saveToFile(String file...

A really Cool data visualization: 3d globe in 2d space

3d-globe-animation

While generating data in 3d space for manifold learning, I went across a problem of distributing points evenly on a sphere. It is a non-trivial problem but found a good enough solution for such placement. Interestingly, it ends up with a really cool animation effect when I decided to implement it on a mobile app. Figure 1: First animation effect: Rotation The algorithm There are two qualitatively...

Game Frame rate and character animations (part 2)

In part 1, we covered the principle of game frame rate and a useful game programming pattern for performance. This part shows the detailed implementation of a game scene with hundreds of moving characters using Android Studio and Kotlin. Image asset This game uses a free image from wild-refuge.net. Xmas girl 3 (URL) You can download any similar image (4 x 4 frames) and place it in the...

Game frame rate & Character animations (part 1)

animation-girl-walk

A simple game does not always come with simple implementation w.r.t character animations. This articles will introduce a practical design pattern in game development to deal with this. How many animations in this game scene Let have a look at the famous game scene of flappy bird and try to identify how many animations. Fig 1. Flappy bird Visually, you may say there are two animations: the pipes...

Fun coding challenge: print the American flag

printer

Printing is an important part when programming. Printing the US flag to the system console was a small part of “the shape game” for kids, in which the players will select the correct name for a given shape. The flag of the united states Basic Requirements: You are required to print the American flag to the console using just “*” and “=”. The number of stars...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Pin It on Pinterest