--- Log opened Fri Jan 25 00:00:39 2013 | ||
--- Day changed Fri Jan 25 2013 | ||
@kanzure | a unit test is a systematic way to confirm that something is working | 00:00 |
---|---|---|
@kanzure | you pass certain values in and you say you expect a certain value in return | 00:00 |
@kanzure | when something breaks, the system tells you | 00:01 |
@kanzure | the function i linked to (line 8154) is testing for whether or not my "detect whether or not a line of assembly source code has a comment or not" still works | 00:05 |
nmz787 | so x is that function? | 00:07 |
nmz787 | line 8155 | 00:07 |
nmz787 | making a reference to a func? | 00:07 |
nmz787 | or is line_has_comment_address a string? | 00:08 |
@kanzure | making a reference to a string | 00:09 |
@kanzure | oops | 00:09 |
@kanzure | making a reference to a function called line_has_comment_address | 00:09 |
-!- ArmilusDajjal [~safitan@75-105-12-23.cust.wildblue.net] has joined ##hplusroadmap | 00:09 | |
@kanzure | i didn't want to type line_has_comment_address in each of the individual calls, you see | 00:09 |
@kanzure | i thought x would be simpler | 00:09 |
nmz787 | ok | 00:16 |
nmz787 | so my pH experiment will be a unit test? | 00:17 |
-!- Mariu [Jimmy98@89.41.57.33] has quit [Quit: leaving] | 00:17 | |
@kanzure | nmz787: they could be | 00:18 |
@kanzure | nmz787: but a simpler test would be something like, "if i pass in an ordereddict with nothing in it, what is supposed to happen" | 00:18 |
rigel | ok, so my laptop is shutting down for no apparent reason lately, im not sure which logs i need to be looking in | 00:22 |
nmz787 | kanzure: so using your python-spectrometers example | 00:24 |
nmz787 | how would you do spectrometer.calculate_pH(filePath) | 00:24 |
@kanzure | well, there's no unit tests in python-spectrometers because python-spectrometers doesn't do anything :P | 00:24 |
@kanzure | well, open up test_spectrometers.py | 00:25 |
nmz787 | just to separate the helper functions | 00:25 |
nmz787 | like plotter and calcPh | 00:25 |
@kanzure | and i would add a new "def test_calculate_ph(self):" and in this function i would say something like self.assertTrue(calculate_pH(filepath) == [1]) (just to start with) | 00:25 |
@kanzure | then i would run the test, and it should fail (unless calculate_pH is returning [1].. which i doubt...) | 00:25 |
nmz787 | no i mean | 00:25 |
nmz787 | how would i move it from the spectrometer class | 00:25 |
nmz787 | to a spectrometer subclass | 00:26 |
nmz787 | that is in a helpers.py file | 00:26 |
nmz787 | or something | 00:26 |
@kanzure | sorry, i still don't understand | 00:26 |
@kanzure | copy and paste? | 00:26 |
nmz787 | i guess those funcs can just stay in spectrometer class | 00:26 |
@kanzure | oh i see what you mean | 00:27 |
@kanzure | well, first, let's say you were making a more general function like min() if min did not exist | 00:27 |
@kanzure | and we were going to be put it in spectrometers/helpers.py as a function | 00:27 |
@kanzure | if we want to be able to do "from spectrometers import min" elsewhere on our computer, we would add "from .helpers import min" in spectrometers/__init__.py | 00:28 |
@kanzure | if we want to do "from spectrometers.helpers import min" elsewhere on our computer, no other changes would be necessary | 00:28 |
nmz787 | which is better to do? | 00:29 |
nmz787 | would either allow us to say import spectrometer | 00:29 |
nmz787 | spectrometer.min() | 00:29 |
@kanzure | the first one would let that work | 00:29 |
nmz787 | without first saying g=spectrometer(); g.min() | 00:30 |
@kanzure | in python-spectrometers, spectrometers is a module not a class | 00:30 |
@kanzure | spectrometers.Spectrometer is a class though | 00:30 |
nmz787 | i wrote this | 00:30 |
nmz787 | class o: | 00:30 |
nmz787 | ... def i(self): | 00:30 |
nmz787 | ... return 3 | 00:30 |
nmz787 | but | 00:30 |
nmz787 | o.i() | 00:30 |
nmz787 | Traceback (most recent call last): | 00:30 |
nmz787 | File "<stdin>", line 1, in <module> | 00:30 |
nmz787 | TypeError: unbound method i() must be called with o instance as first argument (got nothing instead) | 00:30 |
@kanzure | yes | 00:30 |
@kanzure | you should use the @staticmethod decorator and get rid of the "self" parameter if you want to use i as a static method on o | 00:31 |
@kanzure | then you can call o.i() without an instance of o | 00:31 |
@kanzure | however, it is also okay to just put functions inside modules | 00:31 |
@kanzure | and inside other files | 00:31 |
brownies | have you not learned about pastebins yet -_- | 00:31 |
brownies | also what are you smoking that would drive you to name variables like that? | 00:31 |
@kanzure | agreed | 00:32 |
-!- Mariu [Jimmy98@89.41.57.33] has joined ##hplusroadmap | 00:32 | |
nmz787 | so brownies which variables? | 00:34 |
nmz787 | s/so// | 00:34 |
brownies | all of them. | 00:34 |
nmz787 | where? | 00:34 |
@kanzure | o and s are both really really bad names | 00:34 |
nmz787 | s? | 00:34 |
@kanzure | o and i | 00:34 |
@kanzure | if you named them something reasonable, maybe i would have been able to type them | 00:35 |
nmz787 | you don't use interactive mode to test ideas? | 00:35 |
@kanzure | sure i do. but i type things. | 00:35 |
nmz787 | ahh | 00:40 |
nmz787 | i suck at typing | 00:40 |
nmz787 | compared to you | 00:40 |
brownies | i don't know why, but not-descriptive-enough-variable-naming is a common mistake for beginning programmers | 00:42 |
nmz787 | so i've been programming for 15+ years | 00:43 |
brownies | just remember that your editor has autocomplete, so you really have no excuse for not using gratuitously long and descriptive naming | 00:43 |
nmz787 | :P | 00:43 |
brownies | you have? | 00:43 |
nmz787 | yes | 00:43 |
brownies | wild. what language? | 00:43 |
nmz787 | qbasic in the beginning | 00:43 |
brownies | and why have you been using single-letter variable names for 15 years | 00:43 |
nmz787 | then c | 00:43 |
nmz787 | c++ | 00:43 |
nmz787 | visual studio, html, c++ | 00:43 |
nmz787 | then python, c, python, bash once in a while | 00:44 |
brownies | i see | 00:44 |
nmz787 | .bat files | 00:44 |
* brownies counts on fingers | 00:44 | |
nmz787 | brownies: i've been saving lots of typing over the years | 00:44 |
brownies | i think i've been doing it for 15-16 years too. clearly you are slacking. | 00:44 |
nmz787 | less wear on the keyboard | 00:44 |
brownies | kanzure probably clocks in at about the same. | 00:44 |
@kanzure | ha ha ha | 00:44 |
@kanzure | brownies: you forget how old i'm not | 00:44 |
brownies | i think i might actually be at 17 years. memory is hazy. | 00:45 |
brownies | kanzure: yeah, but didn't everyone start programming when they were toddlers? | 00:45 |
@kanzure | 15 years ago was 8 for me | 00:45 |
nmz787 | brownies: i always thought they were 'variables' and the label didn't matter | 00:46 |
nmz787 | kanzure: didn't you write some dirty var word obfuscator? | 00:46 |
@kanzure | the label highly matters for maintainability | 00:46 |
nmz787 | you put code in and it swore at you | 00:46 |
@kanzure | yes, that's to *remove* terrible variable names | 00:46 |
@kanzure | "fuck" is way better than "p" | 00:46 |
nmz787 | hah | 00:46 |
nmz787 | 4x the bytes | 00:46 |
@kanzure | it's not about bytes | 00:46 |
@kanzure | it's about things like: are other people going to understand this? | 00:46 |
nmz787 | when it's just for interactive mode its fine | 00:46 |
@kanzure | will you understand this when you come back to it in 3 hours? what about 3 years? | 00:47 |
@kanzure | will the code still *work* in 3 years? | 00:47 |
@kanzure | what about 30? | 00:47 |
brownies | yeah ok it's just over 16 years for me. | 00:47 |
nmz787 | that 3 liner that didn't work anyway? | 00:47 |
nmz787 | i'm not gonna be scanning the logs for tha tone | 00:47 |
brownies | here is an example line of code | 00:47 |
brownies | return false if self.account.present? && self.account.plan.string_identifier == Plan::Types::V3_CREDITABLE | 00:47 |
brownies | grabbed from what i'm working on currently. i bet you can figure out exactly what it's doing even though you have no idea what i do. | 00:47 |
nmz787 | :/ | 00:48 |
nmz787 | not really | 00:48 |
@kanzure | what | 00:48 |
nmz787 | something about a credit rating? | 00:48 |
brownies | i was just making a point about descriptive variable names -_- | 00:48 |
nmz787 | for some account holder | 00:48 |
@kanzure | it's returning false if the account is present and it's on plan v3 | 00:48 |
brownies | ^ | 00:48 |
@kanzure | although self.account is sorta wonky. what is self! | 00:49 |
nmz787 | what's the ? mark? | 00:49 |
brownies | self is a User object | 00:49 |
brownies | "?" signifies (in Ruby) that the method call returns a bool | 00:49 |
@kanzure | in ruby you can use ? in function names because ruby is silly like that | 00:49 |
nmz787 | ahh | 00:49 |
nmz787 | ok | 00:49 |
phm | If you like ruby.. have you tried using a real smalltalk? | 00:55 |
-!- sheena1 [~home@d207-216-112-48.bchsia.telus.net] has quit [Remote host closed the connection] | 01:01 | |
@kanzure | nmz787: index_min doesn't make sense to me. isn't the smallest index of any list always going to be 0? | 01:02 |
nmz787 | wheres that? | 01:02 |
@kanzure | https://github.com/nmz787/open-spectrometer/blob/master/desktop-software/openSpectrometer.py#L6 | 01:02 |
eleitl | how would you port a web application to run inside a web browser, on a mobile? | 01:28 |
eleitl | kanzure, check pm | 01:29 |
@kanzure | well, it depends on the browser on mobile | 01:31 |
@kanzure | i think firefox for mobile has extensions (fennec) | 01:31 |
eleitl | it has to be able to do iOS | 01:31 |
eleitl | currently it's an apache/perl/cgi-bin dog calling search engines in C/C++ | 01:32 |
@kanzure | it ? | 01:32 |
@kanzure | oh the current web application | 01:32 |
eleitl | yeah | 01:32 |
eleitl | written by retarded monkeys | 01:32 |
@kanzure | eleitl: i actually have direct experience making mobile applications, if this is for infochem i'd be happy to talk about a formal arrangement :P | 01:32 |
@kanzure | sometimes putting it in a browser on mobile is not the best idea | 01:33 |
eleitl | the issue is that this is for firefighters, so no Internet access | 01:33 |
eleitl | you might want to bypass the Apple market | 01:33 |
@kanzure | in fact, i have direct experience making mobile apps for fire fighters | 01:33 |
eleitl | I'll try to hook you up with the project, how expensive are you? | 01:34 |
eleitl | Infochem is a cheap shop, as you know | 01:34 |
@kanzure | at this time i can't quote you, but i would be happy to engage in an agreement to write a proposal to write a proposal | 01:34 |
@kanzure | ah | 01:34 |
eleitl | the problem is that the search engines are proprietary | 01:35 |
eleitl | I presume it will be required to port them to JavaScript, or maybe rewrite the app to bypass the current webstack cgi-bin logic | 01:36 |
@kanzure | if it's portable C, it could be recompiled for the target platforms | 01:37 |
@kanzure | i shouldn't be that quick to propose mobile app projects, they aren't that fun :) | 01:48 |
nmz787 | kanzure: so i found a bug using JSON | 01:54 |
@kanzure | sup | 01:55 |
nmz787 | it can't handle numbers as keys | 01:55 |
@kanzure | what? really? | 01:55 |
nmz787 | it converts the wavelengths to strings on save to file | 01:55 |
nmz787 | http://stackoverflow.com/questions/1450957/pythons-json-module-converts-int-dictionary-keys-to-strings | 01:55 |
@kanzure | In [3]: json.dumps({500: 700}) | 01:55 |
@kanzure | Out[3]: '{"500": 700}' | 01:55 |
@kanzure | dafuq | 01:55 |
nmz787 | :( | 01:55 |
nmz787 | you mentioned yaml | 01:55 |
@kanzure | In [5]: simplejson.dumps({500: 700}) | 01:56 |
@kanzure | Out[5]: '{"500": 700}' | 01:56 |
@kanzure | sudo pip install pyyaml | 01:56 |
nmz787 | can you test it first | 01:56 |
@kanzure | In [2]: yaml.dump({500: 700}) | 01:56 |
@kanzure | Out[2]: '{500: 700}\n' | 01:56 |
nmz787 | kanzure: so just like this is where the django module lives C:\Users\Nathan\portablePython\Portable Python 2.7.3.2\App\Lib\site-packages\django | 01:58 |
nmz787 | would i put the spectrometer module in site-packages? | 01:58 |
nmz787 | it i wanted to add it to this portablePython 'distro' | 01:59 |
@kanzure | i don't know anything about portablePython | 01:59 |
@kanzure | you would have to read its documentation for how to add modules | 01:59 |
@kanzure | there's probably a build script | 01:59 |
nmz787 | well do you thin kthats where it would go? | 01:59 |
@kanzure | a folder would be placed there, but other things might happen too | 01:59 |
@kanzure | read the documentation | 01:59 |
nmz787 | someone says MyPythonPath\App\python MyDownloadPath\setup.py install | 02:00 |
@kanzure | windows is weird | 02:01 |
@kanzure | have you considered just using cygwin's version of python | 02:01 |
nmz787 | nope | 02:01 |
@kanzure | have you ever used cygwin? | 02:01 |
nmz787 | unless portableCygwin exists | 02:01 |
nmz787 | i specifically want this for the school right now, where I can't install things | 02:02 |
@kanzure | i think you should learn about py2exe and how python distributions work | 02:02 |
nmz787 | yeah that's included in portablePython | 02:02 |
@kanzure | ok, well, that's a huge problem. just replace their computers with your own. | 02:02 |
nmz787 | no dude | 02:02 |
nmz787 | you're crazy sometimes | 02:02 |
@kanzure | it's crazy that they would place that restriction | 02:02 |
nmz787 | no | 02:02 |
@kanzure | have you considered wiping their machine? | 02:02 |
nmz787 | viruses did that | 02:02 |
@kanzure | right | 02:03 |
nmz787 | no | 02:03 |
nmz787 | not at all | 02:03 |
@kanzure | tell them it was a virus | 02:03 |
@kanzure | what's the point of a computer if you can't use it | 02:03 |
nmz787 | i can | 02:03 |
nmz787 | damn dude | 02:03 |
nmz787 | it's not that big of a deal to let people run shit how they see fit | 02:04 |
@kanzure | huh? that's exactly what they are *not* doing | 02:04 |
nmz787 | i'd have to go all rms and get the IT dept pissed off to try any of your ideas | 02:04 |
nmz787 | no kanzure THEY see fit to place resitrictions, that's how THEY see fit to RUN THEIR operation | 02:05 |
@kanzure | on a related note, you can boot linux from a usb stick | 02:07 |
nmz787 | yes | 02:07 |
nmz787 | no normal people use linux | 02:07 |
nmz787 | don't you get that? | 02:07 |
@kanzure | android | 02:07 |
@kanzure | lots of scientists use linux btw. | 02:08 |
nmz787 | that isn't really what you're talking about | 02:08 |
nmz787 | many academic IT infrastructures are windows | 02:08 |
nmz787 | and i don't care to fight them | 02:08 |
nmz787 | you can | 02:08 |
@kanzure | this isn't about fighting anything | 02:09 |
@kanzure | this is about using that spectrometer | 02:09 |
nmz787 | but in the mean time i'm just gonna write this software, put it on portablePython and hand it to them and say 'copy this fold and shortcut, click the shortcut' done. | 02:09 |
nmz787 | no you keep bitching about me working around their shitty system that I'm not gonna fight against | 02:09 |
nmz787 | by giving me shit answers like 'wipe the schools hard drive' | 02:10 |
nmz787 | that's not a solution | 02:10 |
nmz787 | are you not understanding this or are you screwing with me? | 02:10 |
@kanzure | what about plugging in another computer instead? like a $50 crapbox. | 02:10 |
nmz787 | why? | 02:10 |
nmz787 | no | 02:10 |
nmz787 | no | 02:10 |
nmz787 | no | 02:11 |
nmz787 | i'm not donating new crap computers to every workstation they own | 02:11 |
nmz787 | in very lab with a biowave II | 02:11 |
nmz787 | any way | 02:11 |
nmz787 | you obv aren't comprehending | 02:11 |
@kanzure | is that more than one lab? | 02:11 |
-!- sylph_mako [~mako@103-9-42-1.flip.co.nz] has quit [Ping timeout: 256 seconds] | 02:11 | |
nmz787 | come one man | 02:11 |
@kanzure | i don't think you should be upset at me about this | 02:13 |
nmz787 | you just keep hammering though and not getting that your ideas suck in this context | 02:14 |
@kanzure | i want to use spectrometers with good software just as much as you do | 02:14 |
nmz787 | yes | 02:14 |
nmz787 | i know that | 02:14 |
nmz787 | but the library in general is going hand-in-hand with me wanting to help out the labs at this school a bit | 02:15 |
nmz787 | the rest of the students were copying numbers from the LCD display these things by hand | 02:15 |
@kanzure | what? | 02:15 |
@kanzure | why would they agree to that? | 02:15 |
nmz787 | who? | 02:16 |
@kanzure | anyone :) | 02:17 |
@kanzure | students, staff, etc. | 02:17 |
nmz787 | dude | 02:17 |
nmz787 | you must be slightly autistic about normal people | 02:17 |
nmz787 | they don't know what com ports and baud rates are | 02:17 |
brownies | first of all, they're not normal people, they're scientists | 02:20 |
brownies | second of all, what do baud rates have to do with it? | 02:20 |
nmz787 | because tha is how i interfaced to the spectrometer | 02:23 |
nmz787 | their computers weren't even hooked up because they didn't seem to have software | 02:23 |
eleitl | scientists have tech people to take care of details, if they're computer-tarded | 02:23 |
nmz787 | and i'd say they're science students | 02:23 |
nmz787 | these are teaching labs, not research labs | 02:24 |
eleitl | does your spectrometer have ethernet? | 02:24 |
nmz787 | eleitl: HAH | 02:24 |
nmz787 | no | 02:24 |
eleitl | if it has ethernet, use a web stack | 02:24 |
nmz787 | it has tetris and sudoku though | 02:24 |
eleitl | it should have ethernet, ethernet SoCs are effectively free | 02:24 |
nmz787 | it has USB but you can't plug a flash drive into it to save data | 02:25 |
brownies | i don't know. i'm not willing to agree that it's ok for a scientist to not know how to use his tools. | 02:25 |
nmz787 | eleitl: oh openSpectrometer? | 02:25 |
@kanzure | websatck doesn't work because he can't install a server to listen to com | 02:25 |
eleitl | yes, OpenSpectrometer | 02:25 |
eleitl | you're talking about your current closed box? | 02:25 |
nmz787 | eleitl: we have been on the school's spectrometer yes | 02:26 |
nmz787 | eleitl: whizet chips? | 02:26 |
eleitl | whizet what? | 02:26 |
-!- nsh [~nsh@wikipedia/nsh] has quit [Ping timeout: 276 seconds] | 02:26 | |
nmz787 | eleitl: http://www.sainsmart.com/sainsmart-ethernet-shield-w5100-for-arduino.html | 02:28 |
nmz787 | eleitl: the free ethernet | 02:28 |
eleitl | yeah, something like that | 02:28 |
nmz787 | it will support that I/O interface, but it would be optional | 02:28 |
eleitl | old arduinos are a bit weak, but newer and related open hardware can do it | 02:28 |
nmz787 | i'm probably using a propeller | 02:29 |
-!- Juul [~Juul@208.87.217.74] has joined ##hplusroadmap | 02:29 | |
nmz787 | otherwise i'd need a small CPLD to handle the CCD timing | 02:29 |
nmz787 | at least that's how the pros do it | 02:29 |
Juul | paperbot, help | 02:29 |
@kanzure | Juul: ask "paperbot: http://..." | 02:30 |
Juul | kanzure, cool. is the code for paperbot available? | 02:30 |
@kanzure | Juul: https://github.com/kanzure/paperbot | 02:30 |
Juul | :) | 02:30 |
@kanzure | Juul: and you can find some architecture discussion here https://groups.google.com/group/science-liberation-front | 02:30 |
Juul | yeah i was reading through the threads | 02:31 |
@kanzure | are you doing the noisebridge hackathon? | 02:31 |
Juul | yeah, tomorrow | 02:32 |
Juul | didn't go to the memorial though | 02:32 |
Juul | figured staying at home and coding was more important | 02:32 |
@kanzure | yep | 02:32 |
@kanzure | ted nelson gave a speech | 02:32 |
Juul | ah | 02:32 |
@kanzure | i thought that was pretty cool. "oh by the way, the inventor of the fucking hyperlink would like to say a few words." | 02:33 |
nmz787 | kanzure: so this patch doesn't seem to be in the latest version of pyyaml | 02:34 |
nmz787 | http://pyyaml.org/attachment/ticket/219/pyyaml-ticket-219.patch | 02:34 |
@kanzure | "don't use tabs in yaml" is a sane piece of advice | 02:35 |
gedankenstuecke | kanzure: "don't use tabs" is a sane piece of advice | 02:35 |
@kanzure | gedankenstuecke: i don't want to be commander in chief in charge of that war | 02:35 |
@kanzure | nmz787: you can set vim to use spaces with :set tabwidth=4 | 02:36 |
@kanzure | erm.. and one other thing. i forget. i am tired. | 02:36 |
@kanzure | also the cyaml package might support tabs | 02:36 |
nmz787 | kanzure: i guess yaml don like tabs | 02:37 |
@kanzure | i had to switch from pyyaml to cyaml for meetlog.yaml because pyyaml would take >10 hours to parse my data | 02:37 |
@kanzure | whereas cyaml would take 4 seconds. | 02:37 |
@kanzure | Juul: paperbot uses https://github.com/zotero/translators and https://github.com/zotero/translation-server | 02:38 |
@kanzure | Juul: actually i had to write a patch to translation server, i just pushed it up.. | 02:42 |
@kanzure | https://github.com/kanzure/translation-server/commit/4d35648672c1ff2d2b6c61308ac7fcb684d63448 | 02:42 |
eleitl | My friend remarked to me that a century and half of cheap energy in the form of fossil fuels has attenuated our awareness of energy flows so much that we as a society have become essentially unconscious of energy. | 02:43 |
eleitl | http://www.csmonitor.com/Environment/Energy-Voices/2013/0122/Oil-and-climate-change-in-the-age-of-energy-scarcity | 02:43 |
Mariu | :o | 02:44 |
sivoais | for the spaces for tabs it's :set tw=4 sw=4 sts=4 et | 02:44 |
@kanzure | et is expandtab i think | 02:45 |
@kanzure | tw is tabwidth | 02:45 |
@kanzure | sw is sodomywanker | 02:45 |
sivoais | lol, shiftwidth | 02:45 |
@kanzure | ah right | 02:45 |
@kanzure | yes that one | 02:45 |
nmz787 | kanzure: so i made a helpers.py file | 02:46 |
nmz787 | and pasted this into it https://gist.github.com/844388 | 02:46 |
nmz787 | you said something about __init__ in a file | 02:47 |
-!- nuba [~nuba@pauleira.com] has quit [Read error: Operation timed out] | 02:47 | |
@kanzure | you can tell python that a folder is a module by dropping a __init__.py file into the folder | 02:47 |
nmz787 | ahh i found it | 02:47 |
-!- nuba [~nuba@pauleira.com] has joined ##hplusroadmap | 02:47 | |
nmz787 | where you saif | 02:47 |
nmz787 | reading logs | 02:47 |
-!- Juul [~Juul@208.87.217.74] has quit [Ping timeout: 245 seconds] | 02:47 | |
nmz787 | kanzure: why did you name the module spectrometer but the class Spectrometer | 02:48 |
@kanzure | in python, class names tend to be capitalized | 02:48 |
@kanzure | except for default types | 02:48 |
-!- curtiss [~curtis@sol.whatbox.ca] has quit [Ping timeout: 248 seconds] | 02:49 | |
@kanzure | i named the module spectrometers and the class is Spectrometer because it represents a generic spectrometer | 02:49 |
@kanzure | the namespace is spectrometers in general. | 02:49 |
-!- curtiss [~curtis@sol.whatbox.ca] has joined ##hplusroadmap | 02:51 | |
-!- phm [~anon@host-78-149-106-41.as13285.net] has quit [Quit: Leaving] | 02:53 | |
eleitl | "you attemted to close 435 tabs" | 02:53 |
@kanzure | you must transcend beyond tabs. | 02:54 |
eleitl | my devs are so clueless | 02:55 |
eleitl | told them they can't expect java in the browser | 02:55 |
eleitl | especially in the future | 02:55 |
-!- xx [~xx@72.53.96.212] has quit [Read error: Connection reset by peer] | 02:55 | |
@kanzure | an easy call to make.. | 02:55 |
eleitl | it's funny how incompetent shops manage to stick around for decades | 02:55 |
eleitl | not that I'm complaining... not much | 02:55 |
-!- Viper168_ [~Viper@unaffiliated/viper168] has joined ##hplusroadmap | 02:56 | |
@kanzure | well you don't rely on technical excellence | 02:56 |
-!- xx [~xx@72.53.96.212] has joined ##hplusroadmap | 02:56 | |
@kanzure | you rely on fat springer monopolies | 02:56 |
eleitl | nope, the unit has always been in the green, on its own | 02:56 |
@kanzure | ah neat | 02:56 |
eleitl | it wasn't always owned by springer | 02:56 |
eleitl | it's just the niche is cushy, or used to be | 02:57 |
eleitl | now CAS has started to kick our butt | 02:57 |
@kanzure | is CAS the one doing chemspider? | 02:57 |
nmz787 | unit? | 02:57 |
eleitl | we're effectively just contractors to them | 02:57 |
eleitl | and contractors are exchangeable, if the code quality is adequate | 02:57 |
@kanzure | nmz787: business unit | 02:57 |
nmz787 | eleitl: you're working for springer the paper ppl? | 02:57 |
eleitl | so the current major refactoring project could be heralding... something | 02:58 |
eleitl | indirectly, nmz787. but the payroll is from springer, yes. | 02:58 |
-!- Viper168 [~Viper@unaffiliated/viper168] has quit [Ping timeout: 255 seconds] | 02:58 | |
-!- Viper168_ [~Viper@unaffiliated/viper168] has quit [Ping timeout: 245 seconds] | 03:01 | |
nmz787 | kanzure: should I change from .biowave2 import Biowave2 | 03:01 |
nmz787 | to from .biowave2 import Biowave_II | 03:01 |
nmz787 | since that's how the manufacturer termed it | 03:02 |
@kanzure | i rarely see underscores in python classnames | 03:02 |
@kanzure | also i dunno if it was BioWave or Biowave, i didn't check that one.. | 03:03 |
-!- Viper168 [~Viper@unaffiliated/viper168] has joined ##hplusroadmap | 03:03 | |
nmz787 | hmm | 03:04 |
nmz787 | so do all functions in spectrometer.py and helpers.py need to be in __init__.py? | 03:04 |
eleitl | do you think if you buy a pig cadaver from a butcher for an experiment, it would count as an animal experiment, in the eyes of the law? | 03:04 |
nmz787 | eleitl: i think the liability ends at the butcher | 03:04 |
eleitl | yeah, at least it's not vivisectioni | 03:05 |
nmz787 | eleitl: liability for mistreating the animal by faulty slaughtering | 03:05 |
@kanzure | nmz787: nope, look up how __all__ works | 03:05 |
@kanzure | nmz787: btw, the ascended god of python is kenneth reitz. you should read his code. | 03:05 |
@kanzure | https://github.com/kennethreitz/requests | 03:05 |
gedankenstuecke | eleitl: under german law animal experiments are defined as experiments on living animals | 03:06 |
eleitl | ok, so it seems we might be covered | 03:06 |
eleitl | now to find a butcher who would't bleed out the animals | 03:06 |
nmz787 | kanzure: i dont get it | 03:06 |
@kanzure | nmz787: also he wrote some helpful things, http://docs.python-guide.org/en/latest/ | 03:06 |
@kanzure | nmz787: i mean, take some time to understand how requests work because it's all very general and applies to tons of other projects | 03:07 |
@kanzure | it might be for http requests, but the way it's written is generic and widely applicable. | 03:07 |
eleitl | I think they use electrostun and/or shooting a bolt into the brain | 03:07 |
nmz787 | kanzure: so what should i do re __init__.py | 03:08 |
eleitl | but then they bleed out. the latter wouldn't do. | 03:08 |
nmz787 | you said i needed to say .helpers import min | 03:08 |
nmz787 | etc | 03:08 |
nmz787 | earlier | 03:08 |
nmz787 | so i could say from spectrometer import min | 03:08 |
@kanzure | nmz787: you can do from whatever import * if you want | 03:08 |
eleitl | of course we could still train surgery, but perfusion would be fucked | 03:08 |
nmz787 | so what is __init__.py for? | 03:09 |
@kanzure | "If __all__ is not defined, the statement from sound.effects import * does not import all submodules from the package sound.effects into the current namespace; it only ensures that the package sound.effects has been imported (possibly running any initialization code in __init__.py) and then imports whatever names are defined in the package." | 03:09 |
@kanzure | "The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path. In the simplest case, __init__.py can just be an empty file, but it can also execute initialization code for the package or set the __all__ variable, described later." | 03:09 |
nmz787 | eleitl: i got a rabbit from a country farm girl, and read up on USDA slaughtering for rabbits | 03:09 |
@kanzure | nmz787: __init__.py is to tell python that it's a module | 03:10 |
nmz787 | hmm | 03:10 |
nmz787 | so as long as init__.py is there | 03:10 |
nmz787 | i can say import dirName | 03:11 |
@kanzure | yes. | 03:11 |
nmz787 | dirName.funcInAnyFileInDir | 03:11 |
nmz787 | () | 03:11 |
@kanzure | not quite | 03:11 |
nmz787 | hrm | 03:11 |
@kanzure | import my_package.helpers; my_package.helpers.some_helper() | 03:11 |
@kanzure | or in my_package/__init__.py you could say "from helpers import *" | 03:11 |
@kanzure | then you could do: import my_package; my_package.some_helper() | 03:12 |
@kanzure | etc. | 03:12 |
@kanzure | it's worth playing around with to see how it works | 03:12 |
nmz787 | ahh | 03:12 |
nmz787 | the latter i like | 03:12 |
@kanzure | and the reason why i told you to read kennethreitz's stuff is because i'm sleeping now | 03:12 |
@kanzure | night | 03:12 |
nmz787 | i don't want people to type helpers | 03:12 |
nmz787 | i should too | 03:13 |
eleitl | rabbits are a bit too small | 03:13 |
eleitl | it's probably pigs or sheep | 03:13 |
nmz787 | eleitl: too smal for? | 03:13 |
eleitl | you also don't have to shave the pigs | 03:13 |
eleitl | training surgery and perfusion | 03:14 |
nmz787 | aren't some hairy? | 03:14 |
nmz787 | hmm | 03:14 |
eleitl | well, shaving them would be easier, in any case | 03:14 |
nmz787 | heh, roadkill? | 03:14 |
nmz787 | :) | 03:14 |
nmz787 | get a bunch of salt lick blocks, place them near your local motorway... wait | 03:14 |
nmz787 | i guess that's not responsible | 03:15 |
nmz787 | what about breeding nude rats or mice | 03:15 |
eleitl | euthanized large dogs would be optimal | 03:15 |
nmz787 | chihuahuas are nude i think | 03:16 |
nmz787 | some | 03:16 |
nmz787 | oh | 03:16 |
nmz787 | no that was just in Austin Powers | 03:16 |
nmz787 | and that was a cat | 03:16 |
nmz787 | http://austinpowers.wikia.com/wiki/Mr._Bigglesworth | 03:16 |
nmz787 | eleitl: http://www.taconic.com/wmspage.cfm?parm1=773 | 03:17 |
eleitl | I've worked with rabbits, they're too small | 03:17 |
eleitl | plus, they mush up at RT very quickly | 03:17 |
nmz787 | eleitl: i've immunized mice in their tail before | 03:17 |
eleitl | if you try to cannulate the whole vessel disintegrates | 03:17 |
nmz787 | and done a bunch of organ extractions | 03:17 |
nmz787 | cannulate means interface with a tube? | 03:18 |
@kanzure | eleitl: didn't you run some part of alcor for a while? | 03:18 |
@kanzure | hm i should be sleeping instead of making these things up | 03:18 |
nmz787 | eleitl: if they mush up seems like you're doing something wrong | 03:18 |
eleitl | I never ran anything, I worked at 21CM and CCR. | 03:19 |
eleitl | we did R&D | 03:19 |
eleitl | Alcor uses X1000, which I helped develop | 03:19 |
nmz787 | eleitl: prices seem decent http://www.taconic.com/user-assets/Catalog/2013_european/BALBNU.pdf | 03:20 |
nmz787 | eleitl: though this probably isn't the best strain for ease of population expansion/maintenance | 03:21 |
eleitl | our lab can't even do rodents | 03:21 |
eleitl | regulation burden way too high | 03:21 |
nmz787 | hmm, would they work though? | 03:22 |
nmz787 | like, really, does mushy mean dead? | 03:22 |
eleitl | I think the time is now to start looking for emergency funding for 3 months | 03:22 |
eleitl | dead can mean many things | 03:22 |
eleitl | in principle rabbits have a higher metabolism than people, so they're not a very good model for humans | 03:23 |
eleitl | so just because your vessels start to disintegrate at +15 min at RT, it doesn' | 03:23 |
eleitl | t mean that human ones will | 03:23 |
eleitl | it's really shitty to do this part time | 03:29 |
eleitl | even with my negligible duty cycle | 03:30 |
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has joined ##hplusroadmap | 03:43 | |
nmz787 | hmm | 03:44 |
nmz787 | well gnight | 03:44 |
nmz787 | kanzure: https://github.com/nmz787/python-spectrometers/tree/master/spectrometers | 04:16 |
eleitl | shipping from china takes awhile | 04:18 |
-!- Juul [~Juul@208.87.217.74] has joined ##hplusroadmap | 04:29 | |
-!- u-metacognition [~metacogni@99-7-58-96.lightspeed.davlca.sbcglobal.net] has quit [] | 04:32 | |
-!- ThomasEgi [~thomas@gw-ko-kostr2.inka-online.net] has joined ##hplusroadmap | 04:37 | |
-!- ThomasEgi [~thomas@gw-ko-kostr2.inka-online.net] has quit [Changing host] | 04:37 | |
-!- ThomasEgi [~thomas@panda3d/ThomasEgi] has joined ##hplusroadmap | 04:37 | |
-!- Mariu [Jimmy98@89.41.57.33] has quit [Quit: leaving] | 05:13 | |
Juul | paperbot, http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0054742 | 05:16 |
paperbot | error: HTTP 500 http://diyhpl.us/~bryan/papers2/paperbot/Comprehensive%20Analysis%20of%20DNA%20Methylation%20in%20Head%20and%20Neck%20Squamous%20Cell%20Carcinoma%20Indicates%20Differences%20by%20Survival%20and%20Clinicopathologic%20Characteristics.pdf | 05:16 |
Juul | iiinteresting | 05:17 |
-!- Mariu [Jimmy98@89.41.57.33] has joined ##hplusroadmap | 05:17 | |
Juul | paperbot, http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0054466 | 05:19 |
paperbot | error: HTTP 500 http://diyhpl.us/~bryan/papers2/paperbot/Green%20Tea%20Phenolic%20Epicatechins%20Inhibit%20Hepatitis%20C%20Virus%20Replication%20via%20Cycloxygenase-2%20and%20Attenuate%20Virus-Induced%20Inflammation.pdf | 05:19 |
-!- eudoxia [~eudoxia@r186-52-43-34.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 05:57 | |
-!- safitan [~safitan@75-105-12-23.cust.wildblue.net] has joined ##hplusroadmap | 06:04 | |
-!- safitan is now known as gl00m | 06:07 | |
-!- augur [~augur@208.58.5.87] has quit [Remote host closed the connection] | 06:07 | |
-!- gl00m [~safitan@75-105-12-23.cust.wildblue.net] has quit [Client Quit] | 06:08 | |
-!- augur [~augur@208.58.5.87] has joined ##hplusroadmap | 06:08 | |
-!- augur [~augur@208.58.5.87] has quit [Ping timeout: 240 seconds] | 06:12 | |
-!- Viper168 [~Viper@unaffiliated/viper168] has quit [Ping timeout: 240 seconds] | 06:13 | |
-!- Viper168 [~Viper@unaffiliated/viper168] has joined ##hplusroadmap | 06:13 | |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has quit [Ping timeout: 276 seconds] | 06:14 | |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has joined ##hplusroadmap | 06:15 | |
-!- yorick [~yorick@ip51cd0513.speed.planet.nl] has joined ##hplusroadmap | 06:29 | |
-!- yorick [~yorick@ip51cd0513.speed.planet.nl] has quit [Changing host] | 06:29 | |
-!- yorick [~yorick@oftn/member/yorick] has joined ##hplusroadmap | 06:29 | |
-!- AlonzoTG [~atg@dsl092-168-049.wdc2.dsl.speakeasy.net] has joined ##hplusroadmap | 06:42 | |
-!- augur [~augur@129-2-129-32.wireless.umd.edu] has joined ##hplusroadmap | 06:43 | |
-!- AdrianG [~dextro@unaffiliated/amphetamine] has quit [Read error: Connection reset by peer] | 06:46 | |
-!- AdrianG [~dextro@unaffiliated/amphetamine] has joined ##hplusroadmap | 06:46 | |
-!- eudoxia [~eudoxia@r186-52-43-34.dialup.adsl.anteldata.net.uy] has quit [Quit: leaving] | 06:51 | |
-!- Juul [~Juul@208.87.217.74] has quit [Ping timeout: 244 seconds] | 06:57 | |
-!- augur [~augur@129-2-129-32.wireless.umd.edu] has quit [Read error: Connection reset by peer] | 07:01 | |
-!- augur [~augur@129-2-129-32.wireless.umd.edu] has joined ##hplusroadmap | 07:01 | |
-!- augur [~augur@129-2-129-32.wireless.umd.edu] has quit [Read error: Connection reset by peer] | 07:11 | |
-!- augur [~augur@129-2-129-32.wireless.umd.edu] has joined ##hplusroadmap | 07:12 | |
-!- paperbot [~paperbot@131.252.130.248] has quit [Ping timeout: 252 seconds] | 07:25 | |
-!- gnusha [~gnusha@131.252.130.248] has joined ##hplusroadmap | 07:30 | |
-!- Topic for ##hplusroadmap: biohacking, nootropics, transhumanism, open hardware | sponsored by george church and the NRA | http://gnusha.org/logs http://diyhpl.us/wiki http://groups.google.com/group/diybio | friends don't let friends do super college | 07:30 | |
-!- Topic set by kanzure [~kanzure@131.252.130.248] [Fri Aug 10 08:01:18 2012] | 07:30 | |
[Users ##hplusroadmap] | 07:30 | |
[@fenn ] [ brownies ] [ gnusha ] [ lolcat ] [ Sanky ] [ Thorbinator] | 07:30 | |
[ _Sol_ ] [ Charlie_ ] [ guest43256] [ Mariu ] [ saurik ] [ underscor ] | 07:30 | |
[ abetusk ] [ chido ] [ heath ] [ nmz787 ] [ SDr ] [ upgrayeddd ] | 07:30 | |
[ AdrianG ] [ chris_99 ] [ Helleshin ] [ nuba ] [ seba- ] [ Urchin ] | 07:30 | |
[ AlonzoTG ] [ Coornail ] [ Hu_Meanan ] [ OldCoder_ ] [ sivoais ] [ Vicarious ] | 07:30 | |
[ archels ] [ curtiss ] [ indigenous] [ panax ] [ smeaaagle ] [ Viper168 ] | 07:30 | |
[ ArmilusDajjal] [ devrandom ] [ ivan` ] [ ParahSailin] [ strangewarp] [ wizrobe ] | 07:30 | |
[ augur ] [ eleitl ] [ joehot ] [ pasky ] [ streety ] [ xx ] | 07:30 | |
[ balrog ] [ eleitl2 ] [ jrayhawk ] [ phryk ] [ superkuh ] [ xx2 ] | 07:30 | |
[ barriers ] [ ElixirVitae ] [ juri_ ] [ qu-bit ] [ Thomas42 ] [ yoleaux ] | 07:30 | |
[ bkero ] [ gedankenstuecke] [ lichen ] [ rigel ] [ ThomasEgi ] [ yorick ] | 07:30 | |
-!- Irssi: ##hplusroadmap: Total of 66 nicks [1 ops, 0 halfops, 0 voices, 65 normal] | 07:30 | |
-!- Channel ##hplusroadmap created Thu Feb 25 23:40:30 2010 | 07:30 | |
-!- Irssi: Join to ##hplusroadmap was synced in 6 secs | 07:30 | |
-!- abetusk [~abetusk@cpe-24-58-232-122.twcny.res.rr.com] has quit [Remote host closed the connection] | 07:31 | |
@fenn | THERE CAN ONLY BE ONE | 07:34 |
-!- kanzure [~kanzure@131.252.130.248] has joined ##hplusroadmap | 07:35 | |
Mariu | who ? | 07:35 |
Mariu | right, operator I'm guessing | 07:35 |
-!- EnLilaSko [~Nattzor@unaffiliated/enlilasko] has joined ##hplusroadmap | 07:41 | |
-!- ParahSailin [~eg@unaffiliated/parahsailin] has quit [Ping timeout: 248 seconds] | 08:08 | |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has quit [Ping timeout: 276 seconds] | 08:27 | |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has joined ##hplusroadmap | 08:30 | |
-!- ParahSailin [~eg@50-194-178-148-static.hfc.comcastbusiness.net] has joined ##hplusroadmap | 08:31 | |
-!- OldCoder_ [~OldCoder_@c-69-181-140-134.hsd1.ca.comcast.net] has quit [Quit: Leaving] | 08:33 | |
-!- eudoxia [~eudoxia@r186-52-43-34.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 08:34 | |
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has quit [Quit: Leaving] | 09:10 | |
-!- archbox_ [~archbox@unaffiliated/archbox] has joined ##hplusroadmap | 09:14 | |
-!- eudoxia [~eudoxia@r186-52-43-34.dialup.adsl.anteldata.net.uy] has quit [Read error: No route to host] | 09:16 | |
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has joined ##hplusroadmap | 09:16 | |
-!- chrisian [~Christian@c-67-173-247-251.hsd1.co.comcast.net] has joined ##hplusroadmap | 09:17 | |
-!- strangewarp [~Christian@c-67-173-247-251.hsd1.co.comcast.net] has quit [Disconnected by services] | 09:18 | |
-!- chrisian is now known as strangewarp | 09:18 | |
-!- xx [~xx@72.53.96.212] has quit [Ping timeout: 255 seconds] | 09:19 | |
-!- OldCoder_ [~OldCoder_@c-69-181-140-134.hsd1.ca.comcast.net] has joined ##hplusroadmap | 09:21 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has joined ##hplusroadmap | 09:32 | |
-!- paperbot [~paperbot@131.252.130.248] has joined ##hplusroadmap | 09:34 | |
kanzure | hmm | 09:55 |
kanzure | https://github.com/nmz787/python-spectrometers/commit/73b27bb858fd7af3f48e7ca65c92ab1e83f63c1d | 09:55 |
kanzure | nuclear snorkeling | 10:06 |
nmz787 | nuclear? | 10:09 |
nmz787 | kanzure: setup.py", line 12, in <module> | 10:13 |
nmz787 | long_description=open("README.rst", "r").read(), | 10:13 |
nmz787 | IOError: [Errno 2] No such file or directory: 'README.rst' | 10:13 |
nmz787 | i think you need a relative URL | 10:13 |
nmz787 | oh it works when i run setup from the same dir that its in | 10:14 |
kanzure | import os | 10:15 |
kanzure | open(os.path.join(os.path.basename(os.path.realpath(__FILE__)), "README.rst") | 10:16 |
kanzure | something like that | 10:16 |
-!- strangewarp [~Christian@c-67-173-247-251.hsd1.co.comcast.net] has quit [Ping timeout: 240 seconds] | 10:24 | |
-!- strangewarp [~Christian@c-67-173-247-251.hsd1.co.comcast.net] has joined ##hplusroadmap | 10:25 | |
-!- archbox_ [~archbox@unaffiliated/archbox] has quit [Read error: Operation timed out] | 10:30 | |
* heath feels like he should play the Matrix soundtrack now that he has 5 monitors.. not including the laptop and tablet screens :) | 10:45 | |
-!- eudoxia [~eudoxia@r186-53-135-23.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 10:46 | |
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has quit [Quit: Leaving] | 10:54 | |
strangewarp | only got 2 screens here, one of which isn't in use, but my setup uses 5 ATMEGA chips, which makes me happy | 10:54 |
Mariu | follow the blue rabbit | 10:58 |
-!- panax [panax@131.247.116.2] has quit [Read error: Connection reset by peer] | 11:17 | |
-!- xx [~xx@72.53.96.212] has joined ##hplusroadmap | 11:18 | |
-!- panax [~panax@68.200.160.182] has joined ##hplusroadmap | 11:20 | |
-!- panax [~panax@68.200.160.182] has quit [Ping timeout: 256 seconds] | 11:27 | |
-!- eudoxia [~eudoxia@r186-53-135-23.dialup.adsl.anteldata.net.uy] has quit [Remote host closed the connection] | 11:28 | |
-!- panax [~panax@68.200.160.182] has joined ##hplusroadmap | 11:30 | |
-!- chrisian [~Christian@c-67-173-247-251.hsd1.co.comcast.net] has joined ##hplusroadmap | 11:31 | |
-!- gnusha_ [~gnusha@131.252.130.248] has joined ##hplusroadmap | 11:38 | |
-!- Topic for ##hplusroadmap: biohacking, nootropics, transhumanism, open hardware | sponsored by george church and the NRA | http://gnusha.org/logs http://diyhpl.us/wiki http://groups.google.com/group/diybio | friends don't let friends do super college | 11:38 | |
-!- Topic set by kanzure [~kanzure@131.252.130.248] [Fri Aug 10 08:01:18 2012] | 11:38 | |
[Users ##hplusroadmap] | 11:38 | |
[@fenn ] [ chido ] [ Helleshin ] [ nuba ] [ seba- ] [ Vicarious] | 11:38 | |
[ _Sol_ ] [ Coornail ] [ He||eshin ] [ OldCoder_ ] [ sivoais ] [ Viper168 ] | 11:38 | |
[ AdrianG ] [ curtiss ] [ Hu_Meanan ] [ panax ] [ smeaaagle ] [ wizrobe ] | 11:38 | |
[ AlonzoTG ] [ devrandom ] [ indigenous] [ paperbot ] [ SolG ] [ xx ] | 11:38 | |
[ archels ] [ eleitl ] [ ivan` ] [ ParahSailin] [ strangewarp] [ xx2 ] | 11:38 | |
[ ArmilusDajjal] [ eleitl2 ] [ joehot ] [ pasky ] [ streety ] [ xxx ] | 11:38 | |
[ augur ] [ ElixirVitae ] [ jrayhawk ] [ phryk ] [ superkuh ] [ yoleaux ] | 11:38 | |
[ augur_ ] [ EnLilaSko ] [ juri_ ] [ Proteus ] [ Thomas42 ] [ yorick ] | 11:38 | |
[ balrog ] [ gedankenstuecke] [ kanzure ] [ qu-bit ] [ ThomasEgi ] | 11:38 | |
[ barriers ] [ gnusha ] [ lichen ] [ rigel ] [ Thorbinator] | 11:38 | |
[ bkero ] [ gnusha_ ] [ lolcat ] [ Sanky ] [ underscor ] | 11:38 | |
[ brownies ] [ guest43256 ] [ Mariu ] [ saurik ] [ upgrayeddd ] | 11:38 | |
[ Charlie_ ] [ heath ] [ nmz787 ] [ SDr ] [ Urchin ] | 11:38 | |
-!- Irssi: ##hplusroadmap: Total of 73 nicks [1 ops, 0 halfops, 0 voices, 72 normal] | 11:38 | |
-!- Channel ##hplusroadmap created Thu Feb 25 23:40:30 2010 | 11:38 | |
-!- Irssi: Join to ##hplusroadmap was synced in 7 secs | 11:38 | |
-!- xx [~xx@72.53.96.212] has quit [Disconnected by services] | 11:38 | |
-!- xxx is now known as xx | 11:40 | |
-!- panax [~panax@68.200.160.182] has quit [Remote host closed the connection] | 11:40 | |
-!- panax [~panax@68.200.160.182] has joined ##hplusroadmap | 11:41 | |
-!- Netsplit *.net <-> *.split quits: gnusha, augur, _Sol_, Helleshin | 11:42 | |
-!- panax [~panax@68.200.160.182] has quit [Ping timeout: 245 seconds] | 11:45 | |
-!- OldCoder_ [~OldCoder_@c-69-181-140-134.hsd1.ca.comcast.net] has quit [Quit: Leaving] | 11:46 | |
-!- eudoxia [~eudoxia@r186-53-135-23.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 11:47 | |
-!- panax [~panax@68.200.160.182] has joined ##hplusroadmap | 11:48 | |
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has joined ##hplusroadmap | 11:54 | |
-!- sylph_mako [~mako@103-9-42-1.flip.co.nz] has joined ##hplusroadmap | 12:03 | |
nmz787 | kanzure: is there a way to have a class return something? | 12:07 |
nmz787 | would you put the return in the class destructor? | 12:07 |
kanzure | no | 12:07 |
kanzure | you can return a value from a function inside the class | 12:07 |
kanzure | Dog.say("woof") could return "woof" for instance. | 12:08 |
nmz787 | hmm | 12:09 |
nmz787 | so i can't return a value when this class closes https://github.com/nmz787/python-spectrometers/blob/master/spectrometers/helpers.py#L214 | 12:10 |
nmz787 | which is used here https://github.com/nmz787/python-spectrometers/blob/master/spectrometers/helpers.py#L158 | 12:11 |
kanzure | no, what are you actually trying to do? | 12:11 |
nmz787 | fig1.show() does the displaying, but it's blocking | 12:11 |
kanzure | fig1 = spectrum_plotter() means that fig1 is an instance of the "spectrum_plotter" class. | 12:11 |
nmz787 | and it doesn't unblock until the fig is closed | 12:11 |
kanzure | yes, i think that's normal for gtk | 12:11 |
nmz787 | but i want to return a value selected from the fig | 12:11 |
nmz787 | i can't call a function on fig1 because the data isn't selected until during show() | 12:12 |
nmz787 | could i modify show to return? | 12:12 |
nmz787 | https://github.com/nmz787/python-spectrometers/blob/master/spectrometers/helpers.py#L254 | 12:12 |
nmz787 | that's show() | 12:12 |
kanzure | a simple solution is to pass in a variable that holds the state for your program, and the gui class will modify this state | 12:13 |
kanzure | then when it is done the state variable will still exist | 12:13 |
nmz787 | ahh ok show() can return the val | 12:14 |
nmz787 | cool | 12:14 |
-!- Viper168 [~Viper@unaffiliated/viper168] has quit [Ping timeout: 240 seconds] | 12:17 | |
-!- OldCoder_ [~OldCoder_@c-69-181-140-134.hsd1.ca.comcast.net] has joined ##hplusroadmap | 12:36 | |
nmz787 | kanzure: so now if you clone https://github.com/nmz787/python-spectrometers | 12:43 |
nmz787 | then run setup.py install | 12:43 |
nmz787 | import spectrometers; spectrometers.calculate_pH("./examples/pH_experiment_data/pH_experiment_config.txt") | 12:44 |
nmz787 | should work | 12:44 |
nmz787 | import spectrometers; | 12:45 |
nmz787 | spectrometers.calculate_pH("./spectrometers/examples/pH_experiment_data/pH_experiment_config.txt") | 12:46 |
nmz787 | that should do it, starting in the dir with setup.py | 12:46 |
nmz787 | ok heading outside | 12:49 |
nmz787 | bbl | 12:50 |
-!- eudoxia [~eudoxia@r186-53-135-23.dialup.adsl.anteldata.net.uy] has quit [Remote host closed the connection] | 13:04 | |
-!- Hu_Meanan [~quassel@199.48.197.18] has quit [Read error: Connection reset by peer] | 13:26 | |
-!- Humean [~quassel@199.48.197.18] has joined ##hplusroadmap | 13:27 | |
-!- Humean [~quassel@199.48.197.18] has quit [Changing host] | 13:27 | |
-!- Humean [~quassel@unaffiliated/humean] has joined ##hplusroadmap | 13:27 | |
-!- augur_ [~augur@129-2-129-32.wireless.umd.edu] has quit [Remote host closed the connection] | 13:53 | |
-!- eudoxia [~eudoxia@r186-53-132-80.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 14:03 | |
-!- joehot [~not@bas5-kingston08-3096530329.dsl.bell.ca] has quit [Read error: Connection reset by peer] | 14:33 | |
-!- joehot [~not@bas5-kingston08-3096530329.dsl.bell.ca] has joined ##hplusroadmap | 14:34 | |
-!- eudoxia [~eudoxia@r186-53-132-80.dialup.adsl.anteldata.net.uy] has quit [Remote host closed the connection] | 14:42 | |
-!- eudoxia [~eudoxia@r186-53-132-80.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 14:43 | |
-!- Humean [~quassel@unaffiliated/humean] has quit [Read error: Connection reset by peer] | 14:55 | |
-!- Hu_Meanan [~quassel@199.48.197.18] has joined ##hplusroadmap | 15:01 | |
-!- Hu_Meanan [~quassel@199.48.197.18] has quit [Changing host] | 15:01 | |
-!- Hu_Meanan [~quassel@unaffiliated/humean] has joined ##hplusroadmap | 15:01 | |
-!- joehot [~not@bas5-kingston08-3096530329.dsl.bell.ca] has quit [Ping timeout: 255 seconds] | 15:08 | |
-!- klafka [~klafka@204-16-157-18-static.ipnetworksinc.net] has joined ##hplusroadmap | 15:08 | |
klafka | hey can anyone help me get the article at http://www.ncbi.nlm.nih.gov/pubmed/23273775 ? | 15:09 |
klafka | :P | 15:09 |
-!- joehot [~not@bas5-kingston08-3096530329.dsl.bell.ca] has joined ##hplusroadmap | 15:09 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has joined ##hplusroadmap | 15:22 | |
bkero | You should be able to get that from logigng in at your school's library. | 15:26 |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has quit [Remote host closed the connection] | 15:30 | |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has joined ##hplusroadmap | 15:33 | |
-!- panax [~panax@68.200.160.182] has quit [Ping timeout: 264 seconds] | 15:42 | |
-!- panax [panax@131.247.116.2] has joined ##hplusroadmap | 15:43 | |
chris_99 | http://phys.org/news/2013-01-star-trek-tractor-miniature.html | 15:47 |
klafka | bkero: I'm not in school? | 15:51 |
bkero | Oh | 15:51 |
sivoais | klafka: <http://ge.tt/7m607WW/v/0> | 15:52 |
klafka | thanks~ | 15:53 |
-!- barriers [~barriers@unaffiliated/barriers] has quit [Ping timeout: 245 seconds] | 15:55 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has quit [Read error: Connection reset by peer] | 15:56 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has joined ##hplusroadmap | 15:58 | |
-!- yashgaroth [~ffffff@cpe-66-27-118-94.san.res.rr.com] has joined ##hplusroadmap | 16:03 | |
-!- barriers [~barriers@unaffiliated/barriers] has joined ##hplusroadmap | 16:32 | |
-!- EnLilaSko [~Nattzor@unaffiliated/enlilasko] has quit [Remote host closed the connection] | 16:42 | |
-!- Hu_Meanan [~quassel@unaffiliated/humean] has quit [Read error: Connection reset by peer] | 16:47 | |
-!- chris_99 [~chris_99@unaffiliated/chris-99/x-3062929] has quit [Quit: Leaving] | 16:52 | |
kanzure | yashgaroth: hi | 17:02 |
-!- aristarchus [~aristarch@unaffiliated/aristarchus] has joined ##hplusroadmap | 17:02 | |
yashgaroth | hello | 17:03 |
-!- ArmilusDajjal [~safitan@75-105-12-23.cust.wildblue.net] has quit [Read error: Operation timed out] | 17:06 | |
-!- yorick [~yorick@oftn/member/yorick] has quit [Remote host closed the connection] | 17:17 | |
-!- SolG is now known as _sol_ | 17:19 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has quit [Read error: Connection reset by peer] | 17:29 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has joined ##hplusroadmap | 17:30 | |
-!- eudoxia [~eudoxia@r186-53-132-80.dialup.adsl.anteldata.net.uy] has quit [Read error: Connection reset by peer] | 17:31 | |
-!- eudoxia [~eudoxia@r186-53-132-80.dialup.adsl.anteldata.net.uy] has joined ##hplusroadmap | 17:32 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has quit [Read error: Connection reset by peer] | 17:32 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has joined ##hplusroadmap | 17:34 | |
-!- eudoxia [~eudoxia@r186-53-132-80.dialup.adsl.anteldata.net.uy] has quit [Remote host closed the connection] | 17:45 | |
kanzure | does anyone have an athens login they could share temporarily? | 17:49 |
kanzure | paperbot: http://www.ncbi.nlm.nih.gov/pubmed/23273775 | 17:49 |
paperbot | http://diyhpl.us/~bryan/papers2/paperbot/6947699cf4666ab6859af4930cb79869.txt | 17:49 |
kanzure | klafka: ^ | 17:49 |
klafka | oh nice | 17:49 |
klafka | i'll remember that in the future | 17:49 |
kanzure | paperbot: http://www.sciencedirect.com/science/article/pii/S0376871612004577 | 17:49 |
paperbot | no translator available, raw dump: http://diyhpl.us/~bryan/papers2/paperbot/Methamphetamine%20use%3A%20A%20comprehensive%20review%20of%20molecular%2C%20preclinical%20and%20clinical%20findings.pdf | 17:50 |
kanzure | klafka: there's the real version. have fun. | 17:50 |
klafka | wooh i will | 17:50 |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has quit [Remote host closed the connection] | 17:50 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has joined ##hplusroadmap | 17:51 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has quit [Ping timeout: 256 seconds] | 17:55 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has joined ##hplusroadmap | 17:58 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has quit [Remote host closed the connection] | 18:00 | |
-!- ThomasEgi [~thomas@panda3d/ThomasEgi] has quit [Remote host closed the connection] | 18:00 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has joined ##hplusroadmap | 18:00 | |
-!- augur [~augur@c-68-34-26-189.hsd1.md.comcast.net] has quit [Read error: Connection reset by peer] | 18:00 | |
-!- archbox_ [~archbox@unaffiliated/archbox] has joined ##hplusroadmap | 18:01 | |
-!- u-metacognition [~metacogni@99-7-58-96.lightspeed.davlca.sbcglobal.net] has joined ##hplusroadmap | 18:23 | |
-!- klafka [~klafka@204-16-157-18-static.ipnetworksinc.net] has quit [Remote host closed the connection] | 18:34 | |
-!- xx [~xx@72.53.96.212] has quit [Ping timeout: 246 seconds] | 18:35 | |
-!- xx [~xx@72.53.96.212] has joined ##hplusroadmap | 18:37 | |
-!- yashgaroth [~ffffff@cpe-66-27-118-94.san.res.rr.com] has quit [Read error: Connection reset by peer] | 18:39 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has quit [Read error: Connection timed out] | 18:40 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has joined ##hplusroadmap | 18:44 | |
-!- aristarchus [~aristarch@unaffiliated/aristarchus] has quit [Quit: Leaving] | 18:45 | |
-!- yashgaroth [~ffffff@cpe-66-27-118-94.san.res.rr.com] has joined ##hplusroadmap | 18:46 | |
-!- Proteus [~Proteus@unaffiliated/proteus] has quit [Client Quit] | 18:47 | |
-!- Kanoh [~Kano@bas1-london47-1279596798.dsl.bell.ca] has joined ##hplusroadmap | 19:27 | |
juri_ | gah. too far behind. | 19:28 |
juri_ | kanzure: no, i'm an author of xrdprlpd, which was not merged, because i submitted it under the GPL, and the authors were more interested in selling their product, so threw out all the GPL contribs, and went BSD. | 19:28 |
kanzure | ah okay | 19:29 |
kanzure | well, still, maybe you have some thoughts about a sane way to do drivers for spectrometers. | 19:29 |
kanzure | Kanoh: hi | 19:29 |
Kanoh | Hello. | 19:30 |
juri_ | kanzure: i've been doing drivers forever.. ;) | 19:30 |
kanzure | yes but i said sane | 19:30 |
kanzure | (kidding) | 19:31 |
-!- xx [~xx@72.53.96.212] has quit [Ping timeout: 252 seconds] | 19:31 | |
juri_ | that said, isn't a spectrometer usually something you'd use in a workflow? | 19:31 |
juri_ | i don't know-know, because while i've owned three.. i've never gotten them to work. | 19:31 |
juri_ | most 'modern' devices are using some sort of a standardized language on serial. | 19:35 |
juri_ | you don't have need of higher information speeds. | 19:36 |
Kanoh | What are your thoughts on the recent development regarding data storage on DNA? | 19:36 |
-!- Viper168 [~Viper@node114.18.251.72.1dial.com] has joined ##hplusroadmap | 19:38 | |
-!- Viper168 [~Viper@node114.18.251.72.1dial.com] has quit [Changing host] | 19:38 | |
-!- Viper168 [~Viper@unaffiliated/viper168] has joined ##hplusroadmap | 19:38 | |
kanzure | juri_: what standard? | 19:39 |
kanzure | maybe this is one of those standards that doesn't actually have a standard | 19:39 |
juri_ | kanzure: it is. i'd start with g-code, honestly. | 19:39 |
kanzure | spectrometers don't use gcode | 19:40 |
juri_ | after all, its got standardized commands for 'bring up to temp' 'give me the current temp'. | 19:40 |
juri_ | (sorry, i keep thinking GC) | 19:40 |
juri_ | all of these devices that i've seen before (GC, MS) speak serial at a high speed. its just a question of what they're using on the wire. recently, i've seen either things that abstract to jason (GPSd), or things that abstract to g-code. they're not REALLY standardized, but it allows for reuse of some of the parsers. | 19:48 |
kanzure | the spectrometers just dump lists of numbers for the most part | 19:51 |
juri_ | no firmware setting (for parameters), event triggering, or such? then i'd go the 'json' aproach. however, if you want to change variables, and get events at a point in time, i'd consider gcode. | 19:52 |
yashgaroth | kanoh: that's not a recent development | 20:03 |
-!- xx [~xx@dsl-66-36-159-36.mtl.aei.ca] has joined ##hplusroadmap | 21:57 | |
-!- augur [~augur@208.58.5.87] has joined ##hplusroadmap | 22:01 | |
-!- augur [~augur@208.58.5.87] has quit [Read error: Connection reset by peer] | 22:02 | |
-!- augur [~augur@208.58.5.87] has joined ##hplusroadmap | 22:02 | |
-!- u-metacognition [~metacogni@99-7-58-96.lightspeed.davlca.sbcglobal.net] has left ##hplusroadmap [] | 22:04 | |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has quit [Ping timeout: 276 seconds] | 22:07 | |
-!- delinquentme [~asdfasdf@pool-71-182-199-191.nwrknj.fios.verizon.net] has joined ##hplusroadmap | 22:08 | |
delinquentme | paperbot, http://www.nature.com/nm/journal/v16/n8/full/nm.2193.html | 22:08 |
paperbot | HTTP 401 unauthorized http://www.nature.com/nm/journal/v16/n8/pdf/nm.2193.pdf | 22:08 |
kanzure | delinquentme: https://groups.google.com/group/science-liberation-front | 22:17 |
delinquentme | i wrote shit tons of code | 22:18 |
delinquentme | no ones using it | 22:18 |
delinquentme | all it needs is a password | 22:18 |
juri_ | I spent six months of my life writing nothing but documentation, to enable other programmers to follow me into a codebase. no-one followed. | 22:18 |
kanzure | some of your code is redundant, delinquentme | 22:18 |
kanzure | especially because of zotero/translators.git | 22:18 |
kanzure | this isn't a bad thing, but there's >200,000 users using zotero scrapers | 22:19 |
delinquentme | can you guys get access to the above paper? | 22:20 |
kanzure | delinquentme: http://diyhpl.us/~bryan/papers2/paperbot/nm.2193.pdf | 22:22 |
kanzure | i've moved it, | 22:23 |
kanzure | http://diyhpl.us/~bryan/papers2/paperbot/Regeneration%20and%20orthotopic%20transplantation%20of%20a%20bioartificial%20lung.pdf | 22:23 |
-!- qu-bit [~shroedngr@gateway/tor-sasl/barriers] has joined ##hplusroadmap | 22:27 | |
-!- lichen [~lichen@c-24-21-206-64.hsd1.or.comcast.net] has quit [Quit: Lost terminal] | 22:31 | |
delinquentme | yeah just downloaded it | 22:33 |
-!- yashgaroth [~ffffff@cpe-66-27-118-94.san.res.rr.com] has quit [Quit: Leaving] | 22:52 | |
--- Log closed Sat Jan 26 00:00:41 2013 |
Generated by irclog2html.py 2.15.0.dev0 by Marius Gedminas - find it at mg.pov.lt!