« first day (879 days earlier)      last day (1277 days later) » 

4:14 PM
He got back to me asking for few details
 
4:33 PM
Whats the best way to sort a dictionary by Key. I do not want a sorted array of keys, I want a sorted dictionary
 
user457812
Dictionaries are not ordered.
 
user457812
Use an array if you need it sorted.
 
Morning
Nil what time is it
 
user457812
Where?
 
where you are
 
user457812
4:38 PM
Where am I that the time matters?
 
yes
 
user457812
That's not a yes or no question.
 
is it 8:39, 11:39, or 2:39
 
its 16:39
 
it is a yes or no question now
 
user457812
4:39 PM
None of the above.
 
Are you in the US
 
user457812
Yes.
 
well then what time zone are you in!
is it like 10
 
user457812
I don't know.
 
10:40
 
user457812
4:40 PM
It's 10:40 AM here in Minneapolis. I don't know what time zone that is.
 
I hate time zones
I got C class today
 
user457812
Airport wi-fi just died. Great.
 
My teacher wants me to take pictures of my compiler and editor... so a picture of Xcode and Terminal?
 
@nil you are right, that makes it more difficult. I need to sort a plist based on a value in the following format root (dict) > category(dict) > categoryname (localized string)
but then sort the second levels, the categories
 
user457812
Ask your teacher if you're confused.
 
4:45 PM
I am confused:P
 
my teacher?
 
user457812
It's 10:40 AM here in Minneapolis. I don't know what time zone that is.
 
user457812
Oh, now it sends.
 
We were supposed to set everything up, and so if you have like windows you have to install Linux, but since i have a Mac I do not so I'm like, a picture of TextEdit and Terminal? but then someone in class said use Xcode and I'm like, i guess that works too
 
user457812
vim and CLI clang.
 
user457812
4:46 PM
vim and CLI clang.
 
user457812
CLI clang is actually a little annoying because it assumes you have or know the gcc(1) CLI options, but OS X doesn't come with either gcc nor the gcc(1) manpage.
 
oh, nope Xcode does not build them unless its in a project
 
user457812
Step 1) man clang, step 2) use whatever plaintext text editor or IDE you want.
 
user457812
Step 0) ask teacher for clarification
 
Well i did it, just its like why images? its just going to be blank windows because he hasn't said to do anything else
and there are 40 students in the class, so he wants to see 80 blank windows?:P
 
user457812
4:53 PM
Who cares. Do what he said and deal with it. He's not a programmer, he's probably a mathematician.
 
user457812
Most people teaching intro CS classes are not software engineers.
 
he taught my Java class which to the school is above this class
 
user457812
C classes are usually considered not-really-CS and more like "intro the CS as an idea"
 
Well that sucks
I should have skipped this class as well!
I will skip them all
I think I'm overthinking the first home working making it hard
 
user457812
5:10 PM
Now on plane.
 
where are you going?
Don't fly here!
Fly to Enrico
 
user457812
I'm going home.
 
Why are you not home right now?
 
user457812
Because I was at Magfest.
 
whats that
 
user457812
5:16 PM
I'm not Google.
 
but you went so you should know
Music and gaming?
Sounds like vacation
 
user457812
That's kind of the idea.
 
user457812
Turning on airplane mode now.
 
5:33 PM
anyone know how to sort an array based on a object inside of it ? I have an array of Dictionaries, I want to sort the main array based on a value in the dictionary?
 
6:27 PM
StuartM: sortedArrayUsingComparator
 
got it, im using NSSortDescriptor
shame i cannot overwrite a bundle plist file
 
yeah that works to
too
 
I have to write to documents then copy back over, its only as a one off thing
I have to sort a long list once for a plist file
 
Stuart and Epaga, you guys use CoreData before or NSOperation?
 
yeah
 
6:29 PM
Have you worked with online databases or like getting online images
 
more or less, yeah. what's your question?
 
Well I'm working on a movie app
So i need images, for like cast images and movie artwork
So whats the best way to do this in CoreData+fast?
NSOperation allows backgrounding, but what do i do? Do I keep a image attribute, or a transform with a class that can fetch the images in the background and then assign them or have a singleton and then fetch the images in the background and then add it after or what
Basically, whats the easiest, safest, cleanest way to fetch online images without blocking the main thread and makes sense to use in the app to show these
 
i've used that before and it was awesome
 
Is it usable with Core Data though?:P
I also like doing things myself, and the app is in Swift
 
You could take a look at the internals of how they fetch the image and cache it
and instead of caching it, stick it into core data
you're going to want to use dispatch_async to fetch the images
 
6:35 PM
well what I already do is I fetch them (blocking the main thread) before I insert it into the core data stack, i save the images into the documents
 
yeah you definitely do not want to block the main thread for network activity
 
So that was my plan probably, like have a images folder in documents and profile images folder...
 
yeah that makes sense, or use a temporary file or something
 
but right now, its done from 1 view controller, well if someone has SUPER slow internet they can't stay in this view controller forever
 
unless you need it as a file in addition to core data or something
 
6:36 PM
So thats why I want to know about NSOperations, I know a small bit but not enough right now
 
but you want to use dispatch_async to do it asynchronously
 
So I want the movie to instantly be added, but then after movies are downloaded then display them
 
always worth a read, pretty much everything is in there :)
 
I attach the image name and thats it
I think Swift returns an optional for UIImage so i can check if the image is there yet and display another image
I want everything to be efficient
But then comes the question, do i use a singleton or what?
there will probably be more than 1 place to add a "movie" from, and so ill need something where i pass in the movie object I created so once the image is done i can add it or idk... lol
i guess i can just have a method, pass in the URL and then since i only attach the image name it would be fast
 
regardless, never ever do network stuff in the main thread
 
6:39 PM
I know:P
 
always dispatch it asynchronously, then dispatch back into the main thread when it returns
don't think you need an nsoperation for something simple like that
sorry, gotta run!
 
its fairly easy to write yourself too, rather than using SDWebImage
its useful to know what happens, and you could always write it in swift
 
BTW if anyone wants to earn my +300 bounty -> stackoverflow.com/questions/22370431/…
 
I know RayW had a tutorial on it before, possibly thats converted to swift too
 
Ya, I followed it but didnt use core data and idk. just didnt like their tutorial:P
 
6:43 PM
fair enough
 
I know i make my own class and put it in the main I guess to have the operation
but also theirs was downloading images while scrolling:P I don't need the images before then, they should be downloading/downloaded already when the user goes to see them
the menu where I get the info and add the core data object doesn't show any images so ya
 
It's not totally clear from the documentation, but I'm 99% positive that NSFileWrapper will memory-map everything.
2
Q: Does NSFileWrapper load everything into memory?

LukeLets say I have an NSFileWrapper directory. This directory is made up of several levels of directories and files. Some of the files are large. Are all these files loaded into memory, or are they lazily loaded? If they are loaded into memory, are there any alternatives to NSFileWrapper with simil...

is there another way you could do it @Epaga - possibly have multiple UIDocuments instead
in the above question Luke also mentions his own wrapper LSFileWrapper which does not load it all into mem
 
Yeah I saw LSFileWrapper, it is possible that it might help but it crashes when the document is saved
because of a concurrent modification somewhere
 
oi
 
yo
 
6:49 PM
was ist los?
 
7:02 PM
hello
 
7:30 PM
is strange Im trying to do a Where using Core-Data and works but gives the wrong result
WHERE room = 1 AND user_sender = 5
and returns the last result.. :/
 
back
 
Solve the issue
 
7:48 PM
which
you can't make use of SQL queries in core data predicates
@eddwinpaz
 
8:08 PM
I used (table == %@) and (table2== %@)
and it worked like I expected
 
hey Gudiya
how are things?
 
8:25 PM
downloading working with dispatch_async
Although it doesn't reload the table cell but I think thats because I haven't added that on the fetch controller
 
are you reloading the table?
sometimes it does not take effect if you dont reload the table.
 
I wasn't, and no reason to update the table. I just update the cell, it reloads now.
I just need a better look without a image:P looks terrible until the image displays
Figuring out how to check for the property sucked, the internet had nothing and its pretty simple, but i didnt know how before without crashing the app
 
to update the cell you need to do it with blocks
 
Had to check primitiveValueForKey because it returns a optional.. thats one thing that sucks about Swift, if its not an optional, then it has to be there, and if its not, theres really no way to check
Ok it all works. My internet isn't that good, but it runs and image displays once it gets it so its working great that means!
And I can add movies without posters or posters that take longer... Couldn't add "The Avengers" before and now I can
 
8:41 PM
lol
 
So its all good.. Im very happy with it. Im very excited for this app
Now most of my issues are design:P Need to find the best design for this app for saying you watched or need to watch X movie
my current way is... meh.. I thought i liked it but its not great enough
 
@rage Hello. Whats up
I'm doing good.
 
:)
good then
I'm jobless atm, but I'm sure I'll get a new contract soon
now I'm playing with Unity3D again
how is your job working out for you?
has moving to the US turned out as you expected?
 
8:57 PM
Yes
I bought a new car
4
I move around in that
 
wow :)
our little girl is growing up :)
 
When I bought car, they gave me a very high APR of 10%. Today some other company got back to me for refinancing it at 3%. So it's a good news.
 
yeah, credit ratings, health insurance, mortgage, very grown up things :)
have you found a new husband yet?
or none that would pass your scrutiny
 
For next few years finding Green Card is my priority :)
 
the two may come together
 
9:00 PM
lol
 
some friends just won the green card lottery
they applied 8 years ago
 
yes it takes a lot of time
 
but you, I'm sure there are plenty of candidates who'd marry you
but I also know that you set the bar very high
 
I got more info today about the Steve Jobs movie
for those who didnt know, i may be in the new Steve Jobs movie in the background:P
 
:)
I sincerely hope that won't be your lifetime achievement
I need to restart
see ya later
 
9:06 PM
see you'
 
back
 
@Maximilian I'll watch it just for this then
 
congrats Gudiya
 
LMFAO
You probably won't see me much
They could add me, and then have a blurry background only focusing on the actors
Or maybe its a clip inside  and I'm sitting at a desk pretending to program for the camera and you see me for 2 seconds
 
Which car you have, rage?
 
9:13 PM
Ferrari
 
PT Cooper
 
I live in London, I don't own a car
it's perfectly pointless here
 
He owns a moped
 
nope, I do not own any vehicles whatsoever
unless a pair of rollerblades count
I use public transport which is far superior to using a car around these parts
with insurance, road tax and other costs it's cheaper for me to rent a car whenever I really need one
say we want to go down to Cornwall, I rent a car for 3 days for around £40 petrol included
when I need to take my equipment to a new client's offices I get a cab
I spend about £500 tops on cabs and car hire
if I owned one insurance alone would set me back £120 each month
but I lived in the US, so I am well aware you are as good as dead without a car over there
in fact I got my driver's licence in the US
back int the days...
 
9 mins ago, by Maximilian
Or maybe its a clip inside  and I'm sitting at a desk pretending to program for the camera and you see me for 2 seconds
Lol WTF xD @Maximilian
 
9:25 PM
Im in the movie
I wouldn't be doing anything real, its just a background thing
movies need people else its just the main actors. If theres a scene of Apple well people would find the movie strange if its just 2 actors being Steve and Woz
 
Car is a necessity here
US people have become slaves of cars
 
You are right Gudiya
Forget the car, walk to California
 
Visual Studio takes a long time to install :p
 
why do you even need that?
 
He's making me a GUI in visual basic
So I can track IP addresses
 
9:39 PM
Because I work with .NET lol
 
GUI on what system?
.NET is dead, did no-one tell you? :)
 
I'm not an iOS dev anymore ;)
Not exclusively anyway
 
that's coming from me, learning C#...
 
Bahahaha .NET is dead. While we are playing opposite day let me also state that Japan has now become the world's #1 economy
 
9:40 PM
sup! @Gudiya
 
Not sure if you'd caught the reference
Breaking: Japan inches past the United States to become the worlds largest economy.
 
I'm the new owner of a big .NET repo :p
And now that I'm back with access to my windows machine I need to install VS Pro
 
they hired me last week for a short iOS contract
it turned out there was no iOS coding required as the whole thing needed to be done in Unity
funnier part of that project was when they demo'ed the UI to the client but they failed to use advanced gestures like pinch-to-zoom with their massive nails.
fashion industry players need a new invention: capacitive-touch compatible false nails
 
Oh gawwwd
 
they barely manage to do a single tap
 
9:45 PM
I remember when they came out with the soda can opener
Because people with long nails couldn't do it
 
Phone calls cut the wireless out again
Not sure why this keeps happening
 
there something seriously wrong with that network then
 
It's only wireless too.
If you're on Ethernet is's business as usual.
But I'm 99% using wireless, so it's becoming problematic
 
something is generating a 2.4GHz signal
 
The phone is wireless
 
9:51 PM
right
 
But the router should channel hop if it's occupied
 
how old is the phone?
 
Not that old
 
classic rf devices also used the 2.4GHz frequency
like rc cars, phones, some remotes, etc
 
It's 2.4ghz . . .
 
9:52 PM
can easily cause enough interference
and classic rf doesn't do channels
 
What do I do?
 
wifi does
channels being a very narrow frequency range
does the phone base station have a long wire?
 
What can I do though
 
at least a meter from the wall
unplug it
take it close to the window
grab the end of its cable
 
lol. .
 
9:54 PM
and fling it as hard as you can out the window
 
Maybe it's time to get Grandma a new phone
 
try repositioning the base station first
 
It's mounted to a wall
 
by half a metre every time
then try repositioning the wall
 
Yessir
 
9:56 PM
you can actually measure the interference with kismac I think
 
Doesn't work on Mavericks
 
you can also easily verify whether the cause of your interference is the phone base station
 
At least not the WEP thing
For security penn testing ofc
 
all microwave ovens operate at 2.4GHz
 
It's not the microwave
 
9:58 PM
the casing and the mesh on the door are designed to create a Faraday cage for 2.4GHz
so you don't fry
 
@eddwinpaz Sup
 
any rf device using the same frequency would not be able to transmit while inside a microwave oven
so if you put the base station inside the oven and close the door, give yourself a call and see if you lose wifi
 
I can assure you that is not the source of the problem
 
if you do, turn the oven on to 800W for about 2.5 minutes with the base station still inside
that should solve the problem
the only caveat of that method is that you need to use your mobile to call the fire department
 
Not going to happen
18 inches of snow tonight
Nobody's going anywhere soon
 
10:02 PM
I'm flying to New York on Thursday ><
 
burying the base station in deep snow also dampens the signal quite effectively
I am running out of ideas fast
you could also switch to 5GHz wifi
802.11ac
that would work
 
@Gudiya any Idea how to scroll properlly a tableview to the bottom???
your recipe from last time works but does not scroll down when new items with large content arrive
 
And I was offline again
******* phone.
 
who called?
 
My grandmother was making a call. She also gives her phone number out like crazy so now all these telemarketers and charities call the place 24x7
 
10:16 PM
Hello
 
how long would it take for her to realise what happened if you just quietly disconnected the phone?
you can just blame it on the snow
a pair of ethernet-over-power adaptors would also solve your problem
 
You mean disconnect the base station>
 
yep
"cut the hardline"
Matrix style
 
Well the cable dangles under the mounted base station so it would be pretty obvious
 
unplug it from the wall below
there are always two ends to a cable
(what a Confucian piece of wisdom)
 
10:21 PM
Maybe it would be better to get her a different phone.
Instead of sabotaging it.
 
just move her to a home
 
You're terrible
 
look I've given you at least 3 valid ideas and half a dozen invalid ones, you ought to find a solution
 
What can you do that requires no effort on my end?
 
get offline, read a book
 
10:23 PM
Requires effort
 
lay on your back and study the textural patterns on the ceiling
 
They're circular
 
shut your eyes and listen to this youtube.com/watch?v=bNqERBWaJeM
 
try to calculate on paper how much mass a black hole needs to gather in order to overcome its own gravity and explode
don't forget catering for the loss of mass via Hawking radiation
 
They don't explode..?
 
10:28 PM
oh yes they do
you are a result of that
 
lol
 
Don't you have it wrong. Don't stars overcome their own gravity and become black holes
Certain ones
Depending on their mass
schwartz field radius?
 
yes, but Hawking proved that black holes can overcome their gravity and explode again
I'm saying proved, I should say predicted
 
I thought gravity at the singularity was infinite or something
No wait, maybe that's mass
 
yes, and still
the very reasoning behind the big bang
 
10:31 PM
I thought they aren't sure how exactly it occured yet
 
since we still don't accept energy-to-matter conversion, all the matter had to come from somewhere, now if there was a centre of the big bang, then that centre had to contain all the mass in the universe
 
Or at least, there were several theories
Yes, I was about to get to that
If there was to be a big bang, and nothing before it. Then there must have only been a giant black hole.
 
@eddwinpaz scrollToRowAtIndexPath: method
 
Which contained all the mass in the Universe, in what I suppose you could say was some sort of cycle?
 
correct, so following that thought Hawking predicted there is a critical mass for even black holes beyond which the energy level exceeds the gravity and it explodes
 
10:33 PM
but does not scroll 100% bottom
 
Oh wait, 90cm of snow coming here.
90cm
FML
 
@eddwinpaz you could use the scrollView's scrollToOffset
 
dont get it...
Im using a Tableview
 
which is using a scrollview internally
check the superclass of UITableView
@Owatch another interesting thought is also the fact that light will orbit a black whole at the event horizon
 
That's cool
 
10:39 PM
above it, it will escape although may be bent, below it it falls into the black hole, hence the name, but exactly at the event horizon light will orbit
it's impossible to prove through experiment though :)
 
I see
 
but I simply think it must be true
 
Interesting considering photons have no mass
Or at least, they have to have no mass to travel at C
 
well, light is an interesting thing, because since Einstein we know that it behaves both like an energy wave and like matter as well
 
I've know that light is curved by black holes, and some gets absorbed.
But the idea that it can be drawn in like matter is odd
 
10:42 PM
then again, if you turn to quantum physics you'll realise there is no matter
ok, there are molecules, which are built out of atoms, which are built out of atomic particles, which are built out of quarks, which are built out of even smaller things, and at the end all matter is is some energy and a lot of space in between
 
Only thing that Quantum Physics introduced to me was the idea of light being discrete, packages or quanta, that carried certain amounts of energy. Hence it's quant-ified or something.
@rage Isn't that like saying there are no oceans because it's just water and salt?
 
not exactly
the pure fact that we can converse about it proves to me that we must be made of more than just quarks resonating in space in infinitely complex patterns
but that seems to be the truth at the same time
matter seems to be no matter at all, just flickers of energy
 
Well AFAIK you can convert between matter and energy
Unless that's just more evidence everything's energy in the end for you or something. .
 
well that's the thing
we weren't able to really define what energy (ripples of the electromagnetic space) or matter is
until we achieve full understanding we don't know shit
my favourite subject nowadays is thermodynamics and its implications to life on Earth
and with that thought I bid you farewell
I hope you survive the snow
don't kill Grandma and beware of the bears
 

« first day (879 days earlier)      last day (1277 days later) »