« first day (776 days earlier)      last day (4402 days later) » 
00:00 - 15:0015:00 - 00:00

15:00
@lynks 32 IPs, yes. But only 30 are useable in each subnet, and 32 would not be one of those.
The first IP in a subnet is the network ID, the last is the broadcast.
Well, he didn't mention usable ips :P
If you want a usable IP at x.x.x.32, your subnet needs to be at most /26.
I always refer to this particular PDF: media.packetlife.net/media/library/15/IPv4_Subnetting.pdf
I keep forgetting how to calculate them manually.
@TerryChia Yeah, the only problem with that chart is it gives you the total IPs in the subnet - subtract two for usable IPs.
@Iszi yeah you're right; .32 would be the broadcast on a /27
15:03
@lynks No, it would be the network ID of the second subnet.
@Iszi Simple enough to remember.
@lynks 31 and 63 are broadcast
@Iszi yep, right again, for some reason 32 = 1 1111 in my head today :/
Ahh networking. I kinda miss doing it.
No networking modules this semester. :(
15:10
@lynks thanks, that's what I thought, though as @ScottPack pointed out I would need to modify the netmask on the .32 device anyway, so I may as well change the IP.
@lynks ayup, I agree - that's what's confusing me.
I do so little raw networking as it is, I dont need the decimal notation being forced down my throat by the low end router.
@Iszi ah dang, right forgot about that. so I'd need to shift another bit in...
@lynks you switched to little endian...?
@TerryChia nope, I DONT!
I do miss knowing it well, though. I've forgotten more about networking than I care to relearn.
I prefer learning new things.
Well, I'm more interested in the administration (system/network) side of things than the programming side of things.
@AviD as IT professionals, we all have to realise that we are doomed to spend our careers drowning in the infinite flow of new knowledge, with no hope of ever understanding everything, or even close to it. the only way to do well is to actively learn new things as often as possible.
3
well that was depressing.
absolutely. I crave knowledge, and I enjoy wrestling with new ideas, new technologies, new shortcuts. I love seeing a problem that used to be complicated, solved quickly and easily through new tools or new techniques.
However, my senility causes me to forget almost everything I don't handle on a near-daily basis.
@lynks depressing? I find it uplifting! positively invigorating!
I guess I just identify with DC's Felix Faust.
@AviD Imagine how @RoryAlsop feels.
@TerryChia he maybe ancient, but he has not had the touch of dementia.
He stays healthier. It helps.
15:20
@AviD I meant the part about never being able to stay afloat; knowledge is being produced in our field alone at a rate faster than any one person can learn it. so you have to pick and choose and do your best
@AviD He was already crazy to begin with. This makes him immune to further degradation.
3
@lynks ah, I see. Yeah, I wish I had more time, enough time to learn EVERYTHING. A touch of the Faustism.
15:32
Ooo...lockdown.
@Iszi I couldnt figure out what you were on about. Then I noticed that you edited that link to point to something completely different... Was that on purpose?
@AviD Umm... No? First time was a cut and paste error.
@Iszi no, first time was right.
@AviD Exactly
Oh, what the crap?
Cut-and-paste error when I went to fix a cut-and-paste error, really?
@AviD Mind fixing that for me?
ftfy
actually I found the block size one useful, if not revelatory.
15:37
Thanks. First time was still an error. Was missing the http:// bit, so it didn't make a hyperlink.
what happens if a device has the wrong netmask, but the right IP, configured?
@AviD Generally, it won't play well with others.
@Iszi dont need others. just the router.
@terry - you called?
Who says I'm not mental. Maybe I just compartmentalise well and store all the mental in my other persona...
Or maybe I don't :-)
Mwahahahahahaha
@RoryAlsop thats what @ThomasPornin said. and that prevents further deterioration, such as senility.
@RoryAlsop maybe this is the other persona, and your other one is the sane one.
now there's a scary thought.
15:43
In theory the device should be able to talk to any target within its configured subnet, provided that said target is configured to use a subnet that includes the device.
It may also, in theory, be able to talk to other subnets if a router is within its configured subnet.
@AviD Not necessarily. We could probably work something out, but it wouldn't necessarily be ideal. It would be easier to just readdress.
Also, in theory, it should really have problems talking to devices in the gap (if there is one) between its subnet and the router's configured subnet (even if it can talk to the router).
All of this is in theory, though. In practice, it's a crap shoot.
You tend to more run into problems with firewalls and such later on.
@Iszi heh. especially with my current crap router.
I've seen it work, but you have to do some magic.
15:46
@Iszi The difference between theory and practice: In theory, there is no difference, in practice there is.
3
@ScottPack my magic is confined to other areas, dont got no network magic
aint no one gots time for dat
You're a terrible person.
heh
16:18
why is nothing ever simple in rails
trying to figure out how to set a global variable to a different value depending on environment, should be simple. every site has a different suggestion, none appear to work :(
@AviD, that infographic was actually very interesting
Actually that gave me a little motivation to get into Python
17:17
@Adnan link?
Python is an excellent language for just getting stuff done.
@lynks, there's also a cool video version
@Tinned_Tuna Very much agreed
I'm a former Perl guy who converted to Python.
How do we add a tag to the room? Can we have Rory, Rory, Python?
:-p
@Tinned_Tuna That would be up to the room owner - @ScottPack
17:22
yeah i really need to get to grips with python a bit more
Why would I want to sully the room's reputation with ?
4
@ScottPack Because you can't post anything worse than
@lynks Sounds like a personal problem to me.
@JeffFerland Blasphemy.
@Iszi :P
17:30
"The ad is due. Quick, get any and I mean ANY picture." http://t.co/z9OocQGm
^ Could be worse. They could have gotten Goatse.
Jay Hanlon on January 29, 2013

We’ve just rolled out a new Quick Start guide to help new users learn the basics. Here’s one example, but you can find any site’s version by going to sitename.com/about.

“Please, make yourself at home. Oh, actually, could you not sit on that? Yes, it looks like a couch. That’s what makes it so avant-garde. But it’s actually art. Whoah, careful there, too – I see your confusion, as that does resemble a doorknob, but it’s actually a very small furnace. And – I’m sorry, but – could you NOT use a coaster? We’re testing the effects of wet drinks on finished wood, and coaster usage generates noise in our data.” …

18:11
@RoryAlsop @JeffFerland @AviD - Re-wrote this question so it should be more suitable, if we'd like to migrate it:
-3
Q: Why do we need IP addresses to communicate within the local network segment?

EffectedBecause MAC addresses are only usable across the local network segment, we use IP addresses to communicate with other segments via routers. Meanwhile, for local targets, ARP is used to translate IPs into MAC addresses and the MAC addresses are used from then on in the conversation. This leaves ...

 
1 hour later…
19:16
Anyone know a guy at the CIA or NSA?
@Aarthi No, but I'm sure they're listening anyway.
'sup?
not much! how about yourself?
@ScottPack I'd suggest ruby, but then given their security record at the moment ...
19:19
@Aarthi Hangin' in. Telework days are always nice.
Dare I ask what you need from the TLAs?
@Iszi that's rad!
@Iszi ha, well, i'm sure they'd like to hire programmers. :P
19:35
Does someone happen to have a good link to an article describing the risk of temp files and how to use them safely?
@RoryMcCune What? No. Perl. Monk Life bitches!
@Zoredache This looks pretty reasonable. codeproject.com/Articles/15956/…
That will work. It covers the sym link issue. I see so many scripts or code fragements in SF questions where people have a hard coded name for temp files.
I've honestly never looked for one, but on a brief read it looked pretty usable.
Argh. Networking fail.
1. Tried accessing local router config page to check something. Router config page inaccessible, can't figure out why.
2. Realized I was on an RDP session to another network.
3. Tried accessing router config page from local machine. Still inaccessible for no apparent reason.
4. For unrelated reasons, Internet connection drops momentarily.
5. Error: VPN connection terminated locally by client.
-FACEPALM-
19:56
@Iszi wait what?
@LucasKauffman Problem was that I was trying to access a local network resource while connected to a VPN - something which is often prohibited by the VPN configuration.
Silly boy
"Facepalm" is often used to indicate your state of mind when confronted to the abysmal stupidity of somebody else; does it apply when the moron is yourself ?
@Iszi I meant the cheese
@ThomasPornin Indeed it can.
@LucasKauffman Cheese?
20:03
@ScottPack Oddly I saw my first perl that I've seen recently this week... someone using it for CGI's... and did it have command injection... yes it did
@RoryMcCune That's a usability feature.
heh I should put that in the report..
You know I think Webmin is my favorite command injection vulnerability.
it is v. useful tho'. I don't use it so much any more but when I was getting started with Linux server it was very handy to be able to do things without understanding the syntax of sendmail configs!
@Iszi It's a product derived from animal milk and processed in such a way that some of the milk proteins coagulate.
@RoryMcCune You have just proven your unfitness.
20:08
@ScottPack I figured that much. Just trying to figure out why @LucasKauffman is bringing it into the conversation.
@ScottPack hey I said back when I was learning (Although sendmail still makes me shudder) the idea that M4 macros are the simple version
@RoryMcCune Fun Fact: My boss tells me that when he was on the UNIX admin team at his last employer that they configured sendmail by modifying the mc file directly. None of that cf and m4 garbage.
@ScottPack Yes, cheese is mouldy milk, whereas yoghurt is rotten milk.
@ScottPack .... wow
@ScottPack I concur. I also did that myself. It was actually simpler to understand than a forest of M4 macros.
20:10
@RoryMcCune They were mostly a Solaris shop. So that happened.
With the .cf, you just had to understand what the macro replacement algorithm was.
With the M4 macros, you also had to understand what the designer of the M4 macros understood of the .cf files
@ScottPack Sounds about right.
@Iszi done.
@Aarthi if we did, we wouldnt be able to tell you.
@AviD TRUE ENOUGH.
20:19
Wasnt ol' Andrew a leading director of the CIA...?
@Aarthi howarya? long time no read.
@Zoredache also seems to be quite a few q's onsite here (not all of them match, but there are a few specific ones)
It was either you or @AviD that said something about cheese
@LucasKauffman Would be more useful if you'd find the actual line and reply to it.
@Iszi @ThomasPornin in those cases the facepalm is often accompanied by a faceslap, or just extra force on the facepalm. Yknow, so ya really feel it.
6 hours ago, by AviD
Hmm @LucasKauffman wanna go into cheese production? ;-)
@AviD Yeah, I had searched, but I didn't see anything that covered the potential of using a symlink in place of a known fixed temp file name to damage/replace files with the privileges of the program using the temp file.
20:26
@LucasKauffman heh, actually it was @ScottPack that brought it up. Did you see the article linked shortly above that?
I occasionally see scripts on SF with soemthing like TEMPFILE=/tmp/blahblah ; echo something > $TEMPFILE running from cron as root.
@Zoredache ah, specifically symlinks I dont think I saw.
20:46
@Zoredache That sounds perfectly cromulent to me.
@Zoredache I have been guilty of using TMPFILE=/tmp/myprog.$$ These days I mostly use mktemp.
@ScottPack Oh, I am sure I have done it as well. I just was looking for a somewhat decent article I could link to when I encouraged to avoid the practice.
oh sure
The good thing about that article is that it's not overly language specific. The examples are all C(++)? sure, but don't overwhelm the content.
@Zoredache what's the danger with that?
@LucasKauffman what is the danger with what?
using a hard coded temp file?
1 hour ago, by Scott Pack
@Zoredache This looks pretty reasonable. http://www.codeproject.com/Articles/15956/Security-Tips-for-Temporary-File-Usage-in-Applicat
20:55
Consider a tempfile=/tmp/blah; the script using the temp file runs as root. Lets assume you have interactive users on your server. Lets assume you have some process that deletes things in /tmp, or /tmp is ramdisk and your system as been recently been rebooted so /tmp/blah doesn't exist.
as a dweeb users I could do ln -s /tmp/blah /etc/passwd
Then your silly cron script goes and does something like echo blah > $tempfile
@Zoredache yea
@Zoredache are normal users allowed to make symlinks like that?
Sure
I can make a symlink to anything I want
I don't need access to a file to create a symlink.
I actually didn't know that
and /tmp is almost always drwxrwxrwt so I can create links in that folder all I want, so long as they don't already exist.
learned another thing today
21:00
in The Heap, 3 mins ago, by JNK
We have the awesomest chat room in StackExchange-dom.
<steps back and grabs popcorn>
If the end user has some control of what the program using the temp file is doing then a lot more sophisticated badness can happen. You often see temp file problems in relation to setuid programs.
@Gilles flagged as offensive.
@AviD oy, don't do that
@AviD Hmm, I thought your flagging would have automatically deleted the message, since you're a mod, but apparently not
21:04
Goddamn DBA's thinking they have the coolest chatroom and shit
and then BOOM, I just owned their database
@Gilles heh, not really. scare "you are a mod" message....
@Gilles I lied.
@AviD Someone did flag it though!
yeah, I lol'd at that
@LucasKauffman I would love to penetrate some SE sites. Would be awesome.
7
Better yet, code review.
@AviD giggity.
21:06
@AviD We could make it a CTF challenge!
@Gilles heh, really? probably from the comms room.
@LucasKauffman someone suggested this as a birthday contest. It was roundly rejected by SE.
but not after some heated internal discussions...
they don't even have any security hat on staff at all!
they really should... hint hint (for any listening SE staffer...)
@AviD they don't even outsource their security by asking on IT Security, they ask on Meta Stack Overflow!
@Gilles haha
@Gilles Yeah, I remember that. It was a bad idea, really.
then again, Jeff has a lot of strange views on security stuff.
not necessarily bad views, but certainly not widely held views.
wait, there were a couple of q's they asked here too...
21:09
@Polynomial %s/ on security stuff//
@ScottPack Good point.
Where is @petergrace when you need him
Petey allegedly managed a security team at some point in his career. I don't know any details, though.
@ScottPack An IT Security team or a bunch of ex-deltas
@AviD yes, they did after you and I prodded them: security.stackexchange.com/questions/3913/…
21:11
@ScottPack yeah, but I think that was network security, not apps.
@Gilles heh, senility... at least it was familiar
@LucasKauffman The IS kind.
@AviD Nobody cares about apps security.
hehe, apparently
@ScottPack SQLi is just normal application behavior!
@LucasKauffman I have had developers say "No, we don't support that feature".
Me: "Umm, well, yeah ya do, and its not a feature. Goddamn it."
actually, even better|worse was the one that said "Oh yeah, we need that feature, the users love it.".
@AviD The semantic difference between feature and vulnerability is thinner than a strand of hair.
21:25
@AviD been busy :(
but good :)
@ScottPack it is naught but a point of view.
@Aarthi good, busy is good :-)
@Aarthi can we haz permission to pentest SE :3?
@LucasKauffman naw, tolja, thats been discussed.
aint nobody gots time for dat!
;-)
besides, it would need to be done by somebody on the inside, first. opening it up to anonymous users, too risky.
@AviD in surface news, there's a Metro/Modern SSH client now that works on the Surface RT
21:39
4
A: Security Stack Exchange's Anniversary Competition

AviDIdea for contest: Most significant hack of the SE stack. That's right, calling open season (with appropriate ground rules, of course) on security vulnerabilities on StackExchange sites. The winner could either be decided by SE, e.g. according to the relative risk rating - we could help w...

although that said the missus seems to be having more fun getting doom to work on it at the moment
@RoryMcCune cool. now we just need that 3g...
@RoryMcCune hahah
yeah I reckon that'll come in the next generation
@AviD seriously she just spent 30 mins tweaking the settings so it would full screen on the external monitor without being jerky!
excellent
hows it work with touch?
ooh dunno, it's dosbox, so I'm not sure how well it'll take touch events...
in theory I guess it should just work like the mouse,I'll get her to try it once she's finished fragging things
the jailbroken stuff is moving along too. They've got Java work in a roundabout way
so burpsuite will run
21:42
@RoryMcCune wait what are you doing :p?
@LucasKauffman well she's turning the surfaceRT into a pen testing tool, I'm listening to the dulcet sounds of doom from the other room
@RoryMcCune omai
@RoryMcCune is Metasploit already running?
@RoryMcCune ah, she's jailbroke?
@LucasKauffman AFAIK they haven't got ruby running yet, it could be tricky, but if they get that at least some metasploit stuff would run...
cause it wouldn't surprise me if your tablet ended up melting :/
21:46
@AviD yeah
@LucasKauffman yeah even if it ran it wouldn't be nippy!
@AviD 'cause of the talk she did at Securi-Tay she's been looking at the jailbreak stuff a lot, but I think she'd prefer not to have it jailbroken in the long term...
for most of that stuff, shed be better off running in a remote vm. maybe hack up a redirector/proxy for when you need to be inside a network.
@AviD yeah I think it works best as a device for office/email stuff and remote access to servers
is nice for that
@RoryMcCune and your tablet would be considerable more vulnerable :p
@LucasKauffman was that a not so subtle dig at ruby!
on the other hand java has as many zero days as well
21:49
this latest one was lame it was postmodern checking out a vuln and from what I read he didn't intend for the exlpoit to be public but it got made public anyway and now the rubygems guys are having to audit all the gems on the server :/
which as they're volunteers sucks for them.
@RoryMcCune well me and a colleague here are always arguing what our standard scripting language should be, I'm pro python and he's pro ruby.
@LucasKauffman well he's right and you're wrong :) there you go sorted the argument for you :)
but we both agree we don't want to use perl!
ah well you're right there
perl <shudder>
@RoryMcCune naaaw, python is awesome
and for some reason SE is not loading automatically and I need to refresh my page every 5 seconds
21:53
@LucasKauffman white space should not be significant!
@RoryMcCune Ineverunderstoodthisargument
@LucasKauffman You do not need to refresh every 5 seconds. You just want to follow the chat session. You need to breathe.
@RoryMcCune .strip()
and I agree, that does give me some headaches as well :p
@Gilles I'm not a fan of it, I like my { } to help tell where blocks start and end
@RoryMcCune I'm not a fan of this either, but as flaws go, it's rather benign
21:55
BTW not sure if anyone follows EVE online at all but I thought this article was interesting themittani.com/news/asakai-aftermath-all-over-cobalt-moon , in that it's like the speak a totally different language...
and at least it forces people to indent half-decently
@Gilles yeah I just tease pythonistas about it, really that/ruby are pretty similar..
My ideal language would both have {} (or the like) and reject misindented programs
@RoryMcCune I like python because I don't have to use {}
@LucasKauffman yeah ultimately I think that programming language choice can come down to "what works well for the programmer"
I like the way ruby works, so that's what I use
21:59
@Gilles indentation is a tool responsibility. A good tool would automatically handle indentations.
@AviD but the only tool I can force other people to use is the compiler
I use Emacs, I never worry about indentation when I'm writing code
@Gilles heh, sometimes not even that.
but it depends - e.g. maybe your source control can enforce some policies.
@Gilles Emacs shudders
that's like an operating system on its own :/
@AviD we have that at work, sort of (if you check in badly indented code, someone yells at you)
but not in SO posts
@Gilles ahhh, now we get to where it really matters
22:03
evening all
@Rory!
@RoryMcCune What works well for the programmer and for his fellow programmers who must maintain the code when the first programmer has cowardly run away into another job.
@ThomasPornin well yeah it's a bit different if you're coding professionally...
@RoryAlsop watcha'
How has the room been today - I have been intermittent, to say the least - blimming trains
@RoryAlsop where were you on yer travels today? I've been down in dumfries for a couple of days
22:09
you can usually check the sidebar for the highlights, for the most part
weather has been "interesting" to drive in
@RoryMcCune Leeds for a client meeting
journey down - lovely, sunny, views out over the North Sea. Single train from Edin to Leeds
journey back - late trains, missed trains, many trains, much rain, meh
not so great
@RoryAlsop I've not been down Leeds way since my HBOS days. Still probably best you didn't fly, I'd bet Leeds bradford was shut in this wind..
@RoryAlsop I had my first sale the other day!
@RoryMcCune wasn't windy down there - until we left the client :-)
@LucasKauffman result!
22:14
@LucasKauffman congrats! vodka should get the taste out.
I actually didn't think the sales part could be as fun as the technical part
@LucasKauffman I actually quite like the pre-sales technical bit, finding out about a customers problems and thinking up a way to address them
@RoryMcCune and try to make up a reasonable price and play around with the ERP
@RoryMcCune me too. I really got to stretch my mind's legs on some of those occasions.
@LucasKauffman that part, less so.
I enjoyed the part of convincing them how great we/I am, and we can give them what they need. The price-negotiation part, not so much.
@AviD It's still new, so it's fun to see how these things happen
also clients don't always know what they want
22:17
I... guess.
@AviD yeah I'm rotten at price stuff. I tend to tell people what I think it costs rather than do anything subtle
@ThomasPornin I seek the wisdom of the mighty bear - if I can. Any idea why the aeskeygenassist AES-NI instruction takes four 32-bit values (called say x0,x1,x2,x3) and returns subword(x1), xorrcon(subword(rotword(x1))), subword(x3), xorrcon(subword(rotword(x3))). What baffles me is... well why bother making it a 128-bit block, why not just use a standard 32-bit one? The work required to compute parallel key schedules by correctly packing an xmm word hurts my head!
I've worked up some spreadsheet to help me with it: I start with the SoW breakdown, attach time estimates, spreadsheet calculates buffers, overhead, etc, and gives me a final result, depending on the rate I want.
(yes, you're reading that right, it does discard x0, x2 entirely)
Then I throw that out and make something up.
@Sadaluk read that as "ask a geek". Would be a great podcast...
22:20
@AviD yea I use an excel for that as well
@Sadaluk not familiar with those instructions, but I'd guess that its because AES usually uses 128bit blocks...?
@LucasKauffman the last step is the important part.
@AviD Yeah. aesenc et al use 128-bit registers, e.g. xmm1-15, that's all fine. What I'm not sure I understand is why the key schedule instruction bothers - Intel's own example entirely discards three of the four 32-bit words after running the aeskeygenassist instruction.
ah. cant help ya there, mate.
@AviD Yeah, I know. Bizarre. But if anyone can save me, it's the Bear Team.
@Sadaluk I have to go right now; I will look into it later tonight, or tomorrow.
22:25
@ThomasPornin Thanks :) If I manage to articulate my confusion successfully I might write up a question on crypto or SO - if so I'll pop a link over.
Apologies for the interruption with that everyone else, please carry on! (feels awkward like the guy who interrupts a boring lecture to ask the same question twice in five minutes)
@AviD Gotta get those time estimates right though - otherwise you do more work than you get paid for (or get paid less per hour than you intended)
@Sadaluk right, hence the buffers and such.
@LucasKauffman yep - me too :-)
Estimating is its own set of skills, though.
Essential. comes with experience, but also theory.
@AviD Yeah. I discovered that idea after I did a website as a contract and underestimated... only make that mistake once!
that said, there is always error.
@Sadaluk yup, similar mistake here :)
most consultancies have a simple solution for that - you do not do more hours than the estimate.
no matter what.
22:39
indeed
 
1 hour later…
23:46
is it a bad idea to buy refurbished hardware?
factory refurbished, by the original manufacturer.
Specifically, a router.
@AviD depends. Are you more worried about someone adding a backdoor, or more interested in finding someone's unwiped passwords?
@Gilles neither.
I plan to flash it regardless, put on either dd-wrt or tomato.
More worried about hardware failure.
how much $$ are you saving?
umm... about half price.
on a $50 router or a $50k router?
wrt so I guess $50
do you need $20 that badly?
23:49
heh. 80$. so saving about $40
how bad is it if it fails?
40. and thats the question, innit?
I cant make a risk decision if I dont know the likelihood of failure.
@Gilles worst case, I replace it - and I'm out that cash.
so I guess thats about even there.
@AviD no, the worst case would be the service interruption
if it fails under warranty, would you return it with a 6–8 weeks turnaround, or buy another?
my question is, is it usually safe to buy one of these - are they usually crap, or usually great?
@Gilles eh. so i'll spend a couple hours, and replace it with my old router.
@Gilles if i can, sure.
some are someone realizing they bought the wrong color, some have been damaged. I don't know the proportion
all in all I think it's more a matter of worst case
if you don't need high availability, go for the refurbished
If you need high availability, buy two half-price refurbished
for extra geek points, plug them both in a failover configuration
(and have them both fry when lightning strikes)
00:00 - 15:0015:00 - 00:00

« first day (776 days earlier)      last day (4402 days later) »