aelkner | cool | 00:00 |
---|---|---|
replaceafill | aelkner, so it's safe to change: | 00:05 |
replaceafill | competency = unwrapRequirement(compref.competency) | 00:05 |
replaceafill | for | 00:06 |
replaceafill | competency = compref.competency | 00:06 |
replaceafill | right_ | 00:06 |
aelkner | use your sense of logic and ge the tests to pass, then send me the diff | 00:06 |
replaceafill | i have no sense of logic ;) | 00:07 |
replaceafill | ok man | 00:07 |
aelkner | i did mention above unwrap(x) = x | 00:07 |
replaceafill | i know | 00:07 |
replaceafill | sorry about that | 00:07 |
*** mgedmin has joined #schooltool | 00:21 | |
*** replaceafill has quit IRC | 00:25 | |
*** replaceafill has joined #schooltool | 00:25 | |
*** replaceafill has quit IRC | 00:31 | |
*** replaceafill has joined #schooltool | 00:31 | |
replaceafill | aelkner, done | 00:33 |
replaceafill | aelkner, the tests pass | 00:33 |
aelkner | cool | 00:40 |
aelkner | send me the diff | 00:40 |
replaceafill | aelkner, sent | 00:48 |
*** fsufitch has joined #schooltool | 01:04 | |
*** replaceafill has quit IRC | 01:24 | |
*** replaceafill has joined #schooltool | 01:26 | |
*** replaceafill has quit IRC | 01:58 | |
*** replaceafill has joined #schooltool | 02:01 | |
*** replaceafill has quit IRC | 02:03 | |
*** fsufitch has quit IRC | 02:26 | |
*** ignas has quit IRC | 02:36 | |
*** danielfolsom has joined #schooltool | 02:38 | |
*** danielfolsom has left #schooltool | 02:38 | |
*** replaceafill has joined #schooltool | 03:14 | |
*** replaceafill has quit IRC | 03:26 | |
*** th1a__ has quit IRC | 03:59 | |
*** replaceafill has joined #schooltool | 05:59 | |
*** replaceafill has quit IRC | 06:01 | |
*** replaceafill has joined #schooltool | 06:46 | |
replaceafill | aelkner, midnight ping | 06:50 |
*** replaceafill has quit IRC | 07:15 | |
*** mgedmin has quit IRC | 09:33 | |
*** mgedmin has joined #schooltool | 10:38 | |
*** mgedmin has quit IRC | 11:26 | |
*** yvl has quit IRC | 13:00 | |
*** yvl has joined #schooltool | 14:24 | |
*** ignas has joined #schooltool | 14:50 | |
*** th1a has joined #schooltool | 15:28 | |
ignas | th1a: good morning | 15:56 |
th1a | Good afternoon, ignas. | 16:12 |
th1a | I was just wondering if CanDo's server might be running out of memory. | 16:13 |
ignas | well - at the moment Justas and I are wondering if it was a DNS set up problem... | 16:13 |
ignas | and I am wondering if we can get someone on their side working on the problem, i mean - we can't really fix a problem on their server without someone with access to the server spending the time to help us... | 16:15 |
th1a | Yes, of course. | 16:15 |
ignas | we really start feeling the problems related to distributed development teams when solving these kinds of issues :/ | 16:15 |
ignas | and email seems to be just not good enough, especially if they want solution on monday, and not in 2 weeks... | 16:16 |
th1a | Yes... this is also the problem working with schools... | 16:16 |
*** jstraw has joined #schooltool | 17:10 | |
jstraw | yvl: ayt? | 17:10 |
jstraw | ignas, aelkner, yvl: here? | 17:16 |
ignas | jstraw: yep | 17:16 |
jstraw | the DNS issue yvl brought up shows up here, but I cannot track down *where* that IP is injecting into DNS from | 17:17 |
ignas | jstraw: well - i know that it is causing us random slowdowns | 17:18 |
ignas | like - everything either works, or - takes 40-50 seconds | 17:18 |
ignas | or times out completely | 17:18 |
jstraw | I looked at the godaddy DNS listing | 17:18 |
jstraw | and that IP literally shows up nowhere on that page | 17:18 |
ignas | the first ip (the 65... one) | 17:18 |
ignas | is pointing to godaddy | 17:18 |
jstraw | 68.178.232.100 is the closest IP I see | 17:19 |
ignas | the 158... one is pointing to some server that has apache "It Works" | 17:19 |
ignas | yeah 68... | 17:19 |
ignas | http://68.178.232.100/ is godaddy | 17:19 |
jstraw | ok | 17:19 |
jstraw | I am killing the .100 | 17:19 |
jstraw | TTL 1h | 17:20 |
jstraw | ok, it looks live here | 17:22 |
ignas | how do i get to the cando on | 17:22 |
ignas | http://158.59.200.50/ ? | 17:22 |
jstraw | you have to go by dns | 17:22 |
ignas | i see | 17:22 |
jstraw | the zope instance is localhost only | 17:22 |
ignas | I see | 17:23 |
*** povbot` has joined #schooltool | 17:34 | |
*** povbot has quit IRC | 17:35 | |
*** replaceafill has joined #schooltool | 18:09 | |
replaceafill | aelkner, you there? | 18:09 |
jstraw | ignas: dns change worked a bit | 18:17 |
ignas | jstraw: cool, let me know how it goes | 18:20 |
ignas | jstraw: and whether it fixed anything? | 18:20 |
jstraw | it cut the times by a factor of like 10 | 18:21 |
ignas | jstraw: nice to hear it | 18:22 |
jstraw | I still don't get why it was doing that | 18:22 |
jstraw | the @ record should not have bled into acc or acc08 | 18:23 |
th1a | ignas: You know what is going to be fun? | 18:24 |
ignas | th1a: what else? | 18:25 |
th1a | When we have 100 schools trying to configure their own servers. | 18:25 |
th1a | Or 1000... | 18:25 |
jstraw | we'll need a ./configure script | 18:26 |
jstraw | that makes an instance with includes | 18:26 |
ignas | jstraw: and expect 1000 schools need the same setup? | 18:26 |
th1a | Well, if this was a DNS problem we can't prevent that. | 18:26 |
jstraw | the DNS issue was very wierd | 18:26 |
ignas | th1a: i guess you can look at moodle forums and mailing lists for a taste... | 18:27 |
th1a | apt-get is as easy as we can get, but there are still lots of moving parts. | 18:27 |
ignas | hopefully every single school that will encounter problems will sign up for out mailing list | 18:27 |
th1a | ignas: Indeed. | 18:27 |
ignas | and then they will start solving problems for each other | 18:27 |
th1a | Here's an idea... a community of users... | 18:27 |
th1a | Maybe they'll fix their own bugs too. | 18:28 |
ignas | i am trying out http://n2.nabble.com/SchoolTool-Dev-f1303914ef1303914.html | 18:28 |
ignas | on schooltool-dev | 18:28 |
ignas | maybe we will be able to give it to users who are to lazy to do mailing list stuff | 18:29 |
ignas | not sure if this idea will work out though | 18:29 |
th1a | Oh yeah. I think there are some other options for that as well. | 18:30 |
* ignas just read somewhere that forums are better for community building, than mailing lists, because of a different communication model ;) | 18:34 | |
* th1a hates forums. | 18:35 | |
ignas | th1a: well - i am using some, and I can see how different they are for gathering information | 18:37 |
ignas | and just communicating with people | 18:37 |
ignas | i mean - mailing list is good for me and you because of IRC channel | 18:37 |
th1a | I've had to get used to using them for Ushra'Khan. | 18:37 |
ignas | the IRC channel is the actual community | 18:37 |
ignas | for schooltool, while lists are for information exchange mostly | 18:37 |
th1a | Is aelkner around? | 18:38 |
ignas | don't think so, he was pinged like 3 times today | 18:38 |
ignas | and never replied | 18:38 |
th1a | I haven't been able to get gradebook working. | 18:38 |
th1a | I get a page not found error when I try to create a new worksheet. | 18:39 |
ignas | th1a: well - it's going to get released in a week or so, so it would be nice to fix at least some parts :/ | 18:39 |
th1a | We were able to use it at the sprint, so it seems like I'm setting it up wrong. | 18:40 |
ignas | i know that there definitely are some bugs in some places | 18:40 |
ignas | and it is not translatable | 18:41 |
th1a | Yes... | 18:41 |
th1a | Now that the CanDo crisis has passed we should have more time to clean it up. | 18:43 |
ignas | jstraw: do you have anyone who can do a small experiment on cando schooltool instance? (i need some one who can restart their instance, and some time when he can do that...) | 18:45 |
ignas | i have a theory that (if it's correct) would speed up person views 3-10 times | 18:46 |
th1a | ignas: Is it worth a trip to Amarr to sell my lasers and Sansha tags (vs. Rens)? | 18:48 |
ignas | not really, Rens is good enough IIRC | 18:49 |
ignas | wait a sec | 18:49 |
th1a | Hm. The prices seem crappy, at least compared to the regional average. | 18:49 |
th1a | The tag prices in particular. | 18:49 |
ignas | http://www.eve-central.com/home/market.html | 18:50 |
ignas | th1a: well - my rule is this - if it's within 10% (for small stuff) - sell it, if not - look at the prices and set something sane | 18:50 |
ignas | but well - i have 21 possible orders | 18:50 |
th1a | RIght. | 18:50 |
ignas | for big stuff (arbalest cruise launchers) - 10% might mean a lot, so i will put them up on a delayed market order | 18:51 |
*** replaceafill has quit IRC | 18:51 | |
th1a | Ah. OK. I hadn't tried that part of eve-market. | 18:51 |
th1a | This helps. | 18:51 |
*** replaceafill has joined #schooltool | 18:52 | |
ignas | always look at the list of items on sale though, sometimes you see 90%, but when you look at the marked - all the sale orders are 150%, so you can do 140% and expect to sell it quickly anyway | 18:52 |
ignas | *market | 18:53 |
th1a | Yes. | 18:53 |
ignas | jstraw: i think that the function that is slowing CanDo person views down is | 18:53 |
ignas | def groups(self): | 18:53 |
ignas | groups = [] | 18:53 |
ignas | for id, group in self.groupContainer().items(): | 18:53 |
ignas | if len(group.members) > 0: | 18:53 |
ignas | groups.append({'id': id, | 18:53 |
ignas | 'title': "%s (%s)" % (group.title, len(group.members))}) | 18:53 |
ignas | return groups | 18:53 |
ignas | in src/schooltool/person/browser/person.py | 18:54 |
jstraw | oh that would do it | 18:55 |
ignas | if you would replace the code in it with return sorted([{'id': id, 'title': group.title} for id, group in self.groupContainer().items()]) | 18:55 |
ignas | or something like that which works | 18:55 |
ignas | can't test it at the moment | 18:55 |
ignas | so it might not even compile | 18:55 |
ignas | the important thing is - avoid enumerating and counting of group members in the person filtering widget | 18:56 |
ignas | because you have a group that has 9K members in it | 18:56 |
ignas | and every time you look at the view, you are showing 10 members, and counting the other 9000 | 18:56 |
jstraw | yea | 18:57 |
jstraw | I can't do it today | 18:57 |
jstraw | but monday afternoon I should be able to | 18:57 |
ignas | bah, some people are way too serious about their weekends :P | 18:58 |
jstraw | uh | 18:58 |
jstraw | I didn't get one last week | 18:58 |
jstraw | I worked 26 / 48 hours | 18:58 |
ignas | yeah, i understand | 18:58 |
th1a | Yes, jstraw put in his time last weekend. | 18:58 |
th1a | ignas: So just using a list comprehension would be that much faster? | 18:59 |
ignas | no | 18:59 |
ignas | as you can see - the number of members in the group | 18:59 |
ignas | is gone | 18:59 |
ignas | the member count is the part that is slowing it (my guess) | 18:59 |
th1a | Because you look it up twice? | 18:59 |
ignas | use a profiler if you don't believe it ;) | 18:59 |
ignas | no, because I look it up at all | 19:00 |
th1a | Oh, I see. | 19:00 |
ignas | just loading 9K relationships can put quite a lot of load | 19:00 |
jstraw | this is when some of these classes should really keep *track* of its membership <_< | 19:00 |
ignas | they do keep the TRACK | 19:00 |
ignas | the number of relationships is not important | 19:00 |
jstraw | except to display the number of relationships... which is unneeded | 19:01 |
jstraw | in most cases | 19:01 |
ignas | yep | 19:02 |
ignas | i mean - if we will ever need it - we can add caching of the count and stuff | 19:02 |
ignas | but - we don't really need it | 19:02 |
jstraw | yea | 19:03 |
ignas | and it is the most probable cause | 19:03 |
jstraw | it would be nice for the page on the group | 19:03 |
jstraw | to know how many people are in it... but you can live with a short delay there | 19:03 |
jstraw | (and you only do it for 1 group instead of all of them) | 19:03 |
ignas | that view is not being used every day by everyone | 19:03 |
jstraw | right | 19:03 |
ignas | our group views are not paged at all :/ | 19:03 |
jstraw | the Person chooser is used all the time | 19:03 |
ignas | yep | 19:04 |
jstraw | is there an application that (with a howto) that can browse and time? | 19:04 |
jstraw | or a firefox extension that displays load time | 19:04 |
th1a | ab? | 19:04 |
ignas | firefox can only tell it's own time | 19:05 |
ignas | no, don't use ab please | 19:05 |
jstraw | lol | 19:05 |
ignas | there should be wsgi middleware | 19:05 |
ignas | that does that | 19:05 |
th1a | Yahoo released a plugin for performance analysis. | 19:05 |
jstraw | that means using wsgi ;) I am on ProxyPass still | 19:05 |
th1a | yslow. | 19:05 |
jstraw | lol | 19:05 |
jstraw | yruslow? | 19:05 |
ignas | th1a: well - some parts might be http related, though in our case it's the server side code, which yahoo can't help us to fix | 19:06 |
th1a | Yes. | 19:06 |
jstraw | I checked load and memory on the system | 19:07 |
jstraw | load avg = 0 0 0 | 19:07 |
jstraw | over 1g mem free | 19:07 |
ignas | yeah, it was a DNS problem | 19:07 |
jstraw | yea, I just wanted to diagnose all the non-zope problems I could | 19:07 |
jstraw | so it isn't SSL or the box it is running on | 19:08 |
ignas | nice of you doing that, it was my "theory number 2" | 19:08 |
ignas | but then - we tried pinging the server :) | 19:08 |
jstraw | oh don't even bother XD | 19:08 |
jstraw | ping is blocked globally on 158.59.127/17 | 19:08 |
ignas | well - we saw that it either responds, or it does not | 19:08 |
ignas | and then noticed that it depended on the IP | 19:08 |
jstraw | yea... the real server won't respond to ping at all | 19:08 |
ignas | and that there were 2 ips! | 19:09 |
jstraw | I *still* don't see why it was happening | 19:09 |
jstraw | the only IP in my godaddy config that was close | 19:09 |
jstraw | was @ | 19:09 |
jstraw | which wasn't even the same fracking IP | 19:09 |
th1a | For $9.99 a month I don't expect these kind of crazy frackups! | 19:10 |
ignas | :D | 19:11 |
th1a | Still, not as bad as when ServerPronto was billing me for the traffic on an entire switch instead of just my box. | 19:11 |
jstraw | lol | 19:13 |
jstraw | 9.99 a mo? | 19:13 |
jstraw | this is included in the price of my domain registration | 19:13 |
jstraw | so I think it works out to 2 a month | 19:13 |
jstraw | XD | 19:13 |
th1a | Even better. | 19:13 |
ignas | schooltool evolution script is going to be very tricky | 19:44 |
ignas | the school tool part - is tricky | 19:45 |
ignas | the gradebook stuff is insane :/ | 19:45 |
ignas | I will assume that - if you are using schooltool.gradebook, you are not using timetables | 19:49 |
ignas | th1a: are you using schooltool.gradebook and timetables together by any chance? | 19:49 |
ignas | th1a, write me an email, please, I must run now | 19:54 |
*** ignas has quit IRC | 19:54 | |
*** replaceafill has quit IRC | 21:00 | |
*** jelkner has joined #schooltool | 21:03 | |
*** replaceafill has joined #schooltool | 21:07 | |
jstraw | hi jeff | 21:12 |
jstraw | happy half day! | 21:12 |
jelkner | jstraw: i'm waiting for the hb students | 21:21 |
jstraw | ah | 21:21 |
jelkner | so it really isn't a half day for me ;-) | 21:21 |
*** elarson_ has joined #schooltool | 21:23 | |
jstraw | ah | 21:24 |
*** replaceafill has quit IRC | 21:25 | |
*** rbra has joined #schooltool | 21:26 | |
jelkner | rba: what is your skype name? | 21:26 |
*** rbra has quit IRC | 21:37 | |
*** jelkner has quit IRC | 22:05 | |
*** replaceafill has joined #schooltool | 22:08 | |
jstraw | bbl | 22:17 |
*** jstraw has quit IRC | 22:17 | |
*** th1a_ has joined #schooltool | 22:21 | |
*** th1a has quit IRC | 22:22 | |
*** th1a_ has quit IRC | 22:30 | |
*** th1a_ has joined #schooltool | 22:43 | |
*** th1a__ has joined #schooltool | 23:02 | |
*** th1a_ has quit IRC | 23:04 | |
*** th1a__ has quit IRC | 23:28 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!