main
) actually useful? 🤔 (because I'm not and having second thoughts...)
@prologic@twtxt.net Yeah, it would be nice to actually follow the conversations that goes on, that would indeed make it feel more useful.
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.
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.
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.
Time to get back at it, I want to fix so that when you hit ‘reply’ it will also add any mentioned user in the reply.
@prologic@twtxt.net yeah. I truly agree. I try to limit that as best I can. 👌
@prologic@twtxt.net yeah, no Microsoft account,I avoid that as best I can :)
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!
Good morning to you all! How are you all doing today?
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.
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.
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.
@prologic@twtxt.net thank you! Openbsd is also one of my target platforms. Want to have it in the ports tree there as well, but Ill get to that a bit later.
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.
@osnews@feeds.twtxt.net Exciting laptop! I would not mind having one of these.
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.
Installed latest Trisquel on one of my laptops, runs very well. I’ll try and use this for all my daily stuff for a while, and see if it covers my needs :)
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.
And threads would be nice to see as well, the list goes on and on :)
Also- refresh of the timeline needs to be fixed.
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.
@lyse@lyse.isobeef.org haha yeah! Got out and bought a better harness for him now, the one he had was a size too big, so got a new one now so that it wont happen again.
@prologic@twtxt.net no, not ice, just really wet and really slick. Been raining a lot the last weeks. If it was dry it would be no problem.
@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.
Good morning!
Beautiful spring day today, sun is out, it’s warm. This is going to be really nice!
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.
Good morning! Yet another rainy day in South Norway..
@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.
@prologic@twtxt.net thank you :) he’s always happy and ready to go on adventures!
How are you all doing today?
@lyse@lyse.isobeef.org thank you! Hard to take pictures of him on walks, because he cannot stand still, haha. Had to use a treat to take this one.
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. :)
Time to play some PUBG! :)
Weekend is here :)
I want to create a frontpage for my website - https://stigatle.no , fix cmake script for the desktop client and compile it on debian. Other then that I’ll walk the dog as usual and spend quality time with my family. Going to be a great one :)
@prologic@twtxt.net thank you!
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.. :)
I will spend a evening replacing the GUI library. FLTK is a pain when it comes to getting the strings the way I need them. I think Ill try gtkmm or nanogui.
The reply button works from my application! I think it’s really fun to work on this. Yarn’s great API makes it fast to to develop for! :)
Working on things again today, made the timeline layout a bit better, now I’ll work on the reply button, makes it more useful to use :)
@prologic@twtxt.net Keep us updated as you think about what to do about activitypub! :) Also - what ever you decide to do - I totally understand.
@abucci@anthony.buc.ci and a lot of advancement has happened since 2015..
@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.
@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.
@abucci@anthony.buc.ci how? Monero + tor or i2p. Try and block that.
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.
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.
Well, the code for getting and setting the avatar works.
I need to align things better though. But cool that it works.
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.
Oh, and also image upload needs to be done.
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.
@prologic@twtxt.net Yeah, that did not work well it seems.
So my status above looks like this in fltk because of the @
Soooo… Fltk uses @ symbol in strings to apply effects to text, now wonder I’ve been having issues with the timeline.. https://www.fltk.org/doc-2.0/html/group__symbols.html
@ is used for mentions and all that stuff, so well - it just breaks the strings in the labels.
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.
I will work more on it this weekend. I hope to tidy it up enough for a screenshot 😀
This one did the trick:
std::regex tags("<[^<]*>");
std::regex_replace(std::back_inserter(outputString), inputString.begin(), inputString.end(), tags, "");
Okay, so was easier to solve (for now) then what I initially thought.
First thing I found was this:
https://stackoverflow.com/questions/49333136/removing-html-tags-from-a-string-of-text
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.
@prologic@twtxt.net Ouch, does not sound good..
Hope you get better soon!
How are you all doing today?
@carsten@yarn.zn80.net amazing view!
Working some more on timeline, trying to create a group widget and add label child widgets, those labels should then show the text for each status.
Brrr, we had -12c this morning. But no clouds and sun is out. Nice day!
Did some more work on the timeline stuff today, now I have added parsing of each status, so that I can get the data I need from each status (user, image url, text, links - all that stuff I need).
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.
Next up is grabbing and showing the timeline, then all the other stuff needed. :)
Was fast to get this up and running, and nice to end the weekend with this working.
Posting from c++, fltk GUI.
my twitter feed blew up yesterday. I typically get some hundred views. but the post I did yesterday did get a lot of traction, lot’s of replies and feedback etc.
main
or edge
of Yarn.social's yarnd
on their pod and has activitypub
and webfinger
enabled? 🤔
Done! :)
main
or edge
of Yarn.social's yarnd
on their pod and has activitypub
and webfinger
enabled? 🤔
@prologic@twtxt.net I’ll do that right now.
main
or edge
of Yarn.social's yarnd
on their pod and has activitypub
and webfinger
enabled? 🤔
@prologic@twtxt.net I do :)
Json parsing is done :)
Now I can write the rest!
@lyse@lyse.isobeef.org always nice to know stuff like that! one day it can save someone :)
@rrraksamam@twtxt.net that’s nice!
Ah, I forgot - first i need to add a json library, so I’ll do that now.
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…
@prologic@twtxt.net Thank you! And same to you! Was great talking with you.
Haha, yeah, he is always ready for playtime or walks, haha.
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++.
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.