« first day (2304 days earlier)      last day (2870 days later) » 

01:52
It's been quiet today.
 
4 hours later…
05:46
you wanna know why i hate linux even more? it's scripting language is shit
conditional logic is retarded
bash scripting is a hell hole
06:00
When migrating to Azure do I need configuration.cs file for each dbcontext?
06:14
0
Q: Connection string for oracle 11g for classic asp

Sagor AhmedI set up an ODBC connection using ODBC Data Source Administrator . I have named it "BIOTPL" connect like this: The corresponding code is : Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "Provider=OraOLEDB.Oracle;Data Source=BIOTPL;User Id=biotpl;Password=biotpl;" But I am g...

Please help me .
what technology are you using?
this windows server/windows sql server?
I am using oracle and classic asp
windows 10
you are using c# to control an oracle db?
automate an ODBC setting?
classic asp to oracle
I have configured odbc connection
so you can sucessfuly use classic asp to manage your oracle db?
but in a specific scenario, you are trying to connect/set up a connection but is failing?
06:19
Yes
Previously oracle xe version is used
Now I want to use oracle 11g
Previous connection string is :
"Driver={Oracle in XE};DBQ=xe;UID=biotpl;PWD=biotpl;"
so the command has changed, 11g has new commands, have you tried google?
maybe you are facing a change in syntax
database connection is not working
Conn.Open "Provider=OraOLEDB.Oracle;Data Source=BIOTPL;User Id=biotpl;Password=biotpl;"
This is not working
 
1 hour later…
07:36
`morning.
hi
dont you guys just love bash programming?
because to me it's a hellhole
Love to bash programming? Yes, we do. Programming is terrible!
it does not make sense
@AvnerShahar-Kashtan what book do you recommend for me to get started with powershell?
dis joke
i want to not only learn the basics, i want to be an expert
@AdanRamirez , help me plz
i hate bash conditionals
I don't really think powershell is any better
c# makes more sense to me, why cant bash be based on oop :/
cause bash is functional
07:46
god i hate bash/batch/WHO
well wait a second bash is the best out of this trio
i see what you mean, i got no choice
I really think bash helps in life though
can you explain that?
@AdanRamirez Dunno. Never read a book on powershell. Never read a book on any programming language, actually.
07:47
I can't sadly..its more of a matter of preference
Books don't work for me to learn programming.
like I like how bash has clear standards
I find myself actually writing it on windows when I am too lazy to do things
really? tell me how this makes sense: NewVariable=50
eh thats not a bash standard
in c# you do: var NewVariable = 50;
07:49
@AdanRamirez What's wrong with NewVariable=50? It's pretty clear.
you see the difference? the (;) tells me where this stament ends, the 'var' is telling you it's an open variable
looks like pascal I think?
it's clear but looks dangerous @AvnerShahar-Kashtan
if i write 500+ lines of bash i dont think il make it out alive
bash is okay with 1-10 lines, anything more and wtf am i looking at
wheres the {}
methods/classes/oop?
I forgot which but aren't there indent based languages?
The lack of statement terminators isn't unique to bash (python, vb, javascript)
Don't write 500 lines of bash, then. It's a scripting language, not an applications language.
07:51
like based on the tabs you say whether its an if start or end
there probably is misha, but my point is that they suck
It's not an OOP language, so why should it have classes?
You're comparing apples to... well, scripting languages.
@misha130 python, yeah.
from what i know, scripting languages can do anything
because it's a programming language
Sure they can do anything. That doesn't mean they should.
or i am just dumb and dont know what im talking about, it may be the case
07:52
You can write a REST service doing DB CRUD logic in C. Hell, you can write it in ASM. That doesn't mean it's the right tool for the job.
"every" language has its purpose more or less
how can you write it in asm? I wonder how you implement the socket connections
why should we learn different syntaxes.. to me it's easier to write bash scripts like i write c# applications...
@misha130 Same way as C# does it - by calling into OS APIs.
are they written in asm too?
well what if they were
@misha130 Some. Mainly in C.
07:54
but do you get my point?
The OS exposes callable APIs using a standard calling convention. You can call them from ASM - set the data in the stack and invoke the methods.
html/xaml/bash/c#, 4 types of programming, why cant it be just 1, a universal?
vaguely remember so
Because then it wouldn't be as good at any one job.
you put html in that list @Adan
07:55
Also, because it wouldn't be good for every person.
also xaml?
I think your examples speak for themselves, I can't write code in xml
-4
Q: Why different languages have different syntax?

Pratik C JoshiDifferent programming language always/most of the time use different syntax. For example take PHP, Java and Python. In Php & Java semicolons are compulsory at the end of the line, yet Python gives an error if I put semicolon at the end of line. In PHP & Java we must use brackets for more than ...

oh...
that answered my question
but i have 1 last thing to say, if i want to, can i write bash like i do in c#? by using a mod or something?
force bash to take {} and (;)?
@AdanRamirez That's a great way to write bad bash.
1) It will be incomprehensible to other bash scripters that might need to read your code.
07:58
2) It will make it hard to find good examples and resources online, and will force you to keep translating every sample you find.
>co.il
those damn Israelis
@misha130 gave me hope
stick with it
but yea considering Avner, i just have to learn other syntaxes
oh well :/
@misha130 Blogger automatically puts your local domain on shared links, not the original blog's.
08:00
ah
3) You can hack together something to run C# as a shell script, but... why? stackoverflow.com/questions/20392243/…
I've been bamboozled to think everything is israeli
Just learn more than one language. It will be good for you, professionally.
yea.. is this good so far? C#, MVC, Java, bash
what do you recommend me adding to that list?
i wana begin with powershell
If you only do C#, and try to do everything the C# way, not only are you limiting your experience to One True Way to do things, you're also making it hard for you to adapt to e.g. changes in the C# language.
C# 7 adds a couple of new ways to do things that many people don't like, but I think are interesting, like tuple decomposition.
08:03
hammer nail allegory
right but what other languages/syntaxes should i learn?
python, javascript.
by MVC i included html/css/javascript/jquery, my bad for not explaining
ah python, i took a semester of python, what is it good for?
@AdanRamirez terminology is important. MVC is a workflow pattern rather a language or a type of syntax
this is off-topic but could relate, you guys study network engineering? cisco?
08:10
aye I studied it
just curious on the industry
it helps if you must know in the programming department
python is a very popular language, both as a scripting language and as an application language. It's used extensively in academia for math, language processing and other intense calculations. It's got a strong ecosystem for many such uses.
well I have a few friends who are network engineers, oh and avner actually worked in that for a couple of years
should ask him :^)
I did 3 years network engineering in the army but that doesnt count
Also, it's object oriented on one hand, but very different from the C-inspired syntax of Java and C#.
Never studied it formally. I worked as an IT guy for six years, took some classes on the OSI model and the Windows networking stack (NT 4.0!), but nothing formal.
08:15
what's with avner and not reading books
so you learned everything from google? *with all due respect
people learn in different ways
Yeah, mostly. Took a couple of Microsoft MOC classes for C# when I got started, but they weren't that useful.
some may listen, some may experience some may read
@misha130 just curious on the industry, is there many jobs? what's trending? what's your opinion about the work there?
I learn best from tutorials and hands-on trial and error.
08:16
@AdanRamirez I hear alot of people sit in the server room and watch movies for 8 hours and go home
sometimes they install adobe acrobat
on peoples computers
OMG so true
when i worked at my colleges IT department, the sys admin and my supervisor were 'collaberating' sharing videos/stuff they did over the weekend
and im the grunt doing all the work
@AdanRamirez Depends on the company, I suppose. You can be a network engineer in a large enterprise, which is relatively low stress, maintaining the infrastructure, always evaluating new products or new versions of existing products.
updating java/printer issues/ internet issues/ basic user error issues
That's IT/technical support, which is usually distinct from network engineering. Not always.
08:19
Or you can be a network engineer in a place like StackExchange, which is a more product-oriented role where you're constantly monitoring and tweaking and optimizing performance of your core product.
@misha130 tl;dfr.
well ok then mate
omg that's so funny
because it's so fucking true
you know what was the 'day' where we were shitting our pants?
when we didnt have an HDMI cable to supply to a meeting that included the VP, etc.
so i pulled one from another room that had a TV, my sys admin was shitting his pants
well consider what avner said
it is based on the company
problem solved, felt like a hero, and sys admin went back to watching jewlery to get his wife
I frankly would rather go homeless than watch movies all day and be absolutely not productive
08:23
well, with any job theres going to be a time when they need you and your skills
for my sys admin, 1ce every 6mo
and only he knows how to fix it...
great talking with you guys, <3 c# it's love and life
08:54
I like C# because it's a very pragmatic language.
It doesn't try to adhere to any particular paradigm religiously.
It also means it's a messy language with multiple approaches to all sorts of problems.
another off-topic but kinda related, what SQL service should one get? oracle, mysql, or microsofts SQL?
another question, microsoft has free SQL, SQL server express, they also have hyper-v core for free, i mean, why go to linux when microsoft is offering free things?
1
Q: Connection string to connect to oracle 11g from classic asp

Sagor AhmedI set up an ODBC connection using ODBC Data Source Administrator . I have named it "BIOTPL" connect like this: The corresponding code is : Set Conn = Server.Createobject("ADODB.Connection") Conn.Open "Provider=OraOLEDB.Oracle;Data Source=BIOTPL;User Id=biotpl;Password=biotpl;" But I am g...

@AdanRamirez That depends, of course.
Personal project or company? How big of a company? What's the application's needs? High throughput? What's the estimated data amount? Will this run on the same machine as the application?
Why run on Linux when you can run it on Windows? Because Linux is a fine, supported and stable server environment. If your org's IT infrastructure is already based on linux, adding a Windows server is a pain.
ah that's true, im assuming right off the bat for small and personal projects
for common sense reasons
09:10
SQL Server Express is nice, though limited in maximum size and features compared to the full-scale SQL server. Will probably be enough for most personal projects. Hosting it will require a Windows server, though. Personal Windows hosting is usually more expensive than the equivalent Linux hosting.
Oracle is right out. It's a huge, expensive beast not suited for anything apart from large-scale enterprise apps, and even then it's probably not a good idea.
MySql is popular for PHP and open-source projects, but there are better alternatives out there if you want open-source friendly, especially since MySql is owned by the ever-litigious Oracle.
Postgres is a good choice.
linux isn't about free
09:24
Generally, over the lifetime of a company/product, the licensing cost of the OS/DB isn't a deciding factor.
It might be early on when a startup is getting started and doesn't have a lot of cash, but that's the reason Microsoft has the BizSpark program, to give startups free licenses for almost anything they need in the first couple of years.
god damnit
Attempting to make a smoothie. Ice + fruit + yoghurt has now produced a sort of frozen dough that's stuck above the blades
ffs
Serves you right to make a frozen smoothie in February.
In a country that does dip below freezing, of course. A smoothie here is perfectly acceptable in the not-that-rare sunny days.
09:37
And the moral of the story is: Only coffee and other such beverages are true.
10:14
I like blackcurrant cordial and coke.
But it has caffeine. It tastes great.
lol j/k
an ex colleague of mine liked blackcurrant cordial in her Guinness
Yeah, that's a thing.
Never had it.
Mainly because Guinness is fking expensive in the city and I dare ruin it.
I've paid £5.60 for a pint of lager, and not even in London. What's expensive again?
10:20
Damn.
Where I work (rural area) you could get two pints for that.
Heh. I'd love to be able to pay just £5.60 for a pint of beer.
beer expensive in Israel huh?
£6-7 is a standard price here.
And the average salary is lower.
sheeit
10:21
I mean...does barley actually grow in that climate?
Sure.
There are some pretty good craft beers here as well.
It's a shame that the two popular commercial beers are either 1) crap, or 2) pretty good but with an astonishingly sexist marketing campaign, so I avoid them both.
Ahh, yes, the "beer is for guys" thing?
I was amazed to hear how expensive beer is in the U.S.
But still, beer isn't a staple like in other countries. There isn't the same sort of drinking culture.
I've never been
But heard from friends
even the crap generic stuff, in a bar up to twice as expensive as a sensible draught price in the UK
10:23
@AvnerShahar-Kashtan they are alright
they are kind of really cheap or too presumptuous
as in hipster
and by cheap I dont mean price
About ten years ago, I had a large road trip through the US, coast to coast. One thing I was afraid of was their love-in-a-canoe beer.
But I was pleasantly surprised. Everywhere you go, there are local breweries with local beers - I'm not talking artisanal craft beers, which you mainly get in the large coastal cities (though they're usually fantastic). I'm talking about generic, commercial beers from smaller local breweries. And many of them were great.
It's easy enough to avoid the Bud Lights and Millers and find good, cheap beers.
I'm meant to be doing the east coast in september
if it ever gets organised
I am going in 2 months :^)
gonna plow west coast
wait, shit, I can't geography
west coast it is
I mix up where things are vs. what direction you go to get there
I just figured you were gonna see the Oregon trail
10:30
West coast tour is fine. I can recommend some spots. And some good overpriced artisanal hipster craft beers. :)
 
1 hour later…
11:58
oh boy sticking utility methods/functions in to base classes is stupid and so am I
Everything is either 'utility' or 'useless'
Stick'em in static, publicly available, implicitly versioned god classes instead.
thats what I am thinking
12:33
Is there a lightweight class where I can catch keystrokes at low-level? I tried severals, but they are buggy, not lightweight or crash at start.
What do you mean "low-level"?
12:49
You mean raw?
You can hook into Window's global KeyPressed event hook. It's at a lower level than an app's OnKeyDown events, though it's not the raw keyboard scancode, I think.
13:02
@AvnerShahar-Kashtan With low-level I mean that it catches keystrokes if the form is not focused or even minimized. Could you also give me a code example or a URL to a site to show me what you mean?
@miny1997 The search terms you'll want to use are "global keyboard hook". This should cover it:
40
Q: Global keyboard capture in C# application

Jeremy EdwardsI want to capture a keyboard shortcut in my application and trigger a dialog to appear if the user presses a keyboard combo even outside of the app. Similar to Google Desktop Search's Ctrl, Ctrl to bring up the search dialog. I have tried using some keyboard hook modules out there that basically...

 
1 hour later…
14:19
is anyone here who can help me a bit with this tutorial simple-talk.com/dotnet/net-development/…
 
2 hours later…
16:05
Hello?
Anyone home?
@AvnerShahar-Kashtan ??
 
3 hours later…
18:40
Hello?
18:55
I have custom userControl that display client data + menu
and i have more than 80 of this
I want to use UI virtualization (WPF)
but the control has code behind that initialize it using data from db
 
2 hours later…
21:13
I know the delegate keyword here is pointless CountIt count = delegate (int end) {.....} in the sense that it can be changed for a lambda expression. But am I correct in thinking that the use of the delegate keyword to declare a delegate type, is necessary, there's no alternative way there. So e.g. delegate void Abc(); the delegate keyword there can't be replaced with a lambda or anything else, right?
please answer this question anyone
0
Q: How to use StreamReader in .net core

Abhimanyu AryanI am using dotnet core version 1.0.0-preview2-1-003177 in inside of Visual Studio Code C# Sharp project. I am not sure how to use StreamReader class. Visual Studio Code IntelliSense only provides System.IO.Compression & System.IO.MemoryMappedFiles and not System.IO.StreamReader. I am sure I'll...

 
1 hour later…
22:22
hii
22:41
Ahh, the nice smell of matrix-vector multiplication in the morning
> public static XYZ operator *(Mat3x3 a, XYZ b) => new XYZ(a.M00 * b.X + a.M01 * b.Y + a.M02 * b.Z, a.M10 * b.X + a.M11 * b.Y + a.M12 * b.Z, a.M20 * b.X + a.M21 * b.Y + a.M22 * b.Z);
22:58
I have grid that has maxWidth of 840, and I want it to be autosize but make it stay at right side of window, how to do it?
its WPF

« first day (2304 days earlier)      last day (2870 days later) »