« first day (1910 days earlier)      last day (3037 days later) » 

user47589
12:00 AM
thanks for your help @TravisJ.
 
12:14 AM
@Amy - Any time :)
@Amy - I would have been more responsive except that I just had to deal with a 2 hour long search for wtf.
 
user47589
hehe
 
We got a lot of rain here. It leaked into the roof. The roof somehow leaked into one of our rooms. The leak managed to get into a ballast. The wires shorted, someone said they smelled smoke. I went to check it out with another coworker. Two feet from my face the ballast shorted out to the fluorescent tube, blew a bb sized hole in the metal casing, arced to the tube, knocked a whole rack of lights out, and tripped a breaker.
 
@TravisJ holy shit
 
good sirs I have a doubt
 
12:18 AM
@SteveG - That was pretty much my reaction at the time too lol
 
no really I have an idea I'd like to bounce off someone who's more experienced at WPF than me
 
lmao, thats a crazy story
you will tell that for the rest of your life
 
any idea why an ASPX page would be erroring out like so: Could not load type 'System.Web.Mvc.ViewPage'.
 
@SteveG - Just another day at work :)
 
12:21 AM
@Codeman - You forgot to include the .dll in the deploy?
 
we generate the web.config on the fly
@TravisJ and the model is in the same assembly as the aspx...
 
user47589
@TravisJ jesus
 
@BartekBanachewicz - Don't ask, just ask man. Sometimes people will see it later.
 
@TravisJ any other ideas..?
 
@Codeman - Is this deployed or on a dev machine?
 
12:22 AM
dev
 
@Codeman - Did you make a change to the generated web.config without rebuilding?
 
is that webforms or an early mvc v?
 
@TravisJ everything was rebuilt
 
@TravisJ I like how you contradicted yourself :). It's no rush. If someone wants to talk I guess I'll get pinged. Not gonna spam anyway, don't worry.
 
@Codeman I think i got that once when i edited the wrong web.config, not sure if that helps, but theres one in views and one in root
 
12:24 AM
@BartekBanachewicz - I meant to say "don't ask if you can ask" but it came out wrong.
 
but, it was a while ago, so theres a 50% chance i'm full of shit
 
@Codeman - Can you inspect the generated web.config?
@Codeman - Or, are you using areas? If there is just one it should be fine.
 
I hate base64 image data in Swift.......
How do I actually know if it is saved correctly (I can see the image in windows?), the conversion from image to base64 is bad, or swift-code is bad.. :x
 
@TravisJ there's no master page
and I looked at the web.config - everything seems correct
 
@Codeman - Is this running from IIS?
 
12:38 AM
@TravisJ yeah
 
@Codeman - Is your application pool set to at least .net 4.0 in IIS?
 
pretty sure it's 3.5
 
Hmmmmmmmmmmmmmmmmmmmmmmmmmmm
What mvc version is set in your web.config?
 
nah it's 4.xx
it's set to the same as a site that is working
(we use a template to generate ours)
 
@Codeman - Under the <pages> element in your config, is your mvc version set to 2 or 3?
 
12:45 AM
there's no mvc version element, it says 3.5 for another version though
 
@Codeman - You don't have
<pages>
...
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=???.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
...
</pages>
??
 
nope
 
@Codeman - Hm, do you have pages tag?
 
 
2 hours later…
3:18 AM
Hey everyone.
 
hey
 
What you up to Steve?
!!define datacontextfactory
 
@Greg It means I aint got time to learn your $5 words.
 
Hello everyone
 
Hello/
 
3:30 AM
Is anybody here you have used mongodb?
 
Sorry, no I haven't.
 
@Learning and you shouldn't too
if you care about the data you are going to put in it
 
@torvin:Sorry didnt get you
 
@torvin That bad?
 
3:37 AM
@torvin:Have you ever used mongodb?
 
fortunately, not
 
For a data storage, those aren't the problems you should be having.
 
@Greg:are you telling me?
 
I read a little bit from the blog, based on that. I would be pretty petrified for any critical application where data integrity is important.
 
Ok thanks you
 
3:44 AM
@Greg there should be better nosql databases out there. I heard that RavenDB is quite good
 
I use SQL Server, I have no desire for NoSQL database.
 
that's another story :)
 
@torvin ?
You think Unity will choke, if I basically RegisterType, but they all point to the same DataContextFactory and that class holds all the implementations for each interface?
 
I mean, even if all you want is to store some objects and then be able to read them back, there are better options then Mongo.
 
Yeah, SQL Express.
    public class DataContextFactory : ISearchableFactory, IDbCommandFactory, ICrudFactory
    {
        ISearchable ISearchableFactory.Create()
        {
            return new DataContext();
        }

        ICrud ICrudFactory.Create()
        {
            return new DataContext();
        }

        IDbCommand IDbCommandFactory.Create()
        {
            return new DataContext();
        }
    }
You think Unity will choke with that, for those three generic repository implementations?
 
3:52 AM
should work fine imho
 
Yeah, keyword "should". In theory, but not sure how Unity is entirely designed.
 
do you want all these interfaces to be resolved to the same instance?
 
Well, they all use the same EF instance, so ideally yes.
Was simply trying to alleviate over exposure of methods, to help minimize what is available from the Service Layer.
 
@Greg nada, what about you?
 
@SteveG Doing some programming, thinking about bed.
 
3:56 AM
im drinking beer, eating rice crispy treats, muffins, chips and dip, and i'm probably going to be sick ltaer
 
hahaha
 
@Greg as you can see in stackoverflow.com/a/2737778/332528 - it works as expected
 
I'll take a look
 
4:21 AM
yay I'm connected to work from home and oh god I need to install f.lux on this install
I'm officially going to have 3 installs of windows - my main one on my SSD for games, a 250GB partition on my 2TB drive exclusively to connect to work remotely, and a 500GB partition for personal projects
and the rest as a free partition for other stuffs
 
f.lux is the thing that dims the screen in the evening, right?
 
dims a bit, but mostly just changes color temp
 
Rob
It changes colours, doesn't dim (I believe)
Oh, didn't know that
 
yeah, that's what I meant
@Codeman why do you need a separate OS installation to connect to work?
 
user47589
4:51 AM
there's a flux library by facebook too. i find it confusing.
 
5:06 AM
 
Rob
5:30 AM
stackoverflow.com/questions/34669942 - This is dedication.. removes the oscillator from their CPU to test if C# GUIDs are based on the internal clock.. :D
 
 
2 hours later…
7:11 AM
Hello Guys
Can Anybody Help me with my Paypal Query??
0
Q: Adaptive Payments giving Exception on Web Server in c#

yashI am working on Delayed Chained Payments Module in Adaptive Payments in Paypal. I am Using AdaptivePaymentsCoreSdk for it and it is working fine on LocalHost as well as one web Server. All working is going Fine. But when I Deploy my application on another Server than On Service.Pay I am Getting a...

 
7:53 AM
What is With this Random capitalization style In questions?
It's not uncommon, I've noticed. Just wondering why people do it
 
8:05 AM
Good morning.
 
@yash I don't think that's enough information to answer. I expect you'll have to enable some kind of tracing on the server to find out why it's closing the connection prematurely.
@RoelvanUden goedemorgen
 
8:51 AM
Morning
we can use joins to get a large dataset, but what if I want a nested dataset using select query in SQL management tools ?
 
Then you write the query?
 
@RoelvanUden it's not possible actually
at least not the way I was thinking
4
Q: Can a select statement include nested result-sets?

JordãoGiven the following tables and sample data: create table Orders ( ID int not null primary key, Customer nvarchar(100) not null); create table OrderItems ( ID int not null primary key, OrderID int not null foreign key references Orders(ID), Product nvarchar(100) not null); insert int...

 
I'm confused how you think that it is not possible to select over a join o_o
Oh you wanted that? No you need to return rows.
 
rows ?
 
rows.
like, a table. 2-dimensional.
 
9:00 AM
you mean using outer apply with order by
I can certainly use EF then get the whole graph which am really after, but was trying to find an easier way
 
For fun, you should see what query EF launches. It's not pretty.
 
@RoelvanUden true, just need to get something done quickly for a demo
quickest way I could think of is using xml
 
@RoelvanUden here ?;)
now my loop looks somthing like that :
 for (int y = region.Top, yOffset = y * w; y < region.Bottom; y++, yOffset += w)
                        {
                            for (int x = region.Left, xOffset = x * 4, i = yOffset + xOffset; x < region.Right; x++, i += 4)
                            {
                                byte red = (byte)(n[i] ^ p[i] );
                                byte green = (byte)(n[i + 1] ^ p[i + 1] );
                                byte blue = (byte)(n[i + 2] ^ p[i + 2] );
                                int rgb = (red & 0xC0) >> 6 | (green & 0xC0) >> 4 | (blue & 0xC0) >> 2;
in the receiver side the shifting is in this way ?
                        var rgb = reader.ReadByte();
                        int r = (rgb << 6) & 0xC0;//r is 0
                        int g = (rgb << 4) & 0xC0;//r is 0
                        int b = (rgb << 2) & 0xC0;//r is 0
 
9:38 AM
is there any tool anyone know of that would generate a select statement for all of the tables in a database ?
 
@Mathematics you can do that easily using stored procs if you're using SQL Server
 
@Squiggle use SP to generate a select statement ? I doubt that :(
I have a database and a ER diagram, I would like it to automatically generate a select statement which would understand the joins itself and just return me a huge sql statement
more like ER to Select statement
its just like we reverse code poco classes using database in EF tools
 
you're basically describing what EF does
you know you can .ToString an EF statement before it resolves and it will give you the SQL instead :)
 
10:08 AM
Morning all!
 
oh shit I just realised what day it is
good morning @RianMostert
 
Anyone here worked with the MvcSitemapProvider? I have a action in a controller called Index, it has optional parameters, is there a way to create a different breadcrumb based on weather or not the parameters were used?
 
No experience with that here
 
@Squiggle that's true but not when it's lazy loading
 
edspencer.me.uk/2011/09/20/… but the section in this tutorial titled Dynamic URLs / Parametered URLs looks pretty good
 
10:18 AM
I am going xml way now anyway
 
@RianMostert ^ did you read the tutorials for this?
 
@Squiggle yea that's the one i'm following, not getting it to work so I thought I'd try my luck and ask
All good, i'll just keep at it, sure i'll figure it out eventually
 
best of luck! It's still early, perhaps ask again in a few hours when more folk are online :)
but it's a 3rd-party tool, so I'm guessing not many will have used it
 
 
3 hours later…
1:13 PM
morning
 
aye
 
'ello
 
shit, didn't realize it's Friday
 
It's Friday~
And I actually don't feel like weekend. Crazy? Yes.
 
@RoelvanUden weirdly, me too
Has there been a period of sunnier weather this week in NL?
 
1:22 PM
it's all long weekends' fault
 
There has here. And the days are starting to get longer
 
@TomW Pretty much yeah.
@TomW It may be due this being the first week after vacation. I haven't coded in the vacation at all, so this was a nice change of pace. That may be it. Same for you perhaps?
 
Guess so
 
lol that msft sim stuff looks pretty cool
 
1:39 PM
@RoelvanUden heyy
did i do it right? ^^
 
it's not auto collapse back to link after a while?
 
@Slashy I don't know. Did you test it?
 
yeah... pixels look quite weird.
but is it what you mean for? more or less?
 
Not really. I see no previous state on the server at all
 
1:50 PM
"previous state"?
 
yeah gradual over-time approach absolutely requires previous state at the server.
previous frame as it should be.
 
user47589
the state formerly known as previous
 
I've created a monster. Hah. It's a brilliant piece of code though.
 
2:05 PM
Hello guys, im stucked a bit in a code part i would like to finish
and im wondering if there's anyone here you could help me with it.
Im deleting all the files, folders and subfolders from a folder, and based on that, i would like to "animate" a progressbar
Im having here the DeleteMethod but, i tried many things, and i cannot animate the progressbar
i tried with simpel timer, with backgroudn worker, with asyn threads...
 private void RemoveDirectories(string strpath)
        {
            DirectoryInfo dirInfo = new DirectoryInfo(strpath);
            var dirSize = DirectorySizeFormat(GetDirectorySize(dirInfo, true), 0);
            totalFilesSize = dirInfo.GetFiles().Count() / long.Parse(dirSize.Split(' ')[0]);
            foreach (FileInfo file in dirInfo.GetFiles())
            {
                file.Delete();
            }
            foreach (DirectoryInfo dir in dirInfo.GetDirectories())
            {
                dir.Delete(true);
hy Roel, maybe u can help me. I think i remember you.
 
Where is the code that concerns the progressbar?
 
i removed it..
 
Hi all C# devs, just earning my badge for first chat post....
 
well er...it'd be helpful to see the code you have already
 
i just puted this in the method:
foreach (FileInfo file in dirInfo.GetFiles())
            {
                progressBar1.Value = (int) (totalFilesSize / long.Parse(dirSize.Split(' ')[0])) * 100;
                file.Delete();
            }
i splited the dirSize because the result is like: "85 KB"
 
2:09 PM
And what happens?
 
it says is nto between the specified minimum and maximum value
 
just add Application.DoEvents() ?
inside the loop
 
i would liek something else...instead that..
 
@KjellIngeHestad No. That is almost never the correct solution.
 
yeh..
 
2:12 PM
@Castiel so set a value that is between the minimum and maximum values?
 
well, it works - without it you will have to run it in a separate thread - like backgroundworker - and let it report the progress
 
but i setted, the minimum is 1 and maximum is files.COunt
 
@KjellIngeHestad You mean that thing called "proper architecture"? Yes, you do better with that. Doing I/O on the UI thread is just a recipe for disaster, anyway.
 
Damn, first W10 BSOD
 
user47589
yes
 
user47589
2:14 PM
congrats @KendallFrey and welcome to the club
 
@RoelvanUden but i would liek to know how to write it in a timer, instead of using a background worker
 
@KjellIngeHestad check what actual value is being set in the debugger. I have a hunch that it's 0
 
@Castiel And why would you want to do that?
 
i was thinking the backgroudn worker uses more memory resources
 
@RoelvanUden I would say it is a tradeoff - if you have a separate modal dialogbox with only a progressbar, the application.doevents() within the loop works out ok
 
2:16 PM
Maybe it does. What's wrong with that? Memory is there to be used
 
yeah, well however i couldn't make it with it either
i know is simple, like counting the files and folder in a folder
 
user47589
premature optimization is the root of all evil.
 
var prematureOptimization = Math.Sqrt(Evil.All()); ?
 
@TomW Don't u have an example code?
a proper one, i mean
 
I think it's your arithmetic
 
2:18 PM
You're a developer,. Why do you need examples? Write your own code.
... I may begin to sound overly harsh at this point
 
hm
 
user47589
examples are part of how we learn, as humans.
 
user47589
or ponies
 
This sounds more like copy/paste request. MSDN is full of docs and examples
 
Well sometimes u need a copy/paste
 
2:21 PM
I don't.
 
user47589
nor i
 
Copy/paste is the root of all evil
 
user47589
copy/pasting someone elses code doesn't help you learn.
 
user47589
it helps you avoid learning
 
well sometimes when u'r really stucked, u need a copy paste or just an example code, so u can read it and learn it for using it again in another project
 
user47589
2:23 PM
yes, an example can help.
 
o/
 
user47589
hi sippy
 
right now im trying to use this example: stackoverflow.com/questions/8467180/…
 
@Castiel I'm tellin ya, check the arithmetic that calculates the value to set
 
@TomW yep, im doing it
 
2:25 PM
Yeah, I'm pretty sure Tom's right. Int division will get you every time
 
@Sippy o>
 
user47589
i wish the VS document tabs could have two layers
 
I have removed all older VS related programs and installed VS 2015. Now my managements studio doesn't start
sais one or more component missing. Please reinstall
 
user47589
sql server management studio?
 
user47589
"all other VS related programs"? like what?
 
2:35 PM
but I can't. Yes. "C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe"
@Amy there were something 2010 only console, or something like that
office tools
but all contained the words Visual studio and a year lower than 2015
do You know how may I convince ssms that it is installed? Or convince the setup to repair management studio?
 
well, ssms has dependencies on some vs2008 component afaik. rather than back and forth trying to figure out what's going on, it's much easier to just jack in the disk and reinstall ssms
 
user47589
IIRC ssms is installed as part of Sql Server
 
no, you can install it standalone
just go through the regular install progress, and choose only ssms and nothing else on feature select
it took like 5 minutes
 
^
 
2:51 PM
back with some entity framework questions.. a bit further than I was yesterday / maybe
So I want to set the target database instead of using the default (convention db). I read you set this in the app.config:

<connectionStrings>
<add name="LitTrackDatabase"
providerName="System.Data.SqlClient"
connectionString="Data Source=(LocalDb)\v11.0; Integrated Security=SSPI;"/>
</connectionStrings>

The problem is that a Class library doesnt have an app.config (I tried just copying the app.config from the application project and putting in the connection string, but it still uses the default when I add-migration and update-database
 
a class library can't execute itself too. put it into the web/app.config of project that's referencing your class library
 
@tweray the problem is the setup didn't work. Any stuff I tried to click on wanted a setup folder. IT guy helped where it is. Now repair worked.
 
@tweray does that kinda defeat the purpose of using the class library as a common library of classes? where you handle everything from library itself since It can be referenced in multiple projects
 
@Michael no, that defends the purpose of class library to be configurable and reusable upon different project without needing to touch the binary
 
If a company asks if you know AWS, what are they looking for exactly? I know how to deploy with AWS but that's the extent of my knowledge.
I guess the same question also goes for Azure
 
3:01 PM
@tweray Okay, I suppose that makes sense. I still cant get entity framework to use my specified database instead of its default
im trying to follow this: msdn.microsoft.com/en-us/data/jj592674
 
@Michael did you put int the right connectionstring name when initiating the dbcontext?
@KalaJ when companies ask you what you know, just tell them honestly what you know. you don't have to highlight what you don't know though
 
@tweray I thought that might have been an issue so, I just removed the constructor completely. I'll put the constructor back and specify the name explicitly
 
@KalaJ so the typical answer to that question will be "Yes I do, I have some experience deploying to AWS in the past."
 
Yeah I know, I was just curious what I can read up on for AWS or Azure for things besides deployment?
 
well, that's something much more complicated, depend on what exactly the company is doing on AWS. I intent to only tell ppl i know things that i really played around with. It's going to have really negative effect if you say "I know A", and when ppl ask you about some detail of A you cannot answer
 
3:11 PM
Courtesy of my boss
 
@tweray Thank you for the help. that got me somewhere, now back to tinkering with it
@tweray Is there a big difference between using Migrations vs Using a Database.SetInitializer
I know the database initializer kinda helps you not have to do the migrations manually evertime.. but is there downsides? whats the difference?
 
well, technically, initalizer should be used only once to create a database from scratch, and it has options to drop and recreate database, yet migration can be used to update existing schema, which usually doesn't involve database level activitiy (although it can)
 
@tweray, gotcha thanks.
 
so in short, initalizer is the guy help you (re)create a non-existing database, and migration is for further maintaining that existing database
i am not a everyday EF guy, so that's just my own idea, you can get some better advice from @CharlieBrown if he's around
 
3:26 PM
@tweray thnks
@tweray so if the app.config is in the application project, the context should also be there as opposed to the library?
 
user47589
you can put the context in a library
 
user47589
you can put it wherever you want.
 
@Michael not necessarily, it's depending on your structure
 
Okay thanks,
@tweray @Amy should the migrations but run from wherever the context is, or the application file
 
user47589
the context.
 
3:42 PM
because I'm getting an error when I update-database:

Error Number:2714,State:6,Class:16
There is already an object named 'Clients' in the database.

Clients is just one of the classes / tables to be put into the database (specified in the context)

Its almost like its trying to do it twice?
 
user47589
does the database have a _migrations table?
 
user47589
and do you have a database initializer set?
 
user47589
and turn off automatic migrations
 
No, It wasnt actually creating the database, and no I wasnt using an initializer. I think I fixed it by specifying Initial Catalog=Name in the connection string

<connectionStrings>
<add name="LitTrackDatabase"
providerName="System.Data.SqlClient"
connectionString="Data Source=(LocalDb)\v11.0; Initial Catalog=LitTrackDatabase; Integrated Security=SSPI;"/>
</connectionStrings>
 
@mikeTheLiar So in 4 years we will be in blade runner universe?
 
3:49 PM
@Amy before I noticed it wasnt picking up the name of the database
 
@Failsafe apparently. Are you sure you're not a replicant?
 
@mikeTheLiar No because now they can implant memories
 

« first day (1910 days earlier)      last day (3037 days later) »