« first day (2518 days earlier)      last day (2433 days later) » 
01:00 - 13:0013:00 - 20:00

mr5
1:17 AM
o/
\o
\o/
finally! my name is on starboard :D
 
1:59 AM
ugh brain fart time
i have an array which is an object how do i use Linq Select on it
 
mr5
uhm, is array : object ?
 
nah it's a reflected type
 
mr5
just put using System.Linq then Array.Select(e => e.FieldName)
 
so it's an object but it really is an array
 
then cast it with magic
elementalist
 
2:06 AM
i got it
((Array)defaultValue).OfType<object>().ToList();
reflection makes you do some weird things sometimes
 
OfType<object> is redundant.
 
nope
 
((object[])defaultValue).ToList();
 
ok yeah, in that case
but if you use Array it isnt
yours is shorter, I will use that
i'd hazard a guess it all compiles to the same thing though
 
OfType() is used to select specific type in enumerable.
select object......well. that shall an object there=-=
 
2:15 AM
hmm yeah i suppose youre right
 
 
2 hours later…
mr5
4:08 AM
I want to make a JS to physify(add physics to an existing web page) the page. preferably, something you can copy-paste from your console and tadaa!
Physify.execute(window.document)
 
@ mr5 does try this param with trail saver yesterday?
var h = 60,
    s = 100,
    o = 256,
    r = 1.1,
    n = 750,
    a = 0.5,
 
mr5
what happens?
 
20 hours ago, by nyconing
var h = 30, = fps
    s = 300, = render size
    o = 3,   = trail quantities
    r = 10,   = trail length
    n = 4e3, = trail path anchor frequencies
    a = 0.5,     = trail path area (0.1-1.0)
 
mr5
uhm, it's the same?
 
this one is original param, but I have added the description
 
mr5
4:20 AM
oh yeah. so you translated it?
 
I add
since theres no description about param in js
 
lol I knew there was a reason I used OfType<object>() before
can't cast the type ItemType[] as object[]
 
because youre cast with Array has none of generic typoe
 
i have no idea what that is meant to say
 
then cast it to ItemType[]
 
4:23 AM
I can't
it might not be that
it's in a reflected method
it's any object
it's an an array of any object type that might be used as a parameter
 
mr5
@nyconing the comments was in Chinese 🤔
 
@mr5 where? I get the js without any comment inside
If I get chinese ofcoz I will translate instead
@hsimah youre deal with serializer?
 
@nyconing no, it's a tool that reads c# XML comments and builds a maml file from them to document a powershell cmdlet. It's all done with reflection. The tool's author didn't code for arrays - eg if your cmdlet takes int[] the documentation would be for array and not int, the element type of the array.
so I am updating his code to check if it is an array first
 
that was japanese lol
I cant read those...
I think I have get the minifyied one...
this JS has real named param
 
mr5
4:32 AM
@nyconing yeah. I made the minified one + add some code to make it a totally screensaver
 
var FPS = 60;//FPS
var F = 200;//焦点距離
var N = 32;//軌跡の本数
var VERTEX_MAX = 1.5;//軌跡の長さ
var TRAIL_QUALITY = 1000;//軌跡のクオリティ
var mu = 0.1;//前のアンカーポイントへの依存具合
this one!! I like it
 
mr5
ogenki desu ka nyconing-san
 
neko
meow
Meοw... meοw.
 
mr5
Inu
wakarimashita
anata wa sudeni tabemashita
 
gokigenyo
 
5:23 AM
var FPS = 1;//FPS
var F = 50;//焦点距離
var N = 200;//軌跡の本数
var VERTEX_MAX = 9999999;//軌跡の長さ
var TRAIL_QUALITY = 1;//軌跡のクオリティ
var mu = 0.5;//前のアンカーポイントへの依存具合
See if the universe generated ot not after lunch
 
6:08 AM
\o
 
ohayou
 
\o/ Is that going into production already?!
 
mr5
soon, we're going to write all our apps in JS
yes. it's included in the latest stable release of chrome
 
Sweet.
 
6:21 AM
Hellou
 
mr5
 
is web assembly not written in other languages?
like c,c#?
 
mr5
chrome boasting
 
4 more releases and we get ES6 modules support too
In 61 I believe it was
 
mr5
@Proxy hmm, might be because C/C++ is closer to assembly language/hardware level
ugh. metal?
 
6:24 AM
@Proxy No. WebAssembly is an intermediate language (IL), like MSIL which is what C# compiles to. In the future, it's not far fetched to have C# compile to WebAssembly so you can literally code for the web using C#.
 
yeah but you said we are going to start using js now more, and with web assembly are we not moving away from js to write in a higher performing language?
 
Good morning
People
 
mr5
Video Editor inside Chrome:
 
Can I ask a question related to C++ here ?
 
6:27 AM
Morning sharperinos!
 
@BatCat you can try, sure
 
In this code => https://paste.ofcode.org/hJRpgCpjxaVwTHZAsUw48T
Why is the output 20 ?
 
mr5
6:47 AM
void fun(int *p)
{
  int q = 10;
  p = &q;
}

int main()
{
  int r = 20;
  int *p = &r;
  fun(p);
  printf("%d", *p);
  return 0;
}
> p = &q
assigned it's memory location to local variable q
after the fun ends, it doesn't really do anything
 
P holds q's address right ?
So *p should print 10
 
mr5
so your void fun is same as no-op
nope
unless it's written as int **p
 
That is my doubt exactly
 
mr5
then you do *p = &q
 
in main, p points to the address of r, hence the 20 when you print the pointer
 
6:50 AM
You cannot it gives an error
then you do *p = &q =>not possible
 
print printf("%d", p) and you should get an address value (of r)
 
Oh I get it now we are passing the pointer and not the address of P right ?
 
void fun(int *p)
{
  int q = 10;
  *p = q;
}
now you can get 10
 
mr5
@BatCat the syntax now should be fun(&p) but Kamil seems more right
 
The function gets passed a copy of p, so any changes to the copy of p don't affect the real p. Unless you use * Ofc...that'll change the value at the memory location it (the real and copy) points to.
 
6:58 AM
In you fun function, you just switch the parameter p to point somewhere else. It doesn't actually do anything with the value p points to. The pointer p in your main isn't the pointer p in your fun function, you just pass its value (the address of q) to fun, which stores that address in another pointer called p.
 
@RoelvanUden what is you take on web assembly?
 
Thank you so much @mr5 @ABuckau
 
Yeah, with just a pointer playground you can do anything in few ways. Choice time comes when there is an actual piece of code in works :P
 
7:17 AM
@Proxy It's both promising and terrifying. Until now, programming for the web has been one unified experience. Everyone writes HTML, CSS and JS. Sure, there are some languages that compile to JS but they either look like JS, or are very small in use. Nevertheless, even if you use a language like that, you should understand JS. That goes away with WebAssembly. In the future, you could have C# developers writing web code using libraries written in Python, and have no knowledge of either.
 
yeah that was also a bit weird for me since in the last time everything seems to be converging with js, but from what i have read(which is just a little) seems like with web assembly it will divide it up
 
@@Proxy Thus contributing becomes much more difficult and the current community will splinter into smaller groups of users. In the long run, I think this will prevent the current momentum we've got going in JS world, and the innovations that brings with it. On the other hand, choosing your own language based on merit and familiarity with better performance, faster load times, less bandwidth consumed certainly appealing.
 
maybe this will be used for some heavy computational tasks(if it even takes off)
 
I'm sure it will. The benefits are too great to ignore. Vastly smaller code to download means that users have to wait less time, your bandwidth reduces, and it takes far less time to parse the code. Mobile devices especially don't handle large amounts of code very well at the moment. With WebAssembly, they can. And there'll be a library available that parses WebAssembly and produces plain JS for non-WebAssembly browsers, so there's no real down-side.
 
regarding mobile devices, the mobile browsers need to adapt it as well?
 
mr5
7:35 AM
all devices that are capable to run a browser
 
@Proxy Yeah. Absolutely.
But like I said, JS can read/translate WASM to plain JS and execute it, so even if browsers don't adopt it, they'll still be able to run it (albeit much slower).
 
oh i did miss that part
 
mr5
can't wait for dotatu to run in web browsers so I can be able to play it in my huawei p9
 
Good morning guys!
 
Morning @KevinMaxwell
WHats dotatu
 
7:40 AM
I got 1 week notice from my boss today!
 
1 week only?
How did you fuck up Kevin?
 
I didn't fuck anything. He requested for offline application in ASP.NET MVC a few months ago. He asked me whether we can transform our largest application into an offline app inside browser (not just the css and js files, also the data entry part). I told him I need to do some research.
 
...please define "offline app in browser".
Like, intranet only -> simply dont put the server on the internet?
 
I googled it and found a few examples but they were so old and unreliable. I asked here to see if someone had any idea and mostly said it needs to be native mobile app.
 
well a webapp built with web technologies that can run in browser
but.. without the online features
 
mr5
7:45 AM
just your daily VS
 
offline app, means access data without any other tool or app. It should be accessible from the same URL
the entire web app is online.
But since this app is used in Kenya and Chad, they have electricity and internet interruption as well :(
 
I don't understand.
My understanding is: offline = on my pc, can run without network connection.
Ohhhh I think i remember
were you the one asking to work with the data and sync once internet is back up?
 
exactly
 
mr5
yeah. offline means it doesn't need internet connection
 
that's me :)
 
7:49 AM
just your daily VSCode
 
Ok you people need to be more specific. AFAIK there is no such thing as a specially build offline app for a browser. Anything built for a browser ca nbe used online.
So it should be possible to some extent - what happened?
 
now, my boss says, you couldn't find any solution for web, so we need to find another person instead who can deliver this for us. But he doesn't understand that it's not easy/common to do such things, most companies build mobile apps instead.
 
@KevinMaxwell There is such a thing called Progressive Web Application
Which features offline mode and aggressive data caching
Android, at least, has very good support.
iPhones, not so much.
 
What about iPads though
 
it means, I need to develop another version of the app on this platform?
 
7:54 AM
@KevinMaxwell Do you still have a chance to change his mind, or do you go jobhunting today?
 
He gave me this one week to find a solution
If I don't find anything on web then I need to leave.
 
@KevinMaxwell The idea is to share the codebase with the web version
 
The entire unit is in shock right now, why and why because of this I need to leave. I've developed this application, they never said about offline in the first place.
 
Apple don't like the idea.
 
"Without an internet connection...must be browser based" ...a little funny.
 
7:57 AM
Does it have to be completely in browser? Could you build a small agent, that runs the app while offline, and sync to the server once online again?
 
@Metallkiller All of iCrap doesn't support it well
 
@Metallkiller That also should be in place. The agent should run once the internet is back to sync the data back to the server.
Actually, I need to build two things, the offline module on web and agent to transfer the data once it's online
 
You said you developed the application. Is it simply a webapp right now?
 
yes, it's ASP.NET MVC Application
 
If you want a PWA, you'll need to delve into JavaScript
PWA is a purely client-side concept.
 
7:59 AM
how about Angular?
 
What about it?
 
Using Angular would help?
 
If your whole team is shocked by that decision, why now have them talk to the boss? Might change something.
 
@KevinMaxwell Unlikely.
Like you told your boss, you need to research
I don't think that Angular has tools to help you with PWA concepts like offline cache and service workers
(It might, mind you, but it's best if you understood them on their own merit)
 
@Metallkiller They did. Actually some of them did and some don't because they care about their future. He said, you had 1 month time to research and yet you haven't found anything. But I did, I told we need to move to Native App/Xamarin
@MadaraUchiha thanks
 
8:03 AM
What did he say when you said you did find something?
 
class Customer
{
    public int Code { get; set; }
    public string Name { get; set; }
}

List<Customer> customers = ...

var result = customers.Single(q => q.Code == -999).DefaultIfEmpty();
 
@KevinMaxwell If your boss gave you a notice over that, it sounds to me like he didn't like you to begin with and instead of talking to you like an adult, he waited for an opportunity
 
How to set default value for a class
 
@Sankaran Default is default(T). Either null or 0.
 
He first said, that's awesome but when I started to explain that if we want pure offline web app we need to write client-side codes. But there is a cleaner solution and that is Native Mobile App or Xamarin.
 
8:06 AM
I want DefaultIfEmpty() to return Customer{ Code = -1, Name = "" } instead of null
 
So you even gave him a choice, good. What did he choose?
 
He said we don't have the budget to build another app.
But funny things was, a few weeks later, he started to search around Xamarin
 
MSDN Documentation for DefaultIfEmpty() says , "the type parameter's default value in a singleton collection if the sequence is empty."
where to find that singleton colection
 
Because I told him, with Xamarin we can use our C# codes/logic to start the process but we need to redesign the UI as each platform has its own code base.
 
@Sankaran Btw I'm pretty sure .Single(...) throws if it's empty or finds more than one.
@KevinMaxwell Redesign is a big word. You mean adapt the UI to the new design ;)
 
8:09 AM
@Metallkiller hmm, It's something in between, because on Web we had more flexibility to fit contents in different areas but in this case we need to rethink about all these.
I thought myself, providing electricity and internet to those countries would be more beneficial than redo the entire app. This way other people in Africa can have fun as well :)
 
Yeah but "adapt" doesn't sound as expensive as "redesign".
 
you're right...
The reality is that 90% we use online and 10% offline.
That 10% is lot bigger to my boss
 
So you wanna let down the offline people?
 
No, not at all.
 
If those 10% are al ot bigger to him, maybe he can get an actual budget for that.
 
8:13 AM
Exactly
 
So what's his stance on Xamarin now?
 
I told him, web has many limitations, let's move to Mobile App
 
He want a solution -> you got a solution
WHats the problem?
 
gooooood morning :D
 
8:15 AM
I don't know, I did everything I could to make him understand that we're limited by web.
I even told him, should I create a Windows App which can be installed on our staff laptop which it can deliver the same thing.
He said No, it should be Web...
 
Don't say that. you're not limited. You jsut go another way, wich is to build an agent.
Whats the current problem?
Is the last status: "We're limited by web, I'll try to find something this week"?
Whats the last status
"It should be web"?
Then tell him ok, just need the sync agent.
 
Last status: If I find a working solution for Web in one week then I can stay and continue my work.
 
You have a working solution, the sync agent. Problem solved.
 
He said, if you found anything, you should demonstrate it with our app not someone else's solution.
@Metallkiller How's that?
 
Build a quick and dirty proof of concept. Open app, pull plug, see how the agent...dunno, builds the app for you (just copy the whole fucking website to that agent), replug internet, see how aent says "syncing now"
have the whole connection go through the agent
 
mr5
8:19 AM
thin-skinned mod is thin-skinned
 
thin-skinned mod for a thin-brained boss?
It's the freaking web. He can't have something offline in a completely online environment.
 
hmm, sorry to ask, how do I create that Agent?
 
Make a windows service i think. There is then a possibility to reroute web requests. Maybe change the hosts file? Not sure. Mega does it for example.
Ohh a browser addon would be even better than an agent. No idea how to write that though.
 
no problem, I will search more, maybe I'll find something even 5 mins before the time runs out :)
Thanks everyone for your help and patience.
 
mr5
@Metallkiller mod as in moderator ;)
I was suspended in chat for 30 mins
 
8:27 AM
what did you do?
 
maybe flag-ban?
 
mr5
I was playing the word Nerdintraining used to say, you know, the neg...
 
mr5
😏
 
negotiable? Why would someone ban you for that, unless it's your (or Kevins) boss?
...Can't find you saying any bad words?
 
mr5
8:33 AM
he deleted it already
 
Is it in the friendly bin then?
 
mr5
It's actually a word I made up from neglecterinos. lol
 
mr5
It's gone forever
I might get suspended again if I say the word
you, try. lol
can you view that somehow? lol
 
lol just got pinged to a question where i commented where the guy just changed his entire question o.O
like 180 degrees
from april
 
8:36 AM
@mr5 yup
 
mr5
he summoned you from the grave
 
can you sacrifice another 30mins to tell us? I'll look sharp to get it before its deleted.
I'm not sure which word. Neger = not an english word. Nigger (Not neg... though) = depends on the context if it is bad, it may be ok to use, see results when you search this chat for it.
 
thats not even bad lol
 
And anything about neglect* isn't a bad word anyway
unlesss admin has serious parent issues maybe
 
mr5
the sentence is a follow up from "hmm yeah i suppose youre right" said by hsimah
then I said, "I suppose <insert bad word according to mod here> are still sleeping"
 
8:39 AM
neglecterinos?
 
mr5
something like that but twisted a bit
 
nelgected mods are still sleeping?
negerinos!
 
neurons
negerinos :D
 
Honestly jsut waiting for the mod to get here and move the last 30mins to friendly bin and ban me
 
mr5
8:40 AM
that one
 
@mr5 which mod banned u?
 
mr5
@KamilSolecki I think the recent mod who have just been here 30 minutes earlier before I'm able to chat again
 
lol
 
mr5
I'm afraid to mention him. He might suspend me again
 
8:42 AM
you word did a bit sound like a racial slur
 
just leave the @ aside
 
i guess that is why you got banned
 
mr5
@Proxy yeah I think that was it. lool
 
negrolinos? negrorinos? negrolerinos? That should do it. Cya in 30mins.
 
mr5
xD
 
8:44 AM
negrocterinos? Sounds like something orks would drink.
 
@mr5 madara doesnt randomly ban without warning first.
 
a true shinobi
 
@Proxy A true shinobi wouldn't give you a warning.
 
But @MadaraUchiha you have to explain your evil plan before actually executing it :D
 
yep
 
8:52 AM
@SebastianL What kind of idiot told you that?
 
that is what i learned from watching naruto
 
I'll be a terrible human being and go to Macdonalds today
 
It's okay once in a while.
 
The alternative is this amazing burger place but they are totally not near where I work
 
Can you not order them for delivery :-D
 
8:57 AM
you have a car?
 
mr5
I always eat at Fast food resto because I don't know how to cook and I'm a terrible human being
but I do know how to boil eggs and cook noodles
 
@RoelvanUden nah. Its a small place (with mouthwatering burgers) and they dont do delivery
@Proxy yeah, but i'd have to go missing for 1,5h
 
oh that is indeed far away then
 
Still not banned, hm...
Ohhhh
Nigglecterinos!
Or not
 
9:14 AM
well i think you should not tease it that way...
 
So the mod is an "it" now?
Also, I just wanna know which word it is.
 
"it" was referring to you being kicked
 
@Proxy i like reffering to mods as "it" better :D
 
Joking is fine, but trying to piss off mods won't help the chatroom. Please dont continue this :P
 
@SebastianL :)
!!wat
 
mr5
XDDDDDDDD
 
good (UGT) morning
 
@ntohl good ubiquitous galvanized terra to you too!
 
mr5
@ntohl Glucuronosyltransferase to you too!
 
I wished You portugal General Union of Workers... Clearly not in Universal Greeting Time.
 
lol
Performance Comparison: WASM is currently -14% faster than JS
 
Performance Comparison: WASM is currently -83% faster than JS
:P
 
mr5
why "faster" though? :P
 
Faster exploits. Yay. :/
 
Hi guys
 public ActionResult Get(Info[] request, string[] data)
        {
        }
 
10:00 AM
@ABuckau faster invisible exploits
(compiled)
 
I am always getting null for info array
Is this not possible to pass an array of object to http get?
 
..I'm this close to giving up my web browser and only using pages w/o scripts/programs :(
I mean I only visit like 5 sites regularly...but that'll probably become 1-2
 
How will you use SO chat without skripts though?
 
Apparently I won't :( ...or set aside a dedicated device I don't care about
 
why is that so?
 
10:05 AM
I don't like the idea of other people controlling my hardware/spying on me...not that I have anything worth seeing, but still.
 
Because people on the web are evil
 
It only takes 1.
 
People are evil in general, get over it :P
 
Yeah but I can't punch them over the web :P (yet)
 
sends a virtual kiss to @ABuckau dont be afraid
 
10:06 AM
Tbh soon there isn't much you will be able to do about global control, unless you go stone age
 
Not true..but definitely some compromises.
My 16-core arduino board begs to differ :p ...still can't do HD video though.
Atmega chips* but you get the point :p
 
10:21 AM
@ABuckau 16 core arduino?
now you got me interested
 
10:37 AM
Sorry, more like just a wet dream..haven't built yet. Basically just a cluster of arduinos :p ..but just using chips.
64k ram...16x16mhz processors..more io than you can shake a stick at...what would u do with all the power :p
 
:D
i just build my gf her own ipod replacement with two atmega328 and a vs1053
was harder than i thought
 
11:30 AM
@ABuckau What do they share? A clock and power source?
 
11:50 AM
Haven't decided yet..engineering knowledge is still pretty rudimentary ..with that many, I assume it'll need more than just a simple crystal. But probably yes , unless I come across a reason to stagger them. And some io for comms obviously.
 
What do you mean haven't decided yet? Do you not have a 16-core atmega?
oh, missed the "haven't built yet"
How would you communicate between them? A shared bus? Master/slave? Using one as a switch?
 
If I answer, are you going to say "what about Tue case where you want to ___(the thing that architecture isn't designed for)?" :p
Leaning towards master/slave with dedicated communication to each... Perhaps 'busy' lines done in groups. What you think?
 
12:06 PM
I think I don't know what a busy line is
 
12:26 PM
Best assert message I've seen in a long time. "Should have a message because it's Stephen Curry"
 
12:39 PM
how can i use this @CapricaSix in another channel?
 
you need to summon her, but i don't know if you need rights for that
 
thats the underlying code, but not caprica ^^
 
erm
the google returned some weird links
@SebastianL i wish to learn how to summon, you got no idea about it as well?
 
!!tell ARr0w help summon
 
12:51 PM
@ARr0w summon: Say boopidi bee and in the room I shall be. /summon roomid
 
@KendallFrey thanks pal <3
@KendallFrey can i make this bot to post links on channel of new questions tagged with sql ? (just like the news feed item option)
 
no, use the bot meant for that (Feeds)
 
which bot is that? is there any bot meant for that?
 
Read what I wrote
 
you said 'use the bot meant for that (feeds)'... which bot is meant for that? i asked.
 
12:57 PM
Anyone use PowerApps? And anyone find that they suck?
 
i presume, you do @TomW
 
@ARr0w well read again and you shall find an answer.
 
I haven't heard of it, looks like this sort of system used to create quick and dirty apps for custom business applications without actually having to develop anything.
 
01:00 - 13:0013:00 - 20:00

« first day (2518 days earlier)      last day (2433 days later) »