last day (31 days later) » 
19:00 - 23:0023:00 - 00:00

19:20
@StefanoPalazzo ok all we need is a merge!
I'm a bit busy now, I'll get on it soon
@StefanoPalazzo I don't know if you saw my comment from yesterday, but please don't hardcode IP addresses in the lens :)
@StefanoPalazzo Let me know if you want a DNS record setup for that server
I saw that
figured it's no worse than putting them into a configuration file
@MarcoCeppi that's a good idea. If you could assign any old domain name you've got lying around, we can at least switch servers if needed
19:31
domain name would be better, yes
I'll just setup server1.domain and server2.domain so if need be we can just keep adding servers to the DNS list
Even a subdomain would work fine (as in my case).
maybe have a master list kept at domain.tld for fetching
@MarcoCeppi Would it be smart to move mine to a similar naming scheme?
I just registered audataserver.com - so we can put up a pointer for your server on that
19:33
Cool!
One thing of note: my server is running on port 8046.
(Well, it runs on port 8045 too, but it doesn't use HTTP.)
That's fine. I think we'll probably need a way to report the list of current available servers or something. I'm sure @StefanoPalazzo could think of something small and clever to do that :)
So would we do server1.audataserver.com, etc...?
@MarcoCeppi Like a database?
And then have a PHP script return a JSON list of them?
Yeah, or just a json object with the list of availalble servers
pretty much
audataserver.com/available_servers somethign like that for a query string
always with the PHP George
19:36
burn it with fire
Hey, I use Python too...
couldn't you do load balancing via DNS?
...you'll get to see my Django skills once Ondina is ready.
@StefanoPalazzo Hmm... that's a thought.
@StefanoPalazzo Yes and no - it'd probably be better that way
19:36
I've never played with it, but you can do some kind of round-robin load balancing using only the DNS system, right?
yes, just add extra A records
No way, Poor Man's Balancing is never a good idea
especially if one server is actually being crushed
it depends on how fancy you want to get
It'd be better for each server to have a /status which reported it's load and implement true load balancing.
the /status being a simple version of the solution
Hmm...
...so what does /status need to return?
19:38
Could even USE JUJU to spin up more machines if need (<3 @JorgeCastro)
Probably just the machines current load, and it's maximum safe load?
that's a good call, but then you have a single point of #fail
I recommend just doing the 2 so we have something working and in the PPA
@ajmitch ...and the data server doesn't use PHP - it's written in C++.
19:38
IDK, it's new room time
and then go back and do the bikeshedding
50 messages moved from Ask Ubuntu General Room
call this bike shed planning committee :D
Back to my question...
blue!
19:42
4 mins ago, by George Edison
...so what does /status need to return?
man I wish this chat had tabs
multiple rooms are so annoying
@JorgeCastro I'll keep that in mind :)
I propose that load balancing is done on the application level, so that there isn't a single server that can fail
thought it can always fall back on the API, I think that would make it speedier if there is lots of load on the custom search engines
@StefanoPalazzo How would that be achieved? ping tests or actually checking server's status?
Wait, @GeorgeEdison, where is your data server physically located?
19:44
that's a difficult one. it's impossible to get it right without lots of testing.
simply, having the app choose a random server and discard servers that fail to respond for some period of time will work okay
Let's simply work on the assumption that there are only two servers
@MarcoCeppi Virginia, IIRC.
That's at least where @Jacob is.
@StefanoPalazzo Did you see my revision in the branch?
...where I added the random.random() line?
Is that a good idea?
I added some comment, already forgot what I wrote :D
if it works, it's a good idea
19:49
Heh, okay so our server's are basically in the same state. I'll likely spin up a server in Japan in a few weeks if use warrents to provide faster response times to foreign users
...and would seeding the random number generator be a good idea... or a waste of 30 bytes?
@MarcoCeppi But what will go on that server?
there's no need for that, you could even just go 1-2-1-2-1-2. no need for true randomness
Are we going to dump @StefanoPalazzo and my server app on there?
I don't get it, what's the different between the two?
@StefanoPalazzo That's not a bad idea either.
@MarcoCeppi One's written in Python - and the other in C++.
19:50
The two servers are basically the same, apart from how they work
No wait - I forgot - my server actually has Python bindings.
@StefanoPalazzo Yours polls the API to keep up to date too right?
How often?
I can't remember how often :)
I see. Well, since I have Stefano's code it'd probably be his. IDK who's, the point was to have better coverage for poor @ajmitch in ɐıןɐɹʇsnɐ
19:53
@MarcoCeppi You can easily get mine running too though. I can't remember if I packaged it or not.
@GeorgeEdison yours does too, right?
But building it is basically: qmake ; make ; sudo make install
@StefanoPalazzo Yup.
What I'm saying, it's irrelevant whose is running. Just that there is coverage.
If it's needed*
Right.
What kind of response times are you getting for pings to the servers, @ajmitch?
@MarcoCeppi Er, that's "whose" not "who's" :)
eh
check out http://s.tk/
19:56
Cool!
@GeorgeEdison no idea, give me a name/ip to test
@MarcoCeppi you're a bad bad man
@ajmitch <3
am not australian :P
:O, NZ?
always have been
20:01
@ajmitch audata.quickmediasolutions.com:8046
@GeorgeEdison ouch, mtr is showing a solid nearly 300ms to there
@MarcoCeppi hah
it's ok, we beat the australians in the rugby in the weekend, so I can't be too annoyed
@ajmitch Try this one: 50.19.108.78:8045
@MarcoCeppi about 250ms
Hum, yeah - Might just spin up a server in Japan then. @StefanoPalazzo @GeorgeEdison would it make sense to run a quick ping test to determine the fastest server response time?
20:07
250 is pretty nice
still too slow of course. but about fast enough that the UX isn't annoying
@StefanoPalazzo I think you need to decide on what the best use of filters is
I don't really like having all the other SE sites as filters
I haven't even run it yet. But I'll have some time tonight
I'd be interested to know how @JorgeCastro uses the lens
one sec, on a call
20:10
then I'll go over then UX in detail. From what I hear, the other se sites should better be integrated as special searches again. Though that's not discoverable
it'd be nice to get it approved for extras.ubuntu.com before UDS if possible :)
which may mean getting it polished & ready by this weekend
thanks to the packaging recipe, that should be doable
yeah, we still need to sort out the ****ing annoying stuff with /opt, since there are quite a few files that need to go under /usr
also the problem with pygobject will take at least 7 days to clear testing
well, 7 days from when it hits oneiric-proposed
Okay, anyone have a naming scheme preference for servers? We could do boring (server#), unique (each server has it's own name), other.
it should include the country they're in
us.1., us.2., eu.1, ...
20:23
Yeah, that's a good idea.
do avoid too many subs, would va1.us.audataserver.com work?
State/providence#.Country
sure. if they are not strictly numeric, we have to maintain a list anyway
right, okay I'll setup va1.us and va2.us now
we could get the users' country from i18n, and sort the list of servers according to it
20:26
@GeorgeEdison I'll just CNAME va2.us to your audata.quickmediasolutions.com so you can manage the IP
Sure. That will work fine.
So consider this logic:
1. The lens starts up.
2. It queries the 'audataserver.com/status' method to get a list of all servers nearby.
remember there is a large probability of not being connected to the internet when the lens starts up
hi!
hey so @ajmitch
3. It cycles through them.
we could do the /opt stuff nowish
and put it in the PPA
20:30
@StefanoPalazzo Oh yeah :(
that way PPA -> extras isn't so painful
Well then it could do the query on first use.
@JorgeCastro You convinced me.
@GeorgeEdison May I recommend audataserver.com/list instead ?
@MarcoCeppi Certainly.
Whatever works best.
Today, I'll try to spend some time getting the data dump stuff packaged.
We'll see what I can do.
@JorgeCastro right, we can & need to do so before it gets resubmitted
20:32
/me nods
I'd also rename the binary package to unity-lens-askubuntu from unity-askubuntu-lens, for consistency
hey so on the SE search
I am pretty sure that the other SE sites should be scopes to the lens
not search categories
the file in /usr/share/unity/lenses most likely has to stay there, as does the dbus service file
agreed, though I'm not overly familiar with scopes :)
I need to find out
on it now
I probably need to chase up kamstrup or didrocks about that pygobject bug - I don't want to upload an SRU without their approval
20:35
I'm working with didrocks
it will likely need pitti approval
yeah
Created, pending domain name resolution
there's no way having ever SE in that filter thing can be right
it'd be a mess
I would think filter settings would be tags on the site
so like, 11.10, unity, etc.?
So then, don't show the tags section at the bottom of the search results?
20:39
that's what I was expecting when I saw filters
ah right
I mean, it makes sense to filter on tags
Do we really even need to have different sites?
the thing is, I know it's supposed to have scopes
the idea is to have one lens and multiple scopes
20:40
Then why not just have it search all SE sites?
so a "documents lens" would have, local files, google docs, zimbra docs, etc. as different scopes
So no more au-lens it should be se-lens
this would really be an SE lens
with an AU scope
it's just not obvious to me how that's supposed to look like.
If this is an au-lens it should never search outside of AU, or have an option to search outside of AU
yeah I just don't think the default lenses have scopes, so we don't know what it's supposed to look like
20:41
For 90% of the people that will be just swell.
yeah
I mean, filters makes sense if they're tags
@JorgeCastro I imagine, that the pane on the right would be split. Top would be filters, bottom would be scope each with independent scroll bars
yeah
but there are so many SE sites
surely a huge list of buttons can't be right
more are getting added all the time, too
so the lens will get outdated
@ajmitch You can fetch a list of the sites, and their API endpoints dynamically
20:47
@ajmitch Yeah, the list is dynamic.
AFK for a few minutes.
@MarcoCeppi right, but the lens does have a large list hardcoded
That should probably be changed, IMO sites should be removed all together - replaced with Tags until there's a better understanding how to filter results
yeah
that whole thing on the right looks dumb
unless you want to like type something in, and change your mind
like, you'd type "unity keyboard shortcuts" and be like "OH WAIT, let me search gardening instead." That doesn't make sense
Right, the search criteria should dictate the site which the results come from.
If you had an Agnostic "Stack Exchange" serach, searching "Unity keyboard shortcuts" the majority of results would be from AU. Search "Basil bug problem" and you'll likely get gardening and MAYBE some Cooking.se
I'm not sure about the data implications for this though - or how much load it would generate.
So, filters can't be dynamically changed/displayed?
21:04
ken is explaining it to me now
@JorgeCastro please pass on all the info :)
ugly paste coming
I know that filters are set in the code, I'd like to know if they can be changed without restarting the lens
I am fascinated by this lens stuff. It's so unfortunate that my Python skills are so, so little. Is there a Quickly template for a Lens?
not yet, it's something I could probably create if you wanted one :)
at least for a lens that connects to a website, like the AU lens
21:08
Just an idea. I really need to learn Python in general though
there's no way they want this huge list on the right like that
4:50 PM
that can't be right

Ken: i agree

but

i think it is useful to be able to control which sites you are searching
4:51 PM
if you made the sites into scopes, and the categories into filters

you would always search all of them...

me: right

Ken: of course you wouldn't always get results from them, so you wouldn't even see it

me: so where do the scopes go?
4:52 PM
Ken: the scopes there is "Everything", "Questions", and "Tags"... I think
ugh crap, that came out wrong
Ken: so i think what he has is right look at the music lens filters
@JorgeCastro pastebin
sorry
gtalk logs not so good
np, thanks for that
Same with Empathy, copy+pasting from the chat window is not friendly
21:10
ok so here's what I think
right, so it seems to make sense to just have an AU lens to search AU
we should just do AU for now
and then at UDS Marco and I will go shoot John Lea and ask him how it's supposed to be
take me along to UDS, please? :)
because there's no way they can expect people to put a huge list of boxes on the right for every scope
Sounds good
21:11
or, ken just advised to have a setting program
where people can select which SEs they have
oh DUDE, I got it.
the stackapplet already asks you for your accounts
and grabs all that information
:\ I have a lot of accounts though?
ah ... :-/
One in almost every SE site
so what's the verdict? filters for tags?
that makes the most sense to me
21:16
or filters for the 'unanswered', etc
Can we dynamically update the filters without restarting the lens?
but I guess we can't update them dynamically?
ask ken
it's communicated over DBUS, so I'm sure it must be possible - it depends on whether unity allows the updating
ok
well, I'm all for getting the PPA up and running ASAP, and leaving the details for later
I think @StefanoPalazzo Is the one for that. Maybe @GeorgeEdison since he has experience with daily builds. I need to install 11.10 on my netbook tonight so I can help in testing.
21:29
@JorgeCastro OK, I'll look at the packaging & what changes I'd want made
you won't mind me renaming the binary package to unity-lens-askubuntu ? :)
What's it currently?
unity-askubuntu-lens
I'm just going for consistency with the other lenses
yeah, makes sense. I don't think anyone is going t get heartburn over a change like that.
Maybe a transitional package will be useful, but I dont know how many people currently have the natty lens installed
21:40
it's ok, it doesn't work for them anyway, heh
that's what I was thinking :)
@StefanoPalazzo merge that bad boy!
okay, hang on while I figure out how to do that
my computer is nearly unusable, it's so slow
it's that unity rubbish!
well, I blame my cheap old laptop. I'm sure unity would be great on a faster machine ;-)
that's what I'll tell myself (:
22:00
unity's not too bad on this laptop, could be faster though
there are a few performance issues I've been having lately, like totem sometimes taking ages to start
I put 2d on an older box
it's pretty awesome
did that work?
yes I think so. @Jorge okay it's merged
did what work?
AWW YEAH!
I wonder if the recipe works
I bet it won't
let me try it
22:10
@StefanoPalazzo it should
yeah give it a go
unless the recipe is still merging in the packaging branch
the packaging branches there are now a bit out of date
I guess most of the complexity is in the setup script. the recipe is very simple. I got that the wrong way 'round
the setup script is very simple as well
it's just a list of a few files
@ajmitch I can ask Ken to update the packaging
22:13
@JorgeCastro no real need, the branch @StefanoPalazzo is merging in has it updated - there's only really some version number changing
ah ok
THIS WILL BE EPIC
cross my fingers
I pushed my updated LP lens to LP yesterday as well
the default recipe built it with no problems
some parts of the code may seem somewhat familiar ;)
AW YEAH
@ajmitch is that in your PPA?
I can blog about them
okay I requested a build now. Didn't know I could do that
22:18
@JorgeCastro should be in a PPA, but you'd want to sort of test it first :)
right yeah, of course, heh
I haven't exactly don't much testing on it myself
time to fire up a VM to do so
@StefanoPalazzo oh yeah, remember to change the default distro that the recipe builds for
code.launchpad.net/~ajmitch/+recipe/unity-lens-launchpad-daily shows missing dependencies on yesterday's build because I forgot to change it to oneiric
it failed :\
merge trunk lp:askubuntu-lens

You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
you haven't set up bzr properly to talk to LP on that computer
at least the error message is fairly obvious about it :)
I think @jorge you have to change the default distro, I can't find the option to do that (probably because I don't own the recipe)
@JorgeCastro once @StefanoPalazzo merges his code, update the recipe to just use the trunk branch, and not merge in the packaging branch
easiest to go to the recipe straight from the branch
I renamed it
and got rid of the crappy old one
22:27
ok
ok so I won't need the packaging
so the recipe should just be:
lp:unity-askubuntu-lens right?
I don't think that will work
those files in debian/ look important
:)
@StefanoPalazzo Naw, we use Ubuntu, duh :P
@StefanoPalazzo yeah, and the branch you're merging in has them
22:35
@JorgeCastro right
oh it does
egg on my face
the recipe I have there is just the default one
yeah
that should be correct
you can grab the LP lens from my PPA if you're brave enough to try it
& give feedback on what else you'd want to see - I don't have any filters on there at the moment, for example
@ajmitch is it in your ppa?
22:41
@JorgeCastro yep
ppa:ajmitch/ppa rather than the lens one
can you change the recipe @jorge?
since I didn't look at which PPA I was using when I requested a build yesterday :)
(or is there a way to make it so that I can administer it?)
22:42
I did
and just kicked off more builds
can a recipe be owned by the team?
I was just about to ask that
see if you can change the owner to ~askubuntu-tools
it may be that recipes have to be owned by a person
22:45
Worked!
ok
awesome, I can edit the recipe now
not so awesome is that it fails
feel like I'm standing at the roulette table :P
@StefanoPalazzo why's that?
I'm refreshing the page to see if that build succeeds
whoops. it didn't
double the bet
it's the launchpad id again. why would it want an id, it just checks out the branch right?
we'll get there, I just changed the recipe
@StefanoPalazzo worn out the f5 key yet?
19:00 - 23:0023:00 - 00:00

  last day (31 days later) »