« first day (1451 days earlier)      last day (2532 days later) » 
04:00 - 12:0012:00 - 19:00

4:09 AM
Good morning
 
4:23 AM
good morning
 
Good Morning People :)
 
ved
4:49 AM
good morning Developers
 
Good Morning
Anyone iOS ?
 
ved
0
Q: PJSIP iOS video call

vedI want to implement video call using pjsip but unable to integrate the same. Audio call is working fine at my end. Could you please guide me how to implement video call in iOS version? Any clue would be highly appreciated.

 
gm all
@ved kaisan baa :D
 
ved
@ChaudharyAmar kaise ho bhai
 
zakas :)
 
ved
5:00 AM
Ohk
 
aap bata ooo
happy holi 2 all
 
ved
sab badhiya..
 
Good morning all :)
 
hi,, i want to implement APNS. do we require server side api configuration for it like in gcm ?
@BoominadhaPrakashM @NightFury @Shubhank
 
5:10 AM
yes provide pem file to configure server side
@Dhruv I am not much experienced iOS dev
Aoa @Erum
 
Was
@Shubhank clicking on myCurrentlocation button in map ..... how can i show user that map is searching your current location because you recently turn on your location from settings ?
 
@Dory GCM is outdated.. You can Use either APNS push notifications or FCM.
I don't have idea about FCM, because I haven't worked. But having knowledge in APNS.
 
APNS for FCM ? ;o
 
@NightFury No worries.. Do you get code coverage ?
 
nopes sorry
 
5:12 AM
@NightFury sorry.. APNS or FCM.. typo :D
 
:p
 
@BoominadhaPrakashM FCM achaa.. let me try APNS first.. havent work before..
 
@NightFury Thats fine :D
 
@Dory Okay :)
 
@BoominadhaPrakashM do we require server side changes / api
 
5:14 AM
@BoominadhaPrakashM You know ?
@Dory Is it for iOS ?
 
yes ios swift @Dhruv
 
And which backend ?
 
@Dory Dory for android push notifications, FCM is used. While for iOS, APNS
 
@Dhruv backend is php
@NightFury okayy :D
 
FCM can be configured from console... A key is generated which you provide to backend
 
5:15 AM
Exactly, then for php, there a code where they can add that apple gateway url
You just need to provide iOS Push pem file
to your backend and device token
 
unquie key of device i also need to provide to php backend right?
 
while in APNS, you generate a "push notification certificate" just like you create normal certificate. Then follow some steps to create pem file
 
pem file how to give
 
you generate p12 file , and convert it to pem
 
163
Q: Generate .pem file Used to setup Apple PUSH Notification

Harsh ParikhI tried and tried to generate .pem file , every time generating certificates from client's account and then generating .pem file using terminal, but its of no use. i followed many links for the same. please help me if any one have any idea about how to generate .pem or have any link that gives a ...

follow steps in the answer
 
5:17 AM
okayy i have to like give file while coding time right.. not runtime ?
 
ji
 
okayy...
 
file you give it before they need to setup it along with backend code.
And while coding, you just need to send the device token.
 
and what API change is require.. so i will send pem file and runtime i will give device token.. that's it form client side
and server side they will need to configure apple url..
 
yeah.
gist: Apple Push Notification APNS PHP Snippet - Server Side Implementation, 2014-10-20 12:23:48Z
<?php 

$deviceToken = '6e1326c0e4758b54332fab3b3cb2f9ed92e2cd332e9ba8182f49027054b64d29'; //  iPad 5s Gold prod
$passphrase = '';
$message = 'Hello Push Notification';
$ctx = stream_context_create();
stream_context_set_option($ctx, 'ssl', 'local_cert', 'pushcert.pem'); // Pem file to generated // openssl pkcs12 -in pushcert.p12 -out pushcert.pem -nodes -clcerts // .p12 private key generated from Apple Developer Account
stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
$fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); // production
// $fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); // developement

  echo "<p>Connection Open</p>";
    if(!$fp){
        echo "<p>Failed to connect!<br />Error Number: " . $err . " <br />Code: " . $errstrn . "</p>";
        return;
    } else {
        echo "<p>Sending notification!</p>";    
    }


$body['aps'] = array('alert' => $message,'sound' => 'default','extra1'=>'10','extra2'=>'value');
$payload = json_encode($body);
$msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;
//var_dump($msg)
$result = fwrite($fp, $msg, strlen($msg));
  if (!$result)
            echo '<p>Message not delivered ' . PHP_EOL . '!</p>';
        else
            echo '<p>Message successfully delivered ' . PHP_EOL . '!</p>';
fclose($fp);
?>
 
5:19 AM
@Dhruv what issue
@Dory Yes
 
somewhat like this would be the code for php backend.
 
okayy @Dhruv thanks..
 
@BoominadhaPrakashM Code coverage related. I mean i get on around 12% of code covered.
 
@Dhruv means..
 
@Dhruv are there any other rules of payload n thing
thats actually backend concern..still asking
 
5:21 AM
@Dory refer this to generate pem files stackoverflow.com/a/25372065/5710152
 
yeah. I guess 4kb of payload size is valid
if your payload goes over, the push won't happen.
So go step wise @Dory
 
@Dhruv okayy...
i will need to explain backend person :/
 
Yeah, you can give that gist. And they must know how to execute that php file :P
To send push notification
 
:P yeahhh
 
@Dhruv sorry, I don't know the context. It will be great if you explained briefly again.
 
5:25 AM
thanks :D @Dhruv @BoominadhaPrakashM @NightFury
 
user3295818
func tabBarController(tabBarController: UITabBarController, shouldSelectViewController viewController: UIViewController) -> Bool
{
print(self.tabBarController?.selectedIndex)
}

If I click tabbar index 1 or tabbar index always it shows 0. How to find Tabbar item index in shouldSelectViewController.
 
@BoominadhaPrakashM Yeah, so when we execute test cases, it checks what all code has been covered in our class. Like it'll validate our code and all.
So, checking all, it comes really less at 12%
 
/punch @Shubhank
 
kick
 
:|
 
5:29 AM
/annoy @Dory
 
@Shubhank welcome to the chat. Have a good day :). Please make sure to go through the room F.A.Q.
@Dory You are stupid
@Dory Arent you stupid
S2pid is @Dory
Just joking you suckk too @Dory
 
one last ques, do we need to save device token on server side db ? @Shubhank @Dhruv @BoominadhaPrakashM
 
@Dory welcome to the chat. Have a good day :). Please make sure to go through the room F.A.Q.
 
office me full volume me balam pichkari chal rha :/
/punch @Dory
 
Command not detected. Try /help to get list of commands.
 
5:30 AM
:/
 
@Dory Yes, you've to save it , and then backend guys will fetch from db when they need to send notification
 
@Shubhank areee waahh kyaa baat hai :D
 
@Kamini haha
 
@Dhruv (。♥‿♥。)(。♥‿♥。)
 
/learn punch ─=≡Σ(([ ⊐•̀⌂•́]⊐ #
 
5:31 AM
@Shubhank Command punch learned
 
/punch @Dory
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Dory
 
@Shubhank aur maaroo
@Dhruv okay,,, backend guy will eat up my head :P :P
 
haha, you start with generating pem and all.
and give them that gist to have a look
 
he should not eat infected and useless things
 
5:33 AM
lol :D :D
 
/punch @Shubhank
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Shubhank
 
who is BA
 
he is new animal :P
 
@Shubhank Do you do code coverage and unit testing ?
 
5:40 AM
did a bit unit testing
dont know code coverage
 
@Shubhank
 
Good morning !
 
yo erum
how ar eyouuu
khaana khaa k jaana
 
heheh
 
hi all
 
5:45 AM
@Dory Yes... definitely. Otherwise how can they trigger the notification from back end
@Dhruv Sorry. Test cases.. No idea.. I haven't explored it yet
 
@Shubhank @BoominadhaPrakashM No worries. :D
 
user3295818
30 mins ago, by raghunath
func tabBarController(tabBarController: UITabBarController, shouldSelectViewController viewController: UIViewController) -> Bool
{
print(self.tabBarController?.selectedIndex)
}

If I click tabbar index 1 or tabbar index always it shows 0. How to find Tabbar item index in shouldSelectViewController.
 
user3295818
@Shubhank
 
6:10 AM
yes
selected index in shouldSelect will always be previous selected one
use after a delay or in didSelect method
 
6:27 AM
hello every one
i have a one question in android
 
what is it
/rule6
 
> Please use a non-generic display image if you intend to hang around in the chat. The plain simple SO avatars for profile is boring and confusing when 10 of you are talking in the room.
 
/punch @Shubhank waahh nice rule
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Shubhank waahh nice rule
 
mine avatar is so unquie :D :P
 
6:41 AM
where is your other eye
 
which eye
 
in pic
 
there is ree...
i can see it
 
@Shubhank how u used this ?? com.github.lsjwzh.RecyclerViewPager:lib:v1.1.2
i m getting error in AS
failed to resolve com.github.lsjwzh.RecyclerViewPager:lib:v1.1.2
 
might have to use maven or jitpack ingradle sources
 
6:51 AM
but dependencies are also there ?
but why its not working can u pls try ?
 
one min
 
let myData = NSData(data: request.value!)
let buffer = Array(UnsafeBufferPointer(start: UnsafePointer<CUnsignedChar>(myData.bytes), count: myData.length))

==> I'm new to swift...I'm running instrument tool for memory leaks...I found array leak "_ContiguousArrayStorage<String>"...Its leading to above part of the code...can anyone help me out?...Anything wrong with above code?
 
using core foundation is always risky due to leaks
do you release the buffer later on ?
 
No...I'm not releasing..u cannot make the buffer nil right?
we can only remove all the objects from teh array
 
i guess that code might not have all the issues
check the further code
 
7:03 AM
1
Q: Memory leak _ContiguousArrayStorage?

Master StrokeI'm new to swift.I'm running instrument tool for memory leaks.I found a leak "_ContiguousArrayStorage<String>"(Please find the screen shot) Its leading to below part of the code(Please find the screen shot). let myData = NSData(data: request.value!) let buffer = Array(UnsafeBu...

I have uploaded the screenshots as well
 
@Shubhank Hi Buddy, How are You?
 
A likely cause is a retain loop in one of your completion handlers. But it could be a bug in AF or in Cocoa (Cocoa has a number of internal leaks). It's important to keep perspective on this. You're leaking 208 bytes per upload. After 40 uploads you've leaked 8k. How many uploads do you expect before you're terminated? If it's less than several thousand, I would chalk this up to unfortunate and focus on other issues. As a rough rule, if you don't expect a to ever reach 1MB over the life of the program, it's not worth spending extensive time on. You probably won't be able to fix it anyway. — Rob Napier Apr 16 '16 at 14:50
 
gist: 144be463b46adba881906caa54351988, 2017-03-10 07:06:02Z
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    dexOptions {
        javaMaxHeapSize "4g"
    }
    defaultConfig {
        applicationId "com.xeline.levelapp"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    //

    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'me.relex:circleindicator:1.2.2@aar'
    compile 'com.github.lsjwzh.RecyclerViewPager:lib:v1.1.2'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.google.android.gms:play-services:10.0.1'
    testCompile 'junit:junit:4.12'
}
2erum
@Erum
 
i m using this compileSdkVersion 25
buildToolsVersion "25.0.2"
and also compile 'com.android.support:recyclerview-v7:25.2.0'
for someother fragment recyclerview
@RituNagpal
 
that is no issue erum
use the pager view lib and jitpack i think
 
7:08 AM
jitpack ??
@Shubhank
 
read the gradle :/
 
check this
http://stackoverflow.com/questions/30039199/why-is-there-a-memory-leak-at-string-creation-in-swift
trying \(variable) leads to leaks .
 
@Shubhank for viewpager i have to create dynamic fragments
if i got 20 data from server then ?
 
?
 
because sometimes list contain 20 or more items from api ... then will i create 20 fragments at runtime ?
 
7:16 AM
@Erum didnot get
 
because sometimes list contain 20 or more items from api ... then will i create 20 fragments at runtime ? @Shubhank
@RituNagpal this is not working on my side i m failed to handle
so trying for viewpager and dynamic fragments ?
any tutorial ?
 
will see after some time
try asking nightfury or others
 
in my cordova twitter plugin call activity

this.callbackContext = callbackContext;
Intent intent = new Intent(cordova.getActivity(), TwitterLoginActivity.class);
cordova.setActivityResultCallback(this);
cordova.getActivity().startActivityForResult(intent, 1);
return true;

in activity class call twitterlogin method using twitter4jcore jar



requestToken = twitter.getOAuthRequestToken(TWITTER_CALLBACK_URL);
this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(requestToken.getAuthenticationURL())));
 
/cleanup
 
Please use gist.github.com to share code longer than 10 lines in chat
 
7:25 AM
oops
room is dead
 
m der
:P
/hangman
 
 +---+
 |   |
 |
 |
 |
_+_
- - - - - - - - l l - -
 
/hang v
 
 +---+
 |   |
 |   O
 |
 |
_+_
- - - - - - - - l l - -
 
trashy room is dead
 
7:30 AM
/hang e
 
 +---+
 |   |
 |   O
 |
 |
_+_
- - - e - - - e l l - -
 
/hang o
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- - - e - - - e l l - -
 
/hint
 
Hangman hint : space
 
7:31 AM
tumse na hoga
 
/stats
 
Hangman games : 1
Most Correct letter found by : Dory (1 times)
Most Incorrect letter by : Dory (2 times)
 
yeh dekh le pehle
/punch @Shubhank
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Shubhank
 
:D
 
7:31 AM
/punch @Shubhank again
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Shubhank again
 
company change
 
new job ?
 
hmm
 
7:52 AM
AOA, HI @all
@Shubhank
 
8:13 AM
haan
 
Any android wearable ( 2.0 )device have wifi support?
Test with 2 china watch When I m using hardware.watch permission I m not able to run app in that device.
 
8:33 AM
/hang interstellar
 
oooooooooo
its dead
 
😕
 
hiii
 
8:57 AM
@Shubhank Any android wearable ( 2.0 )device have wifi support?
Test with 2 china watch When I m using hardware.watch permission I m not able to run app in that device.
 
9:08 AM
@NightFury @NitinGohel hii
 
9:25 AM
@Shubhank new job
 
user3295818
9:35 AM
@Shubhank how to convert my project into framework
 
@SaadChaudhry hmm
 
good (Y)
 
@SaadChaudhry hello
 
wassap
 
/punch @Shubhank hello :P
 
9:38 AM
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Shubhank hello :P
 
feeling sleepy :/
 
/punch @Dory yellow
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @Dory yellow
 
user3295818
@Shubhank how to convert my project into framework
 
i dont know
 
user3295818
9:40 AM
Any search idea
 
posted on March 10, 2017 by Johann

JSUStockChart is an open source Swift based library from BestSwift that allows you to easily create stock charts that work with auto layout and Storyboards. JSUStockChart can create bar candlestick and line charts to indicate price, and bar charts to indicate volume. The charts created with JSUStockChart are zoomable and scrollable using touch gestures. This […]

 
good morning
 
hi guys.i want to i want to load https page in webview even https error ocuur,i added some code like below to my webview public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {

handler.proceed();
}
i want to ensure that this work in all android device,hav you checked it already?
 
@Shubhank you knew about this? darksquaregames.com/…
 
i required it once
long time back
 
9:55 AM
right now I need to run 2 version of the app side by side to see them working
I've made some refactoring to the code and need to see if they work the same, so this is perfect
 
@me
@MehdiRostami google wont allow u to do so
U app will not be placed in play store due to security issue
 
it's no problem,i want to know that it will work in all devices
 
ya it will work u have to use handler.cancel(); also
see my code paste.ofcode.org/37XYAm7KAfhdPe2vv68VMrL for not receiving security issue from google
 
Please use gist.github.com to share code longer than 10 lines in chat
 
kamini is back =D
 
10:06 AM
ok ,thanks @Jagapathi
 
u r welcome @MehdiRostami handler works in all devices
 
/hangman
 
 +---+
 |   |
 |
 |
 |
_+_
- o - - - -
 
/hang e
 
 +---+
 |   |
 |
 |
 |
_+_
- o - - - e
 
10:08 AM
/hang i
 
 +---+
 |   |
 |
 |
 |
_+_
- o - i - e
 
/hang d
 
 +---+
 |   |
 |   O
 |
 |
_+_
- o - i - e
 
/hang j
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- o - i - e
 
10:08 AM
/hint
 
Command not detected. Try /help to get list of commands.
Hangman hint : stop right there.
 
/hang c
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- o - i c e
 
/hang police
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
p o l i c e
Success. Work or Nightfury will be furious!
 
10:09 AM
/punch @BoominadhaPrakashM
 
─=≡Σ(([ ⊐•̀⌂•́]⊐ @BoominadhaPrakashM
 
/hang dory
 
 +---+
 |   |
 |
 |
 |
_+_
- - - - - s - - -
 
/hang e
 
10:09 AM
 +---+
 |   |
 |   O
 |
 |
_+_
- - - - - s - - -
 
/hang o
 
 +---+
 |   |
 |   O
 |
 |
_+_
- - o - o s - o -
 
/hang c
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- - o - o s - o -
 
/hint
 
10:09 AM
Hangman hint : edit all your images
 
/hang photoshop
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
p h o t o s h o p
Success. You should get back to work
 
/hangman
 
 +---+
 |   |
 |
 |
 |
_+_
- a - - - - - -
 
/hang i
 
10:10 AM
 +---+
 |   |
 |   O
 |
 |
_+_
- a - - - - - -
 
/hang e
 
 +---+
 |   |
 |   O
 |
 |
_+_
- a - e - - - -
 
/hang o
 
 +---+
 |   |
 |   O
 |
 |
_+_
- a - e - o o -
 
/hang p
 
10:10 AM
 +---+
 |   |
 |  \O/
 |
 |
_+_
- a - e - o o -
 
/hint
 
Hangman hint : candy crush notif
 
/hang facebook
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
f a c e b o o k
Success. Work or Nightfury will be furious!
 
Hey folks
 
10:24 AM
yo
 
/hangman
 
 +---+
 |   |
 |
 |
 |
_+_
- o o -
 
/hang f
 
 +---+
 |   |
 |   O
 |
 |
_+_
- o o -
 
/hang k
 
10:26 AM
 +---+
 |   |
 |   O
 |
 |
_+_
- o o k
 
/hang b
 
 +---+
 |   |
 |  \O/
 |
 |
_+_
- o o k
 
/hint
 
Hangman hint : not stolen
 
@Shubhank @Dory
 
10:26 AM
/hang c
 
 +---+
 |   |
 |  \O/
 |   |
 |
_+_
- o o k
 
@Erum yes
/hang h
 
 +---+
 |   |
 |  \O/
 |   |
 |  / \
_+_
- o o k
Game over.. The word is took
 
how can i get value from viewpager selected position like i want to get selected position 0 .... object ?
 
@Shubhank what is this
/punch
 
10:27 AM
hurr
 
android ?
 
help erum
 
@Erum where is viewpager ?
 
10:30 AM
when you select particular page what you want ?
not able to understand
@Erum
 
if i select particular page i want to get that fragment data ??
 
10:46 AM
when u selected fragment, u want some fragment data into its container activity ?
 
yup
 
10:58 AM
when fragment is loaded,you can call interface method and pass data
 
11:14 AM
i m passing data using newInstance method of fragment is this wrong aproach @Dory @Shubhank
 
but my ques is, u want to pass data from activity to frag right then u use newInstance right..
@Erum
 
Hi all
 
yes
@Dory
at the same moment i pass data to newInstance for fragment creation and values
 
11:39 AM
@Erum newInstance is called when u create fragment, so you are passing data from activity to fragment, if you want to do either side from act to frag
you can create an interface
 
ok
 
link i sent,you can refer it
 
04:00 - 12:0012:00 - 19:00

« first day (1451 days earlier)      last day (2532 days later) »