2024-08-29
In the world of web development, color plays a pivotal role in creating visually appealing and engaging user interfaces. CSS offers various ways to define colors, including RGB (Red, Green, Blue) and hex codes. While both formats serve the same purpose, hex codes are often preferred for their brevity and ease of use. If you're working with CSS properties in JavaScript and encounter RGB values, you might want to convert them to hex for better code organization and readability. Further
2022-08-19
In our wider effort to expand our presence on the web we announce an initiative to exchange blog posts with other bloggers. We expect bloggers who will see this anouncement to write us and agree on writing a post on each side. Further we will cover what we expect you to write about our projects so you can get an idea what you can expect in return from us. Basicly cover all our projects and describe them in a practical way and include links as they are presented here: Further
2022-08-05
We will show you how to implement scrolling parallax on multiple sections using JavaScript. This will be an example where background image used for parallax is square and is set to cover whole section. It is not a pure CSS parallax solution and sets background image position through JavaScript. First of all we will set background image through CSS: Further
2022-07-20
In this post we will show you how to train supervised model based on TensorFlow.js to predict stock prices. First of all our backend fetches price rates of certain stock from Tiingo API. We cleanup data by adding missing weekends running a cycle through all the days since starting date and adding friday rates to saturdays and sundays. We then save clean data in our database. Further
2022-07-14
In this post we will show you how to train supervised model based on TensorFlow.js to play classic snake arcade. It involves a model with eight inputs - four for the neighbours of snake head, two for snake head corrdinates on a board and two for coordinates for food piece. There are four outputs - one for each direction snake might turn on the next step of the game. Therefore activation of the last layer of the model is softmax and loss function is categoricalCrossentropy. There is a lengthy function in the code that defines the logic of simulating the game to be able to train the model. Further
2022-07-12
To implement authentication on Laravel through Azure Active Directory is pretty straightforward. Its a multi-step process and involves configuring an Application on Azure Portal. So lets start with configuration. In Azure portal click Manage Azure Active Directory and then App Registrations. Click New Registration and fill in App Name, select the scope of accounts that will be able to authenticate and setup Web Redirect URL. Redirect URL is your endpoint where all authentication logic with passed OAuth state will happen. Further