/srv/irclogs.ubuntu.com/2013/01/28/#ubuntu-us-pa.txt

=== InHisName1 is now known as HowdyDoody
HowdyDoodyI am trying to modify a desktop icon to also add an environment variable before executing the program to call.  It seems to ignore the env settting.  Do I have some bad syntax here ?  -->Exec=/usr/bin/env PYTHONPATH=/usr/lib/virtualbox/:/usr/lib/virtualbox/sdk/bindings/xpcom/python/ gksudo python "/opt/GNS3/gns3"05:14
rmg51Morning10:30
teddy-dbearMorning peoples13:08
MutantTurkeywaltman: hey. Are you around? I need some math help18:50
MutantTurkeyCS/math help18:50
jedijf218:54
MutantTurkeyjedijf: 318:54
jedijfdamn; i was guessing 1+118:55
MutantTurkeyheh18:55
MutantTurkeywaltman: really though...19:02
waltmanMutantTurkey: yo19:17
waltmanMutantTurkey: log_2(n)19:20
MutantTurkeybut why?19:21
waltmanit's always log_2(n)19:21
waltmanok, sometimes it's 2^n19:22
MutantTurkeywaltman: so I got a job rewriting matlab into C... one of our programs uses the NNLS algorithm (it's built into matlab), but I am having trouble finding a C counterpart...19:22
MutantTurkeyand our file sizes are a bit ridiculous19:23
MutantTurkeybut really I am having trouble understadning the function19:23
MutantTurkeywaltman: I comprehend how least squares works, at least in theory, but I don't understand the non-negative aspect of non-negative least squares19:23
waltmanok, let me take a look at it.19:24
MutantTurkeyhttp://amath.colorado.edu/computing/Matlab/OldTechDocs/ref/nnls.html19:25
MutantTurkeywhat can I show you?19:25
MutantTurkeywait they're using the lsqnonneg function actually.19:26
waltmanmatlab obsoleted it and it's not in 2012a (which is the version I have)19:26
MutantTurkeyI have 2012a, yeah it's lsqnonneg now19:28
MutantTurkeywaltman: btw drexel has 2012b up as well if you wanted it19:28
waltmanI need to stick with the version we run at work.19:28
MutantTurkeygotcha19:29
MutantTurkeyI didn't realize there were many versioning issues19:29
MutantTurkeymatlab noob here19:29
waltmanbest to just stick with the same version19:30
MutantTurkeygotcha19:30
waltmanMutantTurkey: Well, you could try to dig up a copy of that book or some other books on least squares...19:30
MutantTurkeyI found a book in temples library, maybe I'll go grab it tomorrow19:31
waltmanhere's an entire phd thesis on the problem: https://smartech.gatech.edu/bitstream/handle/1853/31768/?sequence=119:33
waltmanonly 35 citations? wtf?19:34
MutantTurkeywell fk a whole damned thesis...19:34
MutantTurkeywaltman: what a sucker... only 35 citations...19:35
waltmanI got as far as pseudocode for the algorithm, and it didn't look like something I'd want to write if I didn't have to19:35
ChinnoDogYou are now either in over your head or loverloaded with useful information.19:35
MutantTurkeyChinnoDog: far over19:35
waltmanMutantTurkey: Anyway, as you've no doubt figured out by now, I've never heard of this version of the algorithm.19:36
MutantTurkeycrud19:37
waltmanMutantTurkey: It seems perfectly reasonable to ask your professor if he knows of any code that might do this.19:37
MutantTurkeyshr'19:37
MutantTurkeyshe'19:37
MutantTurkeybut yes, we found some implementations that are really slow19:37
MutantTurkeyaka didn't work19:38
MutantTurkeybecause the matrix size is like 160 millio19:38
waltmanmaybe there's an implementation for octave? If so, you could at least see how it's implemented.19:39
waltmando you mean 160mil x 160mil?19:39
MutantTurkeyno 160mil by 1 i think19:40
MutantTurkey160mil by 100 i mean19:40
MutantTurkeya lot of data, not a lot of other stuff19:40
MutantTurkeyin that lsnonneg function there are two arguments, what is that second argument containing? I don't really get it19:41
MutantTurkeywaltman: it's actually 160milx102419:41
waltmanmy guess is that you're trying to minimize the solution of Cx = d19:45
waltmanbut again, I think you'd be much better off discussing this with your prof19:45
MutantTurkeyI concur19:45
waltmanbbiab19:45
MutantTurkeybut I sound like an idiot19:45
MutantTurkey"durr whats a vector durr"19:46
waltmanNo one expects college freshmen to understand linear algebra19:46
waltmanlaundry &19:46
MutantTurkeyok thanks :)19:49
MutantTurkeywaltman: i have a few more idiot questions...19:52
waltmanI should also point out that if you're back at Drexel, Ko's students know a lot more about least squares than I do.19:58
waltman(which is not very much)19:58
MutantTurkeyreally you think?19:59
MutantTurkeythey always impress me19:59
MutantTurkeybut I am also a burden unto them :p19:59
waltmanI don't know much about least squares. They use it a fair bit.19:59
MutantTurkeywaltman: so I how do I load data into matlab?19:59
MutantTurkey:p19:59
waltmanthat I do know!19:59
MutantTurkeythe format is sparse, like this:20:00
MutantTurkeySPARSE20:00
MutantTurkeyrow height20:00
MutantTurkeytotal rows20:00
MutantTurkey1 1 .242462 (row col value)20:00
MutantTurkeyfor the rest20:00
waltmanhttp://www.mathworks.com/help/matlab/ref/spconvert.html20:00
MutantTurkeydoes matlab understand that?20:00
MutantTurkeythanks20:00
MutantTurkeythats exactly it!20:01
waltmanBTW That was the first hit on google for "load sparse matrix into matlab"20:01
MutantTurkeylol yeah20:02
MutantTurkeyI am trying that as well20:02
MutantTurkeywaltman: if it is reading this Gb sized file in, can i tell matlab to load another file in at the same time?20:03
waltmanYou could try, but it seems unlikely. You've only got the single command window, right? How are you could to do it?20:06
waltmanmatlab seems mainly single threaded to me. asking it to do two things at the same time, even if you could, seems like a bad idea.20:07
MutantTurkeyyeah20:09
waltmanugh, my English got mangled there.20:09
waltmanIt seems to me that when you're in the command window, you've got to wait for one command to finish before you can run another one.20:10
MutantTurkeyright20:10
MutantTurkeywaltman: ugh matlab prints out the whole matrix once loaded...20:12
MutantTurkeyoh god20:12
MutantTurkeyoh god20:12
waltmanMutantTurkey: That's because you forgot to end the statement with a ;20:13
waltmanyou might try Ctrc-C20:13
waltmanCtrl-C20:13
MutantTurkeywoul that interpt it though?20:16
MutantTurkeythe command?20:16
waltmanNo, I'm pretty sure it has to finish, because it's showing you the answer.20:16
MutantTurkeyok gotcha20:16

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!