« first day (2326 days earlier)      last day (2616 days later) » 

12:50 AM
Got a Rookie question how do I find the Return of a call when I am using return db.SomeDbMethod().Count(); with out having to put it to a variable?
 
good question
 
@juanvan Check the Autos window
 
let me know when you find the answer
 
Or it might be Locals
one of those two has it I think
 
ok will take a look
ok is in Locals thanks @KendallFrey
 
12:57 AM
nic
e
 
is there a way to dynamically change a linq query based on OrderBy. for example: i want to change _context.chemicals.OrderBy(c => c.Name) then in another case i want it to be .OrderBy(c => c.Expiration)
 
you can use a variable with the order by clause and then use .OrderBy(clause);
 
how would the variable clause be defined?
 
I'm updating VS right now so I can't get a snippet of my code to share
 
they would have to be the same type (date/string/int)
 
1:01 AM
but it's an Expression I believe
 
its always returning a chemical object
its just how its sorted in the ienumerable
 
@hsimah Func is easier if you're not using IQueryable
 
I think I use Expression<Func<Item, bool>> but that's for the Where
so that's an IQueryable
I'm installing cross platform dev tools for VS. I'll be here all day waiting I reckon.
 
@juanvan IComparable might be suitable
 
true did not think of that
 
 
2 hours later…
3:33 AM
Anyone out there?
 
yes
 
3:48 AM
who is not out there is in here
 
alright, haha
So, random question
I'm a newbie, and I'm sure you remember being in this position a bit. There is always some new intimidating keyword to learn, or programming idea
Is there ever a point where you feel comfortable and that you understand a lot of what's out there, or do you just specialize on what you are going to work on, like asp.net/c#/sql or php, javascript, etc etc
and then regard all the rest as noise. I mean suppose there is never going to be a way to know "everything". I'm just saying it's overwhelming how much there is to learn. I think I may need to specialize some more instead of trying to learn everything at once.
 
stick with what you are going to need
if you want to learn web technologies stick with JS/HTML/CSS and MVC
if you are going to add SQL then you will need to learn that
but then it all comes down to learning the libraries
 
There's a great quote out there on a site that's blocked at my work
programming languages are like Pokemon skills, you can only know four at a time before you have to forget one
 
4:04 AM
you can only know 4 at a time.. that is kind of lame
you can only learn 4 at a time more or less
 
right now I do C# and javascript, with powershell, sql etc as peripheral tools
I can debug PHP for my girlfriend when her wordpress sites crash
but it is odd and I don't like it
 
So, how do you feel when you hear the terms razer and asp.net?
 
feel like it's good tech once you get over not seeing the HTML in preview mode
 
Do you use that stuff at all? If not, is it intimidating, or do you just regard it as noise
 
we use razor
 
4:06 AM
ya use razor
everyday mvc sql js css
 
we're using backbone and client side js more now
 
ok, I'm just trying to find a good example here.
 
asp.net predates my web career. I did a bit at my old job when the web guy was sick
I did win forms in vb.net, we had an online portal to the slow enterprise system
it was horrible to deal with
so, that might be asp.net or the fault of the architect
 
Yeah, and my point is that it's basically C#, but it all seems so intimidating because there are so many damn keywords out there
 
mixture of both
 
4:08 AM
you'll get there mate
 
web forms was a mess sometimes it was easier in asp classic
 
it's just a matter of programming
 
how do you guys feel about xaml?
 
serves its purpose
 
have done a few projects init
the data binding is nice
not being stateless is nice
no cookies is nice
 
4:09 AM
I started to do some xamarin stuff because I thought I could leverage c# to make ios apps. It seemed like I ended up needing to learn something new and completely unrelated
because of xaml
Do you guys use xaml regularly? It seemed odd to me the little I messed with it.
 
I dont use it
I am just installing the xamarin stuff for VS now
we're writing a cross platform app
 
I read that it wasn't being leveraged by many developers. I really don't want to learn tech that I'll never use. Only so much brain space to store all of it
 
learn web technologies
they are the ones most people want
 
I've obviously already learned a lot of HTML and CSS. Everyone starts with that.
 
unless you really need to learn xaml or wpf leave it till you get better at that
 
4:12 AM
I went to C# and Java and then backwards to Javascript. I'm currently in Javascript mode, then going to PHP
 
I found toying with mvc and the related tech got my head more around C#
using bootstrap can easily make a mobile friendly website
 
Oh, yeah, that's a good question
as far as MVC is concerned
 
that allowed me to then pick up on more c# stuff that I needed
 
I learned some Swift and they were stressing the "MVC" nature of the development
 
granted I was fluent in vb.net so I could easily look up vb on msdn and see the c# translation
 
4:14 AM
took a class in vb.net then did the final in c#
 
I feel I have a good understanding of MVC. Model is the database/server, controller is the code behind, and view is the UI client side correct?
 
yeah, that's about it
 
ya that is how it works
 
I haven't learned vb. That's all being supplanted by C# right? I have an opportunity for an internship that is essentially going to be helping convert all their old vb into C#
So, how is everything not MVC?
 
dont bother with vb
MVC is just a paradigm to separate concerns in your codebase
 
4:15 AM
vb has it's place, in the past
 
eg in winforms you sometimes had to write logic on the form
which is bad
 
Pretty much everything we are going to write is going to have a UI, obviously there needs to be code behind, and most of the time there will be a database for personalization and data storage
 
tho, I do use some vb libs in a file copy project
I could make it a poweshell tho now..
 
doing a VB to C# conversion doesnt require a lot of VB knowledge
I love powershell
it's so clever
 
I love it for exchange
 
4:17 AM
cool. Yeah, If I go that way with my internship, I figure I'll just be doing a lot of googling
 
don't even open the manager anymore
 
I wrote my own cmdlets to do server maintenance tasks
 
ya you always do a LOT of googling
 
it's amazing how easy it is to write powershell cmdlets in c#
 
lol Yes, I'm aware of that
 
4:17 AM
I'll never make another console application
 
ya it is once you get the wording down
 
So can you give an example of something you guys do that isn't MVC
?
 
don't think you can access a db in ps?
 
everything has UI, code, and database pretty much right?
 
that's the last console app I made, was to make sites but I have to read from a db and copy files
 
4:18 AM
I write Windows Services in C#
no front end
 
ya some kind of UI
 
@juanvan you can include powershell cmdlets in your c# module
use invoke-sqlcmd from the sql server powershell tools
 
ohh never thought about that..
maybe when I update the app for science ;-)
night guys time to get some rest
 
cya
 
5:11 AM
Hi I am trying to show an alert in page Page_Load function .
I am using this code :
Page page = HttpContext.Current.Handler as Page;
ScriptManager.RegisterStartupScript(page, page.GetType(), "err_msg", "alert('Simple message');", true);
But the alert is not showing .
Why ?
 
Is it possible to finally let C# stop being nasty in C# 7.0? Disabling all those annoying compile time type checks and allowing types to freely move around? I'm really annoyed that I can't first make X an integer and then later on in the function make it a double. - I KNOW what I'm doing, why does C# not allow it by default?
 
uh
c# is strongly typed
if you want a double make it a double
 
Why is the alert not showing ?
 
5:55 AM
1
Q: How to put a check on empty dropdownlist in asp.net

mikaela01In my code, <asp:DropDownList ID="roomnumbers" AutoPostBack="true" runat="server"> </asp:DropDownList> gets values on another dropdownlist's OnSelectedIndexChanged and without that, it stays empty. Now how to do I use this empty dropdownlist 'roomnumbers' in if-else condition? I've tried: if...

please anyone help to solve this problem
 
wtf anyone know why my shit key type mvx
and left shit key type nbz mvx
lol i can't even type question mark ... the moment i click shift it write mvx and press enter by itself ... happened since i turn pc on today
 
6:15 AM
a hello Clowdy monday Morning guys!
 
yeh i find this myself, just restarted not fixed i find this click the 10 reply but it wont show me the replies lol probably browser bug i try something else
 
6:53 AM
oh hey yo
 
Hi all, i need to launch windows from application from url, ie if some one opening one specific url protocol i need to start my application. am new to windows development plz help me
 
@ArjunTRaj you need to use the registry key
HKEY_CLASSES_ROOT /
  your - protocol - name /
    ( Default )     "URL:your-protocol-name Protocol"
    URL Protocol ""
    shell /
      open /
        command /
          ( Default ) PathToExecutable
 
where i need to add this @satibel
any xml files ?
or is it system Reg?
 
22
Q: Writing to registry in a C# application

PeeHaaI'm trying to write to the registry using my C# app. I'm using the answer given here: Writing values to the registry with C# However for some reason the key isn't added to the registry. I'm using the following code: string Timestamp = DateTime.Now.ToString("dd-MM-yyyy"); string key = "HKEY_L...

the windows registry
 
7:07 AM
loool this is such a weird coincidence .... my keyboard got this weird bug today 2/27/2017 ! i went to my asus panel and see i purchased this laptop exactly 2 year ago
Purchase Date:2015/02/27
 
@satibel cn u help me to add the above reg from c# code <

actuly my intention s , i wll gv one exe file and after installation if thet user s openg any link with that protocol , my application nee dto start
 
@satibel All this actual coding talk in the morning is confusing me
 
7:24 AM
@ArjunTRaj then I'd suggest using a nsis installer to set the key.
-1
Q: How to make a "this link need to be opened in a program" link (windows registry)

TegnerCodesI have tried to get this to work many hours now. It is almust working. My situation is that i'm creating a installer with nsis and would like to make a link like skype (call & skype) and steam (steam://join/214456146) that will launch my program with some arguments. The problem is i can't get it...

or use whatever program you want to use to make an installer, and set the reg key with it.
if you aren't using an installer
!!tell ArjunTRaj ddg set registry key windows c#
 
7:42 AM
`morning.
 
morning
 
@CapricaSix durinng installtion i need to doo these things <

y am doing this because from windows universal app just need to open one website in IE not in edge

if u know how can i achieve this pls help

@satibel
 
Hi all,

how can i open one web page in IE (not in edge) from windows 8 application (using c# or winJS etcc)

i tried many options and now plaing to do this

windows 8 App - > opening one url (custom protocol) -> another windows native app (listening same url) - > opening my website on IE -> redirecting to another URL - > opening Windows8 app (custom protocol listener)

please share any better idea to do this
@satibel@CapricaSix
 
8:08 AM
why do you need ie?
 
@satibel need to run one java applet
 
do you have another way to do it than use the applet?
is what the applet does that complicated?
(by the way, caprica is a bot)
!!say hello caprica
 
it is one card reader client , and they dnt have any other option
 
@satibel That didn't make much sense. Maybe you meant: sad, yay
 
@satibel cuz of security reasons, IE is the most secure of all without any things
!!lick @ArjunTRaj
 
8:11 AM
@Nerdintraining Mmmmmmm @@ArjunTRaj tastes just like schinkenspeck!
 
schinkenspeck kek
 
!!sudo say hello caprica
 
@satibel Okay.
 
@CapricaSix
 
ok, so bodge time it is.
@ArjunTRaj she won't answer
 
8:14 AM
@satibel ok, u have any idea , withoutt creating native app and redirections
 
do you need the native app?
without the redirection you can use the internet explorer com object inside your c# app/exe
https://msdn.microsoft.com/en-us/library/aa752084(v=vs.85).aspx
 
@satibel ok y i opted for redirection because i can link with same UAp
 
I think the way you probably should go is to make a library (dll) that does all the smart card stuff (using the IE COM object) and then reference that in your project.
2
Q: Controlling IE from C#?

ryeguyHow can I control IE form C#? I know that via COM you can do all sorts of interesting stuff, but looking at the SHDocVw namespace once I import the reference into my project there doesn't seem to be that many methods. For example, how would I force a button to be clicked? Or set or read the value...

though I'm not sure how ie would handle the applet
 
8:29 AM
ok@satibel
 
or just embed a webbrowser form in your app.
 
but whether i can import these in to windows8 app ?
 
http://stackoverflow.com/questions/40382244/webview-with-java-applet

windows 8 app should use IE (and uses webview, not webbrowser)
but if it's windows 10 app, it uses edge (which from what I understand doesn't work for you.)
 
good morning
 
morn all from bonnie scotland
 
8:36 AM
though technet.microsoft.com/itpro/microsoft-edge/… seems to make it use IE for your specific website
 
@satibel am using 8.1 tablet
not windows 10 , but 8.1 one also havng edge as default browser
 
but webview uses IE
 
@satibel but even on the web view applet not loading..
 
have you tried putting it in the enterprise mode list?
 
8:51 AM
@satibel let me try
this the useragent got it from webview
 
9:04 AM
Hello,
I want to create some kind of "session" like feature when user login (wpf app)
is storing global array with user details will be good idea?
 
Client-side login session?
 
its using local / network drive sqlite db
where users stored, and to connect to db user will have to login and if he exists in db it will allow to use the program
 
9:23 AM
That seems like a terrible idea.
SQLite databases cannot be used concurrently. (On network disks)
 
they can
only 1 write
max 5 users
should work :D
 
On disks that support locking, yes, but network disks don't afaik.
Besides that, direct access to a db is just meh.
 
Morning o/
 
i tested with 2 PC and it seemed like it works
 
Race conditions are hard to replicate but once they happen shit occurs.
 
9:31 AM
yes but I hope it won't happen :D
btw if I use sql server, I will have to build server that will notify all users when someone commit change?
 
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; WebView/2.0; rv:11.0) like Gecko
@satibel
 
@Mr.Noob No, SqlDependency exists for that
 
9:47 AM
ah ok, Thank you!
 
@ArjunTRaj yes, it's IE but after reading more it seems it doesn't enable plugins in webview
 
@satibel yes :( applet s not running ..
so to run applet if i create native app and generated one dll, whether i can run that in background without moving the focus from my windows8 app
?
 
10:05 AM
EF Linq cant support ${} formatting??
why is it.....so...
 
@misha130 Because there's no clear way to translate it to SQL?
 
just translate it to " " +
in the background
 
Well, EF6 was released in 2012, a couple of years before C# 6
 
yes, that is the issue
I know
 
10:27 AM
Where is the Ask button in my profile! I have to go to a question or the home page to get it!
 
That's because you're not asking yourself.
 
@AvnerShahar-Kashtan umm, I think it was there, before the last update!
 
if your app doesn't have a gui, it should not take focus off, but it may have a warning asking to run the java applet.
 
!!java
 
@Kieran That didn't make much sense. Did you mean C#?
 
10:40 AM
hello Kieran
 
o/
 
11:10 AM
@satibel any tricks to redirect one web page to IE from edge
@all
 
@ArjunTRaj fun fact, Edge is IE
Although thats not strictly true
Edge is worse
 
@Kieran no :P both are different
 
No, they are basically the same thing
but to answer your question, you can't open a new web browser on the client from your page
 
@Kieran anyway both are different apps , am searchng any option like <meta> tag
am searching for one solution - run one applet on IE from windows8 app,

plz help me if u have some idea @Kieran
1. how to open IE (not edge) from a windos8 application or
2. Run applet on web view or
3. Open another application from windows8 app
4 Execute .jar ,msi or exe files from a windows8 App
...
any chanace to solve any of my issues
@all
@AvnerShahar-Kashtan
 
11:27 AM
Please don't ping random people who weren't involved in the discussion,.
If I was able and willing to help, I would have already.
 
Or to put it more bluntly, fuck you.
2
 
Oh hai Roel how are you?
 
MiP
Why are Java's features better than C#'s?
 
@MiP Maturity, stability and an early focus on community and ecosystem.
(Yes, my approach to trolling is to engage earnestly)
 
11:42 AM
Quick Question: Why is this happening? gist.github.com/anonymous/aaa50516fdd85be6907b189781b0cde7
 
@Rijnhardt whats happening in ProcessList(list)?
 
@Kieran it finds an index and removes items before that index.
 
is dupList.count 12 before the ProcessList call?
 
What you think is better for building up your skills and career: working in a company in multiple project and technologies (web, mobile, desktop, sharepoint) or in a specific field (web developer)
 
@Kieran yes it is
 
11:48 AM
@Rijnhardt You need var dupList = new List<int>(list); to really dupe it
dupList refers to the same List instance
 
@ntohl d'oh. makes so much sense! thanks!
 
@MohamedAhmed It depends. I would say "multiple technologies", but it depends which. It's better to work only on AngularJS, say, rather than a place that lets you do Cobol and PL/1 and MFC.
 
@ArjunTRaj see enterprise mode which forces edge to open a website on ie for compatibility
random trivia: in russian friend is pronounced "drug" (другъ)
 
@satibel this s not feasible for me , on every device i need to setup enterprise mode ..
 
@AvnerShahar-Kashtan Thanks, I adopt that opinin
 
12:04 PM
@ArjunTRaj you can set it up via the registry, or active directory.
 
@satibel ok , while installing the app i can do this (via code) ?
@satibel how can i show local html file in a web view ,native windows form application .
i have added webview and its loading websites but i nee dto show some local html pages
 
@ArjunTRaj yes, check your installer tool
@ArjunTRaj file://c:/dir/file.htm
 
@satibel yes , but JS s not running ,
same local file is running on browser
ie its an ionic2 application , its runnig on browser even with file://
but not on webview
 
@AvnerShahar-Kashtan Ohi, I'm great thanks bruh. You?
 
am getting "an error has occurred in the script"
@satibel
 
12:24 PM
I am confused, js or java?
 
Jsva#++
 
@satibel javascript , local html with some javascript
 
Java is just an abbreviation for JavaScript
2
 
@RoelvanUden good, good. it's all good.
 
12:37 PM
@AvnerShahar-Kashtan :thumbs_up:
 
12:51 PM
@RoelvanUden DUH!
just like VB is an abbreviation for VBScript
185
Q: Embedding JavaScript engine into .NET

aprilchildjust wondering if anyone has ever tried embedding and actually integrating any js engine into the .net environment. I could find and actually use (after a LOT of pain and effort, since it's pretty outdated and not quite finished) spidermonkey-dotnet project. Anyone with experience in this area? E...

 
Can't you just use the Edge engine, Chakra, nowadays? (ChakraCore)
 
1:16 PM
@RoelvanUden What about Chakra#++ Core 1.0
 
1:52 PM
shut up
2
 
@SteveG shutting down...
 
and you better not turn it back on until you've learned your lesson
 
it's now safe to turn off your computer
 
looks like You learned Your lesson
 
who even shuts down
 
2:01 PM
me
 
planet killer
>D
 
deathstar
I SHUT DOWN DAILY
 
Daily like a hair dryer
 
War
k
 
2:17 PM
0
Q: How to put a check on empty dropdownlist in asp.net

mikaela01In my code, <asp:DropDownList ID="roomnumbers" AutoPostBack="true" runat="server"> </asp:DropDownList> gets values on another dropdownlist's OnSelectedIndexChanged and without that, it stays empty. Now how to do I use this empty dropdownlist 'roomnumbers' in if-else condition? I've tried: if...

can anyone help regarding this
 
whats the error?
or is that your question
 
War
@RamishaFarrukh seems simple enough
I assumed the problem was a js one
the other answer covers the server side of that
 
2:52 PM
Hello children
 
o/
hello @War
 
Does anybody else find the new tab that follows you as you scroll on SO annoying AF?
 
not really I kind of enjoy it
 
War
@SteveG hi
 
it is more 20th century
 
2:53 PM
God, I think it's fucking annoying.
 
i like it
 
shit, I guess I'm the only one.
 
no problem with that
 
to each their own
 
Any way to opt out of it?
 
2:54 PM
personally, I find DS9 just a terrible show
 
@Nathvi stop using SO
 
:p
 
@SteveG really??
 
yes
 
Does anybody use virtual methods a bunch?
 
2:55 PM
guess I like them all tho
 
they sit on a space station that doesn't move and fight aliens
to me, thats like playing paintball, while sitting on a chair behind glass
 
true it's all on the ship
 
@Nathvi Does anyone not?
 
I don't really. Just started using them.
 
I thought you've been programming for a while
 
2:58 PM
I have. Just didn't really see the use for them, or the complexity of the programs I write aren't very complex.
 
You don't see the use of ToString()?
 
I mean, I understand the concept, just have never used it, or saw a good situation to use it in.
 
You've never used ToString()?
 

« first day (2326 days earlier)      last day (2616 days later) »