« first day (3330 days earlier)      last day (1628 days later) » 

10:00 AM
Literally looking at SSMS now
 
I love ms sql
but I like Toad too
 
mr5
@CaptainObvious have you tried to develop on AndroidTV before?
 
Oh christ no
Isn't that platform dead now?
 
mr5
What? No. It's quite popular from where I am
And in Denmark as I can tell
 
!~>Environment.TickCount
@nyconing 679600906
Environment.TickCount is returning int
 
10:02 AM
I don't know anyone and haven't seen one before or a TV with it integrated
 
mr5
either it's a TV with an embedded Android OS on it or a box where you can plug to any monitor
 
!~>((int.MaxValue/1000d)/60)/60
@nyconing 596.523235277778
 
We had several android tv's at my last place
At christmas we would watch netflix on there
 
twas excellente
 
mr5
10:03 AM
see? it's also popular to captainsqiller's place
 
but it doesn't allow me to "push" stuff into it
 
mr5
have you wondered how does the button selection works when you use remote?
 
the apple tv's outnumbered the android tv's but still
 
> Because the value of the TickCount property value is a 32-bit signed integer, if the system runs continuously, TickCount will increment from zero to Int32.MaxValue for approximately 24.9 days, then jump to Int32.MinValue, which is a negative number, then increment back to zero during the next 24.9 days. You can work around this issue by calling the Windows GetTickCount function, which resets to zero after approximately 49.7 days, or by calling the GetTickCount64 function.
 
mr5
10:04 AM
I think it's the tab index that's dictating who should receive focus next
 
shit implementation
 
mr5
should be unsigned int64 right?
well, int64 is not atomic to an x86 arch. I think that's the reason they chose it
 
I just use the netflix app on my TV
Protip
 
mr5
is it Android or iOS?
 
LG OLEGs are expensive but totally worth it
 
mr5
10:11 AM
oh so it's Android
 
mr5
most of Netflix app are sideloaded
 
mr5
oh
 
you miss squirrel pics already ?
 
mr5
10:12 AM
it would take me years to buy one though
 
@Hans1984 Definitely not
 
I will take ONE squirrel picture please
I wish to see myself going into battle
 
nononono
 
there you go
that has to do it
 
.AsParallel().WithDegreeOfParallelism(Processor.RecentCount()/2)
 
10:18 AM
@Hans1984 that picture suffices
 
what if app runs in single core
 
Hello everyone
 
hello
 
Then it will switch between threads
 
I need help regarding CS1705
error
CS1705 Assembly

'CrystalDecisions.CrystalReports.Engine' with identity 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304' uses 'CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304' which has a higher version than referenced assembly 'CrystalDecisions.Shared'
with identity 'CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
 
10:19 AM
I want that squirrel in the new Age of Empires, thanks
 
@ZMAX reference the correct version
 
mr5
Crystal decisions
what does that mean?
 
earlier I add reference 11.5.3700.0
 
@Nyc Chances are you're multi threading a task because there's dead time waiting for IO or something, so when it's waiting on IO it would use that time doing nothing to work on another thread
 
now I changed it to 13.0.3500.0
 
10:20 AM
Why
 
oh god
Crystal Reports
RUN
 
and in web.config also I wrote 13.0.3500.0
but still same error
 
It wants to use 11.5.3700
 
no, im implementing parallel linq on heavy searching
it got faster after parallel was implemented, but it sometime froze UI
 
You need to actually change the reference to the new version. It's one of the most self explanatory error messages out there
 
mr5
10:21 AM
@CaptainSquirrel that sounds soo boring
 
Sounds like you're running a long task on the main thread. BAD!
 
It's horrible
 
lol
not main thread
 
Well it wouldn't freeze the UI if it wasn't the main thread
 
it did
 
10:22 AM
So it's on the main thread
 
not main thread
 
I promise you it is
 
I debugged it wasnt
 
Doubt (x)
 
.AsParallel() how it will runs on mian thread?
 
10:24 AM
sometimes I think vs behaves like my gf
 
Parallel on mian thread?
 
Because the main thread won't continue until the parallel operations are completed
 
now all the errors are gone
very strange
 
No, it continues to response
 
So the tasks may be running on other threads, but you're blocking the main thread waiting for the result
 
10:25 AM
but sometime froze
 
dude, online json tools are shit
 
mr5
maybe maybe maybe parallel means use all available threads including main?
 
F12 beats them all
 
because the cpu has goes to 100%
@mr5 task created on main thread?
 
100% cpu doesn't mean much
 
10:26 AM
but how can I control task creation in AsParallel?
@CaptainObvious stop that main thread thing, I confirmed it dont runs on main thread
 
Create the paralell task either in an async task or another thread
If it is freezing the UI, it's 100% running on the main thread. There is no other option.
 
okay. i emend the word
its lag on UI
not completly froze
 
mr5
froze in software is usually observed in UI and most UIs are rendered on main thread. So it's likely the main thread is blocked
 
but lag == froze to me
 
Lag is just blocking intermittently
 
mr5
10:28 AM
if it's lag then that I think is too much CPU time given to process
 
lag is a network delay
 
lag is frame drop
 
Either that, or you're just hammering your CPU so hard from other threads it's got no time to run the main thread
 
You create an application, hard burn the cpu, geos to 100%
then your windows explorer lags
 
What CPU are you running?
 
10:30 AM
thats all
arm x86.......maybe
 
@nyconing frame drop is loss of images, lag is connection delay
 
That makes literally no sense
 
e.g. "I have 60ms lag"
 
mr5
or delete your useless AV if you have one
 
Go to that page and tell us the processor, you're probably abusing yours too much
So we'll give you an idea of how parallel to go
 
10:32 AM
inb4 Snapdragon 655
 
you create 24 thread, runs those with heavy comparison, but make sure they are not main thread.
and now, all your computer is lag
but main thread is free
 
Hi guys, does anyone know, how to use "Union" with the Dapper SQLBuilder?
 
Doesn't make sense to say your computer is lagging unless you literally press a key and it takes a second to register
 
UI lag/ freeze != something naughty on main thread
@CaptainObvious its andorid.......
 
Ha, I knew it!!!
 
10:33 AM
Oh well that would have been helpful to know
Basically, here's the solution
Don't use parallel on mobile devices
 
@CaptainObvious I don't hate to tell you that I told you, so I'll tell you that I told you so.
 
@CaptainObvious yes, it should worked
 
jk I was kidding
 
thats why I .WithDegreeOfParallelism(Processor.RecentCount()/2)
 
10:34 AM
it should work, but the way mobile devices report their CPUs is stupid
So just put 2 in
And it should work somewhat okay
 
mr5
what could probably are you doing nyc that you need parallel execution?
 
2 too slow on high end phone
 
Hi search to contribue in Asp.net open source project, any suggestion
 
High end phones only have 4 active cores at a time
2 parallel threads + main UI thread leaves 1 for the rest of the system
 
iterates over 8millions strings comparisons
 
mr5
10:35 AM
Are you generating blur each frame? Creating fractals each frame?
 
Why are you doing so much on the device? That's what servers are for
 
generating blur? why?
 
mr5
how about the memory?
blur is CPU intensive
 
Also how long is "too long" on 2 threads?
 
@LPGTESOFTS You asked the same thing yesterday, did you check the answer?
 
mr5
10:37 AM
and what could possibly are those strings/
 
it did, .WithDegreeOfParallelism(Processor.Count) burn the cpu to 100%
all strings are inside memory
memory isnt full yet
 
Omg
Stop using that dodgy formula
Face it, you're doing too much on the device
 
you suggest
 
2
And wait
 
wait what
 
10:38 AM
Or do it on a server and wait for the result
Which will be faster
 
no, the device sometime offline
 
@Hector, just look if is it possible to find project here since it iive here
 
they wants to perform string searching on database
 
How the hell do you have 8 million strings offline
A database hosted on the device?
What's in the database
 
@LPGTESOFTS This is not a place to look for jobs.
 
10:39 AM
8 million comparisons
not string
 
mr5
foreach str in strings
    foreach rts in sgnirts
        if str == rts
            eatBurger()
    end
end
 
It's a chat room
 
You shouldn't need to do more than 1 comparison per string
 
We are all devs in here, nobody's a manager or any person with hiring potential
 
mr5
10:41 AM
Kamil is a CEO
 
I haven't seen Kamil around in ages
 
we are just worthless devs
with no potential
 
just think if there is independent here
 
I don't understand
 
oh this guy again
 
mr5
10:42 AM
we are all independent from our parents
esp Buttler
 
@CaptainObvious regex are slower.....
even pre compiled regex
 
I give up,. you haven't answered most of my questions and aren't takign the advice I'm giving you
 
mr5
nyc, I think Buttler is right. You should let the server handle that for you instead of the device
 
never trust the snapdragon
 
hey device sometime offline
mean not always online
@CaptainObvious English isnt my first language
 
10:44 AM
brain device offline
 
I need time to type English
 
mr5
hey me too
 
There is absolutely no way that you need to do all that on the device. And also you're doing it wrong because you shouldn't need multiple comparisons per string. You probably also shouldn't be hosting a huge database on the device
 
While all yours question is too much for me to reply one by one
 
You responded to later messages without responding to earlier ones
 
10:45 AM
@CaptainObvious while we dont do string comparisons more than oncec per string, only workaround is regex
@CaptainObvious thats is what I tell you your question is too much for me to reply one by one
 
mr5
I think it would help if you describe the reason why are you doing so much string comparison first, nyc?
 
Right. I'll help with this comparison stupidity. What is your work around to avoid doing regex? What are you doing instead. Ideally post code
 
hmm... on comparisons or you wants linq?
 
Just the comparisons.
 
Wait I remove some company informations and will be on github
 
10:48 AM
I mean, post the whole parallel if you like and I might be able to help. Trying to decribe the issue hasn't gone well, but if I can spot something obvious in the code I'll help you out
Sure
For example, if you're using things liike ToUpper or ToLower to get your strings closer to a match you can save a huge amount of processing time with another approach
Because those utilities are slow
 
those have 7 levels of comparisons, my coworker called it wildcards
every levels have to be reviewed, (reviewed may mean parsed/ comparisoned)
 
as far as on the level went pass, the result parse the comparisons, and given which chars is matched, and return immediatly (not going into more level futher more)
 
There's so much duplication in there
 
like ToLower()
but how, as every level is independednt
with these, on lowend mobile device, runs around 8millions of levels cost around 2 sec
 
10:57 AM
So what are the parameters, the names don't make sense to me
 
and it complete immediately on my phone
 
Like what is "wildcard" and what is "property" for each level
 
property is old method name, its filtee on new method (there is two overload)
 
yeah but I mean what are the values?
 
filtee is mean the string candidate that is searched
 
10:59 AM
So that's what the user or whatever has typed in?
 
wildcard is a string with searching keyword
 
Oh right okay
 
@CaptainObvious filtee is from database
 
Wildcard is the search term, filtee is the value you're checking?
 
yeah, youre right
 
11:01 AM
Wait so all of that is for checking a single search term against a single value
That's really really really inefficient
 
no, there is another class managed to use it
wait I post it too
 
If you get a pass on level 1 you're still evaluating the other 6 levels, despire the fact you could just stop there
 
@CaptainObvious it will stop as soon as level is passed, it wont go down further when upper level have passed
all the async and linq thing come in this class, StartIterate() is entry point of API
 
It looks like you've bascially tried to write ElasticSearch
 
it doesnt have evidence
with that we can highlight the evidence on GUI
a visual feedback to user, why the result is shown
 
11:08 AM
Uh
It does
There's also Highlight and MatchedQueries which also satisfy it
 
can it knows char position and length of hited search?
 
No idea I haven't looked
 
afaik there is no class in Mono.NET to ahcive that
 
This is just the NEST ElasticSearch client
 
Dont you miss the squirrel pics ?
 
11:13 AM
The explaination has a "description" in the details
1 hour ago, by Captain Obvious
@Hans1984 Definitely not
 
ok
goes to the sandbox
 
it may can be optimized, but it can still heavy
the key to problem of code is result = list.AsParallel()......ToList()
 
I think elastic has everything you're looking for. It has the bits you need to highlight so how what specifically matched, which looks to be what your evidence is doing
 
without parallel it slow, with parallel it fast, even complete immediately on highend device, but cause GUI lag on lower end device
 
There's a lot that can be done, but my suiggestion would be just run it as 1 thread, strap a profiler to it and see exactly what's slow about it
 
11:16 AM
@CaptainObvious ElasticSearch is a service or API? can it work offline?
 
You can have it running on your device I think
Hmm, maybe not
I'd profile your code and see what's going on
 
@CaptainObvious whoa, that is super helpful
thanks in advance
 
Use something like dottrace and it'll tell you exactly what methods are slow
It's how I got a ~70% performance improvement on one of my applications last year
I thought it was "fast enough" but then I thought what the hell let's give it a go and it turned out I was being really dumb
 
var iterator = new AsyncIterator<Customer>(new List<Func<Customer, string>>() {
   t => t.AccNo,
   t => t.Addr1,
   t => t.Addr2,
   t => t.Addr3,
   t => t.Addr4,
   t => t.Name,
   t => t.Name2,
});
var result = await Iterator.StartIterate(list, searchString);
 
@nyconing Oh sorry, I didn't mean I'm going to do it, I don't have all of it so I can't anyway, you'll have to do it
 
11:24 AM
okay
I did that, every heavy method is string compares
Some duplicate code may can optimized
 
Yeah but it will drill down further and identify some of it
It might be that it's all fine and you're just doing too much
But I always profile when something takes too long and it usually brings up something I can optimise. At worst it will draw your attention to what needs optimising furst
 
Profilling codes on Xamarin is hard
90% of stack information is java jnienv
drill drill drill
until get a c# managed class
 
Yeah it is, that's one thing I hate
Here's an example of somthing
I have an operation which fills a winforms grid, it takes about 8 seconds to fill a grid with 15k rows
 
data binding?
 
Winforms doesn't have bindings
 
11:33 AM
GetLatestChangeLog()?
 
If you look under "AddExplorerRow", the method which actually adds the row (which takes 70% of the time it takes for the whole population method to run), 57 of the 70% of the time is Winforms internal stuff, so I can't improve. The first thing I can improve on is 2.36%, which is hardly worth doing
So I wouldn't bother trying to optimise that, as there's no real gains to be made anymore
(I have previously optimised this method already which is why there's basically nothign left to do)
 
recently I optimized get_Item on DataTable
 
But if there was something which took like 10-15% I would probably take a look at that
 
the workaround is just cache the column index, and get item by index not name
that grid looks like populates all rows at first, not lazy load
 
11:37 AM
hmm.. I think that is why devexpress is popular at winform decade
 
It's spending most of the time measuring the height of the font to decide how big the row needs to be
 
god dammit how do I push a value into a json from JS
 
Cant you just set a new property?>
 
I thought it would be as easy as json["property"] += "value" but it is not.
 
it may can optimized by adding pages and not populates all rows
 
11:39 AM
json["test"] = [1,2,3];
that creates a small json with an array of 3 values as a property
 
Just pre-purchased the master chief collection
BRING ON DECEMBER 3RD BOIS
 
now I want to add an extra value in there, I tried to do += 4, but it ends up being 1,2,34
@CaptainSquirrel no way
 
@HéctorÁlvarez Yes way
 
Smol break
 
11:40 AM
Since it was announced to come on PC my missus has known i'm purchasing that gam
I got paid today, so its only right i prepurchase it
 
@HéctorÁlvarez json["test"].push(4)
 
@AvnerShahar-Kashtan first thing I tried
But apparently I did the wrong way
 
Looks fine to me
 
Yes it does, let me check what I did wrong
IDK now it's working...
 
I am now in my least favorite part of the job hunt. Salary negotiations.
 
11:45 AM
Heh
Good luck
 
Now both places want me to tell them what the other option offered before giving me an offer, and I'm stuck in the middle of a game of salary offer chicken.
I mean, I can ask them for an offer without it, but it will probably be lower than what I can get with the game.
 
(()=>{var obj = JSON.parse('{ "name":"nyc" }');obj.age=5;return JSON.stringify(obj);})()
"{"name":"nyc","age":5}"
 
Damn, she's even younger than @harry
 
I hate JS's pattern of creating a method and immediately executing it.
 
that is how js entry point work
 
11:48 AM
I know. It's ugly.
 
hmm.. gains and losses
 
Tell them you appreciate their courage for showing their cards first as a sign of being genuinely interested in your application, and you want to honor their request to be quiet about it.
and when you're made an offer smile and thank them for their time
 
get one advantage, lose another one advantage
 
Then stand up and leave.
IDK maybe you end up jobless, but that would be worth watching
 
@HéctorÁlvarez I really don't see any single thing to gain from that.
 
11:51 AM
You once bought automated overexpensive pizza from a random fishy machine
 
Why not ask them both for an initial starting bid and see where they start
 
For now, I got some informal numbers from one, sent them to the other, will wait for their offer, then come back to the first.
 
@CaptainObvious fuk u
 
@HéctorÁlvarez I did.
 
That'll give you an idea of what they value at without competition
thas no very nice
 
11:52 AM
@CaptainObvious Because it's not a bid. Once they extend me an offer, that's the offer.
 
@AvnerShahar-Kashtan Then I don't see why you can't juggle with their feelings a bit, this is less risky for your overall health status.
 
That doesn't sound like much of a negotiation
 
@HéctorÁlvarez Oh, I don't care about the feelings of a gigantic international enteprise. I'm worried about my feelings.
@CaptainObvious The negotiations are about the preliminary lead-in to the offer.
There isn't much risk in this inofficial forwarding of offers. It's just something I don't enjoy.
I'm still doing it, because it could mean quite a big difference in my pay.
 
Alternatively why not just say what you want and see how they respoond
 
Because while I know what monthly salary I'm aiming for, there's also the other components - bonuses and stock and such - that I have no idea what to ask for, because I've never worked for a company that had those.
 
11:56 AM
is there having year end bonus? or 13rd month?
 
oooh I see what I was doing wrong
I tried to append a whole new property instead of a value to an array propertuy
shame on me
 
@nyconing There's a standard annual bonus, calculated as a percentage of your annual salary, adjusted for performance - so it can be 0% (though in that case you'll probably also be a candidate for firing) or more.
 
LOL the guys from yesterday just arranged an urgent meeting. I'm ecstatic.
 

« first day (3330 days earlier)      last day (1628 days later) »