« first day (2453 days earlier)      last day (2720 days later) » 

00:03
LOL
just use curtains
or move to the basement haha
4
anyway
I'm off m8s
night!
XD
Night!
00:21
0
Q: How to insert EditText in between multiple TextViews in Android?

filipebarrettoI am developing and Android app that has a "fill in the blanks" activity. For that matter, I wish to have a TextView followed by an EditText followed by another TextView, to show something like: Lorem ipsum dolor sit amet, consectetur ________ elit. Aliquam quis est ex. In maximus consecte...

Definitely an XY problem. But the question makes it pretty clear what the ultimate goal is rather than just focusing on the proposed solution.
00:42
:D :D :D
Stupid bugs are always such fun when you finally figure them out
01:00
^MRW when I discovered Tim
 
1 hour later…
02:14
Beep
Stop backing us up
Boop
Better
02:46
@AndroidDev Is there a reason that the integer value is a resource rather than a static final int?
@Code-Apprentice I don't think so. Maybe he wanted to use it in Java and XML
I used to do the same thing with Strings...but requiring a Context to get the String value isn't worth it in some situations.
Yeah it is annoying that you end up passing a context as a parameter to 50% of your methods :D
You're probably doing something wrong then
Has anyone used Anko SQLite?
02:52
If you need a context so much you should have a Utility singleton class that takes it as a parameter at init time
13
Q: Is it appropriate to emplace a "Donate" button on one's SO profile?

Lightness Races in OrbitIs it appropriate to ask for donations on ones profile page? To me, it seems to be somewhat at odds with the goal of SO.

> You shouldn't ask for money on questions. Never, nor condition an answer on payment, or suggest it. That's not what this community is for.
Aww...so I can't tell people that I charge $200 per hour no more?
Of course, those kind of responses are always for anyone who clearly is not doing the work themselves.
575
Q: Is it unethical for me to not tell my employer I’ve automated my job?

EtherableI currently work on a legacy system for a company. The system is really old - and although I was hired as a programmer, my job is pretty much glorified data entry. To summarise, I get a bunch of requirements, which is literally just lots of data for each month on spreadsheets and I have to config...

Reminds me about that article a while back about a programmer who automated his job and watched You Tube all day. When he got caught and fired, he couldn't remember how to program.
That was posted here, right?
I keep getting
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/terranovaproductions.reactiontimer/databases/mydb
03:40
mcve @TristanWiley
04:11
YEAHHHHHH 'MURICA HAPPY #BREXIT1776 TO YOU ALL
user457812
04:25
@TristanWiley My god, a self-dunking cat
user457812
We can't let this technology fall into the wrong hands
user457812
Call the Russians, we can't trust the US president anymore
user457812
Wait— crap, he is the Russians
user457812
Call New Zealand
04:26
New Zealand is nice
user457812
I want to visit it some day
I was there in May, completely unlike any other place I've been to
Morning
user457812
There's basically Australia, New Zealand, China, maybe Japan, and I feel like Hong Kong has to be on the list even if I have no idea about it
I'm missing China on that list
And most of Hong Kong
Spent a night there unplanned, didn't really see it
user457812
04:28
I kind of don't want to visit some place like the UK or France or Germany, though Germany does sound nice, because it's generic western civilization
user457812
Maybe visit Finland
user457812
Finland is weird enough
I would definitely recommend New Zealand and Australia
Japan you could get by without if you see other east Asian places
user457812
Japan's less interesting because it's Japan and more just how it seems like it's ultra-busy and techy
user457812
But that's mainly me thinking of like Tokyo
04:30
Pretty much only the main Tokyo is ultra busy
Kyoto, Nara, Osaka, Hiroshima are super nice and relaxed
user457812
Visiting a small island or something might be more interesting.
Kyoto is literally perfect if you want a large city's convenience without a large city's downsides
user457812
Maybe -- I don't know. Problem is I don't know much of anything about Japan.
user457812
Whereas I know New Zealand and Australia have parrots
user457812
And I'd get a kick out of just watching birds
04:33
New Zealand is probably a bad spot, then
Their wildlife is pretty hard to see
user457812
Nah, they have some specific birds I'm interested in, and a few of them are considered pests
Very easy to find sheep and cows and goat farms though
user457812
Though main thing with birds is just sitting around for a long time and waiting
user457812
The kea (; Māori: [kɛ.a]; Nestor notabilis) is a large species of parrot of the family Strigopidae found in forested and alpine regions of the South Island of New Zealand. About 48 cm (19 in) long, it is mostly olive-green with a brilliant orange under its wings and has a large, narrow, curved, grey-brown upper beak. The kea is the world's only alpine parrot. Its omnivorous diet includes carrion, but consists mainly of roots, leaves, berries, nectar, and insects. Now uncommon, the kea was once killed for bounty due to concerns by the sheep-farming community that it attacked livestock, especially...
user457812
For example, if I saw one of those, it'd be awesome
04:36
I saw one
It was eating a car
user457812
Yeah, they do stuff like that.
user457812
Parrots are a destructive force.
user457812
Try handing a cockatoo a block of wood -- it'll destroy it.
user457812
04:54
Like many parrots, the kea thinks you're weird and doesn't care you exist.
user457812
Unlike many parrots, it doesn't seem to learn that humans are something it should avoid
This one's taught humans to avoid it
It's famous on Tripadvisor reviews of that tunnel
People issue warnings of how the Kea ate their car's beading
user457812
Well, not ate
user457812
Just.. foraging and trying to get in, and it knows people have food
user457812
Which is really just humans' fault
04:57
Nah, this one literally ate a few people's
There's a video somewhere of it
Eating the plastic bumpers and the beading
user457812
Weird. That can't be healthy.
Probably not
05:10
GM ALL :3
05:51
Like that old joke: How do you eat a car? One peck at a time.
user457812
continues drinking wine
Morning
06:07
Morning All
morning morning all
06:33
Gooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!! :D
o/
morning
Good Morning
Amy
Amy
07:25
Any one has more idea for multiple video support
https://github.com/OfficeDev/skype-android-app-sdk-samples/tree/master/GuestMeetingJoin
i am using this demo of skype
But it provides only 2 participate, I want at least 4 participate
you can use webrtc
Amy
Amy
07:41
yeahh but i want to use SKYPE SDK @Bhargav
Hiya Warren!!!
08:26
\o
hey Womp!
Hiya Tim, CF!!
How's the day going??? :D
slowly
very tired, many things to do
good many things to do
how is your day going womp?
08:33
Hi guys. Did someone use Google Maps v2 direction library ? (github.com/akexorcist/Android-GoogleDirectionLibrary)
morning
first one in the office, pretty weird
_o meh
> START DATE DETECTION
2016-04-89
END DATE DETECTION
Checks out
08:53
It's just another way to say it is 2016-06-28
Neither of those dates appear in my text
"89" isn't even present in the text
good morning genossen
09:01
o/
09:31
o/
Is it normal that docker uses like 4gb ram
Not out of the realm of reality
"docker" or a docker container ?
both, if I stop running container the used memory does not go down
by default, containers have no memory limit unless you run them with -m/--memory option
hmmm
09:41
o/
you have no running containers and the ram usage is still high?
the more I live, the more I hate docker.
my container isn't even doing anything
just a server waiting for calls
So then it is doing something
It is waiting
docker stats
shows mem, cpu, IOs from containers
it's lying
7
09:50
yeah, probably, welcome into the fabulous docker world
10:34
3 or 4 people have been here since I said that, but 6 stars were given
silent people
I was on a cab and starred it :D
xD
mobile chat aawwwww
this is what I stubbled upon cryptominded.com (very good for noobs like me)
10:56
oh, we say "stumbled"..
don't hesitate to correct me guys :P
I don't want to come across condescending
I don't mind, just correct me whenever you feel like it :D
ok
can I also correct the database of your choice?
5
:O
a mosquito bite me
hahaha
11:05
lol
so itchy >.<
use a nail and make a cross on the bite
fingernail?
11:17
I think this nail
Let's leave it open to interpretation
https://t.co/P0BEVvpZQq
11:41
ahmad mein freund wie gehts
11:51
@Amy skype sdk sucks, their support sucks even more, I would advise against it
> **Frogs survived the asteroid that wiped out the dinosaurs.**
They acquired skills like living in trees and laying eggs on land.
12:04
LUNCH TIME~~ :D
enjoy not paella
12:21
lol
Amy
Amy
@Bhargav yess, I have already ask a bug/query in the Github link, It's pass 1 week and no reply
I am drinking coffee for the first time in 6 weeks
Why did you go off it?
I played my first live poker tournament last night, was really fun despite losing
nice :) I have played in small scale live tournaments in my youth. Really exciting, I still play for fun on pokerstars
12:44
Word
Hiya Graeme!!! :D
Hey w0mps, sup?
Good!!
you??
yo graeme
@TimCastelijns you ever play in live tournaments anymore or just online?
12:54
only for play chips online
I'm ok
hey brobud
Brobud?
Que?
13:00
you never notice me givnig you strange greetings?
oi Graeme!
moi Graeme
sometimes, you have to extend something you coded months ago, then you realize how easily extensible you made it and you stop a moment to appreciate and respect your past self :D
13:19
in retrofit, what are read/write/connect timeouts? Docs are not clear
okhttp rather
read is when you don't receive a response from the server within the specified amount of time
write is when your request doesn't reach the server for some reason
connect, I'm not sure, I assume it's a ping?
connect is the time spent waiting for the socket to be established with the target
default is 10_000 for those three timeouts in OkHttp
see OkHttpClient.Builder
13:34
read timeout should be the time spent waiting for the target to send the first byte after the last byte written by the client
yeah I have set it to unlimited while I figure out why it takes 34 sec to process a 4sec video file
Is it 3D?
video file (noun) - a file Tim's code can't handle. synonyms: requirements, edge cases, math, memory management
<3 you too, Tim
make it async, Tim
server-side async, I mean
13:47
in what way
I have to return something
What is the goal here?
Upload? Download? Stream?
tim, just use realm
yes: return a unique ID identifying the job that async process your file
make a second API entrypoint to check the status of the job given an ID
what if the file processing takes 10 minutes? Gonna let the connection opened for that long?
that's a lot of work
so it takes the server 33 seconds to multipart encode a 9mb file
14:03
I hope you haven't planned to have multiple clients doing simultaneous encoding because it could lengthen the wait ;)
server scales
spawns extra workers
but why is this 1 file taking 33 sec hmmm
* * server load is high ? * * throw more servers at it * *
that's a pretty normal thing to do
sure ;)
sure
or maybe google is doing it wrong
14:08
but you're not google
but they manage the scaling of my server
@Ahmad OMFG OMFG OMFG OMFG @AdamMc331
I don't know any P/IaaS that don't do this
granted, I don't know many
sync-waiting through HTTP for a potentially lengthy server process to finish, is still a bad idea, imho
@DaveS @TimCastelijns So I asked Nathan about the whole server thing:
14:17
yeah I agree ocus
but first I have to find out why it is lengthy
what processing are you performing on the video?
I am sending it to another server that returns a thumbnail of frame 1
the sending involves multipart encoding
are you sure the multipart encoding is what takes time and not the thumbnail processing?
yes I logged the times
the 33sec is before the request to server 2 is made
14:24
what are you using to send the file to the 2nd server? lib, language
Do I want to work on trying to get my Anko DB working, or do I want to convert ye ole ChatSE project to Kotlin?
python, poster lib. It has a multipart_encode function
33sec is just the multipart_encode() part ?
after closer inspection :P the encoding is fast enough, but shoving it into a string takes long
by "shoving it into a string" you mean a base64 string?
14:27
wow poster dates to 2011-04-16
I bet a simple curl command would be more efficient
actually the encode function returns a generator, so it is still likely that the encoding is slow
I know the lib is ancient, but I found no better one
curl -s -F"image=@/path/to/file.mpg" http://server2/api
I have no filesystem, it is a file object
14:35
add -v option to see the headers from the request and the headers+body for the response
can't write to /tmp and delete afterward ?
echo "binaryfilecontents" | curl -s -F"image=@-" http://server2/api
@- is stdin
I don't think I can use curl
I can't make system calls
:(
The lib you're using should have a logging interceptor
where you should be able to log requests headers / body / responses
in OkHttp it's called HttpLoggingInterceptor
what do I need it for
8 mins ago, by OcuS
add -v option to see the headers from the request and the headers+body for the response
14:44
the lib only does the encoding, nothing else
that is pretty popular for HTTP in Python
it does multipart (as every uploading lib, because I think multipart is the only way to make file upload in HTTP/1.x)
you linked to streaming, but I don't think I need that
you need streaming
to speed up the process
14:50
how does it affect the receiver
if you base64 encode you load all the video in memory then all the base64 string in memory
For interfaces what is the best way to name them? The interface class describes the purpose or the method?
and it takes time
no streaming: read file contents then encode then send the whole thing (might take many RAM)
E.g. I have an interface onReady which has void onGolfCourseListReady(), should it be the other way around?
Just not sure what's the best practice and easiest to understand for other developers
14:51
streaming: read some bytes from the file, encode, send them in the socket, repeat until no more bytes to read from the file
server 2 would need to be a socket server?
and that's why on greedy processing, you never use byte arrays, but use streams instead (as byte arrays are entirely loaded in memory then processed in 1 shot)
arg
a socket is a just connection (~)
s/socket/connection/g in all my previous messages ;)
I only know sockets as in 1 is sending and 1 is receiving, after establishing a connection
open connection, write some bytes into the connection, repeat until no more byte to write. That's the process behind both streaming and no-streaming.
14:59
maybe I am dumb, but to me it seems you cannot open a socket connection to a http POST handler for example

« first day (2453 days earlier)      last day (2720 days later) »