« first day (416 days earlier)      last day (4555 days later) » 

12:00 AM
Well I can't access futon now.
 
you can't? it should just show you a popup asking for a username and password
oh yes, that's right
silly reverse-proxy, you do need those lines for port and bind_address
 
Nope. Had to un-un-comment the port and bind_address lines.
 
of course, d'oh
 
HA! That is the difference!
 
let's see. it says "Name or password is incorrect"
 
12:03 AM
You have my login data. Login and try to find what you said.
It is nowhere!
 
@OctavianDamiean I'll quickly create the user in your database
 
Or maybe I'm too dumb to find it.
 
again, that's cargo-cult programming
 
@OctavianDamiean okay try restarting coucdb and VC2
I've got to restart chrome, invisible windows :\
 
12:07 AM
Unbelievable ... it is still there.
Back in a minute.
 
yeah me too, I've got to open a window (:
 
it still doesn't work?
 
I wonder why it would complain about incorrect usernames and passwords
you could try adding a new user through Futon
via "set up more admins"
 
12:12 AM
Done.
 
now that needs to be change only in VC2's config.ini I think
 
Same behavior.
 
then restart everything yet again
crazy
when you ran this script, you got a different error, right?
 
Phew, you're asking things. :D
 
this is really strange. we've essentially got the same config, and of course the same software
 
12:17 AM
Strange is not even the right word. :P
 
I'll try messing with your config a bit
remove all of the things that are not quite the same
right, they're now exactly the same
 
need a quick tester running unity+compiz
10
Q: Remove the Workspace Switcher launcher from Unity launcher?

mikeHow can I remove the Workspace Switcher launcher from the Unity dock?

 
@OctavianDamiean eh.. sorry I removed the test user by mistake
 
the test user is still there, the admin is gone. :D
 
@BrunoPereira I'm on xfce :)
 
12:22 AM
@StefanoPalazzo thx ;)
 
@OctavianDamiean these documents are useless unless there's some data in them. you can delete the test one as well
 
still running 11.04 :S
need to upgrade one day
 
I removed the test user in the actual config
 
Ah I see.
That is so strange.
 
import json
import base64
import http.client
import urllib.parse
import functools


class Database (object):

    def __init__(self, user, passwd, server="127.0.0.1:5984"):
        self.uri = urllib.parse.urlparse("http://" + server).netloc
        self.auth = ({'Authorization': "Basic " +
            base64.b64encode(user.encode() + b":" + passwd.encode()).decode()}
            if user and passwd is not None else {})

    def request(self, method, action, headers=None, body=None):
        headers, body = headers or {}, body or {}
try this, it should print {'ok': True}
 
12:27 AM
Now this is creepy! I am looking at the same file right now!
 
I've just changed the last line
the rest is the equivalent of the "php5-mysql", the database controller ;)
 
{'reason': 'Name or password is incorrect.', 'error': 'unauthorized'}
 
okay, let's see
step by step
at the end of the init function, put in a "print(self.auth)"
(that contains your password, only base64 encoded)
it should be this:
(copied from chrome)
Authorization:Basic YWR........
 
Answered you in GTalk. :)
 
great, I'll decode that
@OctavianDamiean that's for the non-existent test user
the SECOND one is anyway
the second one just has the wrong password
I'm confused :D
 
12:35 AM
Where does it get that password from?
 
the first one has the correct username, but the wrong password
the second one is wrong altogether (because I deleted the test user)
 
db = Database("admin", "secret", "mainerror.com:5984")
that's username, password, host
should be the real thing in there
 
Oh my god ...
I'm such an idiot :D
 
heh
I doubt it'll work, still
you did have the right credentials in VC2's config at some point ;)
 
12:37 AM
Ok, now I'm totally confused.
I'll restore the first config.ini version
 
@OctavianDamiean did the script work now?
({'ok': True})
 
Check GTalk.
But yes.
It worked.
 
@OctavianDamiean try changing "just_a_test" to something else
great
we're getting close, I know it
:)
 
It works.
 
now we just have to convince VC2
 
12:40 AM
heh
 
you've still got that print statement in run.py, so you can check that it gets the correct username and password?
 
if so, just restart it and see what happens
 
It does.
 
here's a small tip,
 
12:40 AM
And the encoded version matches the first one.
 
instead of hitting ctrl+c and waiting, you can just hold down ctrl+c to kill VC2 more quickly
 
Ok. So the we still have a problem.
 
and if you ever ran "disown -a", make sure there isn't a previous instance running of course
 
All the requests in run.py return an authorization error.
 
12:43 AM
A link is in GTalk.
 
it's the same thing!
 
What thing now? :D
 
send an email to couchdb@localhost → "no, YOU are wrong"
 
We have many things in there.
 
the authorisation header is the same as the one you got when you successfully run that script
 
12:44 AM
Oh yea true.
 
I'm pretty much out of ideas
 
Same here. It just doesn't make sense.
 
I'd suggest asking a question on serverfault, but not before we've found out how this supposedly identical code can do something else
 
Well I wouldn't know what to ask to be honest.
 
right
I've got another far-fetched idea
in modules/external/couch.py,
 
12:54 AM
Y U NO LIEK MEH VC2?!
 
add "print(headers)" after "headers.update(self.auth)"
and just quickly check if the authorisation header is still there
I could be using some weird mutable keyword argument or something
 
I mean it is still there and intact.
 
so then we're pretty much sure that couchdb is getting the correct http headers
maybe it doesn't like to be called on 127.0.0.1
@OctavianDamiean it says server="127.0.0.1:5984"): at the function's def
 
12:57 AM
Yea.
 
try replacing that IP with the external IP
 
Good god! That was the problem!
 
no way
I'm logged in!
 
Indeed!
 
12:59 AM
:D
 
very cool. it took 3 hours, but still.
 
I'll try to find that js bug in the morning
it has to do with old timeouts getting run after newer ones crashed, I think.
@OctavianDamiean you can open /views/room.html and change the timeout intervals in the js
it's only this slow because I had a few too many users one day
remember that you'll get 1/n*users requests per second though ;)
1000ms is right on the edge
also there's no need to re-start the server if you just change something inside views/
 
Ah nice.
The timeout is at 500 currently.
 
there are 2 or three of them :)
I guess
but the bottom one is the interesting one
setTimeout(do_update, 2500);
 
1:10 AM
On message it is at 100
 
that hasn't got an HTTP request though
 
Oh right.
 
it's just a small delay to make sure this doesn't run into a tight-loop. I don't exactly remember why I did that thb :)
 
Yup, found it. 2500ms.
 
320 lines of javascript, none of them good :D
except $("#problem").hide();
 
1:12 AM
:D
 
allright, I'm done for. I'll go to sleep ;)
fantastic, I jotted down three new bugs that I can fix. and I'll make sure to automate the couchdb user-setup before a release too
 
Alright. Thanks a lot!
Set the timeout to aggressive 500ms right now.
 
no problem at all! I'll make sure it's easier to upgrade than it is to install ;)
 
see you o/
 
1:15 AM
Yup, laters.
 
@sadmicrowave r u around?
or is there a way to send a message to user?
 
2:03 AM
Wow
Did you guys know that Congress has made pizza officially a vegetable?
 
the EU has made water unhealthy
 
Just got back... @MarcoCeppi: that is what I call a fast connection.
 
2:32 AM
Bounty offered: Remove the Workspace Switcher launcher from Unity launcher? http://askubuntu.com/questions/38789/remove-the-workspace-switcher-launcher-from-unity-launcher #unity
 
DoR
3:02 AM
3
Q: I upgraded to 11.10 - it's absolutely useless

KingsleyI had 11.04 and that was fine. Ubuntu offered the upgrade, and I've been doing that since 9.10. This version has removed all the programs and menus where it was easy to read and start applications. Now the programs are all gone. I've clicked all those silly icons down the side that keep disappea...

Shame on whoever upvoted this crap.
 
3:45 AM
:)
will not answer a non-question again
 
@DoR 5 people upvoted.
 
I couldn't believe anyone upvoted :O
 
@MarcoCeppi your last edit is wrong
 
I only answered (at all) after reading the comments... and realizing I couldn't fit in the comments with my suggestion :P
 
@MarcoCeppi well, let me rephrase, probably controversial
 
4:00 AM
@JorgeCastro What edit?
 
the GNOME one
 
I didn't edit...? Oh you mean the GNOME 3 => GNOME Shell rename?
 
yeah
 
Why is that?
It's all about installing GNOME Shell, GNOME 3 is already installed!
 
yeah
but that's just people arguing semantics
if you ask someone who works on GNOME
it's all "just GNOME"
arguing about what "GNOME 3" and "GNOME Shell" is just a waste of time
but whatever
 
4:05 AM
I may be under the wrong impression, I thought collectively we were working to correct people on the actual "technical" language of the desktop? To prevent outlandish comments like "I dislike Unity and want to use GNOME"
If it's not really a fight anyone is fighting then I don't have a problem reverting
 
yeah I am just saying that you could edit anything mentioning GNOME or Unity either way
and to most people "I dislike Unity and want to use GNOME" is correct.
as far as GNOME is concerned there is only GNOME, unity to them is just "unity"
but I am nitpicking
 
I'm just wondering what people are searching for, I suppose GNOME3 is probably more sought after than GNOME Shell.
 
I would rather talk about this horrible episode of TNG I am watching
I think just "GNOME" would do the trick
the tag has "gnome-3"
 
works for me!
I'm hitting brick walls with the redmine package in the repos
it really seems like an incomplete package
no startup scripts at all, or any hints as to how it should be executed
 
I am of the opinion that people will use charms so they can get the latest upstream version anyway
though the other guys prefer things from the archive
 
4:09 AM
yeah, I'm about to ditch this and just use the latest git from stable
archives, shmarchives
 
200kviews!
Is that our most popular question?
 
I think so, let me check the data
 
looks like Mark got 2 badges today
 
I saw him commenting on a few questions actually
 
Okay... time to write that charm!
 
4:12 AM
He updated his gravatar too
 
Some MySQL troubles got in the way yesterday.
 
@MarcoCeppi yeah I noticed the gravatar
@GeorgeEdison WOO.
 
Found a duplicate :)
 
nice!
hey, one of them is a minecraft one
 
Yeah, and all of those answers suck, because openjdk6-jre works fine for Minecraft
no need to get sun-java6-jre
 
4:33 AM
I'll ask in budapest.
 
Ask what?
 
So far so good... I've got ThinkUp installed and the Google+ plugin works.
 
whoa, already?
 
Well... I had installed MySQL, PHP5, Apache2, etc. earlier in the day.
So it was just a matter of extracting the ZIP and setting up the database.
Now to create the charm...
@JorgeCastro: I don't have a ~/.juju folder.
Should I create one?
 
running it once should make it I think
also
if you install charm-tools
"charm create" will create a skeleton for you
 
4:47 AM
Oh, I just created the file and ran 'juju bootstrap'. Seemed to work.
Spoke too soon:
2011-11-18 20:46:16,196 INFO Starting zookeeper...
could not connect before timeout
2011-11-18 20:46:27,690 ERROR could not connect before timeout
What does that mean?
 
did you put stuff in the config file?
 
you need stuff in .juju/environments.yaml or whatever
 
Ah, I deleted the file and reran 'juju bootstrap'.
Now it created the file.
 
ok
you need to set it up to use either EC2 or local
 
4:51 AM
I added the content from that question on AU.
I'm reruning 'juju bootstrap' now...
Seems to be working now...
Success!
 
ROCK.
 
Now... does it matter where I run charm create?
Will it create the charm files in the current folder?
 
yeah
oh dude
charm create thinkup
will just create that folder
 
I see.
Should this code go in a Bazaar branch on Launchpad?
 
yep
step 6 and onward
 
4:57 AM
Can I commit and push before it is complete?
...or is that bad?
 
absolutely
what you will do is just propose it when you're ready
/me fires up a local instance to help
 
Got it.
I can't find the charm-tools package.
 
you need to add the ppa
sudo add-apt-repository ppa:juju/pkgs
 
Ah.
Uh-oh... VirtualBox is not responding...
I'll be a second or two... Ubuntu has to start again.
 
heh
what's your host OS?
 
5:05 AM
Windows 8 :)
 
(I ask because the local stuff is like a chroot, you probably don't need to wrap it in a VM)
oh, heh
 
Unfortunately it's the only thing that runs some games.
It's not too bad because it was a clean install without a bunch of OEM junk.
 
/me nods
I have a seperate windows machine
though I think the hw is starting to flake out on it
 
Okay, back to where I was before, creating the charm.
Generating template for thinkup from templates in /usr/share/charm-tools/templates
Charm will be stored in ./thinkup
failed to find thinkup in apt cache.
APT cache...?
I guess it thinks thinkup is a package?
 
ah
oh
I gave you the wrong advice
it should still have created the charm
 
5:13 AM
Ah, yes, it did.
 
$ charm create foo Generating template for foo from templates in /usr/share/charm-tools/templates Charm will be stored in ./foo failed to find foo in apt cache. charm-tools creates foo but "failed to find foo in apt cache." makes me think that there was an error, perhaps we can just fix the wording: $ charm create foo Generating template for foo from templates in /usr/share/charm-tools/templates Failed to find foo in apt cache, creating an empty charm instead Charm will be stored in ./foo would make that more clear.
Juju Charm Tools
Undecided / New
filed a bug
if you could mark it confirmed it that would be swell
 
What should the summary for ThinkUp be: "social network aggregator"?
@JorgeCastro Done.
 
that sounds good
"ThinkUp is a free, open source web application that captures all your activity on social networks."
is what their website says
then they mention the services, but those could change over time so I left them out
 
Okay.
Should I follow this template for referencing MySQL, etc.?
 
yeah
though you might want to leave the cache out for now
 
5:24 AM
Okay.
 
keep it simple for now
 
What does the 'slave' do?
 
we can always add that back
not sure
that might be for replication or something
 
I'll leave it out and see I guess :)
 
let me see what wordpress does
aha!
that looks like what you should go with
 
5:26 AM
Great - that corresponds to what I've copy-and-pasted so far.
 
awesome
 
Now on to the hooks folder.
In order to install thinkup, I need to have the script wget a file and extract it...
...where should I temporarily store the ZIP?
@JorgeCastro: ...and where should it be extracted to?
 
Bounty offered: Google Earth shows a black screen and options are greyed out http://askubuntu.com/questions/68904/google-earth-shows-a-black-screen-and-options-are-greyed-out #googleearth
 
5:44 AM
Is it safe to assume that /tmp is available?
 
Now I can't even get juju to start...
heads to #juju...
:(
 
6:25 AM
Ah, fixed it.
Will Juju mess with my actual Apache installation?
 
no
it does it all in the local chroot
(sorry I was afk)
 
No problem.
I'm making great progress.
I'm currently working on the Bash script that creates the config file.
Question: what should I do when a configuration needs a default value for something like 'timezone'?
Just assign 'America/Los_Angeles' (the default in my installation)?
 
create a config.yaml file with default values
 
Ah, I see one in your branch.
 
Yeah, so something like
options:
  level-name:
    default: world
    type: string
    description: Name of the level, will be generated if it doesn't exist
  allow-nether:
    default: true
    type: string
    description: Allow generation of the nether, true or false
 
6:38 AM
For default: do strings with spaces need quoting?
I assume not?
 
Nope, only if the string has a :
 
Got it.
 
Otherwise, you're fine
 
And how do I retrieve these files in one of the hooks?
 
When passing from the command line, like juju set <service> foo="bar bar" then yes
@GeorgeEdison There's a magic bash command config-get
 
6:40 AM
Ah, that's cool.
 
So in the above example config.yaml: you could do LEVEL=`config-get level-name`
echo "$LEVEL" will produce that value.
There are some weird caveats with how configuration changes work, but for now that should get you started
As such, you should always check if the variable is set from config-get
 
Okay, great.
 
a simple example is in config-changed in the minecraft charm
<3 I'll be up for a while if you have any questions. Just drop me a ping :)
 
Sure.
@MarcoCeppi: In the config.yaml, what types are available? I see 'string' and 'int'... is there a boolean type or should I use 'int' for that?
 
There are string, int, float
I asked for boolean and enums
Currently only string is an acceptable type for data in the config.yaml file. Other types should be added, primarily: enum, integer, and boolean to help maintain some sanity in configuration options.
juju
Undecided / New
 
6:55 AM
* affects me
 
yeah :)
 
So I should just use string for now since the PHP config is expecting false or true.
 
Yeah
it'll be translated in to True probably, because of Python, if you encapsulate with "" it'll maintain it's case
but PHP isn't case-sensative for bools so I wouldn't worry about it
 
Yeah.
 

« first day (416 days earlier)      last day (4555 days later) »