Java

Javaコード:
public static void deleteFile(File file) {
if (file.exists()) {
if (file.isFile()) {
file.de ...

Java

Javaコード
public static long getFileSize(File f) {
long size = 0;
File flist.isDirectory()) {
size = si ...

Java

Javaコード
public static long getFileSize(File f) {
long size = 0;
File flist.isDirectory()) {
size = si ...

Android

Javaコード:
private LruCache mMemoryCache;

@Override
protected void onCreate(Bundle savedInstanceState) { ...

Android

Javaコード:
private DiskLruCache mDiskCache;
private static final int DISK_CACHE_SIZE = 1024 * 1024 * 10;//10MB ...

Android

Javaコード
private LruCache mMemoryCache;
@Override
protected void onCreate(Bundle savedInstanceState) {

Java

Javaコード
public static String readTextInputStream(InputStream is) throws IOException {
StringBuffer strbuffer ...

Java

Javaコード
public static String readTextFile(File file) throws IOException {
String text = null;
InputStream ...

IOS

1.int result = ^(int a){return a*a;}(5);
NSLog(@”—result…%d”,result);

2.//Blockポインタ ...

Mac OS X

利用方法
#pragma mark — UICollectionViewDataSource

//UICollectionViewCellの個数を表示
– (NSInteger)co ...

PHP

PHPコード

<?php
include (“head.php”);//htmlのheadが含まれる
include (“../FusionCharts/Inclu ...

PHP

1.upload_startnews24.php
<?php
if ($_FILES != “”)
{
if ($_FILES > 0)
{
echo ...

Java

1.LinuxでTomcat JVMメモリを修正
ファイル:catalina.sh
箇所:cygwin=falseの前
追加:
# OS specific support. $var _must_ be ...

Java

エラーメッセージ:
JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period . ...

Java

Javaコード:
public static void main(String[] args) {
try {
String test_startnews24 = “”;
Sys ...

Android

Javaコード:
Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
intent.setType(People.CONTENT_ITEM_TYPE); ...

Nginx

1.ファイル:
nginx.conf

2.設定内容:
http {
include mime.types;
default_type application/octet-stream; ...

PHP

PHPコード:
$url=’
$data=array(‘name’=>’jim’,’age’=>15);
$sta ...