« first day (1671 days earlier)      last day (3294 days later) » 

user136984
4:12 PM
Can someone ping me?
 
@Toroidal huh?
 
user136984
@Mateo Right, I just get a white box, how to I get an Ubuntu see through one?
 
user136984
What is the name of the plug-in?
 
oh, the really nice one for firefox?
 
user136984
Yes
 
user136984
4:15 PM
I was hoping to get it, Fabby mentioned it a while ago.
 
user136984
I think it was him anyway.
 
I was messing around with it a while ago
I did find something for chrome... but it broke the other notifications, and was crazy difficult, and you ended up without icons anyway...
 
user136984
@Mateo: Ping me again please! :D
 
@Toroidal ping again
 
user136984
@Mateo Yeah!
 
user136984
4:17 PM
It's working, thanks! :)
 
nice huh
 
@Toroidal Give me a ping too, please. I want to try it! :)
 
user136984
@ByteCommander PING!
 
Ah, nice!
You may stop.
STOP!
 
user136984
:D :D :D
 
4:19 PM
Once would have been enough... :-P
@Toroidal I have a problem setting up my VPN using StrongSwan.
I have a step-by-step guide here.
However, I get stuck at step 5.
It says:
sudo rmdir /etc/ipsec.d/cacerts
sudo ln -s /etc/ssl/certs /etc/ipsec.d/cacerts
But the second command results in the error:
ln: target '/ect/ipsec.d/cacerts/' is not a directory: No such file or directory
What is wrong here? Help please...
 
user136984
Have you checked that it does exist?
 
Which one?
 
user136984
/ect/ipsec.d/cacerts/
 
The /etc/ipsec.d/cacerts should have got deleted with the previous command.
 
user136984
@ByteCommander Try them the other way round.
 
user136984
4:24 PM
sudo ln -s /etc/ipsec.d/cacerts /etc/ssl/certs
 
Okay...
But why do they do it the other way round in the guide then?
 
@Mateo Which addon?
 
@Toroidal This way round works.
No idea if that was correct though...
 
@A.B. it gives native notifications to firefox
 
@Mateo I need this for chrome =)
 
4:26 PM
:p good luck
 
@Fabby look at the deleted answers here askubuntu.com/questions/556473/…. Someone is popular!
 
also
 
user136984
@ByteCommander Well, judging my the error message, it should be the way round I said.
 
user136984
Maybe they just made a mistake.
 
I barely did it... and I'm not going to give instructions, because there is no good way - and it breaks stuff on chrome, and you don't get an icon...
 
4:28 PM
@Toroidal So I hope you're right and continue...
 
@Mateo ping test
 
Self-ping?
 
oh, and it broke after an update...
so :/
no chrome
 
@ByteCommander test
Hey, that works! :D
 
4:30 PM
@RPiAwesomeness Ping test?
 
@ByteCommander works probably not...
 
How art thou doing this witch craft!?
 
You have to use the reply feature.
 
@RPiAwesomeness ":21329506 ping test"
just edit the number
 
@RPiAwesomeness ping test
Whoa.
I think we just broke the internet.
 
kos
4:31 PM
@terdon You're right, there's no reason to parse the output of find as a string. And it's true even that it would fail on filenames containing backslashes. Spaces are ok tough. I'm not able to find an easy way (aside from stealing the -print0 option from your answer or parsing the string with something else before) to expand the variable containing the filename without escaping the backslashes. By any chance you know if this is feasible just by using bash syntax?
 
@Mateo Do you have any idea what would be causing this issue?
I've been stuck on it several hours now and it just won't go away :P
 
user136984
@ByteCommander I will probably have to report it as a bug, then we will definitely find out if it is.
 
@RPiAwesomeness something to do with things containing strings, not being strings? maybe? stackoverflow.com/questions/5054333/…
that is what google said anyway...
or is something is a list - stackoverflow.com/questions/18672879/…
 
@Toroidal It does not work.
 
user136984
@ByteCommander Oh...
 
4:41 PM
ipc-admin@MaxData-Desktop-Ubuntu:~$ sudo ipsec up hide
unable to resolve SERVER, initiate aborted
tried to check-in and delete nonexisting IKE_SA
establishing connection 'hide' failed
 
user136984
:(
 
ufw is disabled.
@Toroidal And I can't get the PPTP connection up either... :P
@Toroidal Oh, sorry typo in the server address.
Now I get another (looonger) error:
ipc-admin@MaxData-Desktop-Ubuntu:~$ sudo ipsec up hide-nl
initiating IKE_SA hide-nl[3] to 95.211.101.198
generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ]
sending packet: from 192.168.0.107[500] to 95.211.101.198[500] (1212 bytes)
received packet: from 95.211.101.198[500] to 192.168.0.107[500] (485 bytes)
parsed IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) CERTREQ N(MULT_AUTH) ]
local host is behind NAT, sending keep alives
received 2 cert requests for an unknown ca
 
Figured out what's causing the error, now gotta figure out how to fix it!
 
@RPiAwesomeness Yours or mine?
 
@RPiAwesomeness oh, what was it
anything to do with brackets ()()()
 
4:49 PM
@ByteCommander Mine, sorry ;)
@Mateo It was something to do with the fact that I was doing msg['To'] = input().split().
The email module uses the msg['To'] to store the receiver's addresses, and I guess it doesn't like lists.
 
this looks similar, there were brackets moved: codecademy.com/forum_questions/515c1a567c380b12380017ba
 
Woo hoo!
We've done it :D
Well, sorta.
It works if you have one recipient...
Crap.
 
oh, did it just take the first one?
 
If there's only one recipient, it'll send it to them. However, if you've got two, then it won't send it to either.
 
need something like - for foo in bar dosomehtin
so it can go through each one
 
5:04 PM
@kos That's what read -r does. As far as I know, the only safe way of dealing with file names is i) glob or ii) find -print0 | while IFS= read -d '' -r file; do ... done
 
@Mateo I just tried out the multiple recipients part. Can you check your email and tell me if you got one from me (or, rather, my testing account with myself as another recipient)?
 
@RPiAwesomeness yahoo is slow so I wouldn't trust results from my address, it might take days from certain places
 
>.<
Fair enough.
You show up as one of the recipients in Thunderbird, so hopefully it went through :P
 
@RPiAwesomeness What are you doing?
 
@ByteCommander Testing out my Python email program.
 
5:09 PM
probably, it took awhile to get nathan's test email from nitroshare, it might have even blocked it at first...
 
I'm planning on eventually making my own email client, just as a learning experience.
 
cool
 
Eww... Python!
;)
 
That's why there's been a sudden up-tick in complaints and facepalms and coding questions from me lately :)
 
kos
@terdon Alright, many thanks. I'll have to read something about glob or to use read because I find it a little bit of an overkill to parse a string with something external for the scope of that script. I find it a little disappointing that a construct using bash syntax is not feasible tough.
 
5:18 PM
15
Q: Stop shell wildcard character expansion?

hotpaw2Is there any way for a compiled command-line program to tell bash or csh that it does not want any wildcard characters in its parameters expanded? For instance, one might want a shell command like: foo * to simply return the numeric ASCII value of that character.

 
5:29 PM
@RPiAwesomeness How's your script coming?
P.S. if you need an email for testing purposes, feel free to use my @quickmediasolutions.com email since I run my own mail server and can guarantee that it arrives immediately.
 
@kos Sure it is: for file in *; do ... done. Hang on, I'll tweak it a bit to deal with strangeness and add to my answer.
 
@NathanOsman Awesome! I just figured out the bug that had been plaguing me for the last 12 hours or so. BTW, what is the full email? I don't think I have it :P nathanosman@...com?
 
Nope, just nathan@...
 
Ah.
I actually could use your help with that. Just a second, I'm gonna test the multiple recipients functionality (got messed with when I switched from straight SMTP/custom code to MIME)
Also, how does one use the .gitignore again? I tried making one, and it doesn't seem to be working :P
 
So each line describes one or more files to ignore.
Some examples:
/somefile.txt <--- ignore this file in the root directory of the source code
/*.txt <--- ignore all files ending in .txt in the root of the source code
*.txt <--- ignore any file anywhere that ends in .txt
*.py[co] <--- ignore any file anywhere that ends in either .pyc or .pyo
 
5:35 PM
sigh
Stupid Gmail login limit
 
* combined lines
 
So, /credentials.py in the .gitignore file should make it so that the credentials.py file won't ever be committed?
 
Yes.
Since this is a Python script, I recommend the ".py[co]" line so that no compiled files accidentally get included. It's not critical, just a good idea.
 
Hmm....but it didn't for me...
 
So then your .gitignore looks like this:
/credentials.py
*.py[co]
 
5:38 PM
But, wouldn't that ignore my source code too?
 
Nope.
Only .pyc and .pyo are ignored, not .py.
Here's the .gitignore for our blog: github.com/2buntu/2buntu-blog/blob/master/.gitignore
 
Oh. Well, that's what it looks like, but I made a test change to credentials.py and it showed up...
 
Where did it show up?
 
On the repo
 
@kos answer updated to show an example of using bash + globbing
 
5:40 PM
Do I have to do git rm credentials.py?
 
Oh, is credentials.py already in the repository?
I didn't realize that, sorry.
 
Yeah
Basically, what I want to do is have a generic copy (currently in there), but then never update it.
 
I would suggest doing what we did for our blog and renaming it to credentials.py.template. Commit the .template file and then it will not be possible to commit the file without the .template extension.
Then include an instruction for anyone using the script to remove the .template extension and fill it in.
The added bonus is that you can make changes to the template still.
...and anyone who's checked out a copy of the repository won't have their credentials.py overwritten with the changes to the template.
 
So, run cp credentials.py credentials.py.template && git rm credentials.py && git -am "Testing message blah" && git push?
 
Yup, but don't forget to "git add" the .template file ;-)
 
5:43 PM
Of course
 
Or... you could just "git mv credentials.py credentials.py.template" and accomplish all three steps :)
Well, sort of. You might still need to "git add" the .template file if you made changes to it.
 
Oh? Well, let's do that! :D
Awesome! There we go, no more credentials.py!
 
0
Q: Previously (non-)upvoted comment doesn't show the (non-)upvote received anymore

kosI'm positive that an *apparent* upvote on a comment of mine it's not there anymore: after having left the comment, I was still in the page to read one of the answers a second time when I saw it got upvoted. A few minutes later the question was at the top of the active questions and I visited it ...

 
Sweet! It's taken care of, README.md updated and everything
Thanks for putting up with my questions & n00by-ness @NathanOsman :)
 
Nothing wrong with learning and asking questions :)
 
5:51 PM
:)
@NathanOsman Can you check your email? I just sent the test email.
 
Sure.
I'm not seeing anything...
Let me check the logs.
 
Hmmm...
 
Nope - not in the logs. I didn't receive anything.
 
Strange. Lemme try again.
Just to check, can I post the full email to chat and then have you scrub it?
 
I don't mind.
 
5:58 PM
nathan@quickmediasolutions.com
Correct?
 
Yes. And I don't really mind if anyone sees it :P
 
I've got it published on my website, so :P
 
:)
Okay. Sent it again.
You might want to check your spam, some spam filters might find my name possibly fishy - I dunno
 
I did - but even if it ended up in spam, it would show up in the mailserver's logs. Which, sadly, it isn't.
 

« first day (1671 days earlier)      last day (3294 days later) »