« first day (1103 days earlier)      last day (4071 days later) » 

00:13
cyaz
00:30
cya all
00:57
buh bye
01:31
:)
02:13
good morning! :D
gmorning!
02:33
hai @Ianthe
hey @CCInc!
Wassup?
lack of sleep
same here
just flew in last night from China
I was asked to report to work, the time I stepped out of the plane
02:36
lol wow
tough
I asked my boss if he's psychic haha
I keep dozing off whenever I lean on something
I hate this feelin
PSI? :D
02:55
haha! My chakra is disrupted right now...
@Steve good morning sir
03:10
its funny to see 2 good mornings in 1 day
03:56
good morning :)
>:]
good morning! :D
where u from
@KendallFrey you there?
@CCInc As a matter of fact, yes
Ah, okay.
If you get a chance, could you help explain this code to me?
04:11
You mean what it does? Or did you have some more specific question?
I was meaning how the code itself functions, mainly the math involved and what purpose the math has.
Guessing by the variable names, I'd say it produces audio data.
Of what form, I'm not sure.
Possibly music
Most likely procedural, with a specific tune
Good guess. So, would the numbers in any way special to what tone it produces? As in, can you explain how the numbers work? Are they specifically set in a way that produces a specific tune? And what is the purpose of the for loop (how does it work time-wise to produce the tone)
Sorry if any of that was off, it's late and I'm tired
My guess is the tune is the result of the numbers, not vice versa.
If you need me to, I'm pretty sure I can make that into a wav file
Please give me some guide about How to save & retrieve an image into sql server's database.
04:18
@Rahul_RJ Blob
Ask vague question, get vague answer
@c0dem0nkey my ethnic origin is the Philippines, but this message came from Singapore. :)
@Ianthe lol oryt.
@Ianthe this message is from ortigas :P
@KendallFrey So if I run that code as-is, it will give me some text output, right? How woudl I convert that to actual audio data?
Cool, I used to work there, 8years ago! Along Emerald avenue...
im in emerald ave hahahahaha
well a block from it.
04:29
@CCInc pipe it to a file
Oh, and you'll need to add a wav header or use some kind of tool to make it playable
is it possible to actually play the raw data by windows sound api like here?
or do I need to pipe it to a wav file
@c0dem0nkey does the prestige tower building still has the roof deck canteen with nice foods? I got fat when I worked there, man, they cook really good!
I wouldn't be surprised if there's some API lets you play raw audio data, but without information like sample rate and sample size, it's fairly ambiguous how to play it.
But whereas if you directly output it to a wav file, it'd take care of that for you?
No
You'd need to specify the header yourself, or use a tool to generate it for you
04:34
Ah, okay
Chances are, that tool requires the data and just formats it into a header
I happen to have a tool that converts arbitrary data to a wav file. It happens to be written in C. And it happens to be obfuscated.
Hmm, okay
I'll try it out, I guess
Nah, it's not public anywhere
I can try it tomorrow maybe
Hmm, okay, that'd be appriciated
Bug me about it
04:37
in the meanwhile, what exactly would I do to output the ints directly as bytes in a file, in c?
Or is that not what I need to do
I think just redirecting the output should work
First, have you tried compiling that?
I don't think it's valid C
I modified it to
#include <stdio.h>

main() {
	int t = 0;
    for (t=0; t < (1 << 20); t++) {
        int melody = (16 - ((t>>10) % 16) - (t>>10) % 16 & t>>10) * (t>>16) % 32;
        int bass = (~t>>11 & t>>10 & 1) * 2 + (t>>11 & t>>10 & 1) * 4;

        int output = t*melody % 256 / 128 * 32 + t*bass % 256 / 8;

        //center tracks
        output += 112;
        if (!melody && !bass) output += 16;
        if (melody && bass) output -= 16;

        //output to pipe
        putchar(output);
    }
}
Yeah, that's better
Just do one-line-jam > out.dat
Alright
If you want, you can check the contents in a hex editor
04:40
I'm guessing it wont' be anyhting too special, though?
Some kind of poor wave I guess.
The sample size is pretty low
I'm guessing the desired sample rate is too
Probably end up with chiptune-style sounds
Indeed
2^20 samples would be... let's see... say ~40000 samples/sec... ~25 seconds of music at normal wav sample rate
IIRC, my tool uses an insanely high sample rate. I'll need to tweak it in Audacity.
Where'd you get the 2^20 from?
for (t=0; t < (1 << 20); t++)
04:48
Aah
Okay.. well that failed
When I tried it, it sounded nothing near the expected output
Did you hear something?
Well.. I used an audio conversion tool, so yes
What did you hear?
Sounds pretty accurate to me
Try lowering the sample rate, see if you get anything more coherent
04:53
Is there no way to determine the intended sample rate?
You can only guess.
Typically it's 44100 or something
Yeah, that one was 44100
oh, maybe I miscalculated
it was pretty high pitched. try lowering the sample rate
sounds better
here is the original
slight difference
soundcloud no worky for me
04:58
Ah, taht's right
uh
one second
Way better
yeah.. what accounts for the difference in length and sound?
sample rate
is it supposed to change the length?
basically the speed it plays
05:03
hmm
this program may be defective then
Have you ever heard of LPs/records/vinyl?
Yes
Have you ever played one extra fast or extra slow?
Not really, no
It changes the speed, and consequently the pitch
05:04
ooh
so that's why in Audacity
when I change the speed of a track it changes pitch
If you play it too fast you get Alvin and the Chipmunks style
@CCInc Yep, changing the sample rate will do the same thing, but losslessly
Aah.
If you research the wav file format, a lot of this stuff will become clear
Like.. the way the format itself works?
No, what stuff like sample rate actually is
05:07
Ah, okay
I should be off to bed now. Thanks for the help, Kendall
see y'all
:)
netflix shows to watch, discuss!
 
2 hours later…
07:42
hi
08:08
yo
yoyoyo
@Elegiac i wanna start my own side project
whats that
@Elegiac dunno yet, but aiming for a market.
i see ... well goodluck on that @c0dem0nkey i know thats pretty easy for you to do :P
@Elegiac not really. im sh*tting my pants here
08:10
@c0dem0nkey btw bro you good in regex?
@Elegiac cant say iam. ive used it a couple of times tho
how can i match this expression?
//Declare public var like the one below
i want to match start line with // and contains the word "var"
comment regex?
@FLCL i have no parser so i uses regex
something like this:
//\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*(var)
but i know its a stupid 1 so i need more complex regex
anyone? :D
@Elegiac, \/\/(([^/])+(/[^/]+)+$|([^/])+(/[^/]+)+\n)
try dis
08:17
what it matches @FLCL ?
was tested at regexpal.com with input asdasdasd // asdasd a/sdas/dasdasdasdd
oh "var" need to be in?
yes
but i think all words for //
is enough
@FLCL
you may find all comments by using this pattern and then match all words using \w+
but the task is to find var in comments or to find comments with it?
i want to findout if the word "var" has slash before(comment) event theres a possibility that theres word(s) or space(s) before and after the word var
like it matches with

//var

or

//asdasd asdasd asdjka jdhas var asdjak asda aksjdkasd ajsdlkjlasjldjakjd asdkljalsjldajd
and the result is all comment?
08:33
what do you mean result? sorry
ok ill explain more scenario @FLCL
i create regex's that Match all variablename in entire richtextbox
like var aaa = "asdas"; Matches aaa
and name matches will automatically add in my list
problem was even those who got commented words that contains word "var" also added in list
which shouldnt
so i want to exclude all word from adding in my list that contains var before //
Hi
Guys any idea about MonoTorrent Library ?
@Elegiac wow it another kind oftask
Or Torrents in general ?
how do you match var aaa = "asdas";
i match aaa using group @FLCL
08:50
@Elegiac, well maybe this //(|[^/]+[ ]|[^/]*/[^/]*[ ])var(\n|$|[ ]([^/]+|[^/]*/[^/]+)[/]?($|\n))
its matches comments with var word in them
09:00
@FLCL ill give a try thanks
take a look at my noob regex haha
//\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*(var)\s+(\w+)\s+\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*
@FLCL but it matches even word after newline?
can we do /* and */ instead?
the var inside /* and */
09:14
why it still matches when i new line it
like //asdasdsd
var aaaa
wait i fix it
Hello all. I have some methods that contain incomplete code. Usually, I just comment out the offending lines and compile when I'm testing working on something else. I was wondering if there is an attribute that tells the compiler to ignore a particular method - saving time in commenting / uncommenting when testing out code?
09:39
@Elegiac, there is a dangerous construction like p = "//var q" and multilined comments...
so unfortunately better way to do that is to use parser
try it - its very fun and interesting
09:55
@FLCL ok thanks a lot mate :)
TWT
TWT
10:28
string encoderName = (outpstr.Ancestors("videoEncode").FirstOrDefault() ?? new XElement("root", new XAttribute("displayName", "NA"))).TryGetAttribute("displayName");
how to do that shorter?
10:56
hi guys how'd u add an js alert message from .cs file on a button click
myIframe.Text = "<button type='button' id='b1' class='btn btn-lg btn-info' onclick='<script>alert('done')</script>'>Ask</button>";
without the <script>
i have that as of now and i'm not getting any alerts :|
onclick="alert('done');"
i cant use double quotes can i ? coz i get errors when i use em
and yes ive tried using onclick=alert('cool'); still no go
@MAD4RA hey
11:01
hiya @Neha :)
do as exactly @ErwinOkken says.. u wont stuck
@MAD4RA may be issue is iframe.. consider that
yea that's what i was thinking since everyone suggested the same
@MAD4RA myIframe.Text = "<button type='button' id='b1' class='btn btn-lg btn-info' onclick='alert(\'done\')'>Ask</button>";
try this
u may need to use escape charcter
thanks, i've tried that too still doesnt work :/
<asp:Literal id="myIframe" runat="server" />
that my iframe in aspx
or am i doing something wrong
'alert(\"my alert\");'
11:13
works !!
gr8
thanks :0
wc dear :) so issue is character escape
yeah
11:29
1
Q: Simple SPDY && QUIC client and server applications

Gelo VolroI have read about SPDY AND QUIC protocols in Wikipedia recently and have become very interested in it. First of all I thought to make something very simple, for e.g. Hello TCP server and the web application in JS, which comminicates with TCP/UDP server. But as a newbie, I found several problems...

Hello everyone! I have a bit of an advanced question, do anyone have the time to help me?
@MishMish go for it
Alright ill do my best to explaine
Basically I built this huge Querybuilder
U can save many inputs in it (I can show a picture if u like to). The inputs is used to calculate many stuff for my company
These data bleongs to a service
or I call it a service, and many services belongs to one customer
in my program I can view data for one Service (which i choose from my dropdownlist) my challenge here is I want to view All services in different sheets in excel with one button click
I can do this for 1 sheet for 1 service, but not for multiple services
So I have been spending many days to work arround it, but I have been stuck since
drch you following me? I have an image of anexample if u are interested
11:42
going home. bye nerds
@MishMish i have one sqlparameter related problem. would u help me?
@MishMish hello.
@NimeshVaghasiya
hi
ask your question if i could i will help you out
12:20
@NimeshVaghasiya hello, I have a problem my self, so i'm not sure I would be any help :D
Is it possible to get multiple sql Queries and save all of them in different excel sheets?
And how can I run them all with one click?
12:46
@MishMish
you can join multiple tables or make a view
and based on that view you can bind your excel sheet
13:09
Top of the morning to yas
What about the rest of us?
(That's actually the guy that made me room owner.)
Haha thats great
Well good morning @KendallFrey
13:45
Internet at work is stupid slow
@JLott probly my fault
lol
boss complains that website is slow after converting a site from ektron cms to DNN. I feel like saying well...we can go back to the old one
probly wont work out to well for me though
You can just profile and identify the problem.
Probably not lol
I am working an site/application that will authenticate a user based on ip range. I have the code I need but I have a C# site and the code is in VB
so I tried using the following in the web.config
<system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
        <providerOption name="CompilerVersion" value="v4.0" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
(see full text)
it still complains about conflicting languages
i found this online looking for a solution for something else public token looks suspisous
suspicious even
haha..fixed it
14:04
Favour for a favour
.
<compilation debug="false">
    <codeSubDirectories>
        <add directoryName="VBCode" />
        <add directoryName="CSCode" />
    </codeSubDirectories>
</compilation>
0
Q: getting all properties names and values from Directory Entry object

user13814I am getting all websites from localhost IIS manager 6 using DirectoryEntry class, I would like to get local path of each web application, but not sure how to get it, Is there anyway I can enumerate all properties of directory entry ? DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3S...

@ton.yeung I wish that was the case here
I only get 1 up 10 down at work
has anyone ever worked for a company where employees do something called a money pot?
14:13
@ton dang! At home I get 10 up 35 down
Bummer
a money pot? never heard of that, a few things come to mind though
basically you are in groups of four and every paycheck a person recieves 100 dollars from the other 3
shot rhymes with pot
in it goes around
@Skullomania So, a mini lottery
14:15
I agree with ton
In gambling, isn't the term "money pot" redundant?
Kinda....but the pot is handled by the manager who does not participate and makes sure everyone plays fair
for a kickback
there is only one way to make a random occurrence fair, and that is through intervention
if it were truly random, then one person could win the pot all year every week
I have just been bombarded with stuff at work
@JLott - Well then get to it! ;P
14:18
so no one will going to answer my easy question ??
@ton.yeung Well it is going ok.. but he now wants me to change a jillion things with the switch....
Basically... he is indirectly making me work on this project that no one wants to work on.
@ton.yeung Correctish
All I want is a little black box. It only needs to be the size of a shoe box. It needs to be water tight. In fact, it needs to be able to keep liquid hydrogren in its current state.
I don't get paid enough lol
@ton.yeung Im just suprised that there isnt an online service
safer than gambling
because its a sure thing
@JLott You and I have alot in common.
14:22
@JLott - How much longer are you there? Few months? Work on the aspect that is most interesting of the set of work to you. Not like you are going to be able to finish the whole deal anyway if you are only there until january
did you have a smart ass reply?
hey all
:) haha
@ton.yeung but you are not garaunteed to win a state lottery
I only play the lottery when I have the worst odds because that is when the most money is involved.
14:25
@ton.yeung Not usually
@ton.yeung That actually hurt a little bit.
@ton.yeung Why do you have to remember I was in the military?
tl;dr: Try and choose the most "random" number so as to reduce ties.
(Also, don't play)
@ton.yeung Well, luckily I've taken and heard worst. However, without knowledge of someones current day or state of mind you could set them off.
@ton.yeung Usually a lottery is to run a profit.
14:29
hah there was a saying that your chances of getting hit by a bus is higher than winning it
when youre on the way to buy it
@TravisJ They are going to talk to me about a permanent position next month.
@ton simple example is pulling the trigger. you can get away with it on a rifle, whereas with a hand gun you are probably going to fire high if you don't squeeze the trigger
@JLott - I thought you were applying at other places is all
I am, but the moolah talks
@ton Yup, guns aren't rocket science haha
@JLott - Indeed, which is why it would be worthwhile to at least have some other offer to show them to get a higher offer from them.
I am looking :)
14:35
@JLott Yeah, your schooling should help. Plus you've got some good work experience, I've got to get my shit together.
@TravisJ They kind of are, I mean, there's fire, and smoke, and flying stuff, and Newton's Third Law.
Dangit @Kendall lol. Okay fine, the construction of a gun is rocket science. But firing one isn't.
@Greg You are going through school aren't ya?
Rocket science is awesome BTW.
Mun or bust!
haha
14:41
@JLott I'm about to start next year, go back and try and finish and get my bachelor.
He could probably do a lot online
@ton.yeung Yeah, and online.
@ton.yeung Yeah, I've been doing alot of remodeling. I actually had a horrible floor that bounced, which isn't good for tile. So I built a beam and cross-arm hanging Joice for additional support last weekend. Now the floor is solid, I've got some electrical and drywall this weekend.

« first day (1103 days earlier)      last day (4071 days later) »