« first day (2048 days earlier)      last day (2899 days later) » 

3:01 PM
hey there
 
Closing time
 
hi ,does anyone debugged coreclr? I can not startup coreclr,I can not step into corehost.cpp file,it said no symbol was loaded.help me please,thank.
 
roflmao
 
Bmo
I've always referred to bin packing as 'knapsack' in my algorithms class.
The knapsack problem or rucksack problem is a problem in combinatorial optimization: Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. It derives its name from the problem faced by someone who is constrained by a fixed-size knapsack and must fill it with the most valuable items. The problem often arises in resource allocation where there are financial constraints and is studied in fields such as combinatorics, computer science...
 
3:05 PM
@Bmo yes its the same, but this time using a pallet
my problem is to load boxes with varying dimensions into a pallet
 
Bon
how many items need packing, what is the range?
max supported requirement in use case
 
the number of packages is a variable
there is no limit
 
Bon
there's always a limit in real world applications when we're talking about timeline to deliver a working product
and there's more than one way to solve this problem
i'm asking to know if you need a super scalable solution, which would probably require hadoop for real "unlimited" scalability
 
yeah and there is no optimal solution with this problem
 
Bon
or if the number of records are small enough to reasonably compute this locally
 
3:08 PM
ahmm just small enough
less than a 100 inputs
i already packed the boxes but the stability of the boxes is not considerede
 
Bon
Is the goal is even distribution of packing given known number of bins, or minimizing number of bins used?
 
just the distribution of packages in a pallet
given the following constraints :
 
Bmo
What do we want? Problem statement! When do we want it? Now!
 
1. stability
2. volume
3. Max height
4. Max weight
ok
 
Bon
Ok, so this is having to consider both size and mass
so positions on pallet as well as distribution of all items among them
 
3:14 PM
@Bon This is the problem description

Be able to determine the optimal size, weight, and number of pallets needed to most
efficiently ship a given number of boxed items based on their dimensions.
 
If I create a plain .aspx or plain .html file will they be able to make use of the _LayoutPage.cshtml ?
 
user47589
no
 
Max height, max weight and volume is now OK. I just need input from you guys on how to make the pallet stable
 
omg
 
user47589
@Katana use glue?
 
3:16 PM
@Michael no. cshtml if for razor view engine, you need to create a razor view to be able to use it
@Amy not funny
 
There is no way to do this error handling easily then.
 
Bon
that's a fun problem. Definitely going to want to do a k-means statistical analysis to dynamically group clusters of items both by their weights and their dimensions. Simply put you'll have them distributed into categories like "heavy/small", "light/small", "heavy/medium", "light/medium", "heavy/big", "light/bit" with slices based on the variance among the data
 
wonder glue works great
!! wiki wonderglue
 
@Mr.Toxy No result found
 
!!wiki fallout wonderglue
 
3:17 PM
@Mr.Toxy The Gods of Wikipedia did not bless us
 
hahhahaa best caprica answer eva
 
@Bon i forgot to mention, each package has a corresponding weight, and how much weigth it can support
 
!!wiki super glue
 
Cyanoacrylates are a family of strong fast-acting adhesives with industrial, medical, and household uses. Cyanoacrylate adhesives have a short shelf life if not used, about one year from manufacture if unopened, one month once opened. They have some minor toxicity. Cyanoacrylates include methyl 2-cyanoacrylate, ethyl-2-cyanoacrylate (commonly sold under trade names such as "Super Glue" and "Krazy Glue"), n-butyl cyanoacrylate and 2-octyl cyanoacrylate (used in medical, veterinary and first aid applications). Octyl cyanoacrylate was developed to address toxicity concerns and to reduce skin irritation...
 
Bon
Ok, so that's a 3rd dimension to do another independent k-means analysis on, and then making it have groups like "heavy/small/high-load-bearing", "heavy/small/medium-load-bearing"
 
3:19 PM
@Mr.Toxy scavving pleb. Mutfruit, corn, tatos and water.
 
@Amy @mikeTheLiar So this resources http://benfoster.io/blog/aspnet-mvc-custom-error-pages says at the bottom "In Summary:"

Create the following pages in your application:

404.html - for IIS
404.aspx - for ASP.NET
500.html - for IIS
500.aspx - for ASP.NET

and use <httpErrors> and <customErrors>
 
@Bon yeah definitely, do you solve this problem before
 
Thats really seems to be the only way to cover most errors. but then you cant use your layout with them?!
 
@mikeTheLiar water sucks hahahaha who drinks water in fallout
 
Bon
I did something similar for a supply chain program I wrote a while back, but our items were much larger so it was for filling shipping containers without stacking concerns. Oil and gas industry stuff.
 
3:20 PM
@Mr.Toxy craft yourself some vegetable starch. 5 adhesive
 
@Bon that is my next task after solving this problem
I need to load this pallets into a trailer
:)
 
Why exactly are we discussing glue?
 
@mikeTheLiar naaaah I'll keep adhesive to weapon mods ^^
 
user47589
@Michael you can't have webforms use razor views.
 
I told you I don't sniff no glue no more mang
 
3:21 PM
@Mr.Toxy you're missing my point. You can craft adhesive.
 
Bon
LOL sounds like you're getting close to a skunkworks project I've had for a while. Interesting. I wanted to do something similar for maximizing nonstandardized payloads for suborbital transcontintental shipping lol
 
@MaartenWachters but but, what about the wonderglue I sold to you the other day?
 
For your mods.
 
@Amy okay, but then what do people do?
 
@mikeTheLiar I know you can :D
 
3:23 PM
@Bon yah interesting project.
 
user47589
@Michael you can point your error page to a cshtml and use razor then
 
@Michael people eats
people sleeps
 
user47589
the customErrors takes URLs to error pages. just set it to the URL that matches an ErrorController
 
user47589
i dont see what the problem is
 
user47589
either use webforms for your error page, or use razor.
 
user47589
3:24 PM
pick
 
@Amy Okay that may work for customErrors but not httpErrors with IIS
 
wow amy has 11k rep :o
nice
 
Bon
@Katana wish I could give more assistance. Beyond what I've said is a lot of graph walking and brute force comparisons that is tedious and nothing distinctly special. Benefits well from distributed processing in something like Hadoop.
But with numbers in the hundreds, not necessary probably.
 
user47589
then set them up with what will work, @Michael
 
@Bon wish i can contact you personally, skype or ese
 
Bon
3:25 PM
But there are lots of stats analysis tools built into it like k-means that cna make it a lot easier.
 
wow member for 7 years thats just... wow
damn
thats a lifetime here
 
Bon
@Katana If I wasn't at about 150% available capacity right now, I'd offer more direct assistance. I am sorry for the bad timing.
 
still didnt defeat John Skeet
 
Bon
Literally been running on 4-6 hours sleep per night for months now trying to clear one of my plate.
 
with 800K + repu
@Bon thats Ok, I can work on this coz im willing to finish this project
 
3:31 PM
@Bon same here plus 2 coffees a day
 
Bon
@Katana lmk when you see this message. Need to send you a link that I want to delete from chat after you get it
don't want it persisting in public chat default visibility
 
@BOn send it again
 
Bon
Solidarity @Mr.Toxy
 
hug
 
3:47 PM
So I'm trying to use swagger-ui to embed some documentation in a page (as opposed to swashbuckle's built-in page rendering so it's consistent with our menus and backgrounds and shit) and the suggested example makes it look so easy: just reference some javascript and do
var swaggerUi = new SwaggerUi({
  url:"http://petstore.swagger.io/v2/swagger.json",
  dom_id:"swagger-ui-container"
});
swaggerUi.load();
HOWEVER, it turns out that swagger-ui is heavily dependent on dependencies that depend on a particular old version of jquery
So I've got to either get both jqueries in the same page, which seems impractical because I'd have to hunt down all the $s in swagger-ui's dependencies and change them to point at a particular version
Or I embed the whole shit in an iframe or something
 
Bon
no shim available for use with new version?
obs why you're asking though, I suppose...
obvs
 
there's dollar signs everywhere warring and battling over which jquery is the one true god
maybe I'll copypaste this to the js room...
 
Bon
sorry, gl
 
4:13 PM
if I have two arrays of ints
and I do like this
Array1 += Array2;
that doesnt exist right?
 
what kind of result are you expecting?
 
I need to sum up the two values manually
I will explain everything I'll be easier
 
hey toxy
Amy is asking bout u
 
I have a function that returns me a two postion array, the 1st pos is the number of successful commands and the second is the number of commands who presented an error
I need to run this function twice or more
wich will give me different results everytime
in the end I need to sum up all those values
@MaartenWachters hey ^^ why? whats happened?
 
She told me you have to contact her, @amy
 
4:17 PM
@Amy yes amy? can I help with anything?
I have the slight feeling Im being trolled
 
Haha just messing with ya
 
knew it
hahahahahaha
now I pinged her for no reason
 
Toxy that sketchboard you linked me
how can I edit it myself
 
she's gonna beat the crap out of me
#ImmaGetFlagged
@MaartenWachters let me check, I think that I can add people to it
 
You made it read only
Can you set it to public write
 
4:20 PM
it is public, I think that I need to add to the users that can edit. Im checking it out
didnt used that for a while
oh I see
I need to add you as a teammate
oh ok I found it
can you send me your gmail email pls?
 
maartenwachters@gmail.com
 
@MaartenWachters ok I think you will recieve an invitation
@MaartenWachters yup you are on the team, check ur email or notifications for the invite
 
Can't access it right now
 
oh ok, hmmm when you can tell me if you can edit it :D I think i've set it up right but dont use it for a while now
 int cnt = 0;
            foreach (var variable in Paths)
            {
                var comandos = parser.Parser(variable);
               var FinalCnt = ExecuteCommand(comandos,Updater,variable,Log);
               if(cnt > 0) FinalCnt.Zip(FinalCnt, (x, y) => x + y);
                cnt ++;
            }
will that sum it up correctly?
 
Bon
comandos, part of a complete breakfast
 
4:34 PM
@Bon comandos = Commands
will it sum up correctly?
well I will test it, but I've changed a thing and I thing it will work
 
Bon
5:01 PM
rofl, overhearing in breakroom a group of women talk about their teenage kids and one just asked "what does milf mean?"
 
Is there a way to re-Build your MVC application (without running it) and refresh the browser page in order to see changes?
 
Bon
the explanation and response was hilarious and someone also brought up "gilfs". Premium entertainment.
 
@Bon did someone answer her?
 
@Michael If you were using browsersync
why don't you host in local iis
that way you can just publish and refresh
 
@Failsafe Im not sure, how do I know if i am hosting in local iis?
 
5:06 PM
uh
go to IIS and see if you added a website
i.e. Default Web Site -> <Your web Name Here>
it would be localhost without a port number
 
oh isee
Shit, When I bundle Styles (css) and I try to reference an image with background-image: url("/somepath.jpg")
the Url turns to bundles/styles/somepath.jpg when I run the application
 
Scenario: A mobile application on android and a web application using asp.net mvc.
How should the data be accessed? Sql queries or Web service
 
Bon
neither
imo
I'd use WebAPI
 
ahan
 
Bon
Assuming by web service you meant either asmx or wcf
 
5:20 PM
isn't web api used for web services?
 
Bon
i'm meaning OWIN WebAPI 2 which can run either in IIS or standalone to provide secured HTTP communication for clients without having to deal with a SOAP client like with asmx or wcf
is much more cross platform friendly to just use plain old normal http
mostly because xml parsing is a pain in the butt and different libraries aren't guaranteed to behave the same
 
I had web api 2 in mind as well
btw whats the benefit?
 
Bon
separation of concerns, http is a well known standard so it doesn't mean server side specifics bleed over to client side
so you can distribute work among a team more easily and they just share conceptual contracts about those endpoints
additionally, webapi handles multiple serialization formats silently
 
right!
 
Bon
client can send xml or json, or anything else they talk in
 
5:23 PM
thanks Bon :)
 
Bon
np, gl
 
5:59 PM
Is there a way in tfs by which you can see how much points of work you have done in current sprint?
 
points? what are points?
 
hours put by developer
like stories have points
tasks have them
etc
 
Why would TFS care about such a thing?
 
user47589
That's more of an agile thing.
 
user47589
I doubt TFS would have such functionality built-in. JIRA has something like that.
 
6:06 PM
TFS's job is to manage your code, not your developers
 
user47589
well, TFS does have things like tasks, commits, and stories.
 
user47589
it's not just managing code.
 
Yeah they do
Like versionone
tfs has stuff
tfs is 🌐
 
user47589
unless you have some agile components installed in TFS, I doubt you'll find what you're looking for
 
Bitbucket/JIRA/git will integrate. If you tag your commits with bug numbers Jira can tell you stuff like that.
 
6:13 PM
PM assigned me a task that sounds risky, confusing and convulted
How messed up would it be if I told him if he wanted to do it instead?
He seems to understand it better than I do anyway (he can code)
 
Ask to do it together
 
I just think it would be quicker if he did it
hmm I'm working remote today
 
Do you want to learn or do you want to bitch? :)
 
how can I do it together?
skype?
 
user47589
sit down at the same computer
 
user47589
6:14 PM
one person has the keyboard
 
I'm too far
I'm remote
It would take me an hour and 15-30 mins to get to work now
 
GTM then
 
GTM?
 
go2meeting
 
get the mayo?
 
6:15 PM
haha
we don't have gotomeeting :S
But I can do skype
 
VNC?
 
Does it look bad to ask?
 
Nope
 
I mentioned one edge case where it might be a problem but he hasn't responded yet
Another coworker thinks it's a bad idea too
idk if I should side with PM or senior dev
LOL
 
Sr dev
PM don't know shit about implementation
 
6:16 PM
PM surprisingly knows a lot more than I do
 
user47589
yeah
 
about implementation
 
user47589
go with the sr dev
 
Do it and send him a code review?
 
but senior dev mentioned a good edge case where it will fail
 
6:17 PM
woah, you work with the prime minister?
 
so it's not a good idea
 
lol
 
idk I'm waiting to hear back from PM on edge case
fml now it says he's away
lol
 
he's got a lot on his plate.
 
I guess I'll check back later :S
Should I just schedule a skype meeting with senior dev and PM?
haha
to hear them fight over their opinions
 
6:21 PM
pull an Almost Famous and tell each of them that you need to talk to them but give them each other's number
 
look fam
familia
kala j
he probably gave you the task because he couldnt be arsed to do it himself
and is maybe avoiding you so to not reply
 
user47589
as a senior dev, i only give my junior things I don't want to do myself.
 
user47589
that's a perk of being the senior dev
 
yeap so pull yourself by your bootstraps and do it
 
I haven't touched any of the code the other devs implemented, so this is not go to me :( It's rather confusing to understand the services and I don't think the suggested fix is the right approach neither does the senior dev. The PM thinks it's the right approach to fix it XYZ though
That is, have you guys done/used deep linking before?
 
6:30 PM
I just like this ^
 
user47589
deep linking?
 
!!wiki deep linking
 
In the context of the World Wide Web, deep linking is the use of a hyperlink that links to a specific, generally searchable or indexed, piece of web content on a website (e.g., "http://example.com/path/page"), rather than the website's home page (e.g., "http://example.com/"). == Example == A link to the address https://en.wikipedia.org/wiki/Deep_linking#Example is an example of a deep link. The URL contains all the information needed to point to a particular item, in this case the "Example" section of the English Wikipedia article titled "Deep linking", as opposed to only the information needed...
 
why the first thing came into my mind is avatar
 
6:31 PM
 
or matrix
 
user47589
@KalaJ oic
 
For example, the user might click on a deep link to view a page within a shopping app that describes a product offering that the user is searching for.
 
is this a design question or a coding question?
 
user47589
i've never done mobile development.
 
6:32 PM
It's no problem
But the root of the dilemma of my task is
there is a bug where the user is taken to a deep link view even when they close the app and open it again
Okay that's understandable, that seems wrong
The solution my PM said is to prevent the deep link from being accessed more than once
so add a flag if it's shown more than once if the url is coming from a service, etc..
Problem is: If the user clicks on the url/deep link again, they can't go to the view!! LOL
So that implementation is not valid, right?
 
Yeah that's stupid. And it's not an edge case.
That's just a use case
 
its a bandaid fix
 
yeah I was thinking that
And senior dev agrees with me
sooo idk what to tell PM?
 
suggest a better answer?
 
Yeah I was thinking something along those lines otherwise the user will be frustrated because the link/url will be invalidated after one click LOL
 
6:38 PM
why dont you just fix the bug instead?
with a steady hand examine what activates the dl and change that
 
@KalaJ so the app is remembering the last visited page?
I'm struggling to see how this would be happening
Like, what exact problem you're describing
 
if the app suspends and then resumes on the deep-linked page, is that a bad thing? Is there no navigation structure to escape that page?
maybe as a user I suspend the app to open another one like OneNote and intend on coming right back
 
@KalaJ - Use a time window
 
for your own security, you must be taken back to the login screen after 5 seconds. thank you.
 
user47589
just move the link around on the screen so they can't click on it
 
user47589
6:44 PM
problem solved.
 
@MikeAsdf the way our app works, you remain signed in for like 90 days LOL
lol Amy
 
Yeah thinking about it, that sounds like exactly what I'd expect. Why is it a bug?
 
@KalaJ - Similar to booking a hotel room or a flight or a concert ticket, there is a little timer that indicates when your reservation to reserve the resource expires.
 
@travis, maybe a time window... umm
 
maybe we're misunderstanding the nature of the "deep link"
 
6:45 PM
Suspend the app, do something else, come back....why am I not where I left it?
 
@misha130 the issue though is I am having trouble even debugging this
The senior dev implemented this for iOS
 
I guess he said "close" the app, not "suspend" the app
 
and it works fine
@MikeAsdf, this happens on force closing the app
 
I have one game on my phone where if I suspend the app it crashes the game and loses the progress. I hate that.
 
what mechanism or wizardry is remembering the state?
 
6:47 PM
But the problem is, I'm not sure how to test it on dev using adb (because adb complains the app is in the foregrouund and requires it to be closed to bring it to the front, to call the deep link view)
 
Android and Windows Phone don't really "close" anything
 
One thing about iOS is that it will automatically suspend apps when a phone call comes in. Perhaps there is a setting somewhere, but that is something to consider.
 
Currently I have a CSS file that looks like this: https://gist.github.com/mikey32230/651acb1e56b34542cd29d0969d5c537d

I was told by you guys to try to refrain from doing in-line css and javascript. Is this a proper way to do css?
 
you don't just force close an app and get back to where it was before unless you stored some shit away like a squirrel storing nuts in preparation for the dead of winter
 
Yeah this sounds like misunderstanding of standard functionality, solution is to learn how it works then fix it, imho
 
6:47 PM
@Michael use a .css file and then reference it back
 
@Michael - yes and no
 
@MikeAsdf, I think it's being cached
 
Might be hours or days of spelunking through google but, thats the life of a deceloper
 
We are using appsflyer
 
@Michael that is fine, but you don't need to nest ids, since they have the most specificity.
 
6:48 PM
Might be hours or days of spelunking through google but, thats the life of a developer
 
big breath
 
user47589
keep breathing
 
which I know nothing about because I didnt' work on any of this stuff
 
iOS doesn't have anything built-in that remembers views does it? and someone accidentally switched it on in info.plist?
 
@Amy - Not til you get me my ice cream!
 
user47589
6:49 PM
@TravisJ what flavor do you want
 
This sounds reminiscent of viewstate/sessionstate headaches from the webforms days of yore
 
ooh, gold medal ribbon or daiqurie ice, your choice
 
lol thank god they have a video on their webpage on deep linking haha even though it's high level: appsflyer.com
 
user47589
gives @TravisJ a bowl of vanilla
 
facedesk
 
6:51 PM
Little Northern Girl: "Nan, what's wrong with Hodor?"
Old Nan: "Don't mind him child, he's suffered some Bran damage as a boy."
 
user47589
use your imagination
 
@TravisJ @CuddleBunny It just seems like the css file can get really big?? because of the specificity
 
@Michael - The way that css works is it applies style during the page render/redraw. The styles are applied to elements based on their entry in the DOM (Document Object Model). The entries can be selected in various fashion, and some selectors are O(1) such as using the id, and some are O(n) such as those that only look for attributes.
@Michael - Using an id followed by an id makes no sense as a result, because the id is already an O(1) lookup - the entry in the DOM is essentially a dictionary. So when you use #id1 #id2 it should really be just #id2.
 
@Michael it can get big yes. You can slim it down a bit by using something like less or sass.
 
@Michael - Sometimes css does get rather large. That is why they are cached :) I have one that is 1500 LoC
 
6:53 PM
Ohhh I see what you mean by the nested ids
 
my 3k line css file is actually built from a few dozen smaller less files
 
But I just want to make sure I'm not doing something wrong with being specific like:

#masthead-text h4 {
padding-top: 15px;
}

#masthead-text h3 {
margin-top: 0;
font-weight: 600;
}
 
that's fine
 
gtg, PM is back for discussion haha
 
6:55 PM
@TravisJ okay good.
And for organization.. these files really arnt organized?
You just end up with a big file of CSS?
 
you can put comments between /* */, and group like/related rules
 
@CuddleBunny okay that would help. but still at the end of the day its just a giant file of sporadic css?
 
sometimes hierarchy is organized with tabs:

#something {
    ...
}

        #something .another-thing {
            ...
        }
 
@CuddleBunny hmm I guess my question should be, when would you do multiple files?
Like right now I have bootstrap.css, jquery.css and site.css (my custom css)
 
the old answer is never, because 1 http request is better than >1
 
6:57 PM
should I ever split up my custom css?
I see
 
but with http2 it doesn't matter much
 
Okay, that sounds good. thanks
 
my project has 6
 
user47589
keep your CSS organized, and use tools to compress and combine it
 
@Amy by organized how do you mean?
I got the bundling and minification down
 
user47589
um, just organized. keep things categorically relevant
 
you might have a header.css that is on every page, but blog.css only needs to be on the blog.
 

« first day (2048 days earlier)      last day (2899 days later) »