Wednesday, May 16, 2012

Convert http live streaming to rtsp live streaming

How to covert http live streaming in to rtsp live streaming in online? I mean to convert without any software.





Detect Arabic language using Javascript?

How to detect Arabic language when typed in a Textbox using a Javascript??
Is there any way to do this.



I want to do a system where the system automatically detects the Arabic Language written in the textbox of the Webpage.





Monitoring scripts and sending email when it crashes

I have some perl scripts which are scheduled using task scheduler in windows 2003 R2 and 2008. These scripts are called directly using perl.exe or via a batch file.



Sometimes these scripts fails to execute (crashes maybe) and we are not aware of these crashes.



Are there any ways a mail can be sent when these script crashes? more or less like monitoring of these scripts



Thanks in advance



Karthik





How to get effected rows after update statement in mysql?

How to get effected rows after update statement in mysql.





APNS Openssl Connection from PHP for Apple Push Notification?

Finally i have sent a notification from my local server to my device. I followed this tutorial http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2 and many of the peoples from stack overflow helped me to reach this. I Thank you all my friends.



I have one doubt on the server setup. For my local use i have used MAMP for Apache and MySQL servers. Finally i open the ssl from Terminal used certificate.pem and key.pem. Is there any way to open ssl from php script. But, i don't know any single script of php because i am ios developer. Sorry for this.



Yesterday i have used below commands in my Terminal to open ssl and connect to APNS,



unknownc42c032e8297:~ gopi$ /Applications/MAMP/bin/php/php5.3.6/bin/php /Users/gopi/Desktop/PushChatServer/push/push.php development
unknownc42c032e8297:~ gopi$ cd /Users/creagx/Desktop/PushChatServer/push
unknownc42c032e8297:push gopi$ telnet gateway.sandbox.push.apple.com 2195
Trying 17.149.34.66...
Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.
Connection closed by foreign host.
unknownc42c032e8297:push **gopi$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert gopiAPNCert.pem -key gopiAPNKey.pem**
Enter pass phrase for gopiAPNKey.pem:
CONNECTED(00000003)
.
.
.
.
Verify return code: 0 (ok)
---
creagx
closed

unknownc42c032e8297:push gopi$ /Applications/MAMP/bin/php/php5.3.6/bin/php /Users/gopi/Desktop/PushChatServer/push/push.php development
^C


Is there any way to openssl from our php file? It is possible or Terminal usage is better and is the only way for this? Can anyone please help me on this? Thanks in advance.





database of the Department of salaries

I have a database of the Department of salaries and have a history of each salary schedule, but there are more more data one month example :



date name description amount
2012-5-1 ali saler 2000$
2012-5-4 ali mobile bill 140$
2012-5-4 ali Rent housing 120$
2012-4-4 ali Rent housing 120$
2012-4-4 ali Rent housing 120$



2012-4-4 ali Rent housing 120$



Needed for each month that the total salary ..
AND each month print line in the end



thank you





Button and size of text

I have a problem with size of text in button. I have layout where I use weightSum and my button width is match parent and hight is 30%. Everything works fine but when I change size of screen on emulator my text is still small. How I can change size text depend on size of screen?
This is xml:



<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="100" >

<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button"
android:layout_weight="30" />

</LinearLayout>