« first day (1246 days earlier)      last day (2737 days later) » 

10:00
productsValue[indexPath.row]["productImage"]
how would i get ref to this in the Firebase database
how would i get the ref of it in storage
like if i need to update this product image parent objcet
You mean like name? like e.g Catch White, Catch Brown?
yes, a reference to it
so that i can call set value
FIRStorage.storage().reference().child("(productImageref!).png").downloadURLWit‌​hCompletion({(url, error)in
like this
thats the only way
10:03
this is for storage
ooh
you want database ref?
I have no reference for images in database.. All images are in storage.. If you scroll up in SnusProductTableViewController.swift up there is the reference for products in database
you have reference for image in db
productImageref
this is your ref
All images are in Storage not in db
10:07
images are in storage
but the actual link of them and naming you have in your database
nope.. For example if you go to firebase storage you have this:
I use the Download URL at the bottom right
and where do you add the download url
i would suggest making a new firebase app with a single ref so that i can explain you what you need to do :/
I can make new one if you want
10:12
yup
add only one brand name
and show me the json
Firebase says that people shouldn't link images inside JSON
you know that right?
@Shubhank morning, good good bhot good
@TarvoMäesepp whole image you mean or just the name ?
JSON shouldn't contain even the image urls
should
10:22
If image urls are in JSON then it is unhuman to get the images or insert them :D
You know, If I put all image url-s into every product inside JSON it would take hundreds of years again :D It is easier to just give the image same name as Product inside JSON and then get it
not sure
You just mean that I should add image url of every product inside JSON? for example "imageUrl":"https://..."
and take the urls from within Firebase Storage?
nope
download the image using the completion block
        FIRStorage.storage().reference().child("\(productImageref!).png").downloadURLWithCompletion({(url, error)in
store the url in the firebase database
10:31
But I am doing it right now
next time when app is offline
get the url from the database isntead of storage
and then download the image using kingfisher
it will work fine
So what should I do now then? First step?
because I am doing it right now with the completion block
I am not just storing the url
yes, you are not just stroring the url in database
that is why i wanted you to get the ref
how I can get it then
make a new proj
so that i can explain
10:34
Done
!!meow
@Rajat see
nothing required to be done :p
@TarvoMäesepp now make a firebase object in it
simple and show it to me
good
!!grrrrrr
!!meow
10:35
@Rajat That didn't make much sense. Use the !!/help command to learn more.
!!/help
@Rajat Information on interacting with me can be found at this page
!!/listcommands
@Rajat help, afk, ban, convert, define, die, doge, eval, forget, google, hang, imdb, info, jquery, learn, listcommands, listen, live, mdn, meme, moustache, msdn, mustache, nudge, refresh, spec, stat, stats, summon, tell, unban, undo, unonebox, unsummon, urban, weather, welcome, wiki, xkcd, youtube, zalgo, !, !!, $.baby, (4337654<<1)+1, (y), /somecommand, 2020/07/23, 3, 666, :3, :p, </pissing>, ?, @arifnoumankhan, @capricasix, @franciscomelicias, @gurpreetkaur, @tim, ^, ^5, abesnacking, abhi
abhishekpornfreak, acronym, adhd, ah, ahah, algosmarts, aliens, all, am, angryticks, answer_to_everyt
10:37
!!/fuddu
ಊ(╰◣▂ ◢╯)Ψ
@Rajat You are a lame person
lol
!!xkcd
10:38
!!xkcd
!!swag
@Shubhank
/greet @CapricaSix
10:38
hey @CapricaSix, may your day be full of compile errors, memory crashes and downvotes on stackoverflow.
its still big
ok, what caprica is doing here?
!!die
10:39
@Rajat I will shut up after 1 more invocations.
!!live
Can I kick her? :P
you guys are stupid ? :p
!!live
10:40
Is it still big? @Shubhank
@TarvoMäesepp yes
lol
Wtf, it can't be more minimal
!!imdb
we are trying commands
10:41
nope, you are being stupid
good job :p
!!live
lol
now its dead
!!fuddu
@TarvoMäesepp remove brands from it
remove Snuses from it
keep only the inner part in the external json
10:42
@Shubhank hey, what are you doing?
work
and helping him
nope, I mean, what you suggesting to Tarvo
Done, now it contains nothing
nothingg
he will explain to you later on
Only snuspedia:
null
10:43
@TarvoMäesepp now add some basic data, not your snuspedia,, just maybe a user dict
in the root of the json
@DimaRostopira we are trying to get the cache work :D
@Shubhank wake her up
ok, so why you cutting out db? I mean, you better to cut of storage
who told you to call die
/hangman
10:44
 +---+
 |   |
 |
 |
 |
_+_
- - i - -
 +---+
 |   |
 |   O
 |
 |
_+_
- - i - -
 +---+
 |   |
 |  \O/
 |
 |
_+_
- - i - -
10:44
Hangman hint : concentrate or i will
 +---+
 |   |
 |  \O/
 |
 |
_+_
t - i - -
lol
make Name lowercase :D
@TarvoMäesepp yup much better
make a new project
and get the name in it
10:45
Wtf :D :D
let ref = FIRDatabase.database().reference().child("Name").queryOrderedByKey()
you can get it like this
-_-
you make a project
why do you need query?
if you want help, follow what i say
or otherwise you can help yourself
@Shubhank your phuppi
Wtf, I make new project with fucking tableview, firebase etc?
10:47
yup
getting
java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
while reading inputstream
have nt worked on tcpSockets
can someone help with this
on which line
is.read(result);
 +---+
 |   |
 |  \O/
 |
 |
_+_
t r i - -
10:54
line :18
/hint
Hangman hint : concentrate or i will
 +---+
 |   |
 |  \O/
 |   |
 |
_+_
t r i - -
 +---+
 |   |
 |  \O/
 |   |
 |
_+_
t r i c -
10:55
/hang k
 +---+
 |   |
 |  \O/
 |   |
 |
_+_
t r i c k
Success. Your boss is watching you play
dammit -_-
 +---+
 |   |
 |
 |
 |
_+_
p - - - - - - - -
/hang protected
10:56
 +---+
 |   |
 |
 |
 |
_+_
p r o t e c t e d
Success. Work or Nightfury will be furious!
@Shubhank I got the name John what now
 +---+
 |   |
 |
 |
 |
_+_
- - - - - - - g -
 +---+
 |   |
 |
 |
 |
_+_
- - - e - - - g e
10:57
@GurpreetKaur its definitely exception, you dont have anything written in catch block
@TarvoMäesepp upload to the github
i did... the exception is
java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
whose server is this from
maybe it does reset the socket lol
you mean it resets at server end

« first day (1246 days earlier)      last day (2737 days later) »