Skip to content

Instantly share code, notes, and snippets.

View Eugeny's full-sized avatar

Eugene Eugeny

View GitHub Profile
class Cls<T> {
blah-blah
}
class B {
public List<Cls<?>> list;
}
eugeny@eugeny-desktop ~/workspace/Player (master) $ find src res|grep -P '(.java|.xml)'|sort|xargs wc -l
6 res/drawable/button.xml
4 res/drawable/ic_tab_albums.xml
4 res/drawable/ic_tab_artists.xml
5 res/drawable/ic_tab_folders.xml
5 res/drawable/ic_tab_genres.xml
4 res/drawable/ic_tab_playlists.xml
4 res/drawable/ic_tab_songs.xml
24 res/drawable/list_selector_background_np.xml
19 res/drawable/list_selector_background.xml
<string name="pref_split">Split screen</string>
<string name="pref_split_desc">Requires restart</string>
<string-array name="pref_split_vals">
<item>Never</item>
<item>In landscape</item>
<item>Always</item>
</string-array>
<string name="pref_import_playlists">Import playlists</string>
<string name="pref_import_playlists_desc">From default music player</string>
private void showDialog() {
final AlertDialog dlg = new AlertDialog.Builder(this).setTitle(
R.string.pref_music_root).setMultiChoiceItems(
(String[]) mNames.toArray(new String[0]), mSelected,
new OnMultiChoiceClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1, boolean arg2) {
mSelected[arg1] = arg2;
}
}).setPositiveButton(android.R.string.ok, new OnClickListener() {
< printf("Sign of first parner:%s\n",*signs[FirstPerson.sign]);
< printf("Sign of second parner:%s\n",*signs[SecondPerson.sign]);
---
> printf("Sign of first parner:%s\n",signs[FirstPerson.sign-1]);
> printf("Sign of second parner:%s\n",signs[SecondPerson.sign-1]);
< int sign = 12, i = 0;
---
> int i = 0;
< sign = i + 1;
< return sign;
--- Horoscope1.cpp 2011-03-10 20:30:49.127143766 +0200
+++ Horoscope.cpp 2011-03-10 20:31:11.627142105 +0200
@@ -87,8 +87,8 @@
{
FirstPerson.sign = WhatSign(HowManyDays(FirstPerson.month, FirstPerson.day));
SecondPerson.sign = WhatSign(HowManyDays(SecondPerson.month, SecondPerson.day));
- printf("Sign of first parner:%s\n",*signs[FirstPerson.sign]);
- printf("Sign of second parner:%s\n",*signs[SecondPerson.sign]);
+ printf("Sign of first parner:%s\n",signs[FirstPerson.sign-1]);
+ printf("Sign of second parner:%s\n",signs[SecondPerson.sign-1]);
>everythingWorks< calmchess what for is that printStackTrace?
>calmchess< e.printStackTrace will print the stack trace to logCat
error messages
google it for more detail
i don't know all the underlying stuff
i don't use it as much as Exception e
>mikedg< i'm good at it though
>calmchess< do you know how to use a try catch
>calmchess< try catch can save you hours of headache
Index: WebContent/WEB-INF/jsp/create/forms/CertificateForm.jsp
===================================================================
--- WebContent/WEB-INF/jsp/create/forms/CertificateForm.jsp (revision 580)
+++ WebContent/WEB-INF/jsp/create/forms/CertificateForm.jsp (working copy)
@@ -30,6 +30,10 @@
dijit.byId('destinationField_${ns}').reset();
dijit.byId('countSpin_${ns}').reset();
});
+
+ function onCertificatePrinting() {
<?
$menus = array(
"MAIN" => array(
array(
"icon" => "",
"text" => "",
"url" => "/"
),
array(
"icon" => "",
All reader settings are user-specified.
Code scanning for the tags:
if (mReader.Running)
mReader.Stop();
foreach (Tag t in mReader.Expose().QueryTags(1).Tags) // mReader is a wrapper over SpeedwayReader, Expose() returns the very SpeedwayReader instance
ProcessTag(t); // <-- t.SerializedTid == null!