openstatic.org

openstatic.org

White House proves just how uninformed they are

Wednesday 28th of February 2024 11:30:27 AM

So I'm definitely a left leaning individual. But the stupidity of the democratic party never ceases to amaze me. Rather then putting money into CS education or a future with better programmers, lets ditch one of the core languages that almost everything runs on. That will certainly solve memory errors.

White House urges developers to dump C and C++


By all means, go for it

Saturday 23rd of December 2023 10:56:18 AM

Stuff like this amuses me so much. In order for something like this to work, the bot would need to be aware of its own configuration. Its no more aware of its internal configuration or the machine it runs on than you are of the individual neurons firing in your brain.

In fact its not aware of anything at all. Every chat message it receives is reprompted by irc-gpt-bot along with a system preamble defining its personality and the things it should know including the history and context of the conversation. This is then sent off to OpenAi's completion api for processing and the result is returned as a message.

So please have fun trying to get the bot to expose security holes. Even if it wanted to answer it couldn't because irc-gpt-bot controls everything it knows, including its own memory.


Recursion

Friday 24th of November 2023 12:29:25 PM

I recently read an article about recursion and thought it was worth sharing here.

A Different Way to Think About Recursion

Specifically I like the way the author simplifies the concept:
Recursion is about simplifying inputs going forward and clarifying going backwards.

json-roller employs a lot of recursion in breaking down JSONObjects to simpler inputs. I think it would be almost insane to try and navigate a large complex JSON object without some form of recursion, unless you know the exact structure of that object.

However, this article kind of wags its finger at the idea that sometimes a recursive function can update a state variable that effects other calls to the same function. In json-roller, I know that the dataset is not going to change because the inputs are final before the applications starts.

In the case of "pivotJSONObject" I need to be able to throw information into a collection of Strings to track column names as each level of recursion hits different dead ends. This could be done as an object passed to each level and returned on the way back. So my point is, in my opinion, its not out of the question to have a recursive function return information to other parts of the program on its descent.


Image To Array - Online Edition

Wednesday 1st of November 2023 01:06:24 PM

Today while updating some links i noticed that the icns generator
on my links page was down. This inspired me to create an online version
of the Image To Array tool on my website.

https://openstatic.org/projects/imagetoarray/online/

This will allow anyone to upload an image, scale it and request it in any of the supported output formats allowed by image to array.

Once the images are generated it will provide a link to a zip archive containing the output files. Due to space constraints on my server users will have 24 hours to download their archive before its deleted.


Starting a Blog

Sunday 22nd of October 2023 01:10:51 PM

I thought it was well past time for me to create some kind of blog for my site so i can share updates and information on the projects published here. I may also post about tech news and other interesting stuff i find. I haven't decided yet, but stay tuned!