« first day (2041 days earlier)      last day (2899 days later) » 

5:00 PM
well bye c ya tomorrow
 
@Jakotheshadows Because I only need their most current term data
 
!!afk
 
Refactor => Remove unused usings and organize
 
user47589
@Mr.Toxy Ask google.
 
or something like that
 
5:01 PM
@Jakotheshadows If they are registered for an old term like (1162) but also the current term (1164) then I only want the data for where they are part of the current (1164) term
 
user47589
I googled your exact question, the first result answers the question.
 
user47589
@Mr.Toxy I told you yesterday that if you asked questions in here without doing any research yourself that you would be kicked. Please don't make me stick with that.
 
Google I/O is outside this year... thats new
@Jakotheshadows I need unique rows per studentID. The only way to do that since students can have different data per term is to take the Max of their terms.
 
@Michael Jakotheshadows is afk.
 
Oh I see
@Amy i think im really close to this. do you kinda follow my question?
 
5:05 PM
@Michael without having the time to understand your problem, I'm going to venture out on a limb and suggest a CROSS APPLY with a sub-select that gets the top 1 of blahblahblah per student
 
@Amy ?????????????????
 
like if we look at my lil table:
StudentID    College    Term
111              A           1162
123              A           1162
123              B           1164
 
user47589
Not at all, @Michael. I was talking to Toxy
 
hm okay
 
user47589
We've asked him numerous times to google stuff before asking in here. He doesn't seem to want to respect that.
 
5:06 PM
I see
 
the only time you should be kicking people is extreme vulgarity and/or trolling
or, to screw with kendal, because he deserves it :p
 
@MikeAsdf I was trying to do that with this: gist.github.com/mikey32230/c4be6a521cccd1c59cb89c14350e9e1e
 
user47589
I disagree. If help vampires can't respect us enough to research things themselves, they don't need to be in here.
 
wow
okay
 
user47589
We've been very patient with him, but that patience has a limit. He hasn't been kicked yet for help vampirism, and I don't want to kick him.
 
user47589
5:09 PM
How many times should we ask him to google things before drawing a line?
 
user47589
Serious question.
 
dont ask, ignore
 
Have we tried responding with ignoring?
 
user47589
Yeah.
 
Yeah ignore
 
5:10 PM
is responding by ignoring still responding?
 
lol
 
ignoring by definition i think is not responding
 
I knew we kept Kendall around for a good reason. Asking the tough questions.
 
lmml
im inventing a new internet thing
 
Could something to that effect be added to the room rules? "Please google your question before asking, while we're happy to help some answers can be easily solved with google." Referring someone to rules helps to lessen behavior (although it probably wouldn't help with repeat offenders)
 
user47589
5:12 PM
Other help vampires don't come in here nearly as often. I agree we should just ignore those. But for someone who's in here every day, asking easily googleable questions, I believe we should apply a stricter standard.
 
user47589
It's disruptive.
 
user47589
Other help vampires are also far more amusing.
 
we really haven't discussed when we should use the kick functionality, so there are no guidelines
 
user47589
Yeah.
 
user47589
That's why I want to discuss this. I hope we can reach a consensus.
 
5:14 PM
having said that, i don't like helping help vampires
but, others might be able to use it as a learning tool
and i feel, what warrants a kick, should be used responsibly for serious offenses, and i'm just not sure if help vampires are serious offenses
 
you could play baseball
 
annoying as they are
 
3 strikes
 
Bmo
@Michael I really thought I had an answer for you but PARTITION BY and OVER aren't working the way I thought they did.
 
user47589
I think seriousness for help vampires varies based on how often they're vampiring.
 
Bmo
5:16 PM
I'm a bit sad right now.
 
@Bmo thanks. I did see those on google. I'm such a noob at SQL though they seemed intimidating. I did try them without much context and couldnt get what I wanted
 
user47589
Also, let's be fair, we're vulgar in here all the time. Reserving kicks for vulgarity that we ourselves use on a daily basis doesn't seem fair.
 
Yea fuck that shit
 
yeah, extreme vulgarity, we know what that line is, aggressive behavior towards other members with no desire to stop, racist things, homophobic things, etc
 
user47589
Yeah.
 
user47589
5:18 PM
I think we agree on that.
 
@Michael does your table have a primary key?
 
Bmo
SELECT StudentId, College, MAX(Term) over(partition by studentId) as maxTerm from mikeTable
 
@Jakotheshadows Yeah the StudentID
 
How is that a primary key if there are duplicates
 
hmmm
 
5:19 PM
just a small town girl
 
living in a hello world
 
user47589
I just want to reduce the amount of vampirism, is all.
 
lol
@Amy i can understand that desire
 
user47589
I don't actually have anything against Toxy. I just want him to learn how to fish himself.
 
@Bmo wait you think that works?
 
user47589
5:21 PM
But telling him to fish isn't working.
 
Bmo
It does not.
 
google could be giving some of us better search bubbles than others
 
oh i see
 
Bmo
But...I'm now trying to figure out why.
 
Google announced Google Home... Amazon Alexa Competitor
 
5:23 PM
I don't want computers to be controlled by my voice
 
i want hololens to be a bci
some day.... some day.....
 
user47589
bci?
 
fuck this voice control fad is going to take off like tablet UI shit isn't it
 
is BCI a contact lens?
 
brain computer interface
 
user47589
5:23 PM
ah
 
nodes on your head control computers
i did a paper on it in college, saw a bunch of videos of people controlling like remote control cars with just thought, it was pretty cool
 
user47589
 
google is going to be the borg queen
 
user47589
I'll stick with my brain slug, TYVM
 
@Jakotheshadows wow. I was looking i cant see a primary key.
Its not my table so Idk if it's a permissions thing
 
user47589
5:27 PM
IIRC if you can see the columns of a table, you can see the constraints.
 
@SteveG have you seen mindflex?
 
where is this table, on an MS SQL server?
 
Oracle
I barely know how to interact with it
 
user47589
same. Oracle is very different.
 
If there's something similar to "script as"->"create table" you could use that to get a full schema definition as an SQL statement
 
5:29 PM
Can I just take a moment to bitch about the fact that what I ordered and paid for was not in any way shape or form what I actually received for lunch?
 
@mikeTheLiar that happens like 99% of the time
100% of the time at any fast food restaurant
 
user47589
@mikeTheLiar you may take 2 moments.
 
user47589
Your first moment starts now.
 
I ordered a ribeye sandwich and fried potatoes and got a pea salad and half a fried chicken sandwich.
 
user47589
The first moment has now expired. Thank you for participating. Standby for your second moment to begin.
 
5:30 PM
But by the time I realized it was too late to do anything about it.
@Amy I'm done.
You can keep the change.
 
user47589
That concludes your second moment. Thank you for using C# Chat Bitching Services.
 
Ugh, I hate it when politics and coding standards meet to create HORRIBLE HORRIBLE BABIES
 
user47589
An unholy union, for sure.
 
politics meets anything
 
user47589
stick politics between two pieces of bread and press
 
user47589
5:45 PM
with heat, pressure and time, even politics can be a panini
 
nononono, i wouldn't put any panini with politics into my asshole, neva!
 
We need to found the Panini Political Party
 
@Sidney EU cookie directives anyone? ... wtf do politicians think they are doing giving technical advice!!!
 
Damn now I want a cookie
 
user47589
they probably think they're offering technical advice.
 
5:49 PM
irecall when that landed the company I was working for sent round an internal memo to the effect of "due ot the EU cookie directive, cookies are now banned from all our software, please update your projects to remove them"
 
We're going to have to shut down the internet
 
we all lol'ed and wrote back "all done" immediately
the CEO still none the wiser
 
So wait - did you not remove the cookies or did the software never use cookies in the first place?
 
we couldn't be bothered to do anything regardless
 
user47589
@mikeTheLiar i'll call Al Gore
 
5:51 PM
we felt that explaining to the CEO that session cookies on internal applications were useful would be too much work
so we didn't bother
 
Let's get a coupla nerds in here
 
So when You cant make use of group by or distinct for selecting unique records, how do you do it?
 
@mikeTheLiar not nerd, but does late 20's male with zero social skills and interested in video games count?
 
That sounds like a nerd to me.
 
that isnt nerd?
 
5:56 PM
@Michael can you elaborate?
Not on nerds, on unique records
 
no, i'm not nerd, so no
 
"All results flags should be intialized to false"

"But that completely fucks up all my logic, requires at least 5 double negatives in my code, and makes readability difficult"

"So change the testPasses variable to testFails and intitialize it to false, and work from there"

ಠ_ಠ
 
@Michael still same thing? what exactly are you trying to achieve, can you give some example?
 
@Sidney flip the table on that fucker
 
@tweray @mikeTheLiar  if I have this sort of table:

StudentID    College    Campus    Term
111              A          Red          1162
123              A          Blue         1162
123              B          Green       1164

I want unique rows based on studentID, and the Max of Term
fuck
 
5:58 PM
can you show what kind of result you are expecting?
 
@tweray
    Result:
    StudentID     College     Campus     Max(Term)
    111             A         Red     1162
    123             B         Green   1164
 
So you're saying I should put on a panda costume and destroy my entire office?
The idea has merit.
 
user47589
I like this idea.
 
6:01 PM
@Michael what's the criteria make you choose to show line 3 over line 2?
 
user47589
What can I do to make the panda-godzilla happen?
 
@tweray It has a higher term
 
WITH ranked as (
   select *, ROW_NUMBER() over (partition by StudentID order by Term DESC) as r
   from your table
)
select *
from ranked
where r =1
 
Bmo
FRICK
 
@Bmo lulz
lets see if this works
 
6:04 PM
isn't partition a t-sql thing?
or is that ansi
 
tsql
 
Oh fuck?
 
didn't he say he's on oracle?
 
really?
 
didn't see
 
6:04 PM
yeah :/
 
There's definitely some TSQL/Oracle breakdowns happening in this process
 
Bmo
Oh what.
Boo oracle.
 
But I thought i saw some partitioning examples in oracle
 
Bmo
But that worked over here on my example anyway.
 
PSA: If you come into C# chat asking about sql, we're allowed to assume t-sql unless you say otherwise. The more you know.
 
6:05 PM
Hi peeps
 
Oh I know it.
 
Log.AssertFalse(testFails, "Verified Foo behavior is correct");
 
That's it, I'm making a SQL Fiddle account so we can actually see this stuff in action
 
#rage
 
i think it's also supported by oracle
not 100% sure though
 
6:06 PM
Actually, I have a question about SQLite
 
user47589
@Jakotheshadows I believe somewhere up above he said this was Oracle.
 
didn't work with oracle for a long time (thank all goodness)
 
@Michael hold please, I'm going to try to get a working demo going
 
yeah I know, but it was well after he initially asked for help on this lol
 
user47589
ah okay
 
6:07 PM
My program accesses my database fine until I make the database file read-only (or put it on a CD, which makes it read-only automatically), which takes at least 30 seconds to boot up, and about 5-10 seconds longer to make any query
 
user47589
its probably trying to acquire a lock
 
I've added ;Read Only = True into the connection string as people suggest but it doesn't do anything
 
user47589
and because its readonly, its failing
 
what lock?
 
@mmf1102 define "boot up"
time to open a connection?
 
user47589
6:08 PM
a table or row level concurrency lock. i dont know how sqlite does locking
 
@Michael do you happen to have a table creation script?
 
@MikeAsdf I meant the program starting up. It opens a connection to the database, and then it selects * from the database
 
solution: don't make your database file read-only
 
user47589
Set the connection string to readonly, but dont make the file itself readonly
 
@mikeTheLiar no
 
6:09 PM
Damnation
 
@tweray I'd love to but I'm putting it on a DVD, and I have no choice in the matter
 
the code In the gist is really all I have
 
we implemented a wrapper layer on top of our SQLite access, and used SemaphoreSlim to make sure only one thread can write or read at once.
 
if you want to ensure read-only manner, do it in db security level
 
Even reading in multi threads causes grief with how the volatile low-level shit is handled in the library
 
6:11 PM
@mmf1102 sorry to tell you, but you'd better find a different db engine then
 
@MikeAsdf if you only want 1 thread, why would you use a semaphore? (not criticizing, genuinely curious and somewhat ignorant about C# synchronization)
 
(I think we tried the SQLite option to force singlethreadedness but it either wasn't fully working or was poor performing)
 
user47589
@mmf1102 you might find it helpful to enable debug logging in sqlite. it might illuminate the issue. See sqlite.org/c3ref/c_config_getmalloc.html, search for "CONFIG_LOG"
 
@Jakotheshadows SemaphoreSlim has WaitAsync.
 
> No SQLite database (regardless of whether or not it is WAL mode) is readable if it is located on read-only media and it requires recovery
 
6:12 PM
alright thanks
 
typical locks and ReaderWriterLockSlim don't have async-ified waits last I checked
 
user47589
More information never hurts.
 
@MikeAsdf ok I see, I guess .NET doesn't have a "mutex" so everything is just a semaphore
 
user47589
.Net does have a mutex
 
user47589
System.Threading.Mutex
 
6:14 PM
Why is this not working for Oracle?
create table Students
(
  StudentID int not null
  ,College varchar(1) not null
  ,Campus varchar(10) not null
  ,Term int not null
 )
 
@Amy but it can't be used in an async method
 
If I have a managed .net dll, I can't step into it unless I have the pdb, right?
 
user47589
@Jakotheshadows right.
 
user47589
it doesn't directly support async.
 
user47589
You can use it inside an async method, though.
 
6:15 PM
@mikeTheLiar uhh looks right
 
@Jakotheshadows It can be used - it just doens't have async support built in
 
Bmo
Because Oracle.
 
but it works fine inside of async methods
 
Maybe SQL fiddle is just broken
 
in general, blocking synchronization primitives and async don't play too nicely together, though
 
user47589
6:15 PM
I don't have an oracle database to test on.
 
so I recommend avoiding it
 
Bmo
What was it's outer join syntax a (+) or something? F that s.
its*
 
I still don't understand the whole async await pattern's usefulness very well in C#
 
many lock mechanisms are based on "owning threads", which goes out the window when dealing with async code since any old thread might take over where another thread began an await.
 
@Amy I'm just using sqlfiddle.com/#!4
 
6:17 PM
@mikeTheLiar semi-colon at the end
 
user47589
@mikeTheLiar yeah
 
Still busted
Works for the SQL Server option
lol idk
 
like I've pretty much never written an async method for production in 3 years, and I don't really understand why I might want to
 
user47589
I tend not to use it much.
 
@Jakotheshadows I've been using it for 3 years and I question the usefulness, too; given how much it mangles stack traces and diagnostics, and how it needs workarounds to accommodate HTTP handler threads and UI threads without "whoops infinitely locked because you mixed async and non-async"
 
user47589
6:18 PM
yeah, exactly
 
Okay this definitely seems to be an issue in SQL Fiddle
 
if I want multithreading I'm just gonna do it the way I learned in school, make / join threads, and synchronize where necessary
 
user47589
@Jakotheshadows its important to draw a distinction between async and multithreading. They aren't synonymous.
 
@tweray I'm trying the partition by clause in oracle, I think its valid in oracle
but I keep getting a fucking stupid "FROM keyword not found where expected" error
 
user47589
async uses continuations to temporarily store the async method's context, so it can return to it later when its done.
 
6:20 PM
and when it has nothing better to do, THEN it blocks waiting for it to finish
ok I see
 
user47589
its almost like promises in how you can chain things together.
 
user47589
almost.
 
well like, I roughly understand how AJAX works, for example
except that has to do with requests to another machine
 
user47589
its pretty counter-intuitive. diagrams of how async code flows are extremely helpful
 
sup kids
 
user47589
6:21 PM
its a misconception that the await keyword blocks the thread.
 
@Michael does this look right? sqlfiddle.com/#!3/412da/1/0
For that matter, can you actually see it?
 
@mikeTheLiar i cant see it
jk
yes i can
 
Cool. Not sure if that was going to work or not
 
@mikeTheLiar and yes that looks right
 
Unfortunately something seems to be wrong with their Oracle implementation.
 
6:23 PM
thats fine.
@tweray Yeah I mean the Partition By is right here on Oracle
but It doesnt work in my query
 
ok cool so that is a thing in oracle too
good to know
 
apparently.. but it isnt working for me
oh wait... is SELECT *, ROW_NUMBER() not valid?
like you cant select * and an expression?
 
user47589
that'll work in sql server
 
try a query without it
 
user47589
dunno about oracle
 
6:30 PM
yup
thats it
@tweray holy shit and actually that works perfectly
@mikeTheLiar are you putting together a query example with the SQL fiddle?
 
@Michael I'm trying to
 
what is the query that worked for you @Michael?
 
@mikeTheLiar okay thank you. I'd love to see something that I can actually understand
 
What did tweray do that worked perfectly?
You should be able to make changes to the fiddle
 
This is what @tweray suggested
WITH ranked as (
select *, ROW_NUMBER() over (partition by StudentID order by Term DESC) as r
from your table
)
select *
from ranked
where r =1
 
6:33 PM
cool
 
I dont understand the OVER PARTITION BY stuff though. Idk if there is a more standard way to go about it
 
There is a really good guide for it out there
but the one I know is for t-sql
 
@Jakotheshadows do you have a linky?
 
Not a link, but if you google it you might be able to find a less-than-legit copy
 
will do
 
6:35 PM
Look up the Microsoft Exam 70-461 Training Kit
you want Chapter 5: Grouping and Windowing I believe
 
someone know what I'm doing wrong? I'm try to init a Drag&Drop with a gridDataView.. (gist.github.com/anonymous/d921a5190c9434b84b86d77dd16f883b) and When I try to drop a file.. nothing append. :-/
 
@Jakotheshadows thanks found it
 
@Michael NP
thats a good book in general if you're trying to learn sql
at least, it is for t-sql
 
@Jean-philippeEmond what happens? set a break point and step through. where does something go wrong?
 
I can't say how much of it applies to Oracle or not
 
6:39 PM
@Michael, ok wait a sec.
@Michael, the function are never trigged
grid_liste_piecejointe is the name of my gridview
 
user47589
one of my favorite things about sql server is Common Table Expressions (CTEs)
 
@Jean-philippeEmond is the AllowDrop Property on the DGV set to true?
 
@Michael, yes. but should I AllowDrop on parent too? like.. panel, form1 .. etc
 
@Jean-philippeEmond give it a try... at this point if the dragEnter and dragDrop events arn't firing at all.
Either your events are not properly hooked up or something is blocking the event
 
That feel when I get an email from the office D&D league for an office in another city.
 
6:47 PM
hum. ok :-/
 
I wish my office had a D&D league
 
Inorite?
 
Who wants to start a C# chat D&D league?
 
That would be cool
 
It would be cool
 
user47589
6:54 PM
I'll play.
 
Is there a fundamental reason why you have to select the columns you are grouping by in SQL aside from aggregates?
 
:D
 
user47589
It would have to be skype or similar. I've done chat-only D&D, and its slow as shit.
 
@KendallFrey me too... puts on his robe and wizard hat
 
I've got the Pathfinder Humble Bundle
 
user47589
6:55 PM
a humble bundle for pathfinder?
 
There was a site for online RPGs
 
I got that too
 
not sure what it was called
signed up, never played
 
@Michael yes, the reason is that the un-grouped columns may have multiple values, so it is undefined to select outside the group other than an aggregate
 
I got the dice though
 
6:55 PM
Is it advisable to use a decompiler to step into dlls that you own? For example I make dll X in solution A. I add X as a references in solution B, and then use .Net Reflector to step into dll X if I need to.
 
there are dozens of them, some good some bad
 
@Nathvi no, use the original source code
 
@Jakotheshadows I see
 
user47589
occasionally its useful to see decompiled IL, to see what your code becomes. but not often.
 
user47589
very infrequently
 
6:57 PM
even without playing over a campaign system online there are some good tracking tools like this: obsidianportal.com
 
How do I step into dll X? I'm not really sure.
 
Hey if anyone wants to GM a Pathfinder game that would be awesome
 
user47589
if you guys are serious about putting together a game, count me in. going afk for a while
 
I can't GM because i've never played
 
user47589
i have GM experience, but prefer playing.
 
6:58 PM
Do I have to add the original project?
 
@KendallFrey I got a lvl 5 halfing rogue for 3.5 blackmoor
im down
 
I've never played, but I'm interested
 
user47589
anyway, back later. keep me updated pls
 
Pathfinder is almost identical to 3.5e
38
Q: Can you play pen & paper roleplaying games over the Internet?

Shermont KoenigI'm sad to say that I have absolutely no friends who would like to play D&D with me however I would love to play. I know about Neverwinter Nights and I've played quite a bit of it, but I'm looking for more of the pen & paper experience. Is this even possible?

there is a summary of tools there
I wonder if any of them have systems to handle absentees easily
 

« first day (2041 days earlier)      last day (2899 days later) »