how the hell do you guys get the motivation to keep working on your projects?
this seems piss easy in comparison, but trying to work on a simple program that solves one of these really basic maths puzzles:
[t]http://images.mentalfloss.com/sites/default/legacy/blogs/wp-content/uploads/2009/10/mathsq-01-q.gif[/t]
it's not exactly the greatest challenge but because the program has to create potential solutions, it's a bit of a dick. I feel like there's definitely another way to write it than the way I currently am ( as it seems like it should be recursive)
Managed to make it work for a simple "? + 4 * ? = 18", but making it work for a 3x3 nested grid is poo
[QUOTE=Instant Mix;49979857]how the hell do you guys get the motivation to keep working on your projects?
this seems piss easy in comparison, but trying to work on a simple program that solves one of these really basic maths puzzles:
[t]http://images.mentalfloss.com/sites/default/legacy/blogs/wp-content/uploads/2009/10/mathsq-01-q.gif[/t]
it's not exactly the greatest challenge but because the program has to create potential solutions, it's a bit of a dick. I feel like there's definitely another way to write it than the way I currently am ( as it seems like it should be recursive)
Managed to make it work for a simple "? + 4 * ? = 18", but making it work for a 3x3 nested grid is poo[/QUOTE]
You're likely searching for backtracking/backjumping. Try implementing the simplest variant (backtracking) first.
I get motivated from setting up an objective and then getting into the mood, first by brewing reckless amounts of coffee and then randomizing a playlist with something that resonates with my current state of mind. (always ends up in metal assortments due to the coffee induced hype)
brute force is the obvious solution
[QUOTE=helifreak;49979603]Might want to change the redirect on vennstrom.codes to [url]http://www.xn--vennstrm-t4a.se/[/url] instead of [url]http://www.vennström.se[/url] because the first one works in Firefox and the second just says it can't find the name server.[/QUOTE]
I guess it's from an update but my firefox does the opposite, the first actually redirects to the second
Has anybody here tried CryEngine V? If so, I'm curious to hear your thoughts on it.
[QUOTE=PortalGod;49980040]I guess it's from an update but my firefox does the opposite, the first actually redirects to the second[/QUOTE]
It looks like that in the address bar but if you click the second one it won't load. The first one loads and changes the address bar to the correctly encoded value. There's something fucky going on in the Firefox unicode URL handler because other unicode URLs work fine when I click them on Google searches but if I put them in a url tag they fuck up like his did.
By first and second I was referring only to the two that are hyper links. The non hyper link redirects to the second hyperlink so it doesn't work.
[editline]22nd March 2016[/editline]
And now they both work, what.
[editline]22nd March 2016[/editline]
Actually it's just any time the server sends a redirect for a URL with unicode chars it breaks.
[QUOTE=PortalGod;49980040]I guess it's from an update but my firefox does the opposite, the first actually redirects to the second[/QUOTE]
They're the same. URLs with Unicode characters are encoded as what you see on the left, which is the only valid on-the-wire form of these afaik.
The latter is how [I]xn-...[/I] URLs are displayed in the browser and accepted from user input: It immediately interprets the Unicode version as [I]xn-...[/I] and uses that form for all network requests.
[QUOTE=JohnnyOnFlame;49978809]Before engaging in [del]self flagellation[/del] university I was pretty sure I was hopeless, have you actually tried getting out of the box? Not all people are made equal, and sometimes all it takes is finding a lecturer or author that tickles your brain in the right ways. Other times you simply don't find a way to progress and need a push. Maybe there's no way.
A great way of accessing your options is searching for university lectures such as the ones made available by the MIT and then trying to solve proposed exercises by different authors. If you get stumped, go for the next author/exercise until you loop back. And if you do loop back and get stumped again, look for a friend or group to help you.
Just to be clear, this is not me patronizing or some shit, I'm just throwing it out there as a general for anyone having trouble like I used to have.[/QUOTE]
I felt like I was doomed to a life of mathematical inadequacy right up until I started this semester at a decent university. Finally found a professor that made things click and it feels great to finally feel competent and actually be able to appreciate mathematics to an extent. So yeah, adding to this, if you want to learn math just keep studying and try looking at professor ratings/reviews before you sign up for classes.. It makes a difference.
Just finished the alpha demo of my game magma chamber anyone want to break the game for me?
[IMG]http://i.imgur.com/TGPhrwF.png[/IMG]
(its free btw)
[url]https://indiekeep.itch.io/magma-chamber[/url]
I [i]think[/i] I have the syntax down. I'm going to have to actually implement the core library before writing the documentation for it, though...
[url]https://medcat.gitbooks.io/carbon-specification/content/syntax.html[/url]
[QUOTE=JohnnyOnFlame;49978613]Neither, they're both tools in a huge toolset you're absolutely required to have. Linear Algebra, Calculus, Analytic Geometry, Discreet mathmatics and all other math subjects all intersect, and they are all equally useful for something.
[url=http://i.imgur.com/a8RoWkU.png]Here is some trig [/url] and [url=http://i.imgur.com/xwlJerl.gifv]this is the result.[/url]
Not satisfied? [url=http://i.imgur.com/vVsoUYy.gifv]This is the same idea with very small changes, small math pieces here and there, all made possible due to the grasp of how equations behave I now have after studying calculus[/url]
Or maybe you don't want me showing off my work, how about [url=https://www.rose-hulman.edu/~bryan/googleFinalVersionFixed.pdf]a monolith that uses linear algebra to make billions?[/url]
The point I'm trying to make is, broaden your horizons. Everything new you learn makes you better at learning, and allows you to tackle problems with different perspectives.
Read literature, read biology, read all the math you can. It's all interesting. Knowledge is [B][I]cumulative [/I][/B]/rant[/QUOTE]
This is a bit off the thread's topic but would anyone here have any decent resources for learning trigonometry, especially in regards to programming? Oddly I have some pre-calculus experience from highschool (though frankly I barely understood any of it) but for some reason we never did anything at all with trigonometry. I'd like to learn it at least a bit but I really have no idea at all where to start.
[QUOTE=Alice3173;49982026]This is a bit off the thread's topic but would anyone here have any decent resources for learning trigonometry, especially in regards to programming? Oddly I have some pre-calculus experience from highschool (though frankly I barely understood any of it) but for some reason we never did anything at all with trigonometry. I'd like to learn it at least a bit but I really have no idea at all where to start.[/QUOTE]
There's no 'trigonometry for coders' imho, it's just trigonometry applications. If you want an 'easy road' watch Khan Academy videos and try getting creative with it, if you want to learn properly take the curriculum of a cc. school and build from there (Analytic Geometry and Calculus are [B]very [/B]important here!).
Also I think everyone here already accepted that WAYWO is more like a hypergeek chat room with some project exposition sprinkled on top for funsies.
[editline]22nd March 2016[/editline]
Also, download both Geogebra and EvalDraw- They are both [B]amazing[/B] tools to learn, geogebra being by far the most useful tool here.
[editline]22nd March 2016[/editline]
No, seriously, it's impossible to overstate how useful geogebra is. Learn how to use it and it will boost your learning tenfold. Every calculus class meant I had my laptop with geogebra opened with the board notes both on paper and on the screen, with cool little sliders and stuff.
I mean, shit, look at this:
[t]http://i.imgur.com/9qnea70.gif[/t]
[IMG]http://wyattmarks.com/screenshots/2016_03-22_03:12.png[/IMG]
Alright fuckers, 3 AM.
So I decided to get back into my game, after a month or more of not touching it. I added level saving, and loading. Yay!
I had nothing better to do today, so I just wrote a simple [URL="https://esolangs.org/wiki/A:;"]A:;[/URL] interpreter in C#.
[IMG]http://i.imgur.com/gl5pJ4z.png[/IMG]
Jesus christ, adding a donation iap was insanely hard... :ohno:
Funny legit C# code I discovered.
[code]
if(true == found == false) {
}
[/code]
[editline]22nd March 2016[/editline]
[QUOTE=tisseman890;49983095]Jesus christ, adding a donation iap was insanely hard... :ohno:[/QUOTE]
I am doing this shit too right now, it's boring jesus kill me now.. this is code in progress (now whole but essential part)
[code]
purchaseables = new HashSet<Purchaseable>() {
// id | name | description | price |ammount| googleID | appleID |
new ArtefactPurchaseable("3_artifacts", "3 artefacts", "Gives you 3 artefacts", 0.99f, 3, "3_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("12_artifacts", "12 artefacts", "Gives you 12 artefacts", 1.99f, 12, "12_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("32_artifacts", "32 artefacts", "Gives you 32 artefacts", 4.99f, 35, "35_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("85_artifacts", "85 artefacts", "Gives you 85 artefacts", 7.99f, 85, "85_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("180_artifacts", "180 artefacts", "Gives you 180 artefacts", 14.99f, 180, "180_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("370_artifacts", "370 artefacts", "Gives you 370 artefacts", 22.99f, 370, "370_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("550_artifacts", "550 artefacts", "Gives you 550 artefacts", 35.99f, 550, "370_artifacts" ).AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("1200_artifacts", "1200 artefacts", "Gives you 1200 artefacts", 49.99f, 1200, "1200_artifacts").AddOnPurchaseEvent(()=>{ }),
new ArtefactPurchaseable("3000_artifacts", "3000 artefacts", "Gives you 3000 artefacts", 100.00f, 3000, "3000_artifacts").AddOnPurchaseEvent(()=>{ }),
};
[/code]
Been working a lot with Unix scripting for coursework at Uni, compounding knowledge and experience I gained at work when I (as a "Java Developer") was suddenly lumped with writing a Docker-based distribution system one day.
Then I came across a maths test in which I also had to dredge up relatively old memories of matrix operations including addition, subtraction and multiplication.
Me being me, the easiest way for me to remember how to matrix was to also take the opportunity to flex my Unix skills. The result is [B]ugly and likely way too [/B][B]repetitive[/B], but it works to add matrices.
[IMG]https://dl.dropboxusercontent.com/u/38489921/Shared/CWK/CAR/matrix_add.PNG[/IMG]
Next up: multiplication!
After multiplication you need to implement SVD :v:. (just kidding, it's quite long)
[video=youtube;ip-a_4olqlI]https://www.youtube.com/watch?v=ip-a_4olqlI[/video]
I don't know what I am doing.
Well, that took less time than I expected. This will serve as a decent shortcut tool for checking my manual calculations in my maths test.
Works for matrices of different sizes and tested against a number of online calculators to make sure it's actually working.
I could do a lot of optimisation and tweaking, but for now this serves my original purpose, so now I have to find something [I]productive[/I] to do :sick:
[IMG]https://dl.dropboxusercontent.com/u/38489921/Shared/CWK/CAR/matrix_mult.PNG[/IMG]
Just spend an hour trying different Pull to refresh libraries, where all sucked ass, to then find out, that Android has it natively through the support library. :speechless:
But at least is was a breeze to use it though!
A bit of control theory in here. A charge simulator, it only does the E field though. Will implement B field later. Nothing but C# and OpenGL.
It's pretty cool, no matter what initial conditions you give it, it ends up being perfectly symmetrical. "Simple rules give rise to structure".
[IMG]https://media.giphy.com/media/xThuWlHZT7zEPGyYP6/giphy.gif[/IMG]
[editline]22nd March 2016[/editline]
[QUOTE=Skipcast;49978677]This makes me sad i'm horrible at math. :saddowns:[/QUOTE]
[url]https://en.wikipedia.org/wiki/Learned_helplessness#Expanded_theories[/url]
its ok bud you're fine
[QUOTE=Demx;49985770]A bit of control theory in here. A charge simulator, it only does the E field though. Will implement B field later. Nothing but C# and OpenGL.
It's pretty cool, no matter what initial conditions you give it, it ends up being perfectly symmetrical. "Simple rules give rise to structure".
[IMG]https://media.giphy.com/media/xThuWlHZT7zEPGyYP6/giphy.gif[/IMG]
[editline]22nd March 2016[/editline]
[url]https://en.wikipedia.org/wiki/Learned_helplessness#Expanded_theories[/url]
its ok bud you're fine[/QUOTE]
Wait is that an N body simulation? Shouldn't it be running horribly slow???
[QUOTE=Number-41;49986014]Wait is that an N body simulation? Shouldn't it be running horribly slow???[/QUOTE]
N body simulation is when there are N bodies colliding.
And still, N body laggs if N number is huge.
[QUOTE=Number-41;49986014]Wait is that an N body simulation? Shouldn't it be running horribly slow???[/QUOTE]
Yeah, it's N-body, since each particle is interacting with each other particle. If they're calculating the force on each particle by iterating across all other particles and summing the forces (iirc this method is called pairwise or something similar), it's O(N^2) which gets very slow for larger N, but shouldn't be too slow for less than say a hundred particles like in that image.
[editline]22nd March 2016[/editline]
The most expensive thing in n-body simulations is generally the integrator, but the time complexity is definitely the limiting factor as you add more particles. Not all methods of doing N-body simulations are O(N^2) though; you could calculate the resulting E-field from each of the particles' individual E-fields, then take the grad of that field to get the forces, which should be O(N) and therefore much faster than the pairwise method for large N.
Ok, so for my uni assignment I've finished making sure the subset of C++ code is correct, but now I have to do the actual code generation. In a way, I know exactly what I'm doing, but in a much more real way, I have no idea what I'm doing.
[QUOTE=WTF Nuke;49986650]In a way, I know exactly what I'm doing, but in a much more real way, I have no idea what I'm doing.[/QUOTE]
Sounds like Uni alright. Can't be much help as we've never been asked to write a compiler, but don't be afraid to ask supervisors/lecturers for help. I only really started doing that in 3rd/4th year and it's made a world of difference to my skills, and my grades.
[QUOTE=Falcqn;49986153]
The most expensive thing in n-body simulations is generally the integrator, but the time complexity is definitely the limiting factor as you add more particles. Not all methods of doing N-body simulations are O(N^2) though; you could calculate the resulting E-field from each of the particles' individual E-fields, then take the grad of that field to get the forces, which should be O(N) and therefore much faster than the pairwise method for large N.[/QUOTE]
I totally need to try particle mesh driven N-body, which afaik is basically what you're describing here, somewhat. [url]http://www.cs.cmu.edu/afs/cs/academic/class/15850c-s96/www/nbody.html[/url]
Does anyone know a good tool to record webm on linux? Preferably like shutter or sharex, just select a region and then it starts recording or something.
I seem to recall someone on here making a tool for it on linux, but I couldn't find it :(
[QUOTE=LordOfGears2;49988147]Does anyone know a good tool to record webm on linux? Preferably like shutter or sharex, just select a region and then it starts recording or something.
I seem to recall someone on here making a tool for it on linux, but I couldn't find it :([/QUOTE]
[url]https://github.com/naelstrof/maim[/url] ?
But at first glance it doesn't seem to take videos.
Sorry, you need to Log In to post a reply to this thread.