« first day (2899 days earlier)      last day (2274 days later) » 

03:33
Heyyyy @trevor-e, I'm thinking of applying for an internship at Kayak. You're still there right?
04:14
Ganesh requested access. Rep: 809 - Questions: 42 - Answers: 19 (ratio 4:1.8)
!reject Ganesh
@Ganesh you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
2 hours later…
06:21
hekmat requested access. Rep: 21 - Questions: 10 - Answers: 1 (ratio 4:0.4)
!reject hekmat
@hekmat you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
2 hours later…
08:12
o/
08:36
i was looking at the DiskLruCache implementation in the support library. They use something called journalfile.
it looks like for every operation they maintain some entry so that the oldest entry file can be removed from the Lru cache.
while my own implementation was based on file last edited. i used to write that attribute based on when the file was recently got. I used to sort them initially based on timestamp ie the file last edited time which would help me delete the oldest entry
Chickenturtle requested access. Rep: 88 - Questions: 3 - Answers: 12 (ratio 4:16)
Hello guys, if possible please put some input to this question. Thanks in advance.
1
Q: Editable List-view Item & Run-time calculation for each item on TextChange.

darkprinceI have a requirement but I don't know how to fulfill this. I have also searched on internet but didn't get close to this subject. The scenario is I have a ListView/RecyclerView. There is an edittext box & on this edittext based on quantity change I need to calculate the item price. There is also ...

 
1 hour later…
Zia
Zia
10:02
Anyone here worked on SIP calling? pls help me on receiving SIP call.
My application status: SIP registration successful, I can call to other VoIP app from my app, Can hear sound. My incoming call receiver is registered successfully, but my app is not receiving any sip call.
 
4 hours later…
14:03
@W0MP3R I'm late but happy birthday. <3
14:13
@W0MP3R Happy Birthdayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy womper
@W0MP3R Has/had birthday? All the best and happy birthday!
14:54
din't know. happy birthday @W0MP3R
15:47
@Raghunandan Journal files are usually used for improved integrity prior to actual write operations on a disk. It's possible for a file to be deleted according to the journal, but not on the actual disk if an error occurs (power down, for instance) during the delete op
Using the journal file is likely to give you more up to date and reliable file status
okay.
but its looks like a normal file
yes i get the reliable part
I mean... It is. It's just a file that's updated before the filesystem is updated
When you delete a file, for example, there are broadly three operations you need to do
Delete it from the directory tree, free up the inodex, and free up the blocks
Quoting DIRTY lines track that an entry is actively being created or updated.
* Every successful DIRTY action should be followed by a CLEAN or REMOVE
* action. DIRTY lines without a matching CLEAN or REMOVE indicate that
* temporary files may need to be deleted.
* o CLEAN lines track a cache entry that has been successfully published
* and may be read. A publish line is followed by the lengths of each of
* its values.
* o READ lines track accesses for LRU.
* o REMOVE lines track entries that have been deleted.
With a journaled file system, you have an atomic update on the journal file
Which either succeeds in its entirety or it doesn't
So if you restore power and your journal file says some file was deleted, but it still exists on the fs, you know you can delete it
yes there is no half baked success. either it is full or nothing at all
15:57
Yup
It's a bit similar to Write Ahead Logs in SQL dbs
Queries are written to the log
Since db operations can take a while
So if power or system control is lost, you can read queries back from the log and reexec them when you come up
hmm. makes sense. now i get why my implementation was rejected although it was not bad. it wasn't efficient as the only implement in the support lib.
More than that, it might give an incorrect result
i based my delete on the last modified time of the file object. incorrect i am not sure. but may be not so efficient
You could have data that is only visible if you look at the journal
It's possible that a file is deleted and another one is created with the same path
But the creation op is only visible in the journal
So your lru won't know about it at all, since it's deleted according to it
hmmm. same path unlikely. but possible. my dataset was also small. but in production you have to expect this edge case.
16:02
Yeah, low level handling of stuff like this can get weird
Lots of edge cases
exactly. i think i did alright for a first time implementation. with your inputs and reading the actual source helped me learn all these.
There's still probably stuff we're missing haha. I don't know the software/hardware boundary super well
But yeah, for a first implementation I wouldn't say you failed if you submitted it to me
true. the point was whether i could write my own implementation and what is my understanding. But the disk cache is the framework is very similar to jake wharton's diskkru cache.
looks like google copied from that :)
Hah, only so many unique ways to do things right
even glide's (image caching lib) disk cache is based on that.
hope i don't get more mobile assignments when facing interviews and certainly not the kind of attitude and reply i got from the reviewer.
16:11
More impressive tho that they were able to get journaled file systems on every android device
I wouldn't worry too much, these guys just seem off
agreed.
posted on September 23, 2018

Android Weekly #328 #outlook a{ padding:0; } body{ width:100% !important; margin:0; padding:0; } body *{ -ms-text-size-adjust:none!important; -webkit-text-size-adjust:none!important; } body,.wrapper{ background:#ffffff; color:#505050; font-family:Arial, sans-serif; font-size:12px; } table,table td{ border-collapse:c

Dayakargoud Bandari requested access. Rep: 1 - Questions: 1 - Answers: 0 (ratio 4:0)
@DayakargoudBandari you currently do not meet the requirements to chat here. You can find our requirements in the rules.
Dayakargoud Bandari requested access. Rep: 1 - Questions: 1 - Answers: 0 (ratio 4:0)
16:22
@Raghunandan hiya
hi. hard usb keyboard keys :(
what happened?
the wireless keyboard had problems with circuit. the keys looked good on the outside. i used to use unwanted chars on the editor and terminal.
switched to usb keyboard now. its like the old type writer keys. hard springy key action
You got a mechanical keyboard?
nope. normal usb keyboard.
16:31
oh
RAGHU does ganpati visarjan happens in karnataka?
yes. in our house we do it in a bucket inside the house. now the corporation has banned visarjan in lakes.
oh :(
so mobile public tanks are there for public to do visarjan. But big lakes are to be kept clean. so its avoided from this year. also pop idols are banned
oh wasnt sure if the festival was celebrated in south at all
oh sounds like good call considering the bangalore issue
its a big festival for us. my dad takes 4 hrs doing all the procedures of pooja right.
16:37
wow nice
same here very big festival in MH specially Mumbai
its like any other part of india. all hindu festivals are celebrated with intense participation from relatives and friends. besides road near my house has 108 ganapati temple which looks like triangle.
looks like bit.ly/2zpqunu
every android dev must have faced those
wow looks awesome
@Raghunandan yeah i guess
16:54
Hi there!
Did you already notice that since some time when an activity is displayed on the lockscreen and you have an input field, the keyboard is no longer displayed on focus?
@RaghavSood Thank youuuuuu!!!!!! :D
@AdamMc331 Not late (yet) haha. Thanks a looot!!!! <3
@ColdFire Thanks!!!!!!! :D
@geisterfurz007 Thanks!!!!!! x3
@Raghunandan Thanks!!!!! :3
different thanks for all wow
17:12
Is it too late to wish you?
no it isnt
spain is around 4hr behind India
i am assuming you live in India :D
ok I will wait for the last minute like every thing else :D
 
2 hours later…
18:50
How many people remember Merlin advocating for bongocat YEARS before it became a meme
Sep 23 '11 at 9:07, by Merlin
Bongo Cat is a master of time ... he takes the occasional break, but not in a mortal continuum
19:17
no idea too old
19:34
happy bday womp
In German I tend to say: "Happy Burzeltag!" which is a nicer slangy word for Birthday! So this being said: Happy Burzeltag W0MP3R. May your wishes come true, your lovely spirit never darken and your personality stay as awesome as it is! Enjoy the day!
nice
what is the literal meaning of Burzeltag?
It is a belittlement of Birthday
Oh my, "Burzeltag" is something I would believe 15 year old teenage girls (and 30 year olds who want to remain 28 or younger) would say >.>
19:47
Lucky me... I am 35 years old
and I am feeling older. So please add that case to your rant nobody cares about
Whoa, no need to get personal :) I'm far from ranting. It was just bewildering to see this word in this surrouning
I'd expect it on Twitter or Instagram, but no in the StackOverflow Android chat. That's all
I wasn't personal. Trust me, you figure that out when it gets to that :P
Burzeltag is pretty common in my social filter bubble called family and friends
I'm thrilled. :P
Berlin?
19:55
yes
I see
My sister lives in Berlin, she says it too. But she also belongs to the group of 30 year olds, so... xD
I think the younger you go the lesser are the chances to hear it
There must be a ghetto word replacing it already for the teenies
"bday" I guess
Hello guys
19:57
I mean if I hear early teens singing "Ich hab dicke Lippen" in the middle of the night on the streets (in Potsdam, rather quite familiar area)
Happy birthday
the youth is doomed
Lol rofl
What's going on..
Germans ranting about Germans
so nothing to see, just move along
Yeah. You know, as Germans, we need some daily dose of ranting, or we'll be too happy and our heads explode from happiness.
20:00
You wanted to say: or we'll be too happy and invade another country
Not now. Winter is coming, bad timing, you know...
The sunlight, it hurts
The weather is either too hot, too cold, too wet, too dry, or, if it's neither of that, we say "it cannot decide".
I would say if we start now we can be in Moscow in Summer...
Mr Raghav
Bro did you see my post today
20:04
xD
Germans takeover r15
We're just two. So how bad can it be. And at least I am not born in Austria.
Not sure about Warren though
I mean, after all, HE's the one in Berlin right now.
@bluetoothfx What post?
No, I am in Potsdam right now. I was born in Berlin and lived until 2013 there but now I live in Potsdam but work in Berlin
updates warren.txt
Go on.
I still have no own class, right?
man I wait since ages for that
20:08
It takes a lot to gain class
Our records extend beyond Tristan's gimmicks
class Record extends Gimmick?
What is your favourite (i. e. most common) typo while coding?
I just can't type anything with "Internet" anymore without typing "Integer" first :/
esle instead of else
20:16
rm -rf .* instead of git push
Actually, that should be the other way around
You must be a very productive person.
scrap "person" and you are right
20:18
Streaming at twitch.tv/codeguru42. More Material Design with Navigation Drawer
@LWChris person bot
I am confused. The profile doesn't appear to be a bot profile.
Okay, Turing test light... @Raghav
Are you human?
I'm afraid I don't understand the question
Dang it. Either a bot or stupid.
20:21
Definitely the latter
You're a tough nut. >.<
I'm allergic to a fair variety of nuts
well, we wonder till today if Raghav is a bot or human. All we know for sure is that he is not both
I could be
Maybe parts of what I do is a bot at work
20:26
no, you wouldn't accept partial upgrades. Either full bot or full degenerating bio mass.
If he's allergic to nuts, he can't be screwed, I guess.
Starting a new project with 100% test coverage
Let's see how long we can keep this up
LMAO chris
20:43
@Raghav you cannot keep 100% test coverage up. You can do 100% code coverage though.
Nope
A few minutes in, I've found 1 line that's nearly impossible to test effectively
We will never have 100% coverage on this
Barely 100 loc :P
Then again, if we actually hit that line of code, there are bigger issues in life
Such as explaining why your device's CSPRNG is unable to return even 64 bytes of random data
Ah... yeah... The reason why there's a PrintWriter class in Java. It doesn't throw an exception if printing fails. Ideal for logging. If you can't log an error because of an error, chances are you don't need to know about the first error because you'll probably see the smoke plume that used to be your server RAID yourself earlier anyway.
That's terrible advice
In this case, I can actually detect the error
It's just that inducing it artificially in a test case is too convoluted
And doing so will increase the surface of my normal code so much that I'll likely end up with more bugs
This sounds like a case for dependency injection
Normally, yes
In this case, I would still prefer to trust my one line return statement is correct than to complicate this good
20:52
public int getRandomInt() {
    return 2; // chosen by fair dice roll
}
Is this your one line return statement for the RNG?
> 26 if err != nil {
27 return nil, err
28 }
29
Line 27 is the untested one
But I strongly suspect a return statement will work
i guess
Stefano Tokyo requested access. Rep: 20 - Questions: 5 - Answers: 0 (ratio 4:0)
21:13
!reject Stefano Tokyo
@StefanoTokyo you currently do not meet the requirements to chat here. You can find our requirements in the rules.
22:05
dafuq? toolbar is too big
Probably because the docs said to put the Toolbar inside the FrameLayout for fragments
well that don't work either...
22:31
hmm...looks like I might need to refactor my ListView to RecyclerView
22:58
RecyclerViews are not so bad afterall
I was a bit mistrustful of the concept when I learned that ListViews were deprecated, but alone the fact that they provide a sensible and easy to use Adapter and ViewHolder template you can simply subclass is very nice
I was totally new to them, and got the hang of it in an hour. Then I needed to implement a custom Adapter inherited from BaseAdapter for a Spinner and it was horrific
Now I wish Spinners had the same nested static classes to inherit from
Especially if you need more complex layouts for your items than simple strings
23:17
on the down side, RecyclerView doesn't give you automatic database access with CursorAdapter nor does it implement multi select mode like ListView does.

« first day (2899 days earlier)      last day (2274 days later) »