« first day (1153 days earlier)      last day (3802 days later) » 

10:00 PM
@ton - I was remarking on the "bad for living" question. I think seattle gets a bad rap for all the rain personally, I know I have heard other people talk about it before
 
@ton.yeung No - right now, Bing maps says 1.5 hours (it's 90 miles) - but in practice, it's typically closer to 2
 
Seattle looks really nice
 
@ton.yeung It is in Seattle, too
 
but I've never even been to the US
 
the main problem with seattle is that the east and west sides are so disconnected because of the lakes, and then you have the hills
so everything bottlenecks when you try to get around town
@TravisJ The rain is a personal thing - some people can't stand it, some people don't mind. It's rarely heavy rain, so it's more a lot of drizzle, which means a lot of gray days
@ton.yeung No - I just take a passport
 
10:03 PM
@Reed - Yup. Some places in Hawaii get a lot more rainfall than Seattle.. no one mentions them negatively :P
 
@TravisJ Its different here, though - in HI, you'll get a nice, sunny day, and a squall will come through and give you a half inch of rain, then it'll be sunny again
here you just get dark clouds and occasional, light rain all day ;)
 
@ReedCopsey Portland, Oregon is weird. We go with drizzle, or heavy rain. Followed by either cloudy or sunny. It is usually gray till about noon, then it is sunny.
 
I should be around -
@Greg yeah - I lived in Portland for quite a while
 
Apparently, some places in Hawaii get Seattle's yearly rain in a week
 
@ReedCopsey Portland is bipolar. It doesn't know what it wants to do.
 
10:05 PM
@ton.yeung Nope - I'd be up for that, provided the timing works out
 
@Reed - Yes, the dark is the issue :)
 
@TravisJ This is the main issue, really - currentresults.com/Weather-Extremes/US/cloudiest-cities.php it's not the rain
 
@ReedCopsey When using linq, what syntax would I implement for a double nested foreach?
 
depends on what it's doing
but SelectMany is the most common
 
Something along these lines:
foreach (Site site in iisServerManager.Sites)
    {
        foreach (Binding binding in site.Bindings)
        {
            string ipAddress = "*";
            int port = binding.EndPoint.Port;
            string hostHeader = binding.Host;

            binding.BindingInformation = string.Format("{0}:{1}:{2}", ipAddress, port, hostHeader);
        }
    }
 
10:11 PM
@ton.yeung can confirm. I get buttloads of emails from recruiters.
 
@Greg - That causes side affects.
 
foreach(var binding in iisServerManager.Sites.SelectMany(s => s.Bindings)) {
 
it actually doesn't rain that much in Seattle. And it's usually pleasant rain.
@ton.yeung I'm not special... I feel like I'm getting dumber sometimes doing projects at my job
 
@TravisJ What does?
 
Maybe you need a new job.
 
10:12 PM
I am getting better at things specific to my job, but worse at open-ended thinking. All the problems I have to solve are related to the platform I work on, not anything generic or technical. It's all debt.
 
@ton.yeung To answer your question, according to money.cnn.com/calculator/pf/cost-of-living , bellingham is about 13% more expensive than Houston ;)
 
@Greg - I just mean it is modifying one of the loop properties (usually you wouldn't use linq to do that). But Reed's method of using a projection for the iterator looks like a nice refactor.
 
hehehe
nothing
not here
 
yeah. I get depressed when it's cloudy but no rain
yeah. you're lucky to find a house for under $300k here.
 
250k is about the starting point around here, and that's really not much
 
10:14 PM
maybe if you lived in the San Juans or something, that's surprisingly affordable.
 
@ton.yeung You can get a shoe box, town home, or condo for 100-150K here, homes that are even repairable are 200K or higher here.
 
Poulsbo isn't bad, either.
 
@Reed - If I had a list of objects which had 4 properties, and sometimes two or more objects would have 3 of the 4 properties equal, what approach should I use to remove all but one of the "two or more" set?
 
$230k 3 bed 1.5 bath, right next to the water 1300sqft
 
@ton.yeung yeah - around here, you're at 250k for that at the low end - zillow.com/homedetails/1514-G-St-Bellingham-WA-98225/…
that's about the cheapest on the market that size in bellingham right now
 
10:16 PM
@ReedCopsey Thank you, @TravisJ I didn't know that could cause side effects. I really need to get better with link.
@ReedCopsey I notice that style in Portland alot to.
 
@Greg - It was perhaps a bad term to use. All I meant was that you were modifying a property. Usually you don't use linq when you are modifying data
 
@Greg You typically wouldn't put the portion that changes a value (sets BindingInformation) into the query itself
 
@TravisJ Oh, I was under the notion that Linq can be useful for querying and modifying those large chunks of data.
 
that's all @TravisJ was saying
you use LINQ to get the data effectively, then typically loop through it to set it
 
@ReedCopsey So that is why you end with the {}
 
@ReedCopsey that's right downtown, too
 
@Pheonixblade9 Not the best area of Bellingham, though ;)
 
hehe
yeah, good luck finding a house in downtown seattle :P
 
@ReedCopsey So is the code you provided is just the foreach portion for both, I still have to implement the functionality right?
 
I live in the nicest area of Seattle you get without being Bill Gates, basically...
 
10:19 PM
@Greg yep
just takes the two loops into one
 
@ReedCopsey That is what I thought, all that talk confused me a little.
 
This place is one of the "cheap" ones in my area: trulia.com/property/… It is actually pretty nice
 
There are cheaper near me, but this is the ideal bracket 200-300 for a decent home / area. trulia.com/property/…
 
@TravisJ to be fair, that has an ocean view.
rents in Seattle are hilarious sometimes. $3290 for a 1450sqft apartment: seattlerentals.com/Queen-Anne/town-home/17591
 
is it just me, or does the new google maps lag like a mother fkr
 
10:34 PM
@ton.yeung sure. but it's still a townhome
yep
no. I'm saying housing in Seattle proper is just silly these days.
 
@Pheonixblade9 - There are plenty of $200k single room mobile homes for sale in SB ;)
 
:)
@TravisJ eurgh
I own a piano now... kinda limits my housing options
 
haha, I felt the same way when my gf made us get a dog
With a slide in the center of the house that goes from the attic to the basement?
:)
 
slide?
!!slidepoop
 
in JavaScript, Mar 13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
10:39 PM
@TravisJ like this? (listen with sound on): youtube.com/watch?v=zlK2VOn_nEA
 
!!artisticpoop
 
god I'm glad I don't go to the JS room
 
Me too
 
@Pheonixblade9 - lol, I she must have been an Ewok in return of the jedi
 
10:41 PM
@ton AYIYIYIYIYYIYIYYYIIIIIII AWAAA AWAAAAAAA
 
She was probably saying something
 
yeah, she was saying AYIYIYIYIYIY AWAAAA WAWAAAAAA
don't you speak Mandirin?
 
She was probably saying something meaningful
No, I don't
Except I think ni hao is Mandarin
 
I'm pretty sure it meant "AYIYIYIYIYIYIII AWAA AWAAAAA"
 
You all are good at Audacity, right?
 
10:46 PM
@ton.yeung What is that? A swear word?
@CCInc Of course
 
@CCInc - I know everything you were ever going to think or have thought about in the past.
 
"hey, mofo" is too
 
Audacity :P
 
@TravisJ That was low
 
@Kendall - It was audacious. Although clearly inaccurate
 
10:47 PM
*inaccurate
 
Thought so. I've got a mp3 that contains two violins. One is playing notes that are all lower than the other. Is it possible to perhaps boost or totally remove one or the other violin, so I can properly hear the other?
 
inaccurate*
 
@CCInc Unless they somehow are channeled differently, it will be quite hard, and probably not something you can do with stock Audacity
The fact that you're using MP3's makes it harder
 
@CCInc you'd need to do a frequency filter or something like that. and @KendallFrey is right, it'd be difficult.
@CCInc convert it to .wav format and use a high pass filter, fiddling with it until you get what you want.
 
You could certainly do a high- or low-pass filter, but the results will be best described as shit.
 
10:50 PM
yep.
 
High pass filter.. removes everything higher than a certain frequency?
 
@ton.yeung [pokai](http://pokai.urbanup.com/46997) 1. fall on the street
2. saying when someone's pissed
 
This sounds like a job for machine learning!
 
Because violins aren't sinewaves, they have harmonics
 
if it was straight sine waves, a filter should work fine, but a violin is most certainly not a sine wave
 
10:51 PM
@CCInc opposite
?
I did?
 
It doesn't need to be straight sine waves, a Fourier Series can represent anything as a combination of sine waves.
 
I thought you said poh kai
 
I'm transcribing something from a movie, and there is a section where the two violins overlap and I can hardly hear one over the other
 
Well, alright then, wtf is "fall on the street"?
You hurt yourself
And get hit by a car
 
If no one hears you fall on the street did you fall on the street?
 
10:53 PM
Insufficient data.
 
@Pheonixblade9 Why does the file format matter when I'm loading into audacity either way?
 
There is no evidence that you have fallen
@CCInc MP3 is lossy-compressed
No, wav
 
throw new InsufficientDataException("you may or may not have fell on the street");
 
Always use wav except for the published result
WAV format is also very simple to read and write
 
Speaking of.. did you ever find a C++ RAW to wav converter?
Or do you still have that one you were talking about/
 
10:57 PM
What's RAW?
headerless wav?
 
RAW is a picture format...
 
I forgot that name.. the um.. we were talking about procedural music that one day
Uh
 
You talking about the one I wrote?
 
Yes
 
10:58 PM
Yes, I still have it
 
I suppose you won't share the source?
 
Sure, but I don't think I have an unobfuscated version
You will probably want to adjust the sample rate, since I think I set it to some weird value
You can either do that in the code, or with a hex editor
 
I don't think I ever got the exe
 
@ton.yeung Yeah, I bought my house in August which needed work. It is already worth twenty thousand over what I bought it for before remodeling, with the remodels it will be worth more hopefully.
@ton.yeung I love that art fail.
 
Would you like me to write one in C# for you?
 
11:02 PM
 
That would be lovely, thanks!
 
I can do it, but it might be a few days before I get around to it
 
@KendallFrey What are you speaking of?
 
I definitely can't tonight
@Greg A program that adds a wave file header to any file, making it playable
 
@ton.yeung I thought he cheated, did the reverse.
@KendallFrey But I don't need that, sounds cool. Did you mean to ping me?
 
11:04 PM
When did I ping you?
 
What you need is another program that accepts the sound of you .wav files
and decodes them
 
mine does that too
 
From a audio-in jack?
 
nah, just wav
 
Hmmm.
 
11:06 PM
@ton.yeung In that case cool, I thought he was being a cheater. All though, his approach seems like less work.
 
you could make something that operated as a USB at workplaces that don't allow USBs
 
Oh, hey, the code in one of my gists
 
Don't ping me, bro.
jk tho, my sound is off so it doesn't bother me
 
@TravisJ same
 
me again
 
11:07 PM
In high pass filter, the cutoff frequency is the lowest frequency I want to hear, right? And what do I need for rolloff?
 
I solved the duplicate removal problem :D
 
are there any common ways to maintain local data cache in JavaScript?
 
SessionStorage
 
@ton.yeung lol
 
@CCInc I think that means the filter fades over that range
gtgbrb
 
11:08 PM
@LINQ2Vodka - It even works in ie5!
How many js features can you say that about
 
question: which is preferable in a coding standard as a variable name, and why:

testID

testId
 
@TravisJ say there are static dictionaries that are not changed for years. Id like the JS to download it as needed and put into memory cache. Once cache size exceeds X Mbytes, it partially clears
 
@ton.yeung You know what I mean, because if you do some of those effects it would take the banner and create it like so.
 
@Pheonixblade9 depending on developer enviroment
camel case is most popular now
 
@Pheonixblade9 - It depends on where the variable name is.
public class Test
{
 public int TestId { get; set; }
 public Test( int testId )
 {
  this.TestId = testId;
 }
}
 
11:11 PM
yeah, ReSharper knows
 
@Pheonixblade9 - That is what EF expects by convention. If you follow convention with EF then you get to bypass all the explicit FluentAPI hassle
 
private readonly string _myString;
 
@ton yup
 
private readonly Liquid _vodka;
_water.Cast<Vodka>().Single();
 
@ton.yeung I occasionally use them when I use a CONST or an ENUM. but they're probably not great
 
11:14 PM
cheerz!
 
private const string DUDE_WTF = "DUDE, WTF!";
 
/me just remembered old kind Knockout. Love it!
does my cat have extension methods? need to check
 
@ton.yeung I don't like that style.
I don't even really like the java style for member variables

private String mDerpString;
 
I hated the vb6 conventions
 
man, I've been working in Java again recently and it's just... painful
 
11:24 PM
Hom many bytes do you think i can load into client cache not worring of making page too heavy? 1Mb? 10b? 100Mb?
 
@jim what's the purpose of loading the bytes into the cache?
 
hmm
 
I wanna go with 100mb just to see what happens.
 
@LINQ2Vodka - In general, a client can handle about 3mb of data before it starts to lag.
I wouldn't suggest breaking the kb level though.
 
i have google chrome with only this page opened. All Chrome's processes take ~200 Mb. Do you think it's ok to use 1.5Kb instead 1?
 
11:27 PM
@jim a good rule is... transmit as little data as possible.
 
Before fetching requested data I try to keep my pages to 10kb because it is nice to load on click.
click loaded. as opposed to click.. ... ...load-ed.
click loaded. as opposed to click.. ... ...load-ed.
ironically that message timed out and was sent twice
@JoshVarty - 100mb would take a long time to download. Once it loaded, the screen would look as it did when the download started. Any interaction with the page would crash it.
 
my site is gonna use ajax for very many purposes. It's like in facebook - all new items are added with dynamically created html. so the question is what's better - to send html everytime or to send it ince and put in cache?
 
don't send html <ever>
send json and manipulate it into the dom
 
@TravisJ were does clint take it from?
Say you wanna add a comment and need complex markup. How do i build it?
 
@LINQ2Vodka - Build it with a js function.
success: function(jsonData){
 buildComplexMarkup(jsonData);
}
 
11:32 PM
say you have a lot of input forms like for comments... you create them all from js? how to support this ugly code?
 
If you can create one comment from JS, you can create 10.
 
The code will be minified anyway. And cached which is nice.
All you really worry about are the parameters.
 
i'd rather use knockout's approach when youhave an invisible html template for comments at the end of the page
i just dont like function like this: var s ="<b><p>"+val1+"</p><ol><li>" + val2 + "</li></ol>"...
 
Think about it. Would you rather download:
<div class="fancyType">First!<div class="share-icons"><span class="fbook-icon"></span><span class="twitter-icon"></span></div></div><div class="fancyType">Nice article<div class="share-icons"><span class="fbook-icon"></span><span class="twitter-icon"></span></div></div><div class="fancyType">This article sucked =/<div class="share-icons"><span class="fbook-icon"></span><span class="twitter-icon"></span></div></div>

or

{comments:["First!","Nice article","This article sucked =/"]}
 
ok, another one case. Say you have a dictionary of 50 possible tags for your comment message. You gonna write 10 comments. How do you load that tags? Once or on every new comment?
 
11:37 PM
And that is only three comments
 
ok, will not send html :)
(i'm good in back-end proramming, but client side is not what im familiarf enough with)
 
You would preload the tags when the page loads
or on demand once and cache them
 
ok, thanks for opinion
 
:)
 
really, i gonna do like you said
ok, guys, gotta sleep. Have cool weekends!
 
11:41 PM
function buildComment(comment){
 return $('<div class="fancyType">').text(comment).append($('<div class="share-icons"><span class="fbook-icon"></span><span class="twitter-icon"></span></div>'));
}
success: function(data){
 for(int i = 0; i < data.comments; i++){
  $("#commentSection").append(buildComment(data.comments[i]));
 }
}
@LINQ2Vodka - Not so bad right?
Simple example
 
will use knockout templates...
it's alsmost the same but more readable
 
Heh, hopefully it wasn't written in a textarea :P
 
:)
/quit
 
window.close()
 
@RyanTernier What would be ideal to write a way to modify those site bindings; so the site and all its content exist.  But instead it points to a page that says "Your service has expired."  If do something like this, to modify off that default page back to their site it doesn't seem like a viable option.

            using(ServerManager manager = new ServerManager())
            {
                foreach(var binding in manager.Sites.SelectMany(s => s.Bindings))
                {
                    string ipAddress = "*";
@RyanTernier You know what I mean?
 

« first day (1153 days earlier)      last day (3802 days later) »