« first day (1523 days earlier)      last day (3428 days later) » 

1:03 PM
WordPress is nice. What's so wrong with it?
Yes, there are vulnerabilities with it at times. As is the case for most software.
Those get patched, so patch your site, too.
 
Aye, it's fine. Well supported and a fairly shallow learning curve.
If it were Drupal I would have a different opinion.
 
@MoonOwlPrince ASP is fairly steep learning curve.
 
ASP.NET/MVC does not however
 
Yeah it does.
 
It does if you don't understand MVC design patterns or C#.
 
1:06 PM
There's all kinds of magic to it if you have 0 programming knowledge.
 
I'd say it does anyway
 
PHP on the other hand.. is so easy.
 
@RoelvanUden which is both a curse and a blessing
 
Easy != Simple as the wise Kendall Frey always remarks
 
I understood MVC and C#, to a point, before I started learning ASP.NET MVC
And I found it really hard to get into
But it clicks, as with most things in programming.
 
1:08 PM
Exactly. Good as entry level language, bad for getting information (so much bads), libraries, etc. Honestly though, good PHP is really nice.
 
It took 5 years for WebForms to 'click' for me.
 
webforms doesnt click
 
I find webforms unusable
 
it destroys
 
@RoelvanUden I have been trying to forget everything I know of PHP
 
1:08 PM
@MoonOwlPrince Kendall Frey and wise without a negative in there? We're talking about the same person, aren't we? :-D
 
If you implement PHP properly, it's adequate.
It's not good, but it will do the job.
 
I was dumbfounded when I did one week of PHP after 3 years not doing it.
It's changed a fuck-ton. It can't be compared with what it was before.
 
Hahaha
 
It's honestly really nice now.
 
Did that much change since 2013?
 
1:10 PM
@RoelvanUden I will check it out for educational purposes only but I refuse to use it beyond a blog or a forum
 
@Sippy Not the language per-see, but the eco system: absolutely.
 
@RoelvanUden Please sir, don't tempt me.
Not that I'm tempted to use it but ..
I don't wanna xD
U WIL MAKE ME CURIOUS
 
We should be men of honour by avoiding it
There are so many alternatives today e.g. Scala, Haskell, F# just to name a few
 
0
Q: My method adding items to a ListView runs, but does not work eas expected, when called outside of Class

JamesOk, I am tearing me hair out here! I am developing a Windows Store Universal app. I have a view called Mainpage.xaml.cs, within this view I have a method that add items to a Listview in Mainpage.xaml. The listview code is below: <GridView x:Name="sidebar" Grid.Column="0" IsDoubleTapEnabled="Fa...

If anyone has any free time :-)
 
@Sippy It's honestly never bad to learn about why or why not.
Then you can make an informed decision. Just hatin' because of hating'.. no.
 
1:16 PM
I hate because var x = 1; x = '1'; works
 
Then you will hate all dynamic languages.
 
I do.
But I'm learning that's something to get over.
 
That I do not understand. There is tooling to help you avoid careless mistakes.
But still have the power of dynamic typing.
 
Go is a good programming language if you care about it. You get the productivity of Python with the speed of a statically typed language
 
I fail to see the benefit of Go over NodeJS.
 
Yeah.. that's full of ID-10-T issues.
 
@RoelvanUden Roflmao I've never seen that before
I like it though.
 
Do you like this site: poptip.com ?
 
Lol
Yoplait
Because Twitter is full of useful information about yoghurt.
 
I hope she went through Y Combinator
 
1:46 PM
Is it possible to bind to XAML element from a method not in a view class?
 
@James you can bind from one element to another
ObservableCollection over List in wpf
 
@MoonOwlPrince Well, I'll admit Go does look powerful.
 
Now speed hype aside
 
Ah, but it has multiple threads? I hate locking and threading by now.
 
If I were to implement a server client app then the server would be in Go while the client is in C#.
@RoelvanUden it has multiprocessing
The essence of Go is its concurrency model
 
1:56 PM
Which leads me back to C#
If I want threading and locking, I'll go for C#.
I thought Go used a single-thread multiple coroutines approach, like node.
 
Nope that is a critical difference between Go and Node (NB: I have never written a single expression in Node
From what I have been reading the migration from Node to Go is because of goroutines
 
Yeah, I get it. So essentially it's embracing simpler syntax with low level control.
 
Sort of but with mandatory garbage collection
 
So whereas you can have multiple async routines in NodeJS access the same data without a single thought of locking, you have to think about that in Go. Of course, the same applies to C, C++, Java, C# and so forth, but NodeJS was great because of that.
 
user1804599
@RoelvanUden you can have it use multiple threads.
 
2:01 PM
Which is exactly what I thought Go was trying to avoid.
 
user1804599
Async I/O being explicit is extremely bad.
 
My entire interest dissolved due to that almost instantly.
 
user1804599
You constantly have to take it into account when designing interfaces.
 
I'll stick to C# as a full control language, then.
 
user1804599
2:02 PM
@RoelvanUden Only fools use mutexes in Go.
 
user1804599
Every sane Go programmer uses channels for synchronisation.
 
I have never seen mutexes in practice in Go
 
@rightføld Oh, explain? You need to have synchronization w/ multiple threads.
Channels?
 
Channels are what Rob Pike recommends and the official documentation recommends.
 
user1804599
 
2:03 PM
The problem with Go as of now is the shitty tutorials that are all over the web
 
user1804599
Basically bounded queues.
 
@rightføld Thanks. I was about to do that
 
That's one weird kind of mechanism.
 
user1804599
Why?
 
user1804599
Queues are pretty easy to reason about.
 
2:11 PM
Yeah, they are easy to reason about, but a language concept for that is odd.
I've not seen that done in a language yet.
Until now, that is.
 
user1804599
Erlang.
 
user1804599
occam-Ï€.
 
I've not ever done Erlang. :-)
 
user1804599
Are similar.
 
Rob Pike loves Erlang
I am yet to learn it
 
2:14 PM
Right, so these channels, they don't prevent mutation of state of a shared object. They are fundamentally only applicable to return values, are they not?
 
user1804599
I don't understand what you mean by "only applicable to return values"
 
user1804599
You typically want to prevent mutation anyway, concurrency or not.
 
You can push something into a channel, e.g. with c <- 1 so a goroutine will be able to read it and process it, and each goroutine can write stuff back into the channel like that as well. So, you're basically just setting this up to make goroutines do something (e.g. get a return value for some task), and not to make them modify some shared state.
Essentially, generic producer/consumer, with a language construct.
Well, producer/consumer/producer/consumer I suppose.
 
Can someone please explain to me how compiled projects in a solution choose which config file to use?
Or link me to something
Cos I don't get it.
 
what exactly are you struggling with?
are you talking about executables or web applications?
 
2:29 PM
@Sippy The app.config in the project root. Or web.config, which can have transformations on publishing defined as Web.<debugOrReleaseOrCustom>.config, which transforms the original web.config with additional rules.
 
Got a web application, it has a web.config. Got a few other projects, which ignore their own app.config and use web.config instead.
It feels wrong putting everything in web.config that I need in specific app.configs
 
@Sippy They would all use their own configs.
 
@RoelvanUden They don't :)
 
magic
 
@Sippy these projects are .dlls, right?
 
2:39 PM
@Squiggle Yes
 
The only relevant configuration is the one used by the executing assembly.
 
dlls dont have their own configs
 
@RoelvanUden That's why then.
What's good practice when you need a configurable data source for your DAL? Configure using web.config?
 
of course
 
Okey doke
 
2:41 PM
that's what the <connectionStrings> section is for
 
^ That.
 
@Squiggle Yeah
It just seemed odd
 
@Sippy the only time I've found that odd is when I've been "doing it wrong".
e.g. referencing config settings from within unit tests.
 
Hm
It just didn't make sense to me that the config for a DLL would be the config for the application which uses it
But thinking about it that does sort of make sense.
 
don't think of it as a "config for dll"
it's a configuration setting for the application. Your dll is just a component of that application.
 
2:45 PM
Right
But one of the major points of DLLs is being able to use them elsewhere right?
Hm
 
@Sippy You should make a configuration section.
 
@RoelvanUden Custom one?
 
@Sippy It is, essentially, what the library is telling you to add to your config.
Yeah.
 
Anyone used PostgreSQL?
 
@MoonOwlPrince Jus
 
2:47 PM
@RoelvanUden Will look into it.
Cheers guys
 
Was it fast enough for your needs?
And was it user friendly for the end user?
I want these guys to handle databases themselves.
 
"end user" for PostgreSQL?
i.e. you?
 
Yes
No
I am not the end user
I want them to do their own databases
 
@MoonOwlPrince Sure, it's friendly, but only with good GUI tools.
The only thing that suited my needs was navicat.com/products/navicat-for-postgresql
 
The can get used to the console. It is simple enough
 
2:52 PM
The free open-source GUI stuff is severely lacking
 
@MoonOwlPrince No.
If they are end users, the console is a stupid thing to force them to use.
 
^ That. Totally. Unless it's super simple, but SQL is not.
 
Like I keep saying, consoles are simple for you because you're a superuser.
 
Just wrapping their heads around Command Prompt is crazy enough.
 
They are unlikely to be superusers.
@RoelvanUden I always find whenever I open command prompt people think I'm a hacker.
"Omg what are you doing, are you hacking my computer?"
No this is .. nevermind.
 
2:53 PM
100 hours of work, checked in
PERTYYYYYYYY
 
@KendallFrey Hehehe
 
They are marketing guys who did coding
 
It's usually not that bad for me, but I have this awesome download tool that's rarely used because it's a command line application. Pretty sure it will be used tons more if and when I add a GUI. :-)
Still.. SQL, or no-sql via console is pretty meh.
 
@MoonOwlPrince That doesn't preclude that they are superusers.
I wrote html+css, coding, before I knew what command prompt was.
 
Yeah and they are used to writing commandline scripts
Both for Bash and Powershell
 
2:56 PM
@MoonOwlPrince That was something you should probably have started with?
Either way, SQL in commandline is a crap solution.
 
They will sort it out. I am doing them a favour
They can write something in VB afterwards if they like using Windows Forms
 
3:22 PM
How is everyone.
 
is that a question?
 
This is a statement?
Hah, fuck yo' brains
 
sorry, I don't know what supersocket is...
 
Does this look right?
.Select(u => u.Id).Where(u => u.Name == NameTextBox.Text)
Can you do a Select with a Where like that? Or should you just presume the Select will hit your criteria correctly?
 
your Where clause is querying a collection of u.Id
shouldn't your Where and Select be the other way round?
 
3:33 PM
Potentially.
 
(all 'u' where name is X) then (select ID of 'u')
 
He is particularly trying to use where.
 
404
 
He must of deleted the question.
Maybe he went with the suggestion of simply doing: .Select(u => u.Id).FirstOrDefault()
 
He must have deleted the question
;)
 
3:45 PM
@Squiggle Fuck proper English, it's for chumps!
 
that's better :)
 
I think I could actually make some decent pocket money by working as a web developer part-time
 
@MoonOwlPrince Then do it?
 
That is what I am now doing and then by February I will be officially independent. The quality of life I will start leading will be significantly less than that I live right now but I will certainly be free
As I mature, learning more, becoming better and getting better jobs with time I will start to lead a life I define
 
4:12 PM
Freelancing is hard work.
The coding bit is easy. The business bit is hard
 
@Squiggle True, alot of regulations and accounting.
 
@Squiggle Seriously, your like another @KendallFrey.
You're seriously are going to make me type: True, large amount of regulations and accounting.
 
@Greg *you're
 
@KendallFrey marry me
 
4:27 PM
have my babies
 
omnomnom
 
not that have
 
This conversation became peculiar.
 
The rapidity with which that escalated was extraordinary.
 
Okay, I'm trying to think how I should word this and what it's called. So basically I want to have a button and text on a website. Once you click the button it posts like... www.domain.com/post.php?value=uservalue and once it's posted I want the program (c#) to automatically pull that data. What is this called? I'm really trying to remember.
 
4:34 PM
@Sippy The ubiquitous quality of the English herein is astounding.
@MatthewH postback
 
Thank you @KendallFrey
 
@MatthewH your terminology is a little confused.
When you say "program (c#)", do you have a specific program in mind?
 
@Squiggle yes, I believe it is confused. Sorry, just woke up. So I want to have a user login to a website. They login to the website and there's an input box and a button. They type in a value and click the button. So it specifically would post the data like www.domain.com/post.php?user=1&value=text.

That being said. I want the user to open a program that will be custom made. They log in. And when the data is posted on the web said. It picks up that there's newly posted data and it updates a value accordingly.
 
good morning :)
 
This looks like a job for .. SIGNALR
 
4:40 PM
good morning :P and ?
 
heh yes, sorry just trying to understand.
 
Dunno never used SignalR
It's used for real-time scenarios.
 
waah sorry, no I don't understand at all.
 
I hope that explanation explains more what i'm trying to do.
 
@Squiggle He has a web application and a desktop application running on same data
When the web app updates, the desktop app should too.
 
4:43 PM
OK. That makes more sense.
 
Yes, thank you @Sippy
I'm heading out in like 4 minutes :P
 
It is funny when people think hosting a website is free
 
haha you mean they want you to host for free? :P
 
@MoonOwlPrince Massively depends how you define free.
 
^
I host some websites for free
Because my server can handle it. :P
 
4:47 PM
By free as in free with no ads and no restrictions
 
not this again :P
 
They want to have videos on their server and they want them in HD
 
My only restriction is keep it legal. :P
And if they start bogging down the server and using to much bandwith, I'll start charging.
 
And note: this server is being rented
 
I have an agreement with one guy that if he starts making money off of his site, he has to give me a cut ;)
 
4:49 PM
@MoonOwlPrince get them to stick the videos on Vimeo or something, and embed them in the page(s)...
 
Can I host free sites on your server?
 
I usually only host people I'm friends with ;)
I've racked up 200 GB this month on bandwith :P
 
@MatthewH Lol
 
@Squiggle They were arguing with me when I suggested YouTube saying they want people to feel the brand when they watch the videos (whatever that means) and I told them that was stupid. They don't want people to think they are using something like Youtube
 
My server keeps exceeding 2TB
Dunno why
Hosting gameservers must be bandwidth intensive.
 
4:51 PM
You guys should consider commecialising
 
@MoonOwlPrince Don't a lot of companies use a YouTube channel for video advertising?
 
They do and that is my point exactly
 
...
Clients will be clients.
 
@MoonOwlPrince there are any number of white-label video hosting providers, btw.
 
They think the reason videos are hosted on YouTube instead is because people are not technical enough ot host their own
I told them to either accept YouTube or be ready to pay the steep price and I am putting them on a premium Azure subscription so they get the concept if money is the only way they understand
 
4:54 PM
@MoonOwlPrince Business often crumble when you say something will be expensive lol
The reason YouTube is good now is because it has a huge userbase
It's easy to get something seen
Especially if it's awesome
 
I tried telling them that their stupid videos might be discovered
Huh
 
@Sippy anything can survive if you have companies pumping millions into advertising
 
@NETscape Heh
 
They heard Obama had the White House website done with Drupal so they thought they too could use it and wanted me to set it up for them. I did so and guess what happened?
They thought it was merely drag and drop
 
Drupal is total bumdroppings.
 
4:57 PM
@Squiggle Pahaaaaaaahahaha
 
well then
 
@Squiggle bumdroppings lol
 
I had a bad experience with Drupal.
 
@Sippy the shitty version of the bass drop. wub wub wub
Wouldn't it be cool if we could have music playing in the room?
...No?
Oh
 
Yes it would be cool
As long as the musicians are paid in royalties
 
5:00 PM
Depends largely on who it was controlled by
I ain't having you djing @KendallFrey
 
@Sippy room owners ofc
wub wub wub
 
Sublime-Text + Python + web.py are suprisingly productive
 
afk food wub wub wub
 
Nothing wrong with wub wub dubstep, braw.
 
wubstep
 
5:11 PM
posted on December 17, 2014 by Visual Studio Blog

With Apache Cordova, web developers can achieve maximal code re-use by building cross-platform mobile applications using HTML, CSS, and JavaScript. For details on how Apache Cordova works, read this blog. In order to build such a cross platform multi device application, Visual Studio uses a Cordova utility known as the Cordova command-line interface (CLI). The CLI allows Visual Studio to build

 
@MoonOwlPrince Except Azure can be quite reasonable.
 
5:32 PM
azure has been a pleasure
 
5:48 PM
@Pheonixblade9 Yeah, I think I'm going to get started in it.
 
6:00 PM
Someone have a second to double check some logic.
 
A & B = 1 iff A = 1 and B = 1
logic!
 
        private bool IsMissingOrHeld()
        {
            List<string> product = new List<string>();
            for (var i = 0; i < cartRecs.Count; i++)
            {
                if (cartRecs["item" + i] != null || cartRecs["item" + i].ToString() != "")
                    product.Add(cartRecs["item" + i].ToString());
            }
            if (product.Any())
            {
                string query = @"SELECT [ItemOverLength] FROM [ZNodeProduct] WHERE ([ProductId] = @Product);";
                using (SqlConnection connection = new SqlConnection(ConfigurationManager.Connection
Someone decided it was a great idea to pass data, then parse each item individually. So item is constantly incremental integer. That code always calls an error though.
 
Elaborate?
 
@Greg why not just do the comparison logic in the DB?
 
@Pheonixblade9 Because I have to check based on data submitted from a user.
 
6:10 PM
@Greg it's probably faster to pass that data to the DB and let the DB evaluate on it :)
you can pass a table as a parameter to a sproc, you know
 
@Pheonixblade9 Maybe.
 
or do a batched call. That's how I've done it.
 
I think it might be the shitty || I was doing.
    List<string> product = new List<string>();
    for (var i = 0; i < cartRecs.Count; i++)
    {
        if (cartRecs["item" + i] != null && cartRecs["item" + i].ToString() != "")
            product.Add(cartRecs["item" + i].ToString());
    }
The fixed issue one, now I introduced another constantly changing Product.
 
6:34 PM
It doesn't like parameter always being modified.
Does this Linq look correct:
product.Select(f => f.Contains(reader["ItemOverLength"].ToString()));
 
nope
you want product.Where(all that jazz)
 
@TravisJ What'd I screw up?
 
@Greg select is a projection - it changes the form of what is returned, not the set of what is returned
 
Select is for taking a subset of items or projecting the set of items to another set
 
So what is the proper way to use where?
 
6:42 PM
Where is for filtering the set based on a boolean
 
@TravisJ I'd avoid "subset" to describe it - that seems more accurate for Where
maybe a subset of fields :P
 
yes that is what I meant, sorry for the confusion
items was a poor choice
 
product.Where(p => p.Contains(reader["ItemOverLength"].ToString()));
 
yeah, I know what you meant :)
 
@Greg - Ok, so that will only return the matching products, however it returns an IEnumerable of them. If you want to get values out of them, you will need to call .ToList() on them.
 
6:44 PM
                string query = @"SELECT [ProductId], [ItemOverLength] FROM [ZNodeProduct] WHERE ([ItemOverLength] = 1);";
                using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ZNodeECommerceDB"].ConnectionString))
                using (SqlCommand command = new SqlCommand(query, connection))
                {
                    connection.Open();
                    using (SqlDataReader reader = command.ExecuteReader())
                        while (reader.Read())
That is what I'm attempting to do?
Except I more than likely want if it finds it, returns true.
 
@ton.yeung - Not if I can make it to 88 mph first!
@Greg - So... why do you just return true after using product.Where()? Where will return an ENumerable but will not modify the product variable from use alone.
 
@TravisJ I'm a Linq n00b.
Doesn't contain return true or false?
 
Should I be grabbing all the database products first?
So I have that List?
Or will While(reader.Read()); is going it will do that already?
 
@Greg - everything you wanted to know about linq, by Jon Skeet codeblog.jonskeet.uk/category/edulinq
Contains does return a true or false
@Greg - This set of code
if (reader["ItemOverLength"] != DBNull.Value)
{
product.Where(p => p.Contains(reader["ItemOverLength"].ToString()));
return true;
}
will not modify anything and will always return true right in the middle of your while loop
why is return true there?
 
6:56 PM
@TravisJ If anything matches, the item requires Credit Department Approval.
 
return true indicates the item requires approval?
or are you trying to get every product that requires approval?
In all honesty, this snippet lacks too much context, can you provide the full set of code?
 
Should I do something like this?
                    while (reader.Read())
                        if (reader["ItemOverLength"] != DBNull.Value)
                        {
                            var success = product.Where(p => p.Contains(reader["ItemOverLength"].ToString()) == true);
                            if (success.Any())
                                return true;
                        }
        string query = @"SELECT [ProductId], [ItemOverLength] FROM [ZNodeProduct] WHERE ([ItemOverLength] = 1);";
        using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ZNodeECommerceDB"].ConnectionString))
            using (SqlCommand command = new SqlCommand(query, connection))
            {
                connection.Open();
                using (SqlDataReader reader = command.ExecuteReader())
                    while (reader.Read())
                        if (reader["ItemOverLength"] != DBNull.Value)
 
Every linq extension accepts lambda expressions
 
What type of project would a person use F# for?
 
if( product.Any(p => p.Contains()) ) return true;
@JoJo - Any type they felt like using F# for
 
6:59 PM
If ProductId is found in the List<string> product. I want it to return true.
 

« first day (1523 days earlier)      last day (3428 days later) »