Steps with explanations to set up a server using:
- virtualenv
- Django
- nginx
- uwsgi
function [ out ] = berlekamp_massey( ) | |
z=[ 0 0 0 0 1 1 1 1 1 0 1 0 1 0 0 1 1 0 0 0 1 0 0 0 0 1 1 1 1 1]; | |
n = length(z); | |
c = zeros(1,n); | |
b= zeros(1,n); | |
c(1) = 1; | |
b(1) = 1; | |
@Override | |
public void onDestroyView() { | |
super.onDestroyView(); | |
getFragmentManager() | |
.beginTransaction() | |
.detach(mFilter) | |
.commit(); | |
} | |
public void setLocale(String lang) { | |
myLocale = new Locale(lang); | |
Resources res = getResources(); | |
DisplayMetrics dm = res.getDisplayMetrics(); | |
Configuration conf = res.getConfiguration(); | |
conf.locale = myLocale; | |
res.updateConfiguration(conf, dm); | |
Intent refresh = new Intent(this, AndroidLocalize.class); |
Intent.createChooser(it, "Choose Email Client") |
/** | |
* User: korniltsev | |
* Date: 22.03.13 | |
* Time: 14:51 | |
*/ | |
public class ConfirmDialogFactory { | |
public static void build(Context c) | |
{ | |
final Dialog dialog = new Dialog(c,R.style.CustomStyle); |
/** | |
* User: korniltsev | |
* Date: 22.03.13 | |
* Time: 14:51 | |
*/ | |
public class ConfirmDialogFactory { | |
public static Dialog build(Activity a) | |
{ | |
final Dialog dialog = new Dialog(a,R.style.CustomStyle); |
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
style="@style/CigDividersWrapper"> | |
<View | |
style="@style/CigWeightHelper"/> | |
<View | |
style="@style/CigWeightHelper"/> |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<string name="report_formatted"> | |
<![CDATA[Give up smoking android application review\nName:%5$s\nsimple:%1$b\nclear:%2$b\naccessibly:%3$b\ncomfortable:%4$b\n]]></string> | |
<string name="report_email">quit.smoking@yandex.ru</string> | |
<string name="app_name">Stop smoking</string> | |
<!-- Tabs --> | |
<string name="my_course">MY COURSE</string> | |
<string name="about_method">METHOD</string> | |
<string name="technique">TECHNIQUE</string> |
package ru.kurganec.vk.messenger.utils.emoji; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Color; | |
import android.graphics.drawable.ColorDrawable; | |
import android.graphics.drawable.Drawable; | |
import android.text.Editable; | |
import android.text.Html; | |
import android.text.Spanned; |