« first day (1004 days earlier)      last day (4170 days later) » 

19:00
Ha ha
@ton.yeung Your Current equals voltage divided by resistance. So these magnetic fields are generating your watt rating for the power supply to supply power to your devices.
@JLott thats what... he said?
@KendallFrey I need to watch my words...
@JLott Please don't :P
@LewsTherin Ok lol.
19:00
lol
@ton.yeung So a power supply is really two giant balls of electrical wire that are going back and forth with each other to create your power output for your computer.
new social experiment: create a new account - make my picture a girls picture - enter random rooms - talk in sexual innuendos - see how long I can disrupt normal activities and how many men ask to marry me
@ton.yeung There is a bit more to it, but that is the jist. The point is, how would you expect that to fail?
2 mins ago, by rlemon
http://www.howstuffworks.com/transformer-info.htm
@rlemon do it in the js room imo. We have tried it in C#, sad times.
19:02
@Greg Are you sure about that? "two giant balls of electrical wire that are going back and forth" sounds like kinky robot sex
@JohanLarsson Really?
@KendallFrey Maybe it is?
A simple transformer consists essentially of two coils of insulated wire. In most transformers, the wires are wound around an iron-containing structure called the core. One coil, called the primary, is connected to a source of alternating current that produces a constantly varying magnetic field around the coil. The varying magnetic field, in turn, produces an alternating current in the other coil. This coil, called the secondary, is connected to a separate electric circuit.
@ton.yeung Plus they often have built in current limiting capabilities.
Star worthy though
@Greg actually explaining it is too much work. Knowing to google "how transformers work" is 10x easier in the long run
19:03
@LewsTherin I don't get the q
@Greg there are usually diode rectifiers in them for some damn reason IIRC. They tend to fry eventually
@rlemon Awesome, what I was trying to say.
actual knowledge vs knowing the correct shit to google.
We have tried it in C#, sad times.
When?
also, most transformers are not cheap - if ever you are at an e-waste yard or scrap place snatch as many of these bad boys as you can .
19:04
@ton.yeung I didn't see that, I just assumed you wouldn't. What I was trying to say though, save yourself the money. They shouldn't fail.
@rlemon I know, my power supply was $349
I make a descent penny selling scrap hardware
Talk about a joule heist
2
@ton.yeung Another thing- They often have this:
Some supplies use current limiting instead of cutting off power if overloaded. The two types of current limiting used are electronic limiting and impedance limiting. The former is common on lab bench PSUs, the latter is common on supplies of less than 3 watts output.

A foldback current limiter reduces the output current to much less than the maximum non-fault current.
@Mike bravo
like my PSUs were free scrap from a company but they all work and I get like $20/each
i have 45 of them
19:05
@LewsTherin a couple of months ago, don't remember her name
@rlemon that ought to be enough for a modest doomsday device
@ton.yeung My bad.
@TomW I also have a handful of EBM-LX800's
@ton.yeung Yeah, I'll be back later lunch time.
I'm trying to figure out what to do with it all, but then I remember my rpi has more power / 1 8th the size, and 1 tenth the power consumption
@ton.yeung I used too. now I have fish tanks.
yea I do mixed reef tanks and some freshwater
19:17
well im stuck on this problem for 2 days know
umm, in a nutshell.... I was a huge trekky when I was a kid and that got me into programming around 8yo. I was 'decided' I wanted to be a programmer from then on, in HS however I took a comp eng course and we did robotics and that got me hooked on that. We made bots to enter into the Ontario Robotic Games and the Trinity Fire Fighting comp.
after HS I got a job at an elearning company programming, so the robotics kinda turned pure hobby
can somebody attempt to help me?
if i say what im trying to do
now I DIY most of my fish tank stuff (pumps / lights / timers / etc)
@ExcelledProducts Yes, but only if you ask.
19:18
s/recursive/redundant/
If you took your car to the mechanic and told him you have trouble, what would he do?
i need to create a tree parsing loop that is infinite
let me try and draw you a picture
most tree parsing loops already have the data
my data expands after each node
@ton.yeung Of course not. Did you think that box was a HTML editor?
@ton.yeung our teacher had a phd and a masters (both eng/math related) and headed Toyota R&D for many years. got pissed because he worked along side a "bunch of retards" (his words) and so decided to teach. Went to UofW to teach and realized the kids were too dumb to teach there so started teaching highschool kids the university program (dumbed down a bit)
but we entered the same comps with the same projects
it was kinda funny.
so here we go
i know what we are going to call the base
19:20
@rlemon So... I should become a teacher?
lets assume that the base is a parent node
if you want to make sure the future of c# developers are at least as smart as you... yes
cd /node && tree
Actually, I work for the same company as one of my teachers.
after i do stuff to that parent node i get an unknown amount of results
so i have

Base -> 10 Different Items
now i want to loop through those 10 different items and do stuff to them
now i have mabey 60 things so i have

Base -> 10 Things -> 60 Things
@ExcelledProducts From what I understand, you're trying to recurse through a tree?
19:22
if you have ObservableCollection<ClassA> Classes with elements in it, and you call Classes.RemoveAt(0), does ClassA need to implement IDisposable in order for the GC to collect it?
@ton.yeung grade nine we made a 10*10 led display board and programmed it in ASM, grade 10 we made a line following robot and programmed it in ASM, grade 11 we made a sumo bot and programmed it in ASM / BASIC / raw hex. grade 12 we made a fire fighting robot and programmed it in either BASIC or ASM depending on the chip used.
@NETscape Of course not.
@Kenda yes it is a tree but the tree is never finished
@LewsTherin lol
In WPF, is there a way to make a usercontrol change visibility
Fuck that wasn't supposed to go yet
19:23
IDisposable has nothing to do with garbage collection.
so, we're at the very end of user testing, like all of the little bugs have been worked out, and here they go and ask for a huge fucking change, that will take weeks
@ExcelledProducts So, a tree with loops?
@Steve He he. Make things better :D
@AndréSilva Converter?
19:23
Or a directed graph?
@Kinda yes
@Steve I just realized there is another girl on here @MarietjieDavel
@Kenda im currently making a digaram to make it easier
@Steve Come cry with me, bro. I know how that works.
@NETscape I didn't finished writing, I had to answer the phone
19:24
@ton.yeung tl;dr - there is a candle in a maze. you are in the maze. you have to find the candle and put it out in the fastest time possible (automated ofc). touching walls deducted points, touching the candle deducted points. then make it back to the start position
And hit enter by mistake
@Steve "Sure, that will cost mumblethousand dollars"
@KendallFrey crrrry
@KendallFrey do I just need to write a Dispose method then?
@TomW lol, business people asking for it without letting the project leader know.... trying to sneak it in there, well guy, its not something you can just sneak in there
19:25
@NETscape Why would you need to write Dispose to make it collectable?
the robots are not like Terminators
I'm deleting a child item from my root treeviewitem, and i don't get the memory back
they are ugly little bots
@rlemon Aww
You meant transformers?
@LewsTherin no way... GIRL???? TWO??? WHERE R TEH GIRLS
@rlemo are you in a FIRST robotics team?
@LewsTherin no transformers are ugly little bots :P
If you want to garbage collect an item, delete all references to it. If you want to clean up unmanaged resources, call Dispose
@Steve On me bed.
@ExcelledProducts I haven't competed since 2005
@LewsTherin you lucky, perverted, bastard
probably water
@rlemon Not all though. Bumblebee can be quite the attractive transformer :P
water was allowed
19:26
@Steve Lol! :D
@KendallFrey ahh, maybe I have to delete the View...? I click the child item and a RadGridView is displayed and uses about 10MB. When I delete the selected item, I don't get the 10MB back
@ExcelledProducts Obviously you can't have an infinite tree. How is it infinite?
@Steve Bet you wish you were more perverted than me
10MB. For one treenode.
Fuck.
19:27
some used co2, most used water, some used fans but they were not effective
One RadGridView @TomW
see its like a web-crawler
ah
still, that's also pretty huge
Ok, let me rewrite my question.
@ExcelledProducts Are there loops?
19:28
yeah, thinking of using Windows GridView
looking at the site it appears they have many other competitions now
@LewsTherin you have no idea, i AM more perverted
gets base URL
from that URL is like 10 different URL's
and from those 10 their are different URL's and so on
@Steve Want to start a pervestion war?
are you trying to make like a web crawler @ExcelledProducts?
19:28
( WPF ) Using Style.Triggers in XAML, is there a way to, when a click is performed in a MenuItem, make a UserControl change visibility?
Perversion war?
Mmn
@ExcelledProducts Can there be loops, or not?
yes their can
also their are already loops
So you have a directed graph.
Is there an extremely large number of nodes?
@LewsTherin NO
19:30
As in, more than maybe 1000000?
okay maybe
boobs.
@ton.yeung probably. Here we have firstroboticscanada.org/main
they hold comps all over
I'm not so much into competing anymore
@Steve titfuck
it was fun when I was younger, but who has the time
Your move
19:30
@KendallFrey well see thats the problem the user decides when to stop the loop
@Steve Ha ha Good answer. I'd lose anyway
so their can be as many nodes as possible
@ExcelledProducts So you just go until the user cancels?
@KendallFrey basicly
@KendallFrey also their is no tree view that is just an example
@KendallFrey like visually what it would like it
So are you reinventing wget --recursive ?
19:32
So, would you like a breadth-first or depth-first search?
@KendallFrey ill show you what i have that needs to be looped
breadth first will cover more related 'links', whereas, depth first is simpler and will go farther.
System.Net.WebClient wc = new System.Net.WebClient();
string s = wc.DownloadString(TextBox1.Text);
Regex regxURL = new Regex("http(s)?://([\\w+?\\.\\w+])+([a-zA-Z0-9\\~\\!\\@\\#\\$\\%\\^\\&amp;\\*\\(\\)_\\-\\=\\+\\\\\\/\\?\\.\\:\\;\\'\\,]*)?", RegexOptions.IgnoreCase);
foreach (Match m in regxURL.Matches(s)) {
//ListBox1.Items.Add(m.Value)
arrayPage.Add(m.Value);
}
Regex regxIMG = new Regex("<img.+?src=[\\\"'](.+?)[\\\"'].+?>");
foreach (Match m in regxIMG.Matches(s)) {
//ListBox1.Items.Add(m.Groups(1).Value)
(see full text)
and it is a depth search
Oh, god, that regex. You need verbatim string literals.
 System.Net.WebClient wc = new System.Net.WebClient();
string s = wc.DownloadString(TextBox1.Text);
Regex regxURL = new Regex("http(s)?://([\\w+?\\.\\w+])+([a-zA-Z0-9\\~\\!\\@\\#\\$\\%\\^\\&amp;\\*\\(\\)_\\-\\=\\+\\\\\\/\\?\\.\\:\\;\\'\\,]*)?", RegexOptions.IgnoreCase);
foreach (Match m in regxURL.Matches(s)) {
	//ListBox1.Items.Add(m.Value)
	arrayPage.Add(m.Value);
}
Regex regxIMG = new Regex("<img.+?src=[\\\"'](.+?)[\\\"'].+?>");
foreach (Match m in regxIMG.Matches(s)) {
	//ListBox1.Items.Add(m.Groups(1).Value)
(see full text)
19:34
@ExcelledProducts Keep in mind a depth first search will only search one link from each page, not all of them.
@KendallFrey not what this code is doing
@KendallFrey this return all the links in the page
Well, yeah, but a depth first algorithm will just pick one.
Theoretically, it will get them all, but practically, it will never return
yea i dont want that
19:36
What is your goal?
I feel like this is the famous X-Y problem.
to loop through the code until the user stops
no you see i have that
@ExcelledProducts No, what is your goal?
Are you making a web crawler?
holy shit is facebook mobile slow
my goal is to loop through all the links starting from the base url until the user stops it
19:37
at any depth
@ExcelledProducts For what porpoise?
What is the problem you are trying to solve?
What does your program do?
@Mike im creating a website ripper
@ton.yeung hardware people don't care about aesthetics
@ExcelledProducts For what reason?
The answer can determine what algorithm you want.
19:38
Is this a school project you have to implement yourself? Otherwise I'd lean towards a script that calls wget.
@KendallFrey i need to copy the entire msdn library
@ton.yeung but Robotics isn't stuck in the stone ages. We're just more realistic about what is important.
@ton.yeung no
Why would you copy MSDN?
19:39
you can configure msdn to be available offline no?
putting out the fire? or putting out the fire with a 22mm form factor and a slim camera.
^^ that
i want the source
The source of what?
19:39
No, really.
We can help better if we understand your motives.
i want an offline msdn
VS comes with offline help.
so
i cant try to make a program that does it for me
Sure you can, but that's just fucking pointless.
starts at msdn.microsoft.com/en-US/ and copies the entire website
19:41
And if you really wanted to download an entire site, just use wget with recursive options
but it can be used for other things also
Well, I guess the answer is you want a breadth first search.
not just msdn
wget can be used for other things also
@ExcelledProducts Like scraping email addresses? -_-
19:41
@KendallFrey no
i have no point in scraping email addresses
i simply just want to make a website ripper so I can use them offline
Are you making it to learn? Or making it to use?
mainly to learn
Is there a way to ignore spaces on the input of a regex ? For example: Regex.IsMatch("You see \"spaces\" \"are\" all \"over\"", "\w+") I tought that using RegexOptions.IgnorePatternWhitespace would take care of it but it seems it does not.
Ignore Pattern Whitepace
@ton.yeung no apple is making the money with their 'sexy' products then re-investing it back into robotics because it is an investment they will make even more money on in the future
you can't say we're not coming along.
See the recent Mars rover pics?
19:43
@Prix What are you trying to do? Explain what you expected to happen.
I argue that is much more growth than being able to wear my ipod on my arm
but it doesn't need to be
#whyaboutmyproblems
what mainstream robotics woudl work?
or take the same technology and pump it into a stunning TV
@ExcelledProducts I think your next step should be to google "breadth first search"
see my point?
19:44
and just to let all you people in robotics know is that i am with team 2168
@KendallFrey I tried that it does not work for the input only for the regex, I am just curious about if there is a way to do that as I was faced with a similar question where I had to either include the spaces on the regex or remove it from the input
In graph theory, breadth-first search (BFS) is a strategy for searching in a graph when search is limited to essentially two operations: (a) visit and inspect a node of a graph; (b) gain access to visit the nodes that neighbor the currently visited node. The BFS begins at a root node and inspects all the neighboring nodes. Then for each of those neighbor nodes in turn, it inspects their neighbor nodes which were unvisited, and so on. Compare BFS with the equivalent, but more memory-efficient Iterative deepening depth-first search and contrast with depth-first search. Algorithm ...
the things we're developing robotics for (search and rescue) that is REALLY important is just lacking the computing power required to give it a truly human sense of reasoning
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some node as the root in the graph case) and explores as far as possible along each branch before backtracking. A version of depth-first search was investigated in the 19th century by French mathematician Charles Pierre Trémaux as a strategy for solving mazes. Properties The time and space analysis of DFS differs according to its application area. In theoretical computer science, DFS is typically used to traverse an entire graph, and takes time O(|E|), li...
yep i am looking for a breadth-first sesarch
19:46
@ton.yeung all i'm saying is that the industry is large, and growing rapidly. Arduino made it so any joe can be a 'robotics' tinkerer
@Prix But you're not matching spaces in the regex anyway. What's the problem?
you just don't see consumer products that are transparently from that industry
eh, depends on the focus.
if we didn't have the dark ages (500 years of No science, No tech) we would be in space cars living on plantations on mars.
think about it...
@KendallFrey yes I am not but I want to ignore the spaces on the input without having to use it on the regex that's what I am wondering, shouldn't IgnorePatternWhitespace work for that ?
@ton.yeung you know what sexy robotics are? new cars, new gadgets, new phones, new displays.
It doesn't say IgnoreInputWhitespace, does it?
19:47
no one wants to buy a robot.
so they don't make robots
@Prix Please define exactly what you mean by 'ignoring' whitespace.
we talk like we would want one.. but for what?
who wants to see me, you know you've been dying to for a year now
Lego Mindstorms can do some amazing shit
19:48
It looks to me like it will ignore the whitespace.
@ton.yeung drone automation is a big thing
mindstorms are kinda pricey yea
@JLott like my cannon eh? ;)
Arduino is the way to go
@Steve Show me your beard.
What about robots?
<3 Arduino
19:49
@KendallFrey lol i dont have one yet, its just scruff
@ton.yeung yep, 40mm
@ShotgunNinja tbh I prefer rpi
I like the fact that I can do all of my programming in any language I choose
@Steve Actually that is pretty freaking awesome lol
@rlemon Except for objective-C, but why on earth would anyone choose that?
19:50
@ton.yeung first, biped?
rpi sounds cool, until I realize that it will cost so much more than $30...
@KendallFrey $35 if you want one I can order you one
we include them in part orders so no shipping
Sure, if you get me a monitor, keyboard, and mouse with it.
At no extra cost.
Also, how many serial buses does the rpi have? What about PWM generators, interrupt channels, real-time clocks, ADCs, DACs, and digital I/O?
@JLott if only i still looked like that, add a beer in each hand, a fuzzy beard(ish)
19:51
we went to rpi last year
no monitor ( you don't have a hd tv?) keyboard and mouse I def have
they are shitty and old but work
@KendallFrey here is an example pastebin.com/tvPEGgJ8 why this one fails with and without RegexOptions.IgnorePatternWhitespace and shouldn't it work with RegexOptions.IgnorePatternWhitespace ?
@Steve Yeah you look about like everyone around here
@JLott lol yeah
hey guys is there a discussion related to game dev somewhere?
19:52
@Prix For the last fucking time, IgnorePatternWhitespace is about the pattern, not the input.
If you're going to do robotics, the rpi is not the way to go, just because it has nearly no usable peripherals and is not low-level enough to give adequate control for robots.
@KendallFrey so I have a UserControl with <ContentControl Content="{Binding SelectedItem}"> in UC.Resources, I define a DataTemplate my different Types. When TypeX is selected, it will show a RadGridView... When I change the SelectedItem or delete the item, the 10MB it took to create the RadGridView is never released
Beer, Beard, Bed. The three B's to live by

 Game Development

Game development and other polite discussion. Game development...
i got some complex 3d stuff i need to kill someones head over
19:52
@Wardy We can make one...
ooo that was fast
ty guys
@rlemon Spoken almost like a true southern.
@Prix Well, if you want to allow whitespace in your regex, use the \s pattern
@KendallFrey YES THAT'S WHAT I WAS SAYING FFS, what I am asking is if there a way to ignore the space of the input without having to declare them on the pattern ?
19:53
jlott u know much about 3d stuff ?
More like Beer, Beards, and Broads.
@Wardy No haha. But the guys here like to talk about everything.
@Prix No, there is not.
ah fair enough
@ShotgunNinja Showed you a good chat room though
lol
yeh im already in it
cheers guys
19:53
So removing the spaces or including it on the regex would be a fine way to go ?
@Wardy Hope they can help!
@JLott I'm native american - so Beer, Beard, and Bison
@Prix Yes.
@rlemon I love bison...
we had a canoe, but the white man took it.
19:54
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.
I am 1/8 Cherokee. You know your tribe? @rlemon
OK thank you, that's what I was wondering about as in other language the x option gives a different result
@ton.yeung what type of robot do you want to make?
@Prix A regex matches only what you tell it to. If you want to match as though there is no whitespace in the string, then simply remove the whitespace from the string
@JLott mostly mixed Cree on my moms side. tracked back to Swampy Cree on my dads. Both parents were full native.
disclaimer: I'm Canadian native american.
19:56
when i first started programming i though regex was evil
@rlemon Awesome :) Supposedly I look like my great grandmother who was full cherokee. I wish I had a pic of her.
north american, native american, aboriginal canadian.
@JLott Me too ;)
@KendallFrey yes thanks I actually had 2 regex and the other the spaces on it and a lot simpler ^[\w _,""]+{0}-[\d \/\.,""-]+$
Do I win the perv contest?
19:57
I hate when I say the americas and people assume I meant USA :P
@KendallFrey I think @LewsTherin still has you beat
Canadians aren't part of 'Murrica!
:P
@ton.yeung ok well if you just want to know how it all fits together I suggest starting with what chip you will use
Oh, that's okay. I like when he beats me.
I've used PIC16F.. chips
they are fun.
@KendallFrey Don't we all.
19:57
@JLott Lulz
I thought you were gone.... well hell
@KendallFrey Oh yeah? :P
lol
@JLott Nope.. just not paying attention :L
@All Hello
19:58
Beat me, Lews. Beat me right here.
Breadth first algorithm is hard :(
@KendallFrey Pulls out belt
@ExcelledProducts Nah you just haven't looked at it enough
gets a hard one
@JLott hello
19:59
@KendallFrey Ha ha
@JLott i guess so
Oh goodness
Am I winning yet?
@hope Hi.
Aww, some reputation magically disappeared again.
19:59
@KendallFrey Certainly
@LewsTherin Were you here yesterday?
@JLott how are u
@ton.yeung LOL
@JLott Yep
@hope Perfect as always

« first day (1004 days earlier)      last day (4170 days later) »