« first day (2111 days earlier)      last day (2842 days later) » 

12:17 AM
Darkrifts
Have you worked with webclient and web request?
Can anyone help me understand how to create a webrequest and login to google
 
@JohnThompson Nope, I haven't :P
I work more in local systems
 
What type of stuff have you made?
 
12:57 AM
I made an environment that can handle a type of core warfare :P
(But with my monstrosity of a language, FOS-X)
Oh, I also made this beauty "trolling" the C# documentation board (Not an actual post, just messed with HTML things)
 
 
5 hours later…
6:23 AM
Hi Anyone here having experience in MVC Insight Screen ?
 
6:35 AM
?
 
never heard of it
you mean Microsoft's Application Insights?
 
7:00 AM
No
 
Morning all
 
7:23 AM
Morning
 
hi
In hungarian there is a rule for don't let too long composit words without hyphen. Apparently labdarúgócsapataitokkal doesn't count as long enough...
the word means "with Your soccer teams"
 
@ntohl Define "too long"
 
7:40 AM
it have to be more than 6 syllable, and more than 2 "component". The catch is "aitokkal" part is not considered syllable in that particular word, because theese are terminations and tokens
ofcourse there are a dozen more exception from that rule. It wouldn't be hungarian if there are no exceptions.
 
@ntohl Model the language use some automaton that fits it
 
@MoonOwl22 there are more exceptions, than bits ever transfered through the internet since the beginning. How would one possibly implement them?
 
@ntohl Is there no set of rules for those exceptions?
I'd hate to think you'd need extra memory for a language
 
some exceptions are made up from rules, yes, but there are also lot of plain "it's the exception. Just learn it"
 
@ntohl How formal is the Hungarian that you expect to pass?
@ntohl Then there's no option but to have a jump table for the exceptions that do not have rules
 
7:54 AM
btw I don't have to parse it or translate it
 
You just have to recognise it?
Or you have to generate it?
 
I have just checked on a rule, that I long forgotten since school, and I was shocked, that what kind of exceptions the rule had...
no programming related
 
Oh...
I refer you to systems theory
 
M$ word have some language check, but it's very basic. I suggest anyone with a little sanity to don't try to write spell checker for hungarian
 
@ntohl It's probably best to write a macro that will write the programs for you
 
7:58 AM
it's impossible to learn the language. Modelling it is even harder
 
@ntohl You can create a "pseudo-set" of JavaScript to describe the rules and exceptions, and compile it
You can start from the beginning of time looking at the family of languages it belongs to
 
>D
 
That way you take care of Hungarian and every other language in that family that can give you problems
 
I choose You Jarvis, go! Analyse all the languages!
 
Deriving the most abstract form of all known human languages is probably the first step
 
8:23 AM
TIL: <a href="abc.file" download>Download me</a>
download attribute on anchor tags notifies the browser that the link is meant to be downloaded
 
Attribute without a value no less
This infuriates me
 
haha really?
Welcome to HTML5
do you like HTML tags that don't close themselves? <hr>
 
^ crime against humanity
@Squiggle doesn't work in firefooooooox
 
8:41 AM
@misha130 nobody cares about firefox lol
 
#triggered
 
j/k it's a good browser
but it's interesting they put that in the HTML5 spec
 
16% of usage in may 2016 ;_;
 
still relevant though. Mozilla is an excellent foundation.
 
I'm still using Firefox. All hail Firefox
 
8:44 AM
yes, it is an excellent foundation
god bless
 
has anyone used FirefoxOS?
 
Unfortunately not. I thought they cancelled it..?
 
the web page is still up - but the list of countries where the phones are available are basically a list of "places that aren't Europe or North America"
 
I didn't know everybody uses chrome
 
my default browser is Edge but I tend to use chrome for most things
 
8:54 AM
Anyone ever created an installer using Visual Studio?
Is it possible to execute some sort of code along with the intsaller?
 
yes, don't do it
use wix
 
What is wix and is it free
I need to parse and replace some XML
Along with the installer
 
it's a wrapper for windows installer
and it's free
 
thanks! what about executing scripts or code?
 
Make sure to read very carefully everything the documentation tells you about versioning. Doing that wrong seriously screws it up
 
8:56 AM
The install process?
 
Wix creates MSIs, they have version numbers in them and those are important
 
So, back to my other Q
Whats the way to add some data to an XML, as part of the intsall?
 
installers should have a mechanism to update config files as part of the process, right?
 
Ohh lovely jibly
Probably going to take me as long to work this out as it has to create the tool
lol
 
9:01 AM
Yeah it is not a simple tool
But it is powerful
 
Gawd its a bit philosophical
Feel like im reading a tutorial written by a minature bhudda
 
But it's like, it can set up and tear down IIS sites and application pools etc in a way that is reversible, so the uninstall is guaranteed to undo whatever it did on install, for example
or registry settings, those too
 
or xml
xD
no, i like to use the best tools for the job
lol light the candle
ace
"They are guaranteed to be unique, no matter who else asks for GUIDs on their computers, they will never collide with yours."
Lies
 
alright folks
 
9:21 AM
yo dwag
 
War
guys ... do structs always get put on the stack?
it occurs to me that we could write code that immediately gets cleaned up without GC by using structs instead in of classes ... anyone got any thoughts on that?
 
Not always true. They're on the heap when they're class members
And if they're boxed
 
War
ah ok
hmmm
 
I don't recall seeing any examples of people going out of their way to write class-free C#
Certainly none that had a clear benefit
 
War
no i just wondered if it might add some value to ensure that the code was definitely on the stack instead of the heap
been chatting on another chat about OOP
the example was ...
var result = new Sum(new Sum(1,2), 3).Result();
 
9:28 AM
Taking the 'everything is an object' paradigm literally?
 
War
so you could declare the result effectively as a stack allocation and compute without touching the heap
@TomW yeh these guys are trying to convince me its a good thing
 
Ugh
Cargo-Cult at its finest
var result = 1 + 2 + 3;
Doesn't touch the heap.
 
War
That was my point ... so declaring a Sum object as a class would put something on the heap, then I got told ... well use structs then
then I was like ... WTF!!!
 
headdesk
 
War
I can't seem to figure out a nice way of saying "WTF you idiot"
 
9:30 AM
You can't convince someone who doesn't get it but thinks they do.
 
War
these guys are weird ... but mainly because c++ allows them to abuse code "elegantly"
 
have anyone ever collided with same GUID here?
 
War
yup
it's rare but it happens
just generate again
 
it only happens when your GUID generation isn't random enough
 
9:48 AM
In this day and age doesn't require thinking about the heap/stack/etc. Just build something great in a non-retarded way.
 
So far my experience with wix is its a pile of ass if you want something simple doing
All I want to do is copy the exe into the installer haha
"(TargetDir)
The directory of the primary output file for the build (defined as drive + path); includes the trailing backslash '\'."
 
my job is to build retarded things in great ways
 
@RoelvanUden You have to if you have an employer who expects you to use C because "C is fast"
 
Yea wix is bugged
Doesn't work :)
 
War
@Squiggle it also happens when you have a set of billions of guids and you need to add a new guid, the perfect guid generator could only work by knowing all the existing guids in the set
@RoelvanUden My argument to them was "why do I care if I am OO programming where something lives (heap or stack)" ... the main goals of OOP are about not giving a shit about hardware and conceptualising a problem domain
 
9:57 AM
@War "For a 1% chance of collision, you'd need to generate about 2,600,000,000,000,000,000 GUIDs"
 
War
The net result was that the conversation later came round to "but thinking like this will ultimately not work in high performance situations"
 
So whilst it is theoretically possible, it is highly improbably in any real-world scenario
 
War
for example: OOP just can't solve many game programming problems
 
It is far more likely that it's just a bad use of Guid.New(). I've seen those a few times.
 
War
at spme point we need such high levels of optimisation that the code has to be procedural in nature
 
9:59 AM
@War It depends on whom you're speaking to
 
War
@Squiggle i can assure you its a lot less than that
 
orly?
 
War
@MoonOwl22 If we are talking to purist OOP'ers
 
If it's not pure, formally, it's a different object
 
War
I admit i'm not purist and believe OOP is a tool like many others and I selectively use it to solve problems I think it's good at
When I think of objects I'm thinking about controllers, services, data sources, ect ... that's not purist OOP
 
10:00 AM
I like the idea of functions for everything
 
War
I'm applying OOP constructs in to my procedural code
 
@War fair enough. stackoverflow.com/a/185332/1034004 but still unlikely in any scenario I've ever dealt with.
 
When thinking of objects in object-oriented programming, I'm thinking about networks
 
War
@Squiggle I must bea really unlucky then ... or maybe just the newguid function in .Net is shit
@Squiggle i'm thinking the probability depends on the algorithm used so it's likely a variable thing
 
it's quite possible to generate two identical GUIDs using the .Net functionality if you're not careful
 
10:07 AM
@MoonOwl22 A non-technical employer should not be making the technical decisions.
Besides, if you're an awesome programmer in C and C# the difference is somewhere between 1-5% performance difference. If you're not awesome at C (read: almost everyone) then C# is easily better performing because it's so much harder to do wrong.
 
War
@Squiggle yup ... and the SQL version too (had that before)
@RoelvanUden for comparable code of course ... the problem is that C lets you do things that you can't do in C#
 
Like what? Everything C can do, C# can do, but better.
 
War
I can't put an instance of a reference type on the stack in C#
 
But why would you need to?
But I think you can actually.
 
War
I'm not saying it make sense ... i'm just saying I can't ... maybe in some C scenario you gain a cpu cycle or something for doing that
that's likely where the other 1% comes from
@RoelvanUden nope
 
10:14 AM
Oh great. One CPU cycle. Yeah, that's where the 1% comes from.
 
War
over the course of an application such operations might be used billions of times
hard to say in C# world but in C world you're basically right on the silicon I guess
 
Well, the biggest advantage C has, is the ability to drop down to asm.
But really, these are such theoretical points that are hardly ever needed..
 
War
Yeh the issue comes with things like games
we repeat a set of steps every frame, 60+ times persecond
if 1 of those steps is a few cpu cycles slower it has an impact on the perf of the application
on it's own that likely means nothing ... but combined with other "non optimal steps" we start see real drops in the performance
that said ... in today's world the idea is that we sit on top of highly optimised code (our game engine) that handles the grunt work and pass down OO based in structions
so we get a mix ... the approach that, IMO should result in the best of both worlds
 
An extra CPU cycle is not necessarily better
Unless you need it for cases where operations should complete in a short period of time
The benefits of C are dependent on who the observer is
For most business applications, it's silly to talk about C's benefits
However, if you find yourself needing to make use of CPU features that are available through a C API, you don't have much of an option
@War Essentially anything time-based
Video decoding comes to mind with respect to this
Try writing a HEVC encoder and decoder that support up to at least 60 Hz for the frame rate and a frame (width, height) of up to (3840, 2160) for a smartphone
 
10:38 AM
zzzZzzzzzZzzzzz
 
Bear in mind, audio will be encoded and decoded as well. Also, your codec will be utilised by other software which might come with its own weight
 
Anyone know how to use util:XmlFile with WIX?
Doesn't have any documentation on how to add to a previously added element
dont think you even can :(
 
createElement
Creates a new element under the element specified in ElementPath.
Not that?
 
Yes but
How can I select the one that was created ?
Because to create this:
<CustomToolDef>
  <Definition>
   <Name>Check In Request</Name>
...
So I can call CreateElement, CustomToolDef
But then how do I create inside of that?
I could assume and xpath to the one that does not have any children
Hacks
 
Good question. It might process the tasks in the order that it sees them, but it might not
 
10:46 AM
the sequence wont matter its the xpath
 
Err
Why is the xpath a problem?
 
I need to XPath to the CustomToolDef
That does not have any children
Then that will be the right element, I think
 
But you know what that should be
So what's the problem?
 
Since I cannot reference a previously created element
I do?
The file im writing in has multiple <CustomToolDef>
Not created or generated by me
Its a list
 
OK so if you can't predict what those are, this has nothing to do with whether or not you want to add a child element
You either know which one you want or you don't
 
10:48 AM
ok so
If I add <CustomToolDef> in sequence 1
In sequence 2, how do I add to CustomToolDef? Given there are multiple //CustomToolDef in the file.
 
or
//CustomToolDef[not(*)]
 
Assuming the tasks run immediately and in the order they are in the script
 
both need to make assumptions
 
Well, try it I guess
 
10:50 AM
is there a way to test it without using the installer?
 
Good question, have never done so
I think the scripts are MSBuild targets, so you might be able to run the wixproj directly
or a particular target from that wixproj
Never tried it, but should work
 
this might help xpath
 
11:03 AM
yey xpath
 
yey
@TomW - so if ive done it right its setup. One last thing, how do I get the target path of the intstalled EXE?
[INSTALLLOCATION] seems good, here we go
Bah, I get this:
error LGHT0204: ICE03: Invalid format string; Table: XmlFile, Column: ElementPath, Key(s): CreateElement2
<util:XmlFile Id="CreateElement2" Action="createElement" ElementPath="//CustomToolDef[not(*)]" Name="Definition" File="[%HOMEDRIVE][%HOMEPATH]/.p4qt/customtools.xml" SelectionLanguage="XPath" Sequence="2" />
 
11:25 AM
hi
im trying to select a gridview cell number in the currentrow
dgvGetData.CurrentRow.Cells[10].Selected = true;
but this does not work
what im i doing wrong ?
 
Windows Forms?
@techno msdn.microsoft.com/en-us/library/… what you've done... should work, but I'm not sure what you expect the end result to be?
 
yeah...
@Squiggle winforms
i just that cell to be selected and focused in the current row
 
selecting and focussing is different.
you need to set the dgvGetData.CurrentCell to the one you want to focus on, surely?
 
solved the issue ... thanks anyway
 
BTW I don't know any of this. I'm just googling.
you should try it sometime
 
11:32 AM
dgvGetData.CurrentCell = dgvGetData.CurrentRow.Cells[45];
was the solution
 
11:45 AM
@War is there a way to read the quora article without actually selecting 10 useless interests?
 
War
@ntohl I just refresh the page
it often asks me to sign up and shit
I never have
 
after refresh it's immediately asks
 
12:19 PM
OhhhhHH its almost working
EXCITING
@TomW - you there?
I got as far as this:
 
I am now
 
Seems the first part of the process must have failed
<util:XmlFile Id="CreateElement1" Action="createElement" ElementPath="//CustomToolDefList" Name="CustomToolDef" File="$(var.CustomToolsPath)" SelectionLanguage="XPath" Sequence="1" />
 
CustomToolDefList is the document element?
And it's unqualified?
 
this is the file
<?xml version="1.0" encoding="UTF-8"?>
<!--perforce-xml-version=1.0-->
<CustomToolDefList varName="customtooldeflist">
 <CustomToolDef>
 
Looks ok to me
 
12:28 PM
Same
 
What about just /CustomToolDefList
 
i can try that
with the not?
 
Shouldnt make any difference but // means 'anywhere in the document'
 
yeah
Does my [not(*)] return an element?
 
Not sure, I can't find an example for not(*)
It seems logical to me
 
12:32 PM
works in the xpath visualizer :(
assuming that is the current state of the file
might try without the second statement
so it adds this
<CustomToolDef/></CustomToolDefList>
Yup must be a bug :(
Lol what a waste of a whole morning
 
Its open source, you can fix it
 
lol
 
I think it is anyway?
 
yea
but surely this has been done before
I could cheat
set an attribute and find by attribute
or maybe last works
Didnt throw an error but didnt do what i wanted
 
hi
any reason why a DateTime value would decrement by the user timezone offset each time returned from the server?
 
12:40 PM
if someone can help here i'll really appreciate
0
Q: C# custom picturebox control

SlashyI work on a project where I need to constantly get bitmaps and draw them on a picturebox. The idea is to draw a first initial bitmap, then retrive the rest of the bitmap and draw them above the initial one. (The first one still displayed in the picturebox, so I want to draw them on the first bi...

 
This doesn't happen when run locally only when deployed to IIS..
 
12:53 PM
@TomW its working by being more specific, without using // as you suggested
uninstall really screws up the xml though so ive made it perminant
 
Matt Sherman on July 27, 2016
We believe (and developers tell us) that job seekers should be empowered with as much information as possible when looking for a job – especially salary. So we ran an experiment on Stack Overflow Jobs to see if the evidence would support it.
 
Can everyone in the world just speak English, use the same currency and have the same date format from now on please? Thanks.
 
@captainjamie you forgot SI units
Also in regard to dates, everyone should use UTC always
 
1:12 PM
ooo salary calculator
tap tap tap ...$143,000 \o/
damn I'm being underpaid :(
 
@KendallFrey Everyone should, but they don't and when you're making a website that'll be used all around the world you're not supposed to tell the user how they should write their dates.
Unfortunately.
 
@Squiggle what skill score did you give yourself?
 
I have a problem I'm trying to figure out. The system I'm trying to create is going to have a set of roles and permissions. The permissions are fixed, and the roles are associated with them. Here's the thing. We're going to have a bunch of different groups of users that can each have their own sets of roles (some groups might only have one person in them), there could be hundreds of groups. All the roles in each group point to the same set of permissions.
Are there any established ways of handling something like this without it becoming a big, convoluted mess?
 
user47589
@captainjamie no, i'll use whatever format is comfortable for me
 
1:31 PM
@Amy You make my life about a million times more difficult!
 
@TomW 3, because I consider myself a decent all-rounder with some good experience in project & product management and "innovation" :-]
 
Yeah so it's difficult to gauge. They provide a calculator but if you don't work for StackOverflow you don't really know what you're comparing to. What's 'outstanding' on that scale?
 
user47589
@captainjamie rubs hands together menacingly excellent....
 
An A+++ on any topic, working at StackOverflow, I would expect to be globally notable for their work
 
user47589
its my goal in life to make the Lannisters lives miserable.
 
user47589
1:41 PM
captain jamie!
 
Visual Studio just had the biggest brain fart ever
 
@TomW yeah I'm no A+++ on anything.
 
@Squiggle I'd see an A+ as where the answer to "If there is one person in this company you'd ask about [topic], who would it be?" is your name. Then you're an A+
 
@Amy Lannnister? Do you not know a Baratheon when you see one?
Obviously I've not corrected enough grammar recently.
 
Does anyone know a way of juggling multiple role sets different groups in (or associated with) an organisation?
 
1:47 PM
Oh ffs
@TomW - after all that faffing, I found this
 
@TomW yeah I'm an A+ in a few things for sure.
at the Bank I was a go-to guy on Angular, automated tests and... 'agile stuff'
 
@Asheh I saw that one when I googled for the first option, I couldn't see what the difference was but I assumed the word 'config' meant it was for xml config files
 
config seems a lot more flexable, you can embed and define things for install/uninstall I think!
ah well - learnt both now
:D
 
app.CreatePerOwinContext(ApplicationDbContext.Create);
I am receiving an error "ApplicationDbContext does not exist, are you missing a directory?", yet i have owin, and aspnet.identity
Is there anything i am still missing?
 
 
1:55 PM
@ElieSaad well yes, I assume you're missing an ApplicationDbContext
Is that a compile error or a runtime error?
 
Does anyone here do any stock trading?
 
I dabbled. Lost money
Basically gambling, a few hundred
 
Compile error, i didn't run it yet.
 
I just made about $500 on sale of apple. But then I looked up tax rates..... holy shit
 
@ElieSaad google says enabling identity is meant to create a default class
 
1:57 PM
@Michael lol
 
If i read it right, state tax will take about 28% and federal will take about 25%.
thats about 50% of my earnings!
wtf is that?
 
@TomW Yeah identity created nothing in my project. By what they mean is they create Startup.cs , in which i created and i am trying to add that extra code to manage a bit
 
@Michael 'earnings'
You didn't really earn it though did you
 
user47589
i hear kansas is a popular destination for those who dont want to pay taxes
 
@Michael win-win situation? :p
 
1:59 PM
I did.. I took the time to study the market and chose when to invest and when to sell
sigh... this is a time where Ted Cruz flat tax rate plan sounds amazing
 

« first day (2111 days earlier)      last day (2842 days later) »