flat assembler
Message board for the users of flat assembler.

Index > Heap > vivik's twitter

Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 13, 14, 15  Next
Author
Thread Post new topic Reply to topic
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
Bought a hdd docking station. My old hdd didn't work with it, because it's sata 1, and this was sata 3. And my notebook hdd just didn't fit in, because there are two metal pieces sticking out in front, to screw it in place. I sure am a sucker.

Actually, I can fit the notebook one, if I'll just unscrew 4 bolts there. Didn't look carefully enough.
Post 27 Oct 2018, 15:09
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
Okay, blown yesterday on music again?
Post 28 Oct 2018, 04:56
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
https://www.youtube.com/watch?v=958e4LmXIzg
[Vinesauce] Vinny - The Elder Scrolls V: Skyrim Compilation (Part 1 of 2)

hm, something made me legid laugh. Not loud though, just barely hearable.

disabled youtube side panel, to minimize distractions.
Post 28 Oct 2018, 10:14
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
what's the point in visual studio filters? Why would I need them?

Also, why in the default project there is a stdafx.cpp file, that contains nothing but #include "stdafx.h" ? I heard a stupid idea somewhere of always adding cpp file, even if it only contains the one include, I don't know what's up with that. It's like a war time, no time to question shit.

Hm, can't just delete this...

Cannot open precompiled header file: No such file or directory

https://stackoverflow.com/questions/6096384/how-to-fix-pch-file-missing-on-build

>Right-click on stdafx.cpp in Solution Explorer. Select Properties and All configurations again as in step 4 ...

>... but this time select Precompiled Header Create (/Yc). This will only bind to the one file stdafx.cpp.

okay, this works again...
Post 28 Oct 2018, 10:27
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
windows 10 creates "System Volume Information" folder, I don't like that. What this is even? I don't like that it shits with weird files on every flash drive it opens.
Post 28 Oct 2018, 10:50
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
I need to lock all libpng usage into ifdef macro. Dealing with just one library is stressful enough, but dealing with 3 at once...
Post 28 Oct 2018, 10:57
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
Code:
                wchar_t* path = (wchar_t*)malloc(0x1000);
                wchar_t* path1_1 = wcscpy_return_end(path, gallery->pathbase);
                wchar_t* path2 = wcscpy_return_end(path1_1, L"\\");
    


E0167 argument of type "const wchar_t *" is incompatible with parameter of type "wchar_t *"

wtf? Why it cares if L"\\" is const or not?

changed this

wchar_t* wcscpy_return_end(wchar_t* dst, wchar_t* src) {

to this

wchar_t* wcscpy_return_end(wchar_t* dst, const wchar_t* src) {

and error went away. Okay.
Post 28 Oct 2018, 11:45
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
My old hdd drive has ATA (also known as IDE, and as PATA, and as Parallel ATA) connection. Why the fuck I thought it was SATA 1.

https://www.quora.com/What-is-the-difference-between-ATA-and-SATA-in-an-internal-hard-drive-disk

I think I'll buy this SATA / IDE to USB adapter for 12$ https://www.ebay.com/itm/SATA-PATA-IDE-to-USB-2-0-Adapter-Converter-Cable-for-2-5-3-5-Inch-Hard-Drive/263759459970

I wonder if I can connect my SATA only docking station to my old computer. The docking station has a usb3 connection, and the old computer most likely has usb1, maybe usb2, dunno.


Last edited by vivik on 28 Oct 2018, 13:10; edited 2 times in total
Post 28 Oct 2018, 12:25
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1470
Furs
vivik wrote:
windows 10 creates "System Volume Information" folder, I don't like that. What this is even? I don't like that it shits with weird files on every flash drive it opens.
Even Windows XP does that, so it's far older than Windows 10.

Some Linux filesystems (ext4) also add a stupid folder like that, called lost+found, for when it's mounted uncleanly and the journal kicks in to recover. I really hate this crap ruining my beautiful folder layout.

vivik wrote:
Code:
                wchar_t* path = (wchar_t*)malloc(0x1000);
                wchar_t* path1_1 = wcscpy_return_end(path, gallery->pathbase);
                wchar_t* path2 = wcscpy_return_end(path1_1, L"\\");
    


E0167 argument of type "const wchar_t *" is incompatible with parameter of type "wchar_t *"

wtf? Why it cares if L"\\" is const or not?

changed this

wchar_t* wcscpy_return_end(wchar_t* dst, wchar_t* src) {

to this

wchar_t* wcscpy_return_end(wchar_t* dst, const wchar_t* src) {

and error went away. Okay.
Because a function that doesn't take a const wchar_t* does not imply that it doesn't modify that parameter. If it's const, you'll have to go out of your way and cast it to non-const in the function to actually modify what it points to.

Think about it: a string like L"abc" is most likely placed into read-only page so any attempt to write to it will cause a page fault.

The compiler expects a function not taking const wchar_t* to modify the data it points to (since it's not const), and what do you think happens when you write to a read-only page? Page fault.

This error is there to help you realize this error instead of having to track why it page faults later.

tl;dr Use const by default. Make it a habit. If you actually need to write to it (you'll get error due to const, don't worry), then you can remove the const.

Basically, if you put const somewhere on data a pointer points to and it still compiles, then your code was wrong. Never do that.
Post 28 Oct 2018, 12:35
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
@Furs

vs2005 didn't require const in this case, but vs2017 actually throws an error. Well, if the difference is just one word, then I'm ok with it.

I wonder if I can connect my SATA only docking station to my old computer. The docking station has a usb3 connection, and the old computer most likely has usb1, maybe usb2, dunno.
Post 28 Oct 2018, 13:04
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
warn("not done yet");

Error C2664 'void warn(char *)': cannot convert argument 1 from 'const char [13]' to 'char *'

ugh, what?

nvm, I edited definition, but forgot to edit declaration. Golang fixed this in that it doesn't need functions to be in any specific order, but C++ and C still need those ahead of time declarations...
Post 28 Oct 2018, 13:20
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
goto draw_warn;

E0546 transfer of control bypasses initialization of:
variable "cur_osd" (declared at line 3818)

that's a new one as well. Yes, goto and new variables are a recipe for fun. I wish I could delete variables too. I told about this somewhere in a different thread.

whatever, moved declaration to the beginning of the function, just 4 bytes wasted for a short time, no big deal
Post 28 Oct 2018, 13:32
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
Code:
        PDWORD lpflOldProtect;
        VirtualProtect(p, 0x1000, PAGE_NOACCESS, lpflOldProtect);
    


Error C4700 uninitialized local variable 'lpflOldProtect' used

hm...

Code:
        DWORD oldProtect;
        VirtualProtect(p, 0x1000, PAGE_NOACCESS, &oldProtect);
    


yep, that works...
Post 28 Oct 2018, 13:42
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
IT'S ALIVE!!! IT'S ALIVEEEEE!!!! MUAHAHAHAHA!

I finally have some ground under my feet again, I can start working from this.
Post 28 Oct 2018, 13:50
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1470
Furs
vivik wrote:
goto draw_warn;

E0546 transfer of control bypasses initialization of:
variable "cur_osd" (declared at line 3818)

that's a new one as well. Yes, goto and new variables are a recipe for fun. I wish I could delete variables too. I told about this somewhere in a different thread.

whatever, moved declaration to the beginning of the function, just 4 bytes wasted for a short time, no big deal
Compilers are smart enough these days that it doesn't matter where you declare your variables in terms of code output at all. They convert all of them to SSA form anyways.

Reason to place variables in sub-blocks is to encapsulate them and limit their scope. A programmer's convenience basically, since it doesn't affect the output at all. It's just better design, but yeah if you use goto, you can't jump "after" a declaration from a place that doesn't have it declared. (only in C++, in C you can)

There's many cases where compilers cannot be "smart enough" due to language rules or not being able to prove something at compile time, but this isn't one of them. Wink
Post 29 Oct 2018, 12:00
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
https://www.youtube.com/watch?v=yJOC01nd2ms
The Michael Rosen 69th Birthday Collab

https://www.youtube.com/watch?v=PxvAnyILZGw
☆東方 Hardcore☆ High Speed Cucumber [Arctic]
what does this title makes you think? I'm just curious.

https://www.youtube.com/watch?v=2tFcNzcNXrc
☆東方 Flamenco☆ 激情サトリ・オーレ! [Xenoglossy]

https://www.youtube.com/watch?v=QsAutUlKD6I
Savior Cat ~hathimiri~

https://www.youtube.com/watch?v=pNkQMtZAMAw
DOOM (2016) OST - BFG Division

https://www.youtube.com/watch?v=dV_m1H3hDio
Nightcore - Anima Libera

https://www.youtube.com/watch?v=i4GqnQ06GBM
[HD] Touhou PV - Jumper (DXM)

https://www.youtube.com/watch?v=MceK9oEJnwQ
HellSinker: full sequence - 91,074 spirit (fossilmaiden)
I must say, HellSinker is the most badass name for a bullet hell game possible. You keep sinking in hell. One day I'll figure out what is going on in this game, one day. The same guy who made netplay for iamp made an english translation for this game, go read his blog entry on this while it's still online.

there was a video of somebody making a tetris in one hour, it's hilarious, I'll link it when I'll find it. In a year, my bookmarks are a mess.
Post 29 Oct 2018, 17:59
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
movie genre usually indicates the primary emotion. Music genre indicates whatever, the technology behind making it, which really doesn't matter that much.

https://www.youtube.com/watch?v=2HfAIqT-4Do
Bend Hard, Play Hard [AWA Pro 2015 AMV - Avatar The Last Airbender]

https://www.youtube.com/watch?v=M2tBvXKQqgo
Little Witch Academia Amv (Handclap)

https://www.youtube.com/watch?v=QhjRwdJyIs8
AMV Artichoke Hearts

https://www.youtube.com/watch?v=qNM90ZF8qr8
mob reaction theflamingshark thepotatolord
Post 30 Oct 2018, 16:54
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1470
Furs
Call me crazy or a nutjob, but I actually started watching anime because of the music (not the comedies tho, which is a lot of them). Some anime have really epic designed soundtracks, much better than most movies, I'm impressed in fact. Now I'm on a quest to collect their soundtracks as I watch and discover more.

I guess I'm turning into what they call a "weeb" Sad
Post 31 Oct 2018, 15:11
View user's profile Send private message Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 671
vivik
@Furs
Name a few.

I actually prefer manga to anime for the most part, anime feels terribly slow to me. Also I'm too lazy to torrent shit, so I rarely watch movies either. Watched shitton of movies in my tv days though.

https://www.youtube.com/watch?v=5dbi4N6NGn4
Serial Experiments Lain - Cyberia Theme
this track is pumping my blood real good

yumineko has cool opening, rurouni kenshin has cool op/ed, koikaze op, madoka ed, noir is nothing but ost

tomorrow:
add libjpeg project, so that I can recompile everything easy. If possible, make the project file start from "_", but libraries and such as they were. Don't specify project dependencies for now, or, actually add them, I want libjpeg to always be fresh.
Post 01 Nov 2018, 15:45
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8897
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
https://en.wikipedia.org/wiki/Serial_Experiments_Lain

Quote:
The series focuses on Lain Iwakura, an adolescent middle school girl living in suburban Japan, and her introduction to the Wired, a global communications network which is similar to the Internet. Lain lives with her middle-class family, which consists of her inexpressive older sister Mika, her emotionally distant mother, and her computer-obsessed father; while Lain herself is somewhat awkward, introverted, and socially isolated from most of her school peers. But the status-quo of her life becomes upturned by a series of bizarre incidents that start to take place after she learns that girls from her school have received an e-mail from a dead student, Chisa Yomoda, and she pulls out her old computer in order to check for the same message. Lain finds Chisa telling her that she is not dead, but has merely "abandoned her physical body and flesh" and is alive deep within the virtual reality-world of the Wired itself, where she has found the almighty and divine "God". From this point, Lain is caught up in a series of cryptic and surreal events that see her delving deeper into the mystery of the network in a narrative that explores themes of consciousness, perception, and the nature of reality.


i watched this before, but kinda forgot them all, maybe i didn't finish it,
Post 02 Nov 2018, 06:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 13, 14, 15  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.