AboutA 14 year old D lover (one of the few) Arch Linux + i3 + plymouth = amazing High school is boring I should be programming Why did I make this?
Skillsd, D, DLANG asm, c, c++
LocationFar away from home :(
Joined devRant on 7/18/2016
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
We all need exception handlers in our lives. It seems that many on DevRant aren't great at unwinding after a problem occurs ;)
I found a new way to calculate running average.
a(o, n, i) = (o(i - 1) + n) / i
a(o, n, i) = o + (n - o) / i
a: New average function
o: Old average
n: Element to add to average
i: New number of elements16
That moment when you're away from home and you're performing a fucking system update (upgrade?) on fucking Gentoo and your fucking Chromebook can't fucking connect to your fucking computer at home running fucking Arch to offload fucking compilations over fucking SSH and fucking Polybar tells you that the fucking RAM is almost full and that both of your fucking Broadwell CPUs are fucking 100% on usage and even fucking Vim can't open your fucking work to add the fucking documentation for a fucking assignment from a fucking online course due today and everything's fucking stopped in time but the fucking window manager is still working normally?!!!!2
Writing simple terminal input/output lang (Hello, what's your name, hi) in D.
Compiling in D using standard lib: 6.1M
Compiling in D with inline assembly, no standard lib or libc, using syscalls: 1048 bytes!
I'm still freaking out a little.2
List iteration - Implementation
How do you manipulate lists? In what language?
In my very limited knowledge:
1. C++ Iterators
2. D Ranges
3. Linked Lists
See for ranges vs iterators http://informit.com/articles/...
Does anybody have links for advantages for iterators? Why should I use them?2
That moment when the resident IT guy/teacher at your school comes to you at lunch and you look sad.
Teacher: What happened?
Me: Batteries almsot dead :(
Teacher: Well, I've got good news for you. I was talking to the school director about you.
Me: Um ... shit
Teacher: We're looking to get you an intership at the company that does networking shit for us (Netcom, anybody?)
Me: FUCK YEAH ... thanks!
*Day brightened by angelic light*8
When I was in 6th grade, and we were learning HTML, and I realised the power my fingers suddenly held as Chrome (ugh) loaded up my frst webpage with some basic styling. At that moment, I understood the extensibility, the dyanmicity (My English teacher would kill me), the pure awsomeness I could do with a text file. In three years (now), I finally made a calendar that works which has comments, is split into dedicated files, works, is clean and written in D, and works.
Compiled Gentoo after ~5 days.
It's not ever yet though.
My kernel is now 7.3M, and it contains almost everything I need. Even my network drivers (intel) firmware is built-in.
It boots straight off UEFI (default BOOT/bootx64.efi), and
Managed to install X, Waylan (sway!)
Got dvorak programmer's keyboard defaulted.
root 4.7G/14G (exact) used
boot 21M/127M (exact) used
var 701M/~5.5G used
Was doing the installation from a Live CD (UEFI) during school hours, with my toughpad not working and no mouse with me. I feel bad for TAB.
I am, at this moment, still compiling...1
Stupid licensing issue.
I have a licensing question/problem.
I'm porting Lemonbar (the fancy GNU/Linux X11 statusbar) to D (which is awesome imo).
I'm adding Wayland functionality and since D is part of the C syntax family some code is just about exactly the same (the XCB libs are protocol-generated external imports).
Also, the X-specific parts are in a specific file.
What do I license the project against? My own license (I prefer Apache) or Lemonbar's? What about the X-specific file?
BTW, it's a full rewrite using the same concepts, object-orienting the whole thing.3
I just responded positively to a request by my high school coordinator to add an Advanced Placement Computer Science online course option as a choice for all high schoolers.
It's for Java.
Have I commited a crime?
Have I done justice?
Help me, for I don't know anymore.2
Oh fucking Huawei.
- Honor 6x (BLN-L22C675)
- Has EMUI4.1 Marshmallow
- Cousin brother 'A' (has bricking XP!)
- Uncle 'K'
- Has Mac with Windows VM
- Stock as LineageOS / AOSP
Procedure (fucking seriously):
- Find XDA link to root H6X
- Go to Huawei page and fill out form
- Receive and use bootloader code
- Find latest TWRP
- Flash latest TWRP
- TWRP not working? Bootloops
- XDA search "H6X boot to recovery"
- Find and try modded TWRP
- TWRP fails, no bootloop
- Find & flash TWRP 3.1.0
- Yay! TWRP works
- Find and download LineageOS and SuperSU
- Flash via TWRP
- Yay! Success.
- Attempt boot
- Boot fails. No idea why
- Go back to TWRP
- TWRP gives shitload of errors
"cannot mount /data, storage etc."
- Feel fucked up
- Notice that userdata partition exists,
but FSTAB doesn't take
- Remembers SuperSU modded boot
image and FSTABS!
- Fuck SuperSU
- Attempt to mod boot image
- Doesn't work (modded successfully
but no change)
- Discover Huawei DLOAD
Installer for "UPDATE.APP" OTAs
Note: Each full OTA is 2+ GB zipped
- Find, download, fail on 4+ OTAs
- Discover "UPDATE.APP Extractor"
Runs on Windows
Note: UPDATE.APP custom format
Different per H6X model
- Uses 'K''s VM to test
- My H6X model does not have
a predefined format
- Process to get format requires
TWRP, which is not working
- FAIL HERE
- Discover "Firmware Finder"
Windows app to find Huawei
- Tries 'K''s VM
- Fails with 1 OTA
- Downloads another firmware ZIP
- Unzips and tries to use OTA
- Boots successfully?!
- Seems to have EMUI 5.0 Nougat
- Downloads, flashes TWRP
- TWRP not working AGAIN?
- Go back to XDA page
- Find that TWRP on EMUI 5 - NO
- Find rollbacks for EMUI5 -> EMUI4
- Test, fail 2-4 times (Massive OTAs)
- DLOAD accepts this one?!!!
- I HAVE ORIG AGAIN!!!
- Re-unlock and reflash TWRP
- Realise that ROMs aren't working on
EMUI 4.1; Find TWRPs for EMUI5
- Find and fail with 2-3 OTAs
Note: Had removed old OTAs for
space on Chromebook (32GB)
- In anger, flash one with TWRP
instead of DLOAD (which checks
- Works! Same wasn't working with
- Find and flash a custom TWRP
as old one still exists (not wiped in
- Try flashing LineageOS
- LineageOS stuck in boot
- Try flashing AOSP
- Try flashing Resurruction Remix
- Realise that need stock EMUI5
- Realise that the firmware I installed
wasn't for my device so not working
- FUCK NO MORE LARGE DLs
- Try another custom TWRP
- Begin getting '/cust mounting' errs
- Try reflashing EMUI5 with TWRP
- Doesn't work
- Try DLOADing EMUI5
- Like before, incompatability
- DLOAD EMUI4
- Reunlock and reflash TWRP
- WRITE THIS AS A BREAK
Exactly 2 days before I change my username to something new. See you guys later! I hope someone remembers me :)
Changing to thatGuyWithLinux10
Anybody else: Solarized (no affiliation)? Dark and light are so beautiful. Plugged in to terminal, window manager, (neo)vim, statusline (yeah, the Awk thing). Feels so beautiful. Can read shit off it anywhere, and my eyes aren't going any more blind.
P.S devRant team please get post separation up so that I don't have to add a 'question/rant/meme' tag to everything I post. <3 Love u guys!
!!rant life toptags bottags
My tags seem to be okay. Let's go.
I'm 14. I live in a place where nobody smart lives, and the school I go to has no coders.
Last year, all my friends moved. The only friend I had left now hates me, simply because they yelled at me everyday and I yelled at them once.
I am in the middle of my exams. I also have the flu, but thankfully it's not the e-flu, otherwise you guys should prepare for 24/7 headaches.
Due to the medications I am taking, I'm half-asleep all the time, and I probably am messing up all of my grades.
My entire extended family is in India, and I go there 2 times a year. I miss them so much right now :(.
At the same as doing exams, I am trying to keep my laptop (primary) and PC (secondary, desk) configuration and setup approximately synchronized. In order to do that, I am setting up my dotfiles repository.
Except that all my laptop config (which works) is written horribly, and I need to rewrite it all.
At the same time, I have 3 other projects going on: An OS written in D, a source-based package management system written in D, a small website (not online), and a whatever's cooking in my mind at this moment.
Right now, I'm supposed to be studying for my French exam.
Instead, I'm here, typing this out on my phone.
I have a classmate in school who can type QWERTY at 80WPM. I'm learning Dvorak (Programmer's!) and my current speed is 33WPM, after about 2 months of half-hearted practise during work time and at school.
Sometimes, I look at the world we have here, and what we're doing to it, and I wish that sometimes we could simply be content with life. Let's just live, for once.
I find ~60 random songs in one go, simply by finding a song I know on YouTube and going to the 'Mix - <song>' playlist. I download them all (youtube-dl), and I listen to them. Sometimes, I find this little part in a song (Mackelmore & Ryan Lewis - Can't Hold Us beginning instrumentals, or Safe and Sound chorus instrumentals) that make me feel so happy I feel like all's good in the world. Then the song moves on and with it, my happiness.
I look at Wayland, and X, and I think - Why can't we have one way of doing things - a fixed interface to express anything, so that one common API exists for everything of that type? And I realise it's because they feel that they're missing something from the others. Perhaps it's a bug nobody's solved or functionality that's missing, and they think that they can do better than that. And I think - Well, that's stupid. Submit a fucking bug report or pull request instead of reinventing the wheel. And then I realise that all the programming I've ever done in my life IS simply reinventing the wheel. And some might say, "Well, that guy designed it with spokes and wood. I designed it with rubber and steel," but that doesn't work, because no matter what how you make it, it's just a wheel. They both do the same thing. Both have advantages and disadvantages, because nothing's perfect. We're not perfect because we all have agendas and wants and likes and dislikes and hates and disgusts and all kinds of other crap, and our DNA's not perfect because it manages to corrupt copy operations (which is basically why we die of old age, I think).
And now I've lost my train of thought and this is too large to scroll over so I'm just going to move on to the next topic. At this point (.), I have 1633 letters left.
I hate the fact that the world's become so used to QWERTY because of stuff that happened 100 years ago that Dvorak is enough of a security to stop most people from being able to physically use my laptop.
I don't understand why huge companies like Google want to know about me. What would you do with this information? Know how to take over my stuff when the corporation-opocalypse comes around? Why can't they leave me alone? Why do I have to flash a ROM onto my phone so that Google cannot track me? What do you want, Google?
I don't give a shit any more, so there's my megarant.
Before anybody else (aside from myself) tells me that this is too big, all these topics are related simply because my train of thought went this way. There's a connection between each of these things, but I just don't know what it is.
Goodnight, world. 666 is the number of characters I have left. So is 42, for that matter (thanks, Douglas Adams!). Goodbye.4
I'm in the middle of my exams.
My thoughts go - Work! Keep the fucking As up!
My actions - setting up public dotfiles with more comments than config lines, messing with DevRant, doing pre-calculus (matrixes, complex number shit) from 9th grade
Then had the English exam and realised that I'm fucked.
But now it's a Friday!
... And I have 3 major exams next week. I NEED to study for them.
I can already guess what I'm going to be doing during exam study time.
Have you noticed that many core Linux C programs use "die" as the error-and-exit method name?
Just shows how much these devs think of Linux processes as living people.
Now one of us just has to create a Skynet without the die() function.1
I was messing with my lemonbar + i3status config (with sway), when I decided to ditch i3status entirely and generate a status line using pure Awk. Battery is calculated from /sys/class/power_supply/BAT0, got workspaces (Material Design Icons) working, have a nice dated, and all colors match Solarized Dark from Vim. Have underlines, highlights etc. setup.
It's so beautiful :)4
Just posted a comment, and I realise it should be a rant.
In reply to stalkCoder (i think):
| At first there was nothing
| $: git init
| And then there was light
A new creation myth appears.
$ git add --all
$ git commit -m "Update 32 at 2:48 AM"
$ git push
The new creation myth is destroyed by the pure rage of a thousand Git commit message standards.
Who did this to you :(
The Avatar Builder ... you have ...
dfox & t-rogus:
Arch Linux, Firefox6
I have a Chromebook 15 (CB5-571). I'm trying to switch to the beautiful (and kinda weird) Programmer's Dvorak keyboard layout.
I'm using Sway and Arch Linux, so the software side is okay.
But I need to somehow temporarily write on top of my keyboard keys with the layout replacements.
If there is something already out there for my laptop, yay!
Otherwise, I have tac-it (?) and lots of paper.
What do I do?12
DFox & T-rogus: Dafuq do you put in your algo? It's frikin insane how many times people notice completely related rants side-by-side or even weird replies to rants below the rant itself in our feed. What is this sorcery?9
Duckduckgo is AWESOME :)
So happy I moved on from Chrome & Google (just searching for now, its a long process)7
That moment when you realize that the shit your parents made you do when you were 8 is helping you get A grades in Math in high school.
Love you Mom 😊3
Challenge: Make valid sentences using DevRant usernames as words in it. Aim for proper grammer, but don't be extra about it. Anything (😈) works, as long as the usernames are valid.
P.S no binary or hexadecimal words XD31
As you guys probably know, Yowsup (Whatsapp via python) is going to die 1st June 2017. RIP :(
Is there another internet messaging service I can use to send commands to my computer (and get responses) over the internet? I'm looking at Slack, Telegram, etc. daeomons or something. Any (any) opinions?8
Why don't we have a virtual world API? Something that would support concepts as well as physical objects? Something that we could definitely the world in so we could simulate reality?
And if we could connect it to REAL LIFE?2
I get 20kb - 500kb - 1MB per second at my house on ethernet
School wifi - 20+MB/s
:( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :(33