« first day (1780 days earlier)      last day (3183 days later) » 

12:02 AM
What would cause a preview not to show up in AS? My XML is fine, I'm not getting any errors, it just doesn't show the layout preview
 
You have the visibility set to gone
 
Just kidding, my XML is wrong somehow? When I removed my LL it showed..
Okay, the problem is in my TextInputLayout, idk why...
 
Let's see it
android:layout_width="0dp" android:layout_height="0dp"
Don't do that ^
 
ooooh
android.support.design.widget.TextInputLayout and not just TextInputLayout I forgot
Maybe this is a sign that tonight is not a good night to develop
cM I have a few questions if you're still here
 
shoot
 
12:13 AM
You still got Cash Caretaker installed?
 
Indeed
Glad I could help
 
On the add transaction screen, you know how I've got those radio buttons for withdrawal/deposit discretionary/non?
 
OH, there's more to the question
yes
 
(lol see edit)
 
:D
 
12:14 AM
Do you think there's an alternative? Would a switch button work? I'm renovating some of the UI, and I'm trying to think of a better way
but when I get to those things I'm not sure. I'm also not sure what to do with date/category. I might make category a spinner or something. :/
 
I like switch buttons but I'm not sure I'd use it there. Those, to me, are more of an on/off type thing. At least the type I'm thinking of
Spinner might be good for category. I'm not sure what else you would use, atm
 
Yeah. I agree about the on/off thing.
 
I think date and category are fine but I could see it using a little jazzing up
 
See, I was going to remove the labels, and use TextInputLayout for the edit text fields
But now I don't know what to do with date, because I don't just want a button that spans all the way across, with no notice of what it is.
 
Is that the thing that puts the hint at the top when the user starts typing?
DatePicker maybe?
eh, might take up too much space on a phone?
 
12:21 AM
Yes, maybe, what?
Those are my answers in order ha
 
if you had a date picker instead of the button
 
Well the button opens a date picker. Or are you saying to put the widget right on the screen?
 
But you do have room still to move things down
Yeah
But after I thought about it more, I wasn't sure about that
 
Also, what does inputType="date" do?
 
Just not sure what else you would use
Don't know. Didn't even know that was a thing
try it and tell me 'cause now I'm curious :P
 
12:25 AM
Okay I will.
Give me time because my computer is wigging out on me right now
 
-1
Q: TextView inputType date in Android - how does it work?

zweiI have not found this in any documentation, tutorial or question. Pretty much all tutorials concerned date picker, so I am confused about its functionality. I have TextView with inputType="date". How do I handle it? Does actually it do anything other than text field does? What are best practice...

Not sure if that's correct
 
All I get is a keyboard with numbers, slashes, and hyphens.
So it's only date input, i guess, but it's not easily enforced on the input.
I could have an edit text for consistency that's read-only and onClick opens a date picker, but that might confuse a bunch of people
 
^^ Make it an EditText and open your datepicker when it gets focus?
 
Yeah
Is that gonna confuse users?
Haha. Whenever we have the same idea at the same time I always feel like it's a good idea.
 
:)
I don't think it would be confusing.
 
12:31 AM
God I need a new computer.
 
Maybe a smaller calendar icon at the end of it?
You and me both. This thing I'm on, I built probably 6 years ago
And I think all I've updated on it since is the video and sound cards
And by "calendar icon" I mean that little calendar looking thing that you can tap on
You probably know what I mean but if not I'll find an example
And I'm going out for a smoke so I'll be away for a few minutes
 
I think I know what you mean.
 
TIL Mac's processors can run 2 threads synchronously so you have virtually double amount of cores
 
Nice.
 
I asked my son what kind of an app I should work on after I get this other piece of shit completed and he said a math learning game. How do you feel about that?
Something like that is what I was thinking
Except I'd probably have the month spelled out or abbreviated
 
12:45 AM
Hmm. So what happens if you click the edit text? Nothing?
Or do the edit text and the calendar open the dialog?
 
Yeah, both do the same thing
I'm not too proud of my design skillz so I would definitely recommend getting a second opinion on anything design related that I suggest. But I'll give you ideas anyway :P
 
Haha. Well, so far I've just got a list of edit texts down the screen haha. It's very bland. :(
But it's more consistent and not nearly as ugly as the release version
Too bland, right? I mean, bland is not a bad thing here. It's a checkbook. But I still want it to be visually appealing.
 
Maybe a little. Not sure how to improve it. Maybe icons along with each one?
I don't like the redundant "transaction" everywhere
 
Yeah I was thinking about taking that out.
Do icons eliminate the need for hints, though?
And there's no good icon for 'name' unless it's a person's name. :|
 
1:01 AM
Depending on what they are, they can replace the hint. Or just add a visual of what it is besides just text
 
Yeah. I guess both doesn't hurt.
 
Just a thought
 
I don't know, I can play with that. I should move forward with fixing the functionality, too.
 
You can also consider the fact that amount and date won't need to take up as much room as description and notes, typically
 
Yeah. I don't think description is often multi-line, though.
They changed the date picker again for M.
Gah.
 
1:04 AM
Probably not. I'm just saying, visually, you can allow more room for those two things
Those fuckers!
And why is that fucking button still all the way at the bottom??? That drives me nuts!
 
Eski told me too! D: I had moved it up!
Lemme find you an old screenshot of that and see what you think
 
Why did he tell you to?
I don't like them down there because it's too easy to accidentally hit the hardware buttons
 
Yeah, I agree.
I mean, with that part ha.
 
What don't you agree with???
 
Well, here's what I was thinking. With the transaction screen, I may have enough stuff to fill the whole screen, so the button should be at the bottom there, right?
So, with any other screen that has a button, it should also be at the bottom.
 
1:23 AM
I don't know. The way it is currently, there's plenty of room to not be all the way at the bottom, imo
 
1:38 AM
Yeah. But once I throw in those radio buttons and such
 
2:31 AM
Hello, folks
The first post is supposed to be "I have read the rules."
So there.
 
But have you compiled them into braincode?
 
Why is editable deprecated for edit texts but inputType="none" doesn't prevent typing?
 
Try enabled="false"
 
ooooh
good catch
Will it still be able to register clicks?
 
It's been so long since I did proper coding :'(
Not sure
I think it should
clickable is a separate parameter
 
2:38 AM
Nope, it didn't.
I'll have to figure something else out, probably tomorrow lol.
I'm gonna try updating my computer and see if that helps it run any faster ha
o/
 
Oh no, Raghav has been americanitized!
He's getting lazy!
Try clickable="false"
 
2:53 AM
o/ Good morning guys
 
3:26 AM
o/
Just did my friends homework assignment in Java in like 30 seconds lol. I mean, I didn't give him the code, but I was trying to understand it so I wrote it myself
 
3:38 AM
@codeMagic I have too many classes :(
I picked up an on campus dev job, though
So that'll hopefully make me code now and then
Sadly, it's all PHP
Also, buying alcohol is ridiculously easy here
 
Permanently Hellish Programming, right?
Haha, yeah.
 
They accepted a photoshopped version of my Indian license, which I printed out on my dorm printer and got laminated at a FedEx shop
 
LOL
I have not heard of it being that easy.
What is the legal drinking age in India?
 
The actual Indian license is like a credit card, with a chip and all on PVC. I photoshopped the chip out, changed the date, printed it on regular A4
25
 
Wow.
 
3:57 AM
o/
 
4:14 AM
Yo Shinobis
 
4:27 AM
Anyone going to HackGT?
 
 
1 hour later…
5:33 AM
@NakAndroidDev Please answer some questions and request again! 0 answers, and using chat mostly for help isn't something we do here
 
user457812
5:45 AM
in NSChat, 2 hours ago, by nil
https://dl.dropboxusercontent.com/u/31892/sitroom.JPG ← Photo from the office. 8mb, so don't download it on your phone.
 
user457812
Behold: picture. From work.
 
user457812
I'm bored and it's 10:45pm and I'm still in the office, so I'm reposting this thing.
 
5:57 AM
@nil beautiful site
 
6:32 AM
o/
@McAdam331 I'd remove the "Transaction" from the hints
 
Yeah I'm going to
 
date and maybe amount as a picker
got two upvotes today suspicious face
 
6:55 AM
I guess I should write my own expense manager app
 
good morning
 
o/ Eric
 
after 5 days (tue-sun) of vacation, i'm back.
 
how was your vacation?
 
good. spent 4 of those days in my home city doing almost nothing with my gf and went to the beach on saturday
we like to do nothing, that basically means watching series / movie online, walking around, or going out to drink.
95 followers on spotify playlist. the hell.
 
7:03 AM
:)
 
and now i have to battle with Oauth :(
 
I think that battle is worth it
Eric, also, did you already see meta.stackoverflow.com/q/303045/2367849 ?
 
ooh cool
 
if you post something please link so I can have a look (here's my answer if you're interested, feedback welcome)
 
you forgot to add a link
to the answer
;P
 
7:20 AM
Hey @netpork
 
7:32 AM
0
A: 10 Million Questions - Let's Share Some Stories That the Number Doesn't Convey

CptEricGetting involved in stackOverflow i started answering questions on stackOverflow this April, a few months after i got my first android job contract and started gaining experience, and, having used stackOverflow during my studies, i wanted to contribute and "give something in return". i still re...

@cygery there you go.
just saw your link is your title btw. cool answer.
 
\o
 
hi blackbelt
 
hi
 
o/
 
@TheLittleNaruto hey tln
 
7:46 AM
sup ?
Hey Lord Belt!
How was your vacation ?
 
thanks Eric
o/
 
dat feeling when you finish your api call implementation for oauth 2.0 (not hard, but dense to understand) , and you recieve a hangout message telling that " the client is rethinking how login should work "
and back to oauth 2.0 for now , last message didn't exist.
¬¬'
 
\0 morning
 
o/
 
8:08 AM
it was nice tln. how are you doing?
 
I am good.
 
8:56 AM
Right now, I'm at the point where, if I knew it could grant me with a better internet connection, I would kill some kittens. No second thoughts.
 
what's up with your connection?
 
did you ever use a 56k dialup ? Right now I feel like I'm using a 32k...
 
where the hell you are?
1998?
 
o/
 
hi ahmad
 
9:02 AM
Too many people on the same box + we are the farthest we can be from the "mainframe".
We should have been plugged to the fiber optics like 3 months ago
nevermind
 
no kitten can solve this. if it was my home internet, i'd already be shouting to the phone.
 
@nil thanks! I'll check that out :D
 
we did. but there's nothing they can do. 20+ people on the same box is too much and the distance cannot be shortened
 
i have 50mb ( async) via analog cable in my home
 
9:17 AM
20+ people is a lot
you should get a 2nd switch
 
LTE coverage?
 
10:04 AM
damn gov
now it's almost illegal to have solar panels. yay.
 
wat
 
well, the government had already prepared the low, but now it's live.
to produce your own energy, you must pay all the kw you produce + tax to the electrical companies
as a compensation
for not buying the energy from the energy market.
 
wtf
 
so spain now has a tax on the sun, apparently.
cool. </sarcasm>
 
whom do I have to pay if I produce my own shit?
 
10:15 AM
i don't know.
 
don't turn your bike into a generator or you have to pay, too
 
the law includes other sources of autonomous producing, like collecting rain water, or having wind mills
i don't know if compost / fertilizer is included cygery.
 
ridiculous
 
of course, it has nothing to do with our industry minister and our agriculture minister both being major actionists of the main european petrol and electricity companies
 
but not much better here in .de
paying for rain
 
10:18 AM
reading the news after vacation can produce cancer
"the country's main infraestructural companies, that are shared between public and private on 50%, change their legislation in order to not be responsible of their failures."
"the law has ben enacted to prevent the government from being responsible of the many failures in the Mecca high speed train, that won't be finished for it's deadline in early 2016. the reponsiblity will fall solely on the supervisors of the project, wich have no decision power on how it's being driven".
(translated from local newspaper in catalan).
-___-
ignorance ins happiness
 
10:49 AM
@TheLittleNaruto I am recompiling openssl used in the project since playstore is angry about the version
 
haha Alright
 
haha Awesome
lol that ending song!
Hilarious!
 
12:20 PM
o/
oh God I hate SQL
 
\o
sql is easy
if you only do easy stuff
 
UPDATE [table] SET [x=x+1] WHERE [three fields match] IF @@ROWCOUNT=0 INSERT INTO [table] ([5 comma-separated columns]) VALUES ([5 comma-separated values])
and I'm not even sure whether it'll compile
 
the problem with submodules
git pull origin master; git submodule foreach git pull origin master;
;_;
tedious
 
1:03 PM
o/
 
o/
 
\o
 
I finally got a great answer badge. woo hoo
And it was on one of my possibly worst answers. Go figure
 
it's always like that
the lazy answers get the most up votes as well
eyo @raghav how's college?
everything ready for pennapps? :D
 
@Ahmad SQL is never hard ;P
@cygery Nice! TL;DR is there a solution? I haven't had the problem occur again.
 
1:12 PM
no official so far
 
My "goodest" answer is basically a copy-paste from the documentation...
 
some say that booting into safe mode helps
cM, OcuS, I guess you already saw this: meta.stackoverflow.com/questions/303045/… ?
 
yeah, thanks. I gave an answer and somehow got 4 downvotes
 
now you got -5! Mouhahahaha!
 
:P
Shit...you weren't kidding!
Why is that answer so "bad"?
 
1:21 PM
no idea
 
I didn't even read it.
 
me either
 
lol
 
oh, you guys are sweet
 
1:34 PM
o/
 
o/
 
Anyone have experience with python and flask?
 
I do
more experience with python than with flask. But I am actually just finishing up the first stage of a project that is built with flask.
 
May I ask you a question?
 
you may
 
1:38 PM
How would you suggest receiving image as JSON POST request and storing them?
base64?
 
I've never dealt with images image upload via flask before
 
damn
 
personally I'd probably lean toward storing the actual image file though rather than some textual representation of the data that makes up the image
I've done it that way before with Django
 
I'm kinda making a private API with flask
 
1:54 PM
Quick check: @@ROWCOUNT is valid SQL, right?
@McAdam331 aka sql-is-never-hard, mind helping me out? :p
 
2:11 PM
I think some of the different SQL environments have slightly different commands dont they?
 
I suppose so
 
so you'd prolly need to specify what you are using
 
Android (SQLite)
and I need to get number of rows last query selected/changed/affected in any way
 
Error: unrecognized token: "@"
 
Hive SQL/MSSQL give no errors
hm, okay, so what's the right way? If there's any
I'm trying to do IF EXISTS [...] UPDATE [...] ELSE INSERT[...], blogs.msdn.com/b/miah/archive/2008/02/17/…
but in 'one pass' instead of two when it's not necessary
 
2:16 PM
18
Q: SQLite - getting number of rows in a database

Ilya SuzdalnitskiI want to get a number of rows in my table using max(id). When it returns NULL - if there are no rows in the table - I want to return 0. And when there are rows I want to return max(id) + 1. My rows are being numbered from 0 and autoincreased. Here is my statement: SELECT CASE WHEN MAX(id) != ...

 
and that's why i loved oracle sql. it had a update or insert command smoewhere
woah. citroen c4 cactus down to 12.000€ only.
wish i could.
 
hm, so COALESCE executes the first one and if it fails the second one?
Thanks, I'll give it a shot
 
2:31 PM
@micnyk denied for low A:Q ratio and honestly, many of your answers seem...bad. Work on giving more detailed answers instead of links
 
@Luke I've never seen that, but it might be valid.
If you're making a query using SQLite in Android, you're dealing with Cursors, yes? The row count would just be cursor.getCount(), too.
For select, you can use cursor.getCount() to see rows selected. For updates and deletes, the SQLiteDatabase.delete() and .update() functions return integers representing the number of rows affected. Docs here.
 
Yeah, but that's two queries
 
well, one to select row, one to change it or create it
and I just want to increment a number
 
2:36 PM
My query (which doesn't work) would attempt to update the row and store how many rows it updated (in practice that's max 1) to @@ROWCOUNT, so I can just see did it update or not by checking that number
 
That might be what you need.
There's also updateWithOnConflict.
Wait.
I don't follow what you're trying to do at all.
You want to know if a row in your table has ever been updated?
Or how many times that row has ever been updated?
 
@@ROWCOUNT accounts just for the previous query
ok, I'll start from the beginning
 
How complicated is this? Do you want to start a separate room?
 
nah, idea is actually quite simple
 
okay shoot
 
2:39 PM
If there is an entry with specified ID (not _ID), I want to increment a number stored in a column (counter); else I want to insert that row to the db and initialize that number to 1
 
Is the specified ID unique?
 
yeah
well, specified id is in two columns actually, because it's 16bit number
 
Oh? You can't do that with one column?
Can you use a trigger to accomplish this?
 
16byte*
whoops
 
2:43 PM
when a row is inserted, default counter column to 1. When a row is updated, increment counter column?
 
yes
well, increment or decrement
 
So why not use a trigger?
 
ok, I tried to simplify a bit; it's not always incrementing, nor there is only one counter
it could've been easier if I implemented it properly in the first place
the whole data model
now it's just a mess and I'm trying to glue things together
 
It's super easy to implement in MySQL but I'm not sure the best way to do this in Android.
Can you build an SQLFiddle (there's an SQLite option) with your schema and a few sample rows and maybe once I see it visually I can give better suggestions?
@Eenvincible That's cool.
 
How are you Adam
 
2:52 PM
Tired. Not enough sleep last night. You?
 
I know I need a vacation, that is what I want
 
Why?
 
I am tired??
That is why Noob
 
I find it kinda weird that people travel when they're tired
2
I sleep when I'm tired
 
2:55 PM
How long can you sleep?
 
Morning
 
@McAdam http://sqlfiddle.com/#!5/d268c/1
And I have 4 methods which increment/decrement each of the counters
morning
 
Average of 7 hours
Morning Mauker
 
android logging with facebook latest sdk using login button, how to clear access token, so that it ask for credentials everytime, instead of directly logging in?
 
Luke, which one is your counter?
 
2:57 PM
may anyone help regarding this?
 
@AnubianNoob So true hahahaha. Traveling makes me more tired. I'd rather sleep, then I can travel :p And I have to leave a few spare days to sleep after the trip.
 
Or does that not have the counter column?
 
I have done this before
DroidWorm
 
okay, thats great, how?
 
I love travelling, so I'm always at peak energy going into a trip haha
 
2:58 PM
Give me a few minutes to see my code
 
maybe this one is better: sqlfiddle.com/#!5/fbebe/1
 
Okay. So when should counter 1 increment and when should counter 2 increment?
 

« first day (1780 days earlier)      last day (3183 days later) »