« first day (1376 days earlier)      last day (3571 days later) » 

4:00 PM
Is it remotely possible to extend the Pipeline like that?
I am so lost with method chain extensions
I just want to stay DRY
hence the need to execute a step only if it is not a NullObject
but would prefer to skip having to type if()then{}
 
I'm not sure I can comment on this right now - kinda distracted, but I'm actually trying to solve concurrency issues myself :)
but that can wait for tomorrow. Going home now.
 
Sure, have a good night @Squiggle
 
I had to shut down my entire computer.
Now it works, so weird-
 
4:21 PM
Weird
BTW
my challenge is easily solvable with AOP
[Serializable]
public class WhenNotNull : OnMethodBoundaryAspect
{
    public override void OnEntry(MethodExecutionArgs args)
    {
        if (args.Arguments[0] == null) {args.ReturnValue = null; args.FlowBehavior=FlowBehavior.Return;}
    }
}
PostSharp code
Then my code needs only a decorator
    [WhenNotNull]
    private static BusinessEntity ProcessEntity(BusinessEntity be)
    {
        Console.WriteLine("Processing {0}", be.EntityKey);
        return be;
    }
        Pipeline<BusinessEntity, string> pipeline = Pipeline.Create<BusinessEntity, BusinessEntity>(CheckEntity)
            .Next<BusinessEntity>(ProcessEntity)
            .Next<string>(FinalResult);
 
@Darek way to swallow errors
 
No errors would be swallowed @KendallFrey
 
Sure, if you pass a null value, it doesn't error
Or is that the intent?
 
yup, that is the intent
 
Why?
 
4:27 PM
basically any step in teh pipeline might decide to return a null instead of some object
0
Q: Creating extensions for Pipeline from Parallel Extensions Extras

DarekI truly enjoy working with Parallel Extensions Extras, but must admit, still find myself challenged when it comes to creating extensions for Fluent programming methods. I have a particular need, given this simple BusinessEntity following the Null Object Pattern public abstract class BusinessEnt...

 
How is that not an error though?
 
Since I have no clue how to create an extension to follow the Null Object Pattern, I thought, AOP shortcut might do the trick
and it does
Say I have 20k records coming in, over a bufferred enumerable
some of them might be valid for processing
other, which are not, I want to remove ASANN
hence Null Object Pattern
but null works just as well
kind of just as well
I recognize it is a bit of a hack @KendallFrey
 
@Darek ASANN?
 
Hmm, perhaps I should create a ConditionalPipeline subclass, which will have a new property called SkipObjectOfType
 
Seems to me you would filter out null objects, rather than propagating them
 
4:32 PM
As Soon As Not Needed :) @KendallFrey
I can't filter them out in a PEE Pipeline, but that is the intent
PEE === Parallel Extensions Extras
:D
 
Thanks for clarifying
my pee pipeline is something different
 
I thought you might enjoy that one :D
what would you do in my scenario? @KendallFrey
 
I am a Professional Object-Oriented Programmer
 
The pipeline can have multiple steps
 
I don't know what your scenario is.
 
4:36 PM
did you glance over the question?
 
I understand if not
you ar ea busy man
I will wait for some fluent freak
but in your opinion @KendallFrey, AOP would be a bad idea?
because of the null swapping
?
 
Without some proper context, I can't say
 
got it
thanks anyhwo
 
Give me requirements, and I can give you code.
 
4:38 PM
:)
 
Without that, I can't do much
 
what's your rate?
 
$50/h for C#
 
if you don't mind me asking, US based?
 
idk
just enough to buy games and coffee
 
user1804599
4:40 PM
Hi there, boys and girls!
 
user1804599
And everything in between!
 
are you US based?
or Europe
 
Hello there~
 
Not Europe
 
OK
thanks
 
4:40 PM
"North America" we'll say
 
I will let you knwo
I've seen your work
and I liked it
 
@rightfold 0/
 
You liked something from Kendall? Dafuq :o
 
@RoelvanUden Hello!
 
user1804599
hi :v
 
4:41 PM
This conv could be in a completely different context
And it would still work
 
true
 
@Darek I wasn't talking about a real proposition or anything
 
too late
 
@RodrigoSilva they are talking about @Darek's PEE pipeline
 
:D
Indeed @Austinh100
Grabbing some lunch ... you boys play nice in my absence ... :)
 
4:42 PM
@Austinh100 I know :P
 
user1804599
If C# is like wiping your arse with silk, then F# must be a fully automated silk-based arse-wiper.
 
@rightfold rain-x for the arse
 
user1804599
Teflon arse coating.
 
user1804599
No more need to wipe.
 
You just tell REBEL you have an arse, and it starts wiping.
 
user1804599
4:49 PM
> You just tell
 
user1804599
Not fully automated enough.
 
If you show Java your arse it says hi dad.
 
Well you don't have to actually say anything
 
"Hello World"
 
the best part of REBEL is that it replaces your arse with silk
 
4:50 PM
#strangeone
 
user1804599
Haskell will wait to wipe your arse until you pull up your pants.
 
maybe home would have been better idk
 
REBEL?
 
user1804599
And Erlang wipes all cells of your arse in parallel.
 
*all cheeks
 
user1804599
4:52 PM
In a globally distributed toilet farm.
 
There is a joke about that that is not sfw
 
user1804599
Ruby will redefine your arse as a chicken head.
 
what will c++ do? Allocate something and leak it?
 
user1804599
C++ will shoot you in the arse.
 
4:54 PM
leaky arses are never fun
 
user1804599
Scala wipes your arse at the type level.
 
user1804599
Turing-complete static type systems are the best type systems.
 
APL will wipe your entire arse with 1.5mm^2 of TP
 
user1804599
CSS will wipe your belly instead of your arse.
 
user1804599
4:57 PM
SQL wipes your arse, is interrupted by a sneeze and then rolls back to an unwiped arse.
 
Maybe Java will try to wipe your arse with a turd?
 
@KendallFrey REBEL is like VX gas .. one of those things we wish we could disinvent
 
@Darek not a chance
 
user1804599
@JohanLarsson Java only wipes your arse when you install Ask Toolbar.
 
user1804599
5:01 PM
Although most Java code only deserves to be what your arse is being wiped with.
 
What's Java?
 
user1804599
J***
 
@rightfold did you watch the tutorial? It is the best I have ever seen I think. Would be interesting to hear what you think.
 
AT&T assembly wipes silk with your ass
 
user1804599
@JohanLarsson Which tutorial?
 
5:04 PM
@rightfold Provable Code. Awesome tutorial.
Starts REALLY slow, skip first section.
 
I can prove my code.
 
user1804599
How the fuck do I watch it?
 
user1804599
I click the items but nothing happens.
 
@rightfold I think you need to create a trial account. Get your company to buy Pluralsight for a year for you.
 
user1804599
Oh.
 
user1804599
5:05 PM
Then I’m not even going to bother.
 
#worthit
 
user1804599
Free knowledge or no knowledge.
 
user1804599
I can already prove my code correct:
 
Prove it! @rightfold
 
user1804599
I wrote it. ∎
 
5:06 PM
That's sufficient proof
 
Provable code sounds like academic wankery, a bit misleading.
 
user1804599
Is it about contracts?
 
user1804599
And type systems?
 
@rightfold one part is, it is packed with good stuff
 
user1804599
Speaking of proof, here’s how not to name a programming language:
 
user1804599
5:08 PM
 
that looks like Simon Cowell
 
Scala is short for Scalable right?
 
user1804599
It’s short for “Scalable language.”
 
user1804599
Which is pretty much buzzword speak for “everything is an expression so you can compose large things out of small things easily.”
 
user1804599
I should give Coq a try.
 
5:11 PM
Coq is a math thing I think
 
@KendallFrey wtf?
 
user1804599
> ∀ x y : Z, x * y = 0 -> x = 0 \/ y = 0
 
user1804599
This seems very reasonable.
 
user1804599
But I wonder how it executes the code.
 
I wonder how it obfuscates it.
 
user1804599
5:14 PM
This particular example looks very clear and unobfuscated.
 
yes very
 
user1804599
It says that for all (∀) x and y in the set of integers (Z), if x * y = 0 then (->) x = 0 or (\/) y = 0.
 
Math says that too.
no need to say it again
 
user1804599
Gotta teach the computer about it.
 
user1804599
  Structure monoid := {
    dom : Type ;
    op : dom -> dom -> dom where "x * y" := (op x y);
    id : dom where "1" := id;
    assoc : ∀ x y z, x * (y * z) = (x * y) * z ;
    left_neutral : ∀ x, 1 * x = x ;
    right_neutral : ∀ x, x * 1 = x
  }.
 
user1804599
5:22 PM
This is quite interesting.
 
user1804599
That you can formally specify the monoid laws and it will verify them for you.
 
Well, anyone know an incredibly fast way to take string data, parse it for a word then grab the sentence that includes that word? (All occurrences)
 
user1804599
Must it be a string?
 
user1804599
If it’s a large string you can split it into pieces and do linear searches in parallel.
 
@Greg Not happy with your implementation from yesterday? It's probablya bout as fast as you can get in C#
 
user1804599
5:28 PM
Linear search is insanely fast on arrays (which strings are implemented as).
 
@rightfold He's doing this to thousands of strings - probably better to just parallelize the outer loop :)
 
@ReedCopsey It doesn't return any results, though they exist. I tried to tweak and modify it, which results in a crash now.
 
Have you debugged it?
 
debug it on a copy of one result
that code should work provided the string actually exists in there
 
@ReedCopsey I'll try that again.
Visual Studio is acting quite strange.
 
5:35 PM
@Greg debug it in linqpad
 
@ton.yeung Sorry, I forgot.
@ton.yeung Yeah, can you text me as a reminder? Hectic week this week.
@ReedCopsey Yeah, when I use those Index it eats up all the memory and basically kills the browser.
 
browser?
 
6:00 PM
Hey everyone :)
 
o/
 
@ton.yeung How has it been going?
@ton.yeung lol... you need to get more flexible and not yet. Getting the appraisal back today. Everything else seems to be in order though
 
Wood Destroying Insects == crabs
 
@ton.yeung My father did one before the actual one so I am sure we are also fine ther
I am getting carpal tunnel
Jerk lol ...
NSFW please
 
There were totally people behind me lol geeze
 
So a dick pic is "borderline"?
 
Definitely NSFW
 
No nipples!
Just be glad you don't work in a sexual assault centre.
i dunno. JS room guy works in one
in JavaScript :: some typeof way, 15 secs ago, by Sterling Archer
@KendallFrey iunno, I'm just a developer, I don't deal with the content a lot
to develop things
Why do corn dryers need developers? (rlemon)
to make software to control the dryers
 
=/
 
6:26 PM
\o
 
0/
 
sup Geordi
 
Hi. Brought my visor and everything today. Ready to go!
lol
 
So I heard TNG was so much better than TOS. I've watched the first few episodes. Disappoint.
 
maybe you should read a book instead, lets go find one!
 
6:33 PM
@TravisJ If I have an Eval which is to a textbox on a page, how can I get it to find that word and bold it anywhere on the page?
 
@ton.yeung what Kendall said
we don't actually make the dryers, we make automation control systems
we just so happen to sell mostly to dryer manufacturers and end users of their products
 
@ton.yeung He said he mostly does embedded systems.
 
@ton.yeung The Gods of Wikipedia did not bless us
An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts. By contrast, a general-purpose computer, such as a personal computer (PC), is designed to be flexible and to meet a wide range of end-user needs. Embedded systems control many devices in common use today. Modern embedded systems are often based on microcontrollers (i.e. CPUs with integrated memory and/or peripheral interfaces) but ordinary microprocessors...
 
What do you mean, realistic?
 
I really work at Burger King
would you like fries with that?
 
6:41 PM
!!youtube ding fries are done
 
@Greg - anywhere as in everywhere?
 
@TravisJ Yeah.
It contains in one area.
 
Freaking non trivially. I would ask you why do you think that needs to be done? Users can just type ctrl+f and get the same functionality.
You would need to look at every element on the page, inspect its text, look at every unique word in the text, compare it to the input, wrap it in a span with css bold... seems invasive and ungainly.
 
@ton.yeung What's a SAC?
 
6:45 PM
Tell your boss that this feature will not improve UX and your time is better spent working on something more substantial in my opinion.
 
@TravisJ They don't care.
 
About UX, the invasive part, or the ungainly part?
This could negatively affect page performance.
 
@ton.yeung I really doubt they would need one
 
@Greg - If the page has more than 10,000 elements on it $("*").length then it will definitely affect page performance.
@Greg - Perhaps convince them that you made a macro for the page where if the user uses "ctrl"+"f" then that exact functionality takes place.
 
@ton.yeung Corn dryers use embedded systems
Crisis centres have... idk... websites? administrative utilities?
 
6:48 PM
@TravisJ It will only be any these elements:

- Repeater-Summary
- Repeater-Sub-Title
- Repeater Title
 
I have no idea what is going on
 
I just feel like there is a better way to approach this.
 
educated
 
edumacated
trampleopoline
 
ohh are we writing macros?
I like automating things
 
6:49 PM
@TravisJ Well, I could potentially in the backend when the data is generated from the database, I could create a method.
 
How many words worst case scenario are being bolded at once?
 
@TravisJ However long the search term is.
 
@ton.yeung some. mostly c++, recently I've been doing a lot in node because I can ;)
and supporting desktop software in c# (but winforms.. so)
 
@TravisJ I'll be back in a bit, got to meet a tile contractor.
 
@ton.yeung on a beagle bone
 
6:53 PM
@Greg - Ok.
@Greg - I will ping u while ur gone
 
@ton.yeung 20 questions much :P
 
@ton.yeung - People in glass houses .. sink ships!
 
@TravisJ Okay, any help would greatly appreciate :)
 
the entire control system (os and software) is a micro itx board with industrial capabilities, I'm using a Beagle Bone as an add on device to gap some missing capabilities
control system is c/c++, additional add-on is c++/JS
nope
you can see all about how it works there :P
 
woohoo regex all teh htmls
 
7:03 PM
any ideas ya'll or too complex? stackoverflow.com/questions/24914752/…
 
I don't directly write sql very often, maybe pb would know but I am not sure he is on today
 
kk
 
actually more often than not it is inside a shack or small building a little ways away
with their other electronics and control systems
the sensors are slapped to the side of the dryers
 
> explosion proof models are also available by request.
hahahah
the site
somewhere
yeah
> "If you don't make a special request, you get the explosion-prone model."
 
7:23 PM
@KendallFrey no the explosion proof ones are rated as explosion proof
for plants that dry materials that are flammable in the open air.
 
And the others aren't I presume
 
nah, they are just stainless food grade
the other ones are heavy and everything is threaded together and shit
but you have to get them approved
1/1000 sold are explosion proof, it isn't very common to need it
 
A dust explosion is the fast combustion of dust particles suspended in the air in an enclosed location. Coal dust explosions are a frequent hazard in underground coal mines, but dust explosions can occur where any powdered combustible material is present in an enclosed atmosphere or, in general, in high enough concentrations of dispersed combustible particles in atmosphere or other suitable gaseous medium such as molecular oxygen. Dust explosions are also commonly used by special effects artists, filmmakers, and pyrotechnicians, given their ability to be safely contained. == Conditions needed... ==
 
@ton.yeung that is what they are meant to prevent
 
7:41 PM
@TravisJ I'm back.
 
@Greg - The more I look at this, the worse it gets.
Any elements examined that contain the matched text will likely have any event handlers inside of them removed.
Nested element structure will introduce the requirement to regex html.
Replacing matched text with an element to mark as bold will have potentially unintended side affects to the structure of the page.
I would in all honestly highly recommend not doing this.
Replacing html will wipe out any nested values input in input elements
@Greg - Highly not recommended to use this in production: jsfiddle.net/SYpnR
bbl
 
7:59 PM
@TravisJ What choice do I have, they want it like "Google". Only other way is create a backend method that does a bunch of string manipulation to bold it.
 

« first day (1376 days earlier)      last day (3571 days later) »