« first day (3313 days earlier)      last day (1641 days later) » 
06:00 - 21:0021:00 - 00:00

9:00 PM
man I'm really struggling to figure out how this database is generating contraint keys lol
I'm trying to follow the same format that the other tables have, and all of them are like:
	DOC_TYP_ENABLED SMALLINT DEFAULT 1 NOT NULL,
	CONSTRAINT SQL170515162400690 PRIMARY KEY (table_key)
)@
CREATE UNIQUE INDEX SQL170515162400620 ON db.table (table_key)@
that SQL########## I have nooooo idea how that's being generated and I've tried making the table a few different ways to see if it just happens automatically somewhere
 
what is your database system?
 
DB2 :\
 
hi peeps
 
XD
 
yay IBM...
hahaha
 
9:03 PM
anyone familiar with any API which provides images of a specific/given location i.e. town/country
UK specifically
 
@MehdiB. DBA is offline too so I can't ask him :(
 
maybe some queries generated by Forms or some drag/drop tool?
 
ahh haven't tried any sort of drag drop, maybe there's a query builder sort of thing like that in here
 
@Nero yes.
 
does google search have a wildcard character that anyone is aware of
as in I would like to search for CONSTRAINT SQL170515162400690 but obviously that doesn't resolve to any real results - so trying something similar to like CONSTRAINT SQL%
Just for posterity, seems like the closest I can find is Constraint "SQL*"
 
Using DB2 unfortuantely
Found this though which is pointing me in somewhat of a direction
0
Q: Drop DB2 constraint using SQL

Chamila WijayarathnaI have a DB2 database called 'test' and I have created a table there using following query. CREATE TABLE IDP_PROVISIONING_ENTITY ( ID INTEGER NOT NULL, PROVISIONING_CONFIG_ID INTEGER NOT NULL, ENTITY_TYPE VARCHAR(255) NOT NULL, ENTITY_LOCAL_USERSTORE VARCHAR(255) ...

 
that was just so you know what to look for :D
 
Looks like they come from a SYS table
From this is looks like it should be auto generating them which it doesn't seem to be doing for me
Maybe I'm being too specific in my table creation
Ahhhh nice, yeah that was the case
Looks like if you don't even use the constraint keyword, it will auto generate, but if you use the constraint keyword it expects a manual name
 
👍👍👍
 
9:25 PM
I'm not the biggest fan of DB2 lol
 
what lol I love DBZ
 
T_T
gah just spent 5 minutes looking up what the Z stands for in dragon ball z
Figured the japanese title of Doragon Bōru Zetto would give me some clues
but Zetto is 'Z' in Japanese
back to database stuff
 
DataBaZe
3
 
user11867329
Yo
 
user11867329
Fix this, people
 
9:31 PM
@TimCastelijns nice
what do you mean "people"
le offende
 
user11867329
 
user11867329
Why in poo-perfect hell does it switchs line
 
How do i handle errors that should never happen?
is it ok to just tell the user an error happened and thats it
 
throw new shouldntHappenException (Exception e){
//TODO
}
 
but if i throw an error server side the entire app crashes
 
9:36 PM
that's a joke don't do that
 
oh
 
It depends on the error
to be honest
 
user11867329
@ballBreaker lel
 
But yeah in general you could just do a classic "Contact your system administrator for more information" and just log the error, but don't actually do anything aboutit
 
The dilemma is that it is possible to happen but really should never happen unless someone is deliberately trying to create an error
 
user11867329
9:37 PM
Jesus how hard can it be to stick a friggin menu toggle to be ALWAYS on top right
 
user11867329
regardless of overflow
 
so do i need to check it? Or just assume it will never happen.
 
I think the best approach is to always assume it will happen
users are great at breaking things
 
Check for it even if it's really hard to reproduce
 
@ballBreaker alright i guess i will just do this
 
9:39 PM
you could just have a catch for the error, but nothing really happens other than logging
that way you at least have some visibility on it but if it's basically NEVER going to happen then no harm no foul
There are more responsible coders in here though that might have a different approach
 
cheers Carl, but I was referring to an API?
 
Have you checked if trover has it's own API
Also have you tried googling it because the literal first result is this developers.google.com/places/web-service/photos
 
@JGrindal welcome! please start by reading the rules of the room room-15.github.io
 
@MehdiB. I have read and understand the rules.
 
I was searching all over programmableweb than I missed out the basic locations
cheers for that
 
9:47 PM
@JGrindal thanks and welcome
 
I'm new to Android dev, but having a ton of fun with it. Just started getting into some of the async stuff and it's bending my brain a bit.
 
@Nero there aren't free APIs that just give you geo-based photos
Trover has a back-end API that I used when I worked there
your question was whether anyone knew of one - I know of one, I used it in the Trover app.
if you have specific questions about implementing one maybe I could answer them
 
there are number of towns in the UK of which I require an image of
I assumed it's a generic request; therefore, someone may have come across a public API to achieve the same
I think this should be enough to satisfy my requirements
 
@Nero no worries man :)
Hopefully that does the trick
 
10:06 PM
What's the movie series that stars Jim Halpbert?
Something Ryan I think
 
uhhh it's two first names
John Ryan? Jack Ryan?
 
I know but I can't think of the first
Not Jack, I tried that. John doesn't seem right
 
I think it's Jack Ryan
really??
yeah it's Jack Ryan
 
Are Button's, TextField's, and Spinner's are thread safe on Android?
 
meaning?
 
10:08 PM
I'll be honest, I've purposefully avoided that show because it's Jim Halpbert.. I think because I kind of can't take him seriously
So if you do watch it, let me know what you think!
 
Is it OK for a thread or request queue within the App to directly access UI controls. Like, a background thread which makes a network request can access the UI components directly when it gets a result from the network request
 
Damn. I swear I saw it advertised on Sling but now it doesn't exist
That's the same reason I've been hesitant but I was about to give it a try
 
@ballBreaker I liked season 1, season 2 is like hot garbage.
 
No, that's not ok to do
Plenty of SO posts about that though
 
I think it's Amazon Prime IIRC
 
10:10 PM
Oh, it's a series? I thought they were movies
 
OK, I'll dig in a little more. Thanks.
No, it's an Amazon Prime specialty series.
 
@JGrindal no, the UI should only be touched by the UI thread, so when you're done with your background thread, you switch back to the UI thread to update the UI components
 
hmmm, somehow you're right about it being amazon
 
the trick is to keep spawning new threads without ever releasing old ones
 
@MehdiB. GOTCHA, so the UI thread updates all the UI elements, the other threads of control do their background stuff and switch back. I got it. Thanks!
 
10:12 PM
bahaha I'm not going to read into that "somehow"
 
probably wise
 
;)
Heading out fellas, enjoy your evenings
 
JG, search "update UI from background thread" and you'll get a ton of hits
 
cya
 
o/
 
10:15 PM
@codeMagic winner. thanks.
 
de nada
 
OK, I have a main activity which runs on the UI thread that creates an android.os.Handler and passes it thread object. If I'm understanding this right, the new thread can't directly access the View, but it can post to the handler, and the handler would modify View objects, right?
 
Yay! I'm doing the things!
 
a view can only be touched by the thread that created it which is always the UI thread
 
 
1 hour later…
11:48 PM
@TimCastelijns what if it's not the UI thread?
 
06:00 - 21:0021:00 - 00:00

« first day (3313 days earlier)      last day (1641 days later) »