« first day (2894 days earlier)      last day (2045 days later) » 

mr5
10:00 AM
I would love to see an implementation using plain html and javascript only
 
there is a YT vid from... a guy that demos it
 
WEBSITES SHOULD WORK WITHOUT JAVASCRIPT
 
he also explains really well what I just said about that template thing
 
mr5
at least, that's how I do it when I'm making a website ^^
 
I know, fuck me right?
 
mr5
10:00 AM
website should work without HTML!
 
mr5
your website should be beautiful without CSS
 
youtu.be/FDOECr-sT6U?t=1m22s from here, he starts talking about the template stuff
 
HTML is kinda important for websites. HTML for content and structure. CSS for additional styling if you hate user's deciding how they read content, and Javascript for "rich elements" which are in no way required
Yes exactly that
 
mr5
10:03 AM
your website should be accessible without using electricity
 
your website should be accessible without interwebz
 
@mr5 Your website should be accessible through a tin can and adequate wiring
 
we need 110% availability
 
mr5
where the hell is this conversation suppose to go? :D
I've learned nothing xD
 
which is unusual for the C# chatroom
 
mr5
10:05 AM
where is squirelintraining when everything doesn't make sense
 
To that one /r/TalesFromTechSupport post where a granny calls in about how to access that website which was recommended to her by her...son or something? And the tldr pretty much was "You need a pc to access the internet"
 
@Squirrelkiller Yeah, the punchline was that if I recall
Took the caller a while to realize
 
I'd say callee
 
There's also the classic bit where the user uses the CD drive as a coffee holder
 
Genius
 
10:07 AM
@LeeButler oh yea, you can also write Kotlin-js stuff without react, but I like Kotlin and I like React, so obv I will use react in kotlin if I get the chance
 
I mean, what else do oyu need a CD drive for nowadays
 
assuming that the thing I make is of a considerable size that react is a really good option
 
@Squirrelkiller good point
Someone else called tech support to figure out why windows wasn't opening properly
Turns out his monitor was unplugged
 
if windows doesnt open properly, you can always throw a stone through it, that will permanently fix the issue
 
I guess I can laugh now, but in some 40 years from now, we'll all be there but on the other side of the joke
 
10:13 AM
you could try a job where you replace broken windows
like tech support
 
Some guy will be talking to his buddy in tech support going, "And the old man didn't even know that he had to recalibrate the crystal synthesizer before turning on the ralcalter..."
 
I think technology will progress in the way that we dont need to do anything
we will all have our personal J.A.R.V.I.S.
 
Pretty sure they said that 10 years ago when tehy made a bunch of personal assistent apps (one of them JARVIS).
And look how personal assistents work
kinda
 
@LeeButler in case you are going to watch that vid about react kotlin, dont be surprised if you dont understand how it works, I find the speaker to fail to mention why certain things work
 
I think there will be a lot longer to go for that than most people assume
 
10:15 AM
They work kinda
 
mr5
How the hell can we play frisbee if we don't have CDs
 
Using plates
 
AOL frisbees yay
 
the react lib uses a very particular feature which is extension methods, which are being used everywhere without you knowing it, which is why it works
 
all those CDs must have cost AOL a small fortune
 
10:17 AM
Yeah but I'm not touching kotlin lol
 
considering they were offering free internet to boot
 
@LeeButler but... but... but... you are making me cry :(
 
10:35 AM
So...how do I get a value from the immediate window into my clipboard without manually copying it from said immediate window?
Oh wait I'm stupid, k.
3
Thanks rubber duckies.
 
🦆🦆
 
quacks
 
immortalized for all of eternity!
 
As is the tradition
 
Your grandchildren will one day look upon this log and see the starred message left by their grandfather
 
10:38 AM
eternalized for all of immortality?
 
I'm gonna have grandchildren? *blush*
 
/r/unexpectedlytouched
 
Show me on this voodoo doll where he touched you
 
🍆
 
🥒
 
10:43 AM
I am an idiot
2
(I also want grandchildren)
 
🎣 for ⭐
Sorry about the Emoji spam, it turns out emojis make really handy icons
 
!!wietlol6
 
1 min ago, by Wietlol
I am an idiot
 
11:01 AM
wait...
try !!wietlol4
 
!!wietlol4
 
Jul 30 at 10:36, by Wietlol
I dont know what to put there
 
hmm... I forgot which one it was
ah, 3
Aug 24 at 6:10, by Caprica Six
Jul 11 at 10:13, by Wietlol
I am an idiot.
 
11:45 AM
1
Q: How is bad declare public static variable and use it in other classes?

MaicakeGOAL: to have a main class which has some global variables which need to be modified by other classes. I have a class with a structure like below public class ClassName { public static int variable; public void meth1(){ } ... } Then I have other classes...

He did the meth
 
Foreign language I think. Maybe someone may tell him his bad naming too.
 
probably just shortening method and didn't realize
I still got a chuckle though :)
 
meth od
 
Also Killian Foth got his answer slammed
That's highly unusual
Maybe he's not feeling his normal chipper self today
 
That question is almost perfectly worded apart from the title
> Global variables are never necessary unless you are interfacing with existing code that imposes unsuitable constraints.
Wrong
Sure, misuse of them is bad, but they do have valid uses
For example, most of our systems here have one huge global in each one of them, which is often used by multiple parts of each application, so it makes sense for it to be a global of the application
 
12:02 PM
Killian who?
 
hi all
 
Some guy with 84k rep
 
I have a little question is there any way to close just current tab in internet explore with c# code
 
@Squirrelkiller High rep user of software engineering SE
gnat's always the guy who votes to close and Killian Foth is always the guy who answers first
 
12:04 PM
I don't understand SE.SE
Why not jsut roll it all into SO?
 
because SE SE is I suppose about patterns and program architecture
SO is more about "fix it, it doesn't work"
 
echo "<script>window.close();</script>"; works fine in php
what is the equal code in c#?
 
That's JavaScript.
So the equal code is "<script>window.close();</script>"
 
ha ha ha
so funny
 
It's not even funny. It's just true?
 
12:17 PM
it funny because I cant write this in c# code
 
Why not?
 
System.Diagnostics.Process.Start("http://xxxxxxx/close.php"); it opens close.php and close.php code is <? echo "<script>window.close();</script> >?
 
What the hell? Why are you trying to start a process?
What are you doing?
What framework are you using?
What environment?
Do you even have any C# that responds to any web request?
 
@DarthSucuk I agree.. this is.. weird
 
Firstly when I pressed a button in my program , it call close.php and my php code delete a file
that what I want it works fine
 
12:22 PM
Why wouldn't you just delete it from C#?
Why do you have to go through php to delete a file?
 
beacuse this file is not on my local file so I think that way :/
thats not the point could you pls help me to close current i.e page
 
Ok, so you want to ask the server to delete a file?
There are better ways of doing this
 
keep the process you started, and exit it
or dont make the call with a process at all
just use http commands from c#
 
you definitely don't want to ask the system to open that address, even if it's the right address
 
so is it possible to write <script>window.close();</script>; in c#
 
12:25 PM
For all you know, addresses are opened by WireShark by the system
So by running that, the system would open WireShark and then nothing would happen
 
@DarthSucuk What framework are you using? How does your c# code communicate with the browser?
 
@DarthSucuk This doesn't make sense
 
Because from my windows forms applciation, I cant close a browser tab
 
BugFinder already answered what you should do @DarthSucuk
2 mins ago, by BugFinder
just use http commands from c#
 
If you need to communicate to the server, do this
If you want to ask the system to close a web browser, you can't, not really
The script on the page you opened can close itself perhaps
 
12:28 PM
What the hell I don't understand what he was trying to do
 
obviously
 
He has a server that runs some PHP to delete some shit, and he tries to invoke that script.
So obviously that means spawning a process to call a http get amiright
Then he's like, omai the iexplore window is open, how to close?
and comes asking that
xy
 
That's how I interpreted that
 
xyxyxyxyxy
 
Yeah, serious xy
 
12:30 PM
In my program I have a button name close
just I want it when I pressed it,it close my current tab in internet explorer
 
my program works on internet explorer
 
Wait wait wait
 
Wait what, the story changed again
 
  █   █  █   █  █   █
  █   █   █ █    █ █
  █   █    █      █
          █ █     █
  █   █  █   █    █
I paused BoJack to dig that out of my docs and post that
 
12:32 PM
asdasdsadsa
In my program I have a button name close
just I want it when I pressed it,it close my current tab in internet explorer
 
@Neil we all need some meth in our life
1+2=3+4=7 quickmeth!
 
jaksdksajdksajdsa
 
he did the monster meth
 
guys im serious
 
> internet explorer
 
12:33 PM
just help me please
 
this guy cant be serious
 
@DarthSucuk we're telling you why this is a very fragile approach
It isn't enough that it works. It must work 99% of the time
 
So I wrote a message, sent it, then wrote "obviously", sent it...then the internet around here died for a minute. Turns out "obviously" was sent, but the actual main messsage not.
I wanted to say "He wants to install a virus on the client and close the tab to hide it"
Also @Darth, what framework are you using? How does your c# code communicate with the browser?
You want us to help, but you dont answer our questions
 
"just give me code pls quick"
 
Fast Code More Better
 
12:40 PM
How do I close a tab or window in razor? Is that even possible? Do I just invoke javascript?
(Say I have a CLose button)
 
@Neil what if you have no internet? can you still close the tab?
 
In regular ASP.NET, you can only force JS down the browser's throat which may or may not be respected.
 
with Razor, you start at the top of the elbow and work your way down
 
DAMN
DAMN HOLD ON
 
How can I shutdown my computer, with Java?
 
12:42 PM
@nyconing thats easy
 
Overflow the VM and run out of memory
 
nah, that simply crashes JVM
you need to shut down the entire machine ofcourse
 
Hmm, I can crash Samsung phone and force it to restart recently. Only work on Samsung.
 
@Wietlol If the service is on your own computer, you can still perform a request for it
 
and you can easily do that using something like executing a command like sudo shutdown or something
but it will be depending on OS
 
12:44 PM
Is that Java?
 
'sudo' is not recognized as an internal or external command,
operable program or batch file.
 
runtime.exec("shutdown -s -t 0");
@nyconing ^ that is java
 
Good
 
@nyconing is a human (I assume)
 
I think we should answer How to close tab using C# easily too.
 
12:45 PM
but is that Java?
 
No this is Patrick
Also I'm still holding on for the big revelation by Roel
 
No Im super deep learned AI
First rule, do not modify and recover myself.
 
> DAMN
DAMN HOLD ON
'sudo' is not recognized as an internal or external command,
operable program or batch file.
@nyconing never recover, if it crashes, let it crash!
 
Well I cant recover myself
 
Pff, some super deep learned AI you are
rm -f nyconing/**
 
12:52 PM
'rm' is not recognized as an internal or external command,
operable program or batch file.
 
oh right.. forgot what chatroom I'm in
 
Cant call sudo or shutdown from android, I tried.
(Using ConnectBot to ssh into local)
Also to crash a phone, crashing the jvm should be enough, right? (By filling up the memory)
 
the JVM has its own memory limit
it doesnt use the memory limit of the hardware
 
su are granting root permission
 
ALso what happens if an android app calls a method that calls itself all the time
 
12:55 PM
then you get a StackOverflowException?
 
@Wietlol I mean, when the JVM crashes, android is down, because android runs in the jvm
THerefore, a phone would be practically crashed alongside its jvm
 
but... does the android OS JVM run application JVMs?
 
vm inside vm? WOuld you take that performance hit?
 
Yo Dawg i herd you like JVMs so we put an JVM in yo JVM so you can not-crash while u crash.
 
Wait I thought the point of hte jvm inside hte jvm was to not crash when hte app-jvm crashes
 
12:59 PM
Run Win10 by using limbo on Android: vm inside vm inside vm inside vm
 
!!butwhy
 
hello nerds
good ever
eve*
 
Yo dawg, I herd you like recursive calls, so I made a recursive call which made a recursive call which made a.. StackOverflowException was thrown at (YoDawgMemeTest.java:34)
 
can i ask
why is it that add reference (resolve) has disappeared from quick actions?
on my id
e
 
1:13 PM
The quick actions are context dependent aren't they?
 
can you dumb me down a little
 
When you click on a file, there probably isnt a "add reference" in the context menu.
Maybe you're in the wrong place
Quick action maybe doesnt recognize whatever you are on needs a reference
maybe it already has a reference, just to another namespace containing an equaly called class
 
1:26 PM
Im confused... stackoverflow.com/review/suggested-edits/20891189 "This edit defaces the post in order to promote a product or service, or is deliberately destructive"
I removed rsa and cryptography tags and added rsacryptoserviceprovider. That question was regarding that class.
Was I mistaken?
 
Those changes don't make the question better categorized.
 
There was a specific tag for that rsa wrapper. What was my failure? removing previous tag? I thought that a more specific tag would help for searches regarding RsaCryptoServiceProvider.
 
I think it's better to tag on crypto and rsa, because you'll reach more people that are knowledgeable about the two topics, rather than expecting people to subscribe to a C#/.NET specific API called RsaCryptoServiceProvider
 
Understood, too specific tagging. Thanks for the clarification.
 
1:43 PM
This is just my personal opinion, but I imagine theirs is similar
 
generally when it comes to tags, many generic tags is better than one really specific one
especially since you can search with multiple tags
 
Hello sir
I'm having a problem when it comes to deserializing my json
My json looks like this
 
ctrl +k is your friend
 
{"result":[{"name": "jessica"}]}
 
1:55 PM
That's...surpisingly minimal
 
indeed
 
it's only sample sir
then here's my code: return JsonConvert.DeserializeObject<List<Whatever>>(fromUrl);
 
jsonObjects[0]["result"]["name"] == "jessica"
 
But it's not a list.
 
I'm getting the error on my C#
 
1:56 PM
THE
ERROR
 
Yeah, because it's not a list.
 
dun dun duuuun
 
And you're feeding it an URL?
 
Yes sir I know. But if I remove the result from my api, it works fine
 
gimme a sec
 
1:57 PM
Yes because then it's a list.
 
I just need the result for my mini web apps
 
because I don't have a problem in putting it on my angular6 app
because my api returns like this return Ok(new {result=someList()});
if I remove the new {result and just leave it like return Ok(someList()); it works fine
 
wow
I think he blocked you Roel
1 min ago, by Roel van Uden
Yes because then it's a list.
 
Yes sir I know it's a list
 
1:59 PM
Doesn't it deserialise to a JsonArray or somehting
 
Look bud, your JSON is an object with a "result" property that is a list.
 
But my point is, how to remove that result before I deserialize it
 
It by itself is not a list.
 
A good link I put in favorites from one question and its answer json2csharp.com
 

« first day (2894 days earlier)      last day (2045 days later) »