« first day (2700 days earlier)      last day (2235 days later) » 
05:00 - 15:0015:00 - 00:00

mr5
5:58 AM
o/
According to https://msdn.microsoft.com/en-us/library/dd287208(v=vs.110).aspx
ConcurrentQueue.TryDequeue(out T)
> When this method returns, if the operation was successful, result contains the object removed. If no object was available to be removed, the value is unspecified.
does "the value is unspecified" means it is null?
A simple check says it is but I may not be aware that there might be "undefined" value
 
6:55 AM
Goood morning sharperinos!
@mr5 source says in case of empty queue and false return value the result is default(T)
 
7:21 AM
Why this return null
var method = typeof(IQueryable).GetMethod("Contains", new Type[] { typeof(TSource) });
 
Maybe because it's an extension method?
 
how to copy one datatable to another with filter ?
 
I seem to have both community and profession edition installed
how do I remove the community edition
 
@Squirrelkiller Ohh, snap.
\o
 
7:31 AM
god mythical morning
 
@HéctorÁlvarez Did something happen to you last night?
 
@Squirrelkiller several things, you'll have to be more explicit
 
7:55 AM
Good morning.
I was tempted to use dynamic there for a second. I don't know what's happening to me.
 
The evil is settling within.
 
@Hector can I have a summary?
 
I'm writing a front-end for our OData service. It will be used by a generic binding service which will construct the odata queries from a DSL and return... objects, which will then be parsed by the binding service again.
 
@Avner for educational purposes, right? RIght?!
 
@Squirrelkiller it was killer.
 
7:58 AM
So as far as the actual OData query service is concerned, I just construct a query and get an object or list of objects back.
I can return a JObject or JArray, but that's pretty much the same.
 
Mama, just killed a man
Put a gun against his head
Pulled my trigger, now he's dead
 
@RoelvanUden not so killer.
Although I miss airsoft a bit, I stopped playing when my AEG rifle broke
 
Well, what is it?!
 
shooting someone at point blank with a gas blowback pistol was the closest I've felt to living in Matrix
save the wallrunning and broken physics
 
Hi guys I really need some general advice on mysql and visual studio connection
 
8:05 AM
Download MySQL Connector for your version of mySQL. Unless you use MariaDB you should get 3.5.1, and pray every time you run an app
 
Unfortunately, I don't have any general advice right now, as I don't use mysql and don't have any more context.
 
I have set it up correctly however, I have absolutely no idea where to find references to learn about how to code it
 
"Lady María I hereby bid you guide me through this Freeware path... fear the blood of old"
@MarcSantos Welcome to the club
 
All references online just state how to connect Mysql to visual studio but nothing about the specifics on transferring information between them
Thank you. I didn't want to spam the forums and get thumbs downs so I went here :P
 
there's a MySqlConnector class that works pretty close to what SqlConnector does.
 
8:08 AM
how to I remove community?
any idea
 
You use a torch and burn it to the ground.
Beware though: Murder is illegal. Wiping out communities even more so.
 
Thanks what is the best online reference to study though?
Don't know where to start lol
 
Read up on SqlDataReader. There are plenty of tutorials out there. MySQL should be similar.
If you want a ODM, go grab one.
 
Ohh alright thanks for the advice
 
@Breathing Apps&Features -> remove?
 
oh by the way I'm still unable to use ILSpy
I followed the docs but the ILSpy option doesn't pop on the menu :|
I did manage to use LinqPad to see immediate IL conversion though
 
ILSpy is a separate executable so.. yeah.
You can just download and run it.
 
wait a minute, so the ILSpy extension needs ILSpy installed separately?
nah, I also have the release version and it's separate
I mean the VS extension should integrate with the contextual menus
 
good morning
 
8:20 AM
I have an option in the Tools menu, but there's no option to right-click a referenced assembly and open it with ILSpy
 
@Squirrelkiller I don't see community edition there
 
@HéctorÁlvarez I never integrated ILSpy with VS.
So, I don't know.
For decompiling in VS I just use ReSharper
 
I want to create a WPF form where I can enter Hello and it'll be saved into the MySQL database.
Where should I go to learn dat stuff
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos squirrelerinos pleberinos!
 
Morning bro
 
8:35 AM
How's work m8
 
stressful morning
cant run my applicaiton, dunno why
IISExpress pretends to work, but I still get a 404
 
Nice
And I keep getting mails from someone in our brasillian branch, and i have no fkn clue why (they are in portugeses)
 
Hot brasilian single in your area company?
!!brb rebooting because fuck this fuck
 
8:42 AM
loyal SO users don't vote for this answer :(
https://stackoverflow.com/questions/49168563/how-to-get-methodinfo-of-contains-method-of-iqueryablet-by-reflection/49168605#49168605
 
@MarcSantos These are two completely unrelated activities. First, go and learn how to interact with a MySQL database in C#. Then, learn to insert something into a table from C#. Then, learn how to build a GUI in WPF. Then, learn how to use a WPF event to trigger some code inserting your data.
 
@MohamedElshawaf i Want to flag cuz google link shortner link
 
Small steps, don't try everything at once. You'll just fail and be discouraged.
 
@MohamedElshawaf Why do you need the methodinfo anway?
 
@RoelvanUden That's not free as far as I know, and my company isn't very keen on buying stuff
 
8:51 AM
@HéctorÁlvarez Resharper's decompiler is called dotPeek, and it's available for free, but possibly required R# itself for the VS integration.
 
Well, if you even save one hour of productivity the costs for a year license have been saved..
 
@HéctorÁlvarez But your company is stupid. What Resharper costs will be made back within days in terms of developer productivity.
 
I never understand employers that are reluctant to buy productivity tools
 
Yeah, what ^^ he said.
 
I once had a webstorm license, oh the good days
when there was actual help for JS
look at me now, VS says get => _property is wrong because not all paths return a value.
 
8:53 AM
VSCode is free and makes your JS/TS activities insanely productive.
 
I have VSCode actually
 
Well, it's free. I wouldn't expect you not to have it.
 
!!giphy it's free
 
/facepalm
 
8:57 AM
Ironic.
 
@RoelvanUden Thanks isn't inserting something into the table from C# the same as learning how to interact with a MySQL database in C#? Or is this different as well?
Also where do I find a good reference to inserting values into a table from C#? can't find this stuff anywhere
 
Similar, sure, but doing a read is still different than an insert.
 
@Squirrelkiller to use it in the Expression.Call
 
@Mohamed are you sure you need reflection? Usually, the less reflectino the better
Also, have you tried casting to dynamic? :D
dynamic d = (dynamic)yourIQueriableObject;
if(d.Contains(stuffs))
  doStuffWith(stuffs);
 
user7538827
9:01 AM
Hello
 
user7538827
With visual studio it is possible to create the diagram of the classes of a single namespace?
 
... Hello.
 
@RoelvanUden Thanks I guess I have to do lots of research to really get something done lol
 
@riki much easier to do it per-project, but ideally a project should match discrete namespace(s)
 
9:04 AM
@Squirrelkiller i'm not sure
 
@Squirrelkiller @MohamedElshawaf NO DYNAMIC.
 
Can any kind soul write a MEGA Simple WPF application that inserts data using C# into a Mysql database
 
@Squirrelkiller @MohamedElshawaf MOA DYNMAIC.
 
It can be 1 textbox LOL
Save me pls
 
No1 here will do your homework Marci boi :)
 
9:08 AM
This is for our company
Lel HW is old school
 
Then research it properly, you get paid for that :)
 
@Squirrelintraining :'D
 
Thing is i'm just helping my day
dad*
 
Then research it for you dad :)
 
I'm not a programmer :(
 
9:10 AM
Why not?
Programming is fun and easy!
 
Well I have a long list to do
Managing a business
 
@Squirrelintraining blasphemy
programming is black magic!
 
thats..
!!bm
 
I love programming just takes too much time
 
Jan 30 at 7:32, by Metallkiller
It's black magic
@Squirrelintraining That didn't make much sense. Maybe you meant: am, bs
 
9:10 AM
DAMNIT
ow this is cool
 
I guess I have to go to fiverr
and pay someone to do it lol
 
transcript doesnt update the names
but it looks like it does update the avatars
 
@MarcSantos Assuming this isn't a learning/hobby project, and your time is valuable, then yes, paying someone to write a simple data entry app will probably be more cost-effective.
 
@MarcSantos if managing a business. Hire programmer/s
 
@AvnerShahar-Kashtan yeah I guess so. We're not so big and we're not a corporation people just charge so much lol
 
9:14 AM
You can't have both "Why is this so hard?" and "Why do people charge so much?". They charge so much because it's hard to do it right.
 
@AvnerShahar-Kashtan and they ussually dont do it right anyway
 
Yeah of course lol and the benefits
are not so big sometimes
 
Is SQL Injection possible thorugh WPF?
 
Yeah the last programmer we had
Had so much bugs
I did a better one using excel VBA
 
9:15 AM
@Squirrelintraining is that a rhetoric question?
 
@Wietlol Not really because i think it's hard to fuck up that hard that SQL injection is possible in WPF
 
sql injection is possible everywhere
it just depends on how much of an idiot the programmer is
 
@Squirrelintraining Of course it's possible. Anywhere where you have user input, you have a potential for injection.
 
Kek
Aswell i see my mistake
 
Which was? That you assumed SQL injection is done via URL hacking?
 
9:19 AM
Fiverr is my new friend
Thanks for the advice
 
nah
I wrote a programm once wih loads data form the databse and then user can filter it. The filtering is where userinput matters and is not done in SQL but Linq.
e.g. products.Where(p => p.Name.Contains(userInput));
 
oh so you mean your app is so inefficient that sql injection is no longer a pressing matter
 
+1
Wait, why inefficient?
 
jk, although querying through Linq is slow
 
@AvnerShahar-Kashtan I would think "working in RAM + Linq > SQL Quereys" in speed
 
9:23 AM
@HéctorÁlvarez Compared to what?
 
I've read somewhere that ORMs or Connector query execution are much faster than linq
I'll try to find the article
 
That's a meaningless statement.
 
came across it while researching NHibernate
 
LINQ can be any number of things.
 
@MarcSantos Indeed, if you have no intention of learning how to develop on a high level and just need a 'simple' app that does a thing, paying someone to build it for you is the approach that makes the most sense. Assuming you have better things to do.
 
9:24 AM
@Squirrelintraining Impossible to say. Too many factors. I've seen LINQ queries to a SQL DB that were hideously slow until we notied that we were accidentally pulling >100k records to RAM and filtering them there, rather than passing the query to SQL to return the 10-15 records we needed. That was slow.
 
@AvnerShahar-Kashtan can it be unicorns?
 
@AvnerShahar-Kashtan aye, but i already have all the records loaded.
 
@Squirrelintraining Î hope you're talking about 1k records tops
 
@Squirrelintraining If you do, then it's faster. If you don't, it won't be. This is why it's a meaningless statement.
 
@HéctorÁlvarez yaya not many
 
9:32 AM
I always assume the load of the application is high enough to take frameworks and tools into consideration
 
@AvnerShahar-Kashtan "working in RAM + Linq > SQL Quereys to database" better liek that?^^
 
I think the answer would be "depends on your RAM"
 
No, it depends on your adapter and dataset
 
@Squirrelintraining Yeah, but that's like saying "It's faster to get a beer from my fridge than it is to go get it from the store". Sure it's faster, but you need to have a beer in your fridge for that.
 
@AvnerShahar-Kashtan and you need to have beer in the store for that ^^
 
9:37 AM
@Squirrelintraining Most beer is in stores.
But this is what I'm saying - the task "get a beer from the fridge" is simply a different task than "go buy a beer". Comparing their performance is meaningless.
 
@AvnerShahar-Kashtan Ah, but if they are sold out cuz it's Friday, what then eh'^^
Ah now i get it
thanks for writing it out for squirrels :)
 
So yes, iterating over RAM with Linq-to-objects is fast. But if you need to fetch 10k records and then iterating over them in memory (fast!), it will probably be slower than fetching only the records you need from the DB.
In most cases, a huge part of the time spent performing SQL queries is spent doing I/O. Disk reads and network transfers. If you can reduce those (by retrieving only what you need (that includes column, not only rows) and utilizing the DB's highly optimized indexing) you'll be as efficient as possible.
I've seen 50 second queries reduced to 0.5 seconds by simply noticing there was a ToList() call, early in the query.
 
@AvnerShahar-Kashtan Now that's the word of the day!
Do you by any chance have extensive knowledge of SSRS avni?
 
9:44 AM
I've seen a complex (but speedy) query reduced to utter slowness and took a while to udnerstand why - one of the (dynamically applied) filters was by entity age - the user picked a choice (< 1 day old, 1-3 days, 3-7 days, etc) and the code filtered by that. But because this didn't map directly to SQL/LINQ calls, the developer (which might have been me) absent-mindedly simply materialized the query at that point to apply a C# function to filter.
It worked fine in dev, and even in test.
But when we stress-tested with >100k records, it became abysmally slow.
 
atleast you've tested it
 
Hmm. Can I pass multiple IDs to an OData query? server/odata/Entities(1,2,3) doesn't work. Is there another syntax?
So, no in/contains operator in OData, huh? Bah.
 
10:08 AM
only using filter and matching on Id with an OR condition
but I know with MS Graph API they limit the number of OR conditions to, like, 5
 
@CaptainSquirrel you'd be proud of me
Instead of "RowNumber" I wrote "RumNumber"
 
Hmpff. Ok. I'm just creating the basic service interface, so I might not even need it.
 
!!CaptainSquirrel2
 
@AvnerShahar-Kashtan or in OData v4 there's support for any, so you could do it that way
I think some implementations might accept an array parameter there
 
10:13 AM
What does the T_SQL 'PLAN' keyword do?
 
@Squirrelkiller It comes together.
 
@AvnerShahar-Kashtan Hah!
 
10:48 AM
I love it when a plan comes together
 
11:07 AM
I'm starting to frown upon this web design
they want me to dynamically load controls, but it's not a SPA itself
 
Sounds like 2008 all over again.
 
exactly
 
Who is "they"?
Because "dynamically load controls" doesn't sound like a business requirement. It sounds like high-level design.
 
the project manager
the best part comes when I'm done with a task, and the PM hits me up on Skyp "Hey, nice job, but we might be better doing this differently
like WTF man, suddenly you are the client too? You don't know how your design should be?
 
Remind me again why you're still working there?
 
11:13 AM
It's a peaceful workplace
 
Depending on your org chart, the PM might also serve as client rep in the project, which is fine.
But in that case, he shouldn't also be deciding on technical architecture.
Too many hats.
 
it's just lack of descriptional data
the design specifies "A login module that fits the use cases 010, 020 and 030", I study the current design, adapt it, and suddenly they don't like it
how am I supposed to know the requirements when there are none written?
 
I think we have a different definition of what "peaceful workplace" means.
 
Morning. Got a peculiar problem - an MVC view that sometimes has to render with full URLs for resources (images, CSS etc) and sometimes not. I don't really want to have to make a whole other Layout just to handle this page ... but I can't think of another way round it?
 
This is a terrible workplace. It's not an unusual one, unfortunately, but terrible. People refuse to commit to anything in writing so they can cover their asses later. This is terrible because when there are no clearly defined goals, there can never be success, only avoiding failure.
It's terrible for morale, terrible for career development, terrible for learning.
@MattThrower I don't really know MVC, but how does this make sense? If the resources are placed relative to the page, use a relative path. If they aren't use an aboluste path.
 
11:19 AM
Hello guys
o/
 
@AvnerShahar-Kashtan here we just get drip-fed features, without any sort of larger picture. A team full of very skilled software engineers, but not really doing much in the way of engineering. Just coding.
 
@AvnerShahar-Kashtan Makes sense, but I've not explained the issue very well. Let's put it another way - my site uses a layout that's reused across all the pages. But one page has to have fixed paths to resources, none of the others do. I could use fixed paths everywhere but that seems massive overkill and will cause testing issues
 
By fixed paths you mean paths starting from ~, right? Not absolute URLs?
 
@AvnerShahar-Kashtan No, I mean absolute URLs. The issue is that one page is needs to be displayed in a subframe from another site - that means it needs a fixed path back to our host to get its images, css etc for proper display
 
a subframe...? an iframe?
or are you literally serving the same site on a different domain for this one case?
 
11:24 AM
@Squiggle I don't actually know exactly what they're doing - it's a worldpay response. All I know is that the response displays our HTML but under their domain
 
user7538827
Hey I wanted to know your option on one thing, I'm developing a c # Application that communicates with a sql server database, the fact is that I should also develop an app for ios that does the same things of the desktop application on the database, according to you it is better to manage all the calls to the database with a node.js server and then use the HttpWebRequest with jSON in c #?
 
@MattThrower probably best to serve up a hugely simplified static HTML page in that instance then, surely?
 
tumbleweed ... it's an absolute pig of a situation. I could just write this one page with absolute paths, but then that'd have to be changed every time the layout change
@Squiggle Yes. But that's not the requirement, of course. They want it on-brand :)
 
@riki If you have two client apps that need the same logic, put the logic on the server-side, yes. That's always a better option for accessing server-side resources like DBs. You don't want a mobile app accessing the DB directly (through the internet?)
 
reimplement the page as static content either way. It's good practice to serve uncomplicated static content when doing these sorts of payment workflows. IME.
 
11:29 AM
@AvnerShahar-Kashtan peaceful as in "I'm not doing this in time... oh well, next month maybe", so as long as development is delayed by foreign factors, there's no pressure on me.
 
@MattThrower but then again I'm not your boss ;)
 
@Squiggle Yeah, I might have to go back to them and explain the trade offs. I just didn't know if there was some clever trick I could employ to get round the issue. I mean I've got the base URL as an appSetting, and it's different for the dev, test and live installations, obviously, so I could pull that into the layout and use it. But it seems ... clumsy, at best.
 
@MattThrower A lot of work has been done, over the last few years, to prevent exactly this sort of thing happening. :)
 
@AvnerShahar-Kashtan Quite :(
 
@AvnerShahar-Kashtan I have both community and professional VS installed
how to remove the community one?
I see normal projects are opening in community edition
 
11:42 AM
Please don't @mention me for general questions. Ask the room. I'm not an answer-on-demand service.
 
@AvnerShahar-Kashtan exec "AnserOnDemand_Service.exe"
Aswell I've just realised sth:
Microsoft about the SSRS Expression Language: "[...]Expressions begin with an equal sign (=) and are written in Microsoft Visual Basic. Expressions can include [...]"
Seems like i am a VB Progammer now
 
You look like one
 
sick burn dude
 
Should i shoot miself now or laters?
 
I don't think they let you handle firearms if you use VB.
 
11:48 AM
:(
 
@Breathing you asked like 5 times now. I suggest trying several similar but different google queries to try and find someone who had exactly that problem and got it solved.
 
!!brb reboot mi life
 
🌈
 
11:54 AM
@Squirrelintraining That didn't make much sense. Use the !!/help command to learn more.
 
darn
I like how the expression builder displays error
(It's the blank box at the bottom right without any text)
 
@Squirrelintraining [1]
not (1)
 
I know
I tried it with [1] and it throws error later
 
because the count is 1 after splitting?
 
i am assuming because of maybe some done have the index1 but i liked the errorbox
 
12:00 PM
so only [0] exists?
 
+1
What's therror now @HéctorÁlvarez?
=IIF(Fields!FullName.Value.ToString().Split(" ").Length = 2, Fields!FullName.Value.ToString().Split(" ")[1], "Unknown")
 
.Length >= 2
 
Tipp, it's Fields!FullName.Value.ToString().Split(" ")[1]
 
or is there an actual error
 
He doesn't like the [1]
Yeah actual error
 
12:03 PM
mmmh
maybe it's with parenthesis
 
Who knows :shrug:
 
it's VB after all
 
VB, not VBA though
 
the only VBA I know is a GBA emulator with snapshot, turbo and online multiplayer support
 
can someone halp me with a code parser?
 
12:12 PM
!!Wietlol
 
Oct 6 '17 at 14:56, by Wietlol
i have no idea where to put it
 
0.o?
 
I cracked
 
you sure are on some serious crack
 
OH if you read above you'll notice why the dementia
 
12:14 PM
Kek
!!info wietlol
 
@Squirrelintraining Command wietlol, created by Metallkiller on Fri, 06 Oct 2017 15:21:49 GMT
 
OIC @Squirrelkiller was the bad one
 
12:32 PM
does anyone know how to use break points better?
 
push button harder
 
don't put 200 breakpoints in a 200-line class
boom, profit
 
12:49 PM
Not that much profit in the breakpoint business.
It used to be more profitable, but then the supply started to dwindle. The breakpoint mines started to close one after the other. These days it's either mass-produced breakpoints from China, or organic artisanal locally-sourced breakpoints. Hard for a decent, hardworking breakpoint factory to get by in this economy.
 
Did someone else read that in a soft, low-tone voice, like that of the National Geographic's dude?
 
Don't listen to him, Wietlol, it was clearly @Metallkiller
 
1:06 PM
@AvnerShahar-Kashtan as a fan of artisan breakpoints, I'm OK with this shift in the economy.
 
@Squiggle You're the face of IDE gentrification.
 
hey, there is no shame in using the VS Code Nightlies.
 
Just got an exception with the message "Invalid Pointer". This is new.
 
I've setup firefox with mutliple Profiles for diffrent programming/work scenarios.
I have on Profile for BI and SSRS related stuff
I frequently watch SSRS Tutorials there
And this is what youtube reccomends:
 
1:20 PM
 
 
1 hour later…
2:31 PM
!!tumbleweed
 
Ich war in der Schule und habe nichts gelernt!
 
@Squirrelintraining I think that is not so rare occasion
 
@Squirrelintraining Dumkopf.
 
2:39 PM
double m in german mein meister
 
I don't speak the Germs
 
You speak switscherdeutsch that coutns
 
¿Por qué estáis hablando en Alemán?
 
ello
stop
 
HAMMERTIME!
 
2:42 PM
STAHP
 
HAMMAHTIME!
 
LEAVE BRITNEY HÉCTOR ALLONE!
 
STAHP
 
HAMMAHTIME!
 
GUYS, STAHP
 
2:45 PM
HAMMAHTIME!
 
HALT
 
HAMMERZEIT!
 
wtf
seriously?
PARAD
wait no spanish cue?
 
ÁLLJ
 
2:50 PM
HORA DEL MARTILLO!
sound like bullshit
 
no hungarian neither
 
As my understanding, if I add reference to my core project nuget.org/packages/Microsoft.NETCore.Portable.Compatibility project will not work under linux boxes?
 
That seems to be the gist of it.
 
somebody force pushed master and removed some commits
remote last commit is in "2018-02-12"
local master last commit is on "2018-02-16"
how can I push this local copy correctly?
 
2:55 PM
First order of business: Slap the fuck out of that dude.
 
second order of business: push your commits to remote
1.5th order of business: disable his force push
 
And the saga at my place of work continues...
 
First put your local copy into a separate branch:

git checkout -b backup/master

Now switch back to the master and align with the last commit of master you have:

git checkout master
git reset --hard HASHIDOFLASTTAG

Then pull to get the new state of affairs

git pull

And then merge your backup back in

git merge backup/master

And finally

git push
Note: make a full backup first
 
How, how do you guys determine when to break data up into separate tables? What's a simple rule of thumb, without getting too in-depth. If you have a multi-step process but it's related data, but there's say 50 fields total, would you stick it all in one table and call it a day or break it up into sizable chucks?
 
05:00 - 15:0015:00 - 00:00

« first day (2700 days earlier)      last day (2235 days later) »