« first day (3155 days earlier)      last day (2018 days later) » 

bah I just got told that I should be reading docs and not discussing .NET stuff.
WOW
where?
Now I have to read a doc and extract a summary
@ntohl Workplace obviously.
I mean on a specific task, or now you can't SO chat anymore
I can, otherwise wouldn't be here.
But they think I'm wasting time.
11:13
gitlab CI is giving me hard times...
I just want to run msbuild....
but it seems I am not using correct image: "name-here"
just use some dotnet alpine image
framework/cor?
framework
can't seem to find one ...
I am like 3h exposed to all of this new knowledge
How do I effectively search for stuff on docker registry
Easiest would be find a dotnet project on gitlab and take what you need from their gitlab-ci
I haven't setup a CI myself. Please can you write me your notes about the process?
Tried, its hard to find that as well and some seem to use tailored images
since they are pointing to file locations directly on drive
just a sec mcafee is scanning my machine
its sloow
11:26
ah right framework
1. you have this ".gitlab-ci.yml" at your repo root, these are basically instructions for your CI with build steps scripts and many more
you gotta use mono for full Fx, since the runnners are linux
1) correct
what is mono
and Fx
Fx = "Framework"
coreFx = .net core, fullFx=.net framework
first line of gitlab-ci.yml should be something like image: mono:latest
mine has microsoft/dotnet/-ramework
f*
and it complains a lot of me not being loged in or image not existing
11:29
where did you get that from?
google
The coreFx image is microsoft/dotnet
link plz?
not sure where anymore
isn't /dotnet for core only?
Since msbuild gives "i dont know what it is"
11:30
but after that, there's no slashes or other names, jsut a version if need be
like specific core version
nah, docker gives "i dont know what microsoft/dotnet/framework is"
or I can jump on fx?
best fix: upgrade to core
Emm can't yet
I need to convince people that gitlab and CI is a good thing
in first place
11:31
possible simple fix: use "image: mono:latest" instead
Any1 using Postman?
So we switch to it eventually in next 100 years
I do
yes, postman is awesome
but F12 usually is sufficient
@Squirrelkiller Fuck postman!
Can't get it to work properly
11:31
@Raimonds If you have gitlab onPrem, you should just build your own onPrem gitlab runner
(The naitive app)
then you can have a windows runner and dont need docker
(The deprecated chrome one is awesome)
Wanna test it as remote first
remote only has linux runners
11:32
since can't really install lot on local machine or have access to install it on server
believe me, it's way easier to just set up a local windows runner
I can try to do it on my home machine
Is runner a constantly running service on ones machine?
Killerino, are you using the deprecated chromion app or the native app?
yes, constant service
so every build is run on the runners machine
11:34
@Squirrelintraining Native app
@Raimonds Yes
runner should be a constantly running server
I thought runner downloads docker image and runs it inside some sort of virtual machine
@Squirrelkiller Did you guys set up a Proxy for Postman? My problem is, Postman aint capturing everything and I think that Firefox is actively masking some traffic (already fixed that partially).
I still have just a brief understanding what docker / runner is
I use fiddler for that purpose
squirrels!
hide!
Postman is not capturing anything
it's basically the backend of a browser
11:37
@Squirrelkiller Postman can capture requests
Yeah u need just to act as proxy
@Raimonds A runner is basically just a server you give a batch or bash script to execute. You treat the script part as if you'd write a batch file for your PC.
No Proxy no working </3
using mono worked but csproj fails to build
since well microsoft i guess
can't find WebApplication.targets
@Squirrelintraining What are you actually tryign to do? Read firefox's traffic?
11:39
I know it will find targets if I use vs2017 msbuild tool
I might need to read through those xml files to see what they try to do, maybe I can exclude that target or find alternatives or fix whole thing ....
@Squirrelkiller Baisically yes, but more powerfull than the network traffic tab
TBH i have no clue what I am exactly doing
go go gadget fiddler?
that' what fiddler is for actually
Whats fiddler?
fiddler is network trafic sniffer
it's like postman but not as cool looking, but I think it can do more
wheres green Lion ?
I just realized hes not here
11:43
postman is for api testing. Wasn't aware it's also primarily used for sniffing.
Anyone faced this when trying to build using gitlab CI with mono:latest
AFAIK it's jsut for sending requests and examining the results, and running tests
@Squirrelkiller they added that option recently
So you can grab data and not waste time by manually filling requests
No idea about that error, but it looks like you should google this one.
I usually copy data from firefox dev tools
11:45
@Raimonds add the nuget package for that, should solve your issue
IIRC i've had that issue with TFS CI
Sometimes it will be a problem, other times it won't
Just adding the package seems to fix it regardless
!!shrug
¯\_(ツ)_/¯
I know the cause but not sure how to treat it better
don't be so ignorant caprica!
She's only doing as i ask
!!>yes
@CaptainSquirrel "ReferenceError: yes is not defined"
11:46
uwotm9
I didn't know you can add buld targets as packages
I know ;)
I FIXED IT
It only took 3 and a half hours, but I fixed it
!!>console.log("yes")
11:50
@CaptainObvious "TypeError: console.Log is not a function"
@CaptainObvious "undefined" Logged: "yes"
Fuck you cap
@Squirrelkiller Yeap sniffing and resending
Its a fucking pain for me atm
If you can do 1 request manually I would consider Fiddler
Good morning.
ish.
11:54
And I think I fixed my gitlab thingy
Afternoon.
Day.
Giff me notes how did you setup a CI
What source control tools are you currently using?
It's very simple setup, just to test it.
codebasehq + jenkins
11:56
@AvnerShahar-Kashtan what about night ?
@Hans1984 Not 'round these parts, not yet, no. Still the neverending furnace of the sun.
haha, ok
Actually, it's been a pretty mellow couple of days, neverending-furnace-of-the-sun wise. We're still a month off before the hell-hammer strikes.
The sun is a mass of incandescent gas, a giant nuclear furnace.. where hydrogen is built into helium at temperature of millions of degrees
We've discussed the song they released to correct the scientific inaccuracies of that song, right?
12:01
yep
I still prefer the original
Thanks for assistance with gitlab, it now works :D
YEEESS!!!!
@AvnerShahar-Kashtan Good morning.GetNextDaylightPhase()
By works I mean It can do build but nothing more like it, I am getting there
12:04
How did your GIS end up
@HéctorÁlvarez The guy ended up writing the code himself (which is to say, to expertly pick the proper SO question to reap the code from), to calculate clockwise order from the center point.
12:21
Wait you chose my option?
I believe Wietlol provided a pretty viable example about why that might fail
yeah and now hes gone
think about that
What if the centroid isn't inside the shape?
@Raimonds You can als otest. If you have test projects, let mstest run them in nother job on the stage after build. pipeline will have another stage and show yo which one failed.
Then I hope the guy runs enough tests. :)
What's the scenario for the center not to be inside the shape?
@Squirrelkiller Yeha I've tested that with NUnit and .net core already
Our infrastructure is not ready for true unit testing still but I am moving it there
My plan for now is to setup gitlab to close what it gets to one of our small internal projects, do a showcase of what we can do, hope it gets adopted. Meaning hosted internally with own runners and other stuff
12:30
@AvnerShahar-Kashtan A C-shaped polygon for example
c===
@HéctorÁlvarez It simply won't be a c-shaped polygon. It will fill it.
gitlab cna also deploy for you
just make another stage and job that deploys after build, using the build's artifact
I will run into issues with stuff being on different machines
So if I have points drawing this curve: Ɔ, it will simply be filled to look like a D
12:32
but I think xCppy lets copy over network
I'm fine with that. The goal here is to take an event that takes place in several buildings and draw a border around the relevant buildings. I don't care if I take in some extra space as well.
we might have some sort of limitations by web admin team since now every server we deploy to has it's own build enviroment
well I think it has ....
yep, definitely gotta copy over network
That's the idea.
12:34
I can still just download artifact and paste it on server directly
The red dot is meant to be an approximation of the centroid.
making it work is a huge win for me anyways
unless for a web app yo ucan use web deploy, that wouldm ake it easier I guess
@HéctorÁlvarez Give me that drawing as a set of lat/lngs and I'll put it in our test app. :)
I am creating profile for it now
12:34
I'm guessing it will simply close over the right-most points
That's fine for me, because I need an area that encloses all the points.
Not sure if helpful but there is math formula to check if point belongs to shape, if shape can be described in formula
I'm doing the opposite here - I have a bunch of points and I want to create a polygon that encompasses all of them.
is it maps related, sorry I missed whole convo
Why not do that, it's super easy
12:37
@CaptainObvious No, I prefer a polygon to a bounding box.
It doesn't look as good.
@Raimonds Yeah, it is. The conversation started yesterday. :)
@CaptainObvious I don't think converting a careful selection of points into a box fits any requirements.
The entire feature, if you ask me, is poorly specced and will run into lots of edge cases that the designers never intended.
BTW I was scolded again for not spending the last 2 hours reading documents nonstop.
12:38
HAMMERTIME!
Hey a rectangle is a polygon too!
I do have one idea
@HéctorÁlvarez Ah, it's not that far off. The secondary fallback option was to create a circle around the centerpoint that encompasses all points.
Seems like sharing ideas with you guys between reads is considered evil here.
12:39
I can't think of solution to it since you can join it in many different ways that would fit "all points are in closed loop"
should all points be used when you join?
Then we discovered that UWP's MapControl doesn't directly support drawing circles. The recommended approach? Create a 360-point polygon at regular intervals from the center-point.
Why not draw a line between each pair of points. If you have any points on the "outside" of the line, don't use that one and keep trying untli you find one that doesn't
It's essentially brute-forcing a solution but it should work
@Raimonds Not necessarily. The point is that I have several buildings on a map, and an event that occurs in several of them, so I want to mark a boundary that covers all the affected buildings.
Please tell the UWP engineers to call OpenGL version 1 engineers and learn some stuff.
Well, guess I'll have to close the chat while I'm working, not even in background.
12:41
Oof
I can't keep being told every 30 minutes that I should spend my time on what I'm supposed to do.
Micromanagement sucks
see you around guys
My ideas is too crazy and complex
(Hector needs another new job)
12:43
I am thinking of something like capturing all points under huge rectangle and then reduce its size and make some sort of magic conections whenever something is outside new area
Not that bad actually
visually it looks cool, not sure how easy it would be to write as a code.
I think math should have this issue sorted, just need to ask google properly
like finding mid point, calculating distance from each point to mid (vectors)
and then somehow based on those values and their locations join far most points
I regret not paying attention to my math teacher in uni, he tried to explain as a lot of cool stuff which I now understand since I tried to learn OpenGL
For the common cases, when the center point of the polygon falls inside the polygon, our approach works fine. You calculate the center point, then calculate a vector between that center to each point, and find the angle from the central axis and sort the points that way - then you get your points sorted clock-wise (or ccw, whatever), and you can create a polygon by drawing the edges in that order.
Start with a rectangle like mine, progressively reduce it's size. When you get to a point outside the rectangle, check to make sure it isn't between 2 points already outside the rectangle.
If it's not between 2 points, make it a point of the new shape
Hector was talking about the scenarios where the shape's center-point is outside - like the C shape above, which means that the naive clockwise-from-center polygon will include a lot of space that's "outside" the shape.
But in our case, it doesn't really matter, because the "shape" is simply an approximation of "the event is happening in this area", and we don't care about a bit of extra space.
I am so not going to do any of those things unless the design team explicitly decides to focus on that feature. It's a minor part of feature and far from our app's core interest.
12:49
We need Geometry teacher
Should result in that
26
Q: Converting point sets to polygon boundaries?

DFxI'm trying to convert sets of points to their respective polygon boundaries. I think this is something like a Voronoi diagram or Convex Hull, but not quite. I'm sure there's a technical term for it, but I'm a beginner to GIS. It's probably best illustrated with the following image: So, give...

We can try to find out how that software works ;D
so you want to know how to calculate the convex hull given a bunch of points?
@CaptainObvious I think this stll would work with decreasing size shape approach
I don't even know what those things are, but images in there look like something we want to do
Hmm or what if we randomly start shape at 1 point and recursively looking for points left outside our shape?
like closest points, that would make moon like shape I guess
I think if you started off with a circle which enclosed all points, then slowly shrank it
12:55
What what if the closest point to a point on the outside ofthe shape is on the inside?
mr5
mr5
I'm hearing Geolocation issues hmm
than those shapes are really tricky
I think the first point would have to reposition the circle such that the shrinking circle wouldn't shrink where the first point was found
It's really hard to tell what should be the end result since you can make snakes, cats and all sort of shapes depending on how you join points
You might want to use multiple algorithms and merge results to find best who knows
yeah, I think that'd be my approach
12:59
cats
:o
if each new point as the circle closes is forced to be the outside of the circle
then it also means each new point is a guaranteed outer point
I think there will be edge cases (circle and edges haha)
anyone ever CI/CD in gitlab?
and knows how to configure runners
I did few hours ago
also learning
did you find the runner settings in the website?
just asking to see if I am lacking permissions
13:01
you need ".gitlab-ci.yml" in your root
Yes and no, website did create file for me from template, but I had to adjust it
for my netframework mvc + npm
need to configure runners in the yml?
you configure what runner does in yml
runner itself as far as I know is something that runs image of machine so to say
mr5
mr5
I think one of my colleagues already solved this problem since we had the same product before where we are required to draw a polygon from a map based on a given lat,lngs with no particular order. It was highly tested and no issue have been filed so far. I would take a look in the source code but I'm already heading home so /shrug
right I did configure but the site tells me it has no runners to execute the script
where that machine is environment with things you need to build your app.
You can choose images for your CI steps in yaml file
I am using public runners, you can enable them from config section
13:04
thanks I'll try to find that
@mr5 I would like to know how are you doing that map thing
mr5
mr5
It was Google Maps though. The bling bling map may have a different approach to draw polygons so...
Isn't there algorithm to use still to determine how to join things
mr5
mr5
It might also have to do with the internal way how Google handle geopoints
I am wondering how would you sort coordinates based on how far are they from you
is it sum on lat + lang
mr5
mr5
13:08
Afair, my colleague did sort it out based on the far east,west thing
more life delta of your coordinates to given point summed up and compared to another pair
mr5
mr5
And some center point on the algorithm
Feel so nerdy to enjoy technical aspects more then nude woman :D
well not necessarily but you get the point
@Raimonds That doesn't make you ner... wait.. hello fellow nerd. :)
Graham's scan is a method of finding the convex hull of a finite set of points in the plane with time complexity O(n log n). It is named after Ronald Graham, who published the original algorithm in 1972. The algorithm finds all vertices of the convex hull ordered along its boundary. It uses a stack to detect and remove concavities in the boundary efficiently. == Algorithm == The first step in this algorithm is to find the point with the lowest y-coordinate. If the lowest y-coordinate exists in more than one point in the set, the point with the lowest x-coordinate out of the candidates should be...
This looks like it would be very effective
So it finds lowest Y and looks for next X on the right until in can't find any after it moves into opposite direction and back again until it closes loop
in the process figuring out is it correct Y on that X
Nah not like I described but it is exciting
13:23
it finds lowest y/lowest x point
then sorts all other points by relative angle
It reminds me times when I tried to write algorithm for minesweeper where it opens fields that have 0 mines around them :D
then it simply connects the dots from largest angle to smallest, eliminating any right turns as it finds them
It is so useful sometimes to know that those algorithms exist
yeah, I like to think of them as tools in my toolbox :)
you won't need them most of the time, but it's nice to know you have it when you need it
What is the point to scan like this, they just skipping a step everytime
13:27
@nyconing
Graham's scan is a method of finding the convex hull of a finite set of points in the plane with time complexity O(n log n).
1st sentence tells what it is used for
think of geo coordinates for example
G'morning.
How should I process form submissions in MVC to prevent duplicate posts with the refresh button?
@nyconing what step are they skipping?
disabled button after click?
of you mean F5 button?
The button doesn't exist. I'm referring to the refresh button which resubmits the data
13:34
don't submit to same url
is your other option
After submission, I load the detail view and display it. I could redirect instead. Is that the standard flow?
onbeforeunload will only give a prompt to people asking them if they want to navigate away tho
This made me laught
disclaimer, I worked there for a short time
13:38
So I'm on a scaffolded page for Edit. Submit is pressed. The Post ActionMethod for Edit is called in the controller. If I want to display "Item successfully updated" or whatever, I can't use ViewBag to store the message if I redirect. Do I use session instead?
Or follow a different technique, flow?
You should be able to use Viewbag
Uses session for something that should be there for long time
or TempData
TempData and Viewbag are basically the same
i think
Won't ViewBag disappear on redirect?
If you set the ViewBag data in the method that handles the post & then redirect to your success page and you display it there, it should only empty itself once you've hit the page and displayed it
does that make sense to you?
13:43
If I used session, I would destroy the message as soon as I display it.
Viewbag does that for you
Yes, that make sense, Captain. I didn't know it worekd that way.
I wouldn't use Session for things like form errors/success tho
Ideally, you should use session for things you want to keep for that user
like username etc
13:43
unless its users session :D
Yes, I understand
I once did something bad
stored current logged user in static class
I quickly learned what people mean by "thead safe"
Good, Try implementing that and then if you have issue's report back and we will go from there :)
Why on earth would you ever think that was a good idea lmao @Raimonds
I needed user data to be accessible quickly at any place of my code
In 1 easy step, i'll show you how you can make your project perform data breaches for you!
13:45
And I didn't want to go into identiy or any other sort of those things
tbh i've never used identity
It was interesting bug to solve when UserA logs in, UserB logs in
UserA now is USerB :D
yeah i can imageine
At my last place, we used session for all the things
all the relevant things
So unless you fail yourself sometimes things are not making too much sense
I am still working with gitlab ci at the moment, I am pretty sure It will work out for my work projects
That's true
13:48
webconfig transforms work, publishing work so now I need to combine my node step with msbuild step and make artifact out of it and I am done
Trial and error is the best way to learn
and F11 as well
Step-into
I think if uni can teach how to debug things properly you are good for life
Just taking the time to figure out how to use Visual Studio does that too :P
Don't need to get into student debt just for that lmao
@Raimonds I support an application where if inactive admin user tries to log in into the public site, it was redirected to the administration site and considered active
After 20 builds on gitlab I succeeded, I am calling this a day
13:57
Is it possible to convert a Dictionary<int, string> to a Dictionary<enum, string> ?
I mean, its not so much a conversion, but you could loop through the Dictionary<int, string> and do it manually
@bradbury9 Looks like Vietnamese.
Or are you looking for a specific way to straight up convert it
I guess it is possible but why not to start from dictionary enum string in first place?

« first day (3155 days earlier)      last day (2018 days later) »