« first day (3321 days earlier)      last day (1619 days later) » 

8:04 PM
Ok heres my next issue
If limit is 1, I need to get the offset value to find a specific message in the following query::
SELECT *
FROM chat_message_join
         INNER JOIN message ON chat_message_join.message_id = message.ROWID
WHERE chat_message_join.chat_id = ${this.chat.ROWID}
ORDER BY message.date DESC
LIMIT 1 OFFSET <SOME_OFFSET>
So here is my query:
SELECT rownum
FROM (
         SELECT message.ROWID, ROW_NUMBER() OVER (ORDER BY message.ROWID) AS rownum
         FROM chat_message_join
                  INNER JOIN message ON chat_message_join.message_id = message.ROWID
         WHERE chat_message_join.chat_id = ${this.result.CHAT_ID}
         ORDER BY message.date DESC
     ) WHERE ROWID = ${this.result.MESSAGE_ID}
Does that make sense?
Oh, i see
it has to be order by message.date
ok disregard
I'm sorry i keep doing this. I seem to have an issue where i work on a problem for an hour and as soon as i ask the question i find the answer.
 
I just ignore your question for 5 minutes and then you self answer, all good ;)
Also I have no idea what limit x offset is, never had to use it
didn't have time to look it all up haha
 
selects the N items starting from Offset
 
That was my assumption, good to know
 
8:27 PM
In software engineering, rubber duck debugging is a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck. Many other terms exist for this technique, often involving different inanimate objects. Many programmers have had the experience of explaining a problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process of explaining the problem. In...
 
I just call it outsourcing to r15 nerds
5
 
@Graeme coolio thanks
 
u callin' me a duck, bro
Only my autocorrect is allowed to do that
 
8:42 PM
I can think of worse things we can call you
 
Rubber ducky, you're the one. You make bath time, so much fun! Rubby ducky I'm totally fond of yoooooou
 
:3
@Code-Apprentice do it, I promise I won't flag you
as long as it's not the n-word
hint: it rhymes with turd
not sure if you can tell, but I'm currently bored
 
LIES
 
NSamsungturd
 
9:08 PM
samsungBreaker
oh wait...that's a compliment
 
9:21 PM
can someone explain to me why we don't like samsung so I can get onboard with it
 
I knock on Samsung because they stole some code from my baseball card app which broke it from installing on Samsung devices
32
Q: INSTALL_FAILED_DUPLICATE_PERMISSION with Samsung Galaxy S8

Code-ApprenticeI am attempting to install my app on my new Samsung Galaxy S8 for the first time from Android Studio. When I do so, I get the following error message: Installation failed with message Failed to finalize session : INSTALL_FAILED_DUPLICATE_PERMISSION: Package bbct.android attempting to redeclar...

see my self-answer for an explanation about why I got the error
 
LOL
oh my good god hahahahah
 
God fucking damn it. Restarted my Mac and now something's auto installing, godamn "40 min remaining"
 
did you go back and edit the actual permission name to com.example in your old answer
(to avoid this happenign again)
it took me a minute to realize you did that, I was like "Hmm I don't see the bbct anywhere on here..." ahhh gotta check the edits
 
@ballBreaker yes
there was an ongoing conversation in R15 when I discovered this and was trying to solve it
apparently Reno works for Samsung or knows someone there and the permission was removed from the Bixby app
 
9:42 PM
lmao nice
that's convenient
That's actually pretty hilarious
such a random, stupid thing lmao
 
yah, tell me about it. I was blown away when I figured it all out
especially when I inspected the Samsung Bixby APK and found a permission with a name from my app.
and all the other permission names were "com.samsung.*"
 
Yeah I can only imagine the sheer confusion you must have had originally, and then the eureka moments unravelling themselves as you investigate loool
oh man hahahhaa
 
my boss was the one that thought of googling my permission name to find where else it appeared on the interwebs
I'm not sure if it is reassuring or frightening to learn that Samsung developers copy/paste from SO
 
reassuring because it means any one of us could work for them ;)
oh wait... no.. that is frightening
 
10:05 PM
so this is cool
The Scholomance (Romanian: Şolomanţă [ʃoloˈmantsə], Solomonărie [solomonəˈrie]) was a fabled school of black magic in Transylvania, which was run by the Devil, according to folkloric accounts. The school enrolled about ten students to become the Solomonari. Courses taught included the speech of animals and magic spells. One of the graduates was chosen by the Devil to be the Weathermaker and tasked with riding a dragon to control the weather. The school lay underground, and the students remained unexposed to sunlight for the seven-year duration of their study. The dragon (zmeu or balaur) was kept...
It's like Harry Potter but for Goths
 
Tim
yo
how do you run an emulator on windows with amd
 
you dont
 
Tim
bro it's 2019
 
right
actually ive seen the post there is something that might help you out
 
Tim
I don't want to hack stuff
I want to press a button and it works
 
10:12 PM
lol Tim
its android, ofc you have to hack it
there is official supportt
check this out
 
My display manager somehow disappeared
Guess I'll be nuking the laptop today and reinstalling everything
 
Tim
> This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed.
Please ensure Hyper-V is disabled in Windows Features
while the blog post explicitly says to enable it
 
it shouldnt, hyperv shouldnt require haxm
 
Tim
everything requires haxm
for fucks sake
it's easier to run an ios emulator on windows than an android emulator
 
10:23 PM
I don't
 
Tim
10:35 PM
ok restart fixed it
now the avd just won't start
 
That doesn't seem very fixed
 
Tim
the new banners look ugly af
 
10:55 PM
@Tim have you tried restarting?
 
Tim
yes
 
have you tried purchasing a new computer?
 
Finding a less broken field than mobile app dev would also likely work
 
Tim
boss: tim we will promote you to senior if you can just quickly run this app on a amd pc
tim:
 
It's a trap
There is no promotion
Now that they've set an impossible condition, they've capped their expenses on you forever
 
Tim
10:58 PM
true story
similar to how adam got promoted so he would be traveling to conferences instead of ruining the codebase
 
Any good cryptographic security policy within a company Adam works at budgets and plans for making sure Adam isn't around
 
11:13 PM
@Tim maybe add more info to that question, other logs etc
7
Q: Emulator: Process finished with exit code -1073741819 (0xC0000005)

Sufian AwadI'm using android studio 3.0.1, when I start my emulator I get many error messages, I've tried to solve each problem separately, I also searched a lot but nothing works for me. 12:24 م Emulator: init: Could not find wglGetExtensionsStringARB! 12:24 م Emulator: OpenGL backend 'angle' without Ope...

 
11:39 PM
I have acquired coffee
 
Alright my app works!
Yayyyyy
 
No.
 

« first day (3321 days earlier)      last day (1619 days later) »