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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:orientation="vertical"> | |
<TextView | |
android:text="@string/userid" | |
android:id="@+id/useridtext" | |
android:layout_height="wrap_content" |
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
[{"tell":{"created_at":"2011-06-07T12:04:11Z","channel_id":3,"updated_at":"2011-06-07T12:04:11Z","text":"asdasdasgdsg","id":16,"handle_id":4}}] |
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
$ rake db:reset --trace | |
rake aborted! | |
undefined method `task' for #<FiveTalk::Application:0xb77bd510> | |
/usr/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks' | |
/usr/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:139:in `load_tasks' | |
/usr/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:77:in `send' | |
/usr/local/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:77:in `method_missing' | |
/home/develop/0523a/fivetalk/Rakefile:7 | |
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in `load' | |
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in `load_rakefile' |
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
I, [2011-07-22T16:38:28.983784 #21818] INFO -- : unlinking existing socket=/tmp/.5talk | |
I, [2011-07-22T16:38:28.984138 #21818] INFO -- : listening on addr=/tmp/.5talk fd=3 | |
I, [2011-07-22T16:38:28.984598 #21818] INFO -- : listening on addr=0.0.0.0:8080 fd=5 | |
I, [2011-07-22T16:38:28.985221 #21818] INFO -- : Refreshing Gem list | |
*** glibc detected *** unicorn_rails worker[0] -c config/unicorn.rb -D: malloc(): memory corruption: 0x08ecf770 *** | |
======= Backtrace: ========= | |
/lib/i686/cmov/libc.so.6(+0x6aaa1)[0xb76b4aa1] | |
/lib/i686/cmov/libc.so.6(+0x6d884)[0xb76b7884] | |
/lib/i686/cmov/libc.so.6(__libc_malloc+0x5c)[0xb76b948c] | |
*** glibc detected *** unicorn_rails master -c config/unicorn.rb -D: malloc(): memory corruption: 0x08ecf758 *** |
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
key/enc[ryption] | |
Used to manipulate encryption or scrambling keys and security mode. | |
To set the current encryption key, just enter the key in hex digits as XXXX-XXXX-XXXX-XXXX or XXXXXXXX. To set a key other than the current | |
key, prepend or append [index] to the key itself (this won't change which is the active key). You can also enter the key as an ASCII string | |
by using the s: prefix. Passphrase is currently not supported. | |
To change which key is the currently active key, just enter [index] (without entering any key value). | |
off and on disable and reenable encryption. | |
The security mode may be open or restricted, and its meaning depends on the card used. With most cards, in open mode no authentication is | |
used and the card may also accept non-encrypted sessions, whereas in restricted mode only encrypted sessions are accepted and the card will | |
use authentication if available. |
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 me.movamova; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ListView; | |
public class FeedFragment extends Fragment { |
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
<intent-filter> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<data android:scheme="http" android:host="letstalktech.org" android:pathPrefix="public/article.php"/> | |
</intent-filter> | |
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
awk -F", " '{print "<li><a href=\"http://example.com/~"$1"\">"$2"</a></li>"}' |
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
def rotate(x,n): | |
result = x | |
mag_x = len(str(x)) | |
for i in range(0,n): | |
mag_res = len(str(result)) | |
first = 0 if mag_x > mag_res else int(result/pow(10,mag_res)) | |
tmp = result - first*pow(10,mag_res) | |
result = tmp*10 + first | |
return result |
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
scanf("%d\n", &test_count); | |
for (i = 0; i < test_count; i++) { | |
scanf("%d %d", &A, &B); | |
/* now you got A and B*/ |