« first day (3323 days earlier)      last day (1636 days later) » 

12:00 AM
I should acquire an intern
But it is hard to find one with enough experience and skills to work at this level
Actually, that's a good idea
Set up a mail order intern/employee service - company sends you the skillsets they need, you take on students and train them specifically for certain niche roles
 
12:15 AM
Jave has remained at a consistent 3 billion devices for the last decade as per their installers
 
haha
 
OMG what the actual fuck. C++ has awful syntax for creating instances of a class
 Contacts contact("Yoooo");
is contact a function? No.
 
The trick is to use Rust
Or Go
 
I can't
 
Then the trick is to resign and move to a project where you can
 
12:22 AM
Its my own project
in JavaScript, 11 mins ago, by JBis
I need to access a native api in node. But the native api's are only offered in swift and objective - c. But node only accepts modules in C++. So i have to make a Objective - C C++ bridge and then make a module. Best part is I don't know the API, Objective - C, or C++.
 
Then the trick is to submit a request for changing the stack, and rubber stamping it yourself
Also, from a node perspective, you may find it easier to build a separate service that runs locally and exposes a regular API you can call via HTTP/IPC/etc.
Many large scale applications take this approach
They have a electron or other shared platform UI bundle, and a separate background app in Rust/C/C++/go that runs as a "server" locally and works with OS specific APIs and handles most of the business logic
It tends to scale better and faster than writing a ton of shims
For example, Zoom introduced a great vulnerability using this approach: medium.com/bugbountywriteup/…
So maybe use an authenticated system
 
1:17 AM
@RaghavSood Thanks for article. | The API isn't built into Electron.
 
Yea, that's my point - build a separate utility that is in whatever language you can use the API from, then serve a HTTP or IPC based RPC API from that utility which can then be consumed by your node/electron app just as if you were connecting to a web API
That way, you don't need to bridge it to work with node directly
 
why tho?
seems like unnecessary overhead
 
Just an option
Probably more overhead if you need to work with just one thing node doesn't expose directly
Less overhead if you need to work with lots of them
 
just one
But i am getting very frustrated. Apples documentation is very "do it my way or no way".
 
 
1 hour later…
2:29 AM
o/
 
 
4 hours later…
eli
6:23 AM
Hi
 
No.
 
eli
What
 
No.
 
eli
Where
 
No.
 
eli
6:29 AM
Whom
 
Good morning everyone. :)
 
SO's message dedupe won't let me send another No. :(
 
eli
Morning Rakesh, Raghav Sood Zari
 
Now twice No?
 
eli
What is it Raghav
 
6:33 AM
Do you have experience with WebView?
 
eli
You want some help ?
 
Yes, trying to get the text from WebView editText?
 
eli
6:48 AM
Have you tried to embed JS ?
 
I don't have control of WebEnd to put some kind of function there and get work done accordingly
 
eli
you can use javascript in webview
 
trying to use evaluateJavascript and it giving null always
 
eli
access DOM element by ID or class name and do whatever h*ll you want
 
javascript:document.getElementById('search_form_input_homepage').value
not working
 
eli
6:56 AM
I don't know exactly where are you trying to invoke this function but try to check this code how i did
use js functions in webView.setWebViewClient. onPageFinished ovveride method
 
It will load the Url
 
No.
 
eli
i implemted that long time back
 
7:16 AM
@ballBreaker That one is so cooooool :O
gimme gimme
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!!!!!! :D
 
@eli , Yes, I had also implemented with interface at WebEnd and get that method here on android. It works fine. For this above, I don't have access to WebEnd and can't make changes
 
7:40 AM
@RaghavSood turns out this exists: news.ycombinator.com/item?id=21588259
 
ohhh
it seems nice :O
 
sup peeps nerds bots robots and shadows
 
Hiya CF!!!!! :D
 
how is the morning?
 
8:07 AM
o/
not too well
 
8:18 AM
morning
user image
4
 
8:31 AM
Greetings!.Been solving a leet code problem.
ended up getting timeout for large set of input
leetcode.com/submissions/detail/280386487 Brute force solution. Can anyone tell me if can do better with the current solution
i do know another way that i found useful in the discussion section but want to see if i can improve this as well
 
Gist? It needs an account to actually see anything
 
ok. let me paste it else where
 
Tom
hello
 
Tim
hello
 
Morning all
 
Tim
8:34 AM
@CptEric ahh one of the best shows ever
 
and the problem statement is pastebin.com/8EY19riB
 
Is the input sorted already?
 
Tim
confusing wording
 
No. The array is not sorted.
 
You shouldn't need to sort each sub window from scratch
Once you sort window 0, window 1 is window 0 - the 0th element + the next element in the original array
So at most, only the newly inserted element will be out of order
 
8:38 AM
Yeah, sorting each sub array sounds like wasted time
 
Tim
it's a trick question. "Median is the middle value in an ordered integer list" they give you an unordered list, hence there is no median
 
You can do an insertion sort during the addition of the new element, no need for quicksort each time
 
@CptEric the older I get, the more I appreciate Scrubs
 
it's too early in the morning for me to look into assignments.
Scrubs is life
the older i get the more i identify as the janitor though.
 
Tim
jan itor
 
8:40 AM
Never watched it. But if you want to go stone couples, count me in
4
 
My true dream was to work at a hospital like that, especially in that area. I dk the location of that hospital but it seemed a real lovely place
 
i think it was boston but i might be mixing it with House.
 
Tim
scrubs was the first show that made me sad when it ended. That is before S9
 
> The first eight seasons of Scrubs were filmed on location at the North Hollywood Medical Center, a decommissioned hospital located at 12629 Riverside Drive in North Hollywood, but the location of Sacred Heart Hospital within the fictional world of Scrubs is left ambiguous.
 
Bleh, working in a hospital. Half my family is in this field, it does not sound fun
 
8:43 AM
friend worked as dev in a hospital, said it wasn't that bad, and you get a blue coat too.
 
"I fix the health of code"
 
Mostly because on top of having to meet humans, they are sick and unwell, so they're even worse than usual
 
running the patient-oriented software seems way way more engaging than, say.... real state or e-commerce.
 
Aaaaah, dev in hospital. Thought you wanted to tickle some body parts to check for cancer. Nvm me then
 
had a small crush on the gf of .. what was his name again the doctor that plays the smart asshole
 
8:45 AM
the blonde girl?
 
You had a crush on the blond one that can do a german accent
 
no not barbie
 
And crash her car
Ah? dang
 
I thought you never saw the show?
 
I know my meme
 
8:46 AM
i had. clumsy funny and sings bad. perfect match for my high school self.
in my last company i worked in a MVP of a nfc & wifi powered patient tracking system that was dope
 
what was the name of that asshole dr again
 
ooooooh the head of surgery
he jsut plays asshole to not get too attached.
 
House?
 
Dr Cox
and dr cox had a gf somehwere later in the show, believe they got a kid together
now that gf, is the one I had a crush on
 
Aaah, that smartass
 
Tim
8:48 AM
he had a kid with his wife whom he divorced
 
Doesn't the kid die or something?
 
not her
 
Tim
no not her
 
wait no
 
Tim
8:49 AM
the short dark haired one
 
wrong link
i had both opened
 
@CptEric yep, her
 
o/
 
i keep thinking of that project, dammit.
it's like a code crush.
 
Hi grrigore
 
8:50 AM
cancelled due to $, as always in agency
 
money and the power
 
it was dope and not expensive to implement. patients with nfc tags linked to their nationwide clinic historial and live tracking of intervention statuses thanks to an already existing but unused wifi detection system for hospital beds
 
@ballBreaker wow
 
both mixed = no more "wait for doctor to see how's it going", "doctor forgot the print the history", "wrong medication given"...
 
Sounds like major personal data complication :P
"Oh my god, you linked their name, adress and medical history? How dare you breach their privacy like that"
 
8:54 AM
nah, catalonia already has an encrypted patient history since 2003
 
they're living in 2030
 
drop anywhere, swipe a doctor card and a patient card, get the whole clinic history
 
@grrigore They're living in 2019, it's us that are living in 1990
 
same for recipes / medications / appointments / sickness. all is handled by your patient account
 
recipes?... Receipts?
 
8:55 AM
it was just connecting that to the hospital workflow
that. in spanish both words mean the same :D
receta -> receipt, recipe
 
I love Spanish
 
we're the C of languages.
 
Can't speak it, but as a Latin-based language speaker, it's so easy to understand
 
override everything
 
how was such project cancelled?
 
8:57 AM
the first test hospital didn't get the funding from spain BC it was a catalan hospital.
 
Gotta love some politic, never gets in the way of general improvement
 
the region's accounts were frozen to prevent funding for the referendum
which happened anyway
and we couldn't work for free.
 
still have the demo app on the huawei i think where you can see how john doe's operation goes (emulated with firebase)
> patient is entering surgery room 12.
Doctor: blah blah blah
Assistants: blah blah blah
and their data
stuff like that. pretty dope
 
@CptEric kinda ironic cause catalonia prefers not to fund the rest of spain right
 
9:15 AM
? it's not like we get a choice
all taxes go to the same place then are distributed yearly
 
that choice lasted 28 seconds
 
oh rite
 
But I understand you guys, I feel bad for you
I joke about it, but it's kinda sad to be the determined shoulders without a choice
the year I lived there spanish politics seemed chaotic and very divided. I remember being at my ex father in law telling him I vote right wing here in the Netherlands
He said "right wing?!" "are you pro Franco or such?" eeerr
 
oh yeah. right wing in spain means far right
 
xD
Cultural differences ftw
 
9:19 AM
I also remember driving on the toll paid roads with miles of loneliness
 
god forbid the government to not sell the highways to abertis every 25 years for pennies.
 
abertis?
 
the company running all the tolls in spain and southern france
 
im happy our roads are state bound, some of us are not and complain about the high taxes but toll roads aren't great either
or you can go full belgium and pay alomost no taxes for roads but also have a road that is funded with barely any taxes
 
some regions are pushing for a yearly tax on cars of about 50€ instead of per-use tolls
 
9:22 AM
your car will pay for it nevertheless
 
but that isn't great either
 
why not? 50 euro a year seems good
 
some might argue that they'll never use the highway
or not enough
 
@CptEric but they still benefit from trucks transporting their stuff on these roads
 
i'm not defending their position, i'm all in for that. i hate paying 9€ everytime i want to get to the beach in < 1h
 
9:24 AM
not just that, it's also a loss of time
might be a few seconds, but counting every car per day you have 1000's of seconds wasted
 
and causes virtual congestion
bc "oh my card isn't accepted, try another, try another, call for help".... happens everyday, somewhere
 
also loss of time
im all for efficiency, it's just 50 euro a year, if you own a car you should be able to afford it
 
exactly
 
guuuuuys
what's this about?
 
we're solving the world and agreeing on pragmatic solutions
 
9:27 AM
LIES
 
yes lies
 
i love these kind of analysis
 
What are we looking at?
 
at LIES
 
bolivian tweets related to the coup and their alignment
unsure about the color coding
 
9:30 AM
Ghost recon wildlands is about bolivia
anybody already plays that?
 
nope
 
Tim
isn't that old
 
wildlands is the old one right?
brekapoint is the new
like the game, dislike the third person camera and repetitive tasks
 
@Tim 2017
 
o/
 
Tim
9:39 AM
well that's newer than any games I play
 
finished star wras yesterday.
 
@RaghavSood the first window ie window 0 is sorted.
 
Tim
I can't remember the last time I finished a game
shadow of mordor maybe
 
Yup, my point is that once a window is sorted, you only need a single insertion sort to add the element for the next window
 
if you have 1,3,-1,-3 after sorting window 0 is -1 1 3
 
9:41 AM
Instead of selecting the elements for the next one from scratch, then sorting it
 
so window 1 sorted should be -3 -1 3 and median for that is -1
 
Yes, so you remove 1 from window 0, get -1 3, then use insertion sort to add 3 and get window 1
Instead of selecting 3, -1, 3 and sorting it from scratch
 
window o is 3 and - oth element is -1 and +(-3) is 3
so you get 3 -1 and 3
 
The 0th element selection happens from the original array
You select the 0th window element from the original array, remove the first occurrence of that, then use insertion sort to insert the next one
 
Tim
did you guys know that you should place vector drawables in drawable-anydpi?
 
9:45 AM
we what?
 
@Tim yes any or no also works
 
Tim
no does not work
 
Logically, nodpi should be for displays that are just a single giant pixel
Studio lights, for example
 
it does
raghav xD
 
Anyone seen American Gods?
 
Tim
9:51 AM
that makes no sense at all
> nodpi: This can be used for bitmap resources that you don't want to be scaled to match the device density.
 
@RaghavSood thanks raghav it improves the sorting cause you are just inserting 1 element to the already sorted array.
 
It also helps by not creating new arrays for each window
Although that would depend on how you write it
 
yeah you are just deleting and adding another 1
but removing also moves the n elements to the left
so creating a new array would help?
 
Nope, it would slow you down allocation wise
Not sure if it is a major issue in Java tho
 
pastebin.com/19XhYLzs this is the solution i found in the discussion section uses priority queue and is similar to what you told. this avoids sorting every sub array.
 
9:58 AM
You could also do other microoptimizations, such as checking if the new element is > the halfway element in the window's next element and just skipping the insertion since it wouldn't change the outcome
But that would take a lot more bookkeeping for the removal step
So probably not worth it
 
what algo are you both talking about?
 
Tim
1 hour ago, by Raghunandan
and the problem statement is https://pastebin.com/8EY19riB
 
yes that means its already sorted.
 
Hmm interesting
another job task?
 
Nope just doing some problem solving
 
10:02 AM
thanks tim
@KdonPatel sorry, you currently do not meet the requirements to chat here. You can find our requirements in the rules
 
ok
 
Is Handle.postDelay blocking the UI?
 
@NirmalPrajapat Welcome! Please read, confirm reading, and follow the room rules before you do anything else: room-15.github.io
@Raghunandan is nums already sorted or not?
 
It's not
 
not sorted.
 
10:07 AM
okay
 
I have read and understood the rules
 
Welcome
 
Tim
@grrigore depends on the handlerthread it runs on
 
@RaghavSood I have seen Anchorman, yes
One of the best comedy movies ever made
 
I feel like I'm missing a reference
 
10:16 AM
@Tim Well, the most basic one Handler.postDelay({ //code}, 2000) where does it run?
 
On the CPU
 
-.-
 
:)
 
Did you get your monitor Rag?
 
No :(
They cancelled the shipment
 
10:21 AM
What? :(
 
That's what you get for ordering no-name monitors off Ali Express
Just cancelled it today, actually
 
yea..
 
Tim
@grrigore dunno, handlers are so 2018
 
Coroutines right?
 
Tim
literally anything that abstract threading
I can't even think of a case where you need handler.postDelayed
 
10:24 AM
When you need to handle something with a posted delay
It's in the name, Tim
 
To close an activity after x seconds
 
Tim
why would you do that
 
While allowing the user to close it faster than x seconds
 
Just tell a user to do it
 
@NirmalPrajapat thanks and welcome :)
 
10:37 AM
@grrigore runs the code after 2 sec
in the postdelayed block
 
Thank you
 
np
also handlers are useful and coroutines is not a replacement of it
 
Tim
he wants to know on which thread it runs
 
The thread its created on
 
Tim
the waiting part not the executing part
 
10:41 AM
obviously it will not block
 
@V.7 Welcome! Please read, confirm reading, and follow the room rules before you do anything else: room-15.github.io
I hate r15 management without the bot
 
Tim
if it was obvious he would not ask
 
you can always complain to the bot owner :D
 
Tim
@ahmad when are you deploying the bot? Make mehdi happy again
4
 
it actually is postDelayed
 
V.7
10:44 AM
I have read and understood the rules
 
welcome
brb
 
V.7
Although, ain't me have joined this chat before already?
Interesting.
All in all, glad to see all here, thus: Hey all o/
 
likewise, welcome :)
 
yo
 
10:59 AM
lunch time
me
 
happy paela
 
Sign of times...sigh
 
11:25 AM
nerds
 
11:41 AM
LIES
 
o/ Murat
 
@RaghavSood solved it using two tree sets each having index in decreasing order. i stored the indexes since numbers can be duplicates
 
Seems reasonable
 
did you start your new job Raghu?
 
so there was no need for sorting. while removing a element in a array is a costly if its at the beginning as you have to move all n-1 elements to the left
@MehdiB. no.
 
11:54 AM
Seems reasonable
 
they actually hired some one else since i was late in joining although i received the offer. they just din't wait for me
 
the IT market where you live is really bizarre
 
^
 
yes it is. most of you won't enjoy the working here
 

« first day (3323 days earlier)      last day (1636 days later) »