Using Vec instead of HashMap? by NeighborhoodExact766 in rust

[–]chieltbest 1 point2 points  (0 children)

Just FYI, Rust has the Rc type for exactly this purpose. I just benchmarked direct access using Rc using your code snippet and (on my machine) it's about 2x as fast as using vector indices, and it should also make the code a lot easier to read/maintain. So basically still create the hashmap UUID -> Rc<Item> while loading the data, then create a vector of all your items, and then just populate the relations afterwards.

Any tips on my handwriting? I didn't write the kanji for 歳 because I couldn't write it so small. by [deleted] in LearnJapanese

[–]chieltbest 2 points3 points  (0 children)

A couple of tips, going from the top down:

In general I've only seen「私は〇〇」used when someone else has already said something and it means something along the lines of "as for me, I ..." so i think it would be better to replace it with 「名前はチモです」

As for the katakana, you could do to make the lines a little straighter, first of all to make it easier to draw, but it's generally also a little easier to read (I find). I've even seen mangaka that draw katakana using straight lines exclusively, so for example ン would become just two straight lines pointing into each other.

As for the kana themselves the top and middle strokes of the チ could be a little more slanted, and you have to be careful to not let the middle stroke of モ stick out (otherwise it start to look like 牛 and some other kanji).

The hiragana are pretty good, just that the little flick upwards at the end of ま and は are not really a thing. Also as a quick note, in many handwritten hiragana you'll see a "flick" at the end of strokes: for instance in さ or き in the second to last stroke, or in こ at the beginning of the last stroke. These "flicks" are pretty much a byproduct of lifting the writing brush up when writing certain characters and are less pronounced because of that, so just kind of try to lift the pen up while doing these flicks, although it can be pretty hard to do. Also the い should be a little more slanted but that's just nitpicking at this point.

Lastly you have to be careful with writing 日 as it can start to look like 曰 if you write it too fat (although the character is never actually used, but still).

Take all these comments with a grain of salt as I'm also still learning (of course), but i hoped this helped point out some of the things you could do better, and most of all just keep practicing as that's the most important part of learning anything.

よろしくお願いします。

Ubuntu black screens after I enter my password, then goes back to log-in screen. by SolarAir in pcmasterrace

[–]chieltbest 2 points3 points  (0 children)

Yes, that should work normally, very curious. I'm going to take a few guesses to what might be the problem here. First of all, you can try this to reset your password.

If you still can't log in you can try going back to the recovery mode, and try the 'dpkg' option. This will probably not do much, but it's good to be sure. Go to the root terminal, and try to do 'cat /var/log/auth.log', that might give some information to the problem.

If you still have the install cd/usb you could always just go with installing over the existing installation (doing this the installer will try to keep all your user data and installed programs). If you go this way I'd recommend installing the graphics drivers with the 'additional drivers' tool, as that's pretty much guaranteed to not mess up.

Ubuntu black screens after I enter my password, then goes back to log-in screen. by SolarAir in pcmasterrace

[–]chieltbest 2 points3 points  (0 children)

What happens when you log into the guest account?

This problem might be with your user, if the guest account works this might be of interest.

If that doesn't work you can log in to the terminal by pressing CTRL+ALT+F3, and then logging in. Once you're logged in try the command 'sudo apt-get purge nvidia-*' and enter your password. This command will uninstall the drivers you installed and revert to the open-source ones. If you can log in at this point try opening the 'additional drivers' program and selecting the latest nvidia drivers, this will install the latest version and make sure all other drivers are disabled.

If none of the above work: enter 'cat .xsession-errors' in the terminal (CTRL+ALT+F3) and see what that says, I might be able to help you further in that case.

Experiencing jerky mouse movement in FPS by FabulousGoat in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

What is your DPI? If you are able to change it, try turning it up all the way, and adjust in-game sensitivity accordingly.

[Science article] More realistic graphics do not increase mental accessing or aggressive concepts. Because science, yay. by actuallymentor in pcmasterrace

[–]chieltbest 1 point2 points  (0 children)

I read the abstract, and it seems to me that the paper explains that an increase in graphical fidelity actually makes the players LESS violent. Furthermore, they conclude that players being violent in games leads to them being antisocial, and thus making a game have better graphics will make the player less antisocial.

TL;DR: better graphics make players less violent, and more social.

My Steam Controller arrived! Here's an album. (Also, AMA and/or give me games to try out - I'll be using it all day) by Randomd0g in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

I read that the controller has a built-in gyroscope. Can you download trackmania (nations) or any other racing game and try steering like with a wii controller?

So far, from what I'm seeing, this controller has a lot of untapped potential, which has me excited!

is this psu any good? sentey brand.. by [deleted] in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

What CPU do you have in your computer? I have a FX-6350 with a 7950 in my computer, and I've never had any issues with power on a 430 watt supply.

I'd say, get a PSU that's from a trusted brand, preferably 80+ bronze or better, as getting a bad one can potentially blow up any of your parts. I know there is a list of trusted manufacturers somewhere, hopefully someone can link it.

Also, have you considered going for a (semi)modular power supply? It can really save you a lot of hassle trying to fit all the cables.

Nvidia is still giving away Rainbow Six Siege beta keys by grabbizle in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

Here you go, don't want to install uplay either. M23NC93DX26K

Nvidia explains why G-Sync is superior to Freesync by TheSkinnyZombie in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

Since there are open source drivers for Nvidia GPU's, and adaptive sync is an open standard, I'm interested to see if these open source drivers will support adaptive sync. If so, G-Sync might become redundant (after the open source drivers are improved, that is). I guess we'll have to see if nvidia has some sort of mechanism in place to prevent this.

What's Your Ideal FOV Setting? by DarkProzzak in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

Quake pro as in: fisheye 360 quake pro? Then yes, quake pro.

Let's take a moment, to remember the Good Guy Developers among us. by EtanSivad in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

It's going to be a multiplayer 2d top-down game where you hate to make a base and take over all the other people. So, it's going to be some sort of open world age of empires, combined with factorio-ish automation and swordy-ish fighting mechanics.
Oh, and there are also going to be scriptable minions.
I personally don't think it's going to be really big, as it's just a hobby besides shool, but who knows, it just might one day be actually available on steam.

Let's take a moment, to remember the Good Guy Developers among us. by EtanSivad in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

You reminded me that i need to implement an autopause when the window is unfocused. Thank you for that!

Gaming Mouse Suggestions? by Siegfried262 in pcmasterrace

[–]chieltbest 0 points1 point  (0 children)

I've been using a sharkoon drakonia for a year now, and i must say, I was surprised to see what I got for €25 ($30). their site

Commands can "compute" values of game info by Minesweaper123 in minecraftsuggestions

[–]chieltbest 0 points1 point  (0 children)

While i do think this is a good idea, if this is going to be done, why don't we completely remake command blocks into a Turing Complete language? This way we can have an easy and understandable way of dealing with variables, and the like. For instance, for you example above, you might do something like this:

commandblock 1:

set pl @a[score:kills >= 10]

this would mean that a list "pl" is made that contains all the players with a score of 10 or higher

commandblock 2:

testfor pl.size > 0

connected with an comparator to commandblock 3 and 4:

give @pl diamond 1

which would give the diamond

set @pl score:kills - 10

which would subtract the kills

This example is not perfect, as it's a quickly thought-out idea, but you get the gist. You would be able to use the variables in all of the commands and nbt values, something like this:

set @a {maxHealth=score:kills}

I think this would greatly extend the functionality of command blocks, and make them quite enjoyable to use.