Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
50 That's unfortunate, especially if it's his first year teaching :( I feel sorry for him!
51 not his first year teaching in general, only first year teaching at this school.
And to be honest, I don't think he is in that much trouble (yet)
 

triggerfinger12

Well-Known Member
Apr 17, 2017
255
457
89
Rock
51 Because I have to write a paper, in french, without Google Translate. It's hard enough speaking it. I can't spell to save my life.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
52 for a school "project" we need to make a site where we can write a bit about our projects among other stuff.

I decided that just writing a bit about the brainFuck interpreter that I wrote together with a link to the github page is boring and decided to play a bit with WASM.
So, I now have a piece of JS, that calls a C function that got compiled into WASM. That calls the lua interpreter that also got compiled to WASM which then runs my brainfuck interpreter which runs whatever brainfuck code the user wrote :)
There are a few bugs but those are for as far as I know outside of my code so.... meh.
upload_2017-10-3_19-25-25.png

(note that the menu normally would fill the page. However, due to the way I made this screenshot and due to it not fitting on my monitor it cut's off :( .)
Also, credit where credit is due, I didn't compile lua to wasm myself. For that you need to look at https://github.com/vvanders/wasm_lua

A bit sad that the teacher that gave this project doesn't know how to write code and uses IE (yes. IE, >_<) which does not support WASM :( . So, I don't think that she will ever understand what is going on on this page. Oh well, it was fun to do
 
  • Like
Reactions: triggerfinger12

triggerfinger12

Well-Known Member
Apr 17, 2017
255
457
89
Rock
52 for a school "project" we need to make a site where we can write a bit about our projects among other stuff.

I decided that just writing a bit about the brainFuck interpreter that I wrote together with a link to the github page is boring and decided to play a bit with WASM.
So, I now have a piece of JS, that calls a C function that got compiled into WASM. That calls the lua interpreter that also got compiled to WASM which then runs my brainfuck interpreter which runs whatever brainfuck code the user wrote :)
There are a few bugs but those are for as far as I know outside of my code so.... meh.
View attachment 34735
(note that the menu normally would fill the page. However, due to the way I made this screenshot and due to it not fitting on my monitor it cut's off :( .)
Also, credit where credit is due, I didn't compile lua to wasm myself. For that you need to look at https://github.com/vvanders/wasm_lua

A bit sad that the teacher that gave this project doesn't know how to write code and uses IE (yes. IE, >_<) which does not support WASM :( . So, I don't think that she will ever understand what is going on on this page. Oh well, it was fun to do
53 I had to create an HTML website in my ICT (Information and Computer Technology) Class. I finished the work in the book, so the teacher gave me a project to do that another girl in my class was struggling on for a week. I solved it in 20 mins :D
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
52 I still remember being given 3 choices for an assignment, with the third being so difficult that he would give you a letter grade bump on the next quiz if you did it right. He let go of the computers and I had it done 15-20 minutes later. We had about a week. I still ended up being one of two students in the class to actually get that one done.
 
  • Like
Reactions: triggerfinger12

triggerfinger12

Well-Known Member
Apr 17, 2017
255
457
89
Rock
52 I still remember being given 3 choices for an assignment, with the third being so difficult that he would give you a letter grade bump on the next quiz if you did it right. He let go of the computers and I had it done 15-20 minutes later. We had about a week. I still ended up being one of two students in the class to actually get that one done.
53 You see, this is the kind of thing that I don't get about some people. They look at something, and try to solve it using complicated methods and it is just a mess. I just look at a problem, and try to find the simplest solution :D
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
52 The other person brute forced it in the simplest way possible. Their code was also several thousand lines long. Mine was about 20 or 30
Edit: Found the assignment doc with the screenshot of the code. Because he was weird about that. 17 lines.
 
Last edited:

MrMonsterGuy18

Well-Known Member
Oct 3, 2016
200
278
89
The Grave
51 I'm beginning to fear my love of Minecraft is fading. I've barely played/worked on it, every time I think of it o get nostalgic, and I barely read the forums on what to do. RIP Monster's interest in modded minecraft December 31, 2015 - October 4, 2017
 

triggerfinger12

Well-Known Member
Apr 17, 2017
255
457
89
Rock
52 My assignment was actually surprisingly simple. I had to create a table like this:
Screenshot (19).png
but with B and D being half the size they are currently. (It worked on Microsoft Edge, and since that's all the computer I was on had, that's all that counts :))
51 I'm beginning to fear my love of Minecraft is fading. I've barely played/worked on it, every time I think of it o get nostalgic, and I barely read the forums on what to do. RIP Monster's interest in modded minecraft December 31, 2015 - October 4, 2017
We shall remember you, always. *Salutes*
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
52 My assignment was actually surprisingly simple. I had to create a table like this:View attachment 34756 but with B and D being half the size they are currently. (It worked on Microsoft Edge, and since that's all the computer I was on had, that's all that counts :))

We shall remember you, always. *Salutes*
53 so.... you had to work with percentages of width, colspan and rowspan??
Top row consists of 3 cells. All with a row-span of 1.
D has a rowspan of 2 and a colspan of 1.
D has a colspan of 1.
E and F have a colspan of 2 and a rowspan of 1.

If A stays the same width, but D needs to be half as wide, A needs to get a colspan of 2. and E and F one of 3.

Not sure if it works like that (too lazy to try) but something among those lines should do the trick. I however would probably go the lazy way and assuming it didn't have to be a real table just used bootstrap :p
 

triggerfinger12

Well-Known Member
Apr 17, 2017
255
457
89
Rock
53 so.... you had to work with percentages of width, colspan and rowspan??
Top row consists of 3 cells. All with a row-span of 1.
D has a rowspan of 2 and a colspan of 1.
D has a colspan of 1.
E and F have a colspan of 2 and a rowspan of 1.

If A stays the same width, but D needs to be half as wide, A needs to get a colspan of 2. and E and F one of 3.

Not sure if it works like that (too lazy to try) but something among those lines should do the trick. I however would probably go the lazy way and assuming it didn't have to be a real table just used bootstrap :p
54 Actually no, because D needs to be half of A, and B needs to be 2/3 A, and C 1/3 A. So we have a width of 12 columns, A is 6, B is 4, C is 2, D is 3, And E and F are 9. But, for some reason that doesn't work, but a colspan of 10 fo E and F and a colpan of 1 for D does. (On MS Edge) It's very weird.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
54 Actually no, because D needs to be half of A, and B needs to be 2/3 A, and C 1/3 A. So we have a width of 12 columns, A is 6, B is 4, C is 2, D is 3, And E and F are 9. But, for some reason that doesn't work, but a colspan of 10 fo E and F and a colpan of 1 for D does. (On MS Edge) It's very weird.
55 yes, but you can set the cells of the top row's correctly using css's width thingy (use percentages). Then you can probably do the second row almost entirely using colspan.

either way, if it worked it works no need to change it :p