Got my admission results for my application to a CompSci program! I am officially admitted.. for the wrong program at the wrong campus :v:
I'm writing up a huge post on rigid-body point cloud registration.
It's not 100% finished yet, but check it out if you're interested!
[url]http://thingsiamdoing.com/global-markerless-rigid-body-point-cloud-registration/[/url]
[img]http://thingsiamdoing.com/wp-content/uploads/2015/10/reg1.png[/img]
I saved and moved my laptop mid-thought and it introduced a strange little bug in the output.
[code]
rtn = "{[";
rtn +=
rtn += driver.FindElement(By.Id("tagidt")).Text;[/code]
[code]{[{[470[/code]
I feel like you shouldn't be able to compile that structure.
:snip:
[QUOTE=Rocket;48926798]It's because it's interpreting it as
[code]
rtn = "{[";
rtn += rtn += driver.FindElement(By.Id("tagidt")).Text;
[/code][/QUOTE]
I know, it just feels wrong with the whitespace.
I feel like tabs is superior because you can configure how much indentation a tab should be, like, pixels wise, but if you use spaces it's always going to be relative to your font and that's it. I'm not sure why people prefer the four-spaces approach.
I alternate every line just to horrify people who get in holy wars about tabs v spaces on forums.
no tabs vs spaces arguments below this line
------------------------------------------
Tabs:
[img]https://facepunch.com/fp/ratings/tick.png[/img]one button
[img]https://facepunch.com/fp/ratings/tick.png[/img]configurable
[img]https://facepunch.com/fp/ratings/tick.png[/img]auto-indent/auto-complete key
[img]https://facepunch.com/fp/ratings/cross.png[/img]finicky
[img]https://facepunch.com/fp/ratings/cross.png[/img]don't display the same for everyone
[img]https://facepunch.com/fp/ratings/cross.png[/img]don't paste in steam chats
Spaces:
[img]https://facepunch.com/fp/ratings/tick.png[/img]precise positioning
[img]https://facepunch.com/fp/ratings/tick.png[/img]universal
[img]https://facepunch.com/fp/ratings/tick.png[/img]paste in steam chats
[img]https://facepunch.com/fp/ratings/cross.png[/img]hard to select correct indentation
[img]https://facepunch.com/fp/ratings/cross.png[/img]uneven indentation if you're not careful
[img]https://facepunch.com/fp/ratings/cross.png[/img]filesize
[img]https://facepunch.com/fp/ratings/cross.png[/img]a lot of button presses without autoindent
:stop:
[QUOTE=Ott;48927817]Tabs:
[img]https://facepunch.com/fp/ratings/tick.png[/img]one button
[img]https://facepunch.com/fp/ratings/tick.png[/img]configurable
[img]https://facepunch.com/fp/ratings/tick.png[/img]auto-indent/auto-complete key
[img]https://facepunch.com/fp/ratings/cross.png[/img]finicky
[img]https://facepunch.com/fp/ratings/cross.png[/img]don't display the same for everyone
[img]https://facepunch.com/fp/ratings/cross.png[/img]don't paste in steam chats
Spaces:
[img]https://facepunch.com/fp/ratings/tick.png[/img]precise positioning
[img]https://facepunch.com/fp/ratings/tick.png[/img]universal
[img]https://facepunch.com/fp/ratings/tick.png[/img]paste in steam chats
[img]https://facepunch.com/fp/ratings/cross.png[/img]hard to select correct indentation
[img]https://facepunch.com/fp/ratings/cross.png[/img]uneven indentation if you're not careful
[img]https://facepunch.com/fp/ratings/cross.png[/img]filesize
[img]https://facepunch.com/fp/ratings/cross.png[/img]a lot of button presses without autoindent
:stop:[/QUOTE]
What kind of plebeian editor does not support auto indent or at the least converting a tab press into however many spaces you have configured? Why are you still using it? Notepad is not an advised editor for programming.
[QUOTE=Winner;48927831]
although seriously please do not use tabs in your python code; there is no actual argument for ignoring the standard[/QUOTE]
ok
im going to ignore it anyway because a lot of pep8 is dumb/just guidelines
I just put everything on one line.
With word wrap turned on.
[QUOTE=Berkin;48928549]I just put everything on one line.
With word wrap turned on.[/QUOTE]
I just turn STT on and start laughing out loud, and the intensity of laughter is either turned into 1s or 0s.
[editline]18th October 2015[/editline]
Bad jokes aside please abide to the coding standards of the project you're working in, otherwise you're disgusting.
[QUOTE=JohnnyOnFlame;48928848]I just turn STT on and start laughing out loud, and the intensity of laughter is either turned into 1s or 0s.
[editline]18th October 2015[/editline]
Bad jokes aside please abide to the coding standards of the project you're working in, otherwise you're disgusting.[/QUOTE]
Better yet: Use your IDE to convert the project into your coding standard and commit it every time.
[QUOTE=r0b0tsquid;48926308]Let's play spot the bug :disgust:
[code]def fieldline(f, v, max_mag, max_iters):
n = 0
data = []
while np.linalg.norm(v) < max_mag and n < max_iters:
data.append(v)
v += f(v) * 0.005
n += 1
return data[/code][/QUOTE]
Without comments, and with ambiguously named variables, I'm not sure we can help :v:
Lets see if this works
[url]http://slack.facepunch.com/[/url]
[QUOTE=garry;48929577]Lets see if this works
[url]http://slack.facepunch.com/[/url][/QUOTE]
INTRIGUING
[QUOTE=NitronikALT;48929638]INTRIGUING[/QUOTE]
I'm probably the only one who doesn't know what Slack is.
Please tell me I'm not the only one who can see this
[t]http://i.imgur.com/5yNVirY.png[/t]
[QUOTE=Berkin;48930429]Please tell me I'm not the only one who can see this
[t]http://i.imgur.com/5yNVirY.png[/t][/QUOTE]
How horrifying
[QUOTE=Berkin;48930429]Please tell me I'm not the only one who can see this
[/QUOTE]
I was literaly just about to post but refreshed to see if it was still happening? :v:
[QUOTE=garry;48929577]Lets see if this works
[url]http://slack.facepunch.com/[/url][/QUOTE]
I would like to trade some memes for some mods.
[img]http://i.imgur.com/efUgi01.png[/img]
Did some work on my infinite parallax stars background pixel shader.
The white rectangle is orbiting the red rectangle counter clockwise and the camera is following it (rotation and position)
[QUOTE=garry;48929577]Lets see if this works
[url]http://slack.facepunch.com/[/url][/QUOTE]
Wow, it didn't take long for the programming chat to be filled with gay porn.
Now menus autofill with a component's properties, like in unity. And it updates the output signal accordingly (although setting frequency directly and setting pitch override each other depending on which you last used):
[t]http://i.imgur.com/u46vqEU.png[/t]
Still not sure how to record audio. I think I need to get something called soundflower.
Oh man they completely broke thumb tags, everything on this page is huge now
[QUOTE=Berkin;48930730]Wow, it didn't take long for the programming chat to be filled with gay porn.[/QUOTE]
As expected. There's (probably) a good reason the place we normally use doesn't have inline images.
Let's see which one wins :v:
[QUOTE=r0b0tsquid;48926308]Let's play spot the bug
[code]def fieldline(f, v, max_mag, max_iters):
n = 0
data = []
while np.linalg.norm(v) < max_mag and n < max_iters:
data.append(v)
v += f(v) * 0.005
n += 1
return data[/code][/QUOTE]
[code]while np.linalg.norm(f(v)) < max_mag and n < max_iters:[/code]
What do I win?
[QUOTE=Trebgarta;48930909]IMHO it'd be better if we saw a gif or webm. It still looks really cool tho.[/QUOTE]
[vid]http://fat.gfycat.com/DesertedImmediateEasternglasslizard.webm[/vid]
Making a "Keep Talking and Nobody Explodes" helper. So far so good!
[vid]https://dl.dropboxusercontent.com/u/2111732/ShareX/ZPANKR-PC/2015-10-18_23-18-18.webm[/vid]
Sorry, you need to Log In to post a reply to this thread.