stigatle

yarn.stigatle.no

stigatle

@funbreaker@yn.vern.cc Hi! I have attached the current screenshot, as you see it’s not done yet, I need to add some things, but a lot of work is already done.
I will fix the remaining things and try to make it usable enough this week so that I can upload the source.
Need to add the remaining reply button, image loading and width of the text etc first.
I had that in the FLTK client, so I just need to add it to this new GTK gui.

Image

Here is what I had with FLTK
https://yarn.stigatle.no/twt/4nuoc7q

I did not have time to work on those things today, ran out of time. But I’ll resume tomorrow.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Got some good progress on the GTK gui today, got the timeline to work!
Took some time to figure out how the UI layout stuff works, but it looks good now.
I will add the avatars next.

The way it is right now - I got this up and running in a couple of hours, instead of ‘days’ with FLTK.
So I’m glad I made the decision to switch to GTK,
Right now I’m doing all development on Trisquel OS, windows version will come later on.

Also - since I thought about the possibility that I wanted to switch early in the process the code that does all the work is UI independent, meaning this was easy to do. +1 for planning ahead.. :)
I will post a screenshot of the new UI soon, once it’s a bit polished.

⤋ Read More
In-reply-to » Q: Is anyone actually finding the activitypub experimental feature I've been working on (for those running main) actually useful? 🤔 (because I'm not and having second thoughts...)

@prologic@twtxt.net I like it, I get to follow some people I could not follow before, which I find useful.
But if you have second thoughts about it all - then I can understand that.
If you decide to pull the plug on it - then I’ll just get some additional activitypub service installed on my server and use that for that (I was thinking about installing this: https://github.com/tsileo/microblog.pub ) if needed.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Got the cmake file updated, compiles and now it opens a GTK window, need to add the timeline and buttons that I had in FLTK, the other code related to parsing the statuses and all that is independent from the GUI so it’ll be pretty quick to switch over once I have defined the new GUI elements.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Been going back and forth on the gui, I will move away from FLTK and go for https://www.gtk.org/ instead.
I’ll spend tomorrow working on that. I need a more refreshing GUI then what I have now.
And also FLTK is a pain to get to work as I need - spend the whole afternoon trying to get it to use images (avatar etc) on my linux machine, and no matter what I’ve tried it refuses. So instead of wasting more time battling fltk I will switch to GTK.

⤋ Read More
In-reply-to » The sun is out, no clouds, negative degrees, but beautiful day. Since we switched to summertime the dog sleeps an hour longer, which was great, finally got to sleep in. Dog has been walked, kids are playing roblox together, later tonight we will have pizza and watch movie etc :) have a nice Saturday!

@prologic@twtxt.net yeah. I truly agree. I try to limit that as best I can. 👌

⤋ Read More
In-reply-to » The sun is out, no clouds, negative degrees, but beautiful day. Since we switched to summertime the dog sleeps an hour longer, which was great, finally got to sleep in. Dog has been walked, kids are playing roblox together, later tonight we will have pizza and watch movie etc :) have a nice Saturday!

@prologic@twtxt.net yeah, no Microsoft account,I avoid that as best I can :)

⤋ Read More

The sun is out, no clouds, negative degrees, but beautiful day. Since we switched to summertime the dog sleeps an hour longer, which was great, finally got to sleep in.
Dog has been walked, kids are playing roblox together, later tonight we will have pizza and watch movie etc :) have a nice Saturday!

⤋ Read More
In-reply-to » oofff. Ive been on twitter for 15 years. But this right here is making me consider to just not be there anymore. Not cool that he'll do this, but not unexpected either.. The engagement I get on twitter is low enough already, but will tank after this if I do not pay for it.

It sucks a bit. I’ll probably keep my account, but not post there after that.
I use my account mostly for tech stuff, and to keep up with the new things and stuff like that.
I can still do that without paying, but I do not want to pay to get more views etc.
So I’ll just pin a post there - pointing to here instead after that goes active.

⤋ Read More

oofff. Ive been on twitter for 15 years. But this right here is making me consider to just not be there anymore.
Not cool that he’ll do this, but not unexpected either..
The engagement I get on twitter is low enough already, but will tank after this if I do not pay for it.

Image

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Got the timeline to refresh, now I need to add a timer for that, but for now I’ll just make a refresh button.
It’s not smart - so it grabs and adds the whole timeline again at this moment (but clears it first). Later I’ll make it so that it only appends new statuses that are not already in the list. But feels good to have this sorted, makes it much more usable.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Turns out the problem I had was also there when I build rapidjson from source, but if I moved the include to earlier (rapidjson in my project) - the problem went away, so I suspect it’s the same as in this issue going on.

The cool thing is that the client now works fine on linux without changing anything else then the include order!
So now I’ll do all development there - instead of on windows.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Also - did a quick test on linux, it gave a lot of errors with the rapidjson library, so I have to find a way to work around that. I think I’ll pull the latest, then compile it - and then point to that - instead of installing the rapidjson-dev package. Maybe that’ll work.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Timeline is cleaned up, so now I think I have that part sorted.
Next is to refactor a bit and then fix so that the timeline refreshes properly.
Once that is done I think I’ll clean it up and upload the source somewhere and create tickets for outstanding known issues. Most likely upload it to github and continue the work there.

Image

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Okay, so back at it today. I want to start and fix the text where nick and url is included, strip that away from the text being shown, makes the statuses much more cleaner. Also need to get started on clickable url’s somehow.

⤋ Read More
In-reply-to » Good morning!

@prologic@twtxt.net it was really nice! But also one of the more stressful walks, I had to turn back, because it was so slick on the rock that it was really hard to walk, and I fell once (that rarely happens), and when the dog was going to jump over a big gap in the rock on the trail he got scared, and pulled himself out of the harness and got some minutes of freedom.
There are sheep there too , so I got lucky that he did not go straight to them. Had some snacks in my pocket and got him back with that.

⤋ Read More

Good morning to you all! Rain is still poring down, tired of getting wet each time I go outside. heh.
Going to rain all weekend it seems, but then next week it’ll get better. Hoped the rain would stop this weekend, but it seems like it wont.

⤋ Read More
In-reply-to » Often people run a node somewhere, then connect to it with the remote node feature from other machines. Or use a light wallet. Cpu use will go down when block chain is synced. Also just a tip - check the prune blockchain feature to save a lot of space.

@shreyan@twtxt.net first time I’ve seen someone mention gnu taler. Been following it since it was announced:) never used for anything other then testing though.

⤋ Read More

Woke up early, got out and walked the dog, came home and our daughter had cleaned up her room, the kitchen and livingroom while I was out. She did that because I told her yesterday that I wanted to tidy up her room today. So she wanted to surprise me by doing all this today. That was really nice of her. :)

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

I have cleaned up the timeline a bit, I like this much more.
I use the markdown text now, instead of the ‘text’ field in the json file, looks much cleaner.
I can work with this. One thing that I want to sort out next is the way the nicknames and url is shown.
Also links in posts should be clickable - not sure if the current labels support that, but I’ll try and figure it out somehow. Anyways - latest screenshot is attached here.. :)

Image

⤋ Read More
In-reply-to » I see I'm not doing any work today, so rest day. Watching YouTube day.

@abucci@anthony.buc.ci exit nodes and tor traffic that is contained within tor network is two separate things. And I do know what I’m talking about. I ran a exit node for a long time, rented vps in sweden, police raided there, then came at my door the next morning because someone sent angela merkel a threatening email through my exit node. Blocking exit nodes does not shut down hidden services because hidden service traffic never leaves the tor network.

⤋ Read More
In-reply-to » I see I'm not doing any work today, so rest day. Watching YouTube day.

@abucci@anthony.buc.ci anyone can run a exit node. Show me a case where a hidden service was taken over without regular investigation etc.
The biggest darknet markets where taken down due to misconfigurations or mistakes leading them to leak IP and such , not because tor is compromised or that some agency ran a exit node.
A hidden service’s traffic never goes through a exit node, only passes through middle nodes and everything stays encrypted.

⤋ Read More

Just see the total hashrate on the network, then figure out how many cpu’s you need to get over 51% of that rate - you then know what it would cost :)
Also - nice to see a monero discussion, it’s my fav cc. Also like it a lot because of the asic resistance that is built in.

⤋ Read More
In-reply-to » Now tell me how can I prevent monerod from hogging on my CPU. I'm on DragonFly BSD, cpulimit doesn't works, also nice doesn't. I believe this is an IRC question.

Often people run a node somewhere, then connect to it with the remote node feature from other machines. Or use a light wallet.
Cpu use will go down when block chain is synced. Also just a tip - check the prune blockchain feature to save a lot of space.

⤋ Read More
In-reply-to » 👋 Hey y'all yarners 🤗 -- @darch and I have been discussing in our Weekly Yarn.social call (still ongoing... come join us! 🙏) about the experimental Yarn.social <-> Activity Pub integration/bridge I've been working on... And mostly whether it's even a good idea at al, and if we should continue or not?

And mostly whether it’s even a good idea at al, and if we should continue or not?

I think that activitypub in yarn is a great feature! And also one of the easier ones to set up and get going.
And as I said last week - I think it’s a important features - and will drive adoption.
It is optional as well - so if one does not want it - just not turn that feature on.

I personally was missing the fact that I could not easily follow others before you added activitypub, but now I can choose to follow them, which is great.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Got some time for coding today, dog is resting a bit, and kids are busy.
Today I’m resuming on the timeline, I’ll see if I can fetch and show the avatars next to the statuses.
And I’ll see if I can get a reply button to work, also need to clean up stuff that I’ve done so far.
A bit of duplicate stuff that can be simplified etc.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

A lot of more work needs to be done, but at least now I got the basic timeline stuff done, took a good while to figure out how to solve it, but now I know. The reason why the statuses are cut short on some is because of html tags and stuff like that - c++ is a bit picky with strings and stuff like that. but I’ll get that sorted as well.
At least I can show the first screenshot. Keep in mind the GUI is not at all finished, I’m working on the basics first, implement all the features, then I work on finishing touches.

Image

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Okay, so it seems like the label\text I use for statuses does not like the strings from posts.
Especially if they contain html tags and such (which the often do), it just breaks the text.
I wonder what I can do with that.. I kinda want to not have html tags in the json reply.
Have to think a bit about how to solve it. Took a while to figure it out, the text was just garbled.
I created some long example strings with regular letters and such, to see if X number of posts would show up, and they did, but when I then replace my test strings with text from json - it goes all wrong again.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Created the function that grabs the timeline.
Now I have to plan a bit to make the actual gui for it, I think I might try and create my own custom fltk widget that I can feed with the json reply, and then it will set itself up based on that.
Or maybe something simple at first - not sure yet.

⤋ Read More
In-reply-to » Test from ftlk in rust.

So, progress is going smooth!
No I have compiled libcurl with openssl, and I fetch token already.
so next is creating three functions - one for posting, one for the login and fetching token (now I have just testing login when application starts), and the fetch the timeline. Then I need the gui.
Progressed faster in 2 hours in c++ then days with rust…

⤋ Read More
In-reply-to » Test from ftlk in rust.

Okay, so I spent about one hour setting up cmake, fltk and libcurl for c++, got all that running now.
I still need to fix the cmake script a bit, but I have a working verison now with this.
I will now add the same curl stuff I had in rust in c++, then work on the gui and all that.
So I will drop rust, and go for c++ instead, much easier for me. Was worth a try in rust, but for now that’s not for me to be honest, I much faster and better in c++.

⤋ Read More
In-reply-to » Test from ftlk in rust.

Im very close to making the decision to just rewrite what I have in c++ instead. I feel I would have done this much faster with that. I’ll think about it until tomorrow. I’ll probably do that anyways just to see. just start with cmake and get started with it.

⤋ Read More

@prologic@twtxt.net Yeah, apparently it was a bit of old new (according to twitter), but still - looking forward to have a risc-v desktop system. :)
Hopefully it’ll not be too long until something like that hits the market with a price that I can pay for it.
I do have 2 risk-v devices already, one mangopi (like a raspberrypi zero), and one HiFive1 Rev B (like a arduino).
The Hifive rev B was a waste of time and money for me - but I bought it anyways, too ‘embedded’ for my liking, so not easy to make things work on that. The mangopi is perfect, got all my desktop stuff set up on that running debian.

⤋ Read More
In-reply-to » Test from ftlk in rust.

Found what I needed finally.. I now created a struct with this crate:
https://crates.io/crates/arraystring
That works for what I need, damn this has been annoying to find a solution too.
I can now store the strings I need in the struct, and use that in all the functions.
Also works with the GUI callback stuff, so it solves the Issue I’ve been having.
I have now added gui elements for server url, username, password.
And functions for fetching the timeline with the supplied info.
So now I can finally start working on the timeline GUI.

It’s been in a way easier then expected, but also somethings are a bit tricky.
I could easily have done the same in c++ much faster, but the whole point here was to learn more rust.
And for that it’s been going well.

⤋ Read More

The company I work work added a hybrid solution after covid restrictions lifted, we can work x amount of days a week from home.
Which was a great solution. Covid proved that everyone could work from home and still meet the project demands.
Personally I prefer the office, even if I have to be there alone (I worked for months alone there). But I also like the flexibility when I need it.

⤋ Read More
In-reply-to » Good morning to you all! Wish you a great day!

@prologic@twtxt.net Ah man, that sounds nice! I do not drink - except that I have one cider during the summer vacation. (Always look forward to that one).
Other then that I love energy drinks, not that they help in any way - just tastes good :)
I’m on my way to the office now shortly, ready for a new day with realtime 3D and coding.

⤋ Read More
In-reply-to » Test from ftlk in rust.

Also, I’m struggling a bit with some basic stuff, for example variables, does not work the same way as I’m used to with c++ it seems, so it’s a bit confusing, re-using variables as input to several functions does not seem to be as straight forward as I’m used too - so I need to find some more info about stuff like that.
Also the callback stuff for buttons and such is really weird to me. But I’ll stick with it.

⤋ Read More

the last days has been super busy, work, family, dog takes up most of my time (not that I complain). But I need to find some time for coding, so hopefully I can resume tonight for a couple of hours when kids has gone to sleep.

⤋ Read More