« first day (3306 days earlier)      last day (1649 days later) » 

11:04 AM
 
Hi
 
hey
 
I am stuck :/
 
stuck ?
 
Threads are maxed my cores so if you're pushing more threads than cores then you're just falling back to context switching.
But a colleague seems to think threads are limitless and throwing 500 threads at something 'will make it faster'
 
11:07 AM
I have 2 lists
 
@Shad no rapid movement in the quicksand
 
where did your Template and CachedImage came from?
 
only making things worse
 
 List<int> l1 = new List<int> { 0, 0, 1, 1, 1 };
            List<int> l2 = new List<int> { 0, 1, 0, 0, 1 };

            var z = l1.Where((ele, i) => (l2[i] == l1[i]) && (ele == 1)).ToList();
 
It's a web scraper so I'm pretty sure a network adapter would be the main bottleneck
 
11:07 AM
I want to make l1 index as 0 is it matches with l2 index and value is 1
so final output I wanted
l1 = {0,0,1,1,0}
because last index of both the lists match.(both are 1, forget about 0)
 
Oh god not this again
 
@nyconing Template is a class with those attributes I wrote and nothing else
 
Oh wait it's something else
 
cached image is a class from ffimageloading library
 
!~>()=>{var l1 = new List<int> { 0, 0, 1, 1, 1 };var l2 = new List<int> { 0, 1, 0, 0, 1 };return string.Join(" ",l1.Where((ele, i) => (l2[i] == l1[i]) && (ele == 1)).ToList().Select(x=>x.ToString()));}
@nyconing 1
 
V.7
11:10 AM
@Developer00 Sorry for off-topic here, but ... can't avoid myself with posting this one and knowing these are just words here, but ... all in all, it's worth to add that there may be only two main elements in person's life for his/her primary world view: Parents and School.
Parents must help person to learn how teach himself, find his/her interests helping with further developments and help with fixing mistakes while showing child their consequences. School must act as an observer with advice options where teacher guide student with transparent logics and methods showing their practical usages and theoretical opportunities including roads of student's further life in society like workplace with promoted assistance.
Currently, schools are shadows of Departments of Educationm thos telling them how to do their job is pointless, disastrously.
 
?
 
V.7
I'm done :)
 
!~>()=>{var l1 = new List<int> { 0, 0, 1, 1, 1 };var l2 = new List<int> { 0, 1, 0, 0, 1 };return string.Join(" ",l1.Select((ele, i) => { if ((l2[i] == l1[i]) && (ele == 1))return ele;}).ToList().Select(x=>x.ToString()));}
@nyconing Not all code paths return a value in lambda expression of type 'Func<int, int, int>'
 
@V.7 Both parents and teachers often aren't able to teach or not interested into it
 
V.7
@Developer00 That's why find, thos making it profitable in the society.
 
11:15 AM
Should I feel ashamed to chat about other things while working?
 
not at all
 
Nice
Still can't find my way throught this project
Working with images is so hard
 
at first you might feel that way but it will get better with time to the point you dont even care anymore
been there done that
shrugs
 
V.7
Have you tried ViewBox? I remember such control as Calandar which didn't strech without it.
 
viewbox unfortunately doesn't exist in xamarin forms
 
11:17 AM
@Shad you want 00110?
 
great now we bought new mobil phones and they dont work with our system
so we wasted money and it's on me
great..
 
Android 10 looks beautiful
doesn't it?
 
great way to start the week
 
@Developer00 I cant reproduce because that class is your wrote
 
V.7
@Developer00 Oh, try <StackLayout>
 
11:18 AM
waste some company money...
 
@nyconing which class?
@V.7 I can't cause I need precise measures
 
May 23 at 13:59, by Avner Shahar-Kashtan
You're not "chatting". You're networking in your field, consulting with experts, and extending your knowledge via the internet.
 
Template and CacheImage, is this library or your custom class?
 
and we never chat OT
NEVER
 
@nyconing Template is a custom class, I can share in pastebin link
 
V.7
11:19 AM
@ntohl Here you go
 
is there any point of multithreading on a single core cpu?
 
@nyconing CachedImage is a library
 
@ntohl Avner said that to me when I said my company thought I was wasting time in an online chat for fun.
 
one of the best chat messages ever
it's a shame it has only 8 stars
 
@HéctorÁlvarez I think my unspoken sentiment is that you were to lie, lie, lie to your superiors.
 
11:21 AM
@nyconing yes
 
@Developer00 yes, it help
 
  for (int i = 0; i < l1.Count; i++)
            {
                if(l2[i] == l1[i] && l1[i] == 1)
                {
                    //Update l1
                    l1[i] = 0;
                }
            }
 
V.7
Now it has 9
 
I tried this loop
but does it have a Linq equivalent?
 
11:22 AM
@Shad LINQ, generally speaking, doesn't have operations to modify a collection. It can return a new collection based on an existing one, but it won't modify in-place.
 
ah
 
@AvnerShahar-Kashtan My superiors at that place were only acting on the infos that the overseers would catch from me. We were literally being spied upon at all times under the premise that we were working and everything we did had to be business-related.
 
:')
 
Basically, the way to do this with LINQ would be to use Zip to iterate both lists in correlation, and return a new collection.
 
@Shad maybe this
 
11:23 AM
I'm kinda justified cause I'm left alone
 
V.7
@Shad Something like numbers.ToList().TakeWhile(number => number <= 5);
 
!~>()=>{
var l1 = new List<int> { 0, 0, 1, 1, 1 };
var l2 = new List<int> { 0, 1, 0, 0, 1 };
return string.Join(" ",
l1.Select((ele, i) => { return (l2[i] == l1[i]) && (ele == 1) ? 0 : ele; }).ToList()
.Select(x => x.ToString()));
}
@nyconing 0 0 1 1 0
 
This weekend I met with a friend and colleague, he told me they fired the other person that was doing the shit job just like me.
 
l1 = l1.Zip(l2, (i1, i2) => (i2 == i1 && i1 == 1) ? 0 : i1).ToList()
 
@HéctorÁlvarez problem solved by nuking
 
11:24 AM
hire&fire
 
I can swear that guy would never even complain, and he'd really try hard to find a solution.
 
companies dont give a sh.t about you
 
guess he cracked too, before I left he'd been doing the same useless stuff for months on grounds of "You're the new guy, you must learn"
 
It's not a good experience to be fired
 
thank you nyconing and avner!
zip!
 
11:25 AM
thats why youd shouldnt either
 
Well my current company at least advertised my current job with the same content and aptitudes I see myself performing this first month.
 
but thats just my pessimistic view on it
 
My company wantsme to learn but then leaves me alone
 
@Shad One of the lesser known LINQ operations.
 
They took the time to give me a chance at a (very short-termed) certification test, and my first project is precisely what I'm here for.
 
11:26 AM
or should I say my experience..
 
So I guess they want me to learn online
 
it's normal these days
 
We're talking about being hired as .NET software developer with SQL Server certification hired for such task, and literally doing .NET stuff 2 weeks in 6 months.
 
they tell you where to sit and the rest you have to figure out for yourself
 
pretty cool!
 
11:28 AM
man it's raining AGAIN
it rained all of october
after a dry summer now its raining like every day wtf
 
The advantage Zip has over @nyconing's Select() solution is that it can work for IEnumerables that don't have indexed access like arrays and lists.
It probably uses a pair of synchronized enumerators for both enumerables.
 
@Hans1984 I'm trying at least
Hope they appreciate the effort
 
maybe they will
 
Yup:
 using (IEnumerator<TFirst> e1 = first.GetEnumerator())
     using (IEnumerator<TSecond> e2 = second.GetEnumerator())
        while (e1.MoveNext() && e2.MoveNext())
            yield return resultSelector(e1.Current, e2.Current);
 
otherwise I'm fired
 
11:30 AM
woh :o
<3
 
off with their heads!
uh, I mean...you re fired !
 
CachedImage not found in FFImageLoading
 
avner when you learn a topic don't you feel the anxiety that there is so much to do?
 
@Shad *shrug*. There's always more to learn. You'll never learn anything. Once you know that, you relax.
 
:)
 
11:34 AM
I've gone through so many cycles of learning new technologies and platforms. You get used to it.
I'm probably going to either double down on Java or learn Go soon. *shrug*.
 
legend
 
@AvnerShahar-Kashtan Not Java!!! D:
 
java \o/
 
With Go you may get the chance to evolve Docker. Think about it.
 
Seems to be the dominant language in one of my two main contenders for my next job.
 
11:38 AM
IIRC Java is scheduled to enter the end of support cycle by the end of 2020
 
@nyconing ffimageloading.forms
 
Still wondering if there would ever be a Jawa successor to Java, where we can program anything with Pocheneeee
 
@HéctorÁlvarez I sincerely doubt it. It's one of the most heavily used programming languages and its in constant active development.
Perhaps some version - Java 7, maybe? - will end support. Not the language itself.
 
I need to off.... I ll try tmr
 
11:40 AM
@nyconing I had to install from nuget other packages of the same lib
like ffimageloading.forms
@nyconing Thank you
 
@AvnerShahar-Kashtan Yep I think just like Microsoft and Windows 7 or Win32, they will try to take it down and make Haskell the new standard, but everyone will refuse, and they'll have to provide support for an extended time frame until it's fair enough to drop it.
 
Nah, even Java 7 still has a couple of years more:
@HéctorÁlvarez Who's "they"? Oracle have absolutely no incentive to push people to Haskell or Scala.
 
Well I'm speaking off the rumors
I never really kept my hand on the pulse of JAva
 
Saying that Java will go off support cycle in 2020 is like saying "Yeah, all movie cinemas will be shutting down by the end of 2020, everyone's pushing towards television now". It makes about as much sense.
 
Yep you're right
 
11:52 AM
there's openjdk now
oracle just doesn't want to deal with it anymore I think
 
12:11 PM
oh mama just had some joyful news
turns out Razer didn't completely fuck up my order, so the billing address is wrong, but the shipping one is correct
so I don't have to wait another 20 days to get the mouse
only 1 or 2, since I won't be home all day long, unless for some reason they deliver after 17.00
 
So...where does the bill go to?
 
@AvnerShahar-Kashtan No, that's not the same
Saying that Java will go off support cycle in 2020 is either true or false
Saying that assuming Java goes off support cycle in 2020 everyone would drop it, is just a very bold assumption that is likely to not come to pass.
I mean, COBOL is still a thing....
 
Only because banks though
 
@Squirrelkiller You're saying that as though banks don't have systems written in Java.
 
And probably some government team somewhere in a cellar
 
12:16 PM
When it leaves your computer it's in production.
And production is forever.
 
@MadaraUchiha Exactly. It's about as likely as the possibility that movie theaters - still a multibillion-dollar industry - will vanish in a year.
 
@AvnerShahar-Kashtan I mean, it's possible that over the course of a year, all media companies would cease making movies
That doesn't mean people would all collectively stop watching all movies within a year.
(Imagine in this case that there's only one media company, OracleMedia and it controls all production of movies in the world, because that's pretty much the case with Java)
 
V.7
All in all, the current logic is:
What do you think about this? Does that DialogService break MVVM pattern?
 
omg why is the jpeg so huge
 
@CaptainObvious Because it's jpg used for graphics
Should have used png.
 
12:21 PM
That could be like a 20kb png but instead it's a 500kb jpg
 
V.7
Arrows show dependencies. For example, Dialog_1ViewModel.cs is used in MainWindowViewModel like DialogService.ShowDialog<ViewModels.Dialog_1ViewModel>("Foo");
@CaptainObvious Sorry, might be because of resolution like 6k
 
 
heyy I'm back...had a long weekend, but a productive one
 
V.7
@Neil You may like .kkrieger
@AlRey Good to know ;)
 
12:29 PM
yeah not sure if you were here Friday, but I was trying to justify my own bs actions
 
Hi. I'm using `YIELD` for the first time.

Does the keyword `yield` make it deferred execution (like Linq)?
 
V.7
So, what do you think, is it okay to have such logic of dependencies in MVVM?
 
@MyDaftQuestions yes.
 
Fake news
 
image not found
 
12:33 PM
OWNED
 
my proxy sucks
 
That image may well have been 31kb or less if it wasn't jaypegged to fuck
 
in fact, probably a little silly to convert it to jpg
 
@AlRey are you still bi ?
 
all things considered
 
12:34 PM
;)
 
I guess I'd say I will always be bi, but it's my choice to follow through on my natural urges
 
no enough coffee, too many hours
ugh
:(
 
@CaptainObvious Also I don't believe the whole Mario game fits in 31Kb
 
the clouds and the bushes are literally the same image
 
12:36 PM
Seems legit
 
I mean the SNES cartridge could only hold up to 128kb or something like that
I have no problem believing the NES could hold less than half that
 
I doubt that the limit was much larger than the 31kb
my guess is they used every bit of it that they could
 
The amount of colors per square on NES games was limited to two or three colors; the squares are the size of those blocks in mario
anyone else watch the 8bit guy?
 
bing.com
what
 
12:41 PM
or remember when he was called the iBook guy?
bing is best for programming
 
nop
 
damn I still gotta start collecting old computers...like the original clamshell iBook
 
V.7
@AlRey I didn't add a save feature using that free space which might help a lot people to not suffer ;)
 
OK SURE DEPICT ME AS SPIDER-MAN FUCKING THWIP
 
12:45 PM
<3 :)
 
;)
damn I keep forgetting to bring lego stuff to decorate my desk
 
V.7
 
anyone remember when spider-verse put that meme in the damn credits? xD
 
Lmao
Xamarin documentation says: "In summary, a Xamarin.Forms programmer targeting phones and tablets can assume that all units of measurement are based on the following criterion:

160 units to the inch, equivalent to
64 units to the centimeter
"
I tried creating a boxview (a rectangle) in my app 160 units wide
And it measures 2,7 cm
 
the lies!
 
12:55 PM
But I need that measures
ffs
 
well divide 160 by 2,7/2,54
 
the way you guys always talk about Xamarin, it makes me never wanna develop with it
 
though the real question becomes, will it be like that on other systems?
@AlRey ikr? Sounds kind of awful
 
Xamarin is nice if you use it appropriately.
 
@Neil that's the real problem
@RoelvanUden what's the definition of appropriately?
 
12:58 PM
Well you gotta ask Xamarin out, buy it a few drinks. Sweet talk it, basically
 
Appropriately, for Xamarin, means ignoring all the UI bullshit and using a webview, and using only the lovely lovely C# to program native thingies for your webview to use!
 
Well, I could use some hybrid framework then
But ofc I can't cause my boss doesn't let me
 
Xamarin is a hybrid framework.
 
isn't it cross platform
?
and not hybrid
 
What is hybrid in your opinion then?
 
1:11 PM
java server faces tried to do that
 
@RoelvanUden half web half native
 
the idea was to write an xhtml which was supposed to convert to a web page, and you could create your own components
 
@Developer00 Well, the aforementioned approach then isn't hybrid, since half isn't native, but C#. :-P
 
it was a good idea in theory, but the components rarely work well together if they're not part of the same package
 
You're right
 
1:12 PM
It would be half-web coupled against a layer that glues onto a native thing underneath
 
Half web half c#
is it?
Using a webview
 
So really, what is the big jump from doing 100% a weird language that kind of glues against things that translate differently on different OSes with different things underneath? :D
Either way you spin it, if you don't do a pure native approach, it's always a hybrid of some sort. There is no cross-platform UI approach that is "native".
 
You are right
So
 
What am I arguing for? Nothing really.
 
what do u suggest me?
Write some weird c# code
 
1:14 PM
Use the thing that accomplishes your goal with the minimal effort.
 
or wrap things in a webview and use html/css/js
@RoelvanUden I've been 2 months on this project and I'm stuck every 2 seconds
 
I personally like having consistency. That's why I use a webview for a JS SPA with material-ui for the UI. It's 100% the same on every platform, no little differences anywhere. I like Cordova for that if you don't need device specific capabilities, but when you do, Xamarin+WebView=match made in heaven.
But, hey, that's just me.
 
How do I handle the database if I wrap everything in a webview
 
That depends. Do you need a database on the device itself, or are you talking to a server?
 
Or the offline functionality
 
1:18 PM
A SPA in a webview wrapper is, by default, offline. It only requires an internet connection if you do stuff online.
 
@RoelvanUden the idea was something like creating a table that converts the website db into a whole new db for the device
 
@Developer00 I have no idea what that means.
 
Thank you @Squirrelkiller Despite your horrid user name :o - thank you for your help :D and quick response
 
Let me explain better
In my company there's this giant database
that's not efficient at all
But it can't be changed
So
my boss said that it was better
to create a new one
just for the app
and create some api's to convert products from one to the other
 
@MyDaftQuestions No problem. I was kinda expecting some kind of sarcastic answer about how my answer didn't really help anyone :D
 
1:21 PM
He he, actually, I was after a yes / no answer ... My own tests have shown it works that way, but it's always nice to get 2nd opinions :)
 
@Developer00 Why do you need a new database?
 
Because the already existing one is overcomplicated
And they want to use another one on the app
 
I am very confused. You're building a mobile app, yes?
And this mobile app needs to have a database locally? Why?
 
To manipulate data while offline
or idk
they told me to do that
oh wait
the database will be downloaded from the server when the user opens the app
 
so is Xamarin so difficult because it's still kind of unknown+newish?
like I get that technically the company started in 2011, but it doesn't seem like anyone really started taking it seriously until MS bought Xamarin
 
V.7
1:32 PM
It currently nearly crashed trying guess what to do with (String)Obj... after minute or so it unfreezed!
 
@V.7 It's trying to rename String to string
 
V.7
@AvnerShahar-Kashtan It freezed when hovered "Configure or Supress issues"
 
Yeah, that's just a general annoying freeze and has nothing to do with the specific analyzer warning. But the analyzer warning it was trying to display was to use string instead of String.
 
@AlRey Xamarin isn't difficult, it's just annoying when you deal with cross-platform UI.
@Developer00 That seems weird. Why download an entire database? If you need certain parts available offline, just grab those and put them in a local db.
 
I guess I'll talk with my boss
 
1:41 PM
cross-platform anything has got to be annoying :P
I'm surprised MS didn't use Xamarin to try to save Windows Phone....or if they did try, they barely tried hard enough
cause I remember there was an initiative to bring Android and iOS apps to the platform, but because the WP team heads are the epitome of ne'er-do-wells, it never got off the ground
fyi those same people are in charge of Windows 10 now...splains a lot, doesn't it?
 
So
I tried
To open gallery from webview
I know that's silly
I need to pick multiple photos from gallery
can I embed c# code inside html pages
or something like that
 
Xamarin did support Windows Phones, and did it nicely, but that wasn't enough to save a platform that didn't really have anything to offer the market.
 
man it's like....ffs WP could have been this great thing
 
Microsoft's Universal Platform lets you write pretty much the same code for XBox, Windows Phones and Windows 10. Our previous app was UWP and we originally designed it mobile first (Xamarin Forms on Android, iOS and UWP), with the UWP build running nicely on a Windows 10 desktop as well as a Windows Phone tablet.
@AlRey To try to launch a third mobile platform when they did was almost impossible. To join in when both iOS and Android were firmly established means you don't simply need to be as good as they were, but to be meaningfully better in order to dislodge the existing market share.
 
MS likes to say they were late to the mobile market and that's why they're struggling now, but that's bs because if they actually hired competent management for their mobile platforms and if Bill Gates didn't have such an animosity toward mobile, they would actually have had something good.
Blackberry and Motorola were firmly established in 2007; that didn't stop iPhones from shaking everything up
 
1:50 PM
@AlRey The last time Bill Gates was in an executive position to determine strategy was in 2006.
 
I know that, but he still has influence over management
he's like an advisor now
 
@AlRey Yes, because they were meaningfully better than all the existing platforms.
 
I accidentally restart my pc
 
They effectively created a new category and dominated it for a while.
Microsoft will try to create a new category and dominate it with the new multi-screen mobile device. I'm not particularly impressed, but we'll see. The Windows Phone devices weren't anything like that.
 
okay yeah those are interesting...even if Samsung did it first to disastrous results
well "did it"
nvm actually; Samsung's offering was not like these new devices
 

« first day (3306 days earlier)      last day (1649 days later) »