« first day (1255 days earlier)      last day (901 days later) » 

3:14 AM
Just posted a question... would appreciate thoughts/answers/upvotes :D
0
Q: Handling heavy deletions/insertions in Core Data

mattsvenI'm dealing with a scenario where there are objects which, were they to be deleted, would cause an exponential amount of deletions through cascade-delete relationships. In this way, deleting 20 of these objects can result in ~3,000 objects ultimately being deleted. This can cause for very slow sa...

 
 
9 hours later…
11:53 AM
Up bumped
 
Thanks
I asked Drew McCormick on twitter if he had any suggestions and he actually responded to my question :o
 
12:31 PM
Do not know that name.
 
If you look up anything related to iOS/OS X and syncing, you will
 
I see.
I got up this morning, wandered over to the C room, and got so immensely irritated I wrote a solution for someones question just out of spite.
 
lol
What was the problem?
 
User: "... any help for this program will be appreciated"
Other user reply: "Yours is a mysterious conundrum indeed ...
I am not certain that your rhetoric is computable in occidental climes :)
Gifting employees in any program, would surely be stopped by an anti-virus."
 
:):)
 
12:35 PM
I've never been so annoyed in my life within the chatrooms.
Actually, its more of a culmination of this guy every day, all day doing this.
 
why is he even there, then? :P
 
Look, I don't know.
But it's all buzzwords and literal nonsense. Let me get more from this morning.
Another sample exchange:
Him: "Oh I have rather a "panchant" for your wonderful culture. ...
I am studying jyotish"
Other user: "Wow. Thats nice. Although I don't believe in those kind of stuff, but its rather fascinating to hear sometimes"
Him: "I perceive it as quantum physics...
No belief one simply needs to study it."
Screw it, just have the C room transcripts: chat.stackoverflow.com/rooms/54304/c
 
1:35 PM
I've forgotten how delightful iTunes is to use.
 
2:31 PM
@Owatch He sounds incredibly annoying
pretentious
 
 
1 hour later…
3:55 PM
@mattsven He is. And he won't ever stop. I can't ask anyone a question without 10 minutes worth of banter.
 
4:08 PM
Being ill is rubbish
that is all
 
goes back to being ill
 
you ill too ?
 
BBC's even reporting on Aleppo today.
Matt gave it to your friend.
 
@Dev2rights no
You know you're looking up some obscure problems/stuff when your google results come up with 0 useful information
 
You can try using Google's search keywords to help.
 
4:18 PM
?
 
Like for a specific error, googling "Specific error" in quotes should pull up results with exactly those keywords.
Well, not a keyword, more like a way to format searches.
 
yeah i know
 
But I'm proud of you. You're the very forefront of Core Data and cloud synchronization right now.
 
:(
@Dev2rights question: say you have two files - one is in the documents folder (user added), and the other is somewhere else.
 
I'll only have to ask you in the future!
 
4:20 PM
...
I'll try, lol
When the file that is somewhere else is deleted, I want to delete the one that is in the documents folder too, not depending on file name.
How would you go about this?
My thoughts are: 1. compare hashes, but for a large amount of files this has overhead 2. comparing file system ids, but that means I have to store the id somewhere, bleh
 
i would put it in the database / store to form a strict relationship. So when you delete one file it looks up its sibling file and deletes that too
storing the URI to each of the files too so you can quickly look it up and delete it
 
Yeah, that's what I thought. But, the user has access to the Documents folder. So they could change the filename, but not the file.
 
yeah then you would do an update on that record in the db / store
so make a wrapper class that does CRUD on files
then you would go MyFileWrapper.deleteFile("filename") and it wold go delete it
 
but then that means i have to do file tracking
 
it is very easy to write that
 
4:26 PM
It is?
 
also store an updated at and deleted at filed in the record against each file s you can work otu if one has gone out of sync
in production they should never
but will make it easy to debug if something goes wrong
yeah
1 ModelObject 4 Predicates and 1 tidy Class
bish bash bosh
Bobs your uncle and fanny is a rude word in some countries
 
Right, but if the user changes the file name through iTunes, I'm asking how would I know, in order to update the record
(this isn't my specific problem, though)
 
Oh right that is a different issue
without soemthing liek git tracking changes by all programs/users you can't know if something like that has changed
unless you have some insane machine learning algorithm that can predict every humans reaction to changing files
 
Yeah there is a way, basically keeping track of the structure of the files directory, system ids, file name, modificaiton dates
 
but by that point we would all be dead because ..... terminator
 
4:30 PM
It can tell when a file has changed/renamed/is new
it's not my work though, open source class
 
Where is the system id kept for a file?
 
in OS X/iOS it's in the file attributes
Might be a unix thing
not sure
 
ok well you learn something new everyday
 
anyway, I think I'm just going to switch to a lazier implementation for deleting the file accompanying a record, based on file size and file name
 
well in that case do exactly the same thing with the DB as above storing system id's as long as they are unique and never change
 
4:31 PM
Lighter. rather than hashing
 
that is a suicidle approach
 
lol why
 
do it the right way :p
because what if you delete a load of files that you were not supposed to
you will piss off users
also debugging that would be more pain than it is worth
the edge cases would be hell
again in a day you can get it workign right
 
4:59 PM
blurgh
I could also be lazy and just not delete the accompanying file
leave it up to users
 
Do it the right way though ....
:p
right caught up on this project time to sleep under the duvet
good luck
 
5:14 PM
thanks
 
 
1 hour later…
6:35 PM
@rage long time man hows it going ?
 
 
4 hours later…
10:21 PM
You know what's neat, sticking escape sequences within markdown, like so:
**bold*\**
You'd think it shouldn't bold that, but of course the parser doesn't know better. Try it on reddit.
 
*bold**
neat
 
The bold trick doesn't work here for me.
But it does with reddit!
 
What's the expected behavior, and what's the bug?
 
Well you'd expect that given you don't technically have two consecutive asterisks in a row the markdown would break.
 
Break how?
 
10:25 PM
But it doesn't, because they've got a continue statement within their parser, like mine does, which means it just skips anything following an escape sequence.
So *\** means it finds one star, skips the next, finds the second star, "thinks" it has two asterisks in a row, and then bolds the text.
Depends on what you consider a bug I guess. If a bug means you're bolding stuff inserted between the formatting text, then yeah, it's kind of a bug.
 
@Owatch mind helping me?
 
With what?
 
Someone actually named their movie "Pride and Prejudice and Zombies"?
 
There's a book
 
10:34 PM
lol yes
Its great
 
Too many conjunctions for me...
 
This is why I need your help Owatch lol
 
First line, disaster:
"I’ve been hearing great reviews about this film for the past few weeks and I have to say are not wrong"
You have to say what 'are not wrong?
that are not wrong?
 
they aren't wrong that it is good
 
10:36 PM
they are not wrong?
 
They say its good, they did not lie
 
also... try a comma
 
Yeah, but read the line, you're missing a word.
 
lol probably
 
and I have to say [they] are not wrong
Or
 
10:37 PM
btw, include a brief intro to the movie. a light description, before you jump into likes and dislikes
 
"that I have to say are not wrong".
Think you just forgot that.
 
"I have been hearing great reviews about this film for the past few weeks from various people, and I have to say they were not wrong"
@mattsven I've been told :P
 
Yes!
 
But I don't think someone who hasn't heard of the movie be finding my review? I dunno
 
were not = weren't, would make it a bit smoother.
 
10:39 PM
Would "This movie was thoroughly entertaining and fun throughout" be better "This movie was thoroughly entertaining, and fun throughout"
 
Definitely.
 
should throughout be removed because I included thoroughly?
 
Also: "The tone was perfect, and played entirely seriously which was hilarious", maybe you can explain what you mean a bit more here? Since I'm not so clear, which means others likely won't be.
 
:P I someday might have to hire Owatch as my editor
Ok... I'll edit that
 
You can hire Nil, he is qualified.
 
10:40 PM
Oh yeah, I forgot he has an english degree
 
Nilliet.
Like, Elliot, but for Nil. heh.
Whatever. Moving on.
"They are not merely just slow walking ghouls
merely = just in this context. Why say it twice?
 
Because I suck at english lol
I think you are better at explaining issues better than my teachers were
they should hire you
I edited the tone sentence, is it better?
 
It's like saying: "They are not only just slow walking ghouls", if you see the problem better there.
Oh well. Let me refresh and check.
 
LMFAO, I opened the dictionary on merely and just comes up. I'm terrible haha
 
The dark and serious tone of the film was played perfectly which contrasted with the ridiculous premise of the film which created great humor. That one is a little awkward
 
10:44 PM
"The dark and serious tone of the film was played perfectly which contrasted with the ridiculous premise of the film which created great humor" can be: "The dark and serious tone of the film contrasted perfectly with its ridiculous premise, creating great humor".
 
@mattsven I'm aiming for awkward and uncomfortable
Is it working?
edited
The dislikes section I expect some issues, I didn't know how to explain it perfectly
But like in some of the action scenes, you could tell the sword was just pushed in between their arm and chest or even just off to the side. They hid it pretty well but you could tell it was fake, I don't think they ever showed a sword through a body at all
 
Maybe like this: "Swords and knives were poorly choreographed, and scenes felt more like dramatic swordplays than serious battles"
:o?
 
Do you choreograph objects or scenes?
not familiar with usage
 
Yes.
"the committee choreographs the movement of troops" as an example online.
 
So would it be valid to say "the committee choreographs the troops"?
 
10:58 PM
Eh.
 
lol
Sorry, I was getting starbucks
I am back.. Hmmm... maybe
 
Well, it's kind of a word related to "plan and control". So perhaps. I'm not that good.
 
We need to call in the master
phoning @nil
 
Some of the battles were good (like sword-to-sword combat) just a few of the zombie scenes you could kinda tell I though, but it was very minor. Maybe they had to reshoot it and didn't have much time, who knows
 
Don't worry Max, I think you can put that in there without anyone noticing.
 
11:00 PM
You mean swordfights
 
:>
Nevverrrrminnddd.
 
not notice what?:P
@mattsven sward fight
swerd fight
 
Not ask questions about the use of choreographed.
I think that line says everything you mean to say.
 
I think its more of a budget
they didn't have the money to CGI sword in the back effects
@mattsven Mac corrects swordfights to sword fights
@Owatch check again, I think I made it better?
Owatch left :O
 
user457812
11:17 PM
The correct word is "coleslaw"
 
user457812
Matt will understand.
 
11:41 PM
Yes, I was showering.
Anyone want to guess what I smell like, according to my body wash?
Power!
 
user457812
I use a bar of soap.
 
user457812
I don't think it has a scent.
 
ash*
 
11:57 PM
Showers are illegal
 
Well, I live in an environmentally stable country.
 
user457812
Kind of weird that people still think it's weird that I use vim
 
I don't happen to choose to live on a fault line in a desert.
 

« first day (1255 days earlier)      last day (901 days later) »