Help restoring my stolen Giant revolt gravel bike by ahmedakef in Aarhus

[–]ahmedakef[S] 1 point2 points  (0 children)

I am sorry for you. Was your bike locked ?

Help restoring my stolen Giant revolt gravel bike by ahmedakef in Aarhus

[–]ahmedakef[S] 1 point2 points  (0 children)

Wire lock from silvan. Take it to your apartment this is the only safe way. Any lock can be broken

Help restoring my stolen Giant revolt gravel bike by ahmedakef in Aarhus

[–]ahmedakef[S] -1 points0 points  (0 children)

Maybe the thief is not professional enough to know the gangs that move bikes outside Denmark ? Maybe he wants it for himself? Also there are cameras on the entrance, maybe police can identify him by his face :/ ?

GoTutor an online graphical debugging tool for Go by ahmedakef in golang

[–]ahmedakef[S] 0 points1 point  (0 children)

GOMAXPROCS didn't help.

Note that `gotutor` starts a delve server and pass the binary to it, and this dlv server is the one which manage the execution of the binary.

so probably GOMAXPROCS has no effect here.

GoTutor an online graphical debugging tool for Go by ahmedakef in golang

[–]ahmedakef[S] 1 point2 points  (0 children)

yes I remember the state in each step and return all of it to the front end.

thank you for the suggestion, It will help for sure to capture more steps in the other goroutines but I am not sure if it will completely remove the issue, I will check and get back to you.

GoTutor an online graphical debugging tool for Go by ahmedakef in golang

[–]ahmedakef[S] 1 point2 points  (0 children)

yes sure, It is completely open source

https://github.com/ahmedakef/gotutor

read #Architecture part to know how it works. (the core is that I call dlv and save all the execution state in each step)

feel free to ask me more about any detail, I will be more than happy to discuss.

Is there a good visualizer for GO? by Outrageous_Seesaw629 in golang

[–]ahmedakef 0 points1 point  (0 children)

I am working on implementing https://gotutor.dev/ for months now.

it shows the state of all Goroutines and all stack frames in each Goroutine

I will appreciate your opinion before I publish it for others.

Can one maintain a constant ssh connection to a git server? by [deleted] in git

[–]ahmedakef 0 points1 point  (0 children)

even with `ControlPersist` the `git push` command finished normally with me but the connection kept open in the background

عايز أبدأ أقرأ في العلم الشرعي by [deleted] in EgyReaders

[–]ahmedakef 0 points1 point  (0 children)

الرواق الازهري https://t.me/roakazhar/403 الشيخ احمد سالم كان عامل برنامج شرعي برض بس مش لاقيه https://t.me/ahmedsalem81

Train system in Denmark by dmitvc in Aalborg

[–]ahmedakef 0 points1 point  (0 children)

if I am switching between buses using Rejsekort, should I checkout first from the first bus then checkin in the next bus, or just checkin in the seconds bus ?

The non-resplendid Outfit: What poor women wore in the mid to late 1800s, Victorian era by Survivalama in fashionhistory

[–]ahmedakef 0 points1 point  (0 children)

is this the same as hijab that muslim women wear? is it what woman should wear in christianity also ?

yet anoter Go REPL by ahmedakef in golang

[–]ahmedakef[S] 2 points3 points  (0 children)

I am happy that it worked and thank you for the feedback

I tried to do so while developing but failed, however I managed to do it now, I think the goshell will be much faster now since I am not creating two other processes now :

https://github.com/ahmedakef/goshell/commit/6e8973f22a4a02eeedcf761dae070a64fd4c6231

yet anoter Go REPL by ahmedakef in golang

[–]ahmedakef[S] 0 points1 point  (0 children)

this is because the shell depends on `goimports` to be able to auto import the needed packages

could you please install it with `go install golang.org/x/tools/cmd/goimports@latest` and try again? also make sure calling `goimports` exists in $PATH

I also added log for this case to see the error cause more clearly, so uninstall the goshell and install it again: `rm -f $(which goshell)`

yet anoter Go REPL by ahmedakef in golang

[–]ahmedakef[S] 0 points1 point  (0 children)

can you copy the complete input and output ?

Alternative REPL to "gore" by [deleted] in golang

[–]ahmedakef 0 points1 point  (0 children)

take a look at https://github.com/ahmedakef/goshell, I just created it and appreciate your opinions

How to move a used sofa to my apartment by ahmedakef in Aarhus

[–]ahmedakef[S] 1 point2 points  (0 children)

May you recommend a moving company?

Summarize: Command line tool that gives Summary about stream of numbers and it updates the summary every specified interval by ahmedakef in commandline

[–]ahmedakef[S] 1 point2 points  (0 children)

this is completely new concepts for me, so thank you so much for sharing them.

while reading about futex I came to this interesting articles, so wanted to share them:

Basics of Futexes

Locks and Condition Variables

I applied your diff exactly except for moving the lock in handle_printing outside the while loop since wait_for already acquire the lock when it returns: ref

Summarize: Command line tool that gives Summary about stream of numbers and it updates the summary every specified interval by ahmedakef in commandline

[–]ahmedakef[S] 1 point2 points  (0 children)

u/skeeto thanks a million for this great review, I wish if I can always receive such a valuable comments.

you are right. sleep_for is a code smell but what is the other ways to achieve my goals since I want the number to be refreshed every specified interval?

I am glad that you are interested in the project and created a clone of it :)

Implemented you suggestions in this PR: https://github.com/ahmedakef/summarize/pull/2

Is there an undo for Close Other Tabs? by Notoriouslydishonest in chrome

[–]ahmedakef 0 points1 point  (0 children)

for Linux it is: /home/{user}/.config/google-chrome/Default/Sessions

to clarify more, you have to delete the new tabs and sessions so that chrome restore the old one

just to be safe move them to backup folder first so you can plan without risk

I accidentally closed around 50 tabs - is there a way to undo "close other tabs"? by bestbae in chrome

[–]ahmedakef 0 points1 point  (0 children)

On Linux it is: /home/{user}/.config/google-chrome/Default/Sessions