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

08:00
/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
08:04
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 :)
08:07
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
08:12
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
08:14
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
08:18
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
08:22
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
08:24
@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
i only wanted the hours and minutes
08:25
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
08:26
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
08:30
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
08:31
/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
08:37
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 - -
08:38
Hangman hint : all of us
using your bot
@Shubhank
;P
 +---+
 |   |
 |
 |
 |
_+_
- - - e n - -
1 cup ? :P
08:39
/hang a
2 girls
;P
 +---+
 |   |
 |   O
 |
 |
_+_
- - - e n - -
/hang i
 +---+
 |   |
 |   O
 |
 |
_+_
- - i e n - -
08:40
@Shubhank im joking ;p i wont
/hang t
 +---+
 |   |
 |  \O/
 |
 |
_+_
- - i e n - -
/hang science
 +---+
 |   |
 |  \O/
 |   |
 |
_+_
- - i e n - -
what could be causing the crash?
/hint
08:40
Hangman hint : all of us
@Shubhank??
help
solving other issue first
wait wait
/suspend
@MZeinstra Affirmative, proceeding to standby.
lol
/awake
08:41
@Shubhank Bot Awaken
its gerwin issue :D
 +---+
 |   |
 |  \O/
 |   |
 |  / \
_+_
- - i e n - -
Game over.. The word is friends
thanks @Shubhank
08:42
/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)
 +---+
 |   |
 |
 |
 |
_+_
- h - - - -
@Shubhank oki
/hind
/hint
08:43
@SaadChaudhry Command not detected. Try /help to get list of commands.
Hangman hint : captain america
 +---+
 |   |
 |   O
 |
 |
_+_
- h - - - -
 self.view.window?.removeChildWindow(win!)
            //win?.close();
i demand internet points now -_-
/hang sheild
 +---+
 |   |
 |  \O/
 |
 |
_+_
- h - - - -
08:45
/hang e
 +---+
 |   |
 |  \O/
 |
 |
_+_
- h - e - -
lol is that it?
shield spelling :p
 +---+
 |   |
 |  \O/
 |
 |
_+_
- h i e - -
08:46
yup
/hang s
 +---+
 |   |
 |  \O/
 |
 |
_+_
s h i e - -
 +---+
 |   |
 |  \O/
 |
 |
_+_
s h i e l -
@SaadChaudhry Command not detected. Try /help to get list of commands.
08:46
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
08:48
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
08:50
@IrshadQureshi yo
@amira, hi
Hi @amira
@Shubhank yo yo
tell the code
still stuck
ok
code
/annoy dipak
08:51
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
08:52
Gerwin back to work :P
/hello
hi :)
there are 2 spaces between month and date in the output @Shubhank
print(substring)
give me output of it
/shoot stefan
08:54
@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) »