Search
42 results for “anand7253”
-
What private DNSCrypt or DNS-over-HTTPS services running some foss software do you use?
Preferably owned and hosted in Europe. -
I needed to throw over the table to fix this little one-line #bug, but at least now it works. And I had to do some of the mess anyway.
-
I'm giving up.
I have been defeated by the spaghetti.
I will... add comments.
How terrible. -
I'm still designing my language.
Why not just introduce RegExps into pointers?
int *a; /* nonnull pointer to single int */
int *?a; /* can-be-null pointer to single int */
int +a; /* nonnull pointer to array begining */
int +?a;Isn't using the nonnull __attribute__ a bit long?
Now yes, I don't see the point of + and +?, but there is the 'array of unspecified length' syntax:
int *argv[];
so why not?#programming #languageprogramming #c #pointers #regex #regexHumor #humor #becauseWhyNot
-
Something works because of a bug. It shouldn't. I haven't programmed it yet. Bug located. Time to erase it. Time to stop positive anomalies. And take the long path to restore the correct behaviour.
-
Something works because of a bug. It shouldn't. I haven't programmed it yet. Bug located. Time to erase it. Time to stop positive anomalies. And take the long path to restore the correct behaviour.
-
Vim is so intuitive and convenient
I just typed `:imap dirs $partial_content.directories` and it worked exactly as expected.
And removing the mapping is just as easy: `:iunmap dirs`.I wonder if Vim isn't just the thing joining one letter short, fast to type variable names with meaningful variable names :)
-
I'm back to coding my browser again. Making the padding colourful, not just the borders improved my tester's experience drastically. After a little other cleaning the code and output both look better :)
-
I'm language-hopping again.
Now I hopped from #Ruby to #Perl, earlier I have visited #Rust.Perl isn't difficult, not with my XP.
I do have syntax problems, but once I developed an intuition for what a sigil means using the language gets smoother.I do have the feeling I can concentrate on the task with less worrying about the types.
-
I'm language-hopping again.
Now I hopped from #Ruby to #Perl, earlier I have visited #Rust.Perl isn't difficult, not with my XP.
I do have syntax problems, but once I developed an intuition for what a sigil means using the language gets smoother.I do have the feeling I can concentrate on the task with less worrying about the types.
-
I'm language-hopping again.
Now I hopped from #Ruby to #Perl, earlier I have visited #Rust.Perl isn't difficult, not with my XP.
I do have syntax problems, but once I developed an intuition for what a sigil means using the language gets smoother.I do have the feeling I can concentrate on the task with less worrying about the types.
-
I'm language-hopping again.
Now I hopped from #Ruby to #Perl, earlier I have visited #Rust.Perl isn't difficult, not with my XP.
I do have syntax problems, but once I developed an intuition for what a sigil means using the language gets smoother.I do have the feeling I can concentrate on the task with less worrying about the types.
-
I'm language-hopping again.
Now I hopped from #Ruby to #Perl, earlier I have visited #Rust.Perl isn't difficult, not with my XP.
I do have syntax problems, but once I developed an intuition for what a sigil means using the language gets smoother.I do have the feeling I can concentrate on the task with less worrying about the types.
-
Got it!
/usr/share/X11/xkb/rules/base.lst:887: caps:swapescape Swap Esc and Caps Lock
This needs to be added to Option "XkbOptions" in /etc/X11/xorg.conf.dI haven't tested it yet, it might require an X reboot and I'm looking at another way, that I already found, to swap the 2 keys.
This will be fun.
It might not end at escape and caps lock... :)
That will be more fun.Btw I used ArchWiki :)
-
Got it!
/usr/share/X11/xkb/rules/base.lst:887: caps:swapescape Swap Esc and Caps Lock
This needs to be added to Option "XkbOptions" in /etc/X11/xorg.conf.dI haven't tested it yet, it might require an X reboot and I'm looking at another way, that I already found, to swap the 2 keys.
This will be fun.
It might not end at escape and caps lock... :)
That will be more fun.Btw I used ArchWiki :)
-
I've just tracked down a really annoying Lua bug in my Minetest mod.
In Lua, assigning a table to a variable is assigning the reference to the table, not a copy of the table, while in C++, to which I'm used to unless I explicitly want the variable to store a pointer or reference, stuff will be copied.
Fixing the bug is easy: var = table.copy(mytable), but finding it wasn't.
table.copy is a small convenience function added by Minetest[1/2] #Minetest #Lua #DoItMySelf #Programming #Bug
-
A few days ago I edited one of my Minetest mods over ssh... 😆
I couldn't test it, but it didn't matter.
Soon I could access the computer directly -
StackOverflow is a nice C problemset.
Solving an unanswered question would be fun even if you didn't post your answer.
-
I don't care about doing stuff the right way.
I do it in an effective way that works.
For example: I have a function that recursively copies a small tree, built on the stack with pointers to rodata, each node has a name assigned to it.
How do I make the nodes from one tree have different names to those of the nodes from the other tree?
Simple. -
I'm starting to insert comments into my #HTTPclient redo to remember the meanings of variables.
I know the variable names should speak for themselves, but they don't... as usual :blobcatnotlikethis: :blobcatshrug:
-
I won't use any big blob of software like Chromium-based WebContent, because I want my browser to be secure, that is security must be kept in mind through the whole process of programming, not be left for extensions to manage.
[3/3] #programming #c #doitmyself
-
Again I had a look at a graphics library, this time only Qt. It has some good features, but since I want to implement everything (HTML, CSS; JavaScript if I want it at all) from scratch it doesn't make sense to use a high-level library that has it already implemented.
So I'm back to SimpleDirectmediaLayer.
[2/3] #programming #c #doitmyself
-
The HTML rendering part of my C++ HTTP client got a bit too messy, so I'm starting it again from nothing.
This time no sockets, no network, no URLs, no parsing HTML, no fighting against C++ inheritance and order of construction, just rendering protoHTML in plain, good old C.
[1/3] #programming #c #doitmyself
-
Since a few days ago I've been playing around with system calls in #assembly. I started in the direction of a TCP/IP6 echo, now I'm introducing ptrace.
Works fine, the part that's implemented.
#programming #doitmyself -
A finite while loop succeded:
var g := 5; while (g) g -= 1;
I'm steadily moving forward.
Next I'll fix my compiling which still doesn't support the 'if' conditional statement. -
Now I see that it's too hard to both execute and compile at the same time, so my #assembly is still in bits and pieces, but it slowly takes some shape.
In the mean time I continue with the 'while' loop. -
After an update of my laptop, the \l in /etc/issue started expanding to -, not ttyN.
From the manual: agetty(8) accepts the port as a pathname relative to /dev or '-' for the current terminal.
And using htop(1) I observe that aggetty is called as follows:
/sbin/agetty -o -p -- \u --noclear - linux
Probably '-p -- \u' is one argumentSo now I just need to convince systemd to give the terminal device name instead of '-'.
Sigh -
This was just a silly error, I got confused and used a variable as both a table index and an iterator/subtable/pointer-to-subtable/pointer-to-element.
#Assembly is easy. Sometimes I get blocked by an error and it's hard to find it, but once it's fixed it goes on smoothly.
Up to the next #bug :)Here's what I've manages so far:
Hanoi towers with a hardcoded size. -
Some :rust #rust concepts I already like, some not yet, but with the book, docs, rustc --explain and my #programming experience it's easy to learn.
#doitmyself