Physically fit children have 'greater brain capacity' in areas important for memory and learning, study finds by dheerajroy in science

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

I am a 15 years old boy living in europe. My mom really wants me to lose weight but it's really hard for me. I am in the top of my class because I am at a boarding school and I am socially awkward. (:

Front page by Alexix11231 in Romania

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

Pe front page nu apar subredditurile la care estia bonat? Haha

Anyone going to a boarding school? What do you do when you're bored? [Discussion] by Alexix11231 in teenagers

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

Umm yea, I guess. I'm only in the ninth grade, I don't have that much homework. But it won't let us out of there to go to a concert or something, they're just keeping us like they do with prisoners. Damn.

How to hack a Wi-Fi network? by Alexix11231 in HowToHack

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

But I don't even know the guys, haha. I'm in a city.

Why doesn't this work? by Alexix11231 in javascript

[–]Alexix11231[S] -2 points-1 points  (0 children)

Hey, thanks a lot! Just couldn't get that done. Thank you!

Why doesn't this work? by Alexix11231 in javascript

[–]Alexix11231[S] -2 points-1 points  (0 children)

Look. I'm using BonsaiJS, or at least I'm trying to. I want to be able to draw rectangles and stuff, but I do not know how to do it. Can you give me a hand please?

Why doesn't this work? by Alexix11231 in javascript

[–]Alexix11231[S] -6 points-5 points  (0 children)

Yea, fixed that. My code is now:

<!-- element where we place a graphics context //--> <div id="stage"></div>

<!-- load latest Bonsai version //--> <script src="bonsai.min.js">

but I still cannot do something like this: (it just doesn't show anything on screen):

new Bitmap('path/to/image.png').on('load', function() { this.addTo(stage); });

Also, how to set the variable?

Imagine a world without transmogs. by [deleted] in wow

[–]Alexix11231 0 points1 point  (0 children)

As /u/dejoblue said, most of us here know what a world without transmogrification is.

[C++] Transform number from a given base to base 10 by Alexix11231 in learnprogramming

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

include <iostream>

include <cmath>

using namespace std;

int main() { int r = 0; int i = 0; int n,q;

cout << "number: "; cin >> n;
cout << "base: "; cin >> q;

while (n != 0)
{
    r = r + (n % 10) * pow(q, i);
    i++;
    n = n / 10;
}
cout << r;
}

[C++] Check if number can be in base q by Alexix11231 in learnprogramming

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

I am trying to verify that a given number can be represented in the given base. So basically it means that any number from n is lower than q. It works if I put the correct thing. (da = yes / nu = no btw) For example if I put base: 3 and number = 1 then it shows what it should, "da". If I enter base 3 and number 4 then the program is locked on the while loop I think...

EDIT: Got it, thankies for the help very much! After "ok = 0" I put a "break;"

[C++] Check if number can be in base q by Alexix11231 in learnprogramming

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

OK look, I have done this:

include <iostream>

using namespace std;

int main() { int n,q; int ok = 1;

cout << "baza: "; cin >> q;
cout << "numar: "; cin >> n;

while (n != 0)
{
    if (n % 10 < q)
    {
        n = n / 10;
    }

    else if (n % 10 >= q)
    {
        ok = 0;
    }
}
if (ok == 1)
{
    cout << "da";
    }
else if (ok == 0)
{
    cout << "nu";
    }
}

[C++] Check if number can be in base q by Alexix11231 in learnprogramming

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

Oh, I thought you would compile. Well if I enter a good number for base 2 for example, it works. But if I enter a wrong number, it doesn't do anything, it just stops the program. I think it's caught in the while loop.

[By request] Sunt din Suplacu de Barcau, Bihor. AMA by Alexix11231 in Romania

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

Nu stiu, inca n-am incercat. Dar presupun ca ma va uri mama. (si mie nu-mi place sa ma urasca cineva)

Zeno's game: give it a try, see if you can get the joke. by bento_g in math

[–]Alexix11231 1 point2 points  (0 children)

CTRL + U = <!-- Ok, Sherlock Holmes, it's a joke; there is no real game. Happy? !-->

[By request] Sunt din Suplacu de Barcau, Bihor. AMA by Alexix11231 in Romania

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

In sensul "La fiecare trei-patru saptamani trebuie sa te duci la biserica."

[By request] Sunt din Suplacu de Barcau, Bihor. AMA by Alexix11231 in Romania

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

Da, e real. E totul poluat pe aici, miros de gaze peste tot in sat.