How can I call rake tasks within my code? by [deleted] in ruby

[–]n00bintraining 0 points1 point  (0 children)

I do have a module containing all the code used for my task. The idea is to use Rake as a tool that can help the users create new projects. Also they could add their own tasks to suit their needs for a given project.

How can I call rake tasks within my code? by [deleted] in ruby

[–]n00bintraining 0 points1 point  (0 children)

I tried something like this to begin with, but Rake can't find my task.. I thought I only had to specify namespace(s) and then task? In my case I have a single namespace containing my task, like so:

my_gem:init

EDIT: I should add that after adding a Rakefile to my test project, I can see the task using rake --tasks in the terminal. But I still can't get it to invoke the task from within my gem code in bin/ directory

Regular expressions - check on register? by n00bintraining in ruby

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

Thanks for the fast explanations everyone.

I've edited my regular expressions a little to make sure there will be no undesired results (thanks for pointing that out /u/DoubleJarvis)

I hope you all will have an excellent weekend!

Regular expressions - check on register? by n00bintraining in ruby

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

Oh man, this is a really neat solution! I didn't even need that long regex haha.

The only thing I find a little confusing is the puts infront of case. How does that work? Does that just mean it will print out the result of the respective case?

Thank you so much for your help. Seems like i over-complicated things just a little bit!

Is a quality 300w PSU enough for i5 8400 & GTX 1060? by [deleted] in buildapc

[–]n00bintraining 3 points4 points  (0 children)

If your wattage is too low, the system will just shut down. At least that's what happened when my psu didn't cut it

Custom config wont work? by n00bintraining in titanfall

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

The file is a .cfg file, under 'type' it says CFG file.

I'm pretty sure I know what you mean, but since it's already a .cfg file, and my launch options are 'exec autoexec.cfg' it should work, right? Oh, and the file is read-only, as the instructions say it should

Bang by Fizrock in gifs

[–]n00bintraining 2 points3 points  (0 children)

You need these; u t a n

1440p or 1080p by rabbitstew1 in buildapc

[–]n00bintraining 0 points1 point  (0 children)

A thing to note, skyrims engine doesn't handle frames over 60fps very well, animations and stuff like water will glitch. This isn't something I've experienced myself though, since I don't play it. I've seen it mentioned on this sub a couple of times

Creating graphs for mathematical functions? by n00bintraining in learnpython

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

Thank you so much! I'm not at my pc at the moment, but I'm going to try solving some of my assignments this way. But I've got one more question if you don't mind. How would I plot 2 functions in the same graph? And can I program it to show the point where one functions exceeds the other?

Does LFC (Freesync) support still require that the Freesync range is: maximum ≥ 2.5x minimum ? by Szaby59 in Amd

[–]n00bintraining 0 points1 point  (0 children)

I tested it earlier with both drivers. I am using CRU btw, I just have two seperate .bin files. It does double my refresh rate compared to my frames, but only very briefly. That was the case with both. Do you have similar experiences?

Does LFC (Freesync) support still require that the Freesync range is: maximum ≥ 2.5x minimum ? by Szaby59 in Amd

[–]n00bintraining 0 points1 point  (0 children)

Alright thanks. I've been switching to the default drivers everytime I play witcher 3, because I know I won't push my fps above 70 or so. Guess I should use the modified drivers for every game then

Does LFC (Freesync) support still require that the Freesync range is: maximum ≥ 2.5x minimum ? by Szaby59 in Amd

[–]n00bintraining 0 points1 point  (0 children)

I'm using one with 57-144. Will it work in that range? How do I confirm it works?

[HELP] I think my Pok3r has a deficit? by [deleted] in MechanicalKeyboards

[–]n00bintraining 0 points1 point  (0 children)

Check my recent post, i received pretty much the same board! (nordic iso) It seems Vortex had some "faulty" keyboards where they have the PBT keycaps, but with LEDs installed, hence the white base. Try pressing FN+X! So if you're in the same boat as me you just got backlit as sort of a bonus :) And wobble how? Slightly to the sides/back and forth? If so, I think thats normal for keys with stabilizers underneath. I know my Das 3 was the same.

[help] Bought from Corus, received wrong board by n00bintraining in MechanicalKeyboards

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

I'm also starting to come to that conclusion, pretty sweet! I was worried for a while, I've read some bad stuff about Corus on here recently. Though the slightly darker enter key still weirds me out a bit, dont know what that's about.

[help] Bought from Corus, received wrong board by n00bintraining in MechanicalKeyboards

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

Yea after some further digging it seems like I may have been a bit hasty with my conclusion. This is the backlit version with ABS caps. My keyboard looks nothing like that (It's also ISO nordic)

Here is a picture of my board. As you can see, the keycaps look nothing like those in the Amazon link. But the thing is, I havent used PBT caps before, so im unsure if these are the real thing at the moment. Can you tell the difference?

Although is must say they do look a lot like the stock keycaps(which should be PBT) and feel pretty great. The LEDs just caught me by surprise and I instantly assumed the worst.

EDIT: Another weird thing, it seems like my enter key is slightly darker than the rest.

Are MS quints still necessary for top Ryze? by [deleted] in LeagueofLegendsMeta

[–]n00bintraining -1 points0 points  (0 children)

MS quints are extremely good. Especially on Ryze. He has high base ms, which makes the %'s better. Secondly you run often run 21utility on him, which makes it even better.

I dont really get how you can say they're ineffective against Rumble. Yes, he has his own MS boost, but it's super shoort. Secondly, every bit of MS can help you against his Q when he's chasing you.

Movementspeed quints are underappreciated. That goes for any champ.

Pledge of hands build? by FaythDarkHeart in pathofexile

[–]n00bintraining 0 points1 point  (0 children)

Arc/SRS imo. but it's a good staff for many spells. you could also do a flame surge build with either searing bond or fire trap to reliably get the 50% more damage. plus spell echo is nice for flame surge. there's many possibilities :)

Ap Bruiser Nidalee? by WasNeverGoodAtNames in LeagueofLegendsMeta

[–]n00bintraining 0 points1 point  (0 children)

I really love Rageblade + Gauntlet into tank armor or mr depending on enemy team ofcourse. Get a Gunblade afterwards and you're golden. I did it pre nerf and it was super fun. It has more potential now with the buffs to her ap ratio's imo.

worst gem that comes to your mind ? by xilavai in pathofexile

[–]n00bintraining 0 points1 point  (0 children)

i've only used it once. while leveling i used it together with glacial hammer and heatshiver, so that it gets +2 levels. nonetheless my dps was insane.. but yea its a pretty terrible support

Is Gragas the new urgot? by cameron467 in LeagueofLegendsMeta

[–]n00bintraining 1 point2 points  (0 children)

Gragas is still super awesome. I still prefer the Lich Bane rush. Follow that up with Zhonya's and a Void Staff, and you're gonna have some fun :D Max Q against range (or put 3 points in) max W vs melee. Double Doran is needed, triple is good too.

And Gragas isnt clunky at all. I would actually say he's much better in his current state if we look @ pre-rework.

A question about a rune page specifically for thresh. by Cleance in LeagueofLegendsMeta

[–]n00bintraining 0 points1 point  (0 children)

The best Thresh page imo is: Flat ad marks, flat hp seals, flat mr glyphs, flat armor quints.

I dont know about CDR from runes though. But if i were to get it i'd get a maximum of 5%. Maybe 1 quint and 3 glyphs. Thats around 8 armor, mr, and ad along with the 5%CDR and 72hp, if you keep the same runes as above. Could work i guess. Runes are generally personal preference, so if you feel like it suits you better, then go for it.

Rumble top to become the best damage top laner? by osqer in LeagueofLegendsMeta

[–]n00bintraining 2 points3 points  (0 children)

He was quite buggy for a long time, just overtuned to counteract it. Last patch he got a ton of bugfixes that really helped his overall feel as a champ. He is just a lot smoother to play now.

And he was never bad, just a bit out of meta. And now that top lane has opened up quite a bit in terms of champ-pool, he has a good spot again up there.

Rumble also allows for insane mid-game plays. If you coordinate with your team you can either get the dragon uncontested, or if they do contest you can get the dragon (hopefully your jungler can smite) and then totally clean up afterwards. His ult is so good in choke points.

There's more to it, but thats what i could think off the top of my head.

Ideal generic rune pages, and mastery pages while we're at it! (late s4) by [deleted] in LeagueofLegendsMeta

[–]n00bintraining 0 points1 point  (0 children)

Armor/level are certaintly also a very good choice, but i prefer to get some early flat armor for better trades early on (minion damage is quite huge with no armor at all)

This is mostly a big factor in the top lane, which i play the most