[QUOTE=Dj-J3;27221433]The only way to prevent it is to post some interesting content.
We're doomed. :saddowns:[/QUOTE]
Hey,
Quick, someone post something interesting!
[QUOTE=DrLuke;27221076]What, why?[/QUOTE]
It hurts the Microsoft monopoly. I also believe it's easier to get someone to switch from Mac to a linux distro than from Windows to a linux distro.
Started on Project Euler. Problem 1, done!
[cpp]
#include <iostream>
int index;
int totalSum;
int main()
{
for (index = 0; index < 1000; index++)
{
if (index % 3 == 0 || index % 5 == 0)
{
totalSum += index;
}
}
std::cout << totalSum;
return 0;
}
[/cpp]
Hey,
I've been working on a self-contained math formula renderer for some school projects of mine after finding LaTeX and MathML C# renderers too heavy or crippled by licensing.
The output is a transparent image:
[img]http://anyhub.net/file/1nsp-cool_mess.png[/img]
The input is basic textual input:
[code]
hold(-lim(integrate(sum((x^lim(r^root(3,e),r,integrate(x,x,a,b))+integrate((a*cos(sqrt(x)))/b,x,root(5,integrate(1/x+cos(1/x),x,lim(1/h,h,0),b)),root(3,pi)))/((a+1/(1+1/(1+1/b)))^cos(sqrt(1+sqrt(1+sqrt(1+w))))+(sum(n+m,n,-inf,inf))/integrate(k,k,-inf,z)),x,1,inf),x,q,r),z,inf))
[/code]
This formula doesn't have any sort of mathematical significance, but at least the rendering works :v:. Some of the expressions (like roots, exponents, etc.) can use a little tweaking.
Image filtering using 2d fft and ifft whoop :]
Images are original | 2d fft | reconstructed image
[img]http://u.cubeupload.com/borsty/filter2.png[/img]
High frequency emphasis
[img]http://u.cubeupload.com/borsty/filtering.jpg[/img]
Silly ideal lowpass approach :V
[QUOTE=limitofinf;27221854]Hey,
-content-
[/QUOTE]
Okay, you putting 'Hey,' at the top of all your posts is giving me OCD.
[QUOTE=limitofinf;27221854]Hey,
I've been working on a self-contained math formula renderer for some school projects of mine after finding LaTeX and MathML C# renderers too heavy or crippled by licensing.
The output is a transparent image:
[img_thumb]http://anyhub.net/file/1nsp-cool_mess.png[/img_thumb]
The input is basic textual input:
[code]
hold(-lim(integrate(sum((x^lim(r^root(3,e),r,integrate(x,x,a,b))+integrate((a*cos(sqrt(x)))/b,x,root(5,integrate(1/x+cos(1/x),x,lim(1/h,h,0),b)),root(3,pi)))/((a+1/(1+1/(1+1/b)))^cos(sqrt(1+sqrt(1+sqrt(1+w))))+(sum(n+m,n,-inf,inf))/integrate(k,k,-inf,z)),x,1,inf),x,q,r),z,inf))
[/code]
This formula doesn't have any sort of mathematical significance, but at least the rendering works :v:. Some of the expressions (like roots, exponents, etc.) can use a little tweaking.[/QUOTE]
Why am I tempted to try and solve that?
[QUOTE=limitofinf;27221854]LaTeX and MathML C# renderers too heavy or crippled by licensing.[/QUOTE]
LaTeX... too heavy? too licenced? its opensource and 100% free, also the heavy part is all the add-ons they bundle with the Microsoft release if that's what you're thinking of
[editline]5th January 2011[/editline]
Also the MiKTeX release is lighter i think
[editline]5th January 2011[/editline]
But nice job on the output :)
[QUOTE=sLysdal;27222005]LaTeX... too heavy? too licenced? its opensource and 100% free, also the heavy part is all the add-ons they bundle with the Microsoft release if that's what you're thinking of
[editline]5th January 2011[/editline]
Also the MiKTeX release is lighter i think[/QUOTE]
Hey,
Maybe I'm just stupid :v:. Can you link me to a light-weight C# LaTeX renderer under a zlib/BSD type license?
[QUOTE=humanz;27221822]Started on Project Euler. Problem 1, done!
[cpp]
#include <iostream>
int index;
int totalSum;
int main()
{
for (index = 0; index < 1000; index++)
{
if (index % 3 == 0 || index % 5 == 0)
{
totalSum += index;
}
}
std::cout << totalSum;
return 0;
}
[/cpp][/QUOTE]
No need to waste time using the expensive modulo operator.
[cpp]#include <iostream>
int main()
{
int totalSum = 0;
int take3 = 3;
int take5 = 5;
for ( int index = 0; index < 1000; index++ )
{
if ( index == take3 || index == take5 )
totalSum += index;
if ( index == take3 ) take3 += 3;
if ( index == take5 ) take5 += 5;
}
std::cout << totalSum << std::endl;
return 0;
}[/cpp]
With 10000000 iterations, it was approximately 6 times as fast as your original version.
Yes, I'm Vaginakiller
[QUOTE=DrLuke;27223105]Yes, I'm Vaginakiller[/QUOTE]
I want to reply with something witty, but I have a brain fart or soemthing.
Well the thread is derailed. I was a lazy ass about working out over my break... I lost 4 lbs. (of muscle), my max for bench press dropped 20-30 lbs. and I can't flat bench my 35lbs :(
Ontopic:
[cpp]
// Troll.cpp
// Calculates sum of multiple of 3 & 5 under 1000.
#include <iostream>
#include <math.h>
int main() {
int next = 1;
int sum = 0;
for(int index = 0; index < 1000; index++) {
if(ceil(index*0.33f) == next || ceil(index*0.20f) == next) {
sum += index;
++next;
}
}
std::cout << sum << std::endl;
return 0;
}
[/cpp]
[QUOTE=iRzilla;27223854]That's because you can't be a ripped programmer. Unless you're compwhizz.[/QUOTE]
Yes you can. Ever heard of bicycle powered laptop?
[QUOTE=sLysdal;27213507]If you have too many pages it could get very messy, maybe add a quickbar at the bottom with all pages(by logo) like in the Music app[/QUOTE]
It's just a concept - something to be different from the rest. A tab bar might just end up being the final navigation, but I'm trying a few things that aren't very normal to Twitter apps.
and oh jeez guys, i thought you were joking about how these threads get derailed into debate after a single post.
[QUOTE=iRzilla;27223925]Tell me more.[/QUOTE]
[media]http://www.youtube.com/watch?v=bSX1Tf3wbQI[/media]
That idea needs a little working on, and then I think it wouldn't be a bad idea at all!
Some make a laptop powered by situps then we can all look like DevBug
[QUOTE=foszor;27224449]Some make a laptop powered by situps then we can all look like DevBug[/QUOTE]
I actually use a situp invented by a friend (it works out your whole body). It's pretty much an inclined situp with a medicine ball :P
Behold! I bring the coveted content!
[media]http://dl.dropbox.com/u/5027205/Screenshot.png[/media]
Just starting to learn SFML, doesn't seem to bad right now.
[QUOTE=DevBug;27225390]I actually use a situp invented by a friend (it works out your whole body). It's pretty much an inclined situp with a medicine ball :P[/QUOTE]
Can you post a diagram of it? I work out a lot and run (I'm on the track team at my high school) but my abs are crap, I should exercise them more.
[QUOTE=neos300;27225477]Can you post a diagram of it? I work out a lot and run (I'm on the track team at my high school) but my abs are crap, I should exercise them more.[/QUOTE]
Hey,
Go to a gym/weight room and look for a weight-based ab machine. Doing crunches with an additional 100-200lbs does wonders for your abs, assuming there isn't any fat covering them.
ITT: abs
[QUOTE=DuCT;27225418]Behold! I bring the coveted content!
[media]http://dl.dropbox.com/u/5027205/Screenshot.png[/media]
Just starting to learn SFML, doesn't seem to bad right now.[/QUOTE]
OH GOD WHAT THE FUCK IS WRONG WITH YOU
...sorry, I have adverse reactions to the Ubuntu theme.
[QUOTE=lavacano;27227397]OH GOD WHAT THE FUCK IS WRONG WITH YOU
...sorry, I have adverse reactions to the Ubuntu theme.[/QUOTE]
Eh, just reinstalled, haven't really re-themed everything yet. And besides, it's just my laptop, and not my desktop, so I don't really use it much.
[IMG]http://i51.tinypic.com/2q0otch.png[/IMG]
Working combat, now with damage formulas and enemies that fight back! :buddy:
How should I handle saving and messages?
Currently, messages pop up at the bottom screen, and don't take kindly to other messages trying to been seen at the same time, and I was thinking of having them scroll up the main screen.
As for saving, I have nothing so far. If it means anything, all entities (the walls, npcs, players) are all stored in a table.
My eventual goal is to make a random generated dungeon crawler, much like diablo, nethack, rouge, etc, and have it portable to other systems like dingoos and canoos with nlove, for squary fun while on the go!
[editline]5th January 2011[/editline]
I also need to re-balance all the equipment I have so far, because of my new formulas (kinda based on the formulas in KoL)
Does anyone want to test it?
[QUOTE=ZenX2;27227773]Does anyone want to test it?[/QUOTE]
Sure, why not?
[url]http://anyhub.net/file/1nz0-grid.love[/url]
There ya go, but there's not much too it yet.
You can open the console with ~, it runs lua that you enter.
Escape breaks away from any text entry.
WASD to move, arrow keys for using things, FTGH for menu (as long as I have it always open.)
Put EnemyTest() into the console if you want to try out fighting an enemy.
[editline]5th January 2011[/editline]
Also, you can't die yet.
Sorry, you need to Log In to post a reply to this thread.