This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add behavior for UI | |
label.addEventListener('click', function(e) { | |
var intent = Ti.Android.createIntent({ | |
action: "android.speech.action.RECOGNIZE_SPEECH" | |
}); | |
intent.putExtra("android.speech.extra.LANGUAGE_MODEL", "free_form"); | |
intent.putExtra("android.speech.extra.PROMPT","VoiceRecognitionTest"); | |
//intent発行&音声認識結果受け取り | |
Ti.Android.currentActivity.startActivityForResult( | |
intent, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Ti.Platform.name == "android") { | |
var speechModule = require('org.mumumu.ti.android.speech'); | |
var voiceRecognitionProxy = speechModule.createVoiceRecognition(); | |
voiceRecognitionProxy.callback = function (e) { | |
var voice_recognition_enabled = e.voice_enabled; | |
var voice_results = e.voice_results; | |
if (e.voice_canceled) { | |
alert("voice recognition canceled"); | |
} else { | |
if (!voice_recognition_enabled) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Classes/TibarModule.m | |
=================================================================== | |
--- Classes/TibarModule.m (revision 17) | |
+++ Classes/TibarModule.m (working copy) | |
@@ -257,6 +257,36 @@ | |
[pickerCancelCallback retain]; | |
} | |
+ // overlay view | |
+ if ([args objectForKey:@"overlay"] != nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use IO::Socket; | |
use Data::Dumper; | |
my $socket = IO::Socket::INET->new( | |
Proto => 'tcp', | |
Type => SOCK_STREAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use IO::Socket; | |
use Data::Dumper; | |
my $socket = IO::Socket::INET->new( | |
Proto => 'tcp', | |
Type => SOCK_STREAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method ensures that the output String has only | |
* valid XML unicode characters as specified by the | |
* XML 1.0 standard. For reference, please see | |
* <a href="http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char">the | |
* standard</a>. This method will return an empty | |
* String if the input is null or empty. | |
* | |
* @param in The String whose non-valid characters we want to remove. | |
* @return The in String, stripped of non-valid characters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: ChangeLog | |
=================================================================== | |
--- ChangeLog (リビジョン 3764) | |
+++ ChangeLog (リビジョン 4660) | |
@@ -1,3 +1,8 @@ | |
+2012-09-24 Uwe Tews | |
+ | |
+ * Fixed escape Smarty error messages to avoid possible script execution | |
+ | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mumumu@www 17:12:11$ python | |
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) | |
[GCC 4.4.5] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> def test(a = []): | |
... a.append(10) | |
... print a | |
... | |
>>> test() | |
[10] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var elms=document.getElementsByTagName('a');for(var i=0;i<elms.length;i++){elms[i].setAttribute('target','_blank');} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.mumumu.test; | |
import java.io.ByteArrayOutputStream; | |
import magick.ImageInfo; | |
import magick.MagickImage; | |
import org.apache.sanselan.Sanselan; | |
import org.apache.sanselan.common.IImageMetadata; | |
import org.apache.sanselan.formats.jpeg.JpegImageMetadata; |