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
Sep 23 06:26:33 localhost opendirectoryd[101]: opendirectoryd (build 339.1.4) launched - installer mode | |
Sep 23 06:26:33 localhost opendirectoryd[101]: Logging level limit changed to 'notice' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: Initialize trigger support | |
Sep 23 06:26:34 localhost opendirectoryd[101]: created endpoint for mach service 'com.apple.private.opendirectoryd.rpc' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: set default handler for RPC 'reset_cache' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: set default handler for RPC 'reset_statistics' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: set default handler for RPC 'show' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: starting endpoint for service 'com.apple.private.opendirectoryd.rpc' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: no dynamic data found at '/System/Library/OpenDirectory/DynamicData/Configure.plist' | |
Sep 23 06:26:34 localhost opendirectoryd[101]: Registered node with name '/Configure' as hidden |
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 com.example.blendmodes; | |
import android.graphics.Bitmap; | |
import android.util.Log; | |
public class Blender { | |
private static final String TAG = Blender.class.getSimpleName(); | |
public static Bitmap performBlending(Bitmap source, Bitmap destination, int mode) { |
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
private boolean checkBuildType() { | |
boolean isDebugBuild = false; | |
try { | |
Signature[] signatures = getPackageManager() | |
.getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures; | |
CertificateFactory cf = CertificateFactory.getInstance("X.509"); | |
X500Principal debugSertificateSubject = new X500Principal(DEBUG_CERTIFICATE_SUBJECT_NAME); | |
for (Signature signature : signatures) { |
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
01-28 14:05:55.638 15741-15741/net.mobindustry.shopaholic E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: net.mobindustry.shopaholic, PID: 15741 | |
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@1f794ae9 | |
at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1225) | |
at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:600) | |
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:537) | |
at android.widget.ImageView.onDraw(ImageView.java:1166) | |
at android.view.View.draw(View.java:15114) | |
at android.view.View.updateDisplayListIfDirty(View.java:14048) | |
at android.view.View.getDisplayList(View.java:14071) |
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 (elapse < 60) { | |
if(elapse<1) | |
elapse=1; | |
return [NSString stringWithFormat:@"%ds", (int)elapse]; | |
} | |
else if (elapse < 60 * 60) { | |
int minute = round(elapse / 60); | |
return [NSString stringWithFormat:@"%dm", minute]; | |
// } else if (elapse < 1.5 * 60 * 60) { | |
// return @"An hour"; |
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
Сценарий 8 марта дома или в офисе. Конкурс ?Кто больше? | |
Ведущий задает некоторую женскую тему (например, ?цветы?, ?косметические фирмы?, ?элементы одежды?, ?украшения?). Задача участниц — называть в произвольном порядке слова, относящиеся к этой теме. Та участница, которая назовет последнее слово, получает призовое очко. | |
Сценарий 8 марта дома или в офисе. Конкурс ?Женская логика? | |
Ведущий называет несколько предметов. Участницы должны назвать предмет, лишний в этом списке, и объяснить свое решение. За каждый правильный ответ участница получает призовое очко. | |
Примеры заданий ?Что лишнее??: | |
1. Окраска волос хной, басмой, краской ?Велла?. (Окраска ?Веллой?, поскольку хна и басма -натуральные краски.) | |
2. Ванильные сухари, панировочные сухари, сухари с изюмом. (Лишнее — панировочные сухари, так как они не являются готовым к употреблению продуктом.) | |
3. Вискоза, хлопок, полиэстер. (Полиэстер, так как вискоза и хлопок натуральные материалы.) | |
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
package net.mobindustry.shopaholic.service; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.Handler; | |
import android.os.HandlerThread; | |
import android.os.IBinder; | |
import android.os.Looper; | |
import android.os.Message; |
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
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'API_ACCESS_KEY_HERE' ); | |
$registrationIds = array("DEVICE'S_REG_ID_HERE", "ANOTHER DEVICE'S_REG_ID_HERE (may be several of those)" ); | |
// prep the bundle |
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 photoPickerIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); | |
photoPickerIntent.setType("image/*"); | |
// consider time while using camera as Shopaholic's foreground | |
ShopaholicApp.activityResumed(); | |
startActivityForResult(photoPickerIntent, INTENT_REQUEST_CODE_SELECT_PHOTO); |
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
Cursor cursor = null; | |
String path = null; | |
try { | |
String[] proj = { MediaStore.Images.Media.DATA }; | |
cursor = context.getContentResolver().query(contentUri, proj, null, null, null); | |
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); | |
cursor.moveToFirst(); | |
path = cursor.getString(column_index); | |
} finally { | |
if (cursor != null) { |
OlderNewer