« first day (1139 days earlier)      last day (2844 days later) » 

8:00 AM
/cleanup
 
Please use gist.github.com to share code longer than 10 lines in chat
 
trashed itself
 
@Shubhank it says win is nil when I add win after filling win with NSWindow
+ win can't be a let, because it must be muteable
mutable*
 
oh yeah var
 
yup but yea
it says win is nil after I fill it
 
8:04 AM
which line says it is nil
 
self.view.window?.addChildWindow(win, ordered: .Above);
 
can you update code in the gist ?
 
yea sec
done
 
/welcome jaideep
 
@jaideep welcome to the chat. Have a good day :)
 
8:07 AM
win? = NSWindow();
should be
win = NSWindow();
and you didnt used the initializer like last gist.. frame , depth etc
 
yeah i'll add that back in in a sec
it crashes on class AppleDelegate: NSObject, NSApplicationDelegate {
tjread 1 exc bad access..
thread*
 
i think window isnt properly initialized
 
good morning all
 
Hi! @RicardoAlves
 
@Shubhank nop that ain't it :/
updated gist
 
8:12 AM
win?
why the ?
 
@Shubhank how to convert this date into a string
May 2 2016 05:09:00
 
tried anything ?
 
    var dateFormatter = NSDateFormatter()
    dateFormatter.dateFormat = "hh:mm:ss"
    let date = dateFormatter.dateFromString(substring)!
 
my bad, it's not there in the actual program @Shubhank
 
8:14 AM
you need to add for the date too.. you added for the time only
try EEE d yyyy hh:mm:ss
 
ohh
i'll try
hang on
 
so is there a crash now exc_bad or nil error .. gerwin ?
 
crash exc_bad_access when trying to open the window
ah now it crashes
when I try to close it
same error
on class AppDelegate
 
can you add logs to the if and else
 
again nil
 
8:18 AM
func log(logMessage: String, functionName: String = __FUNCTION__) {
println("\(functionName): \(logMessage)")
} like this?
 
actually there are two spaces between month and date
 
no, simply like print(" in if condition. init win")
and one for else
 
ok 1 sec
alright it goes through the if
 
@Shubhank still nill
 
then calls hoi hey and bye which are in the else (full else statement)
and then crashes
 
8:22 AM
didnt catch that
paste the log here :P
@IrshadQureshi updated code please
 
you just wanted me to print something when it goes through the if and else statements no?
to see how far it would get?
 
console output: "sched_time" = "May 2 2016 05:04:00:000AM";
code: -
var ETD = repos[indexPath.section].depart_time!

let substring = ETD.substringToIndex(ETD.endIndex.advancedBy(-6))
print(substring)
var dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "EEE d yyyy HH:mm:ss"
let date = dateFormatter.dateFromString(substring)!
 
yup, and want to know the logs
@IrshadQureshi 05:04:00:000AM
you didnt told about that ending AM and stuff :/
 
i edited it actually
thats y
 
why
 
8:24 AM
@Shubhank this is v bad
 
okayy
lolll
 
Hello from Dylib
Hello from Dylib
hoi
in if condition. init win
in end inf condition end win
Hello from Dylib
hoi
hey
Bye
 
grrrr
 
:D
 
i only wanted the hours and minutes
 
8:25 AM
how is hey and bye present in second time.. not in first
 
hey and bye are in the else
hoi is just from calling U
 
120
Q: What is the best way to programatically detect porn images?

RajAkismet does an amazing job at detecting spam comments. But comments are not the only form of spam these days. What if I wanted something like akismet to automatically detect porn images on a social networking site which allows users to upload their pics, avatars, etc? There are already a few im...

 
hahahaaaa
 
8:26 AM
it now says
 
@IrshadQureshi wait 10 min , i will try my side
 
 
Hello from Dylib
Hello from Dylib
hoi
in if condition. init win
in end inf condition end win
Hello from Dylib
hoi
else! (window is not nil)
window closed!
window is now nil! @Shubhank
 
okay
i guess input to the function is too fast to process
 
8:30 AM
well
it apparantly crashes after closing
but not within the else or if
 
well
send the proj
 
ok second
 
/annoy ricardo
 
@ricardo, hi
Hi @ricardo
@ricardo, hi
Hi @ricardo
 
its wird that the bot has a girls name and pic XD
you rascal @Shubhank
 
8:31 AM
/g_whut
 
@Shubhank i've send the proj
 
you finally made it, the dream of every developer. you created you own girlfriend XD
3
 
yesssh
crashed :D
 
8:37 AM
lol
 
/wiki weird science movie
 
Weird Science is a 1985 American teen comic science fiction film written and directed by John Hughes and starring Anthony Michael Hall, Ilan Mitchell-Smith, and Kelly Le Brock. The film's producer, Joel Silver, acquired film rights to the pre-Comics Code Authority 1950s EC Comics magazine of the same name, from which the plot is developed as an expansion and modernization of the basic premise in Al Feldstein's story "Made of the Future" in the fifth issue. The title song was written and performed by American new wave band Oingo Boingo. As of 2013, a remake of Weird Science is in development at...
 
/hangman
 
 +---+
 |   |
 |
 |
 |
_+_
- - - - n - -
 
/hint
 
8:38 AM
Hangman hint : all of us
 
using your bot
 
/hang e
 
@Shubhank
;P
 
 +---+
 |   |
 |
 |
 |
_+_
- - - e n - -
 
1 cup ? :P
 
8:39 AM
/hang a
 
2 girls
;P
 
 +---+
 |   |
 |   O
 |
 |
_+_
- - - e n - -
 
/hang n
 
/hang i
 
 +---+
 |   |
 |   O
 |
 |
_+_
- - i e n - -
 
8:40 AM
@Shubhank im joking ;p i wont
/hang t
 
lol
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- - i e n - -
 
/hang science
 
 +---+
 |   |
 |  \O/
 |   |
 |
_+_
- - i e n - -
 
what could be causing the crash?
/hint
 
8:40 AM
Hangman hint : all of us
 
@Shubhank??
help
 
solving other issue first
wait wait
 
/suspend
 
@MZeinstra Affirmative, proceeding to standby.
 
lol
/awake
 
8:41 AM
@Shubhank Bot Awaken
 
its gerwin issue :D
 
/hang c
 
 +---+
 |   |
 |  \O/
 |   |
 |  / \
_+_
- - i e n - -
Game over.. The word is friends
 
thanks @Shubhank
 
8:42 AM
/stats
 
Messages Today : 192
Hangman games : 8
Most Correct letter found by : Gerwin (12 times) _ 2nd : M Zeinstra (9 times)
Most Incorrect letter by : M Zeinstra (6 times) _ 2nd : Irshad Qureshi (4 times)
 
/hang e
 
 +---+
 |   |
 |
 |
 |
_+_
- h - - - -
 
@Shubhank oki
 
/hind
/hint
 
8:43 AM
@SaadChaudhry Command not detected. Try /help to get list of commands.
Hangman hint : captain america
 
/hang a
 
 +---+
 |   |
 |   O
 |
 |
_+_
- h - - - -
 
 self.view.window?.removeChildWindow(win!)
            //win?.close();
i demand internet points now -_-
 
/hang sheild
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- h - - - -
 
8:45 AM
/hang e
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- h - e - -
 
lol is that it?
 
/hang i
 
shield spelling :p
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- h i e - -
 
8:46 AM
yup
/hang s
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
s h i e - -
 
/hang l
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
s h i e l -
 
/hand g
 
@SaadChaudhry Command not detected. Try /help to get list of commands.
 
8:46 AM
lol
 
lol
/hang d
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
s h i e l d
Success. According to Lara.. 'You should get back to work'
 
@Shubhank adding that still gives me an error ;/
 
does not to mee
show the gist
 
8:48 AM
4 mins ago, by Shubhank
 self.view.window?.removeChildWindow(win!)
            //win?.close();
i commented something :/
 
ah oops
yup that works
're the mvp
you
legend :)
 
internet pointss
 
yeah lol but it's a bit weird as to why it does that
 
no time to explainn
:p
/annoy amira
 
@amira, hi
Hi @amira
 
8:50 AM
@IrshadQureshi yo
 
@amira, hi
Hi @amira
 
@Shubhank yo yo
 
tell the code
 
still stuck
ok
 
code
/annoy dipak
 
8:51 AM
still stuck
wait
 
@dipak, hi
 
var ETD = repos[indexPath.section].depart_time!

let substring = ETD.substringToIndex(ETD.endIndex.advancedBy(-6))
print(substring)
var dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "EEE d yyyy hh:mm:ss:ZZZa"
let date = dateFormatter.dateFromString(ETD)!
 
Hi @dipak
@dipak, hi
Hi @dipak
 
outup: "depart_time" = "May 2 2016 05:20:00:000AM";
 
Hi @Kamini
 
8:52 AM
Gerwin back to work :P
 
/hello
 
hi :)
 
Hi
 
there are 2 spaces between month and date in the output @Shubhank
 
print(substring)
give me output of it
/shoot stefan
 
8:54 AM
@stefan 🔫🔫🔫🔫🔫🔫
 
May 2 2016 05:05:00
after that
fatal error: unexpectedly found nil while unwrapping an Optional value
on this line
let date = dateFormatter.dateFromString(ETD)!
 
wait
 
i tried to give substring first and after you gave the date format i tried to put the real value in it but of no use
 

« first day (1139 days earlier)      last day (2844 days later) »