« first day (1115 days earlier)      last day (4059 days later) » 

16:00
deep-fried potatoe
@AmmarAhmed - So you are looking for new dubstep?
oh....wait
@Steffen how french of you
deep-fried is like black...it works with everything
@TravisJ lo0l not at the moment. I am in a Kaskade house mood right now
16:01
@ammar - This is a good mix: youtube.com/watch?v=RuvCF7gBdmQ
@SteffenWinkler ಠ_ಠ
@TravisJ I will listen to it later today. Thx
black color works great, regardless of what your other color is.
16:02
I dislike having a black background with white font. It is hard on my eyes.
@SteffenWinkler Even if it's black?
@TravisJ I do that all the time.
@KendallFrey especially if it's black
idk why I was thinking "black-face"
VS and NP++
@Kendall - It is fairly common. I just dislike it.
16:03
I love it.
@SteffenWinkler ^
you forgot to link it, though.
@KendallFrey I use VS and sublimetext
So would this make more sense?
private string path;
public string Path
{
get
{
return path;
}
set
{
if (value != this.path)
{
this.path = value;
NotifyPropertyChanged("Path");
}
}
}
16:03
YES
CAPS MAKE IT TRUE
Hummm... I'm wondering why I'm still getting an
Error 1 'FileSystemWatcherTest.MainWindow.FileWatcherData.Path.get' must declare a body because it is not marked abstract, extern, or partial
error
yeeeah
@Nathvi Copy your exact code
It's throwing the error at line 39
16:14
who is selling caps ?
I need a new Cards hat... I think someone stole mine..
I think you lost it when you were drunk !
@Nathvi is 'private string path;' null
I think it's a compilation error.
But I can't see why.
hi
16:19
@AshleyMedway, mmm... when you just declare a string it should be right?
it should be null
try private string path = string.Empty;
just to rule it out
ok
nope, same error
just read more about your error above
try private string path {get;set;}
hey!
:D
0
Q: NHibernate CreateSQLQuery() with named parameters issue

furierWhy does not named or positional query parameters work with NHibernate in my case? Consider the following statements to be true: On Oracle database X and Y version 11.2.0.3.0 the role "MyRole" exists identified by "MyPassword" and is granted to the user I am connected as. Here is some ...

@furier Hi!
16:23
Have a look at my interesting question!
Hi @AshleyMedway
Too lazy to read/
2
We need a TLDR
:P
same error :v
@furier dont think i will be able to help much
well it was worth a try! :)
@Nathvi could you copy and paste the full error including an inner exceptions
16:24
it just seems so strange to me :S
Error 1 'FileSystemWatcherTest.MainWindow.FileWatcherData.Path.get' must declare a body because it is not marked abstract, extern, or partial
@furier What is the roleName that is being passed in?
@JLott So when you posting your Halloween triumph?
@JLott what do you mean? in my example i write "MyRole"
Does anybody here dev with ReSharper?
16:26
@Greg I keep forgetting to.
@furier Just seen that.
@Nathvi yes i do
can live without it
Is it worth it?
can't
yes
I see. What makes it so good?
@TravisJ @ton.yeung You guys see this, theregister.co.uk/2013/11/04/helium_drives_from_hgst
16:27
ill never program in visual studio without
Pretty neat.
well for starters its very smart, helps you alot and tries to learn you good code standards and conventions
"Analyze code quality" seems like enought of a feature to get resharper
also formidable refactoring tool
I should get it
16:29
for instance write a class
you want an interface
click ctrl+r+i
generated up
code cleanup is also nice
we use a license server at work
I'm downloading the trial to see if I like it
CodeRush for the win
one day it was out of licenses
i had to code without, I was seriously dying
it was like back to notepad
manually type everything
Nathvi take some time to get to know the possibilities with resharper
because if you dont use the features it has, it will not do you any good..
Question 41, C: Write a computer algorithm and print the average of the integers from 1 to 100
What o.o
16:34
Console.WriteLine("50.5")
i need the way tho lol
@furier Idk much about what you are doing but what about using parameterized queries??
I always have better luck doing that with SQL
Console.WriteLine("I R BORRD) _
@JonyKale Do you know how to average numbers?
Of course
16:35
Then what's the problem?
public double avg( int min, int max )
{
 //magic
}
s/\/\/magic/return (min + max) * 0.5;/
@JLott an here is I was thinking I did just that... ;)
Enumerable.Range(1,100).Sum() / 100.0
what is s/, or \/\/...
16:36
string sql = "SET ROLE :roleName IDENTIFIED BY :rolePassword;

    OracleCommand cmd = new OracleCommand(sql, conn);
    cmd.BindByName = true;

    cmd.Parameters.Add("roleName", roleName);
    cmd.Parameters.Add("rolePassword", rolePassword);
@furier ^
@drch Or use Average directly
orly
@Steve Use vim
Oh dummy me, (((1 + 100) * 100) / 2) / 100
thats it :3
@JLott that what im doing
16:37
It's find and replace
oh i have used vim, apparently not enough though
@kendallfrey did I do it right?
@JLott its jsut that im doing it through NHibernate
it outputs 50.5 like u said
ob-fu-sca-tion!
16:37
this might be a newb question, but what is refactoring ?
@JonyKale You have redundant *100/100
man i gotta sneak outta here early
and i was an hour late
well that's how the book teaches
@Nathvi rewriting your code
Also, it should wrongly output 50 if I understand it
16:38
Can anyone see what's wrong with this IL: pastebin.com/NRBJTeff?
tehy told me to use ((1 + value) * value) / 2
thats the formula
@furier, so the computer rewrites your code to make it faster basically?
for the sum
@Nathvi or parts of it, hopefully to improve it in some way
But you don't need it
16:38
@Nathvi dont need to be about speed, can be just readability
make it more clear what the code does
Ok, Thanks!
etc
np
but you got google aswell right?
for that kind of question i belive there are alot of answers @Nathvi
I get "Common Intermediat Language detected an invalid program"
yes, I was just checking what I had read on google here.
You're using a broken compiler
16:40
@KendallFrey I'm writing the compiler -.-
So ofcause it's broken
But I need to know what exactly is wrong
I'm guessing maybe you didn't pop something from the stack
I don't think so
I feel so bad for not being a 100% touch typist
16:43
@furier I really feel like this should not be a problem...
@JLott me2, thats why im so frustrated :S
Hmm, I found the problem-generating lines at least....
@furier I wonder if the problem could somehow be in your XML...
Is there a best practice for concurrent access to MSSQL?
Im using Fluent NHibernate so i dont have any xml
16:49
There isn't any XML in Fluent?
@JLott I think my configurations are just fine, iv been using it for 1,5 years now. And this is the first time i'v stumbled upon this problem
@JLott no its all expressed in code
posted on November 04, 2013 by Eric Lippert

Now that we have an integer library, let's see if we can do some 2300-year-old mathematics. The Euclidean Algorithm as you probably recall dates from at least 300 BC and determines the greatest common divisor (GCD) of two natural numbers. … Continue reading →

KENDALL. STAHP. NO ARRAYLIST.
mappings are also written in code
Too late
16:50
@furier I see I see
but my mappings have nothing to do with trying to set a role
Oh, I forgot the size of the Newarr -.-
untypedcollectionsgasm on the way
So I need to open database connections in a loop - each connection will be to the same database. And keep them all open at the same time =/ Is there a design pattern for that?
It's called the GTFO pattern
Maybe the IDGAF pattern works too.
16:55
That is what I thought at first too. But it saves me about 3 seconds of query time and so I am implementing it.
Although I didn't expect a response from you Kendall, you don't work with db management.
That is mostly true.
@KendallFrey Help me master !
I've been scarred by the databases we use in our legacy system.
:( I mean.. oh.. i have a problem.. who is going to help me..
@AndréSilva No one, if they don't know the problem.
16:56
^
Doctor, I have pain. Fix it.
<insert pain killer>. Fixed.
painkillerskill.org
Heh, small practice doctors are like drug store salesmen.
@TravisJ Thanks haha
Ok, let me explain it.
16:58
Lol, look: PainKillerSkill
I have two lists of the same type
Really? me too!
lol
.AddRange()
16:58
lol, not stopping you
I need to merge these two in one
.Concat
inb4
.Distinct()
But, there are matching NFs
16:59
You want to eliminate duplicates?
I need to sum every NCM
Inside each NF
Or add them like before?
lol who made the room description? hilarious.
17:00
Kendall
Well.. to think about it..
good stuff
Yeah pretty much that
I couldn't leave the Boo one...
But I need to join these two lists
17:00
@AndréSilva Just use Concat, and then the code from before
@Kendall - I agree that FIRE is scarier than BOO
I might get kicked from this room
But look at the code I have now and feel my pain
@AndréSilva why?
result.Insumo.AddRange((from insTotal in total.Insumo
                        join insBack in back.Insumo on insTotal.NF equals insBack.NF
                        select new Insumo()
                        {
                            Data = insTotal.Data,
                            Descricao = insTotal.Descricao,
                            Filial = insTotal.Filial,
                            NCM = insTotal.NCM,
                            NF = insTotal.NF,
                            Quantidade = insTotal.Quantidade - insBack.Quantidade,
(see full text)
@Steve As I said before, I'm hammering bananas with shoelaces
3
lolwut
17:02
Forget the minus
Forget the minus, I was testing
lol
Feel the idea
Make the bad code flow through your veins
There are few things that fill me with joy more than reading Portuguese. Like, everything.
Yeah it's hard to know why joining insBack on back.Insumo is bad
when I don't know what an Insumo is
It's an unborn Japanese wrestler
as opposed to an Outsumo
17:04
Haha
Which is already born
So this code is going to have to run against multiple cultures/languages.
I am so confused
Insumo is a consulting slang
Can we get back to the banana metaphor?
17:05
It means a raw material ( or intermediate material ) that is imported
What does that even mean?!
You won't understand until you try.
Pick up some bananas.
brb trying
i own bananas
@Steve Yeah, you own them good
await Steve.HammerBananas();
17:06
Christian Yellow
With or without the skin?
not sure if joke succeeded
okay, i have an update. you can't really hammer bananas with a shoelace, you can stab it, or whip it (i think i might have seen the whipping a banana thing in some bondage porn once)
You sure it was a banana?
i suppose it could have been a woman with an enlarged clitoris
17:10
I was using a metaphor :(
Could you guys leave the bananas alone ?
@Steve Damn, we think way too alike.
IS there is a way to check the changes I made to a file before checking it in? aka compare it to the one on repo
in TFS + VS2010
git ... oh. um...
Compare with Latest Version or something
(right click)
let me check
ya there seem to be an option for that
I need to spend more time checking before asking those stupid questions
gah my internet is so bad today, i can't even chat
17:14
^ lies
22 secs ago, by Kendall Frey
^ lies
13 secs ago, by André Silva
22 secs ago, by Kendall Frey
^ lies
It's probably not your internet, it's probably a firewall that looks for "clitoris" in packets.
@KendallFrey my experience from this morning tells me that it's indeed not the case
17:15
must go deeper
how many quotes before we reach 1 letter per line
@AmmarAhmed stahp nao
Hey, if my first collection is empty and I Concat the living shit out of the second, will it change the actual collection ?
Or do I have to pass the value to a third collection ?
@KendallFrey show must go on
It returns an IEnumerable
17:17
Build has been breaking for the last week and the intern who is here ~4 hours a day is the first one to notice! Woo! -_-
@ton.yeung Still pretty cool right?
test
failed
17:32
it did fail
i had to refresh like 20 times
These Ecommerce and online shopping sites are making hell lot of money and still in loss. lol
has anybody ever played Citadels 2?
lol, I found a way you can modify a collection while iterating over it without generating an error.
Just return after changing it.
Not sure what weedhead wrote this code.
Anyone have any idea what the hell is being asked here:
@Steve Nobody ever.
@VaughanHilts Needs more context, but even with the context, I'll probably be confused.
i hate this game, i paid for it, and its just dumb.... all it does is create villagers, constantly, i can't stop it
condoms
@KendallFrey Not much context to give, given a polynomial object, evaluate it at the given.... equation?
I can't work out what the variables are in relation to the the evaluation.
I got lost when it mentioned a stack
17:40
Ignore the stack and pretend you just got a polynomial object
I just can't work out how s f n relates to that mess
It means evaluate it for the n values between s and f
x^2 for 1, 2, 2 would be 1^2, 1.5^2, 2^2
Hm.
Why is your step one half?
Because it's divided into n (2) intervals
Because of the fencepost problem, it results in 3 evaluations
Isn't it supposed to be f evaluations, though?
No, n
s tart, f inish, n umber
17:52
Is there any difference between string str = "abc"; Console.WriteLine(str); and const string str = "{0}"; Console.WriteLine(string.Format(str, "abc")); ?
For one, const
For two, the second is slower
Seems like a giant waste to do the latter. :)
yes
Even the former
Console.WriteLine("abc")
Well, the former is okay if said string is reused.
It is an example ...
17:55
When you ask "Is there any difference" do you mean "Is there any difference in results"?
Because the code is a heck of a lot different.
private const string strConn = "Data Source=(local);Initial Catalog=dbDrawBack;Integrated Security=True"; //Outside scope
There are three different places where I conn = new SqlConnection(strConn);
Will I have any kind of gain if I just string instead of const string ?
No
If you do const, it will assign it compile time. If you don't, it does at runtime.
async repo ftw
What if there is a change in the string, will the pure string be faster to change compared to string format in a const ?
whaddya mean, faster to change?
17:59
Forget StringBuilder
Also, what does string.Format have to do with it?

« first day (1115 days earlier)      last day (4059 days later) »