-

   eugene20237

 - e-mail

 
(0)

GUI

, 25 2016 . 16:06 +
: , GUI (xml ) - , . xml. . .

. , , - , . WYSIWYG-, : , , ... GUI, .

:  
(0)

LiqPay API

, 13 2014 . 00:39 +
, LiqPay API - API - . , , - LiqPay API.
1. LiqPay API status=failure, code , .
2. result_url server_url "&", XML LiqPay API.
3. result_url server_url . server_url result_url status=wait_secure.
4. LiqPay , -.
5. LiqPay MasterCard. , .
.

:  
(0)

Java 6

, 10 2013 . 17:29 +
:
http://www.adrianwalker.org/2011/12/java-multiline-string.html
. .
Spring!

:
http://blog.efftinge.de/2008/10/multi-line-string-literals-in-java.html
http://stackoverflow.com/questions/878573/java-multiline-string


// From:
// http://blog.efftinge.de/2008/10/multi-line-string-literals-in-java.html
// Takes a comment (/**/) and turns everything inside the comment to a string
// that is returned from S()
public static String S()
{
StackTraceElement element = new RuntimeException().getStackTrace()[1];
String name = element.getClassName().replace('.', '/') + ".java";
StringBuilder sb = new StringBuilder();
String line = null;
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
InputStream in = classLoader.getResourceAsStream(name);
String s = convertStreamToString(in, element.getLineNumber());
return s.substring(s.indexOf("/*") + 2, s.indexOf("*/"));
}

// From http://www.kodejava.org/examples/266.html
private static String convertStreamToString(InputStream is, int lineNum)
{
/*
* To convert the InputStream to String we use the BufferedReader.readLine()
* method. We iterate until the BufferedReader return null which means
* there's no more data to read. Each line will appended to a StringBuilder
* and returned as String.
*/
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder sb = new StringBuilder();

String line = null;
int i = 1;
try
{
while ((line = reader.readLine()) != null)
{
if (i++ >= lineNum)
{
sb.append(line + "\n");
}
}
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
try
{
is.close();
}
catch (IOException e)
{
e.printStackTrace();
}
}

return sb.toString();
}

public static void main(String[] args) throws Exception
{
String s = S(/*
Wow, we finally have
multiline strings in
Java! HOOO!
*/);
System.out.println(s);
}

:  
(4)

, 09 2013 . 00:35 +
, . , ! Java , .

, :


class Simple
{
  private int a = 0;

  public void add(int b)
  {
    a = a + b;
  }

  public int getA()
  {
    return a;
  }
}


"add" "a". , "add" , "a".


class Difficult
{
  private int a = 0;

  public void add(int b)
  {
    if ((float)(a % 100) / 3 == (int)((a % 100) / 3) )
      a = a + b;
    else
      a = a - b;
  }

  public int getA()
  {
    return a;
  }
}


, "add". , , , . , . .

AS3:


class D
{
  var param1: boolean;
  var param2: boolean;

  function func1(...)
  {
    .........
      if (param2)
        param1 = abc;
      else
        param1 = xyz;
    .........
  }

  function func2(...)
  {
    .........
    if (param1 && asd)
      param2 = ...;
    ...........
  }
}


, . .

. . .

:  
(0)

TODO

, 07 2013 . 04:18 +
20071126-todo-list (380x239, 202Kb)
TODO . TODO ! : " ", TODO . ! . .

:  
(0)

, 20 2012 . 01:44 +
, . : , . (S) , . .. , . " ".

, , S, . , (), , , . , .

, , , , . - .

A0 - , S - . .
PHP:

//     S1
1.__(A0S1)
//  S1 ,           A1
//     S2
2.__(A0 A1S2)
//  S2 ,           A2
//     S1    a75      S75
3.__(A0 A1 A2S75)
//   S75,        S1
4.__(a75)
//  S1 ,   
...
font>


3 4 S75 S1. , __(...) . :
PHP:

__
(A St  )
{
  
Ac ____(ASt)
  
Ss __(Ac)
  while (
!= St && not(S in Ss))
  {
    
A0[random(LEN(A))]
    
__(a)
  }
  if (
== St)
    return;
  if (
S in Ss)
  {
    
____(AcS)
    
__(a)
    if (
== St)
      return;
    else
      exit(
" ,   .");
  }
}
font>


__(...) , .. St. St . , St.

, , . , . ! , , , .

:  
(0)

:

, 19 2012 . 22:00 +
, . , - . . . - . , .


, . , .. 0 1. , . . .. " ". , . , , . .

, .


, . , . .


A - , .
A = { a1, ..., ax }.
C - , .. , .
C = { c1, ..., cn }, ci A.
S - . m .
S = { s1, ..., sm }, si 0 1.

C S, , S. E = { e1, ..., el } - , ei A = { a1, ..., ax }.


ci , . - S. D.
D = { d1, ..., dx }, di = { ds1, ..., dsn };
- , S . S ds:
dsi = { S[i][j-1], S[i][j] }.
, S[i] - j . j - , 1 n.
D .
PHP:

2
while (j<=&& LEN(D) < x)
{
  
C[j]
  
A[c]
  if (
D[a] == NULL)
  {
    
= {}
    for (
i=1i<=mi++)
    {
      
ds = { S[i][j-1], S[i][j] }
      
d[i] = ds
    
}
    
D[a] = 
  
}
  
j++
}
font>


, . . , D. .

C, . , , . 10 T. C 10 . , . 3- . . , , E. , E .
PHP:

= {} //   
1
while (j<=n//  
{
  
C[j]
  
A[c]
  
= {}
  for (
i=1i<=mi++) //  d
  
{
    
ds = { S[i][j-1], S[i][j] }
    
d[i] = ds
  
}

  if (
D[a] != d//  
  
{
    
//     
    
= []
    
j
    
while (i>=&& i>=j-10//  10  
    
{
      
C[i]
      
A[c]
      
= {}
      for (
k=1k<=mk++) //  d
      
{
        
ds = { S[k][i-1], S[k][i] }
        
d[i] = ds
      
}
      
//    t  a    d
      
t[LEN(t) + 1] = { a}
      
i--
    }
    
//  10     f
    
T[f][LEN(T[f]) + 1] = t
  
}
  
j++
}

//   E
for (fZin T // f - , Z -    T
{
  if (
LEN(Z) >= 3//    ?
  
{
    
= [] //    E
    
Z[1//   ,    f
    // ,     
    
for (j=2j<=LEN(Z); j++)
    {
      
Z[j]
      
LEN(t)
      do
      {
        
t[i].// 
        
t[i].//  
        
if (== o[i].&& == o[i].d)
        {
          if (
e[LEN(e) + 1] == NULL)
            
e[LEN(e) + 1] = a
        
}
        else
          break
        
i++
      }
      while(
<= LEN(t))
    }
    
E[f] = //      E   f
  
}
}
font>


, E . , . , E . f ( ) A, . , E , , . - f.

, . , . , , . .

, . .

:  
(0)

, 19 2012 . 04:35 +
, . , ? . - , . , , , , . .. , , .

, . .. . , - , -.

. , . , , .

UPDATE: . .

:  
(0)

Hello World

, 09 2012 . 01:00 +
Hello World. !

<input type="button" value=" " ONCLICK="AlertButton()" >
<script>
function AlertButton()
{
window.alert("Hello, World!");
}
</script>

:  
(3)

FDT

, 29 2011 . 08:58 +
IDE . IDE . , , . !

FDT4, . PyDev , .. . , , RSE . FlashPlayer, - . , Adobe AIR. , . IDE , .

FDT_setup (700x526, 249Kb)

:  
(0)

, 08 2011 . 18:59 +
, :

for_amage (400x400, 199Kb)

:  
(0)

Away3D 4.0 public beta now available!

, 28 2011 . 15:43 +
!!!
Away3D 4.0 public beta now available! (see away3d.com)
! Molehill 3D API.

:
, 27 2011 , Adobe - Molehill 3D API Flash Player 11. , . (), Flex SDK labs.adobe.com AIR and Flash Player Incubator.
 (600x211, 175Kb)

:  
(3)

Mutable

, 14 2010 . 21:04 +
, . .. js , , . , . , .. - , . .

, , 100%.

:  
(4)

, 27 2010 . 21:43 +
, , .

1. . . , . , , . .
2. . - . . , - . - . .

. .

:  

 : [1]