« first day (3044 days earlier)      last day (1898 days later) » 
00:00 - 21:0021:00 - 23:00

12:10 AM
posted on February 14, 2019 by Phil Haack

I’m a big fan of Git aliases as a means of improving your developer workflow when using Git. They are great for automating common tasks. They also can help make sense of the byzantine set of options Git has.

 
 
2 hours later…
mr5
2:03 AM
@Sinjai is that build time?
good morning
 
V.7
2:37 AM
Oh ... wtfpl.net
@mr5 More possible it's a debug's breakpoint/step or something.
 
V.7
3:07 AM
Hey all o/
 
What V.7 said.
 
 
1 hour later…
4:11 AM
Why we do need abstract class in C#? [Very shortly]
 
Simple short word, that class is abstract, because that class cant be used(instantiate) directly and need to derived before using.
virtual Can instantiate or derived as you like.
abstract must derived.
It is useful on mid-level API of generic design pattern.
 
4:58 AM
@RejwanulReja Abstract classes allow abstract methods/properties, which must be implemented by the subclass, while also allowing some concrete implementation. An interface, by contrast, cannot contain concrete methods, i.e. complete methods that are more than just a signature.
 
mr5
In real life, interfaces are like specifications.
 
By the way, I did the conversion from ms to days up there with SpeedCrunch, an absolutely amazing calculator. Should definitely check it out and throw some commits their way. ;)
 
mr5
In real life, abstract classes are those stubborn specification writers
 
awaits elaboration
 
5:34 AM
Thanks a lot sinjai
 
5:50 AM
Web service get catastrophic destruction by hacker, wiped all disks include backups
 
can you please tell me the meaning of current assembly==current project?
 
What we get the lesson on this incident: Backup server must be read only.
 
V.7
6:12 AM
@nyconing how are you going to save a backup then?
 
@V.7 ?
 
V.7
It's for yours "Backup server must be read only."
It must have at least two users. One for read only and second for full access.
 
Yup as you cant modifying it.
 
can you please tell me the meaning of current assembly==current project?
 
V.7
Backup server assumes modifications.
Also, it assumes different roles, if you want a good one.
 
6:16 AM
No, All users include Admin shall not have write/ modify access.
 
V.7
@nyconing how appends backup then?
 
@RejwanulReja If peoples is answering your question, you thank only the one person that most useful to you. Which is inappropriate whether or not youre careless.
@V.7 Backups operations depend on backup server itself. Admin check only the backup was successful created.
 
it's a open discussion window. so what?
Ok thanks.
 
V.7
6:32 AM
Holy.
google.com/search?q=this gives 25,270,000,000 results
 
6:52 AM
posted on February 12, 2019 by Scott Hanselman

The optical disc drive is giving out on my GoldStar 3DO machine. It's nearly 30 years old. I want to make sure that the kids and I can still play our 3DO discs. I ordered this fantastic USB mod for the 3DO from a fellow out of Belarus. It came and it's great. It includes a game/file selector app that you boot off of if you put it in the root of a FAT32 formatted USB drive. However, when I clo

 
 
1 hour later…
8:04 AM
Morning.
 
It is morning, sir.
 
"What do you mean? Do you wish me a good morning, or mean that it is a good morning whether I want it or not; or that you feel good this morning; or that it is a morning to be good on?"
 
None of the above
I meant to say that it is morning.
 
System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.
   at MposInteroperationNetworking.Apis.DataLayer.File.LockWhenRun[TA](Func`1 action)
   at MposInteroperationNetworking.Apis.DataLayer.File.Exists()
   at MposInteroperationNetworking.Apis.DataLayer.File.CreateIfAbsent()
   at MposInteroperationNetworking.Apis.DataLayer.File.LoadAllLinesCreateIfAbsent()
   at MposInteroperationNetworking.Apis.DataLayer.PhysicalConfigBase.Load[TA](TA defaultInstance)
What is unsynchronized block of code? Isnt WebSocketBehavior.onMessage() are synchronized?
 
Goooood moorniiiiing CeeeeShaaarp! Have you solved any deadlocks in your code lately?
 
8:15 AM
No, I avoid all threading.
 
Looks like WebSocket run on different tasks when receiving
 
@nyconing onMessage is what happens when you receive a message using web sockets
I don't see how that's synchronized
 
So it is not synchronized because of socket needs to receiving multiple connections at same time.
I get it, thanks!
 
there's definitely some concurrency issues here, but the actual onMessage isn't guaranteed to be synchronized afaik
otherwise you could literally process every message one at a time
which may be what you want, but it's not a foregone conclusion that you'd want that
 
You might want to put a thread synchronizer in there to stop worrying about threading issues.
 
8:33 AM
oh but that's not good enough
You should write semaphors to the disk and check their existence before entering the code block
and the check itself obviously should be synchronized
 
I bet there's a codeless code for that
 
9:02 AM
I like async/await code whereas the continuation is always the main thread. Makes it so simple to reason about.
 
 
1 hour later…
10:12 AM
Good day
 
 
4 hours later…
user10864482
2:26 PM
good mornin
 
user10864482
3:08 PM
@MikeTheLiar I found an ibm paper drawing the concept of what I'm trying to achieve with code; ibm.com/developerworks/rational/library/4697.html
 
@Squirrelkiller we detected something that could be caused by a deadlock... does that count?
mondae, we are gonna decide if we want to try to solve it or ditch it
 
@Squirrelkiller I solved one in my colleagues code. Does that count?
 
user10864482
I'm to achieve this; ibm.com/developerworks/rational/library/4697.html using code but for an wpf wcf mvvm code base. Do any of you know if a solution already exist for that purpose?
 
user10864482
the linked article title is "UML Activity Diagrams: Detailing User Interface Navigation"
 
user10864482
the context is I have a big ass undocumented application and I need to document it
 
user10864482
3:15 PM
by big as I mean more than 800 mb of raw code
 
@User23332 just take your time and document every possible usage
 
Good morning everyone.
 
@User23332 800mb of raw code? I dont believe you.
 
 
I like raw code, because it is so raw.
Roel, you are pretty familiar with webpack. You ever have an issue with stylus-loader where stylus is undefined when you call the loader to compile a file?
 
3:31 PM
I don't use stylus, so, no clue. :-)
 
I normally do not either. I am tempted to scrap Webpack and just use the Vue-Cli.
 
Webpack is fantastic, but if you don't need it, you don't need it.
 
Well, the Vue-Cli has a prebuilt Webpack template with the minimum configuration prebuilt and then has all of the Vue stuff baked in with reasonable defaults. So it just simplifies the process.
But my problem is not so much Webpack or Vue, it is the frontend framework that I wanted to use with Vue that is throwing the fit in their .styl files and their css is referencing .styl in the css via imports.
 
That's a bloody awful framework then.
 
3:48 PM
I just switched to a better framework, and it worked like a charm.
 
user10864482
@Neil Yes, I agree but have no control over this one
 
user10864482
@RoelvanUden you don't have to but its the truth. Obviously I can't prove it to you but why would I say so if it wasn't true? There is nothing to be proud about that one ;)
 
user10864482
in any case that is why I need to automate the process. Can't do it by hand
 
I think 800MB of raw code would be larger than entire OSes like Windows.
I wonder what application you're working on :-)
 
user10864482
it's an application to manage country facilities
 
4:01 PM
I work for a utility company, that is larger than our system and we manage taxlots, easements, etc.
 
user10864482
i work for a gov
 
So do I.
 
user10864482
nice
 
user10864482
its been couple day of looking. It really seems like I will have to code that. Cant find any existing project doing that :(
 
Doing what?
 
user10864482
4:11 PM
write some code to generate UML Activity Diagrams: Detailing User Interface Navigation
 
user10864482
to generate some documentation for this app
 
Like what type of activity?
 
user10864482
navigation trough GUI
 
user10864482
our documentation is outdated by many years
 
What type of application is this?
 
user10864482
4:16 PM
wpf wcf mvvm
 
Oh, that sucks.
 
user10864482
the code itself is not even documented
 
user10864482
to give you an idea, some part of it was converted from powerhouse to vb and then from vb to c#
 
Ew...
 
user10864482
indeed
 
4:35 PM
Thank the heavens it is Friday.
!!Friday
 
4:51 PM
!!tumbleweed
 
 
5:22 PM
Best way to maximize JavaScript knowledge and minimize time spent?
!!giphy javascript
 
Damnit Lemon.
 
5:45 PM
JavaScript is horrible, but not that horrible.
Why do you hate JavaScript?
 
It's a Frankenstein language used only out of necessity because a couple people a couple decades ago made it the language of the web and now we're stuck with it. It has dynamic typing and only recently gained class-based inheritance.
And that's if you're even in a scenario where you can use the most recent version.
I like languages with lots of rules. It keeps The Dumbs (a group which sometimes contains me) relatively safe from themselves and limits overall chaos.
 
Fair enough, but the language served a valid purpose. People just adopted it for everything web based.
 
Yeah, it's a dumpster fire of a language that you're stuck with if you want to stay relevant.
JS seems, to me, a classic case of "we didn't know it would go this far". That leads to some myopia, just like IPv4 and other systems.
 
Well, Web Assembly will prohibit a large chunk of usage in my opinion. Minimizing JavaScript's dependency, especially as Web Assembly matures. Kind of like PHP, the language was popular and people used all over, then the language was killed by the next big thing.
 
JS could've just embraced its prototype-based inheritance, but apparently class-based inheritance is the only way.
 
6:07 PM
Anywho, I'm hoping gaining familiarity will hedge my hatred.
 
hello
I have a json file
{
"file":"D://MyMusic/1.mp3",
"day":"Monday",
"times" :["10:00:00" , "01:00:00"]
}

I want to make a windows task schedule or job to play the given file at the given time
so Monday 10:00 and 1:00 , this file should be played
any idea or keywords to search with
 
But... why?
 
?
 
You want to play an audio file at a certain time, but this information needs to come from a JSON file why? Some program is changing the time/file? Why?
 
this json file generated by another program
 
6:11 PM
How often does the file change? Is it the only one?
 
I can't understand you
it is something like alarm
you know the alarm in your mobile
something like that
 
How often does the JSON file change? Is it just one of many?
Why can't you just make a Task manually that plays the file every Monday?
 
this file may be changed many times yes
i need to make it dynamically
user will set the target file and the time to fire
 
129
Q: Creating Scheduled Tasks

BoardyI am working on a C# WPF project. I need to allow the user to create and add a scheduled task to the Windows Task Scheduler. How could I go about doing this and what using directives and references do I need as I am not finding much when searching the Internet.

 
then at this time , sound should be played automatically
 
6:27 PM
A scheduled task is simply xml, all you have to do is follow the format.
You can install it.
 
In %WINDIR%\System32\Tasks
Greg are you saying he should write an XML file?
 
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2018-06-12T09:36:17.3256148</Date>
    <Author>USA\arrigottig</Author>
    <Description>..</Description>
  </RegistrationInfo>
  <Triggers>
    <CalendarTrigger>
      <Repetition>
        <Interval>PT15M</Interval>
        <Duration>P1D</Duration>
        <StopAtDurationEnd>false</StopAtDurationEnd>
      </Repetition>
      <StartBoundary>2018-07-12T00:00:00</StartBoundary>
That is what makes up a task in windows, then to install it I execute powershell.
 
But
Why?
 
$scheduledTaskName = (Get-ChildItem $scheduledTask).BaseName

if (-not (Get-ScheduledTask $scheduledTaskName -ErrorAction SilentlyContinue)) {
    Write-Host "Registering scheduled task: $scheduledTaskName ..."
    Register-ScheduledTask -Xml (get-content $scheduledTask | out-string) -TaskName $scheduledTaskName -TaskPath '...' -User $taskUserName | Out-Null
} else {
    Write-Host "$scheduledTaskName scheduled task already exists."
}
 
      using (TaskService ts = new TaskService(@"\\RemoteServer"))
      {
         // Create a new task definition and assign properties
         TaskDefinition td = ts.NewTask();
         td.RegistrationInfo.Description = "Does something";

         // Create a trigger that will fire the task at this time every other day
         td.Triggers.Add(new DailyTrigger { DaysInterval = 2 });

         // Create an action that will launch Notepad whenever the trigger fires
         td.Actions.Add(new ExecAction("notepad.exe", "c:\\test.log", null));
Curious spacing, but okay.
I've given up trying to understand chat markdown.
 
6:35 PM
I removed my organization and execute markdown.
 
@Sinjai dark theme has code-mode
 
But the reason, is the xml is separate from your application and your code can execute a powershell script. So you can actually modify without having to redeploy an executable if you need to make a change.
 
@rlemon I don't want a dedicated code mode, I want MD to work properly.
 
code mode just makes the ctrl + k shortcut open an ace editor
 
!!giphy cap is broken
 
so you can control you indenting proper and when you submit from code mode it always has proper code indentation
 
Oh now it works.
 
This is like when my mom says "computer is fucked" and it runs perfectly when I take a look.
 
no I fixed it earlier
 
6:38 PM
@Greg How do you plan on shipping the XML?
1 hour ago, by Caprica Six
https://li.rlemon.ca/javascript#.png ...
T'was fucked an hour ago.
Rob, Chrome already uses 4GB of memory, do I need it using 4.5? ;)
 
@Sinjai I have a deploy script.
 
@Greg Why's it any easier for you to redeploy XML than exe?
 
@Sinjai that's not fucked. that's the image it returned :P
I don't control the lookup
I proxy rightgif
 
Yeah yeah, it was doing the 502 image not found thing again at the time.
 
I fixed the 502 last night
 
6:42 PM
Right, I hear ya. I'm just telling you what I saw an hour ago.
 
@Sinjai Because you do not have to take an application offline at all, also when you deploy the application the installation script will make sure any new dependencies are also handled. So you can do the app and dependencies, or modify a dependency and the application is still online without downtime.
 
@Greg Couldn't you do a similar thing if you put the task code in its own dll or summin'?
 
Also the Help Desk can make a change to the XML, you do not have to open your IDE and make a change in code, rebuild, deploy when you have a stupid scheduled task that needs to be modified.
 
Ah.
Would it do any good to just store the relevant settings in text, though? Like bassem and his JSON file. Would make the whole "edit the text without an IDE/rebuild" thing even easier.
 
Heyoo
 
6:47 PM
Shalom.
As-salāmu ʿalaykum, if you'd rather.
 
Bonjour
 
How's it hangin' Kendall?
 
a little to the right
 
Kendall. I have a couple questions for you. 1. Have you seen something like this before? 2. Does it have a name? stackoverflow.com/questions/54490264/…
 
Yeah, it's a mechanism for dependency injection to provide the most specific implementation of a generic service interface.
 
6:51 PM
:P
 
Or, as we in the biz call it, a MFDITPTMSIOAGSI.
 
Just rolls right off the tongue doesn't it?
 
Pronounced "miff-dit-pit-miss-aye-oh-ag-see".
 
I have no prior experience with any such pattern.
 
Ok thanks!
 
6:53 PM
@SpencerRuport, did you create the policy-provider tag?
 
A lady named Sinjaiyesh works about 20 feet away from me, and when people say "hey Sinjaiyesh, ..." I think they're looking for me for a second and have a bit of a heart attack.
Some names have been changed to protect privacy.
 
Good reason to encourage cardiovascular health.
 
Delete the gym. Hit facebook.
 
Delete the Facebook. Hit Jim.
 
6:57 PM
Can we just delete everything? Existence is meaningless anyways right?
 
Obligatory gym you can't exit reference
The best gym is one you can't exit.
 
Can we keep Milanos?
 
You can, but you have to use your colon.
!!giphy milanos
 
All fiber diet?
If you cannot exit the gym, how would you enter the gym?
 
7:00 PM
Same reason I can type "start vim" but can't type "exit vim".
What on Earth does the ability to exit have to do with the ability to enter?
 
I logically thought of how the building was constructed. Not crappy software design.
 
You lack creativity!
Imagine you jump through a tube onto a pad to enter.
That doesn't imply you can climb up the tube to get out.
 
Imagine your mother bathing in the ocean.
Soak in the imagery.
 
Anyone know where the version of this is that includes "your mom"? pbs.twimg.com/media/DUPG8xCW0AE0j7F.jpg
 
Third grade insults, by the creatively inept software engineer.
 
7:09 PM
Who'd that be?
 
Thank you, and this one is hilarious.
 
There's just so many gold ones on that list.
> Security by optimism and prayer
How long would you consider a "slow" SQL query to be?
That sentence does not read well.
 
So freaking true!
 
7:15 PM
My debugger keeps getting detached but the program is still halted? wat
 
@Sinjai The author should be "N.E. Breated with foreword by S. Balmer"
see also Ballmer Peak
 
Have you closed and opened Visual Studio again?
 
sigh
Does VS have a "go to breakpoint" thing? It's at a breakpoint somewhere (I can continue, step over/into, etc) but I don't see any highlighted code indicating where it is in the execution.
I broked it.
Uh oh
 
Just go to debug and delete all breakpoints.
 
That's not the problem.
Ugh what did I break?
> Although I haven't found more info about the error message, it seems that I may have invoked a method in the code while in break mode and tried to detach from the process before that was completed, causing Visual Studio to prompt me to wait.
 
7:31 PM
Your IIS service tanked hard
Remove from task manager and restart VS as admin will fix.
 
Got that after restarting VS, WAS, and W3SVC.
Runs from outside the debugger...
Attaching the debugger makes a method call hang apparently.
Okay, used Debugger.Launch() and it worked once...
Computers, how do they work?
 
8:00 PM
2 messages moved to Trash can
 
!!giphy friday rebecca black
 
Is there any difference between stuff.All(thing => thing.Num != num) and stuff.Any(thing => thing.Num == num)?
?
 
The difference is if stuff is empty
 
8:05 PM
The second is easier to read, too.
!!afk three day weekend to work on my reading comprehension
 
wait
there's as much difference as it's logically possible to have
i think?
when one is true the other is false and vice versa
 
Hol up a minnit
 
This conversation is proof that humans weren't created to understand formal logic.
 
I need a .None() method, clearly.
Bad day to skip lunch.
 
That's just !Any
Or again, All(!...)
 
8:15 PM
I know, but to a human mind there's a difference between none and not any
To this human mind
 
Okay Sinjai needs to eat a sammich so he can think about logic without being lightheaded.
So I think the confusion comes from the concept you alluded to. That it makes a difference whether you not the result or the condition.
So stuff.All(thing => thing.Num != num) == !stuff.Any(thing => thing.Num == num) ?
 
8:32 PM
I think so
 
Yeah, which I'm actually pretty comfortable with in that notation.
 
Hey all, at work, we have a an Old application that uses .NET Framework 3.5's System.Workflow.Runtime , and it is a fairly complex application that have sequence activities running in parallel, and so on and so forth.
 
So how do I properly invert !Any(x == y)?
 
All(x != y)
I think
 
Using Any
 
8:39 PM
Hey all, at work, we have a an Old application that uses .NET Framework 3.5's System.Workflow.Runtime , and it is a fairly complex application that have sequence activities running in parallel, and so on and so forth.We were planning to upgrade to an newer .NET Framework like
.NET Framework 4.7.2 , however, what specific libraries within the latest .NET technology should we use as opposed to the Old System.Workflow.Runtime without losing much of the existing features?
 
@Sinjai You just did it
Or, what do you mean?
@crazyTech Why would you change it? If it works, there's no reason to replace it.
 
Well, there's a difference between changing the result and changing the condition itself, right? I would say intuitively (though naively) that you can change the result by changing the end result (obviously, I guess) or the condition itself. I would also figure that changing the condition itself is the only way to get the short-circuiting behavior desired.
 
That didn't clear up anything for me
 
@kendall-frey Thank you for responding. It's pretty old, it was developed using Visual Studio 2008, and it's a huge application, and it is quite buggy which forces us to run manual update sql statements to correct data was wrongly entered by the application in question
 
user10864482
8:49 PM
@crazyTech how huge?
 
Exploring the way not-ing the result and/or the condition affects the end result. So like if you have All(x != y), you can not just the condition to go from none -> all, but if you not both you end up with "some". !All(x == y) -> "Not ALL of my x are y" AKA "SOME of my x are y"
 
user10864482
a problem I have seen with huge app is that by the time the app is completely rewrote the technology is not edgy anymore
 
@Sinjai no, some of my x are not y
also note that "some" is identical to "any"
 
@user23332 Thanks for responding. it is a huge app for Hedge Fund customers that keeps track of investments and withdrawals. There is some multi-threading involved. Forgive me for throwing in financial terminology, but it calculates a HedgeFunds's NAV and Fund manager's performance fees and management fees
 
@KendallFrey You're right, I said it right in my test code
@KendallFrey How would you say "!Any(x == y)" in English?
 
8:54 PM
"not any" or "none"
 
Evening kids
 
So if you flip that, you get "all", right? How do you express "all" in terms of Any?
 
@KendallFrey @User23332 The diagraming with System.Workflow.Activities.SequentialWorkflowActivity is quite good because it allows the programmer the visualize the work process flow of the application, but if there is some kind of speed performance gain involved by switching to using C# threads or C# asynchronous programming then it certainly would be beneficial
 
user10864482
@crazyTech if they decide to go with a rewrite, did they figured how they plan to have both system running? coast to coast or will they shut down the old system to bring the new one up? In other words do you need to convert the data too?
 
@crazyTech Do you replacing WF with something else?
@Sinjai De Morgan's laws
 
8:57 PM
Any(x != y)
 
@User23332 everything is up in the air, we are just investigating if it's feasible, because at present, the application support team is working in an inefficient manner by doing manual updates to hedge fund-related prices and fees, etc.
 
@crazyTech Fixing the bugs instead of doing a rewrite isn't practical, I presume?
> it is quite buggy which forces us to run manual update sql statements to correct data was wrongly entered by the application in question
 
Are things like fees and prices not a user-configurable thing?
 
In the Hedge Fund and Mutual fund instustry, performance fee varies based on stocks held by the fund in question. There is a lot of mathematical calculation for dividends of stocks, and so on and so forth
 
00:00 - 21:0021:00 - 23:00

« first day (3044 days earlier)      last day (1898 days later) »