Author: plusz
-
Don’t trust AI when coding!
Coding is evolving quickly. Tasks that can be described are now easily converted into code by LLM models. But is it safe to trust external tools that might lack awareness of syntax, best practices, and the pros & cons of different solutions? Key Advice:“Always test, write comprehensive unit tests, find errors, and suggest improvements.” Let’s…
-
How to read API and pass data to Chart.js
Reading data from Json API, processing it and displaying on the page is one of the most popular solutions on the web.Can we do this with pure Typescript and frontend only? Let’s ask AI…. Then we need to compile ts into javascript, create js code snippet and make sure our && is not replaced with…
-
Too lazy to solve labyrinths
One of my colleagues created script generating labyrinths. An idea was to proactice js and canvas and to generate some fun for his kids.But what if some kids are bored and don’t like labyrinths? I created simple solution (pure html/js) which is able to find correct way in that labyrinth. It is iterative, brute force…
-
Bluetooth: not available – Macbook OX Sierra – solved
Working solution. Fast and easy. “Bluetooth not available” may happen after upgrade or when one of devices fails. I was able to solve issue on on El Capitan and also on latest Sierra. It requires quick NVRAM reset. No settings are deleted. In my case, one, hanging bluetooth device was removed from config. 1. Shutdown…
-
New version of Pie Chart 3D 2.0 has arrived!
After several months I was finally able to finish new version of Pie Chart 3D application. In version 2.0 I added all features requested by users: – you can save images to camera roll – most required feature, – you can define colors using RGB and HSV, – chart, labels, title can be moved on…
-
Pie Chart 3D Creator for iPhone
New version was published in July 2016.Check it out in AppStore. You can buy library source code! Details here: New version supports all features of version 1.0 and:– you can save images to camera roll – most required feature,– you can define colors using RGB and HSV,– chart, labels, title can be moved on the…
-
Wykres Pie Chart 3D na iPhone – Objective-C – Xcode
Demo of Objective-C class for drawing 3D Pie Charts.
-
How to sort NSArray of custom objects by multiple properties – case insensitive
Although sorting in XCode may look as something difficult, there are some quick solutions which allow us to sort array of object in less than 3 lines: Let’s imagine that we have an array of objects. Each object has two properties: name and code. We want to sort our array by first criteria and then…
-
Pie Chart 3d version 2.0 is coming ….
After several weeks of hard work, new version of Pie Chart 3d library and new App is coming. New features: you can save images to camera roll, you can define colours using RGB palette (HSV is still handled), chart, labels, title can be moved on the screen with one tap, you can change title font…
-
How to force an app to launch in landscape mode
To force landscape mode, we need to set the appropriate value for the shouldAutorotateToInterfaceOrientation method in the controller that the operation applies to: If we need to ensure that the Default.png screen displays in landscape orientation at application startup, considering both left and right variants, we need to add a parameter to the Info.plist file:…