« first day (2734 days earlier)      last day (2215 days later) » 

2:51 AM
Hello!
 
 
1 hour later…
4:03 AM
 
4:43 AM
@Wietlol dynamic is object, object has GetType(). Problem solved.
Also good morning sharperinos!
 
 
1 hour later…
5:45 AM
posted on April 11, 2018 by Scott Hanselman

Five years ago I implemented "lazy loading" of the 600+ images on my podcast's archives page (I don't like paging, as a rule) over here https://www.hanselminutes.com/episodes. I did it with jQuery and a jQuery Plugin. It was kind of messy and gross from a purist's perspective, but it totally worked and has easily saved me (and you) hundreds of dollars in bandwidth over the years. The page is l

 
6:14 AM
ohayou
 
ohai
 
mr5
this is dope
I want to tweak this badly
 
6:50 AM
hi
I tried this
<b style=" list-style-type:none;" >
@Html.ValidationSummary()
</b>
but it doesn't remove the bullet
that ValidationSummary returns.
 
MORGEN
 
MAÑANA
 
SERVUS
Have you tried Blazor?
 
7:06 AM
that's twice that I hear about this library
 
i found it
 
Look at r44.fe100.net - it's just some html+css+C#
Practically the template with more buttons thrown in, but look at the source :D
 
@Squirrelkiller cool!
 
jó reggelt
 
7:36 AM
yo
 
hi
 
7:48 AM
i added a jquery funciton in the js file but on chrome it doesn't shows up and hence shows error that function is not defined.
 
Are you importing the js file in your html?
 
@Breathing Welcome to C# Chat!
 
what do you mean?
it is an mvc application
i run it on chrome it doesn't work
but in firefox and edge it does
 
caching issue. But this question is more appropriate for JavaScript chat...
 
through dev tools i saw under source -> networks and under local host folder I saw the file
but the file isn't updated
what could be wrong?
 
7:55 AM
caching issue
 
hmm
and there is one more thing
 
that's cool
 
i added an upload photo feature but in chrome when I click on the button and press open the photo appears but then if I click on upload again and cacel the photo dissapears util I press refresh
 
I refer you again to JavaScript chat
 
alright
 
7:59 AM
:)
besides, jQuery man. That's legacy tech.
Did you try the VanillaJS framework? vanilla-js.com
 
Have you tried our new Lord and Saviour Blazor?
 
did you write anything in Blazor yet?
 
Pretty much the template with more butons thrown in
Look at the source though :D
 
I can't access that site from my workplace
also, how big is the Mono runtime that it gets bundled with?
 
Might be because it's my private server and hasn't got https yet
 
8:06 AM
nah it's just blocked
"category: spam/technology"
 
fe100.net in general? THat's just a dyndns domain o.O
 
Guise
 
@Squiggle How about this one: contabsblazor.azurewebsites.net
 
Question
are castle windsor installers resolved sequentially
 
thanks squiggle
 
8:13 AM
Works on my machine!
 
@Squirrelkiller Love it!
 
@Squirrelkiller the temperature went from +14 to -13 on one day? damn
 
Castle Windsor has its own installers? Do people even live there anymore?
 
pity it's Razor
and bootstrap
 
Yeah pretty much
But C#!
@Default where you live that doesn't happen every once in a while?
 
8:16 AM
actually, the last week has been crazy - we had snow 2-3 weeks ago, then last week it went to a max of 17 I think, then today it's back to 3
but regularly, no :)
 
@Squirrelkiller and it's a 4.2MB download. Not suitable for web apps, but for PWAs I can see it being a pretty compelling use-case.
I wonder if there's any chance of tree-shaking to get rid of the unused core .net library components...
 
8:27 AM
They'll probably stream line the whole thing. This is the first release, so for now it's jsut for devs to play around with.
 
@Squiggle don't attack jQuery
 
PWA look quite interesting, but there aren't any useful ones I can think of. Are there PWAs you actually use?
Yeah squiggle, don't beat the dead jQuery!
 
Jake Weary saving the day again
 
Who's that?
 
Everybody knows Jake Weary.. a little slow on the uptake, but always willing to give a helping hand
 
8:55 AM
Random trivia: There is a direct correlation between the quantity of chocolate consumed per capita and the number of Nobel laureates produced by that country
 
Right, correlation does not causation
 
I think the mountain range did affect the murder rate. I recently flattened an ant hive and suddenly a bunch of corpses woke up from their graves and went back home.
 
still, interesting facts
 
100% of all murderers drink water
 
9:06 AM
And breathe. Like you are doing now. You monster.
 
I will breath, and I will do it with pleasure! Harharhar! (Unless someone farts or something)
 
9:17 AM
I'm supposed to be a grown-ass man, but I still laugh at stuff like farts. Is there something supposed to happen so I can be considered a mature person already?
 
Nope. I think it's just about having some experience that non-adults don't have. Like knowing something will hurt when you do it.
Through our experience, we can also deduct that more things may hurt when we do them. People without that experience cant deduct that, therefore can't say whether or not it'll hurt.
"Adult" just means having experience.
 
I'm not talking about adults, I'm talking about maturing up.
 
Pretty sure that's jsut about "I don't do this silly stuff right now because I have something else to do that is more important or interesting".
I like climbing trees as much as the next guy - but I'd rather learn blazor. So I learn blazor instead.
I believe that's why we can un-mature so good with friends - we don't have anything better to do, because we designate that time as being there to goof off and not do anything else.
But then again - I don't consider myself really mature, so what am I even talking about.
 
@Squirrelkiller dihydrogen monoxide is the major component put into pesticides that they spray on crops!
 
I heard they put it into our water supply too!
 
9:33 AM
They've found dihydrogen monoxide in the bloodstreams of dying cancer patients.. make of that what you will..
 
It's scientifically proven to improve athletic performance, yet it's not banned in professional sports. #conspiracy
 
I bet Russian atheletes consume it in large quantities
 
That's unproven
 
your discussion reminds me of this :D youtube.com/watch?v=_c6HsiixFS8
 
I bet there is actually some dihydrogen monoxide in vodka!
 
9:40 AM
@Squirrelkiller those fiends
 
Everyone who drinks water dies!
 
@HéctorÁlvarez thatsthejoke.jpg
 
talk about data duplication...
 
9:56 AM
Your GUIDs don't look very GU
 
@Neil Yeah, I was just summing it all up in a line.
@Wietlol I get ID and GUID are valid identifiers... but why both!?
 
mr5
o/
 
@Butler1233 they arent generated, they are loaded from an xml from a 3rd party
if the xml has duplicates... i will store duplicates
 
> Duplicated GUIDs 🤔
 
!!shrug
 
9:59 AM
¯\_(ツ)_/¯
 
mr5
why do you guys don't use 0 as starting value of entry Id? I was told it is to prevent a people from observing some patterns. Is that still true?
 
!!tell mr5 failsafe
 
entry id?
if you are talking about my screenshot, that is MSSSMSSMS
 
mr5
@Wietlol id of each entries. whatever that entry is
 
10:01 AM
I start entries in the database at 1 (aka IDENTITY(1,1) for sql)
because it looks stupid doing /resources/0
 
I have a question about css
 
also, 0 can be used as null value then
 
can I ask?
 
it seems you can... you already asked
 
@Breathing go ahead
 
10:05 AM
well Another div class takes over if I set the other class style display to none
 
example pls
 
if I put in something(text)/remove display none it fits fine,
 
You set it to not display, so it doesn't display and something else takes its place because you've got pull-right. What's the prblem?
 
I don't want that
 
There's no unexpected behavour here
 
10:09 AM
I want to be there because alignment gets all messed up
 
Then dont' set it to Display;None
 
but that is the logic I am using in my jquery function
 
Use something else then
 
basically it will act as inline validation for the column above
 
Then change your code to do what you actually want it to do
properly understand the HTML box model and CSS
 
mr5
10:19 AM
@Wietlol it doesn't seem to be the case. I always see IDs on production database starts at a very huge value. There seems to be a suffix value before the real ID
 
maybe they start at a huge value to make it look like it is being used a lot
or maybe they start at a huge value because a lot before that is being deleted
i'd still start at 1
 
mr5
and their purpose?
I'd do the same. But I want to know why they do it
 
what purpose?
 
mr5
@Wietlol this
 
just to look cool
if you use a service and you post some stuff to it and see that your resource is "/resources/17"
you know its probably not used that often
if it is "/resources/872641632576132405630756104751407324" you know that you have a big ass company
 
10:32 AM
Giving your resources sequential IDs isn't necessarily a good idea either. Maybe this large number is simply a numeric representation of a GUID.
 
why is it a bad idea?
security?
 
For one thing, yes. It makes enumeration attacks simpler.
Also, it requires a single point of authority to generate IDs, because you can't handle collisions. If you use GUIDs, generating the ID can be done as part of generating the Entity on the client.
 
but one must be authorized to read his/her resources
even with UUIDs, I prefer a single point of authority
 
Even so, a guid is more stable. Let's say you want to export your data and import it to a different DB or installation. Now you suddenly have conflicts, because id #1 here isn't necessary the same there. You can strip the ID and have it be generated when inserting, but if you have links and references to it, they'll break. Your ID is now localized to the table, not globally.
 
@AvnerShahar-Kashtan This. GUIDs are meant to avoid unique identifier collision, and often used in distributed offline server-client systems for this very reason. I think it guaranteed a 99.99999% chances to generate a completely unique ID.
In other words, you can have 200 cashiers giving receipts away, storing settlements, etc. and if you use GUIDs, when you import them in your central database you will still comply with the unique identifier constraint, even though none of them knew what IDs were allocated.
 
10:42 AM
This isn't a theoretical case. We switched our IDs from long to guid in a previous project, for an entity, because we wanted to be able to supply a user with pre-made entities (think "workflows", which were stored in the DB), and with guids we didn't have to worry about it - we supplied workflows as JSON files with predetermined guids, and these were now well-known guids we could refer to.
 
inho, cashiers shouldnt create the ids though
 
Why not? You can deploy the same database structure to clients as your central database, avoid working twice!
 
Why not? a point of sale might not be the best example, but you wouldn't want a distributed system to have all nodes blocked waiting for the central authority.
 
calculating a new ID takes only a few cycles, definitely less complex than calculating settlements.
 
You write a new Facebook post. It's given an ID by the shard which you accessed.
I'm not against a centralized ID repository. But it doesn't work for all kinds of apps.
 
10:48 AM
imo, its kind of an overkill
i can see the export/import database though
but at that point, where you were already having 2 resources of the same type with different data, you have already made a different mistake
 
A decentralized system might be overkill. But using a guid instead of an int isn't overkill, in the sense that it isn't any harder than a numner.
 
@Wietlol what do you mean?
 
if you have 2 databases and want to merge them, with guids it'd be fine, with auto-increment numbers, it wouldnt
 
By the way, GUIDs don't necessarily take a critical amount of space, but as time passes and your auto-int grows in size, GUIDs keep their sizes, which is also awesome from a DB speed point of view.
@Wietlol Yes, that's the whole point. GUIDs were designed to abstract us from keeping the old rule of sequential, non-repeatable, indexable fields.
 
but why did you have 2 databases with equal schemas?
 
10:53 AM
@HéctorÁlvarez guids are always 128bit numbers. auto-ints are always 32bit/64bit numbers. I don't think it really matters if the 64bit number is "5" or "1364562344572".
@Wietlol Because I have on-premise installations at several customer sites.
 
@AvnerShahar-Kashtan depends on the database
if the id's arent necessarily stored on the records, you dont need a constant size
 
It was an example of the average distributed system. Instead of building a huge server with small clients, you replicate them across the network. Working online isn't always a possibility, so you may want to log changes and move them across, and this is the more advantageous solution.
 
git is probably a good example of a distributed system. commits are given a unique id by the node that's committing, and these commits can later be sent to other systems.
 
oi, what are you guyses favorite solutions for AMQP
more importantly, do yall have an opinion about MassTransit
 
Don't even know what that acronym means.
 
10:56 AM
Advanced Message Queueing Protocol
i.e. message bus kinda thing
 
Heh. Swagger is silly. We have an API (IncidentsService) that exposes a simple GET endpoint. The name it gave the operation, which was later generated as a C# proxy method? ApiIncidentsGetWithHttpMessagesAsync().
 
(* new to Crystal Report)
does just typing `true` in a formula returns `true`?
 
@AvnerShahar-Kashtan maybe i just havent worked for any serious sized companies :D
 
@Wietlol Look, numerical ids work. People have been using them for decades.
 
im not saying they dont work
im also not saying that only they work
 
10:59 AM
But they have their limitations, and it's important to know them. I wouldn't use them for a new application today, simply because I lose nothing by using guids instead.
 
just that I havent experienced a situation where they didnt work
anyway, lunch!
 
11:37 AM
Wasn't EF core aimed to support only Code-first?
what is this: https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db
 
afaik, most db frameworks prefer database-first
because, for example, a "String" is a very limited specification of the data type for a database
for example, SQL has VARCHAR, NVARCHAR (both with a max length), CHAR and NCHAR (both with a defined length)
and then other stuff like TEXT
it'd be easier to write a database and then the code
 
I get that there are these different types
but in a sense VARCHAR, VARCHAR2, NVARCHAR, CHAR are sort of implementation details
 
yea, they are all String for the api/code, but for an SQL database, they have different behavior
hence db-first
 
I'd just assume make unicode standard
 
or your code-first stuff must have explicit information about how to set up the database
 
11:43 AM
then let someone specify only when it isn't unicode
 
I always use NCHAR NVARCHAR nowadays
 
11:57 AM
databases has a lot of features that code can't make up, stored procedures, views, etc
 
but stored procedures and views are irrelevant to the actual data that they store
ofcourse, it uses the data, but the data is not dependent on the stored procedures or views
 
From what I could see from the link, this isn't really DB-first like EF6 does. There's no EDMX phase. It's using a tool to create classes from an existing DB, and then working code-first from that point on.
 
stored procedures are a slippery slope
 
@AvnerShahar-Kashtan so retrieve database once , and then updates from code to db ?
 
the tendency is to put more and more logic into them
and they should be very stupid and simple things
 
12:00 PM
@MohamedElshawaf Something like that, I think, from casually browsing the article you linked to.
 
is RFC-4122 for UUID, similar to what ISO-8601 is for Date?
 
A stored-procedure-heavy database doesn't really play well with an ORM. An ORM assumes that the data layer is a relatively straightforward reflection of the entity layer.
 
Is it a good idea to have a feature register, bug register and a component (that provides the contract and implementation of said feature) register when developing?
And then tests can be derived from the feature register and component register
And also have a test register
So it would be a database with these tables which are updated as the respective events occur
And this would report to you as the self-manager that how the project is going in terms of covering its scope
 
why they let code to apply its rules on database?
 
@RonaldMunodawafa Are you describing an issue tracker?
 
12:06 PM
@KendallFrey Is that what an issue tracker is?
 
An issue tracker is what I understood your description to mean
 
Okay because I have found it quite useful as the project gets more complex
I started off with Excel sheets and then moved to a SQL database and I was thinking if should just write a CRUD app for this
 
@MohamedElshawaf Because for many, many projects, maintaining the DB separately from the code is pointless.
@RonaldMunodawafa You should probably use existing issue tracking software, rather than reinventing the wheel.
 
@RonaldMunodawafa Don't write your own, this is a solved problem
 
I am not. I didn't know what issue trackers were
So I kept running into the problem of relating bugs to components
 
12:08 PM
Basically they're a database of work items that need to be done
Often bugs, but they work fine with new dev
 
You learn something new everyday
 
and usually you can link them in with other things like commits/pushes, code reviews, and CI builds.
 
@AvnerShahar-Kashtan good point
 
Any recommended issue trackers I could use
 
GitHub's for stuff on github
 
12:10 PM
JIRA!
Don't use jira.
 
Because I am now interested in being able to professionally discuss the correctness of program according to a given specification
 
I don't use anything else in my personal projects
 
Something independent of a specific source version control system would be nice
 
@RonaldMunodawafa That sounds like unit testing
 
But I want it all in one
 
12:11 PM
We use VSTS, which I think can also be used for free, maybe? Github has its simple issue tracker. I've used JIRA, which is the 800-lbs gorilla in the field. I've used terrible, terrible solutions from HP and IBM which makes JIRA feel agile and lightweight.
 
The business of the correctness of programs
 
@RonaldMunodawafa GH is, it just lets you link to stuff on GH natively so it works best with GH
 
JetBrains have a (commercial) product which might be nice if you like JetBrains' products.
 
we have jira
 
> Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth
 
12:12 PM
JIRA is fine, but requires a lot of fiddling and customizing to get it to do what you want.
I also don't know why I keep writing JIRA as if its an acronym. It isn't.
 
@AvnerShahar-Kashtan I am currently using Rider. I think I have had enough of their assumptions
 
trello is quite popular
albeit not as advanced as jira
i've been using youtrack for a while and like it
.. which is like the younger brother to jira I guess.
 
But you need all of them integrated
Let's list them
Debugging is a painful experience that disciplines one in the art of simplication
Even if you are working alone, I find it nice to follow the formalities followed by a team Some stages may be skipped but there are some that mitigate the risk of long debugging periods
 
user5500750
Can I use a class from a shared project in another shared project?
 
yes
wait no
maybe
@RonaldMunodawafa maybe look into scrum and agile development?
 
12:21 PM
I am going to practice by writing small games
 
user5500750
I have a shared Utilities project and a shared CommonModels project but I can't use classes in the Utilities project in the CommonModels project.
 
I just had a surreal meeting with my euhm... Boss? It's not my boss really, but you get the idea. Took 5 tries to get what I was doing. I don't think ticketing and fares are such complex terms.
@AvnerShahar-Kashtan Probably because unlike other software like Confluence, this one doesn't really many much sense in English.
 
@GSCM I haven't used Shared Projects so far because, well, because of exactly this sort of tomfoolery.
 
@HéctorÁlvarez mb you're bad at explaining? :)
 
user5500750
I can use classes from the 2 shared projects but in other projects only
 
12:23 PM
@HéctorÁlvarez But it does in Japanese.
 
@Default Trello is Kanban-only, Jira is a full-fledged project and issue tracker.
 
@HéctorÁlvarez yes
 
@GSCM Shared projects are simply compiled into their referencing projects. So while they can technically see each other in runtime, at design-time I don't know if you can have them reference each other.
 
@Default I work in the intelligent transport systems department.
How hard is that to grasp?
"So you work on IT?"
"So you work on the Internet of things?"
"Ah, you mean you work in data warehousing!"
 
user5500750
12:26 PM
Does that apply to ASP.NET websites as well?
 
ow lol, the guids in the database arent duplicates
 
hey, I work with transportation as well!
 
@GSCM That's simply what Shared Projects are - they're not compiled to independent DLLs, but are folded into each project that references them. I wouldn't recommend using them.
 
@Butler1233 they only look like they are the same
but they are actually unique
 
When do you want to use a shared projects?
 
12:28 PM
> SELECT COUNT(*) FROM Institution GROUP BY [Guid] HAVING COUNT(*) > 1
return nothing
 
What is their use case
 
@RonaldMunodawafa You know what? I still don't know.
 
Wow nice reference to a few hours ago
 
shared projects are the horror of... everything
@Butler1233 still working with the database, but only now do i realize that they are unique
 
I've seen their use advertised for Xamarin development - so an iOS and Android project will have different copies and you won't have to compile a DLL that works in both.
 
12:28 PM
I saw they were unique, but thye looked very crafted and so could collide easily
 
@Wietlol HAVING Count(*) > 1
 
But PCL DLLs work better, and now .netstandard2.0 DLLs work too.
 
and select count(*)
 
@HéctorÁlvarez stupid bitch ass markup
:D
 
user5500750
Suppose you have a solution that has a desktop app project, an ASP.Net project and an Xamarin project with classes that are very similar across all projects.
 
user5500750
12:29 PM
How would you recommend to share these classes?
 
@Wietlol Yeah!...Wait what are we talking about.
Do you mean syntax?
 
markup removed *...* and made it italic like ...
 
(but you wont notice italic dots...)
 
Press CTRL K
 
12:31 PM
ikr, but i just did >
 
@Wietlol Well now your query doesn't make sense.
SELECT COUNT(Guid) FROM Institution GROUP BY [Guid] HAVING COUNT(Guid) > 1
 
why doesnt it make sense?
only difference between yours and mine is that... nothing
 
I found out that in Oracle, if you use a value to compare with rowid in the where clause like select * from table where rowid='some row id', it won't work as you'd expect, returning nothing if it doesn't exist
it's considered an error if you try to search using a rowid that isn't in the table
In fact took me a long time to figure out why the same query worked in one environment and not in another
seems silly that it would throw an error
if the point is to check its existence, then you just can't
 
@Neil I call the design thinking behind exception obsession
Some designers have a fetish for crashing programs, they just do
 
@Neil does it return nothing or does it throw an error?
Because returning nothing where nothing matches the where clause....like, what else would you want it to do?
 
12:40 PM
@MikeTheLiar I would expect it to return nothing
It instead throws an error
 
This is a bug. Do they have an issue tracker where you can post bugs?
 
@RonaldMunodawafa I know, inconsistent and entirely useless
 
I suppose the design philosophy of exception obsession is an Oracle thing
 
Well it's Oracle, so I assume so
They'd probably say it's expected behavior
 
Are you sure it's not the consumer throwing the error?
 
12:46 PM
@MikeTheLiar No, I don't mean the primary key
I mean "rowid" which is the id the database gives it
looks a little like a guid
 
@GSCM Put classes in a .Net standard/core library. easy
 
@Wietlol Because every record has a different ID, so Count(*) 1 every time.
 
Exception obsession is a good thing. You better crash than run with weird crap. Looking at you, MySQL.
 
But Count(Guid) may yield different results.
I don't know your real case though.
@RoelvanUden Haha PHP and MySQL, masters of subtlety and disguise.
 
@HéctorÁlvarez true
i used it to find if there are duplicates
the Guid isnt the primary key
 
user5500750
12:49 PM
@Butler1233 You mean I create a library?
 
@HéctorÁlvarez Yeah, indeed...
 
Yes
 
Actually do select guid, count(guid)
 
A Class Library, if you will
 
i dont really mind to see which are duplicates, just if there are any
 
12:49 PM
and group by guid
 
well you technically have your answer
 
@RoelvanUden Exceptions should be reserved for requests for unspecified behaviour
 
@Butler1233 what if it doesnt contain classes?
 
@Wietlol Then it's a pretty shoddy class library, that's what it is.
 
@RonaldMunodawafa I don't agree.
 
12:57 PM
Or whenever there's the risk of invalid state
I hate writing try catch clauses
 
There we go. That's better. And isn't that exactly what it does eh?
You shouldn't have to write much try/catch if you validate your inputs.
 
I believe exceptions should be allowed but program state should be saved
 
And there it is.
 
I view continuations as the future of a program and state as its history
 
I'm losing my fight with W3C
 
12:59 PM
Ease of access to the user
 
You should build some fucking applications man, and get your head out of the theoretical clouds.
 

« first day (2734 days earlier)      last day (2215 days later) »