If	O	O
I	O	O
would	O	O
have	O	O
2	O	O
tables	O	B-Data_Structure

How	O	O
do	O	O
I	O	O
get	O	O
this	O	O
result	O	O

The	O	O
following	O	O
query	O	O
needs	O	O
to	O	O
be	O	O
adjusted	O	O
,	O	O
but	O	O
I	O	O
dont	O	O
know	O	O
how	O	O

SQLFIDDLE	O	B-Application
:	O	O
http://sqlfiddle.com/#!9/11093	O	O

You	O	O
are	O	O
very	O	O
close	O	O
.	O	O

Just	O	O
add	O	O
a	O	O
where	B-Code_Block	B-Code_Block
clause	O	O
:	O	O

A	O	O
more	O	O
traditional	O	O
approach	O	O
uses	O	O
NOT	B-Code_Block	B-Code_Block
EXISTS	I-Code_Block	I-Code_Block
:	O	O

Here	O	O
is	O	O
a	O	O
SQL	O	B-Application
Fiddle	O	I-Application
illustrating	O	O
that	O	O
the	O	O
first	O	O
works	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
make	O	O
a	O	O
little	O	O
chat	O	O
program	O	O
after	O	O
reading	O	O
Beej	O	O
's	O	O
guide	O	O
to	O	O
programming	O	O
.	O	O

And	O	O
then	O	O
I	O	O
was	O	O
thinking	O	O
about	O	O
the	O	O
basics	O	O
of	O	O
the	O	O
program	O	O
itself	O	O
,	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
to	O	O
print	O	O
output	O	O
of	O	O
recv()	O	B-Function
and	O	O
get	O	O
input	O	O
for	O	O
send()	O	B-Function
at	O	O
the	O	O
same	O	O
time	O	O
,	O	O
because	O	O
the	O	O
client	O	O
can	O	O
always	O	O
write	O	O
something	O	O
and	O	O
send	O	O
,	O	O
but	O	O
how	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
also	O	O
print	O	O
something	O	O
while	O	O
he	O	O
's	O	O
trying	O	O
to	O	O
input	O	O
?	O	O

I	O	O
thought	O	O
about	O	O
threads	O	O
,	O	O
and	O	O
I	O	O
learned	O	O
a	O	O
little	O	O
bit	O	O
about	O	O
them	O	O
,	O	O
and	O	O
I	O	O
created	O	O
2	O	O
simple	O	O
threads	O	O
:	O	O
The	O	O
first	O	O
one	O	O
,	O	O
prints	O	O
a	O	O
sentence	O	O
every	O	O
3	O	O
seconds	O	O
,	O	O
and	O	O
the	O	O
second	O	O
one	O	O
get	O	O
input	O	O
,	O	O
this	O	O
little	O	O
program	O	O
of-course	O	O
had	O	O
a	O	O
lot	O	O
of	O	O
issues	O	O
,	O	O
for	O	O
ex	O	O
.	O	O

if	O	O
you	O	O
started	O	O
typing	O	O
,	O	O
and	O	O
the	O	O
other	O	O
thread	O	O
needs	O	O
to	O	O
print	O	O
something	O	O
,	O	O
it	O	O
will	O	O
simply	O	O
take	O	O
what	O	O
you	O	O
wrote	O	O
,	O	O
and	O	O
print	O	O
it	O	O
with	O	O
itself	O	O
output	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
,	O	O
I	O	O
tried	O	O
to	O	O
recreate	O	O
it	O	O
,	O	O
I	O	O
hope	O	O
you	O	O
guys	O	O
can	O	O
help	O	O
me	O	O
.	O	O
.	O	O

You	O	O
have	O	O
undefined	O	O
behavior	O	O
in	O	O
your	O	O
code	O	O
:	O	O
You	O	O
haven	O	O
an	O	O
uninitialized	O	O
pointer	O	O
input	B-Code_Block	B-Function
in	O	O
getinput	B-Code_Block	B-Function
.	O	O

Uninitialized	O	O
(	O	O
non-static	O	B-Data_Type
)	O	O
local	O	O
variables	O	O
have	O	O
an	O	O
indeterminate	O	O
value	O	O
,	O	O
and	O	O
it	O	O
will	O	O
seem	O	O
to	O	O
be	O	O
random	O	O
.	O	O

As	O	O
the	O	O
value	O	O
is	O	O
indeterminate	O	O
(	O	O
and	O	O
seemingly	O	O
random	O	O
)	O	O
the	O	O
scanf	B-Code_Block	B-Function
call	O	O
will	O	O
write	O	O
to	O	O
some	O	O
unknown	O	O
place	O	O
in	O	O
memory	O	O
,	O	O
overwriting	O	O
whatever	O	O
was	O	O
there	O	O
.	O	O

You	O	O
could	O	O
easily	O	O
solve	O	O
this	O	O
by	O	O
making	O	O
input	B-Code_Block	B-Function
an	O	O
array	O	B-Data_Structure
.	O	O

I	O	O
have	O	O
a	O	O
C#	O	B-Language
/.NET	O	B-Library
application	O	O
that	O	O
,	O	O
in	O	O
multiple	O	O
threads	O	O
(	O	O
i.e	O	O
.	O	O
concurrently	O	O
,	O	O
6	O	O
threads	O	O
)	O	O
,	O	O
tries	O	O
to	O	O
perform	O	O
following	O	O
update	O	O
:	O	O

This	O	O
is	O	O
piece	O	O
of	O	O
code	O	O
is	O	O
run	O	O
in	O	O
the	O	O
transaction	O	O
.	O	O

Both	O	O
tables	O	O
have	O	O
3+mio	O	O
records	O	O
.	O	O

Clustered	O	O
key	O	O
is	O	O
on	O	O
the	O	O
[	O	O
Id	O	B-Variable
]	O	O
field	O	O
,	O	O
there	O	O
are	O	O
some	O	O
non-clustered	O	O
indexes	O	O
as	O	O
well	O	O
.	O	O

Funny	O	O
thing	O	O
is	O	O
that	O	O
I	O	O
manually	O	O
checked	O	O
and	O	O
in	O	O
my	O	O
particular	O	O
example	O	O
with	O	O
3+mio	O	O
records	O	O
cWrh	O	B-Variable
.	O	O

[	O	O
Options	O	O
]	O	O
and	O	O
cStg	O	B-Variable
.	O	O

[	O	O
Options	O	O
]	O	O
are	O	O
always	O	O
the	O	O
same	O	O
so	O	O
in	O	O
the	O	O
end	O	O
the	O	O
update	O	O
would	O	O
not	O	O
be	O	O
necessary	O	O
.	O	O

I	O	O
'm	O	O
attaching	O	O
the	O	O
deadlog	O	O
graph	O	B-Data_Structure
,	O	O
redacted	O	O
values	O	O
say	O	O
DB.wrh.Cars	O	B-Variable
:	O	O

Deadlock	O	O
graph	O	B-Data_Structure

Yes	O	O
,	O	O
in	O	O
this	O	O
particular	O	O
example	O	O
concurrency	O	O
is	O	O
not	O	O
really	O	O
adding	O	O
any	O	O
value	O	O
,	O	O
but	O	O
this	O	O
is	O	O
the	O	O
"	O	B-Value
Reset	O	I-Value
"	O	I-Value
query	O	O
;	O	O
the	O	O
"	O	B-Value
Recalculate	O	I-Value
"	O	I-Value
query	O	O
which	O	O
does	O	O
some	O	O
[	O	O
Options	O	O
]	O	O
calculation	O	O
in	O	O
C#	O	B-Language
,	O	O
bulk	O	O
inserts	O	O
back	O	O
into	O	O
SQL	O	B-Language
and	O	O
updates	O	O
later	O	O
in	O	O
a	O	O
concurrent	O	O
mode	O	O
speeds	O	O
up	O	O
the	O	O
thing	O	O
significantly	O	O
.	O	O

I	O	O
would	O	O
just	O	O
like	O	O
to	O	O
stick	O	O
to	O	O
this	O	O
concurrent	O	O
approach	O	O
regardless	O	O
of	O	O
the	O	O
task	O	O
(	O	O
simple	O	O
reset	O	O
vs	O	O
CPU	O	B-Device
intensive	O	O
work	O	O
)	O	O
if	O	O
possible	O	O
.	O	O

Any	O	O
suggestion	O	O
how	O	O
to	O	O
work	O	O
around	O	O
the	O	O
deadlock	O	O
is	O	O
appreciated	O	O
.	O	O

As	O	O
suggested	O	O
by	O	O
@KamranFarzami	O	B-User_Name
,	O	O
the	O	O
answer	O	O
by	O	O
@Grantly	O	B-User_Name
solved	O	O
my	O	O
problem	O	O
.	O	O

The	O	O
point	O	O
for	O	O
answering	O	O
this	O	O
question	O	O
goes	O	O
to	O	O
them	O	O
.	O	O

Transaction	O	O
Isolation	O	O
Level	O	O
of	O	O
SNAPSHOT	O	O
prevents	O	O
deadlocks	O	O
from	O	O
ocurring	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
accomplish	O	O
the	O	O
following	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
why	O	O
I	O	O
am	O	O
struggling	O	O
.	O	O

Create	O	O
a	O	O
new	O	O
fiddle	O	O
that	O	O
contains	O	O
a	O	O
button	O	B-User_Interface_Element
with	O	O
the	O	O
text	O	O
"	O	B-Value
x2	O	I-Value
"	O	I-Value
and	O	O
the	O	O
number	O	O
1	O	B-Value
like	O	O
this	O	O
:	O	O

1	O	B-Value
x2	O	I-Value

Use	O	O
Javascript	O	B-Language
to	O	O
make	O	O
it	O	O
so	O	O
that	O	O
each	O	O
time	O	O
the	O	O
button	O	B-User_Interface_Element
is	O	O
clicked	O	O
,	O	O
the	O	O
number	O	O
above	O	O
the	O	O
x2	O	B-Value
button	O	B-User_Interface_Element
will	O	O
double	O	O
.	O	O

Send	O	O
me	O	O
the	O	O
link	O	O
to	O	O
the	O	O
fiddle	O	B-Application
.	O	O

Here	O	O
is	O	O
what	O	O
I	O	O
have	O	O
thus	O	O
far	O	O
.	O	O

I	O	O
know	O	O
I	O	O
am	O	O
targeting	O	O
the	O	O
button	O	B-User_Interface_Element
via	O	O
JS	O	B-Language
but	O	O
I	O	O
cannot	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
return	O	O
the	O	O
updated	O	O
value	O	O
when	O	O
the	O	O
x2	O	B-Value
button	O	B-User_Interface_Element
is	O	O
clicked	O	O
.	O	O

Try	O	O
this	O	O
:	O	O

Look	O	O
at	O	O
what	O	O
this	O	O
code	O	O
is	O	O
doing	O	O
:	O	O

You	O	O
are	O	O
multiplying	O	O
an	O	O
element	O	O
by	O	O
two	O	O
,	O	O
you	O	O
are	O	O
NOT	O	O
reading	O	O
the	O	O
text	O	O
.	O	O

You	O	O
want	O	O
to	O	O
use	O	O
innerHTML	B-Code_Block	B-Function
or	O	O
textContent	B-Code_Block	B-Function
.	O	O

That	O	O
returns	O	O
a	O	O
string	O	B-Data_Type
,	O	O
so	O	O
you	O	O
want	O	O
to	O	O
use	O	O
parseInt()	B-Code_Block	B-Function
or	O	O
parseFloat()	B-Code_Block	B-Function
.	O	O

If	O	O
we	O	O
override	O	O
parent	O	O
class	O	O
's	O	O
method	O	O
,	O	O
we	O	O
can	O	O
use	O	O
super()	B-Code_Block	B-Function
to	O	O
avoid	O	O
mention	O	O
of	O	O
parent	O	O
class	O	O
's	O	O
name	O	O
-	O	O
that	O	O
's	O	O
clear	O	O
.	O	O

But	O	O
what	O	O
about	O	O
case	O	O
,	O	O
when	O	O
we	O	O
just	O	O
use	O	O
in	O	O
subclass	O	O
some	O	O
function	O	O
defined	O	O
in	O	O
parent	O	O
class	O	O
?	O	O

What	O	O
is	O	O
preferable	O	O
way	O	O
:	O	O
to	O	O
use	O	O
super().parent_method()	B-Code_Block	B-Function
or	O	O
self.parent_method()	B-Code_Block	B-Function
?	O	O

Or	O	O
there	O	O
's	O	O
no	O	O
difference	O	O
?	O	O

actually	O	O
super()	B-Code_Block	B-Function
is	O	O
not	O	O
syntactic	O	O
sugar	O	O
,	O	O
its	O	O
purpose	O	O
is	O	O
to	O	O
invoke	O	O
parent	O	O
implementation	O	O
of	O	O
a	O	O
certain	O	O
method	O	O
.	O	O

You	O	O
have	O	O
to	O	O
use	O	O
super()	B-Code_Block	B-Function
when	O	O
you	O	O
want	O	O
to	O	O
override	O	O
a	O	O
parent	O	O
method	O	O
,	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
to	O	O
use	O	O
super()	B-Code_Block	B-Function
when	O	O
instead	O	O
you	O	O
want	O	O
to	O	O
overwrite	O	O
a	O	O
method	O	O
.	O	O

The	O	O
difference	O	O
is	O	O
that	O	O
in	O	O
the	O	O
first	O	O
case	O	O
you	O	O
want	O	O
to	O	O
add	O	O
extra	O	O
behavior	O	O
(	O	O
aka	O	O
code	O	O
execution	O	O
)	O	O
before	O	O
or	O	O
after	O	O
the	O	O
original	O	O
implementation	O	O
,	O	O
in	O	O
the	O	O
second	O	O
you	O	O
want	O	O
a	O	O
completely	O	O
different	O	O
implementation	O	O
.	O	O

You	O	O
ca	O	O
n't	O	O
use	O	O
self.method_name()	B-Code_Block	B-Function
in	O	O
an	O	O
override	O	O
,	O	O
the	O	O
result	O	O
will	O	O
be	O	O
a	O	O
recursion	O	O
error	O	O
!	O	O

(	O	O
RuntimeError	B-Code_Block	B-Error_Name
:	I-Code_Block	O
maximum	I-Code_Block	O
recursion	I-Code_Block	O
depth	I-Code_Block	O
exceeded	I-Code_Block	O
)	O	O

Example	O	O
:	O	O

Given	O	O
a	O	O
base	O	O
class	O	O
A	B-Code_Block	B-Class
,	O	O
with	O	O
a	O	O
method	O	O
m	B-Code_Block	B-Function
,	O	O
B	B-Code_Block	B-Class
extends	O	O
A	B-Code_Block	B-Class
by	O	O
overriding	O	O
m	B-Code_Block	B-Function
,	O	O
C	B-Code_Block	B-Class
extends	O	O
A	B-Code_Block	B-Class
by	O	O
overwriting	O	O
m	B-Code_Block	B-Function
,	O	O
and	O	O
D	B-Code_Block	B-Class
generates	O	O
an	O	O
error	O	O
!	O	O

EDIT	O	O
:	O	O

I	O	O
just	O	O
realized	O	O
that	O	O
you	O	O
actually	O	O
have	O	O
2	O	O
different	O	O
methods	O	O
(	O	O
test_a	B-Code_Block	B-Function
and	O	O
test_b	B-Code_Block	B-Function
)	O	O
.	O	O

My	O	O
answer	O	O
is	O	O
still	O	O
valid	O	O
,	O	O
but	O	O
regarding	O	O
your	O	O
specific	O	O
scenario	O	O
:	O	O

you	O	O
should	O	O
use	O	O
self.test_a()	B-Code_Block	B-Function
unless	O	O
you	O	O
override/overwrite	O	O
that	O	O
method	O	O
in	O	O
your	O	O
class	O	O
B	O	B-Class
and	O	O
you	O	O
want	O	O
to	O	O
execute	O	O
the	O	O
original	O	O
implementation.	O	O
.	O	O
so	O	O
we	O	O
can	O	O
say	O	O
that	O	O
calling	O	O
super().test_a()	B-Code_Block	B-Function
or	O	O
self.test_a()	B-Code_Block	B-Function
it	O	O
's	O	O
the	O	O
same	O	O
given	O	O
that	O	O
you	O	O
'll	O	O
never	O	O
override/overwrite	O	O
the	O	O
original	O	O
test_a()	B-Code_Block	B-Function
in	O	O
your	O	O
subclasses.	O	O
.	O	O
however	O	O
is	O	O
a	O	O
nonsense	O	O
to	O	O
use	O	O
super()	B-Code_Block	B-Function
if	O	O
not	O	O
for	O	O
an	O	O
override/overwrite	O	O

Usually	O	O
you	O	O
will	O	O
want	O	O
to	O	O
use	O	O
self.test_a()	B-Code_Block	B-Function
to	O	O
call	O	O
an	O	O
inherited	O	O
method	O	O
.	O	O

However	O	O
,	O	O
in	O	O
some	O	O
rare	O	O
situations	O	O
you	O	O
might	O	O
want	O	O
to	O	O
use	O	O
super().test_a()	B-Code_Block	B-Function
even	O	O
though	O	O
it	O	O
seems	O	O
to	O	O
do	O	O
the	O	O
same	O	O
thing	O	O
.	O	O

They	O	O
're	O	O
not	O	O
equivalent	O	O
,	O	O
even	O	O
though	O	O
they	O	O
have	O	O
the	O	O
same	O	O
behavior	O	O
in	O	O
your	O	O
example	O	O
.	O	O

To	O	O
explore	O	O
the	O	O
differences	O	O
,	O	O
lets	O	O
make	O	O
two	O	O
versions	O	O
of	O	O
your	O	O
B	B-Code_Block	B-Class
class	O	O
,	O	O
one	O	O
with	O	O
each	O	O
kind	O	O
of	O	O
call	O	O
,	O	O
then	O	O
make	O	O
two	O	O
C	B-Code_Block	B-Class
classes	O	O
that	O	O
further	O	O
extend	O	O
the	O	O
B	B-Code_Block	B-Class
classes	O	O
and	O	O
override	O	O
test_a	B-Code_Block	B-Function
:	O	O

When	O	O
you	O	O
call	O	O
the	O	O
test_b()	B-Code_Block	B-Function
method	O	O
on	O	O
C1	B-Code_Block	B-Class
and	O	O
C2	B-Code_Block	B-Class
instances	O	O
you	O	O
'll	O	O
get	O	O
different	O	O
results	O	O
,	O	O
even	O	O
though	O	O
B1	B-Code_Block	B-Class
and	O	O
B2	B-Code_Block	B-Class
behave	O	O
the	O	O
same	O	O
:	O	O

This	O	O
is	O	O
because	O	O
the	O	O
super()	B-Code_Block	B-Function
call	O	O
in	O	O
B2.test_b	B-Code_Block	B-Function
tells	O	O
Python	O	B-Language
that	O	O
you	O	O
want	O	O
to	O	O
skip	O	O
the	O	O
version	O	O
of	O	O
test_a	B-Code_Block	B-Function
in	O	O
any	O	O
more	O	O
derived	O	O
class	O	O
and	O	O
always	O	O
call	O	O
an	O	O
implementation	O	O
from	O	O
a	O	O
parent	O	O
class	O	O
.	O	O

(	O	O
Actually	O	O
,	O	O
I	O	O
suppose	O	O
it	O	O
could	O	O
be	O	O
a	O	O
sibling	O	O
class	O	O
in	O	O
a	O	O
multiple	O	O
inheritance	O	O
situation	O	O
,	O	O
but	O	O
that	O	O
's	O	O
getting	O	O
even	O	O
more	O	O
obscure	O	O
.	O	O
)	O	O

Like	O	O
I	O	O
said	O	O
at	O	O
the	O	O
top	O	O
,	O	O
you	O	O
usually	O	O
want	O	O
to	O	O
allow	O	O
a	O	O
more-derived	O	O
class	O	O
like	O	O
the	O	O
Cs	B-Code_Block	B-Class
to	O	O
override	O	O
the	O	O
behavior	O	O
of	O	O
the	O	O
inherited	O	O
methods	O	O
you	O	O
're	O	O
calling	O	O
in	O	O
your	O	O
less-derived	O	O
class	O	O
.	O	O

That	O	O
means	O	O
that	O	O
most	O	O
of	O	O
the	O	O
time	O	O
using	O	O
self.whatever	B-Code_Block	B-Code_Block
is	O	O
the	O	O
way	O	O
to	O	O
go	O	O
.	O	O

You	O	O
only	O	O
need	O	O
to	O	O
use	O	O
super	B-Code_Block	B-Function
when	O	O
you	O	O
're	O	O
doing	O	O
something	O	O
fancy	O	O
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
change	O	O
an	O	O
object	O	O
's	O	O
parameter	O	O
,	O	O
but	O	O
I	O	O
like	O	O
to	O	O
decide	O	O
later	O	O
about	O	O
what	O	O
's	O	O
the	O	O
parameter	O	O
that	O	O
should	O	O
change	O	O
.	O	O

I	O	O
'm	O	O
thinking	O	O
to	O	O
make	O	O
a	O	O
function	O	O
for	O	O
that	O	O
,	O	O
but	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
sample	O	O
:	O	O

How	O	O
to	O	O
make	O	O
a	O	O
function	O	O
that	O	O
returns	O	O
what	O	O
's	O	O
the	O	O
parameter	O	O
of	O	O
an	O	O
object	O	O
that	O	O
needs	O	O
to	O	O
be	O	O
changed	O	O
?	O	O

Alternatively	O	O
,	O	O
how	O	O
to	O	O
choose	O	O
which	O	O
parameter	O	O
to	O	O
change	O	O
?	O	O

(	O	O
I	O	O
..	O	O
thought	O	O
about	O	O
switch	B-Code_Block	B-Code_Block
statement	O	O
.	O	O

Is	O	O
a	O	O
good	O	O
direction	O	O
?	O	O
)	O	O

I	O	O
'm	O	O
pretty	O	O
sure	O	O
that	O	O
's	O	O
something	O	O
that	O	O
has	O	O
already	O	O
been	O	O
discussed	O	O
on	O	O
internet	O	O
.	O	O

I	O	O
've	O	O
read	O	O
everything	O	O
about	O	O
functions	O	O
and	O	O
could	O	O
n't	O	O
find	O	O
the	O	O
solution	O	O
,	O	O
so	O	O
I	O	O
guess	O	O
I	O	O
'm	O	O
searching	O	O
using	O	O
wrong	O	O
keywords	O	O
.	O	O

If	O	O
Carinherits	B-Code_Block	B-Variable
from	O	O
NSObject	B-Code_Block	B-Class
you	O	O
get	O	O
key-value-coding	O	O
for	O	O
free	O	O
and	O	O
can	O	O
change	O	O
the	O	O
value	O	O
with	O	O
setValue:forKey	B-Code_Block	B-Code_Block

You	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
create	O	O
a	O	O
function	O	O
you	O	O
can	O	O
use	O	O
KVC	O	O
like	O	O
this	O	O
after	O	O
you	O	O
inherit	O	O
from	O	O
NSObject	B-Code_Block	B-Class
,	O	O
or	O	O
you	O	O
can	O	O
make	O	O
a	O	O
new	O	O
func	O	O
that	O	O
guards	O	O
again	O	O
bad	O	O
property	O	O
names	O	O
.	O	O

Keep	O	O
in	O	O
mind	O	O
that	O	O
this	O	O
code	O	O
will	O	O
crash	O	O
if	O	O
you	O	O
enter	O	O
bad	O	O
property	O	O
names	O	O
.	O	O

Hope	O	O
this	O	O
answers	O	O
your	O	O
question	O	O
.	O	O

I	O	O
have	O	O
been	O	O
using	O	O
haskell	O	B-Language
for	O	O
a	O	O
while	O	O
now	O	O
.	O	O

I	O	O
understand	O	O
most/some	O	O
of	O	O
the	O	O
concepts	O	O
but	O	O
I	O	O
still	O	O
do	O	O
not	O	O
understand	O	O
,	O	O
what	O	O
exactly	O	O
does	O	O
haskells	O	B-Language
type	O	O
system	O	O
allow	O	O
me	O	O
to	O	O
do	O	O
that	O	O
I	O	O
cannot	O	O
do	O	O
in	O	O
another	O	O
statically	O	O
typed	O	O
language	O	O
.	O	O

I	O	O
just	O	O
intuitively	O	O
know	O	O
that	O	O
haskells	O	B-Language
type	O	O
system	O	O
is	O	O
better	O	O
in	O	O
every	O	O
imaginable	O	O
way	O	O
compared	O	O
to	O	O
the	O	O
type	O	O
system	O	O
in	O	O
C	O	B-Language
,	O	O
C++	O	B-Language
or	O	O
java	O	B-Language
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
explain	O	O
it	O	O
logically	O	O
,	O	O
primarily	O	O
because	O	O
of	O	O
a	O	O
lack	O	O
of	O	O
in	O	O
depth	O	O
knowledge	O	O
about	O	O
the	O	O
differences	O	O
in	O	O
type	O	O
systems	O	O
between	O	O
haskell	O	B-Language
and	O	O
other	O	O
statically	O	O
typed	O	O
languages	O	O
.	O	O

Could	O	O
someone	O	O
give	O	O
me	O	O
examples	O	O
of	O	O
how	O	O
haskells	O	B-Language
type	O	O
system	O	O
is	O	O
more	O	O
helpful	O	O
compared	O	O
to	O	O
a	O	O
language	O	O
with	O	O
a	O	O
static	O	B-Data_Type
type	O	O
system	O	O
.	O	O

Examples	O	O
,	O	O
that	O	O
are	O	O
terse	O	O
and	O	O
can	O	O
be	O	O
succinctly	O	O
expressed	O	O
would	O	O
be	O	O
nice	O	O
.	O	O

The	O	O
Haskell	O	B-Language
type	O	O
system	O	O
has	O	O
a	O	O
number	O	O
of	O	O
features	O	O
which	O	O
all	O	O
exist	O	O
in	O	O
other	O	O
languages	O	O
,	O	O
but	O	O
are	O	O
rarely	O	O
combined	O	O
within	O	O
a	O	O
single	O	O
,	O	O
consistent	O	O
language	O	O
:	O	O

it	O	O
is	O	O
a	O	O
sound	O	O
,	O	O
static	O	B-Data_Type
type	O	O
system	O	O
,	O	O
meaning	O	O
that	O	O
a	O	O
number	O	O
of	O	O
errors	O	O
are	O	O
guaranteed	O	O
not	O	O
to	O	O
happen	O	O
at	O	O
runtime	O	O
without	O	O
needing	O	O
runtime	O	O
type	O	O
checks	O	O
(	O	O
this	O	O
is	O	O
also	O	O
the	O	O
case	O	O
in	O	O
Caml	O	B-Language
,	O	O
SML	O	B-Language
and	O	O
almost	O	O
the	O	O
case	O	O
in	O	O
Java	O	B-Language
,	O	O
but	O	O
not	O	O
in	O	O
,	O	O
say	O	O
,	O	O
Lisp	O	B-Language
,	O	O
Python	O	B-Language
,	O	O
C	O	B-Language
,	O	O
or	O	O
C++	O	B-Language
)	O	O
;	O	O

it	O	O
peforms	O	O
static	O	B-Data_Type
type	O	O
reconstruction	O	O
,	O	O
meaning	O	O
that	O	O
the	O	O
programmer	O	O
does	O	O
n't	O	O
need	O	O
to	O	O
write	O	O
types	O	O
unless	O	O
he	O	O
wants	O	O
to	O	O
,	O	O
the	O	O
compiler	O	B-Application
will	O	O
reconstruct	O	O
them	O	O
on	O	O
its	O	O
own	O	O
(	O	O
this	O	O
is	O	O
also	O	O
the	O	O
case	O	O
in	O	O
Caml	O	B-Language
and	O	O
SML	O	B-Language
,	O	O
but	O	O
not	O	O
in	O	O
Java	O	B-Language
or	O	O
C	O	B-Language
)	O	O
;	O	O

it	O	O
supports	O	O
impredicative	O	O
polymorphism	O	O
(	O	O
type	O	O
variables	O	O
)	O	O
,	O	O
even	O	O
at	O	O
higher	O	O
kinds	O	O
(	O	O
unlike	O	O
Caml	O	B-Language
and	O	O
SML	O	B-Language
,	O	O
or	O	O
any	O	O
other	O	O
production-ready	O	O
language	O	O
known	O	O
to	O	O
me	O	O
)	O	O
;	O	O

it	O	O
has	O	O
good	O	O
support	O	O
for	O	O
overloading	O	O
(	O	O
type	O	O
classes	O	O
)	O	O
(	O	O
unlike	O	O
Caml	O	B-Language
and	O	O
SML	O	B-Language
)	O	O
.	O	O

Whether	O	O
any	O	O
of	O	O
those	O	O
make	O	O
Haskell	O	B-Language
a	O	O
better	O	O
language	O	O
is	O	O
open	O	O
to	O	O
discussion	O	O
—	O	O
for	O	O
example	O	O
,	O	O
while	O	O
I	O	O
happen	O	O
to	O	O
like	O	O
type	O	O
classes	O	O
a	O	O
lot	O	O
,	O	O
I	O	O
know	O	O
quite	O	O
a	O	O
few	O	O
Caml	O	B-Language
programmers	O	O
who	O	O
strongly	O	O
dislike	O	O
overloading	O	O
and	O	O
prefer	O	O
to	O	O
use	O	O
the	O	O
module	O	O
system	O	O
.	O	O

On	O	O
the	O	O
other	O	O
hand	O	O
,	O	O
the	O	O
Haskell	O	B-Language
type	O	O
system	O	O
lacks	O	O
a	O	O
few	O	O
features	O	O
that	O	O
other	O	O
languages	O	O
support	O	O
elegantly	O	O
:	O	O

it	O	O
has	O	O
no	O	O
support	O	O
for	O	O
runtime	O	O
dispatch	O	O
(	O	O
unlike	O	O
Java	O	B-Language
,	O	O
Lisp	O	B-Language
,	O	O
and	O	O
Julia	O	B-Language
)	O	O
;	O	O

it	O	O
has	O	O
no	O	O
support	O	O
for	O	O
existential	O	O
types	O	O
and	O	O
GADTs	O	O
(	O	O
these	O	O
are	O	O
both	O	O
GHC	O	O
extensions	O	O
)	O	O
;	O	O

it	O	O
has	O	O
no	O	O
support	O	O
for	O	O
dependent	O	O
types	O	O
(	O	O
unlike	O	O
Coq	O	B-Language
,	O	O
Agda	O	B-Language
and	O	O
Idris	O	B-Language
)	O	O
.	O	O

Again	O	O
,	O	O
whether	O	O
any	O	O
of	O	O
these	O	O
are	O	O
desirable	O	O
features	O	O
in	O	O
a	O	O
general-purpose	O	O
programming	O	O
language	O	O
is	O	O
open	O	O
to	O	O
discussion	O	O
.	O	O

One	O	O
major	O	O
difference	O	O
between	O	O
Haskell	O	B-Language
's	O	O
type	O	O
system	O	O
and	O	O
that	O	O
of	O	O
most	O	O
OO	O	O
languages	O	O
is	O	O
that	O	O
the	O	O
ability	O	O
for	O	O
a	O	O
function	O	O
to	O	O
have	O	O
side	O	O
effects	O	O
is	O	O
represented	O	O
by	O	O
a	O	O
data	O	O
type	O	O
(	O	O
a	O	O
monad	O	B-Data_Type
such	O	O
as	O	O
IO	B-Code_Block	B-Data_Type
)	O	O
.	O	O

This	O	O
allows	O	O
you	O	O
to	O	O
write	O	O
pure	O	O
functions	O	O
that	O	O
the	O	O
compiler	O	B-Application
can	O	O
verify	O	O
are	O	O
side-effect-free	O	O
and	O	O
referentially	O	O
transparent	O	O
,	O	O
which	O	O
generally	O	O
means	O	O
that	O	O
they	O	O
're	O	O
easier	O	O
to	O	O
understand	O	O
and	O	O
less	O	O
prone	O	O
to	O	O
bugs	O	O
.	O	O

It	O	O
's	O	O
possible	O	O
to	O	O
write	O	O
side-effect-free	O	O
code	O	O
in	O	O
other	O	O
languages	O	O
,	O	O
but	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
the	O	O
compiler	O	B-Application
's	O	O
help	O	O
in	O	O
doing	O	O
so	O	O
.	O	O

Haskell	O	B-Language
makes	O	O
you	O	O
think	O	O
more	O	O
carefully	O	O
about	O	O
which	O	O
parts	O	O
of	O	O
your	O	O
program	O	O
need	O	O
to	O	O
have	O	O
side	O	O
effects	O	O
(	O	O
such	O	O
as	O	O
I/O	O	B-Data_Type
or	O	O
mutable	O	B-Data_Type
variables	O	O
)	O	O
and	O	O
which	O	O
parts	O	O
should	O	O
be	O	O
pure	O	O
.	O	O

Also	O	O
,	O	O
although	O	O
it	O	O
's	O	O
not	O	O
quite	O	O
part	O	O
of	O	O
the	O	O
type	O	O
system	O	O
itself	O	O
,	O	O
the	O	O
fact	O	O
that	O	O
function	O	O
definitions	O	O
in	O	O
Haskell	O	B-Language
are	O	O
expressions	O	O
(	O	O
rather	O	O
than	O	O
lists	O	O
of	O	O
statements	O	O
)	O	O
means	O	O
that	O	O
more	O	O
of	O	O
the	O	O
code	O	O
is	O	O
subject	O	O
to	O	O
type-checking	O	O
.	O	O

In	O	O
languages	O	O
like	O	O
C++	O	B-Language
and	O	O
Java	O	B-Language
,	O	O
it	O	O
's	O	O
often	O	O
possible	O	O
to	O	O
introduce	O	O
logic	O	O
errors	O	O
by	O	O
writing	O	O
statements	O	O
in	O	O
the	O	O
wrong	O	O
order	O	O
,	O	O
since	O	O
the	O	O
compiler	O	B-Application
does	O	O
n't	O	O
have	O	O
a	O	O
way	O	O
to	O	O
determine	O	O
that	O	O
one	O	O
statement	O	O
must	O	O
precede	O	O
another	O	O
.	O	O

For	O	O
example	O	O
,	O	O
you	O	O
might	O	O
have	O	O
one	O	O
line	O	O
that	O	O
modifies	O	O
an	O	O
object	O	O
's	O	O
state	O	O
,	O	O
and	O	O
another	O	O
line	O	O
that	O	O
does	O	O
something	O	O
important	O	O
based	O	O
on	O	O
that	O	O
state	O	O
,	O	O
and	O	O
it	O	O
's	O	O
up	O	O
to	O	O
you	O	O
to	O	O
ensure	O	O
that	O	O
these	O	O
things	O	O
happen	O	O
in	O	O
the	O	O
correct	O	O
order	O	O
.	O	O

In	O	O
Haskell	O	B-Language
,	O	O
this	O	O
kind	O	O
of	O	O
ordering	O	O
dependency	O	O
tends	O	O
to	O	O
be	O	O
expressed	O	O
through	O	O
function	O	O
composition	O	O
—	O	O
e.g	O	O
.	O	O
f	B-Code_Block	B-Function
(	I-Code_Block	I-Function
g	I-Code_Block	I-Function
x	I-Code_Block	I-Function
)	I-Code_Block	I-Function
means	O	O
that	O	O
g	B-Code_Block	B-Function
must	O	O
run	O	O
first	O	O
—	O	O
and	O	O
the	O	O
compiler	O	B-Application
can	O	O
check	O	O
the	O	O
return	O	O
type	O	O
of	O	O
g	B-Code_Block	B-Function
against	O	O
the	O	O
argument	O	O
type	O	O
of	O	O
f	B-Code_Block	B-Function
to	O	O
make	O	O
sure	O	O
you	O	O
have	O	O
n't	O	O
composed	O	O
them	O	O
the	O	O
wrong	O	O
way	O	O
.	O	O

https://www.youtube.com/watch?v=XPpsI8mWKmg	O	O

This	O	O
video	O	B-User_Interface_Element
has	O	O
closed	O	O
captions	O	O
.	O	O

However	O	O
,	O	O
response	O	O
always	O	O
returns	O	O
isCC	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
false	I-Code_Block	I-Code_Block
.	O	O

It	O	O
happens	O	O
with	O	O
more	O	O
videos	O	B-User_Interface_Element
as	O	O
well	O	O
.	O	O

Can	O	O
anyone	O	O
tell	O	O
me	O	O
why	O	O
?	O	O

https://developers.google.com/youtube/v3/docs/captions	O	O

This	O	O
is	O	O
the	O	O
response	O	O
:	O	O

Thank	O	O
you	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
set	O	O
closed	O	O
captions	O	O
for	O	O
my	O	O
own	O	O
video	O	B-User_Interface_Element
and	O	O
got	O	O
the	O	O
same	O	O
result	O	O
.	O	O

I	O	O
believe	O	O
that	O	O
in	O	O
the	O	O
player	O	O
,	O	O
the	O	O
"	O	O
CC	O	B-User_Interface_Element
"	O	O
you	O	O
see	O	O
is	O	O
actually	O	O
referring	O	O
to	O	O
subtitles	O	O
.	O	O

There	O	O
's	O	O
an	O	O
important	O	O
distinction	O	O
between	O	O
subtitles	O	O
and	O	O
closed	O	O
captioning	O	O
(	O	O
see	O	O
here	O	O
and	O	O
here	O	O
)	O	O
.	O	O

.	O	O
.	O	O

Therefore	O	O
,	O	O
I	O	O
believe	O	O
isCC	B-Code_Block	B-Variable
will	O	O
only	O	O
be	O	O
true	B-Code_Block	O
for	O	O
videos	O	B-User_Interface_Element
that	O	O
include	O	O
this	O	O
kind	O	O
of	O	O
captioning	O	O
intended	O	O
for	O	O
people	O	O
who	O	O
might	O	O
not	O	O
be	O	O
able	O	O
to	O	O
hear	O	O
what	O	O
's	O	O
happening	O	O
in	O	O
the	O	O
video	O	B-User_Interface_Element
,	O	O
as	O	O
opposed	O	O
to	O	O
just	O	O
general	O	O
captions	O	O
that	O	O
people	O	O
can	O	O
put	O	O
onto	O	O
their	O	O
videos	O	B-User_Interface_Element
.	O	O

I	O	O
think	O	O
that	O	O
in	O	O
almost	O	O
all	O	O
cases	O	O
,	O	O
only	O	O
high	O	O
quality	O	O
,	O	O
paid	O	O
movies	O	O
on	O	O
YouTube	O	B-Website
will	O	O
have	O	O
these	O	O
kinds	O	O
of	O	O
captions	O	O
.	O	O

In	O	O
that	O	O
sense	O	O
,	O	O
the	O	O
isCC	B-Code_Block	B-Variable
property	O	O
works	O	O
the	O	O
way	O	O
it	O	O
's	O	O
supposed	O	O
to	O	O
.	O	O

I	O	O
think	O	O
the	O	O
problem	O	O
might	O	O
be	O	O
in	O	O
your	O	O
syntax	O	O
:	O	O

or	O	O
maybe	O	O

I	O	O
dont	O	O
have	O	O
much	O	O
experience	O	O
with	O	O
the	O	O
youtube	O	B-Library
api	O	I-Library
but	O	O
checking	O	O
out	O	O
the	O	O
documentation	O	O
I	O	O
found	O	O
code	O	O
above	O	O
.	O	O

I	O	O
am	O	O
learning	O	O
Collection	O	B-Library
Framework	O	I-Library
on	O	O
this	O	O
website	O	O
:	O	O
http://way2java.com/collections/hashtable-about/	O	O
.	O	O

After	O	O
reading	O	O
all	O	O
the	O	O
methods	O	O
of	O	O
Hashtable	B-Code_Block	B-Class
I	O	O
see	O	O
two	O	O
methods	O	O
to	O	O
access	O	O
the	O	O
table	O	O
's	O	O
keys	O	O
:	O	O

Set	B-Code_Block	B-Function
keys()	I-Code_Block	I-Function
:	O	O
Returns	O	O
a	O	O
Set	B-Code_Block	B-Class
object	O	O
containing	O	O
all	O	O
the	O	O
keys	O	O

Set	B-Code_Block	B-Function
keySet()	I-Code_Block	I-Function
:	O	O
Returns	O	O
a	O	O
Set	B-Code_Block	B-Class
object	O	O
containing	O	O
all	O	O
the	O	O
keys	O	O
of	O	O
Hashtable	B-Code_Block	B-Class
.	O	O

One	O	O
similarity	O	O
is	O	O
Hashtable	B-Code_Block	B-Class
and	O	O
Set	B-Code_Block	B-Class
does	O	O
not	O	O
allow	O	O
duplicates	O	O
.	O	O

Adding	O	O
and	O	O
removing	O	O
elements	O	O
in	O	O
Set	B-Code_Block	B-Class
also	O	O
reflects	O	O
in	O	O
Hashtable	B-Code_Block	B-Class

Both	O	O
of	O	O
them	O	O
return	O	O
a	O	O
Set	B-Code_Block	B-Class
object	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
see	O	O
the	O	O
different	O	O
between	O	O
them	O	O
.	O	O

Anyone	O	O
can	O	O
tell	O	O
me	O	O
about	O	O
this	O	O
?	O	O

keys()	B-Code_Block	B-Function
does	O	O
n't	O	O
return	O	O
a	O	O
Set	B-Code_Block	B-Class
,	O	O
it	O	O
returns	O	O
an	O	O
Enumeration<K>	B-Code_Block	B-Code_Block
.	O	O

Hashtable	B-Code_Block	B-Class
is	O	O
a	O	O
very	O	O
legacy	O	O
class	O	O
no	O	O
longer	O	O
recommended	O	O
for	O	O
use	O	O
.	O	O

It	O	O
is	O	O
replaced	O	O
by	O	O
HashMap	B-Code_Block	B-Class
,	O	O
or	O	O
ConcurrentHashMap	B-Code_Block	B-Class
†	O	O
.	O	O

It	O	O
existed	O	O
before	O	O
the	O	O
JCF	O	B-Library
did	O	O
,	O	O
therefore	O	O
the	O	O
standard	O	O
way	O	O
to	O	O
get	O	O
to	O	O
the	O	O
keys	O	B-Class
at	O	O
the	O	O
start	O	O
was	O	O
through	O	O
an	O	O
Enumeration	B-Code_Block	B-Class
-	O	O
the	O	O
original	O	O
Java	O	B-Language
interface	O	O
for	O	O
moving	O	O
through	O	O
a	O	O
collection	O	O
of	O	O
objects	O	O
.	O	O

Then	O	O
came	O	O
Java	O	B-Language
1.2	O	B-Version
,	O	O
and	O	O
the	O	O
JCF	O	B-Library
.	O	O

Hashtable	B-Code_Block	B-Class
was	O	O
retrofitted	O	O
for	O	O
the	O	O
Map	B-Code_Block	O
interface	O	O
with	O	O
the	O	O
keySet()	B-Code_Block	B-Function
method	O	O
that	O	O
returned	O	O
a	O	O
Set	B-Code_Block	B-Class
(	O	O
also	O	O
introduced	O	O
with	O	O
the	O	O
JCF	O	B-Library
)	O	O
.	O	O

The	O	O
keys	B-Code_Block	B-Variable
method	O	O
was	O	O
retained	O	O
for	O	O
legacy	O	O
compatibility	O	O
reasons	O	O
.	O	O

The	O	O
Set	B-Code_Block	B-Class
returned	O	O
from	O	O
the	O	O
new	O	O
method	O	O
achieves	O	O
two	O	O
things	O	O
:	O	O

conveys	O	O
intent	O	O
-	O	O
it	O	O
reinforces	O	O
the	O	O
fact	O	O
that	O	O
the	O	O
keys	O	O
of	O	O
a	O	O
Hashtable	B-Code_Block	B-Class
are	O	O
a	O	O
mathematical	O	O
set	O	O

implements	O	O
Iterable	B-Code_Block	B-Class
<T>,	I-Code_Block	I-Class
which	O	O
replaces	O	O
Enumerable<T>	B-Code_Block	B-Class

†	O	O
From	O	O
the	O	O
Hashtable	B-Code_Block	B-Class
documentation	I-Code_Block	I-Class
:	O	O

The	O	O
method	O	O
keys()	O	B-Function
in	O	O
Hashtable	O	B-Class
actually	O	O
return	O	O
Enumeration	O	B-Class
of	O	O
keys	O	O
:	O	O

Returns	O	O
an	O	O
enumeration	O	B-Class
of	O	O
the	O	O
keys	O	O
in	O	O
this	O	O
hashtable	O	B-Class
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
update	O	O
a	O	O
record	O	O
in	O	O
mongoDb	O	B-Application
.	O	O

But	O	O
i	O	O
am	O	O
getting	O	O
an	O	O
error	O	O

Here	O	O
i	O	O
dont	O	O
know	O	O
how	O	O
to	O	O
update	O	O
.	O	O

May	O	O
be	O	O
i	O	O
am	O	O
following	O	O
the	O	O
wrong	O	O
syntax	O	O
for	O	O
update	O	O
.	O	O

Could	O	O
anyone	O	O
lend	O	O
a	O	O
helping	O	O
hand	O	O
?	O	O

Here	O	O
i	O	O
am	O	O
using	O	O
upsert	O	O
because	O	O
if	O	O
record	O	O
not	O	O
found	O	O
for	O	O
update	O	O
then	O	O
it	O	O
will	O	O
insert	O	O
a	O	O
new	O	O
record	O	O
.	O	O

You	O	O
are	O	O
missing	O	O
{	B-Code_Block	B-Code_Block
in	O	O
your	O	O
update	O	O
document	O	O
.	O	O

{	B-Code_Block	B-Code_Block
"	I-Code_Block	I-Code_Block
$set	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
student_record}	I-Code_Block	I-Code_Block
.	O	O

Also	O	O
you	O	O
need	O	O
to	O	O
convert	O	O
"	O	O
student_grade	O	B-Variable
"	O	O
to	O	O
float	O	B-Data_Type
.	O	O

By	O	O
default	O	O
upsert	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
False	I-Code_Block	I-Code_Block
so	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
specify	O	O
.	O	O

Your	O	O
if	O	O
statement	O	O
can	O	O
by	O	O
simplify	O	O
as	O	O
:	O	O
if	B-Code_Block	B-Code_Block
flag.lower()	I-Code_Block	I-Code_Block
==	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
y	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block

Last	O	O
and	O	O
not	O	O
least	O	O
the	O	O
update	B-Code_Block	B-Function
method	O	O
is	O	O
deprecated	O	O
.	O	O

You	O	O
should	O	O
use	O	O
the	O	O
new	O	O
API	O	O
.	O	O

update_one	B-Code_Block	O

I	O	O
'm	O	O
using	O	O
Rails	O	B-Library
1.2.3	O	B-Version
on	O	O
a	O	O
project	O	O
.	O	O

(	O	O
Upgrading	O	O
rails	O	B-Library
is	O	O
not	O	O
an	O	O
option	O	O
)	O	O
.	O	O

I	O	O
've	O	O
created	O	O
a	O	O
simple	O	O
test	O	O
web-service	O	O
using	O	O
Rails	O	B-Library
.	O	O

I	O	O
've	O	O
tested	O	O
using	O	O
the	O	O
Rails	O	B-Library
invoke	O	O
scaffold	O	O
.	O	O

It	O	O
seems	O	O
to	O	O
generate	O	O
the	O	O
response	O	O
with	O	O
no	O	O
problems	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
setup	O	O
a	O	O
client	O	B-Application
via	O	O
.NET	O	B-Library
.	O	O

I	O	O
've	O	O
created	O	O
an	O	O
ASP.NET	O	B-Library
Web	O	O
App	O	O
project	O	O
in	O	O
C#	O	B-Language
.	O	O

I	O	O
am	O	O
adding	O	O
a	O	O
"	O	O
Web	O	O
Reference	O	O
"	O	O
,	O	O
add	O	O
the	O	O
Reference	O	O
URL	O	O
into	O	O
the	O	O
URL	O	O
field	O	O
of	O	O
the	O	O
wizard	O	B-User_Interface_Element
,	O	O

then	O	O
I	O	O
receive	O	O
an	O	O
error	O	O
from	O	O
the	O	O
wizard	O	B-User_Interface_Element
:	O	O

My	O	O
code	O	O
is	O	O
:	O	O

Are	O	O
there	O	O
any	O	O
known	O	O
issues	O	O
between	O	O
ActionWebService	O	B-Application
and	O	O
.NET	O	B-Library
or	O	O
am	O	O
I	O	O
doing	O	O
something	O	O
wrong	O	O
?	O	O

Is	O	O
my	O	O
URL	O	O
correct	O	O
for	O	O
a	O	O
rails	O	B-Library
web-service	O	O
?	O	O

This	O	O
has	O	O
probably	O	O
been	O	O
answered	O	O
elsewhere	O	O
,	O	O
but	O	O
since	O	O
this	O	O
question	O	O
pops	O	O
up	O	O
when	O	O
searching	O	O
google	O	B-Website
for	O	O
actionwebservice	O	B-Application
and	O	O
get	O	O
requests	O	O
,	O	O
I	O	O
thought	O	O
I	O	O
would	O	O
answer	O	O
it	O	O
here	O	O
.	O	O

By	O	O
default	O	O
AWS	O	B-Application
refuses	O	O
non-POST	O	B-Function
requests	O	O
.	O	O

Specifically	O	O
it	O	O
has	O	O
code	O	O
in	O	O
action_controller_dispatcher.rb	O	B-File_Name
that	O	O
reads	O	O
:	O	O

Basically	O	O
you	O	O
have	O	O
to	O	O
either	O	O
set	O	O
up	O	O
the	O	O
request	O	O
to	O	O
POST	O	B-Function
the	O	O
request	O	O
instead	O	O
of	O	O
GETting	O	B-Function
it	O	O
.	O	O

Or	O	O
you	O	O
have	O	O
to	O	O
override	O	O
AWS	O	B-Application
's	O	O
handling	O	O
of	O	O
GET	O	B-Function
requests	O	O
.	O	O

(	O	O
You	O	O
might	O	O
try	O	O
editing	O	O
the	O	O
code	O	O
inside	O	O
the	O	O
gem	O	O
,	O	O
but	O	O
(	O	O
1)	O	O
that	O	O
will	O	O
get	O	O
overwritten	O	O
when	O	O
you	O	O
update	O	O
the	O	O
gem	O	O
and	O	O
(	O	O
2)	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
how	O	O
good	O	O
an	O	O
idea	O	O
that	O	O
is	O	O
in	O	O
general	O	O
and	O	O
(	O	O
3)	O	O
I	O	O
've	O	O
never	O	O
tried	O	O
it	O	O
.	O	O

The	O	O
former	O	O
is	O	O
likely	O	O
more	O	O
appropriate	O	O
if	O	O
you	O	O
have	O	O
control	O	O
of	O	O
the	O	O
code	O	O
generating	O	O
the	O	O
request	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
,	O	O
Zack	O	B-User_Name
Chandler	O	I-User_Name
had	O	O
a	O	O
workaround	O	O
(	O	O
for	O	O
QuickBooks	O	B-Application
's	O	O
connection	O	O
to	O	O
a	O	O
web-service	O	O
,	O	O
but	O	O
it	O	O
should	O	O
work	O	O
in	O	O
any	O	O
case	O	O
)	O	O
,	O	O
here	O	O
.	O	O

I	O	O
'm	O	O
quoting	O	O
it	O	O
below	O	O
in	O	O
case	O	O
the	O	O
url	O	O
changes	O	O
.	O	O

Obviously	O	O
the	O	O
code	O	O
inside	O	O
the	O	O
dispatch_web_service_request	O	B-Function
method	O	O
is	O	O
QuickBooks	O	B-Application
specific	O	O
,	O	O
but	O	O
you	O	O
should	O	O
get	O	O
the	O	O
idea	O	O
.	O	O

Hope	O	O
this	O	O
helps	O	O
,	O	O
and	O	O
I	O	O
hope	O	O
Zack	O	B-User_Name
does	O	O
n't	O	O
mind	O	O
me	O	O
reposting	O	O
.	O	O

the	O	O
problem	O	O
is	O	O
I	O	O
got	O	O
large	O	O
text	O	O
file	O	O
.	O	O

Let	O	O
it	O	O
be	O	O

I	O	O
need	O	O
to	O	O
compare	O	O
every	O	O
3rd	O	O
symbol	O	O
in	O	O
this	O	O
text	O	O
with	O	O
value	O	O
(	O	O
e.g	O	O
.	O	O
'	B-Code_Block	B-Value
c'	I-Code_Block	I-Value
)	O	O
and	O	O
if	O	O
true	O	B-Value
,	O	O
I	O	O
want	O	O
to	O	O
add	O	O
1	B-Code_Block	B-Value
to	O	O
counter	O	O
i	B-Code_Block	B-Variable
.	O	O

I	O	O
thought	O	O
to	O	O
use	O	O
grep	B-Code_Block	B-Code_Block
but	O	O
it	O	O
seems	O	O
this	O	O
function	O	O
would	O	O
n't	O	O
suite	O	O
for	O	O
my	O	O
purpose	O	O
.	O	O

So	O	O
I	O	O
need	O	O
your	O	O
help	O	O
or	O	O
advice	O	O
.	O	O

More	O	O
than	O	O
that	O	O
,	O	O
I	O	O
want	O	O
to	O	O
extract	O	O
certain	O	O
values	O	O
from	O	O
this	O	O
string	O	B-Data_Type
to	O	O
a	O	O
vector	O	B-Data_Structure
.	O	O

4	O	O
example	O	O
,	O	O
i	O	O
want	O	O
to	O	O
extract	O	O
4:10	O	B-Value
symbols	O	O
,	O	O
e.g	O	O
.	O	O

Thank	O	O
you	O	O
in	O	O
advance	O	O
.	O	O

P.S	O	O
.	O	O

I	O	O
know	O	O
it	O	O
's	O	O
not	O	O
the	O	O
best	O	O
idea	O	O
to	O	O
write	O	O
script	O	O
i	O	O
need	O	O
in	O	O
R	O	B-Language
,	O	O
but	O	O
I	O	O
'm	O	O
curious	O	O
if	O	O
its	O	O
possible	O	O
to	O	O
write	O	O
it	O	O
in	O	O
an	O	O
adequate	O	O
way	O	O
.	O	O

Edited	O	O
to	O	O
provide	O	O
a	O	O
solution	O	O
that	O	O
's	O	O
fast	O	O
for	O	O
much	O	O
larger	O	O
strings	O	B-Data_Type
:	O	O

If	O	O
you	O	O
have	O	O
a	O	O
very	O	O
long	O	O
string	O	B-Data_Type
(	O	O
on	O	O
the	O	O
order	O	O
of	O	O
millions	O	O
of	O	O
nucleotides	O	O
)	O	O
,	O	O
the	O	O
lookbehind	O	O
assertion	O	O
in	O	O
my	O	O
original	O	O
answer	O	O
(	O	O
below	O	O
)	O	O
is	O	O
too	O	O
slow	O	O
to	O	O
be	O	O
practical	O	O
.	O	O

In	O	O
that	O	O
case	O	O
,	O	O
use	O	O
something	O	O
more	O	O
like	O	O
the	O	O
following	O	O
,	O	O
which	O	O
:	O	O
(	O	O
1)	O	O
splits	O	O
the	O	O
string	O	B-Data_Type
apart	O	O
between	O	O
every	O	O
character	O	B-Data_Type
;	O	O
(	O	O
2)	O	O
uses	O	O
the	O	O
characters	O	B-Data_Type
to	O	O
fill	O	O
up	O	O
a	O	O
three	O	O
row	O	B-Data_Structure
matrix	O	I-Data_Structure
;	O	O
and	O	O
then	O	O
(	O	O
3)	O	O
extracts	O	O
the	O	O
characters	O	B-Data_Type
in	O	O
the	O	O
3rd	O	O
row	O	B-Data_Structure
of	O	O
the	O	O
matrix	O	B-Data_Structure
.	O	O

This	O	O
takes	O	O
on	O	O
the	O	O
order	O	O
of	O	O
0.2	O	O
seconds	O	O
to	O	O
process	O	O
a	O	O
3-million	O	O
character	O	O
long	O	O
string	O	B-Data_Type
.	O	O

Original	O	O
answer	O	O
:	O	O

I	O	O
might	O	O
use	O	O
substr()	B-Code_Block	B-Function
in	O	O
both	O	O
cases	O	O
.	O	O

Compare	O	O
every	O	O
third	O	O
character	O	B-Data_Type
with	O	O
"	B-Code_Block	B-Value
c	I-Code_Block	I-Value
"	I-Code_Block	I-Value
:	O	O

Extract	O	O
characters	O	B-Data_Type
4	O	B-Value
to	O	O
10	O	B-Value
:	O	O

I	O	O
install	O	O
ckeditor	O	B-Application
and	O	O
configuration	O	O
file	O	O
how	O	O
it	O	O
is	O	O
describe	O	O
there	O	O
.	O	O

but	O	O
when	O	O
I	O	O
try	O	O
to	O	O
edit	O	O
or	O	O
create	O	O
HTML	O	B-File_Type
file	O	O
in	O	O
alfresco	O	B-Application
,	O	O
the	O	O
content	O	O
area	O	O
is	O	O
empty	O	O
(	O	O
blank	O	O
)	O	O
and	O	O
I	O	O
ca	O	O
n't	O	O
edit	O	O
anything	O	O
.	O	O

What	O	O
is	O	O
the	O	O
problem	O	O
?	O	O
?	O	O

Help	O	O
please	O	O
!	O	O

:(	O	O

What	O	O
I	O	O
did	O	O
:	O	O

1)	O	O
I	O	O
downloaded	O	O
ckeditor-forms-master	O	B-Application
from	O	O
github	O	B-Website

2)	O	O
In	O	O
cmd	O	B-Application
from	O	O
parent	O	O
folder	O	O
ckeditor-forms-master	O	O
I	O	O
execute	O	O
these	O	O
commands	O	O

ant	O	B-Code_Block
clean	O	I-Code_Block
dist-jar	O	I-Code_Block

ant	O	B-Code_Block
-Dtomcat.home	O	I-Code_Block
=	O	I-Code_Block
C:/Alfresco/tomcat	O	I-Code_Block
clean	O	I-Code_Block
dist-jar	O	I-Code_Block
hotcopy-tomcat-jar	O	I-Code_Block

Both	O	O
were	O	O
successfully	O	O
executed	O	O
.	O	O

Restarted	O	O
the	O	O
alfresco	O	B-Application
tomcat	O	I-Application
server	O	I-Application
.	O	O

Now	O	O
when	O	O
I	O	O
create/edit	O	O
HTML	O	B-File_Type
file	O	O
the	O	O
context	O	O
area	O	O
is	O	O
blank	O	O
..	O	O
.	O	O

alfresco	O	B-Application
version	O	O
4.2.f	O	B-Version
.	O	O

browser	O	B-Application
google	O	I-Application
chrome	O	I-Application

I	O	O
've	O	O
been	O	O
trying	O	O
to	O	O
learn	O	O
Sencha	O	B-Library
Touch	O	I-Library
and	O	O
I	O	O
'm	O	O
stuck	O	O
on	O	O
something	O	O
that	O	O
is	O	O
probably	O	O
pretty	O	O
obvious	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
update	O	O
a	O	O
tabPanel	O	B-Class
with	O	O
a	O	O
button	O	B-User_Interface_Element
event	O	O
.	O	O

I	O	O
'd	O	O
like	O	O
for	O	O
a	O	O
tap	O	O
on	O	O
the	O	O
first	O	O
button	O	B-User_Interface_Element
to	O	O
load	O	O
'	O	O
maptestPanel	O	B-Variable
'	O	O
in	O	O
the	O	O
same	O	O
panel	O	B-User_Interface_Element
.	O	O

This	O	O
is	O	O
a	O	O
map	O	B-User_Interface_Element
loaded	O	O
from	O	O
its	O	O
own	O	O
js	O	B-File_Type
file	O	O
.	O	O

The	O	O
map	O	B-User_Interface_Element
panel	O	I-User_Interface_Element
looks	O	O
ok	O	O
by	O	O
itself	O	O
:	O	O

But	O	O
I	O	O
'm	O	O
not	O	O
seeing	O	O
how	O	O
to	O	O
properly	O	O
place	O	O
it	O	O
in	O	O
the	O	O
tabPanel	O	B-Variable

The	O	O
code	O	O
is	O	O
:	O	O

Thanks	O	O
for	O	O
any	O	O
advice	O	O
or	O	O
a	O	O
steer	O	O
in	O	O
the	O	O
right	O	O
direction	O	O
.	O	O

I	O	O
only	O	O
know	O	O
"	O	O
classic	O	O
"	O	O
sencha	O	B-Library
,	O	O
but	O	O
this	O	O
should	O	O
work	O	O
the	O	O
same	O	O
way	O	O
:	O	O
So	O	O
you	O	O
could	O	O
just	O	O
add	O	O
the	O	O
mapPanel	O	B-Class
(	O	O
but	O	O
hidden	O	O
)	O	O
to	O	O
your	O	O
tabPanel	O	B-Class
,	O	O
and	O	O
in	O	O
the	O	O
button	O	B-User_Interface_Element
handler	O	O
show	O	O
it	O	O
while	O	O
hiding	O	O
the	O	O
button	O	B-User_Interface_Element
panel	O	O
.	O	O

Besides	O	O
,	O	O
speaking	O	O
of	O	O
layouts	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
think	O	O
you	O	O
need	O	O
to	O	O
precise	O	O
layout	O	B-Variable
:	O	O
'	O	O
card	O	O
'	O	O
in	O	O
tabPanel	O	B-Variable
since	O	O
it	O	O
uses	O	O
a	O	O
card	O	O
layout	O	B-Variable
by	O	O
definition	O	O

There	O	O
's	O	O
several	O	O
things	O	O
you	O	O
need	O	O
to	O	O
do	O	O
to	O	O
fix	O	O
up	O	O
that	O	O
code	O	O
:	O	O

1)	O	O
'	O	O
Maps	O	B-Class
'	O	O
has	O	O
no	O	O
layout	O	B-Variable
.	O	O

Since	O	O
it	O	O
has	O	O
a	O	O
single	O	O
child	O	O
item	O	O
,	O	O
layout	O	B-Variable
:	O	O
'	O	O
fit	O	B-Variable
'	O	O
would	O	O
be	O	O
appropriate	O	O
here	O	O
.	O	O

2)	O	O
Only	O	O
use	O	O
fullscreen	O	B-Variable
on	O	O
the	O	O
outermost	O	O
item	O	O
,	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
the	O	O
other	O	O
items	O	O
to	O	O
be	O	O
fullscreen	O	B-Variable
since	O	O
they	O	O
are	O	O
child	O	O
items	O	O
of	O	O
other	O	O
containers	O	O
.	O	O

3)	O	O
To	O	O
dynamically	O	O
add	O	O
items	O	O
to	O	O
a	O	O
container	O	O
,	O	O
use	O	O
the	O	O
add()	O	B-Function
method	O	O
on	O	O
container	O	O
.	O	O

You	O	O
'll	O	O
also	O	O
need	O	O
to	O	O
call	O	O
doLayout()	O	B-Function
to	O	O
trigger	O	O
a	O	O
layout	O	B-Variable
for	O	O
the	O	O
container	O	O
.	O	O

However	O	O
,	O	O
in	O	O
this	O	O
case	O	O
I	O	O
do	O	O
n't	O	O
see	O	O
why	O	O
you	O	O
're	O	O
adding	O	O
the	O	O
map	O	B-User_Interface_Element
to	O	O
a	O	O
panel	O	B-User_Interface_Element
,	O	O
it	O	O
does	O	O
n't	O	O
give	O	O
you	O	O
any	O	O
extra	O	O
functionality	O	O
.	O	O

Instead	O	O
,	O	O
I	O	O
would	O	O
add	O	O
the	O	O
map	O	B-User_Interface_Element
directly	O	O
to	O	O
the	O	O
btnPanel	O	B-Variable
.	O	O

4)	O	O
The	O	O
btnPanel	O	B-Variable
has	O	O
no	O	O
layout	O	B-Variable
either	O	O
,	O	O
so	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
choose	O	O
an	O	O
appropriate	O	O
layout	O	B-Variable
there	O	O
as	O	O
well	O	O
,	O	O
possibly	O	O
the	O	O
vbox	O	O
layout	O	B-Variable
.	O	O

I	O	O
have	O	O
already	O	O
read	O	O
some	O	O
questions	O	O
about	O	O
kinesis	O	B-Application
shard	O	B-Class
and	O	O
multiple	O	O
consumers	O	B-Class
but	O	O
I	O	O
still	O	O
do	O	O
n't	O	O
understand	O	O
how	O	O
it	O	O
works	O	O
.	O	O

My	O	O
use	O	O
case	O	O
:	O	O
I	O	O
have	O	O
a	O	O
kinesis	O	B-Application
stream	O	B-Class
with	O	O
just	O	O
one	O	O
shard	O	B-Class
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
consume	O	O
this	O	O
shard	O	B-Class
using	O	O
different	O	O
lambda	O	O
function	O	O
,	O	O
each	O	O
of	O	O
them	O	O
independently	O	O
.	O	O

It	O	O
's	O	O
like	O	O
that	O	O
each	O	O
lambda	O	O
function	O	O
will	O	O
have	O	O
it	O	O
's	O	O
own	O	O
shard	O	B-Class
iterator	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
?	O	O

Set	O	O
multiple	O	O
lambda	O	O
consumers	O	B-Class
(	O	O
stream	O	B-Class
based	O	O
)	O	O
reading	O	O
from	O	O
the	O	O
same	O	O
stream/shard	O	B-Class
?	O	O

Yes	O	O
,	O	O
no	O	O
problem	O	O
with	O	O
this	O	O
!	O	O

The	O	O
number	O	O
of	O	O
shards	O	B-Class
does	O	O
n't	O	O
limit	O	O
the	O	O
number	O	O
of	O	O
consumers	O	B-Class
a	O	O
stream	O	B-Class
can	O	O
have	O	O
.	O	O

In	O	O
you	O	O
case	O	O
,	O	O
it	O	O
will	O	O
just	O	O
limit	O	O
the	O	O
number	O	O
of	O	O
concurrent	O	O
invocations	O	O
of	O	O
each	O	O
lambda	O	O
.	O	O

This	O	O
means	O	O
that	O	O
for	O	O
each	O	O
consumers	O	B-Class
,	O	O
you	O	O
can	O	O
only	O	O
have	O	O
the	O	O
number	O	O
of	O	O
shards	O	B-Class
of	O	O
concurrent	O	O
executions	O	O
.	O	O

Seethis	O	O
doc	O	O
for	O	O
more	O	O
details	O	O
.	O	O

This	O	O
is	O	O
my	O	O
enum	O	B-Data_Type

And	O	O
i	O	O
have	O	O
a	O	O
EnumDropDownListFor	O	B-Class
for	O	O
it	O	O

And	O	O
as	O	O
default	O	O
(	O	O
when	O	O
page	O	O
had	O	O
been	O	O
loaded	O	O
)	O	O
i	O	O
see	O	O
Employee	O	B-Variable
in	O	O
this	O	O
form.But	O	O
i	O	O
want	O	O
to	O	O
see	O	O
firstly	O	O
Evaluation.My	O	B-Variable
first	O	O
decision	O	O
was	O	O
changing	O	O
enum	O	B-Data_Type
query	O	O
to	O	O

But	O	O
it	O	O
was	O	O
bad	O	O
decision	O	O
for	O	O
whole	O	O
project	O	O
(	O	O
but	O	O
working	O	O
)	O	O
.So	O	O
how	O	O
easly	O	O
i	O	O
can	O	O
set	O	O
another	O	O
default	O	O
?	O	O
Any	O	O
ideas	O	O
?	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
set	O	O
up	O	O
this	O	O
Slideshow	O	B-User_Interface_Element
on	O	O
my	O	O
website	O	O
.	O	O

But	O	O
for	O	O
some	O	O
reason	O	O
is	O	O
not	O	O
working	O	O
,	O	O
even	O	O
though	O	O
I	O	O
double	O	O
checked	O	O
endless	O	O
times	O	O
.	O	O

http://jsfiddle.net/2VQ9A/	O	O

It	O	O
only	O	O
seems	O	O
to	O	O
be	O	O
working	O	O
on	O	O
jsfiddle	O	B-Application
,	O	O
its	O	O
like	O	O
its	O	O
not	O	O
being	O	O
recognized	O	O
by	O	O
my	O	O
browser	O	B-Application
or	O	O
something	O	O
weird	O	O
.	O	O

This	O	O
might	O	O
be	O	O
silly	O	O
question	O	O
and	O	O
a	O	O
simple	O	O
answer	O	O
.	O	O

This	O	O
is	O	O
my	O	O
first	O	O
time	O	O
working	O	O
with	O	O
Javascript	O	B-Language
.	O	O

I	O	O
'll	O	O
appreciate	O	O
any	O	O
help	O	O
:)	O	O
!	O	O

include	O	O
these	O	O
files	O	O

It	O	O
is	O	O
working	O	O
in	O	O
fiddle	O	B-Application
means	O	O
definetely	O	O
these	O	O
are	O	O
the	O	O
probme.Try	O	O
to	O	O
include	O	O

Check	O	O
on	O	O
you	O	O
page	O	O
that	O	O
you	O	O
added	O	O
the	O	O
jquery	B-Code_Block	B-Library
files	I-Code_Block	O
like	O	O
:	O	O

or	O	O
add	O	O
these	O	O
files	O	O
by	O	O
any	O	O
CDN	B-Code_Block	O
like	O	O
Google	B-Code_Block	B-Application
or	O	O
Microsoft	B-Code_Block	B-Application

Also	O	O
Add	O	O
you	O	O
code	O	O
after	O	O
adding	O	O
the	O	O
above	O	O
files	O	O

like	O	O
:	O	O

I	O	O
have	O	O
an	O	O
existing	O	O
table	O	B-Data_Structure
called	O	O
temp_09.jwn	O	B-File_Name
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
add	O	O
a	O	O
new	O	O
column	O	B-Data_Structure
called	O	O
cobrand_bank_id	O	B-Variable
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
where	O	O
I	O	O
can	O	O
skip	O	O
the	O	O
ALTER	O	B-Code_Block
TABLE	O	I-Code_Block
step	O	O
below	O	O
and	O	O
just	O	O
directly	O	O
write	O	O
the	O	O
insert	O	B-Code_Block
into	O	O
statement	O	O
?	O	O

No	O	O
,	O	O
you	O	O
have	O	O
to	O	O
add	O	O
the	O	O
column	O	B-Data_Structure
first	O	O
.	O	O

Schema-less	O	O
databases	O	O
(	O	O
NoSQL	O	B-Application
)	O	O
can	O	O
support	O	O
this	O	O
,	O	O
but	O	O
an	O	O
RDBMS	O	B-Application
needs	O	O
to	O	O
have	O	O
its	O	O
scheme	O	O
altered	O	O
.	O	O

It	O	O
's	O	O
kind	O	O
of	O	O
like	O	O
saying	O	O
,	O	O
"	O	O
I	O	O
bought	O	O
these	O	O
new	O	O
shoes	O	O
and	O	O
I	O	O
need	O	O
a	O	O
bin	O	O
to	O	O
store	O	O
them	O	O
,	O	O
if	O	O
I	O	O
just	O	O
toss	O	O
them	O	O
in	O	O
the	O	O
corner	O	O
will	O	O
a	O	O
bin	O	O
appear	O	O
?	O	O
"	O	O

No	O	O
,	O	O
you	O	O
have	O	O
to	O	O
get	O	O
the	O	O
bin	O	B-File_Type
first	O	O
.	O	O

There	O	O
are	O	O
several	O	O
options	O	O
to	O	O
achieve	O	O
schema	O	O
flexibility	O	O
in	O	O
an	O	O
(	O	O
SQL	O	B-Language
-	O	O
)	O	O
RDBMS	O	B-Application
:	O	O

1	O	O
.	O	O
use	O	O
a	O	O
Entity	O	O
–	O	O
attribute	O	O
–	O	O
value	O	O
model	O	O

2	O	O
.	O	O
store	O	O
a	O	O
JSON	O	B-File_Type
document	O	O

Depending	O	O
on	O	O
your	O	O
use	O	O
case	O	O
,	O	O
data	O	O
volume	O	O
etc	O	O
.	O	O

a	O	O
nosql	O	B-Application
db	O	O
could	O	O
be	O	O
the	O	O
better	O	O
choice	O	O
.	O	O

But	O	O
sometimes	O	O
you	O	O
need	O	O
only	O	O
one	O	O
or	O	O
a	O	O
few	O	O
tables	O	B-Data_Structure
to	O	O
be	O	O
schema-flexible	O	O
and	O	O
your	O	O
other	O	O
data	O	O
is	O	O
relational	O	O
.	O	O

Some	O	O
SQL	O	B-Language
RDBMS	O	B-Application
support	O	O
schema	O	O
flexible	O	O
tables	O	B-Data_Structure
,	O	O
E.g	O	O
.	O	O
SAP	O	B-Code_Block
HANA	O	I-Code_Block
(	O	I-Code_Block
"	O	I-Code_Block
CREATE	O	I-Code_Block
TABLE	O	I-Code_Block
..	O	I-Code_Block
.	O	I-Code_Block
WITH	O	I-Code_Block
SCHEMA	O	I-Code_Block
FLEXIBILITY	O	I-Code_Block
..	O	I-Code_Block
.	O	I-Code_Block
"	O	I-Code_Block
)	O	I-Code_Block
.	O	O

Internet	O	O
is	O	O
not	O	O
working	O	O
in	O	O
my	O	O
virtual	O	B-Application
machine	O	I-Application
(	O	O
CentOS	O	B-Operating_System
7	O	B-Version
)	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
where	O	O
to	O	O
start	O	O
..	O	O
.	O	O

machine	O	O
has	O	O
two	O	O
network	O	B-Device
adapter	O	I-Device
,	O	O
NAT	O	O
and	O	O
Host	O	O

I	O	O
can	O	O
ping	O	O
among	O	O
virtual	O	B-Application
machines	O	I-Application
such	O	O
as	O	O
"	O	B-Code_Block
ping	O	I-Code_Block
slave1	O	I-Code_Block
"	O	I-Code_Block
"	O	I-Code_Block
ping	O	I-Code_Block
slave2	O	I-Code_Block
"	O	I-Code_Block
...	O	O
.	O	O
it	O	O
works	O	O
just	O	O
fine	O	O

ping	O	B-Code_Block
8.8.8.8	O	I-Code_Block

->	O	O
PING	O	B-Output_Block
8.8.8.8	O	I-Output_Block
(	O	I-Output_Block
8.8.8.8	O	I-Output_Block
)	O	I-Output_Block
56(84)	O	I-Output_Block
bytes	O	I-Output_Block
of	O	I-Output_Block
data	O	I-Output_Block
.	O	I-Output_Block

after	O	O
this	O	O
message	O	O
,	O	O
nothing	O	O
comes	O	O
out.	O	O
.	O	O

ping	O	B-Code_Block
google.com	O	I-Code_Block

->	O	O
no	O	O
any	O	O
message	O	O
comes	O	O
out	O	O
for	O	O
a	O	O
while	O	O
and	O	O
it	O	O
says	O	O
"	O	O
ping	O	B-Output_Block
:	O	I-Output_Block
unkown	O	I-Output_Block
host	O	I-Output_Block
google.com	O	I-Output_Block
"	O	O

enp0s3	O	B-Code_Block
->	O	I-Code_Block
NAT(on)	O	I-Code_Block

->	O	O
inet	O	B-Output_Block
10.0.2.15	O	I-Output_Block

->	O	O
netmask	O	B-Output_Block
255.255.255.0	O	I-Output_Block

enp0s8	O	B-Code_Block
->	O	I-Code_Block
host(on)	O	I-Code_Block

->	O	O
192.168.56.101	O	B-Output_Block

Where	O	O
should	O	O
I	O	O
start	O	O
to	O	O
figure	O	O
it	O	O
out	O	O
?	O	O

Please	O	O
I	O	O
am	O	O
spending	O	O
more	O	O
than	O	O
17	O	O
hours	O	O
for	O	O
this	O	O
..	O	O
.	O	O

The	O	O
Netwrok	O	B-Device
adaptateur	O	I-Device
must	O	O
be	O	O
:	O	O

Enabled	O	O

Attached	O	O
to	O	O
Bridge	O	B-Device
Adapter	O	I-Device

Then	O	O
in	O	O
the	O	O
virtual	O	B-Application
machine	O	I-Application
,	O	O
open	O	O
the	O	O
Network	O	O
Connections	O	O
configuration	O	O
and	O	O
configure	O	O
to	O	O
Obtain	O	O
an	O	O
IP	O	O
address	O	O
automatically	O	O
and	O	O
Obtain	O	O
DNS	O	B-Application
server	O	I-Application
address	O	O
automatically	O	O

how	O	O
to	O	O
do	O	O
login	O	O
and	O	O
register	O	O
with	O	O
PHP	O	B-Language
and	O	O
MySQL	O	B-Application
in	O	O
fragment	O	O
?	O	O

I	O	O
need	O	O
sample	O	O
code	O	O
,	O	O
hope	O	O
someone	O	O
can	O	O
help	O	O
me	O	O

here	O	O
is	O	O
my	O	O
loginfragment	O	B-Class
code	O	O
:	O	O

and	O	O
here	O	O
is	O	O
my	O	O
loginlayout	O	B-Variable
:	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
android	O	B-Operating_System
so	O	O
I	O	O
really	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
to	O	O
do	O	O
that	O	O
.	O	O

I	O	O
already	O	O
develop	O	O
login	O	O
and	O	O
register	O	O
with	O	O
PHP	O	B-Language
and	O	O
MySQL	O	B-Application
by	O	O
following	O	O
tutorials	O	O
,	O	O
but	O	O
it	O	O
uses	O	O
activity	O	B-Class
.	O	O

You	O	O
asked	O	O
kind	O	O
of	O	O
an	O	O
involved	O	O
question	O	O
,	O	O
especially	O	O
without	O	O
being	O	O
able	O	O
to	O	O
see	O	O
your	O	O
server	O	B-Application
side	O	O
code	O	O
.	O	O

Since	O	O
you	O	O
mentioned	O	O
needing	O	O
source	O	O
code	O	O
,	O	O
here	O	O
is	O	O
the	O	O
official	O	O
Android	O	B-Operating_System
Developers	O	O
training	O	O
with	O	O
source	O	O
code	O	O
examples	O	O
,	O	O
http://developer.android.com/training/basics/network-ops/connecting.html	O	O

I	O	O
'll	O	O
copy	O	O
the	O	O
relevant	O	O
code	O	O
in	O	O
here	O	O
,	O	O

Having	O	O
done	O	O
this	O	O
a	O	O
few	O	O
times	O	O
,	O	O
though	O	O
,	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
point	O	O
out	O	O
some	O	O
things	O	O
that	O	O
will	O	O
likely	O	O
bite	O	O
you	O	O
when	O	O
you	O	O
try	O	O
to	O	O
implement	O	O
this	O	O

Android	O	B-Operating_System
requires	O	O
you	O	O
to	O	O
do	O	O
anything	O	O
that	O	O
calls	O	O
a	O	O
web	O	O
server	O	B-Application
in	O	O
a	O	O
background	O	O
thread	O	O
.	O	O

http://developer.android.com/training/multiple-threads/index.html	O	O

You	O	O
are	O	O
probably	O	O
going	O	O
to	O	O
need	O	O
some	O	O
kind	O	O
of	O	O
authentication	O	O
,	O	O
especially	O	O
if	O	O
PHP	O	B-Language
side	O	O
you	O	O
used	O	O
e.g	O	O
.	O	O
Drupal	O	B-Library
.	O	O

I	O	O
would	O	O
find	O	O
out	O	O
if	O	O
your	O	O
PHP	O	B-Language
framework	O	O
requires	O	O
e.g	O	O
.	O	O
Session	O	O
auth	O	O
with	O	O
a	O	O
CRLF	O	B-Value
token	O	O
or	O	O
OAuth	O	O
or	O	O
a	O	O
similar	O	O
scheme	O	O
.	O	O

Authentication	O	O
will	O	O
involve	O	O
three	O	O
steps	O	O
:	O	O

**	O	O
Sign	O	O
in	O	O

**	O	O
Retrieve	O	O
a	O	O
cookie	O	O
or	O	O
token	O	O

**	O	O
Send	O	O
the	O	O
token	O	O
in	O	O
along	O	O
with	O	O
your	O	O
content	O	O
in	O	O
your	O	O
headers	O	O

Finally	O	O
you	O	O
are	O	O
going	O	O
to	O	O
need	O	O
some	O	O
sort	O	O
of	O	O
data	O	O
encapsulation	O	O
layer	O	O
.	O	O

I	O	O
like	O	O
JSON	O	B-File_Type
,	O	O
some	O	O
folks	O	O
like	O	O
XML	O	B-File_Type
.	O	O

The	O	O
GSON	O	B-Library
library	O	O
,	O	O
which	O	O
you	O	O
can	O	O
learn	O	O
more	O	O
about	O	O
here	O	O
,	O	O
https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/Gson.html	O	O
,	O	O
is	O	O
the	O	O
most	O	O
user	O	O
and	O	O
beginner	O	O
friendly	O	O
JSON	O	B-File_Type
library	O	O
I	O	O
know	O	O
of	O	O
.	O	O

In	O	O
practice	O	O
I	O	O
usually	O	O
use	O	O
Android	O	B-Operating_System
's	O	O
built-in	O	O
JSONArray	O	B-Class
and	O	O
JSONObject	O	B-Class
though	O	O
.	O	O

Here	O	O
is	O	O
good	O	O
example	O	O
for	O	O
the	O	O

http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/	O	O

Overall	O	O
steps	O	O
to	O	O
do	O	O
:	O	O

Create	O	O
Web-service	O	O
for	O	O
login	O	O
in	O	O
PHP	B-Code_Block	B-Language

Call	O	O
that	O	O
Web-service	O	O
form	O	O
android	O	B-Operating_System
Fragment	B-Code_Block	B-Class

Get	O	O
response	O	O
and	O	O
parse	O	O
it	O	O

Show	O	O
the	O	O
Result	O	O
to	O	O
User	O	O

see	O	O
this	O	O
link	O	O
for	O	O
working	O	O
with	O	O
Fragments	O	B-Class

I	O	O
am	O	O
trying	O	O
to	O	O
use	O	O
rich	O	B-Data_Type
text	O	I-Data_Type
in	O	O
a	O	O
QComboBox	O	B-Class
but	O	O
it	O	O
does	O	O
not	O	O
support	O	O
it	O	O
.	O	O

Perhaps	O	O
I	O	O
should	O	O
write	O	O
a	O	O
subclass	O	O
?	O	O

But	O	O
I	O	O
am	O	O
unsure	O	O
on	O	O
what	O	O
I	O	O
would	O	O
need	O	O
to	O	O
override	O	O
as	O	O
I	O	O
have	O	O
never	O	O
done	O	O
anything	O	O
like	O	O
this	O	O
before	O	O
.	O	O

Please	O	O
help	O	O
.	O	O

Thanks	O	O
!	O	O

I	O	O
think	O	O
custom	O	O
delegate	O	O
class	O	O
is	O	O
the	O	O
answer	O	O
.	O	O

The	O	O
solution	O	O
is	O	O
to	O	O
simply	O	O
replace	O	O
standard	O	O
drawing	O	O
routine	O	O
with	O	O
your	O	O
own	O	O
(	O	O
using	O	O
i.e	O	O
.	O	O
QLabel	O	B-Class
)	O	O
.	O	O

There	O	O
was	O	O
a	O	O
similar	O	O
question	O	O
here	O	O
:	O	O
QListView/QListWidget	O	B-Class
with	O	O
custom	O	O
items	O	O
and	O	O
custom	O	O
item	O	O
widgets	O	B-User_Interface_Element

When	O	O
validating	O	O
an	O	O
XML	O	B-Language
DOMDocument	O	B-Class
with	O	O
a	O	O
scheme	O	O
:	O	O

I	O	O
get	O	O
a	O	O
warning	O	O
message	O	O
like	O	O
:	O	O

Warning	O	O
:	O	O
DOMDocument::schemaValidate()	O	B-Function
:	O	O
Element	O	O
'	O	O
foo	O	B-Code_Block
'	O	O
:	O	O
This	O	O
element	O	O
is	O	O
not	O	O
expected	O	O
.	O	O

Expected	O	O
is	O	O
one	O	O
of	O	O
(	O	O
{url}foo	O	B-Code_Block
,	O	I-Code_Block
{url}bar	O	I-Code_Block
)	O	O
.	O	O

What	O	O
is	O	O
the	O	O
difference	O	O
between	O	O
'	O	O
foo	O	B-Code_Block
'	O	O
and	O	O
'{url}foo'	O	B-Code_Block
and	O	O
how	O	O
to	O	O
fix	O	O
this	O	O
warning	O	O
?	O	O

The	O	O
notation	O	O
{url}foo	B-Code_Block	B-Code_Block
is	O	O
used	O	O
to	O	O
refer	O	O
to	O	O
an	O	O
expanded	O	O
name	O	O
whose	O	O
namespace	O	O
part	O	O
is	O	O
url	B-Code_Block	B-Variable
and	O	O
whose	O	O
local	O	O
name	O	O
part	O	O
is	O	O
foo	B-Code_Block	B-Variable
.	O	O

It	O	O
's	O	O
sometimes	O	O
referred	O	O
to	O	O
as	O	O
'	O	O
Clark	O	O
notation	O	O
'	O	O
for	O	O
James	O	B-User_Name
Clark	O	I-User_Name
,	O	O
who	O	O
promoted	O	O
it	O	O
.	O	O

When	O	O
this	O	O
notation	O	O
is	O	O
in	O	O
use	O	O
,	O	O
unqualified	O	O
names	O	O
are	O	O
sometimes	O	O
referred	O	O
to	O	O
using	O	O
the	O	O
notation	O	O
{}foo	B-Code_Block	B-Code_Block
and	O	O
sometimes	O	O
(	O	O
as	O	O
in	O	O
your	O	O
error	O	O
message	O	O
)	O	O
using	O	O
the	O	O
notation	O	O
foo	B-Code_Block	B-Variable
.	O	O

The	O	O
error	O	O
message	O	O
is	O	O
telling	O	O
you	O	O
that	O	O
it	O	O
has	O	O
found	O	O
an	O	O
element	O	O
with	O	O
the	O	O
unqualified	O	O
name	O	O
foo	B-Code_Block	B-Variable
,	O	O
at	O	O
a	O	O
location	O	O
where	O	O
it	O	O
was	O	O
expecting	O	O
a	O	O
namespace-qualfied	O	O
element	O	O
named	O	O
either	O	O
foo	B-Code_Block	B-Variable
or	O	O
bar	B-Code_Block	B-Variable
in	O	O
the	O	O
namespace	O	O
url	B-Code_Block	B-Variable
.	O	O

Probable	O	O
cause	O	O
:	O	O
the	O	O
XML	O	B-Language
instance	O	O
lacks	O	O
a	O	O
required	O	O
namespace	O	O
declaration	O	O
.	O	O

How	O	O
to	O	O
classify	O	O
strings	O	B-Data_Type
using	O	O
r	O	B-Language

My	O	O
text	O	B-File_Type
file	O	O
is	O	O
such	O	O
a	O	O
structure	O	O
.	O	O

I	O	O
want	O	O
to	O	O
distinguish	O	O
day	O	O
/	O	O
month	O	O
/	O	O
year	O	O
.	O	O

I	O	O
know	O	O
there	O	O
are	O	O
commands	O	O
.	O	O

"	O	O
strsplit	O	B-Function
"	O	O
,	O	O
"	O	O
str_split	O	B-Function
"	O	O

But	O	O
I	O	O
do	O	O
not	O	O
know	O	O
how	O	O
to	O	O
write	O	O
day	O	O
/	O	O
month	O	O
/	O	O
year	O	O
.	O	O

If	O	O
you	O	O
categorize	O	O
it	O	O
,	O	O
the	O	O
data	O	O
is	O	O
not	O	O
what	O	O
I	O	O
want	O	O
.	O	O

What	O	O
should	O	O
I	O	O
do	O	O
?	O	O

I	O	O
would	O	O
appreciate	O	O
it	O	O
if	O	O
you	O	O
could	O	O
answer	O	O
me	O	O
.	O	O

You	O	O
need	O	O
to	O	O
specify	O	O
a	O	O
pattern	O	O
for	O	O
dates	O	O
more	O	O
completely	O	O
.	O	O

stringr	O	B-Library
and	O	O
rebus	O	B-Library
packages	O	O
are	O	O
really	O	O
helpful	O	O
and	O	O
intuitive	O	O
.	O	O

I	O	O
want	O	O
to	O	O
move	O	O
my	O	O
MVC	O	B-Algorithm
application	O	O
from	O	O
Azure	O	B-Application
to	O	O
an	O	O
in-house	O	O
server	O	B-Application
.	O	O

How	O	O
do	O	O
I	O	O
export	O	O
the	O	O
SSL	O	O
certificate	O	O
associated	O	O
with	O	O
the	O	O
App	O	O
to	O	O
install	O	O
it	O	O
on	O	O
the	O	O
local	O	O
server	O	B-Application
?	O	O

Is	O	O
it	O	O
at	O	O
all	O	O
possible	O	O
?	O	O

NO	O	O
.	O	O

There	O	O
is	O	O
no	O	O
way	O	O
to	O	O
get	O	O
certificate	O	O
out	O	O
of	O	O
Windows	O	B-Application
Azure	O	I-Application
.	O	O

Question	O	O
is	O	O
how	O	O
it	O	O
(	O	O
the	O	O
certificate	O	O
)	O	O
appeared	O	O
in	O	O
the	O	O
Azure	O	B-Application
at	O	O
first	O	O
place	O	O
.	O	O

It	O	O
was	O	O
certainly	O	O
not	O	O
uploaded	O	O
by	O	O
Microsoft	O	B-Website
people	O	O
or	O	O
some	O	O
magic	O	O
.	O	O

It	O	O
is	O	O
a	O	O
developer	O	O
who	O	O
packed	O	O
the	O	O
deployment	O	O
package	O	O
to	O	O
include	O	O
the	O	O
certificate	O	O
reference	O	O
(	O	O
thumbprint	O	O
)	O	O
and	O	O
service	O	O
administrator	O	O
(	O	O
or	O	O
co-admin	O	O
)	O	O
who	O	O
uploaded	O	O
the	O	O
original	O	O
certificate	O	O
in	O	O
the	O	O
Azure	O	B-Application
.	O	O

So	O	O
contact	O	O
that	O	O
people	O	O
(	O	O
whom	O	O
might	O	O
be	O	O
just	O	O
you	O	O
?	O	O
)	O	O

and	O	O
ask	O	O
for	O	O
the	O	O
original	O	O
certificate	O	O
.	O	O

If	O	O
certificate	O	O
is	O	O
lost	O	O
,	O	O
contact	O	O
the	O	O
original	O	O
issuer	O	O
(	O	O
certification	O	O
authority	O	O
)	O	O
for	O	O
a	O	O
copy	O	O
,	O	O
if	O	O
you	O	O
were	O	O
the	O	O
one	O	O
to	O	O
originally	O	O
requested	O	O
.	O	O

If	O	O
you	O	O
did	O	O
not	O	O
originally	O	O
requested	O	O
the	O	O
certificate	O	O
,	O	O
there	O	O
might	O	O
have	O	O
been	O	O
a	O	O
reason	O	O
behind	O	O
that	O	O
.	O	O

Given	O	O
an	O	O
array	O	B-Data_Structure
,	O	O
I	O	O
need	O	O
to	O	O
find	O	O
the	O	O
indices	O	O
of	O	O
nearest	O	O
non-coprime	O	O
number	O	O
(	O	O
i.e	O	O
.	O	O
GCD(Ai,	O	B-Code_Block
Aj)	O	I-Code_Block
>	O	I-Code_Block
1	O	I-Code_Block
,	O	I-Code_Block
for	O	I-Code_Block
any	O	I-Code_Block
Ai	O	I-Code_Block
and	O	I-Code_Block
Aj	O	I-Code_Block
in	O	I-Code_Block
the	O	I-Code_Block
array	O	I-Code_Block
,	O	I-Code_Block
i	O	I-Code_Block
!=	O	I-Code_Block
j	O	I-Code_Block
)	O	O
Example	O	O
,	O	O
let	O	O
the	O	O
array	O	B-Data_Structure
be	O	O

The	O	O
answer	O	O
will	O	O
be	O	O

I	O	O
've	O	O
written	O	O
this	O	O
brute	O	O
force	O	O
code	O	O
(	O	O
which	O	O
is	O	O
O(n^2))	O	O
using	O	O
Binary	O	B-Algorithm
GCD	O	I-Algorithm
method	O	O
,	O	O
which	O	O
is	O	O
not	O	O
very	O	O
efficient	O	O
.	O	O

I	O	O
'm	O	O
wondering	O	O
if	O	O
there	O	O
's	O	O
a	O	O
faster	O	O
way	O	O
to	O	O
do	O	O
this	O	O
.	O	O

Particularly	O	O
in	O	O
O(NlogN)	O	O

If	O	O
you	O	O
know	O	O
your	O	O
max	O	O
value	O	O
for	O	O
your	O	O
numbers	O	O
and	O	O
can	O	O
afford	O	O
to	O	O
keep	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
primes	O	O
,	O	O
then	O	O
factoring	O	O
them	O	O
may	O	O
be	O	O
a	O	O
better	O	O
solution	O	O
for	O	O
the	O	O
average/random	O	O
case	O	O
.	O	O

Otherwise	O	O
,	O	O
worst	O	O
case	O	O
complexity	O	O
,	O	O
it	O	O
's	O	O
still	O	O
O(N*N)	O	O
-	O	O
think	O	O
"	O	O
all	O	O
of	O	O
them	O	O
are	O	O
primes	O	O
"	O	O
for	O	O
the	O	O
worst	O	O
case	O	O
.	O	O

Approach	O	O
:	O	O

factor	O	O
them	O	O
and	O	O
store	O	O
a	O	O
Map[N]	B-Code_Block	B-Code_Block
+	O	O
int	O	O
closestNeigh[]	O	O

take	O	O
a	O	O
factor	O	O
and	O	O
O(N)	B-Code_Block	O
determine	O	O
for	O	O
each	O	O
of	O	O
them	O	O
the	O	O
closest	O	O
that	O	O
contain	O	O
that	O	O
factor	O	O
(	O	O
prefix/sufix	O	O
sums	O	O
will	O	O
be	O	O
involved	O	O
)	O	O

eliminate	O	O
that	O	O
factor	O	O
from	O	O
all	O	O
the	O	O
factor	O	O
maps	O	O

take	O	O
the	O	O
next	O	O
factor	O	O
.	O	O

Adjust	O	O
the	O	O
closest	O	O
neighbor	O	O
index	O	O
only	O	O
if	O	O
new	O	O
one	O	O
is	O	O
closest	O	O
.	O	O

This	O	O
may	O	O
bring	O	O
some	O	O
"	O	O
relief	O	O
"	O	O
on	O	O
the	O	O
line	O	O
of	O	O
O	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
N*	I-Code_Block	I-Code_Block
<num_distict_factors>	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
,	O	O
but	O	O
again	O	O
if	O	O
<num_distict_factors>	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
N	I-Code_Block	I-Code_Block
(	O	O
all	O	O
primes	O	O
)	O	O
,	O	O
then	O	O
it	O	O
is	O	O
still	O	O
O(N*N)	O	O

If	O	O
you	O	O
are	O	O
willing	O	O
to	O	O
get	O	O
into	O	O
factorization	O	O
,	O	O
one	O	O
could	O	O
traverse	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
once	O	O
from	O	O
the	O	O
left	O	O
,	O	O
factoring	O	O
each	O	O
number	O	O
,	O	O
hashing	O	O
the	O	O
index	O	O
of	O	O
each	O	O
new	O	O
prime	O	O
(	O	O
with	O	O
the	O	O
prime	O	O
as	O	O
the	O	O
key	O	O
)	O	O
,	O	O
updating	O	O
the	O	O
index	O	O
of	O	O
each	O	O
prime	O	O
already	O	O
seen	O	O
,	O	O
and	O	O
,	O	O
of	O	O
course	O	O
,	O	O
noting	O	O
the	O	O
nearest	O	O
seen	O	O
prime	O	O
.	O	O

Since	O	O
this	O	O
traversal	O	O
would	O	O
miss	O	O
the	O	O
nearest	O	O
on	O	O
the	O	O
right	O	O
,	O	O
conduct	O	O
another	O	O
traversal	O	O
from	O	O
the	O	O
right	O	O
to	O	O
update	O	O
any	O	O
nearer	O	O
shared	O	O
prime	O	O
,	O	O
using	O	O
the	O	O
factor	O	O
lists	O	B-Data_Structure
already	O	O
saved	O	O
.	O	O

I	O	O
just	O	O
read	O	O
any	O	O
image	O	B-User_Interface_Element
and	O	O
could	O	O
not	O	O
get	O	O
the	O	O
correct	O	O
colors	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
several	O	O
images	O	B-User_Interface_Element
with	O	O
several	O	O
formats	O	O
.	O	O

Please	O	O
advice	O	O
how	O	O
to	O	O
receive	O	O
the	O	O
correct	O	O
colors	O	O
in	O	O
WriteableBitmap.GetPixels()	B-Code_Block	B-Function

In	O	O
the	O	O
following	O	O
example	O	O
,	O	O
I	O	O
just	O	O
cloned	B-Code_Block	O
the	I-Code_Block	O
image	I-Code_Block	B-User_Interface_Element
by	O	O
reading	O	O
out	O	O
the	O	O
source	O	O
pixel	O	O
by	O	O
pixel	O	O
and	O	O
putting	O	O
this	O	O
pixel	O	O
to	O	O
the	O	O
new	O	O
writeablebitmap	O	B-Class
on	O	O
same	O	O
position	O	O
.	O	O

Like	O	O
cloning	O	O
.	O	O

There	O	O
is	O	O
a	O	O
fault	O	O
in	O	O
the	O	O
Writeablebitmap	O	B-Class
Ex	O	O
compiled	O	O
/	O	O
downloadable	O	O
version	O	O
1.0.2	O	B-Version
(	O	O
others	O	O
version	O	O
until	O	O
V	O	B-Version
1.0.5	O	I-Version
untested	O	O
)	O	O
.	O	O

By	O	O
using	O	O
the	O	O
sourcecode	O	O
of	O	O
writeablebitmapex	O	B-Class
Version	O	O
1.0.5	O	B-Version
,	O	O
the	O	O
method	O	O
works	O	O
as	O	O
it	O	O
should	O	O
.	O	O

I	O	O
have	O	O
one	O	O
table	O	B-Data_Structure
and	O	O
i	O	O
am	O	O
iterating	O	O
tr	O	B-HTML_XML_Tag
on	O	O
click	O	O
of	O	O
button	O	B-User_Interface_Element

This	O	O
is	O	O
page	O	B-User_Interface_Element
X	O	B-Variable

I	O	O
want	O	O
the	O	O
all	O	O
iterated	O	O
tr	O	B-HTML_XML_Tag
to	O	O
be	O	O
in	O	O
new	O	O
page	O	B-User_Interface_Element
Y	O	B-Variable
.	O	O

Here	O	O
is	O	O
my	O	O
controller	O	O
.	O	O

I	O	O
am	O	O
very	O	O
new	O	O
in	O	O
angular	O	B-Library
so	O	O
my	O	O
bad	O	O
if	O	O
code	O	O
is	O	O
not	O	O
as	O	O
per	O	O
standard	O	O

Add	O	O
developer	O	O
to	O	O
the	O	O
$rootScope	O	B-Variable
and	O	O
pass	O	O
that	O	O
value	O	O
to	O	O
your	O	O
local	O	O
scope	O	O

And	O	O
on	O	O
second	O	O
page	O	O
use	O	O
this	O	O
$rootScope	O	B-Variable
to	O	O
populate	O	O
local	O	O
$scope	O	B-Variable
and	O	O
add	O	O
new	O	O
ones	O	O
to	O	O
it	O	O
,	O	O
it	O	O
will	O	O
be	O	O
also	O	O
accessible	O	O
to	O	O
first	O	O
one	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
little	O	O
example	O	O
on	O	O
jsfiddle	O	B-Application
http://jsfiddle.net/ae8neq3k/	O	O

I	O	O
have	O	O
the	O	O
following	O	O
multidimensional	O	O
array	O	B-Data_Structure
called	O	O
$responses	O	B-Variable
and	O	O
it	O	O
looks	O	O
like	O	O
this	O	O
when	O	O
I	O	O
do	O	O
a	O	O
print_r	O	B-Function

My	O	O
foreach	O	B-Code_Block
loop	O	O
looks	O	O
like	O	O
this	O	O
but	O	O
it	O	O
's	O	O
not	O	O
working	O	O
:	O	O

I	O	O
would	O	O
like	O	O
to	O	O
get	O	O
an	O	O
output	O	O
like	O	O
this	O	O
when	O	O
I	O	O
do	O	O
a	O	O
print_r($output)	O	B-Function

Seems	O	O
like	O	O
a	O	O
simple	O	O
transformation	O	O
to	O	O
me	O	O
:	O	O

You	O	O
can	O	O
try	O	O
this	O	O
:	O	O

If	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
,	O	O
please	O	O
do	O	O
a	O	O
"	O	O
var_dump	O	B-Function
"	O	O
on	O	O
"	O	O
$responses	O	B-Variable
"	O	O
instead	O	O
of	O	O
"	O	O
print_r	O	B-Function
"	O	O
because	O	O
we	O	O
did	O	O
n't	O	O
view	O	O
how	O	O
this	O	O
variable	O	O
is	O	O
exactly	O	O
defined	O	O
.	O	O

I	O	O
have	O	O
created	O	O
a	O	O
custom	O	O
iterator	O	O
,	O	O
inheriting	O	O
from	O	O
there	O	O
iter	B-Code_Block	B-Class
class	O	O
in	O	O
the	O	O
iterators	B-Code_Block	B-Library
package	O	O
.	O	O

The	O	O
iterator	O	O
and	O	O
its	O	O
methods	O	O
are	O	O
not	O	O
exported	O	O
from	O	O
the	O	O
package	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
iterator	O	O
and	O	O
a	O	O
test	O	O
function	O	O
in	O	O
a	O	O
script	O	O
that	O	O
is	O	O
reproducible	O	O
and	O	O
runnable	O	O
,	O	O
the	O	O
iterator	O	O
is	O	O
called	O	O
pairsRef	O	B-Function
:	O	O

However	O	O
,	O	O
I	O	O
want	O	O
to	O	O
use	O	O
this	O	O
iterator	O	O
to	O	O
do	O	O
foreach	O	O
loops	O	O
in	O	O
a	O	O
package	O	O
of	O	O
mine	O	O
.	O	O

If	O	O
I	O	O
put	O	O
Test2	O	B-Function
in	O	O
a	O	O
package	O	O
(	O	O
exported	O	O
)	O	O
,	O	O
and	O	O
I	O	O
have	O	O
all	O	O
the	O	O
other	O	O
functions	O	O
in	O	O
the	O	O
package	O	O
(	O	O
unexported	O	O
)	O	O
,	O	O
and	O	O
I	O	O
have	O	O
the	O	O
package	O	O
namespace	O	O
import	O	O
Biostrings	O	B-Library
,	O	O
iterators	O	B-Library
,	O	O
and	O	O
foreach	O	B-Library
.	O	O

It	O	O
does	O	O
not	O	O
work	O	O
.	O	O

With	O	O
a	O	O
fresh	O	O
R	O	B-Language
session	O	O
,	O	O
loading	O	O
the	O	O
package	O	O
,	O	O
and	O	O
the	O	O
running	O	O
:	O	O

Results	O	O
in	O	O
an	O	O
error	O	O
:	O	O
"	O	O
Error	O	O
in	O	O
{	O	O
:	O	O
attempt	O	B-Error_Name
to	O	I-Error_Name
apply	O	I-Error_Name
non-function	O	I-Error_Name
"	O	O

Is	O	O
this	O	O
because	O	O
the	O	O
custom	O	O
iterator	O	O
is	O	O
internal	O	O
to	O	O
the	O	O
package	O	O
?	O	O

Any	O	O
help	O	O
or	O	O
suggestions	O	O
are	O	O
greatly	O	O
appreciated	O	O
.	O	O

[	O	O
EDIT	O	O
]	O	O
-	O	O
If	O	O
I	O	O
export	O	O
the	O	O
iterator	O	O
and	O	O
it	O	O
's	O	O
functions	O	O
from	O	O
the	O	O
package	O	O
.	O	O

Then	O	O
all	O	O
works	O	O
fine	O	O
.	O	O

But	O	O
I	O	O
do	O	O
n't	O	O
necessarily	O	O
want	O	O
to	O	O
export	O	O
iterators	O	O
of	O	O
the	O	O
package	O	O
.	O	O

Thanks	O	O
,	O	O

Ben	O	B-User_Name
.	O	O

In	O	O
order	O	O
for	O	O
it	O	O
to	O	O
work	O	O
inside	O	O
the	O	O
package	O	O
,	O	O
the	O	O
method	O	O
nextElem	O	B-Function
must	O	O
be	O	O
imported	O	O
from	O	O
iterators	O	B-Library
,	O	O
and	O	O
then	O	O
the	O	O
additional	O	O
method	O	O
unique	O	O
to	O	O
the	O	O
package	O	O
,	O	O
exported	O	O
,	O	O
such	O	O
that	O	O
it	O	O
is	O	O
visible	O	O
to	O	O
the	O	O
functions	O	O
in	O	O
the	O	O
foreach	O	B-Library
package	O	O
namespace	O	O
.	O	O

For	O	O
example	O	O
I	O	O
have	O	O
the	O	O
following	O	O
data	O	O
in	O	O
MongoDB	O	B-Application
:	O	O

Now	O	O
I	O	O
want	O	O
to	O	O
query	O	O
"	O	O
SUM	O	O
the	O	O
number	O	O
of	O	O
incoming	O	O
between	O	O
11	O	B-Value
-	O	I-Value
12	O	I-Value
"	O	O
(	O	O
the	O	O
result	O	O
should	O	O
be	O	O
500	O	B-Value
)	O	O
,	O	O
how	O	O
could	O	O
I	O	O
do	O	O
this	O	O
using	O	O
Mongo	O	B-Application
Shell	O	I-Application
?	O	O

As	O	O
llovet	O	B-User_Name
suggested	O	O
,	O	O
the	O	O
aggregation	O	B-Library
framework	O	O
is	O	O
the	O	O
way	O	O
to	O	O
go	O	O
.	O	O

Here	O	O
's	O	O
what	O	O
your	O	O
query	O	O
would	O	O
look	O	O
like	O	O
:	O	O

You	O	O
can	O	O
also	O	O
shape	O	O
the	O	O
resulting	O	O
document	O	O
to	O	O
only	O	O
contain	O	O
the	O	O
sum	O	O
by	O	O
adding	O	O
a	O	O
$project	O	B-Variable
operator	O	O
at	O	O
the	O	O
end	O	O
of	O	O
the	O	O
pipeline	O	O
,	O	O
like	O	O
so	O	O
:	O	O

I	O	O
have	O	O
been	O	O
working	O	O
on	O	O
a	O	O
project	O	O
that	O	O
requires	O	O
JSON	O	B-Language
for	O	O
getting	O	O
data	O	O
from	O	O
a	O	O
large	O	O
json	O	B-File_Type
file	O	O
,	O	O
but	O	O
I	O	O
ran	O	O
into	O	O
a	O	O
problem	O	O
when	O	O
trying	O	O
to	O	O
get	O	O
a	O	O
json	O	B-Language
string	O	B-Data_Type
using	O	O
a	O	O
method	O	O
.	O	O

the	O	O
method	O	O
for	O	O
getting	O	O
the	O	O
ID	O	O
works	O	O
I	O	O
have	O	O
tested	O	O
this	O	O
multiple	O	O
times	O	O
.	O	O

When	O	O
I	O	O
enter	O	O
int	O	O
he	O	O
ID	O	O
as	O	O
a	O	O
string	O	B-Data_Type
it	O	O
also	O	O
works	O	O
prefectly	O	O
but	O	O
when	O	O
I	O	O
use	O	O
the	O	O
method	O	O
to	O	O
get	O	O
the	O	O
jsonString	O	B-Class
it	O	O
stops	O	O
working	O	O
and	O	O
gives	O	O
a	O	O
nullpoiterexeption	O	B-Error_Name

This	O	O
is	O	O
the	O	O
json	O	B-Language
string	O	B-Data_Type
I	O	O
am	O	O
trying	O	O
to	O	O
get	O	O
info	O	O
{	B-Code_Block	B-Code_Block
"W1121000-00002":	I-Code_Block	I-Code_Block
{	I-Code_Block	I-Code_Block
"clnt":1023	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
"srvr":870	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
}	B-Code_Block	B-Code_Block
and	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
clnt	B-Code_Block	B-Value
value	O	O
out	O	O
of	O	O
that	O	O
string	O	B-Data_Type
.	O	O

I	O	O
am	O	O
using	O	O
Pyhton3.4.1	O	B-Language
and	O	O
win7	O	B-Operating_System
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
reading	O	O
a	O	O
txt	O	B-File_Type
file	O	O
exported	O	O
from	O	O
a	O	O
software	O	O
.	O	O

it	O	O
seems	O	O
that	O	O
python	O	B-Language
cannot	O	O
read	O	O
this	O	O
text	O	B-File_Type
file	O	O
.	O	O

But	O	O
I	O	O
found	O	O
if	O	O
I	O	O
open	O	O
the	O	O
text	O	B-File_Type
file	O	O
by	O	O
notepad	O	B-Application
and	O	O
add	O	O
a	O	O
space	O	O
in	O	O
any	O	O
place	O	O
and	O	O
save	O	O
it	O	O
,	O	O
the	O	O
python	O	B-Language
works	O	O
well	O	O
then	O	O
.	O	O

I	O	O
tried	O	O
the	O	O
same	O	O
code	O	O
and	O	O
same	O	O
file	O	O
on	O	O
my	O	O
mac	O	B-Device
,	O	O
it	O	O
has	O	O
the	O	O
same	O	O
problem	O	O
as	O	O
in	O	O
windows	O	B-Operating_System
.	O	O

For	O	O
original	O	O
text	O	B-File_Type
file	O	O
,	O	O
not	O	O
working	O	O
,	O	O
open	O	O
and	O	O
saved	O	O
in	O	O
windows	O	B-Operating_System
notepad	O	B-Application
,	O	O
working	O	O
,	O	O

open	O	O
ans	O	O
saved	O	O
in	O	O
mac	O	B-Device
textedit	O	B-Application
,	O	O
not	O	O
working	O	O
.	O	O

I	O	O
am	O	O
doubting	O	O
the	O	O
original	O	O
coding	O	O
of	O	O
the	O	O
text	O	B-File_Type
file	O	O
might	O	O
not	O	O
be	O	O
right	O	O
.	O	O

Thanks	O	O

Python	O	B-Language
code	O	O

Shell	O	B-Application

Plus	O	O
,	O	O
the	O	O
error	O	O
below	O	O
is	O	O
the	O	O
same	O	O
code	O	O
reported	O	O
on	O	O
my	O	O
mac(Python3.4.1,OS10.9)	O	B-Device

When	O	O
you	O	O
save	O	O
the	O	O
file	O	O
in	O	O
Notepad	O	B-Application
,	O	O
the	O	O
file	O	O
is	O	O
reencoded	O	O
to	O	O
be	O	O
saved	O	O
as	O	O
your	O	O
default	O	O
file	O	O
encoding	O	O
for	O	O
your	O	O
Windows	O	B-Operating_System
installation	O	O
.	O	O

Notepad	O	B-Application
auto-detected	O	O
the	O	O
encoding	O	O
when	O	O
it	O	O
opened	O	O
the	O	O
file	O	O
,	O	O
however	O	O
.	O	O

Python	O	B-Language
opens	O	O
file	O	O
using	O	O
that	O	O
same	O	O
system	O	O
encoding	O	O
,	O	O
by	O	O
default	O	O
,	O	O
which	O	O
is	O	O
why	O	O
you	O	O
can	O	O
now	O	O
open	O	O
the	O	O
file	O	O
.	O	O

Quoting	O	O
the	O	O
open()	B-Code_Block	B-Function
function	O	O
documentation	O	O
:	O	O

You	O	O
'll	O	O
have	O	O
to	O	O
explicitly	O	O
specify	O	O
the	O	O
correct	O	O
encoding	O	O
for	O	O
the	O	O
file	O	O
if	O	O
you	O	O
wanted	O	O
to	O	O
open	O	O
it	O	O
directly	O	O
in	O	O
Python	O	B-Language
:	O	O

I	O	O
used	O	O
'	B-Code_Block	B-Value
utf-8-sig	I-Code_Block	I-Value
'	I-Code_Block	I-Value
as	O	O
an	O	O
example	O	O
here	O	O
,	O	O
as	O	O
that	O	O
is	O	O
a	O	O
file	O	O
encoding	O	O
that	O	O
Notepad	O	B-Application
can	O	O
auto-detect	O	O
.	O	O

It	O	O
could	O	O
well	O	O
be	O	O
that	O	O
the	O	O
encoding	O	O
is	O	O
UTF-16	O	B-Value
or	O	O
plain	O	O
UTF-8	O	B-Value
or	O	O
any	O	O
number	O	O
of	O	O
other	O	O
encodings	O	O
,	O	O
however	O	O
.	O	O

If	O	O
you	O	O
think	O	O
that	O	O
the	O	O
page	O	O
is	O	O
encoded	O	O
with	O	O
a	O	O
specific	O	O
ANSI	O	O
codepage	O	O
you	O	O
still	O	O
have	O	O
to	O	O
name	O	O
the	O	O
exact	O	O
codepage	O	O
.	O	O

Your	O	O
system	O	O
is	O	O
configured	O	O
to	O	O
use	O	O
code	O	O
page	O	O
936	O	O
(	O	O
GBK	O	O
)	O	O
but	O	O
that	O	O
is	O	O
not	O	O
the	O	O
correct	O	O
encoding	O	O
for	O	O
this	O	O
file	O	O
.	O	O

See	O	O
the	O	O
codecs	B-Code_Block	B-Library
module	O	O
for	O	O
a	O	O
list	O	O
of	O	O
supported	O	O
encodings	O	O
.	O	O

Compile	O	O
the	O	O
following	O	O
class	O	O

using	O	O
gcc	B-Code_Block	B-Code_Block
-fdump-class-hierarchy	I-Code_Block	I-Code_Block
.	O	O

gcc	B-Code_Block	B-Code_Block
emits	O	O

What	O	O
is	O	O
the	O	O
significance	O	O
of	O	O
"	O	O
nearly-empty	O	O
"	O	O
?	O	O

What	O	O
does	O	O
it	O	O
mean	O	O
?	O	O

I	O	O
suppose	O	O
it	O	O
's	O	O
to	O	O
differentiate	O	O
it	O	O
from	O	O
"	O	O
empty	O	O
"	O	O
,	O	O
which	O	O
is	O	O
what	O	O
you	O	O
get	O	O
if	O	O
compile	O	O
a	O	O
class	O	O
with	O	O
no	O	O
members	O	O
at	O	O
all	O	O
.	O	O

"	O	O
nearly-empty	O	O
"	O	O
seems	O	O
to	O	O
mean	O	O
it	O	O
hasa	O	O
vtable	O	B-Data_Structure
and	O	O
nothing	O	O
else	O	O
.	O	O

The	O	O
C++	O	B-Language
ABI	O	O
provides	O	O
a	O	O
definition	O	O
of	O	O
"	O	O
nearly	O	O
empty	O	O
"	O	O
classes	O	O
and	O	O
an	O	O
interesting	O	O
discussion	O	O
of	O	O
how	O	O
they	O	O
affect	O	O
vtable	O	B-Data_Structure
construction	O	O
:	O	O

I	O	O
ran	O	O
across	O	O
this	O	O
while	O	O
researching	O	O
the	O	O
effect	O	O
of	O	O
nearly	O	O
empty	O	O
virtual	O	O
bases	O	O
on	O	O
object	O	O
size	O	O
,	O	O
vtable	O	B-Data_Structure
size	O	O
,	O	O
and	O	O
virtual	O	O
call	O	O
overhead	O	O
.	O	O

I	O	O
use	O	O
NSJSONSerialization	O	B-Class
to	O	O
call	O	O
a	O	O
login	O	O
url	O	O
which	O	O
returns	O	O
a	O	O
JSON	O	B-Data_Type
object	O	O
.	O	O

This	O	O
obj	O	O
has	O	O
3	O	O
props	O	O
:	O	O
data	O	B-Variable
is	O	O
obj	O	O
,	O	O
success	O	B-Variable
is	O	O
boolean	O	B-Data_Type
(	O	O
NOT	O	O
String	O	B-Data_Type
,	O	O
indicates	O	O
login	O	O
success	O	O
or	O	O
not	O	O
)	O	O
,	O	O
timeout	O	B-Variable
is	O	O
number	O	B-Data_Type
(	O	O
NOT	O	O
String	O	B-Data_Type
)	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
the	O	O
success	O	B-Variable
and	O	O
timeout	O	B-Variable
's	O	O
values	O	O
are	O	O
null	O	B-Value
.	O	O

The	O	O
data	O	B-Variable
is	O	O
fine	O	O
.	O	O

I	O	O
tested	O	O
this	O	O
url	O	O
from	O	O
html	O	B-File_Type
file	O	O
requiring	O	O
,	O	O
it	O	O
works	O	O
fine	O	O
.	O	O

What	O	O
's	O	O
the	O	O
problem	O	O
?	O	O

http://screencast.com/t/chDMshKPl	O	O

I	O	O
'm	O	O
using	O	O
the	O	O
following	O	O
in	O	O
my	O	O
CSS	O	B-Language
to	O	O
force	O	O
a	O	O
vertical	O	O
scrollbar	O	B-User_Interface_Element
in	O	O
Firefox	O	B-Application
:	O	O

Does	O	O
this	O	O
technique	O	O
work	O	O
in	O	O
Safari	O	B-Application
and	O	O
Opera	O	B-Application
?	O	O

Some	O	O
people	O	O
say	O	O
it	O	O
does	O	O
and	O	O
some	O	O
say	O	O
otherwise	O	O
.	O	O

This	O	O
:	O	O

works	O	O
in	O	O
Opera	O	B-Application
11.01	O	B-Version
and	O	O
Safari	O	B-Application
5.0.3	O	B-Version
for	O	O
Windows	O	B-Operating_System
,	O	O
but	O	O
this	O	O
:	O	O

does	O	O
n't	O	O
work	O	O
in	O	O
Opera	O	B-Application
and	O	O
works	O	O
for	O	O
the	O	O
rest	O	O
.	O	O

The	O	O
CSS	O	B-Language
rule	O	O
overflow-y	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
scroll	I-Code_Block	I-Code_Block
works	O	O
for	O	O
me	O	O
in	O	O
:	O	O

Opera	O	B-Application
10.10	O	B-Version

Google	O	B-Application
Chrome	O	I-Application
3.0.195.38	O	B-Version

Mozilla	O	B-Application
Firefox	O	I-Application
3.5.6	O	B-Version

and	O	O
obviously	O	O
all	O	O
versions	O	O
of	O	O
Microsoft	O	B-Application
Internet	O	I-Application
Explorer	O	I-Application
where	O	O
the	O	O
scrollbar	O	B-User_Interface_Element
is	O	O
always	O	O
shown	O	O
.	O	O

Safari	O	B-Application
and	O	O
Google	O	B-Application
Chrome	O	I-Application
are	O	O
using	O	O
the	O	O
same	O	O
view	O	O
engine	O	O
,	O	O
so	O	O
chances	O	O
are	O	O
it	O	O
works	O	O
in	O	O
Safari	O	B-Application
as	O	O
well	O	O
:)	O	O

I	O	O
'm	O	O
new	O	O
in	O	O
Kendo	O	B-Application
UI	O	I-Application
&	O	O
Codeigniter	O	B-Application
.	O	O

I	O	O
have	O	O
trouble	O	O
with	O	O
Kendo	O	B-Application
UI	O	I-Application
when	O	O
i	O	O
trying	O	O
to	O	O
read	O	O
data	O	O
from	O	O
codeigniter	O	B-Library
controller	O	O
.	O	O

I	O	O
can	O	O
see	O	O
json	O	B-File_Type
data	O	O
,	O	O
which	O	O
is	O	O
return	O	O
from	O	O
controller	O	O
,	O	O
but	O	O
it	O	O
not	O	O
display	O	O
at	O	O
Kendo	O	B-Application
UI	O	I-Application
grid	O	O
.	O	O

Below	O	O
is	O	O
some	O	O
screen	O	O
shoot	O	O
when	O	O
i	O	O
'm	O	O
debug	O	O
.	O	O

Here	O	O
is	O	O
screen	O	O
shot	O	O
error	O	O
http://prntscr.com/5bmn3n	O	O

Here	O	O
is	O	O
screen	O	O
shot	O	O
data	O	O
i	O	O
recived	O	O
http://prntscr.com/5bmne5	O	O

Here	O	O
is	O	O
screen	O	O
shot	O	O
Kendo	O	B-Application
UI	O	I-Application
code	O	O
:	O	O
prntscr.com/5bmnib	O	O

And	O	O
here	O	O
is	O	O
screen	O	O
shot	O	O
my	O	O
controller	O	O
code	O	O
:	O	O
prntscr.com/5bmnni	O	O

Hope	O	O
you	O	O
can	O	O
help	O	O

Please	O	O
,	O	O
try	O	O
to	O	O
add	O	O

Also	O	O
,	O	O
please	O	O
have	O	O
in	O	O
mind	O	O
that	O	O
"	O	O
jsonp	O	B-Class
"	O	O
is	O	O
required	O	O
for	O	O
cross-domain	O	O
requests	O	O
!	O	O

I	O	O
am	O	O
working	O	O
on	O	O
an	O	O
MVC5	O	B-Library
application	O	O
.	O	O

I	O	O
am	O	O
having	O	O
a	O	O
problem	O	O
getting	O	O
the	O	O
server-side	O	B-Application
validation	O	O
of	O	O
number	O	O
fields	O	O
to	O	O
work	O	O
for	O	O
the	O	O
specific	O	O
culture	O	O
(	O	O
de-CH	O	B-Value
)	O	O
.	O	O

It	O	O
really	O	O
feels	O	O
like	O	O
it	O	O
is	O	O
defaulting	O	O
to	O	O
the	O	O
standard	O	O
German	O	O
format	O	O
.	O	O

I	O	O
have	O	O
set	O	O
the	O	O
web.config	O	B-File_Name
globalization	O	O
:	O	O

I	O	O
am	O	O
not	O	O
using	O	O
any	O	O
resource	O	O
files	O	O
,	O	O
so	O	O
from	O	O
what	O	O
I	O	O
understand	O	O
the	O	O
uiCulture	O	B-Class
does	O	O
not	O	O
come	O	O
into	O	O
play	O	O
.	O	O

The	O	O
client	O	B-Application
is	O	O
using	O	O
jquery.globalize	O	B-Variable
and	O	O
correctly	O	O
loading	O	O
and	O	O
using	O	O
the	O	O
de-CH	O	B-Value
culture	O	O
.	O	O

reports	O	O
the	O	O
proper	O	O
culture	O	O
of	O	O
'	O	B-Value
de-CH	O	I-Value
'	O	I-Value
on	O	O
both	O	O
machines	O	O
.	O	O

Locally	O	O
it	O	O
validates	O	O
100.00	O	B-Value
as	O	O
correct	O	O
,	O	O
but	O	O
on	O	O
the	O	O
server	O	B-Application
it	O	O
says	O	O
that	O	O
is	O	O
not	O	O
a	O	O
number	O	O
.	O	O

All	O	O
of	O	O
this	O	O
works	O	O
properly	O	O
on	O	O
my	O	O
local	O	O
Win7	O	B-Operating_System
IIS7	O	O
instance	O	O
.	O	O

Though	O	O
when	O	O
we	O	O
install	O	O
it	O	O
on	O	O
the	O	O
client	O	B-Application
Win8	O	B-Operating_System
server	O	B-Application
it	O	O
does	O	O
not	O	O
work	O	O
anymore	O	O
.	O	O

The	O	O
client-side	O	B-Application
is	O	O
validating	O	O
numbers	O	O
properly	O	O
for	O	O
the	O	O
de-CH	O	B-Value
culture	O	O
'	O	B-Value
0.00	O	I-Value
'	O	I-Value
,	O	O
but	O	O
the	O	O
server	O	B-Application
rejects	O	O
them	O	O
as	O	O
invalid	O	O
.	O	O

The	O	O
Date	O	O
formats	O	O
ARE	O	O
however	O	O
working	O	O
,	O	O
which	O	O
just	O	O
adds	O	O
to	O	O
the	O	O
confusion	O	O
.	O	O

This	O	O
is	O	O
where	O	O
I	O	O
wonder	O	O
if	O	O
it	O	O
is	O	O
somehow	O	O
falling	O	O
back	O	O
to	O	O
de-DE	O	B-Value
where	O	O
the	O	O
date	O	O
formats	O	O
are	O	O
the	O	O
same	O	O
but	O	O
the	O	O
number	O	O
format	O	O
is	O	O
'	O	B-Value
0	O	I-Value
,	O	I-Value
00	O	I-Value
'	O	B-Value
.	O	O

Does	O	O
a	O	O
server	O	B-Application
have	O	O
to	O	O
have	O	O
a	O	O
specific	O	O
culture	O	O
enabled/installed	O	O
?	O	O

Or	O	O
any	O	O
other	O	O
ideas	O	O
to	O	O
check	O	O
?	O	O

Finally	O	O
we	O	O
figured	O	O
out	O	O
the	O	O
problem	O	O
.	O	O

Apparently	O	O
there	O	O
are	O	O
registry	O	O
settings	O	O
for	O	O
the	O	O
culture	O	O
on	O	O
the	O	O
server	O	B-Application
that	O	O
were	O	O
set	O	O
to	O	O
de-AT	O	B-Value
.	O	O

These	O	O
somehow	O	O
were	O	O
being	O	O
honored	O	O
above	O	O
the	O	O
Web.Config	O	B-File_Name
settings	O	O
.	O	O

I	O	O
need	O	O
to	O	O
somehow	O	O
extract	O	O
plain	O	O
HTTP	O	O
request	O	O
message	O	O
from	O	O
a	O	O
Request	B-Code_Block	B-Class
object	O	O
in	O	O
Scrapy	O	B-Library
(	O	O
so	O	O
that	O	O
I	O	O
could	O	O
,	O	O
for	O	O
example	O	O
,	O	O
copy/paste	O	O
this	O	O
request	O	O
and	O	O
run	O	O
from	O	O
Burp	O	B-Application
)	O	O
.	O	O

So	O	O
given	O	O
a	O	O
scrapy.http.Request	B-Code_Block	B-Class
object	O	O
,	O	O
I	O	O
would	O	O
like	O	O
to	O	O
get	O	O
the	O	O
corresponding	O	O
request	O	O
message	O	O
,	O	O
such	O	O
as	O	O
e.g	O	O
.	O	O

Clearly	O	O
I	O	O
have	O	O
all	O	O
the	O	O
information	O	O
I	O	O
need	O	O
in	O	O
the	O	O
Request	B-Code_Block	B-Class
object	O	O
,	O	O
however	O	O
trying	O	O
to	O	O
reconstruct	O	O
the	O	O
message	O	O
manually	O	O
is	O	O
error-prone	O	O
as	O	O
I	O	O
could	O	O
miss	O	O
some	O	O
edge	O	O
cases	O	O
.	O	O

My	O	O
understanding	O	O
is	O	O
that	O	O
Scrapy	O	B-Library
first	O	O
converts	O	O
this	O	O
Request	B-Code_Block	B-Class
into	O	O
Twisted	B-Code_Block	B-Library
object	O	O
,	O	O
which	O	O
then	O	O
writes	O	O
headers	O	O
and	O	O
body	O	O
into	O	O
a	O	O
TCP	O	O
transport	O	O
.	O	O

So	O	O
maybe	O	O
there	O	O
's	O	O
away	O	O
to	O	O
do	O	O
something	O	O
similar	O	O
,	O	O
but	O	O
write	O	O
to	O	O
a	O	O
string	O	B-Data_Type
instead	O	O
?	O	O

UPDATE	O	O

I	O	O
could	O	O
use	O	O
the	O	O
following	O	O
code	O	O
to	O	O
get	O	O
HTTP	B-Code_Block	O
1.0	I-Code_Block	B-Version
request	O	O
message	O	O
,	O	O
which	O	O
is	O	O
based	O	O
on	O	O
http.py	B-Code_Block	B-Class
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
do	O	O
something	O	O
similar	O	O
with	O	O
HTTP	B-Code_Block	O
1.1	I-Code_Block	B-Version
requests	O	O
/	O	O
http11.py	B-Code_Block	B-File_Name
,	O	O
which	O	O
is	O	O
what	O	O
's	O	O
actually	O	O
being	O	O
sent	O	O
?	O	O

I	O	O
would	O	O
obviously	O	O
like	O	O
to	O	O
avoid	O	O
duplicating	O	O
code	O	O
from	O	O
Scrapy/Twisted	B-Code_Block	B-Library
frameworks	O	O
as	O	O
much	O	O
as	O	O
possible	O	O
.	O	O

As	O	O
scrapy	O	B-Library
is	O	O
open	O	O
source	O	O
and	O	O
also	O	O
has	O	O
plenty	O	O
of	O	O
extension	O	O
points	O	O
,	O	O
this	O	O
should	O	O
be	O	O
doable	O	O
.	O	O

The	O	O
requests	O	O
are	O	O
finally	O	O
assembled	O	O
and	O	O
sent	O	O
out	O	O
in	O	O
scrapy/core/downloader/handlers/http11.py	O	B-File_Name
in	O	O
ScrapyAgent.download_request	B-Code_Block	B-Function
(	O	O
https://github.com/scrapy/scrapy/blob/master/scrapy/core/downloader/handlers/http11.py#L270	O	O
)	O	O

If	O	O
you	O	O
place	O	O
your	O	O
hook	O	O
there	O	O
you	O	O
can	O	O
dump	O	O
the	O	O
request	O	O
type	O	O
,	O	O
request	O	O
headers	O	O
,	O	O
and	O	O
request	O	O
body	O	O
.	O	O

To	O	O
place	O	O
your	O	O
code	O	O
there	O	O
you	O	O
can	O	O
either	O	O
try	O	O
monkey	O	O
patching	O	O
ScrapyAgent.download_request	B-Code_Block	B-Function
or	O	O
to	O	O
subclass	O	O
ScrapyAgent	B-Code_Block	B-Class
to	O	O
do	O	O
the	O	O
request	O	O
logging	O	O
,	O	O
then	O	O
subclass	O	O
HTTP11DownloadHandler	B-Code_Block	B-Class
to	O	O
use	O	O
your	O	O
Scrapy	O	B-Library
Agent	O	O
and	O	O
then	O	O
set	O	O
HTTP11DownloadHandler	O	B-Class
as	O	O
new	O	O
DOWNLOAD_HANDLER	O	B-Class
for	O	O
http	O	O
/	O	O
https	O	O
requests	O	O
in	O	O
your	O	O
project	O	O
's	O	O
settings.py	O	B-File_Name
(	O	O
for	O	O
details	O	O
see	O	O
:	O	O
https://doc.scrapy.org/en/latest/topics/settings.html#download-handlers	O	O
)	O	O

In	O	O
my	O	O
opinion	O	O
this	O	O
is	O	O
the	O	O
closest	O	O
you	O	O
can	O	O
get	O	O
to	O	O
logging	O	O
the	O	O
requests	O	O
going	O	O
out	O	O
without	O	O
using	O	O
a	O	O
packet	O	O
sniffer	O	O
or	O	O
a	O	O
logging	O	O
proxy	O	O
(	O	O
which	O	O
might	O	O
be	O	O
a	O	O
bit	O	O
overkill	O	O
for	O	O
your	O	O
scenario	O	O
)	O	O
.	O	O

From	O	O
the	O	O
documentation	O	O
:	O	O

"	O	O
Assigning	O	O
to	O	O
size	O	O
,	O	O
width	O	O
or	O	O
height	O	O
changes	O	O
the	O	O
dimensions	O	O
of	O	O
the	O	O
rectangle	O	O
"	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
circle	O	B-User_Interface_Element
,	O	O
assign	O	O
a	O	O
new	O	O
attribute	O	O
but	O	O
no	O	O
changes	O	O
can	O	O
be	O	O
seen	O	O
in	O	O
circle	O	B-User_Interface_Element
.	O	O

What	O	O
am	O	O
i	O	O
doing	O	O
wrong	O	O
?	O	O

You	O	O
draw	O	O
the	O	O
circle	O	B-User_Interface_Element
on	O	O
the	O	O
screen	O	B-User_Interface_Element
surface	O	O
.	O	O

Every	O	O
drawing	O	O
function	O	O
then	O	O
returns	O	O
a	O	O
Rect	B-Code_Block	B-Class
,	O	O
but	O	O
:	O	O

To	O	O
actually	O	O
change	O	O
the	O	O
circle	O	B-User_Interface_Element
on	O	O
the	O	O
screen	O	B-User_Interface_Element
,	O	O
you	O	O
have	O	O
to	O	O
erase	O	O
it	O	O
first	O	O
(	O	O
draw	O	O
something	O	O
above	O	O
it	O	O
)	O	O
,	O	O
then	O	O
draw	O	O
a	O	O
new	O	O
circle	O	B-User_Interface_Element
in	O	O
the	O	O
size	O	O
you	O	O
want	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
simple	O	O
example	O	O
:	O	O

I	O	O
am	O	O
attempting	O	O
to	O	O
up-sample	O	O
an	O	O
icosahedron	O	O
in	O	O
MATLAB	O	B-Application
by	O	O
adding	O	O
new	O	O
vertices	O	O
at	O	O
the	O	O
mid-points	O	O
of	O	O
each	O	O
edge	O	O
and	O	O
recomputing	O	O
the	O	O
faces	O	O
.	O	O

I	O	O
've	O	O
managed	O	O
to	O	O
place	O	O
the	O	O
new	O	O
vertices	O	O
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
recompute	O	O
the	O	O
new	O	O
faces	O	O
.	O	O

I	O	O
want	O	O
each	O	O
vertex	O	O
to	O	O
connect	O	O
to	O	O
its	O	O
closest	O	O
neighbours	O	O
to	O	O
form	O	O
a	O	O
new	O	O
,	O	O
up-sampled	O	O
icosahedron	O	O
.	O	O

Sample	O	O
data	O	O
:	O	O

Code	O	O
:	O	O

For	O	O
a	O	O
triangle	O	O
{	B-Code_Block	O
1	I-Code_Block	B-Value
,	I-Code_Block	O
2	I-Code_Block	B-Value
,	I-Code_Block	O
3}	I-Code_Block	B-Value
,	O	O
subdividing	O	O
will	O	O
create	O	O
3	O	O
new	O	O
vertices	O	O
{	B-Code_Block	O
a	I-Code_Block	B-Variable
,	I-Code_Block	O
b	I-Code_Block	B-Variable
,	I-Code_Block	O
c}	I-Code_Block	B-Variable
:	O	O

It	O	O
will	O	O
also	O	O
create	O	O
4	O	O
new	O	O
faces	O	O
:	O	O

Your	O	O
code	O	O
creates	O	O
the	O	O
coordinates	O	O
of	O	O
the	O	O
new	O	O
vertices	O	O
in	O	O
V	B-Code_Block	B-Variable
such	O	O
that	O	O
the	O	O
a	B-Code_Block	B-Variable
vertices	O	O
for	O	O
all	O	O
of	O	O
the	O	O
triangles	O	O
come	O	O
first	O	O
,	O	O
followed	O	O
by	O	O
the	O	O
c	B-Code_Block	B-Variable
vertices	O	O
,	O	O
and	O	O
then	O	O
the	O	O
b	B-Code_Block	B-Variable
vertices	O	O
.	O	O

First	O	O
let	O	O
's	O	O
generate	O	O
the	O	O
indices	O	O
of	O	O
these	O	O
vertices	O	O
.	O	O

The	O	O
new	O	O
indices	O	O
start	O	O
from	O	O
size(S.vertices)+1	B-Code_Block	B-Code_Block
and	O	O
there	O	O
are	O	O
a	O	O
total	O	O
of	O	O
3*size(S.faces)	B-Code_Block	B-Code_Block
of	O	O
them	O	O
.	O	O

Let	O	O
's	O	O
also	O	O
group	O	O
the	O	O
new	O	O
vertices	O	O
for	O	O
a	O	O
each	O	O
existing	O	O
face	O	O
together	O	O
.	O	O

This	O	O
gives	O	O
us	O	O
all	O	O
of	O	O
the	O	O
new	O	O
[	B-Code_Block	B-Code_Block
a	I-Code_Block	I-Code_Block
b	I-Code_Block	I-Code_Block
c	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
faces	O	O
(	O	O
actually	O	O
,	O	O
in	O	O
[	B-Code_Block	B-Code_Block
a	I-Code_Block	I-Code_Block
c	I-Code_Block	I-Code_Block
b	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
order	O	O
)	O	O
in	O	O
Vx(f,:)	B-Code_Block	B-Code_Block
with	O	O
the	O	O
a	B-Code_Block	B-Variable
vertices	O	O
in	O	O
Vx(:,1)	B-Code_Block	B-Code_Block
,	O	O
the	O	O
b	B-Code_Block	B-Variable
vertices	O	O
in	O	O
Vx(:,3)<-	B-Code_Block	B-Code_Block
-	O	O
not	O	O
2	O	B-Value
!	O	O
,	O	O
and	O	O
the	O	O
c	B-Code_Block	B-Variable
vertices	O	O
in	O	O
Vx(:,2)	B-Code_Block	B-Code_Block
.	O	O

Now	O	O
we	O	O
need	O	O
to	O	O
create	O	O
the	O	O
other	O	O
3	O	O
new	O	O
faces	O	O
for	O	O
each	O	O
existing	O	O
face	O	O
.	O	O

You	O	O
can	O	O
do	O	O
this	O	O
using	O	O
cat	B-Code_Block	B-Function
,	O	O
permute	B-Code_Block	B-Function
and	O	O
reshape	B-Code_Block	B-Function
,	O	O
but	O	O
it	O	O
gets	O	O
really	O	O
ugly	O	O
and	O	O
incomprehensible	O	O
.	O	O

Since	O	O
we	O	O
've	O	O
only	O	O
got	O	O
9	O	O
vertices	O	O
that	O	O
go	O	O
into	O	O
these	O	O
faces	O	O
,	O	O
it	O	O
's	O	O
easier	O	O
to	O	O
just	O	O
plug	O	O
them	O	O
in	O	O
manually	O	O
to	O	O
create	O	O
a	O	O
m	B-Code_Block	B-Code_Block
x	I-Code_Block	I-Code_Block
9	I-Code_Block	I-Code_Block
matrix	O	B-Data_Structure
and	O	O
then	O	O
reshape	O	B-Function
into	O	O
m*3	B-Code_Block	B-Code_Block
x	I-Code_Block	I-Code_Block
3	I-Code_Block	I-Code_Block
:	O	O

Now	O	O
all	O	O
that	O	O
's	O	O
left	O	O
is	O	O
updating	O	O
S	B-Code_Block	B-Variable
:	O	O

So	O	O
at	O	O
this	O	O
point	O	O
I	O	O
am	O	O
running	O	O
the	O	O
app	O	O
by	O	O
the	O	O
command	O	O
:	O	O
nodemon	O	B-Code_Block
server.js	O	I-Code_Block
,	O	O
I	O	O
did	O	O
not	O	O
deploy	O	O
.	O	O

I	O	O
created	O	O
a	O	O
Bitnami	O	B-Library
powered	O	O
compute	O	B-Device
engine	O	I-Device
machine	O	O
that	O	O
has	O	O
MongoDB	O	B-Application
installed	O	O
,	O	O
and	O	O
it	O	O
works	O	O
when	O	O
I	O	O
log	O	O
in	O	O
to	O	O
it	O	O
.	O	O

From	O	O
my	O	O
nodejs	O	B-Application
App	O	O
engine	O	O
I	O	O
connect	O	O
like	O	O
this	O	O
:	O	O

The	O	O
error	O	O
I	O	O
get	O	O
is	O	O
:	O	O

I	O	O
tried	O	O
ssh-ing	O	O
into	O	O
the	O	O
compute	O	B-Device
engine	O	I-Device
and	O	O
I	O	O
did	O	O
the	O	O
following	O	O
:	O	O

adding	O	O
perimision	O	O
for	O	O
port	O	B-Device
27017	O	O
:	O	O

gcloud	B-Code_Block	B-Code_Block
compute	I-Code_Block	I-Code_Block
firewall-rules	I-Code_Block	I-Code_Block
create	I-Code_Block	I-Code_Block
allow-mongodb	I-Code_Block	I-Code_Block
--allow	I-Code_Block	I-Code_Block
tcp:27017	I-Code_Block	I-Code_Block

It	O	O
said	O	O
it	O	O
already	O	O
exist	O	O
.	O	O

I	O	O
changed	O	O
in	O	O
mongodb.config	O	B-File_Name
in	O	O
bind_ip	O	B-Variable
to	O	O
0.0.0.0	O	B-Value
.	O	O

Still	O	O
nothing	O	O
.	O	O

This	O	O
is	O	O
very	O	O
frustating	O	O
,	O	O
if	O	O
you	O	O
have	O	O
any	O	O
idea	O	O
I	O	O
would	O	O
very	O	O
much	O	O
apreciate	O	O
it	O	O
.	O	O

As	O	O
a	O	O
mention	O	O
,	O	O
I	O	O
do	O	O
not	O	O
have	O	O
a	O	O
lot	O	O
of	O	O
experience	O	O
with	O	O
this	O	O
,	O	O
so	O	O
please	O	O
be	O	O
explicit	O	O
.	O	O

I	O	O
usually	O	O
do	O	O
this	O	O
:	O	O

I	O	O
hope	O	O
helped	O	O
.	O	O

I	O	O
need	O	O
to	O	O
create	O	O
a	O	O
virtual	O	B-Application
printer	O	I-Application
that	O	O
'	O	O
shreds	O	O
'	O	O

Basically	O	O
here	O	O
is	O	O
my	O	O
problem	O	O
.	O	O

I	O	O
have	O	O
a	O	O
software	O	O
program	O	O
that	O	O
needs	O	O
to	O	O
'	O	O
print	O	O
'	O	O
a	O	O
file	O	O
before	O	O
it	O	O
will	O	O
save	O	O
it	O	O
.	O	O

I	O	O
want	O	O
to	O	O
be	O	O
able	O	O
to	O	O
print	O	O
to	O	O
my	O	O
shredder	O	O
so	O	O
that	O	O
it	O	O
saves	O	O
the	O	O
document	O	O
,	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
actually	O	O
want	O	O
the	O	O
document	O	O
printed	O	O
.	O	O

So	O	O
I	O	O
need	O	O
to	O	O
print	O	O
to	O	O
a	O	O
program	O	O
that	O	O
securely	O	O
deletes	O	O
the	O	O
document	O	O
and	O	O
shows	O	O
as	O	O
a	O	O
driver	O	B-Application
in	O	O
Windows	O	B-Operating_System
.	O	O

How	O	O
would	O	O
I	O	O
go	O	O
about	O	O
doing	O	O
this	O	O
in	O	O
C#	O	B-Language
of	O	O
VB.Net	O	B-Language
?	O	O

No	O	O
need	O	O
to	O	O
write	O	O
code	O	O
for	O	O
this	O	O
just	O	O
print	O	O
to	O	O
nul	B-Code_Block	B-Value
.	O	O

This	O	O
has	O	O
worked	O	O
since	O	O
DOS	O	B-Operating_System
.	O	O

Just	O	O
create	O	O
a	O	O
new	O	O
printer	O	B-Device
,	O	O
printing	O	O
to	O	O
a	O	O
local	O	O
port	O	B-Device
,	O	O
and	O	O
put	O	O
nul	B-Code_Block	B-Value
in	O	O
there	O	O
for	O	O
the	O	O
port	O	B-Device
name	O	O
.	O	O

http://www.markmmanning.com/blog/2009/01/creating-fake-printer-devnull-for.html	O	O

I	O	O
'm	O	O
generating	O	O
PDF	O	B-File_Type
files	O	O
using	O	O
an	O	O
old	O	O
library	O	O
of	O	O
iText	O	B-Library
on	O	O
Unix	O	B-Operating_System
.	O	O

Everything	O	O
is	O	O
going	O	O
fine	O	O
,	O	O
but	O	O
my	O	O
exploitation	O	O
team	O	O
has	O	O
just	O	O
contacted	O	O
me	O	O
telling	O	O
they	O	O
are	O	O
having	O	O
storage	O	O
troubles	O	O
with	O	O
some	O	O
temp	O	B-File_Type
files	O	O
.	O	O

After	O	O
a	O	O
discussion	O	O
,	O	O
they	O	O
indicate	O	O
me	O	O
a	O	O
lot	O	O
of	O	O
"	O	B-File_Name
Acroaxxxxx	O	I-File_Name
"	O	I-File_Name
files	O	O
are	O	O
created	O	O
under	O	O
/tmp	O	B-File_Name
folder	O	O
.	O	O

I	O	O
'm	O	O
checking	O	O
it	O	O
and	O	O
the	O	O
files	O	O
are	O	O
the	O	O
same	O	O
I	O	O
generate	O	O
with	O	O
my	O	O
application	O	O
,	O	O
but	O	O
my	O	O
code	O	O
is	O	O
not	O	O
handling	O	O
this	O	O
.	O	O

My	O	O
question	O	O
is	O	O
quite	O	O
simple	O	O
:	O	O
can	O	O
I	O	O
modify	O	O
or	O	O
add	O	O
something	O	O
to	O	O
my	O	O
code	O	O
to	O	O
indicate	O	O
to	O	O
iText	O	B-Library
to	O	O
delete	O	O
the	O	O
tmp	O	B-File_Type
file	O	O
created	O	O
during	O	O
the	O	O
process	O	O
?	O	O

Thnks	O	O
!	O	O

This	O	O
works	O	O

apache_setenv	O	B-Code_Block
(	O	I-Code_Block
'sessionID'	O	I-Code_Block
,	O	I-Code_Block
session_id()	O	I-Code_Block
,	O	I-Code_Block
TRUE	O	I-Code_Block
)	O	I-Code_Block

BUT	O	O

it	O	O
only	O	O
makes	O	O
sessionID	O	B-Variable
appear	O	O
on	O	O
GETs	O	B-Code_Block
of	O	O
PHP	O	B-File_Type
files	O	O
which	O	O
set	O	O
the	O	O
variable	O	O
.	O	O

I	O	O
would	O	O
like	O	O
the	O	O
sessionID	O	B-Variable
to	O	O
appear	O	O
on	O	O
all	O	O
GETs	O	B-Code_Block
including	O	O
js	O	B-File_Type
,	O	O
jpg	O	B-File_Type
,	O	O
gif	O	B-File_Type
etc	O	O
referred	O	O
from	O	O
the	O	O
PHP	O	B-File_Type
file	O	O
.	O	O

i.e	O	O
.	O	O
all	O	O
the	O	O
files	O	O
in	O	O
the	O	O
PHP	O	B-File_Type
file	O	O
.	O	O

I	O	O
thought	O	O
that	O	O
by	O	O
setting	O	O
an	O	O
apache	O	B-Application
environment	O	O
variable	O	O
the	O	O
variable	O	O
scope	O	O
would	O	O
make	O	O
it	O	O
available	O	O
for	O	O
every	O	O
GET	O	B-Code_Block
from	O	O
the	O	O
PHP	O	B-File_Type
file	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
do	O	O
this	O	O
?	O	O

p.s	O	O
.	O	O
I	O	O
tried	O	O
setting	O	O
apache	O	B-Function
note	O	I-Function
first	O	O
and	O	O
that	O	O
returns	O	O
exactly	O	O
the	O	O
same	O	O
.	O	O

Getting	O	O
"	O	O
Gateway	O	B-Error_Name
error	O	I-Error_Name
:	O	O
Unable	O	O
to	O	O
read	O	O
response	O	O
or	O	O
response	O	O
is	O	O
empty	O	O
"	O	O
when	O	O
I	O	O
try	O	O
to	O	O
post	O	O
payments	O	O
to	O	O
authorize.net	O	B-Application
.	O	O

Authorize.net	O	B-Application
cannot	O	O
see	O	O
anything	O	O
coming	O	O
through	O	O
,	O	O
host	O	O
provider	O	O
says	O	O
no	O	O
issues	O	O
on	O	O
their	O	O
end	O	O
.	O	O

I	O	O
am	O	O
using	O	O
the	O	O
Authorize.net	O	B-Application
payment	O	O
type	O	O

I	O	O
have	O	O
verified	O	O
my	O	O
API	O	B-Variable
login	O	I-Variable
and	O	O
trans	O	B-Variable
ID	O	I-Variable
in	O	O
default	O	O
,	O	O
website	O	O
,	O	O
and	O	O
store	O	O
view	O	O

I	O	O
have	O	O
installed	O	O
cURL	O	B-Application
SSL	O	I-Application

I	O	O
have	O	O
verified	O	O
no	O	O
firewalls	O	B-Application
are	O	O
blocking	O	O
connections	O	O
.	O	O

I	O	O
am	O	O
not	O	O
in	O	O
testmode	O	O

debugging	O	O
is	O	O
on	O	O
,	O	O
and	O	O
results	O	O
are	O	O
below	O	O
.	O	O

Below	O	O
is	O	O
the	O	O
output	O	O
from	O	O
the	O	O
exception.log	O	B-File_Name
file	O	O

i	O	O
think	O	O
you	O	O
enabled	O	O
Test	O	O
Mode	O	O
in	O	O
System->Configuration->PaymentMethods	O	B-Application

Turns	O	O
out	O	O
there	O	O
was	O	O
an	O	O
issue	O	O
with	O	O
my	O	O
nameservers	O	B-Application
at	O	O
my	O	O
host	O	O
.	O	O

I	O	O
figured	O	O
this	O	O
out	O	O
using	O	O
information	O	O
here	O	O
:	O	O
http://www.magentocommerce.com/boards/viewthread/50611/	O	O
(	O	O
the	O	O
referenced	O	O
thread	O	O
can	O	O
be	O	O
viewed	O	O
in	O	O
the	O	O
internet	O	O
archive	O	O
,	O	O
here	O	O
https://web.archive.org/web/20150315055800/http://www.magentocommerce.com/boards/viewthread/50611	O	O
)	O	O

After	O	O
that	O	O
I	O	O
received	O	O
an	O	O
error	O	O
message	O	O
associated	O	O
with	O	O
a	O	O
blocked	O	O
IP	O	O
.	O	O

I	O	O
added	O	O
my	O	O
new	O	O
ip	O	O
at	O	O
accounts.authorize.net	O	O
in	O	O
Tools	O	B-Application
(	O	O
top	O	O
menu	O	B-User_Interface_Element
)	O	O
>	O	O
Fraud	O	O
Suite	O	O
(	O	O
left	O	O
menu	O	B-User_Interface_Element
)	O	O
>	O	O
Authorized	O	O
AIM	O	O
ip	O	O
addresses	O	O
(	O	O
body	O	O
,	O	O
second	O	O
to	O	O
last	O	O
item	O	O
)	O	O
.	O	O

I	O	O
'm	O	O
doing	O	O
a	O	O
database	O	O
project	O	O
for	O	O
university	O	O
and	O	O
I	O	O
'm	O	O
having	O	O
a	O	O
problem	O	O
in	O	O
here	O	O
.	O	O

I	O	O
receive	O	O
from	O	O
a	O	O
previous	O	O
page	O	O
an	O	O
id	O	O
as	O	O
$_POST['ids']	O	B-Variable
and	O	O
in	O	O
the	O	O
form	O	O
I	O	O
send	O	O
that	O	O
same	O	O
value	O	O
in	O	O
a	O	O
hidden	O	O
field	O	O
so	O	O
it	O	O
can	O	O
do	O	O
a	O	O
sort	O	O
of	O	O
a	O	O
cicle	O	O
.	O	O

But	O	O
when	O	O
I	O	O
click	O	O
the	O	O
submit	O	O
button	O	B-User_Interface_Element
I	O	O
got	O	O
a	O	O
lot	O	O
of	O	O
errors	O	O
on	O	O
$service_info	O	B-Variable
and	O	O
no	O	O
information	O	O
is	O	O
loaded	O	O
on	O	O
the	O	O
page	O	O
.	O	O

I	O	O
tried	O	O
do	O	O
var_dump()	O	B-Function
everything	O	O
and	O	O
I	O	O
just	O	O
ca	O	O
n't	O	O
find	O	O
what	O	O
is	O	O
the	O	O
problem	O	O
in	O	O
here	O	O
.	O	O

change	O	O
inside	O	O
your	O	O
form	O	O
this	O	O
input	O	O
hidden	O	O
you	O	O
created	O	O
:	O	O

to	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
echoing	O	O
this	O	O
value	O	O
,	O	O
$_POST['ids']	O	B-Variable
wo	O	O
n't	O	O
be	O	O
get	O	O
any	O	O
value	O	O
passed	O	O
from	O	O
form	O	B-User_Interface_Element
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
query	O	O
the	O	O
latest	O	O
insert	O	O
made	O	O
to	O	O
the	O	O
table	O	B-Data_Structure
,	O	O
Azure	O	B-Application
Mobile	O	I-Application
Service	O	I-Application
adds	O	O
by	O	O
default	O	O
the	O	O
__createdAt	B-Code_Block	B-Variable
column	O	B-Data_Structure
.	O	O

So	O	O
,	O	O
I	O	O
am	O	O
planning	O	O
to	O	O
sort	O	O
the	O	O
table	O	B-Data_Structure
according	O	O
to	O	O
that	O	O
specific	O	O
column	O	B-Data_Structure
,	O	O
since	O	O
__createdAt	B-Code_Block	B-Variable
is	O	O
a	O	O
system	O	O
property	O	O
.	O	O

I	O	O
thought	O	O
of	O	O
adding	O	O
it	O	O
to	O	O
my	O	O
table	O	B-Data_Structure
model	O	O
.	O	O

Now	O	O
my	O	O
question	O	O
is	O	O
:	O	O
how	O	O
to	O	O
query	O	O
this	O	O
in	O	O
C#	O	B-Language
?	O	O

You	O	O
can	O	O
have	O	O
a	O	O
property	O	O
in	O	O
your	O	O
model	O	O
that	O	O
tracks	O	O
the	O	O
__createdAt	O	B-Variable
column	O	B-Data_Structure
,	O	O
and	O	O
sort	O	O
based	O	O
on	O	O
that	O	O
:	O	O

And	O	O
on	O	O
the	O	O
code	O	O
:	O	O

Hi	O	O
all	O	O
this	O	O
is	O	O
my	O	O
first	O	O
question	O	O
here	O	O
,	O	O
I	O	O
'm	O	O
very	O	O
new	O	O
to	O	O
Haskell	O	B-Language
and	O	O
I	O	O
need	O	O
to	O	O
do	O	O
a	O	O
Haskell	O	B-Language
function	O	O
which	O	O
takes	O	O
a	O	O
Tree	O	B-Data_Structure
and	O	O
returns	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
the	O	O
elements	O	O
in	O	O
its	O	O
node	O	O
in	O	O
a	O	O
preorder	O	O
traversal	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
get	O	O
it	O	O
to	O	O
work	O	O
.	O	O

My	O	O
Tree	O	B-Data_Structure
definition	O	O
is	O	O
the	O	O
following	O	O
:	O	O

and	O	O
the	O	O
preorder	O	B-Function
function	O	O
is	O	O
:	O	O

In	O	O
advance	O	O
thank	O	O
you	O	O
very	O	O
much	O	O
for	O	O
your	O	O
help	O	O
:)	O	O

I	O	O
have	O	O
a	O	O
ListView	O	B-Class
in	O	O
my	O	O
Windows	O	B-Application
Store	O	I-Application
App	O	O
,	O	O
which	O	O
selects	O	O
a	O	O
template	O	O
through	O	O
dataTemplateSelector	O	B-Class
.	O	O

In	O	O
the	O	O
ItemTemplate	O	B-Class
of	O	O
ListView	O	B-Class
,	O	O
i	O	O
have	O	O
an	O	O
image	O	B-User_Interface_Element
.	O	O

I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
fix	O	O
the	O	O
height	O	B-Variable
and	O	O
width	O	B-Variable
of	O	O
the	O	O
image	O	B-User_Interface_Element
,	O	O
i	O	O
want	O	O
to	O	O
allow	O	O
it	O	O
to	O	O
adjust	O	O
itself	O	O
with	O	O
the	O	O
space	O	O
available	O	O
.	O	O

So	O	O
the	O	O
image	O	B-User_Interface_Element
can	O	O
be	O	O
displayed	O	O
bigger	O	O
in	O	O
big	O	O
screen	O	O
size	O	O
.	O	O

Following	O	O
is	O	O
my	O	O
ListView	O	B-Class
XAML	O	B-Language
:	O	O

I	O	O
have	O	O
set	O	O
VerticalContentAlignment	O	B-Class
to	O	O
Stretch	O	O
,	O	O
this	O	O
stretches	O	O
my	O	O
ListViewItem	O	B-Class
to	O	O
the	O	O
size	O	O
of	O	O
ListView	O	B-Class
,	O	O
but	O	O
the	O	O
problem	O	O
is	O	O
when	O	O
the	O	O
image	O	B-User_Interface_Element
inside	O	O
the	O	O
Item	O	B-User_Interface_Element
is	O	O
bigger	O	O
,	O	O
it	O	O
increases	O	O
the	O	O
size	O	O
of	O	O
ListViewItem	O	B-Class
larger	O	O
than	O	O
ListView	O	B-Class
.	O	O

I	O	O
have	O	O
also	O	O
tried	O	O
setting	O	O
the	O	O
height	O	B-Variable
of	O	O
ListViewItem	O	B-Class
in	O	O
the	O	O
above	O	O
code	O	O
by	O	O
adding	O	O

Following	O	O
is	O	O
the	O	O
code	O	O
of	O	O
my	O	O
ItemTemplate	O	B-Class
,	O	O
which	O	O
is	O	O
being	O	O
selected	O	O
through	O	O
ItemTemplateSelector	O	B-Variable
,	O	O

The	O	O
Grid	O	B-User_Interface_Element
at	O	O
Row	O	O
Number	O	O
1	O	B-Value
<Grid	B-Code_Block	B-Code_Block
Grid.Row="1"	I-Code_Block	I-Code_Block
>	I-Code_Block	I-Code_Block
,	O	O
contains	O	O
the	O	O
image	O	B-User_Interface_Element
which	O	O
makes	O	O
the	O	O
height	O	B-Variable
go	O	O
larger	O	O
than	O	O
the	O	O
ListView	O	B-Class
.	O	O

I	O	O
want	O	O
to	O	O
allow	O	O
this	O	O
Grid	O	B-User_Interface_Element
to	O	O
stretch	O	O
itself	O	O
to	O	O
the	O	O
size	O	O
of	O	O
its	O	O
parent	O	O
.	O	O

But	O	O
not	O	O
cross	O	O
the	O	O
size	O	O
of	O	O
its	O	O
parent	O	O
.	O	O

in	O	O
other	O	O
word	O	O
,	O	O
i	O	O
simply	O	O
want	O	O
to	O	O
bind	O	O
its	O	O
height	O	B-Variable
to	O	O
its	O	O
parent	O	O
.	O	O

Please	O	O
help	O	O
me	O	O
out	O	O
,	O	O
i	O	O
am	O	O
stuck	O	O
here	O	O
.	O	O

I	O	O
have	O	O
managed	O	O
to	O	O
solve	O	O
this	O	O
in	O	O
my	O	O
own	O	O
project	O	O
by	O	O
binding	O	O
the	O	O
Height	B-Code_Block	B-Variable
of	O	O
the	O	O
Grid	B-Code_Block	B-Class
in	O	O
the	O	O
DataTemplate	B-Code_Block	B-Class
to	O	O
the	O	O
ActualHeight	B-Code_Block	B-Variable
of	O	O
the	O	O
ListView	B-Code_Block	B-Class
.	O	O

I	O	O
does	O	O
not	O	O
seem	O	O
to	O	O
work	O	O
if	O	O
the	O	O
binding	O	O
is	O	O
in	O	O
the	O	O
ListView.ItemContainerStyle	B-Code_Block	B-HTML_XML_Tag
style	O	O
as	O	O
a	O	O
setter	O	O
.	O	O

have	O	O
you	O	O
tried	O	O
to	O	O
change	O	O
the	O	O
Row	O	B-Class
Definition	O	I-Class
applied	O	O
for	O	O
that	O	O
image	O	O
to	O	O
'	O	O
Auto	O	B-Value
'	O	O
?	O	O

try	O	O
this	O	O

Since	O	O
there	O	O
is	O	O
no	O	O
OrderAmount	O	B-Variable
type	O	O
column	O	B-Data_Structure
,	O	O
I	O	O
am	O	O
assuming	O	O
what	O	O
you	O	O
need	O	O
is	O	O
maximum	O	O
number	O	O
of	O	O
orders	O	O
.	O	O

Let	O	O
's	O	O
say	O	O
your	O	O
working	O	O
on	O	O
a	O	O
product	O	O
,	O	O
and	O	O
you	O	O
realise	O	O
that	O	O
some	O	O
of	O	O
the	O	O
code	O	O
is	O	O
general	O	O
enough	O	O
to	O	O
be	O	O
extracted	O	O
out	O	O
to	O	O
a	O	O
gem	O	B-File_Type
.	O	O

So	O	O
you	O	O
create	O	O
a	O	O
new	O	O
project	O	O
,	O	O
build	O	O
the	O	O
gem	O	O
,	O	O
publish	O	O
it	O	O
to	O	O
Rubygems	O	B-Website
,	O	O
and	O	O
then	O	O
reference	O	O
it	O	O
in	O	O
your	O	O
main	O	O
project	O	O
's	O	O
Gemfile	O	B-File_Type
.	O	O

Then	O	O
you	O	O
discover	O	O
a	O	O
small	O	O
bug	O	O
with	O	O
how	O	O
the	O	O
gem	O	B-File_Type
interacts	O	O
with	O	O
your	O	O
product	O	O
.	O	O

Each	O	O
time	O	O
your	O	O
make	O	O
a	O	O
fix	O	O
,	O	O
building	O	O
and	O	O
installing	O	O
the	O	O
gem	O	B-File_Type
locally	O	O
can	O	O
take	O	O
about	O	O
15	O	O
seconds	O	O
.	O	O

How	O	O
do	O	O
you	O	O
minimise	O	O
this	O	O
to	O	O
have	O	O
a	O	O
quick	O	O
develop/test	O	O
cycle	O	O
?	O	O

(	O	O
Also	O	O
it	O	O
seems	O	O
that	O	O
the	O	O
locally	O	O
built	O	O
gem	O	B-File_Type
's	O	O
version	O	O
number	O	O
could	O	O
contradict	O	O
with	O	O
what	O	O
you	O	O
've	O	O
pushed	O	O
to	O	O
Rubygems	O	B-Website
,	O	O
leading	O	O
to	O	O
confusion	O	O
.	O	O
)	O	O

Any	O	O
best	O	O
practice	O	O
guides	O	O
on	O	O
this	O	O
subject	O	O
?	O	O

bundler	O	B-Application
does	O	O
n't	O	O
just	O	O
know	O	O
how	O	O
to	O	O
get	O	O
gems	O	B-File_Type
from	O	O
rubygems	O	B-Website
.	O	O

You	O	O
could	O	O
point	O	O
it	O	O
at	O	O
a	O	O
git	O	B-Application
repository	O	O

or	O	O
,	O	O
much	O	O
more	O	O
conveniently	O	O
in	O	O
this	O	O
case	O	O

where	O	O
the	O	O
path	O	O
option	O	O
points	O	O
to	O	O
the	O	O
folder	O	O
with	O	O
the	O	O
gem	O	B-File_Type
's	O	O
source	O	O

There	O	O
are	O	O
two	O	O
files	O	O
that	O	O
I	O	O
am	O	O
able	O	O
to	O	O
modify	O	O

header.tpl	O	B-File_Name
and	O	O
product.tpl	O	B-File_Name

I	O	O
do	O	O
not	O	O
have	O	O
access	O	O
to	O	O
any	O	O
of	O	O
the	O	O
controller	O	O
or	O	O
model	O	O
files	O	O

For	O	O
SEO	O	O
purposes	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
modifiy	O	O
the	O	O
following	O	O
meta	O	O
data	O	O
while	O	O
on	O	O
a	O	O
product	O	O
page	O	O
.	O	O

Currently	O	O
$description	B-Code_Block	B-Variable
does	O	O
not	O	O
have	O	O
any	O	O
output	O	O
.	O	O

However	O	O
on	O	O
my	O	O
product.tpl	B-Code_Block	B-File_Name
I	O	O
have	O	O
a	O	O
variable	O	O
<?php	B-Code_Block	B-Code_Block
echo	I-Code_Block	I-Code_Block
$heading_title	I-Code_Block	I-Code_Block
?>	I-Code_Block	I-Code_Block
which	O	O
is	O	O
essentially	O	O
the	O	O
text	O	O
that	O	O
I	O	O
would	O	O
like	O	O
to	O	O
have	O	O
in	O	O
the	O	O
header	O	O
meta	B-Code_Block	O
data	O	O
.	O	O

Is	O	O
this	O	O
even	O	O
possible	O	O
to	O	O
achieve	O	O
without	O	O
accessing	O	O
the	O	O
model/controller	O	O
or	O	O
am	O	O
I	O	O
just	O	O
wasting	O	O
my	O	O
time	O	O
?	O	O

As	O	O
noted	O	O
in	O	O
the	O	O
comments	O	O
:	O	O
Once	O	O
something	O	O
has	O	O
been	O	O
sent	O	O
to	O	O
the	O	O
browser	O	B-Application
(	O	O
or	O	O
any	O	O
other	O	O
output	O	O
)	O	O
,	O	O
it	O	O
is	O	O
impossible	O	O
to	O	O
change	O	O
it	O	O
server-side	O	B-Application
.	O	O

The	O	O
best	O	O
solution	O	O
,	O	O
if	O	O
you	O	O
are	O	O
able	O	O
to	O	O
edit	O	O
the	O	O
contents	O	O
of	O	O
the	O	O
header	O	O
with	O	O
preg_replace()	B-Code_Block	B-Function
etc	O	O
,	O	O
is	O	O
to	O	O
simply	O	O
set	O	O
the	O	O
variable	O	O
before	O	O
including	O	O
the	O	O
header	O	O
.	O	O

So	O	O
that	O	O
instead	O	O
of	O	O
something	O	O
like	O	O
this	O	O
:	O	O

You	O	O
move	O	O
all	O	O
of	O	O
the	O	O
processing	O	O
before	O	O
you	O	O
start	O	O
to	O	O
output	O	O
anything	O	O
to	O	O
the	O	O
browser	O	B-Application
,	O	O
which	O	O
completely	O	O
eliminates	O	O
the	O	O
paradox	O	O
of	O	O
having	O	O
to	O	O
change	O	O
something	O	O
you	O	O
've	O	O
already	O	O
sent	O	O
.	O	O

Which	O	O
should	O	O
leave	O	O
you	O	O
with	O	O
a	O	O
code	O	O
looking	O	O
something	O	O
like	O	O
this	O	O
:	O	O

It	O	O
also	O	O
has	O	O
the	O	O
added	O	O
benefit	O	O
of	O	O
making	O	O
your	O	O
PHP	O	B-Language
code	O	O
much	O	O
simpler	O	O
to	O	O
read	O	O
,	O	O
and	O	O
thus	O	O
easier	O	O
to	O	O
maintain	O	O
in	O	O
the	O	O
long	O	O
run	O	O
.	O	O

Even	O	O
on	O	O
this	O	O
small	O	O
code	O	O
sample	O	O
,	O	O
you	O	O
can	O	O
see	O	O
the	O	O
difference	O	O
a	O	O
proper	O	O
seperation	O	O
of	O	O
concerns	O	O
does	O	O
.	O	O

The	O	O
not	O	O
so	O	O
pretty	O	O
but	O	O
functional	O	O
solution	O	O

I	O	O
have	O	O
this	O	O
code	O	O
in	O	O
a	O	O
.html.erb	O	B-File_Type
file	O	O
:	O	O

This	O	O
is	O	O
working	O	O
correctly	O	O
,	O	O
and	O	O
I	O	O
can	O	O
access	O	O
the	O	O
@consumer	O	B-Variable
.name	O	I-Variable
correctly	O	O
.	O	O

However	O	O
,	O	O
if	O	O
I	O	O
change	O	O
this	O	O
to	O	O
:	O	O

Where	O	O
facebook_consumer.js	O	B-File_Name
looks	O	O
like	O	O
this	O	O
:	O	O

It	O	O
will	O	O
dump	O	O
this	O	O
:	O	O

You	O	O
liked	O	O
<%=	B-Code_Block	B-Code_Block
@consumer.name	I-Code_Block	I-Code_Block
%>	I-Code_Block	I-Code_Block
.	O	O

I	O	O
have	O	O
tried	O	O
saving	O	O
the	O	O
file	O	O
as	O	O
js.erb	O	B-File_Name
,	O	O
but	O	O
then	O	O
it	O	O
seems	O	O
it	O	O
does	O	O
n't	O	O
know	O	O
what	O	O
@consumer	O	B-Variable
is	O	O
.	O	O

Any	O	O
thoughts	O	O
on	O	O
what	O	O
is	O	O
the	O	O
best	O	O
approach	O	O
?	O	O

You	O	O
ca	O	O
n't	O	O
inline	O	O
Ruby	O	B-Language
code	O	O
into	O	O
.js	O	B-File_Type
files	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
use	O	O
Ruby	O	B-Language
code	O	O
,	O	O
you	O	O
need	O	O
to	O	O
create	O	O
a	O	O
.js.erb	O	B-File_Type
file	O	O
and	O	O
then	O	O
render	O	O
a	O	O
partial	O	O
inside	O	O
of	O	O
that	O	O
.	O	O

Your	O	O
best	O	O
bet	O	O
is	O	O
probably	O	O
to	O	O
create	O	O
an	O	O
app-wide	O	O
JS	O	B-Language
object	O	O
to	O	O
store	O	O
values	O	O
you	O	O
need	O	O
.	O	O

At	O	O
the	O	O
top	O	O
of	O	O
the	O	O
page	O	O
,	O	O
you	O	O
can	O	O
add	O	O
elements	O	O
to	O	O
this	O	O
object	O	O
,	O	O
and	O	O
they	O	O
will	O	O
be	O	O
available	O	O
to	O	O
your	O	O
linked	O	O
scripts	O	O
.	O	O

This	O	O
is	O	O
a	O	O
multi	O	O
threaded	O	O
scenario	O	O
.	O	O

The	O	O
main	O	O
thread	O	O
handles	O	O
the	O	O
application	O	O
and	O	O
UI	O	O
events	O	O
,	O	O
and	O	O
it	O	O
starts	O	O
up	O	O
a	O	O
new	O	O
thread	O	O
to	O	O
do	O	O
some	O	O
background	O	O
operations	O	O
.	O	O

The	O	O
"	O	O
background	O	O
"	O	O
thread	O	O
loads	O	O
the	O	O
data	O	O
from	O	O
files	O	O
into	O	O
a	O	O
data-table	O	O
of	O	O
a	O	O
strongly-typed	O	O
dataset	O	O
.	O	O

The	O	O
DataGridView	B-Code_Block	B-Class
is	O	O
bound	O	O
to	O	O
that	O	O
DataTable	B-Code_Block	B-Class
.	O	O

Once	O	O
the	O	O
data	O	O
is	O	O
ready	O	O
,	O	O
the	O	O
"	O	O
background	O	O
"	O	O
thread	O	O
invokes	O	O
the	O	O
refresh()	B-Code_Block	B-Function
function	O	O
of	O	O
the	O	O
DataGridView	B-Code_Block	B-Class
on	O	O
the	O	O
form	O	O
.	O	O

If	O	O
there	O	O
are	O	O
more	O	O
lines	O	O
then	O	O
what	O	O
fits	O	O
on	O	O
one	O	O
screen	O	B-Device
and	O	O
the	O	O
vertical	O	B-User_Interface_Element
scrollbar	O	I-User_Interface_Element
is	O	O
to	O	O
appear	O	O
:	O	O
the	O	O
grid	O	B-User_Interface_Element
crashes	O	O
.	O	O

The	O	O
new	O	O
datalines	O	B-User_Interface_Element
are	O	O
always	O	O
displayed	O	O
.	O	O

Error	O	O
only	O	O
occurs	O	O
if	O	O
there	O	O
are	O	O
enough	O	O
lines	O	O
to	O	O
display	O	O
the	O	O
scrollbar	O	B-User_Interface_Element
(	O	O
see	O	O
image	O	B-User_Interface_Element
below	O	O
)	O	O
.	O	O

I	O	O
use	O	O
.NET	O	B-Library
3.5	O	B-Version
.	O	O

In	O	O
Windows	O	B-Operating_System
XP	O	B-Version
it	O	O
crashes	O	O
the	O	O
whole	O	O
application	O	O
.	O	O

On	O	O
Win	O	B-Operating_System
7	O	B-Version
(	O	O
64	O	B-Version
bit	O	I-Version
)	O	O
only	O	O
the	O	O
grid	O	B-User_Interface_Element
becomes	O	O
unresponsive	O	O
,	O	O
but	O	O
once	O	O
I	O	O
resize	O	O
the	O	O
window	O	B-User_Interface_Element
the	O	O
scrollbar	O	B-User_Interface_Element
appears	O	O
and	O	O
all	O	O
is	O	O
fine	O	O
.	O	O

The	O	O
relevant	O	O
parts	O	O
of	O	O
the	O	O
code	O	O
are	O	O
attached	O	O
below	O	O
.	O	O

Grid	O	O
refresh	O	B-Function
operation	O	O
in	O	O
the	O	O
form	O	O
's	O	O
.cs	O	B-File_Type
file	O	O
:	O	O

The	O	O
update	O	O
part	O	O
in	O	O
the	O	O
"	O	O
background	O	O
"	O	O
thread	O	O
:	O	O

The	O	O
objects	O	O
related	O	O
to	O	O
the	O	O
"	O	O
background	O	O
"	O	O
thread	O	O
have	O	O
a	O	O
direct	O	O
reference	O	O
to	O	O
the	O	O
DataSet	B-Code_Block	B-Class
(	O	O
UiDataSource	B-Code_Block	B-Class
)	O	O
.	O	O

The	O	O
DataTable	B-Code_Block	B-Class
(	O	O
CurrentSamples	B-Code_Block	B-Class
)	O	O
is	O	O
updated	O	O
in	O	O
the	O	O
following	O	O
manner	O	O
:	O	O

DataGridView	B-Code_Block	B-Class
options	O	O
:	O	O

If	O	O
I	O	O
made	O	O
a	O	O
mistake	O	O
somewhere	O	O
please	O	O
point	O	O
it	O	O
out	O	O
to	O	O
me	O	O
.	O	O

@ChrisF	O	B-User_Name
:	O	O

I	O	O
tried	O	O
removing	O	O
the	O	O
refresh()	B-Code_Block	B-Function
statement	O	O
,	O	O
as	O	O
I	O	O
am	O	O
doing	O	O
pretty	O	O
much	O	O
the	O	O
same	O	O
what	O	O
u	O	O
suggested	O	O
.	O	O

The	O	O
only	O	O
difference	O	O
is	O	O
the	O	O
databinding	O	O
,	O	O
it	O	O
looks	O	O
like	O	O
:	O	O

And	O	O
I	O	O
update	O	O
the	O	O
dataTable	B-Code_Block	B-Class
in	O	O
a	O	O
similar	O	O
way	O	O
,	O	O
but	O	O
from	O	O
another	O	O
thread	O	O
.	O	O

But	O	O
the	O	O
new	O	O
data	O	O
lines	O	O
do	O	O
not	O	O
appear	O	O
until	O	O
I	O	O
,	O	O
say	O	O
,	O	O
resize	O	O
the	O	O
window	O	B-User_Interface_Element
.	O	O

Which	O	O
raises	O	O
the	O	O
question	O	O
how	O	O
I	O	O
can	O	O
properly	O	O
update	O	O
the	O	O
dataTable	B-Code_Block	B-Class
from	O	O
another	O	O
thread	O	O
?	O	O

I	O	O
'm	O	O
guessing	O	O
the	O	O
problem	O	O
has	O	O
to	O	O
do	O	O
with	O	O
how	O	O
WinForms	O	B-Library
works	O	O
inside	O	O
the	O	O
STA	O	O
model	O	O
for	O	O
threading	O	O
.	O	O

Basically	O	O
,	O	O
the	O	O
DataTable	O	B-Class
you	O	O
're	O	O
accessing	O	O
is	O	O
located	O	O
somewhere	O	O
,	O	O
and	O	O
that	O	O
is	O	O
probably	O	O
inside	O	O
the	O	O
form	O	O
we	O	O
see	O	O
above	O	O
.	O	O

So	O	O
,	O	O
when	O	O
you	O	O
update	O	O
the	O	O
DataTable	O	B-Class
from	O	O
another	O	O
thread	O	O
,	O	O
which	O	O
thread	O	O
gets	O	O
the	O	O
events	O	O
needed	O	O
for	O	O
binding	O	O
?	O	O

Likely	O	O
the	O	O
thread	O	O
you	O	O
update	O	O
it	O	O
from	O	O
,	O	O
and	O	O
the	O	O
form	O	O
's	O	O
thread	O	O
is	O	O
not	O	O
aware	O	O
of	O	O
the	O	O
changes	O	O
being	O	O
made	O	O
.	O	O

So	O	O
,	O	O
you	O	O
simply	O	O
need	O	O
to	O	O
invoke	O	O
any	O	O
calls	O	O
to	O	O
DataTable	O	B-Class
onto	O	O
the	O	O
form	O	O
itself	O	O
,	O	O
so	O	O
it	O	O
receives	O	O
the	O	O
events	O	O
properly	O	O
:	O	O

It	O	O
seems	O	O
backwards	O	O
,	O	O
but	O	O
keep	O	O
in	O	O
mind	O	O
in	O	O
an	O	O
"	O	O
enterprise	O	O
"	O	O
situation	O	O
,	O	O
you	O	O
'd	O	O
probably	O	O
be	O	O
accessing	O	O
that	O	O
dataset	O	O
by	O	O
multiple	O	O
adapters	O	O
.	O	O

So	O	O
,	O	O
your	O	O
update	O	O
thread	O	O
would	O	O
have	O	O
an	O	O
adapter	O	O
to	O	O
itself	O	O
,	O	O
and	O	O
your	O	O
GUI	O	O
would	O	O
have	O	O
its	O	O
own	O	O
also	O	O
.	O	O

The	O	O
other	O	O
solution	O	O
would	O	O
be	O	O
to	O	O
use	O	O
a	O	O
BindingList	B-Code_Block	B-Class
,	O	O
which	O	O
I	O	O
believe	O	O
has	O	O
thread	O	O
compatibility	O	O
for	O	O
this	O	O
type	O	O
of	O	O
situation	O	O
,	O	O
but	O	O
do	O	O
n't	O	O
quote	O	O
me	O	O
on	O	O
that	O	O
.	O	O

For	O	O
extra	O	O
credit	O	O
,	O	O
this	O	O
could	O	O
also	O	O
explain	O	O
your	O	O
problem	O	O
before	O	O
with	O	O
crashing	O	O
.	O	O

By	O	O
accessing	O	O
the	O	O
DataGridView	B-Code_Block	B-Class
from	O	O
the	O	O
background	O	O
thread	O	O
,	O	O
you	O	O
had	O	O
cross-thread	O	O
operations	O	O
going	O	O
on	O	O
.	O	O

I	O	O
would	O	O
n't	O	O
call	O	O
:	O	O

These	O	O
will	O	O
take	O	O
progressively	O	O
longer	O	O
and	O	O
longer	O	O
as	O	O
the	O	O
data	O	O
set	O	O
gets	O	O
larger	O	O
and	O	O
larger	O	O
.	O	O

I	O	O
've	O	O
written	O	O
an	O	O
application	O	O
that	O	O
uses	O	O
a	O	O
DataGridView	B-Code_Block	B-Class
to	O	O
display	O	O
mp3	O	B-File_Type
file	O	O
information	O	O
.	O	O

I	O	O
set	O	O
the	O	O
DataSource	B-Code_Block	B-Class
of	O	O
the	O	O
DataGridView	B-Code_Block	B-Class
to	O	O
a	O	O
DataTable	B-Code_Block	B-Class
:	O	O

and	O	O
then	O	O
simply	O	O
add	O	O
the	O	O
new	O	O
information	O	O
to	O	O
the	O	O
DataTable	B-Code_Block	B-Class
:	O	O

This	O	O
automatically	O	O
updates	O	O
the	O	O
DataGridView	B-Code_Block	B-Class
.	O	O

find	O	O
3rd	O	O
td	O	B-HTML_XML_Tag
in	O	O
tr	O	B-HTML_XML_Tag
where	O	O
class	O	O
contains	O	O
zebra	O	O

The	O	O
photo	O	O
shows	O	O
what	O	O
I	O	O
'm	O	O
working	O	O
with	O	O
.	O	O

For	O	O
each	O	O
of	O	O
the	O	O
4	O	O
animals	O	O
,	O	O
I	O	O
need	O	O
to	O	O
select	O	O
the	O	O
associated	O	O
quantity	O	O
(	O	O
which	O	O
is	O	O
always	O	O
the	O	O
3rd	O	O
td	O	B-HTML_XML_Tag
in	O	O
the	O	O
tr	O	B-HTML_XML_Tag
)	O	O
.	O	O

In	O	O
the	O	O
html	O	B-Language
below	O	O
,	O	O
you	O	O
can	O	O
see	O	O
zebra	O	B-Value
has	O	O
quantity	O	O
1	O	B-Value
,	O	O
and	O	O
lion	O	B-Value
has	O	O
quantity	O	O
1	O	B-Value
.	O	O

I	O	O
have	O	O
been	O	O
unsuccessful	O	O
finding	O	O
by	O	O
class	O	O
.	O	O

Maybe	O	O
you	O	O
tell	O	O
me	O	O
why	O	O
.	O	O

Is	O	O
it	O	O
because	O	O
of	O	O
the	O	O
space	O	O
in	O	O
the	O	O
string	O	B-Data_Type
?	O	O

A	O	O
simple	O	O
xpath	O	B-Language
wo	O	O
n't	O	O
work	O	O
because	O	O
the	O	O
tr	O	B-HTML_XML_Tag
tags	O	O
change	O	O
depending	O	O
on	O	O
user	O	O
inputs	O	O
on	O	O
the	O	O
prior	O	O
page	O	B-User_Interface_Element
.	O	O

I	O	O
've	O	O
also	O	O
tried	O	O
to	O	O
select	O	O
by	O	O
xpath	O	B-Language
with	O	O
contains	O	O
method	O	O
to	O	O
no	O	O
avail	O	O
.	O	O

Maybe	O	O
I	O	O
'm	O	O
just	O	O
not	O	O
doing	O	O
it	O	O
right	O	O
.	O	O

Yes	O	O
you	O	O
cannot	O	O
use	O	O
className	O	B-Function
locator	O	O
when	O	O
there	O	O
is	O	O
a	O	O
space	O	O
in	O	O
the	O	O
Name	O	O
instead	O	O
you	O	O
have	O	O
to	O	O
use	O	O
cssselector	O	B-Function
or	O	O
xpath	O	B-Function
.	O	O

line_item	B-Code_Block	B-Class
Zebra	I-Code_Block	I-Class
are	O	O
two	O	O
classes	O	O
of	O	O
the	O	O
same	O	O
WebElement	B-Code_Block	B-Class
.	O	O

You	O	O
can	O	O
find	O	O
by	O	O
className	B-Code_Block	B-Function
only	O	O
with	O	O
one	O	O
of	O	O
them	O	O

If	O	O
you	O	O
want	O	O
all	O	O
the	O	O
animals	O	O
you	O	O
can	O	O
use	O	O
line_item	B-Code_Block	B-Class
class	O	O
.	O	O

That	O	O
will	O	O
give	O	O
you	O	O
all	O	O
the	O	O
animals	O	O

animals	B-Code_Block	B-Variable
now	O	O
holds	O	O
list	O	O
of	O	O
the	O	O
four	O	O
elements	O	O
with	O	O
class	O	O
line_item	B-Code_Block	B-Class
.	O	O

To	O	O
get	O	O
the	O	O
third	O	O
<td>	B-Code_Block	B-HTML_XML_Tag
in	O	O
each	O	O
one	O	O
you	O	O
can	O	O
use	O	O
the	O	O
WebElements	B-Code_Block	B-Class
in	O	O
the	O	O
list	O	O

I	O	O
understand	O	O
that	O	O
a	O	O
service	O	O
can	O	O
run	O	O
in	O	O
two	O	O
modes	O	O
,	O	O
started	O	O
and	O	O
bound	O	O
.	O	O

What	O	O
I	O	O
do	O	O
n't	O	O
quite	O	O
understand	O	O
from	O	O
the	O	O
developer	O	O
docs	O	O
or	O	O
other	O	O
questions	O	O
on	O	O
this	O	O
site	O	O
,	O	O
is	O	O
whether	O	O
a	O	O
service	O	O
running	O	O
as	O	O
both	O	O
started	O	O
and	O	O
bound	O	O
will	O	O
exit	O	O
when	O	O
the	O	O
last	O	O
component	O	O
unbinds	O	O
from	O	O
it	O	O
?	O	O

If	O	O
something	O	O
called	O	O
startService()	B-Code_Block	B-Function
on	O	O
the	O	O
Service	B-Code_Block	B-Class
,	O	O
it	O	O
will	O	O
remain	O	O
running	O	O
,	O	O
regardless	O	O
of	O	O
what	O	O
bindService()	B-Code_Block	B-Function
and	O	O
unbindService()	B-Code_Block	B-Function
calls	O	O
may	O	O
have	O	O
gone	O	O
on	O	O
.	O	O

Eventually	O	O
,	O	O
Android	O	B-Operating_System
will	O	O
stop	O	O
the	O	O
service	O	O
,	O	O
or	O	O
the	O	O
user	O	O
will	O	O
kill	O	O
the	O	O
service	O	O
,	O	O
but	O	O
neither	O	O
will	O	O
happen	O	O
immediately	O	O
upon	O	O
the	O	O
last	O	O
unbindService()	B-Code_Block	B-Function
.	O	O

Example	O	O
build.gradle	B-Code_Block	B-File_Name
:	O	O

My	O	O
plugin	O	O
:	O	O

My	O	O
custom	O	O
task	O	O
:	O	O

I	O	O
want	O	O
to	O	O
change	O	O
applicationId	B-Code_Block	B-Variable
before	O	O
build	B-Code_Block	O
task	I-Code_Block	O
.	O	O

As	O	O
you	O	O
can	O	O
see	O	O
,	O	O
I	O	O
tried	O	O
to	O	O
do	O	O
it	O	O
via	O	O
property	O	O
,	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

How	O	O
can	O	O
I	O	O
manage	O	O
this	O	O
case	O	O
?	O	O

It	O	O
does	O	O
not	O	O
work	O	O
because	O	O
config	O	B-Variable
is	O	O
resolved	O	O
during	O	O
configuration	O	O
phase	O	O
and	O	O
task	O	O
is	O	O
executed	O	O
during	O	O
execution	O	O
phase	O	O
(	O	O
after	O	O
)	O	O
.	O	O

You	O	O
can	O	O
add	O	O
property	O	O
in	O	O
plugin	O	O
apply	O	B-Function
method	O	O
as	O	O
an	O	O
alternative	O	O
.	O	O

I	O	O
think	O	O
it	O	O
should	O	O
also	O	O
work	O	O
in	O	O
task	O	O
constructor	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
100%	O	O
sure	O	O
.	O	O

It	O	O
looks	O	O
like	O	O
a	O	O
simple	O	O
task	O	O
,	O	O
but	O	O
ca	O	O
n't	O	O
get	O	O
it	O	O
working	O	O
.	O	O

I	O	O
need	O	O
to	O	O
re-order	O	O
divs	O	B-HTML_XML_Tag
for	O	O
tablets	O	O
,	O	O
which	O	O
are	O	O
100%	O	B-Value
width	O	B-HTML_XML_Tag
.	O	O

Please	O	O
take	O	O
a	O	O
look	O	O
at	O	O
the	O	O
following	O	O
fiddle	O	B-Application
to	O	O
see	O	O
what	O	O
I	O	O
mean	O	O
.	O	O

Original	O	O
reference	O	O
:	O	O

http://getbootstrap.com/css/#grid-column-ordering	O	O

There	O	O
is	O	O
a	O	O
hack	O	O
around	O	O
that	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
do	O	O
it	O	O
mobile	O	B-Device
first	O	O
:	O	O

Its	O	O
doable	O	O
if	O	O
you	O	O
think	O	O
mobile	O	B-Device
first	O	O
.	O	O

Place	O	O
the	O	O
divs	O	B-HTML_XML_Tag
in	O	O
the	O	O
order	O	O
you	O	O
want	O	O
them	O	O
to	O	O
appear	O	O
in	O	O
small	O	O
viewports	O	O
and	O	O
then	O	O
reorder	O	O
them	O	O
for	O	O
larger	O	O
viewports	O	O
.	O	O

I	O	O
was	O	O
having	O	O
a	O	O
little	O	O
problem	O	O
.	O	O

My	O	O
script	O	O
works	O	O
fine	O	O
in	O	O
Linux	O	B-Operating_System
Ubuntu	O	I-Operating_System

When	O	O
it	O	O
came	O	O
to	O	O
Windows	O	B-Operating_System
I	O	O
fell	O	O
short	O	O
.	O	O

my	O	O
script	O	O
uses	O	O
import	B-Code_Block	B-Code_Block
argparse	I-Code_Block	I-Code_Block
so	O	O
I	O	O
need	O	O
to	O	O
pass	O	O
arguments	O	O
via	O	O
cmd	O	B-Application
but	O	O
I	O	O
was	O	O
getting	O	O
errors	O	O
.	O	O

I	O	O
figured	O	O
out	O	O
the	O	O
answer	O	O
while	O	O
typing	O	O
this	O	O
.	O	O

For	O	O
anyone	O	O
looking	O	O
for	O	O
answers	O	O
you	O	O
just	O	O
do	O	O
this	O	O
:	O	O

For	O	O
me	O	O
it	O	O
was	O	O
something	O	O
that	O	O
had	O	O
to	O	O
do	O	O
with	O	O
toying	O	O
with	O	O
archives	O	O

This	O	O
action	O	O
will	O	O
compress	O	O
test1.txt	O	B-File_Name
in	O	O
Archive.zip	O	B-File_Name

I	O	O
feel	O	O
stupid	O	O
to	O	O
think	O	O
that	O	O
there	O	O
is	O	O
a	O	O
big	O	O
difference	O	O
between	O	O
command	O	B-Application
line	O	I-Application
in	O	O
Windows	O	B-Operating_System
and	O	O
Linux	O	B-Operating_System
when	O	O
handling	O	O
python	O	B-Language
.	O	O

Keep	O	O
in	O	O
mind	O	O
to	O	O
know	O	O
where	O	O
your	O	O
arguments	O	O
should	O	O
be	O	O
*	O	O

I	O	O
Changed	O	O
the	O	O
places	O	O
between	O	O
-c	O	B-Code_Block
and	O	O
the	O	O
name	O	O
of	O	O
the	O	O
archive	O	O
by	O	O
mistake	O	O

and	O	O
I	O	O
was	O	O
typing	O	O
python3	B-Code_Block	B-Language
instead	O	O
of	O	O
python	B-Code_Block	B-Language
for	O	O
a	O	O
while	O	O
like	O	O
an	O	O
idiot	O	O
.	O	O

So	O	O
the	O	O
biggest	O	O
difference	O	O
is	O	O
python3	B-Code_Block	B-Language
for	O	O
Linux	O	B-Operating_System
and	O	O
python	B-Code_Block	B-Language
for	O	O
Windows	O	B-Operating_System
.	O	O

Is	O	O
there	O	O
anything	O	O
else	O	O
different	O	O
between	O	O
Linux	O	B-Operating_System
and	O	O
Windows	O	B-Operating_System
when	O	O
handling	O	O
python	O	B-Language
scripts	O	O
?	O	O

turned	O	O
out	O	O
everything	O	O
is	O	O
here	O	O
:	O	O
https://docs.python.org/3.3/using/windows.html	O	O

and	O	O
here	O	O
:	O	O
https://docs.python.org/3.3/using/unix.html	O	O

Anyone	O	O
interested	O	O
check	O	O
those	O	O
links	O	O
to	O	O
get	O	O
a	O	O
better	O	O
idea	O	O
there	O	O
was	O	O
no	O	O
need	O	O
for	O	O
my	O	O
question	O	O
after	O	O
all	O	O
:(	O	O

I	O	O
'm	O	O
having	O	O
a	O	O
problem	O	O
displaying	O	O
an	O	O
error	O	O
message	O	O
using	O	O
beans	O	B-Class
.	O	O

This	O	O
is	O	O
what	O	O
i	O	O
'm	O	O
trying	O	O
to	O	O
do	O	O
on	O	O
a	O	O
login	O	O
page	O	O
:	O	O

get	O	O
email	O	O
,	O	O
password	O	O
and	O	O
role	O	O
of	O	O
a	O	O
user	O	O
and	O	O
using	O	O
beans	O	B-Class
check	O	O
it	O	O
against	O	O
the	O	O
database	O	O
for	O	O
validation	O	O
.	O	O

if	O	O
in	O	O
case	O	O
there	O	O
are	O	O
any	O	O
errors	O	O
,	O	O
it	O	O
is	O	O
added	O	O
to	O	O
the	O	O
error	O	O
bean	O	B-Class
and	O	O
displayed	O	O
to	O	O
user	O	O
.	O	O

Currently	O	O
,	O	O
i	O	O
'm	O	O
just	O	O
testing	O	O
if	O	O
the	O	O
user	O	O
enters	O	O
email	O	O
or	O	O
not	O	O
.	O	O

The	O	O
problem	O	O
that	O	O
i	O	O
'm	O	O
getting	O	O
is	O	O
:	O	O
everytime	O	O
i	O	O
turn	O	O
off	O	O
tomcat	O	B-Application
and	O	O
rerun	O	O
it	O	O
,	O	O
first	O	O
time	O	O
i	O	O
dont	O	O
enter	O	O
the	O	O
email	O	O
in	O	O
the	O	O
email	O	O
field	O	O
,	O	O
the	O	O
error	O	O
is	O	O
displayed	O	O
.	O	O

After	O	O
that	O	O
if	O	O
i	O	O
once	O	O
entered	O	O
a	O	O
value	O	O
in	O	O
the	O	O
email	O	O
field	O	O
.	O	O

The	O	O
error	O	O
message	O	O
will	O	O
never	O	O
show	O	O
again	O	O
(	O	O
ofcourse	O	O
when	O	O
i	O	O
dont	O	O
enter	O	O
email	O	O
in	O	O
email	O	O
field	O	O
)	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
:	O	O

doLogin.jsp	O	B-File_Name

formError.java	O	B-File_Name

validate	O	B-Function
function	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
Beans	O	B-Class
and	O	O
currently	O	O
learning	O	O
.	O	O

I	O	O
tried	O	O
changing	O	O
the	O	O
function	O	O
names	O	O
like	O	O
addGenError	B-Code_Block	B-Function
instead	O	O
of	O	O
setGenError	B-Code_Block	B-Function
and	O	O
it	O	O
the	O	O
behavior	O	O
was	O	O
the	O	O
same	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

This	O	O
is	O	O
the	O	O
issue	O	O
:	O	O

while	O	O
sending	O	O
form	O	O
data	O	O
,	O	O
i	O	O
'm	O	O
using	O	O
the	O	O
bean	O	B-Class
id	O	O
:	O	O
loginFormData	B-Code_Block	B-Variable
which	O	O
is	O	O
set	O	O
to	O	O
session	O	O
scope	O	O
.	O	O

After	O	O
changing	O	O
it	O	O
to	O	O
request	O	O
,	O	O
i	O	O
got	O	O
my	O	O
desired	O	O
functionality	O	O
.	O	O

Changed	O	O
code	O	O
:	O	O

I	O	O
need	O	O
to	O	O
check	O	O
a	O	O
folder	O	O
for	O	O
a	O	O
file	O	O
,	O	O
if	O	O
it	O	O
exists	O	O
delete	O	O
it	O	O
an	O	O
replace	O	O
it	O	O
with	O	O
an	O	O
updated	O	O
version	O	O
,	O	O
or	O	O
if	O	O
the	O	O
file	O	O
does	O	O
n't	O	O
delete	O	O
then	O	O
it	O	O
will	O	O
copy	O	O
the	O	O
file	O	O
from	O	O
a	O	O
path	O	O
into	O	O
the	O	O
individuals	O	O
personal	O	O
drive	O	O

My	O	O
Code	O	O
:	O	O

What	O	O
Happens	O	O
:	O	O

The	O	O
code	O	O
executes	O	O
and	O	O
deletes	O	O
the	O	O
existing	O	O
file	O	O
as	O	O
expected	O	O
,	O	O
but	O	O
it	O	O
appears	O	O
to	O	O
be	O	O
failing	O	O
on	O	O
the	O	O
copy	O	O
and	O	O
paste	O	O
part	O	O
.	O	O

Error	O	O
:	O	O

The	O	O
debug	O	O
that	O	O
comes	O	O
up	O	O
is	O	O
:	O	O

Bare	O	O
bones	O	O
:	O	O

You	O	O
have	O	O
n't	O	O
said	O	O
which	O	O
line	O	O
is	O	O
throwing	O	O
the	O	O
error	O	O
,	O	O
but	O	O
I	O	O
noticed	O	O
that	O	O
you	O	O
do	O	O
n't	O	O
seem	O	O
to	O	O
have	O	O
instantiated	O	O
a	O	O
new	O	O
FileSystemObject	O	B-Class
:	O	O

then	O	O
use	O	O
the	O	O
fso	O	B-Variable
reference	O	O
to	O	O
copy	O	O
your	O	O
file	O	O

The	O	O
method	O	O
above	O	O
used	O	O
"	O	O
Late	O	O
binding	O	O
"	O	O
to	O	O
interrogate	O	O
the	O	O
registry	O	O
for	O	O
Scripting.FileSystemObject	B-Code_Block	B-Class

You	O	O
can	O	O
also	O	O
use	O	O
early	O	O
binding	O	O
and	O	O
reference	O	O
the	O	O
Microsoft	O	B-Library
Scripting	O	I-Library
Runtime	O	I-Library
directly	O	O
and	O	O
avoid	O	O
the	O	O
use	O	O
of	O	O
CreateObject	B-Code_Block	B-Function

This	O	O
is	O	O
detailed	O	O
in	O	O
this	O	O
Stack	O	B-Website
Overflow	O	I-Website
answer	O	O
:	O	O

https://stackoverflow.com/a/3236348/491557	O	O

I	O	O
was	O	O
trying	O	O
to	O	O
go	O	O
about	O	O
making	O	O
the	O	O
actions	O	O
for	O	O
a	O	O
UITableViewCell	O	B-Class
overlap	O	O
the	O	O
content	O	O
of	O	O
the	O	O
cell	O	O
,	O	O
like	O	O
in	O	O
the	O	O
National	O	B-Website
Geographic	O	I-Website
app	O	O
:	O	O

table	O	B-Data_Structure
view	O	O

table	O	B-Data_Structure
view	O	O
when	O	O
swiped	O	O

I	O	O
tried	O	O
using	O	O
a	O	O
listener	O	O
on	O	O
the	O	O
contentView	O	B-Class
of	O	O
the	O	O
cell	O	O
to	O	O
track	O	O
the	O	O
frame	O	O
and	O	O
keep	O	O
it	O	O
constant	O	O
,	O	O
but	O	O
I	O	O
was	O	O
unable	O	O
to	O	O
get	O	O
that	O	O
to	O	O
work	O	O
(	O	O
although	O	O
it	O	O
's	O	O
possible	O	O
it	O	O
would	O	O
,	O	O
I	O	O
'm	O	O
kinda	O	O
new	O	O
to	O	O
iOS	O	B-Operating_System
)	O	O
.	O	O

If	O	O
anyone	O	O
has	O	O
any	O	O
suggestions	O	O
for	O	O
creating	O	O
a	O	O
similar	O	O
effect	O	O
,	O	O
they	O	O
would	O	O
be	O	O
much	O	O
appreciated	O	O
!	O	O

u	O	O
can	O	O
make	O	O
your	O	O
own	O	O
custom	O	O
cell	O	O
and	O	O
add	O	O
a	O	O
delete	O	O
button	O	B-User_Interface_Element
and	O	O
swipe	O	O
gestures	O	O
to	O	O
make	O	O
like	O	O
button	O	B-User_Interface_Element
overlap	O	O
the	O	O
contents	O	O
of	O	O
the	O	O
cell	O	O
for	O	O
example	O	O
,	O	O
try	O	O
it	O	O
out	O	O
yourself	O	O
,	O	O
first	O	O
create	O	O
a	O	O
sample	O	O
project	O	O
with	O	O
single	O	O
view	O	O
app	O	O
,	O	O
and	O	O
proceed	O	O

subclass	O	O
the	O	O
tabview	O	B-Variable
cell	O	O
with	O	O
xib	O	B-Code_Block
option	O	O
selected	O	O
and	O	O
name	O	O
it	O	O
something	O	O
like	O	O
CustomCell	B-Code_Block	B-Function
,	O	O
and	O	O
in	O	O
CustomCell.swift	B-Code_Block	B-Class
class	O	O
past	O	O
below	O	O
code	O	O

and	O	O
make	O	O
sure	O	O
the	O	O
tableview	O	B-Variable
cell	O	O
height	O	B-Variable
to	O	O
be	O	O
of	O	O
100pt	O	B-Value
and	O	O
in	O	O
view	O	O
controller	O	O
set	O	O
up	O	O
a	O	O
tableview	O	B-Variable
in	O	O
storyboard	O	B-Application
with	O	O
datasource	O	O
and	O	O
delegate	O	O
and	O	O
implement	O	O
the	O	O
required	O	O
delegate	O	O
and	O	O
datasource	O	O
methods	O	O

Bear	O	O
with	O	O
me	O	O
,	O	O
this	O	O
is	O	O
my	O	O
first	O	O
time	O	O
coding	O	O
or	O	O
using	O	O
stackoverflow	O	B-Website
.	O	O

I	O	O
've	O	O
been	O	O
searching	O	O
through	O	O
the	O	O
Google	O	B-Website
documentation	O	O
and	O	O
various	O	O
search	O	B-Application
engines	O	I-Application
looking	O	O
for	O	O
an	O	O
answer	O	O
and	O	O
someone	O	O
told	O	O
me	O	O
to	O	O
try	O	O
here	O	O
.	O	O

I	O	O
have	O	O
a	O	O
shared	O	O
spreadsheet	O	B-User_Interface_Element
in	O	O
Google	O	B-Application
driver	O	I-Application
and	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
write	O	O
a	O	O
script	O	O
that	O	O
prevents	O	O
any	O	O
other	O	O
user	O	O
but	O	O
myself	O	O
from	O	O
adding	O	O
,	O	O
deleting	O	O
or	O	O
updating	O	O
a	O	O
column	O	B-User_Interface_Element
.	O	O

This	O	O
is	O	O
what	O	O
I	O	O
have	O	O
so	O	O
far	O	O
:	O	O

I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
check	O	O
the	O	O
event	O	B-Class
type	O	O
for	O	O
those	O	O
three	O	O
cases	O	O
..	O	O
.	O	O
Also	O	O
,	O	O
once	O	O
I	O	O
know	O	O
that	O	O
I	O	O
can	O	O
check	O	O
the	O	O
event	O	B-Class
for	O	O
add	O	O
,	O	O
update	O	O
or	O	O
move	O	O
,	O	O
how	O	O
do	O	O
I	O	O
stop	O	O
the	O	O
user	O	O
from	O	O
actually	O	O
doing	O	O
it	O	O
?	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
much	O	O
appreciated	O	O
.	O	O

Sorry	O	O
again	O	O
for	O	O
being	O	O
so	O	O
lost	O	O
.	O	O

In	O	O
a	O	O
shared	O	O
spreadsheet	O	B-User_Interface_Element
to	O	O
prevents	O	O
any	O	O
other	O	O
user	O	O
but	O	O
myself	O	O
from	O	O
adding	O	O
,	O	O
deleting	O	O
or	O	O
updating	O	O
a	O	O
column	O	B-User_Interface_Element
you	O	O
do	O	O
n't	O	O
need	O	O
a	O	O
script	O	O
.	O	O

When	O	O
you	O	O
say	O	O
prevent	O	O
them	O	O
updating	O	O
a	O	O
column	O	B-User_Interface_Element
that	O	O
implies	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
them	O	O
to	O	O
have	O	O
write	O	O
access	O	O
.	O	O

Either	O	O
this	O	O
is	O	O
to	O	O
a	O	O
particular	O	O
column	O	B-User_Interface_Element
or	O	O
to	O	O
any	O	O
column	O	B-User_Interface_Element
.	O	O

You	O	O
can	O	O
set	O	O
protection	O	O
to	O	O
one	O	O
of	O	O
view	O	O
only	O	O
,	O	O
comment	O	O
only	O	O
to	O	O
;	O	O

the	O	O
entire	O	O
spreadsheet	O	B-User_Interface_Element

individual	O	O
sheets	O	B-User_Interface_Element
or	O	O

areas	O	O
within	O	O
a	O	O
sheet	O	B-User_Interface_Element

If	O	O
you	O	O
do	O	O
any	O	O
of	O	O
these	O	O
they	O	O
will	O	O
not	O	O
be	O	O
able	O	O
to	O	O
delete	O	O
the	O	O
column	O	B-User_Interface_Element
either	O	O
.	O	O

Reading	O	O
your	O	O
code	O	O
,	O	O
the	O	O
line	O	O
;	O	O

Implies	O	O
you	O	O
want	O	O
to	O	O
check	O	O
if	O	O
they	O	O
have	O	O
modified	O	O
your	O	O
sheet	O	B-User_Interface_Element
on	O	O
a	O	O
row	O	B-User_Interface_Element
basis	O	O
.	O	O

To	O	O
prevent	O	O
them	O	O
inserting	O	O
or	O	O
deleting	O	O
a	O	O
row	O	B-User_Interface_Element
,	O	O

create	O	O
a	O	O
blank	O	O
column	O	B-User_Interface_Element

protect	O	O
the	O	O
column	O	B-User_Interface_Element
from	O	O
editing	O	O

hide	O	O
the	O	O
column	O	B-User_Interface_Element

If	O	O
anyone	O	O
tries	O	O
to	O	O
add	O	O
or	O	O
delete	O	O
a	O	O
row	O	B-User_Interface_Element
,	O	O
this	O	O
will	O	O
span	O	O
the	O	O
hidden	O	O
protected	O	O
column	O	O
and	O	O
they	O	O
will	O	O
get	O	O
an	O	O
error	O	O
message	O	O
telling	O	O
them	O	O
this	O	O
.	O	O

Now	O	O
the	O	O
only	O	O
onEdit(e)	O	B-Class
you	O	O
will	O	O
detect	O	O
with	O	O
be	O	O
the	O	O
editing	O	O
of	O	O
a	O	O
cell	O	B-User_Interface_Element
or	O	O
group	O	O
of	O	O
cells	O	B-User_Interface_Element
.	O	O

Note	O	O
that	O	O
adding/deleting	O	O
rows	O	B-User_Interface_Element
will	O	O
not	O	O
trigger	O	O
onEdit()	O	B-Class
,	O	O
they	O	O
will	O	O
trigger	O	O
onChange()	O	B-Class
.	O	O

Within	O	O
this	O	O
there	O	O
is	O	O
specific	O	O
way	O	O
to	O	O
tell	O	O
whether	O	O
a	O	O
row	O	O
has	O	O
been	O	O
deleted	O	O
or	O	O
inserted	O	O
.	O	O

onEdit(e)	O	B-User_Interface_Element
will	O	O
allow	O	O
you	O	O
to	O	O
look	O	O
at	O	O
the	O	O
range	O	O
that	O	O
has	O	O
been	O	O
affected	O	O
,	O	O
you	O	O
can	O	O
cross	O	O
check	O	O
this	O	O
with	O	O
your	O	O
spreadsheets	O	B-User_Interface_Element
parameters	O	O
,	O	O

It	O	O
was	O	O
not	O	O
clear	O	O
to	O	O
me	O	O
form	O	O
your	O	O
question	O	O
and	O	O
code	O	O
what	O	O
exactly	O	O
you	O	O
wanted	O	O
to	O	O
do	O	O
.	O	O

If	O	O
I	O	O
have	O	O
misunderstood	O	O
please	O	O
explain	O	O
and	O	O
I	O	O
will	O	O
amend	O	O
my	O	O
help	O	O
.	O	O

Assuming	O	O
this	O	O
is	O	O
still	O	O
of	O	O
interest	O	O
and	O	O
not	O	O
too	O	O
late	O	O
a	O	O
reply	O	O
.	O	O

I	O	O
have	O	O
a	O	O
database	O	O
:	O	O

http://d.pr/86DH+	O	O

I	O	O
want	O	O
to	O	O
divide	O	O
all	O	O
numbers	O	O
in	O	O
price	O	O
column	O	B-Data_Structure
with	O	O
1.2	O	B-Value
at	O	O
once	O	O
.	O	O

It	O	O
is	O	O
possible	O	O
?	O	O

Use	O	O
this	O	O
:	O	O

I	O	O
have	O	O
a	O	O
Angular	O	B-Library
directive	O	O
to	O	O
build	O	O
a	O	O
table	O	B-User_Interface_Element
with	O	O
bootstrap	O	B-Library
table	O	B-Class
.	O	O

This	O	O
table	O	B-Class
has	O	O
a	O	O
"	O	O
formatter	O	O
"	O	O
for	O	O
each	O	O
column	O	B-User_Interface_Element
,	O	O
to	O	O
render	O	O
the	O	O
HTML	O	B-Language
data	O	O
of	O	O
a	O	O
column	O	B-User_Interface_Element
,	O	O
row	O	B-User_Interface_Element
by	O	O
row	O	B-User_Interface_Element
.	O	O

The	O	O
formatter	O	O
must	O	O
return	O	O
a	O	O
HTML	O	B-Language
,	O	O
and	O	O
in	O	O
my	O	O
case	O	O
,	O	O
my	O	O
HTML	O	B-Language
is	O	O
returning	O	O
containing	O	O
a	O	O
ngClick	O	B-HTML_XML_Tag
.	O	O

But	O	O
this	O	O
ngClick	O	B-HTML_XML_Tag
is	O	O
n't	O	O
working	O	O
,	O	O
because	O	O
angular	O	B-Library
has	O	O
n't	O	O
compiled	O	O
it	O	O
.	O	O

How	O	O
can	O	O
I	O	O
watch/monitor	O	O
table	O	B-User_Interface_Element
DOM	O	O
changes	O	O
to	O	O
force	O	O
angular	O	B-Library
to	O	O
processs/compile	O	O
it	O	O
directives	O	O
after	O	O
the	O	O
changes	O	O
?	O	O

I	O	O
was	O	O
trying	O	O
this	O	O
,	O	O
but	O	O
without	O	O
success	O	O
:	O	O

Another	O	O
possible	O	O
problem	O	O
is	O	O
that	O	O
I	O	O
cannot	O	O
compile	O	O
more	O	O
than	O	O
1	O	O
time	O	O
an	O	O
element	O	O
.	O	O

If	O	O
I	O	O
do	O	O
this	O	O
,	O	O
for	O	O
example	O	O
,	O	O
a	O	O
ng-click	O	B-HTML_XML_Tag
will	O	O
be	O	O
executed	O	O
twice	O	O
.	O	O

I	O	O
have	O	O
a	O	O
working	O	O
code	O	O
with	O	O
a	O	O
Datagrid	B-Code_Block	B-Class
as	O	O
the	O	O
main	O	O
control	O	O
.	O	O

I	O	O
used	O	O
a	O	O
Datagrid	O	B-Class
as	O	O
it	O	O
is	O	O
very	O	O
easy	O	O
to	O	O
bind	O	O
data	O	O
into	O	O
it	O	O
.	O	O

My	O	O
code	O	O
requires	O	O
moving	O	O
cells	O	B-User_Interface_Element
into	O	O
other	O	O
columns	O	B-User_Interface_Element
so	O	O
I	O	O
always	O	O
need	O	O
to	O	O
check	O	O
which	O	O
cell	O	B-User_Interface_Element
I	O	O
am	O	O
on	O	O
when	O	O
the	O	O
mouse	O	B-Device
is	O	O
clicked	O	O
,	O	O
as	O	O
well	O	O
as	O	O
when	O	O
it	O	O
is	O	O
released	O	O
.	O	O

My	O	O
current	O	O
implementation	O	O
is	O	O
working	O	O
as	O	O
expected	O	O
.	O	O

However	O	O
,	O	O
the	O	O
way	O	O
I	O	O
check	O	O
for	O	O
the	O	O
row	O	B-User_Interface_Element
and	O	O
cell	O	B-User_Interface_Element
is	O	O
through	O	O
the	O	O
VIEW	O	B-Class
's	O	O
code-behind	O	O
.	O	O

My	O	O
project	O	O
leader	O	O
is	O	O
looking	O	O
for	O	O
an	O	O
alternative	O	O
to	O	O
have	O	O
this	O	O
done	O	O
thru	O	O
binding	O	O
as	O	O
he	O	O
wants	O	O
to	O	O
keep	O	O
the	O	O
VIEW	O	B-Class
's	O	O
code-behind	O	O
as	O	O
clean	O	O
as	O	O
possible	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
all	O	O
I	O	O
could	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
find	O	O
properties	O	O
which	O	O
would	O	O
give	O	O
me	O	O
both	O	O
the	O	O
cells	O	B-User_Interface_Element
column	O	I-User_Interface_Element
and	O	O
row	O	B-User_Interface_Element
index	O	O
.	O	O

Please	O	O
see	O	O
the	O	O
code	O	O
below	O	O
.	O	O

(	O	O
Omitted	O	O
some	O	O
of	O	O
the	O	O
columns	O	B-User_Interface_Element
as	O	O
it	O	O
would	O	O
exceed	O	O
the	O	O
limit	O	O
.	O	O
)	O	O

the	O	O
XAML	O	B-Language
:	O	O

the	O	O
code-behind	O	O

EDIT	O	O

I	O	O
proceeded	O	O
to	O	O
multibind	O	O
the	O	O
datagridcell	B-Code_Block	B-Class
's	O	O
column	O	B-Variable
and	O	O
datacontext	O	B-Variable
properties	O	O
as	O	O
parameters	O	O
for	O	O
my	O	O
command	B-Code_Block	B-Class
.	O	O

An	O	O
option	O	O
I	O	O
started	O	O
before	O	O
but	O	O
set	O	O
aside	O	O
due	O	O
to	O	O
time	O	O
constraints	O	O
.	O	O

Instead	O	O
of	O	O
looking	O	O
for	O	O
the	O	O
datagridrow	O	B-Class
's	O	O
index	O	O
,	O	O
I	O	O
used	O	O
the	O	O
datacontext	B-Code_Block	B-Variable
to	O	O
compare	O	O
to	O	O
my	O	O
viewmodel	B-Code_Block	B-Class
.	O	O

Did	O	O
the	O	O
trick	O	O
.	O	O

Alternative	O	O
would	O	O
be	O	O
to	O	O
work	O	O
with	O	O
properties	O	O
DataGrid	O	B-Class
already	O	O
provides	O	O
to	O	O
you	O	O
and/or	O	O
to	O	O
define	O	O
few	O	O
other	O	O
attached	O	O
properties	O	O
supporting	O	O
you	O	O
to	O	O
get	O	O
the	O	O
job	O	O
done	O	O
.	O	O

I	O	O
would	O	O
try	O	O
to	O	O
work	O	O
with	O	O
properties	O	O
like	O	O
SelectedItem	O	B-Variable
,	O	O
SelectedValue	O	B-Variable
,	O	O
CurrentItem	O	B-Variable
,	O	O
CurrentCell	O	B-Variable
.	O	O

Futhermore	O	O
if	O	O
a	O	O
behavior	O	O
couldnt	O	O
be	O	O
handled	O	O
with	O	O
those	O	O
properties	O	O
from	O	O
above	O	O
I	O	O
would	O	O
create	O	O
an	O	O
attached	O	O
property	O	O
and	O	O
use	O	O
a	O	O
style	O	O
for	O	O
cells	O	B-User_Interface_Element
with	O	O
triggers	O	O
changing	O	O
the	O	O
attached	O	O
property	O	O
.	O	O

Binding	O	O
will	O	O
transmit	O	O
all	O	O
the	O	O
changes	O	O
from	O	O
the	O	O
attached	O	O
property	O	O
to	O	O
the	O	O
ViewModel	O	B-Class
.	O	O

In	O	O
the	O	O
end	O	O
you	O	O
will	O	O
have	O	O
just	O	O
communication	O	O
between	O	O
ViewModel	O	B-Class
and	O	O
View	O	B-Class
.	O	O

Here	O	O
are	O	O
few	O	O
links	O	O
:	O	O

http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid%28v=vs.110%29.aspx	O	O

http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.currentitem%28v=vs.110%29.aspx	O	O

http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.selector.selectedvalue%28v=vs.110%29.aspx	O	O

http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.selector.selecteditem%28v=vs.110%29.aspx	O	O

They	O	O
should	O	O
be	O	O
all	O	O
bindable	O	O

Edit	O	O
:	O	O

Link	O	O
to	O	O
MSDN	O	B-Website
MultiBinding	O	B-Class
Page	O	O
:	O	O

http://msdn.microsoft.com/en-us/library/system.windows.data.multibinding%28v=vs.110%29.aspx	O	O

The	O	O
general	O	O
way	O	O
to	O	O
achieve	O	O
your	O	O
requirement	O	O
is	O	O
to	O	O
implement	O	O
an	O	O
ICommand	B-Code_Block	B-Class
type	O	O
Attached	B-Code_Block	O
Property	I-Code_Block	O
for	O	O
each	O	O
event	O	O
that	O	O
you	O	O
want	O	O
to	O	O
replace	O	O
.	O	O

The	O	O
basic	O	O
idea	O	O
is	O	O
this.	O	O
.	O	O
add	O	O
an	O	O
ICommand	B-Code_Block	B-Class
Attached	I-Code_Block	O
Property	I-Code_Block	O
with	O	O
a	O	O
PropertyChangedCallback	B-Code_Block	B-Class
handler	O	O
.	O	O

In	O	O
this	O	O
handler	O	O
(	O	O
which	O	O
will	O	O
be	O	O
called	O	O
when	O	O
an	O	O
ICommand	B-Code_Block	B-Class
is	O	O
data	O	O
bound	O	O
to	O	O
this	O	O
property	O	O
)	O	O
,	O	O
attach	O	O
a	O	O
handler	O	O
to	O	O
the	O	O
event	O	O
that	O	O
you	O	O
want	O	O
to	O	O
handle	O	O
.	O	O

Then	O	O
,	O	O
when	O	O
that	O	O
event	O	O
is	O	O
called	O	O
,	O	O
just	O	O
execute	O	O
the	O	O
ICommand	B-Code_Block	B-Class
instance	O	O
.	O	O

So	O	O
you	O	O
can	O	O
handle	O	O
the	O	O
event	O	O
in	O	O
your	O	O
view	O	O
model	O	O
via	O	O
the	O	O
ICommand	B-Code_Block	B-Class
instance	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
using	O	O
the	O	O
PreviewKeyDown	B-Code_Block	B-Class
event	O	O
:	O	O

@Value	O	B-Function
has	O	O
got	O	O
the	O	O
correct	O	O
value	O	O
when	O	O
used	O	O
in	O	O
insert	O	O
statement	O	O
.	O	O

But	O	O
,	O	O
@AID	O	B-Variable
(	O	O
which	O	O
is	O	O
set	O	O
to	O	O
@Value	O	B-Variable
)	O	O
always	O	O
gives	O	O
0	O	B-Value
when	O	O
this	O	O
stored	O	O
procedure	O	O
is	O	O
called	O	O
using	O	O
php	O	B-Language
.	O	O

What	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
here	O	O
?	O	O

It	O	O
it	O	O
something	O	O
to	O	O
do	O	O
with	O	O
calling	O	O
stored	O	O
procedure	O	O
inside	O	O
another	O	O
stored	O	O
procedure	O	O
?	O	O

I	O	O
have	O	O
a	O	O
subscribe	O	O
button	O	B-User_Interface_Element
in	O	O
the	O	O
about	O	O
us	O	O
section	O	O
in	O	O
my	O	O
app	O	O
.	O	O

On	O	O
pressing	O	O
,	O	O
a	O	O
small	O	O
window	O	B-User_Interface_Element
appears	O	O
asking	O	O
for	O	O
email	O	O
from	O	O
a	O	O
user	O	O
.	O	O

Once	O	O
the	O	O
user	O	O
enters	O	O
his	O	O
email	O	O
where	O	O
could	O	O
I	O	O
store	O	O
all	O	O
the	O	O
emails	O	O
from	O	O
the	O	O
users	O	O
?	O	O

How	O	O
does	O	O
email	O	O
subscription	O	O
is	O	O
implemented	O	O
in	O	O
Android	O	B-Operating_System
?	O	O

I	O	O
'm	O	O
totally	O	O
new	O	O
to	O	O
it	O	O
,	O	O
so	O	O
please	O	O
be	O	O
detailed	O	O

I	O	O
think	O	O
you	O	O
would	O	O
need	O	O
a	O	O
server	O	B-Application
where	O	O
you	O	O
can	O	O
store	O	O
in	O	O
a	O	O
DB	O	O
the	O	O
emails	O	O
the	O	O
clients	O	B-Application
(	O	O
i.e	O	O
.	O	O
the	O	O
apps	O	O
)	O	O
send	O	O
you	O	O
.	O	O

Or	O	O
since	O	O
it	O	O
's	O	O
such	O	O
a	O	O
simple	O	O
thing	O	O
that	O	O
you	O	O
have	O	O
to	O	O
store	O	O
(	O	O
a	O	O
string	O	B-Data_Type
)	O	O
,	O	O
what	O	O
you	O	O
could	O	O
do	O	O
is	O	O
get	O	O
them	O	O
to	O	O
send	O	O
an	O	O
email	O	O
to	O	O
you	O	O
,	O	O
and	O	O
then	O	O
voila	O	O
,	O	O
you	O	O
have	O	O
the	O	O
addresses	O	O
you	O	O
need	O	O
.	O	O

EDIT	O	O
:	O	O

Try	O	O
parse	O	O
,	O	O
it	O	O
's	O	O
a	O	O
cloud	O	O
server	O	B-Application
free	O	O
and	O	O
easy	O	O
to	O	O
use	O	O
.	O	O

I	O	O
have	O	O
an	O	O
excel	O	B-Application
sheet	O	O
"	O	O
Test.xlsx	O	B-File_Name
"	O	O
in	O	O
which	O	O
some	O	O
of	O	O
the	O	O
cell	O	B-User_Interface_Element
values	O	O
has	O	O
been	O	O
referenced	O	O
from	O	O
another	O	O
excel	O	B-Application
sheet	O	O
using	O	O
formula	O	O
"='C:[Sample.xlsx]Sheet1'!B14"	O	B-Code_Block
.	O	O

I	O	O
did	O	O
open	O	O
Smaple.xlsx	O	B-File_Name
,	O	O
change	O	O
the	O	O
value	O	O
of	O	O
the	O	O
cell	O	B-User_Interface_Element
B14	O	B-Value
in	O	O
sheet	O	B-User_Interface_Element
1	O	B-Value
,	O	O
save	O	O
it	O	O
and	O	O
close	O	O
.	O	O

But	O	O
I	O	O
did	O	O
not	O	O
see	O	O
the	O	O
values	O	O
in	O	O
the	O	O
Test.xlsx	O	B-File_Name
update	O	O
unless	O	O
I	O	O
double	O	O
click	O	O
on	O	O
the	O	O
cell	O	B-User_Interface_Element
where	O	O
the	O	O
formula	O	O
has	O	O
been	O	O
referenced	O	O
to	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
with	O	O
"	O	O
Excel	O	B-Application
Options->	O	O
Advanced	O	O
->General	O	O
and	O	O
un-checking	O	O
Ask	O	O
to	O	O
update	O	O
automatic	O	O
link	O	O
"	O	O
Can	O	O
someone	O	O
help	O	O
me	O	O
with	O	O
the	O	O
issue	O	O
?	O	O

i	O	O
want	O	O
to	O	O
use	O	O
a	O	O
vaiable	O	O
in	O	O
the	O	O
main	O	B-Class
class	O	O
from	O	O
ReveiveSMS.class	O	B-Class
.	O	O

This	O	O
is	O	O
my	O	O
code	O	O
of	O	O
ReceiveSMS.class	O	B-Class
and	O	O
i	O	O
want	O	O
to	O	O
use	O	O
messageBody	O	B-Variable
in	O	O
the	O	O
main	O	B-Class
.	O	O

Help	O	O
me	O	O
how	O	O
can	O	O
i	O	O
do	O	O
it	O	O
.	O	O

thanks	O	O

You	O	O
can	O	O
put	O	O
messageBody	B-Code_Block	B-Variable
in	O	O
SharedPreferences	O	B-Class
.	O	O

In	O	O
ReceiveSMS	O	B-Class
class	O	O
:	O	O

In	O	O
your	O	O
main	O	B-Class
class	O	O
:	O	O

I	O	O
recently	O	O
switched	O	O
python	O	B-Language
distributions	O	O
to	O	O
Anaconda	O	B-Application
from	O	O
Continuum	O	O
Analytics	O	O
.	O	O

After	O	O
installing	O	O
Python	O	B-Language
3.3	O	B-Version
,	O	O
I	O	O
created	O	O
a	O	O
build	O	O
system	O	O
for	O	O
use	O	O
with	O	O
Sublime	O	B-Application
(	O	O
3)	O	B-Version
:	O	O

It	O	O
runs	O	O
scripts	O	O
fine	O	O
,	O	O
except	O	O
for	O	O
the	O	O
fact	O	O
that	O	O
output	O	O
is	O	O
only	O	O
printed	O	O
upon	O	O
completion	O	O
of	O	O
the	O	O
build	O	O
.	O	O

How	O	O
can	O	O
I	O	O
enable	O	O
normal	O	O
(	O	O
live	O	O
)	O	O
printing	O	O
?	O	O

It	O	O
's	O	O
possible	O	O
that	O	O
you	O	O
need	O	O
to	O	O
run	O	O
the	O	O
script	O	O
in	O	O
"	O	O
unbuffered	O	O
"	O	O
mode	O	O
via	O	O
the	O	O
-u	B-Code_Block	B-Code_Block
flag	O	O
.	O	O

This	O	O
solution	O	O
is	O	O
n't	O	O
specific	O	O
to	O	O
Anaconda	O	B-Application
,	O	O
but	O	O
may	O	O
still	O	O
be	O	O
the	O	O
issue	O	O
.	O	O

I	O	O
've	O	O
modified	O	O
a	O	O
VBA	O	B-Application
macro	O	O
of	O	O
MS	O	B-Application
Outlook	O	I-Application
that	O	O
someone	O	O
in	O	O
our	O	O
organization	O	O
was	O	O
using	O	O
.	O	O

I	O	O
want	O	O
to	O	O
have	O	O
it	O	O
signed	O	O
with	O	O
our	O	O
organization	O	O
's	O	O
certificate	O	O
.	O	O

Not	O	O
a	O	O
self-cert	O	O
.	O	O

Not	O	O
my	O	O
personal	O	O
cert	O	O
.	O	O

A	O	O
cert	O	O
set	O	O
up	O	O
by	O	O
the	O	O
organization	O	O
for	O	O
just	O	O
this	O	O
purpose	O	O
.	O	O

We	O	O
'll	O	O
call	O	O
it	O	O
"	O	O
My_Org_VBA_Macro_Cert	O	B-Variable
"	O	O
.	O	O

My_Org_VBA_Macro_Cert	O	B-Variable
has	O	O
been	O	O
created	O	O
.	O	O

It	O	O
has	O	O
been	O	O
installed	O	O
in	O	O
via	O	O
the	O	O
MMC	O	B-Application
certificate	O	O
snap-in	O	O
into	O	O
the	O	O
same	O	O
location	O	O
that	O	O
my	O	O
personal	O	O
digital	O	O
signature	O	O
certs	O	O
are	O	O
located	O	O
.	O	O

After	O	O
rebooting	O	O
,	O	O
I	O	O
open	O	O
up	O	O
the	O	O
VBA	O	B-Application
project	O	O
and	O	O
go	O	O
to	O	O
Tools->Digital	O	O
Signature	O	O
.	O	O

I	O	O
press	O	O
the	O	O
Choose	O	O
button	O	B-User_Interface_Element
but	O	O
only	O	O
my	O	O
own	O	O
digital	O	O
signature	O	O
certs	O	O
show	O	O
up	O	O
in	O	O
the	O	O
list	O	O
to	O	O
choose	O	O
from	O	O
.	O	O

My_Org_VBA_Macro_Cert	O	B-Variable
does	O	O
not	O	O
show	O	O
up	O	O
.	O	O

Are	O	O
there	O	O
certain	O	O
settings	O	O
or	O	O
values	O	O
you	O	O
have	O	O
to	O	O
set	O	O
when	O	O
you	O	O
create	O	O
the	O	O
Cert	O	O
that	O	O
determine	O	O
whether	O	O
it	O	O
will	O	O
show	O	O
up	O	O
in	O	O
the	O	O
list	O	O
of	O	O
certs	O	O
to	O	O
choose	O	O
from	O	O
?	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
enough	O	O
about	O	O
creating	O	O
a	O	O
cert	O	O
to	O	O
be	O	O
more	O	O
specific	O	O
on	O	O
this	O	O
point	O	O
.	O	O

Microsoft	O	B-Application
VBA	O	I-Application
version	O	O
7.1	O	B-Version

Microsoft	O	B-Application
Outlook	O	I-Application
2013	O	B-Version

All	O	O
the	O	O
articles	O	O
I	O	O
've	O	O
found	O	O
deal	O	O
with	O	O
self	O	O
cert	O	O
or	O	O
only	O	O
cover	O	O
how	O	O
to	O	O
do	O	O
the	O	O
signing	O	O
with	O	O
a	O	O
cert	O	O
that	O	O
shows	O	O
up	O	O
in	O	O
the	O	O
list	O	O
.	O	O

They	O	O
all	O	O
gloss	O	O
over	O	O
how	O	O
to	O	O
install	O	O
the	O	O
cert	O	O
so	O	O
it	O	O
shows	O	O
up	O	O
in	O	O
the	O	O
list	O	O
and	O	O
what	O	O
values	O	O
it	O	O
has	O	O
to	O	O
have	O	O
to	O	O
do	O	O
so	O	O
.	O	O

I	O	O
wish	O	O
to	O	O
replace	O	O
all	O	O
divs	O	B-HTML_XML_Tag
with	O	O
the	O	O
class	O	O
data-item	O	B-Class
with	O	O
the	O	O
attribute	O	O
data-variable	O	O
of	O	O
the	O	O
item	O	O
with	O	O
this	O	O
class	O	O

IE	O	O
:	O	O

Should	O	O
become	O	O

Code	O	O
I	O	O
want	O	O
to	O	O
use	O	O
:	O	O

where	O	O
el	O	B-Variable
is	O	O
a	O	O
jquery	O	B-Library
object	O	O
containing	O	O
the	O	O
html	O	B-Language
I	O	O
wish	O	O
to	O	O
parse	O	O

DEMO	O	O

UPD	O	O
:	O	O
You	O	O
can	O	O
use	O	O
function	O	O
as	O	O
argument	O	O
to	O	O
replaceWith	B-Code_Block	B-Function
(	O	O
thx	O	O
@Barmar	O	B-User_Name
)	O	O

The	O	O
argument	O	O
to	O	O
replaceWith	B-Code_Block	B-Function
can	O	O
be	O	O
a	O	O
function	O	O
.	O	O

When	O	O
it	O	O
's	O	O
called	O	O
,	O	O
this	B-Code_Block	O
will	O	O
be	O	O
the	O	O
element	O	O
that	O	O
's	O	O
being	O	O
replaced	O	O
.	O	O

The	O	O
return	O	O
value	O	O
will	O	O
be	O	O
used	O	O
as	O	O
the	O	O
replacement	O	O
.	O	O

I	O	O
kept	O	O
getting	O	O
this	O	O
issue	O	O
after	O	O
installing	O	O
this	O	O
package	O	O
below	O	O

https://github.com/vinkla/instagram	O	O

into	O	O
my	O	O
Laravel	O	B-Library
5.1	O	B-Version
project	O	O
.	O	O

I	O	O
followed	O	O
everything	O	O
in	O	O
the	O	O
instruction	O	O
.	O	O

I	O	O
am	O	O
on	O	O
Mac	O	B-Operating_System
OS	O	I-Operating_System
X	O	B-Version
,	O	O
PHP	O	B-Language
7.1	O	B-Version
,	O	O
Laravel	O	B-Library
5.1	O	B-Version

Did	O	O
I	O	O
forget	O	O
something	O	O
?	O	O

How	O	O
would	O	O
one	O	O
go	O	O
about	O	O
and	O	O
debug	O	O
this	O	O
further	O	O
?	O	O

I	O	O
'm	O	O
open	O	O
to	O	O
any	O	O
suggestions	O	O
at	O	O
this	O	O
moment	O	O
.	O	O

Any	O	O
hints/suggestions	O	O
/	O	O
helps	O	O
on	O	O
this	O	O
be	O	O
will	O	O
be	O	O
much	O	O
appreciated	O	O
!	O	O

You	O	O
could	O	O
change	O	O
app	B-Code_Block	B-File_Name
\Exceptions\Handler.php	I-Code_Block	I-File_Name
to	O	O
not	O	O
have	O	O
the	O	O
type	O	O
declaration	O	O
Exception	B-Code_Block	B-Class
and	O	O
handle	O	O
some	O	O
logic	O	O
within	O	O
it	O	O
to	O	O
convert	O	O
the	O	O
Error	O	O
to	O	O
an	O	O
Exception	O	B-Class
.	O	O

It	O	O
looks	O	O
like	O	O
this	O	O
is	O	O
a	O	O
known	O	O
issue	O	O
in	O	O
laravel	O	B-Library
5.2	O	B-Version
<=	O	O
with	O	O
php	O	B-Language
7	O	B-Version
.	O	O
https://github.com/laravel/framework/issues/9650	O	O

from	O	O
:	O	O

to	O	O
:	O	O

You	O	O
will	O	O
most	O	O
likely	O	O
need	O	O
to	O	O
do	O	O
the	O	O
same	O	O
thing	O	O
with	O	O
the	O	O
Handler	O	O
render	B-Code_Block	B-Function
method	O	O
.	O	O

It	O	O
seems	O	O
to	O	O
be	O	O
a	O	O
bug	O	O
in	O	O
Laravel	O	B-Library
.	O	O

Do	O	O
you	O	O
have	O	O
the	O	O
last	O	O
release	O	O
of	O	O
Laravel	O	B-Library
5.1	O	B-Version
?	O	O

For	O	O
helping	O	O
debug	O	O
,	O	O
you	O	O
might	O	O
go	O	O
to	O	O
the	O	O
vendor/Illuminate/Foundation/Bootstrap/HandleExceptions	O	O
@handleException	O	O
and	O	O
add	O	O

dd($e)	B-Code_Block	B-Function
at	O	O
the	O	O
first	O	O
line	O	O
of	O	O
method	O	O
.	O	O

Ex	O	O
:	O	O

We	O	O
have	O	O
developed	O	O
Word	O	O
Puzzle	O	O
Game	O	O
for	O	O
android	O	B-Operating_System
.	O	O

The	O	O
size	O	O
is	O	O
greater	O	O
than	O	O
20	O	O
MB	O	O
because	O	O
we	O	O
have	O	O
developed	O	O
game	O	O
with	O	O
the	O	O
help	O	O
of	O	O
Unity	O	B-Application
game	O	O
engine	O	O
.	O	O

Even	O	O
blank	O	O
project	O	O
will	O	O
take	O	O
approx	O	O
10	O	O
MB	O	O
for	O	O
APK	O	B-File_Type
in	O	O
Unity	O	B-Application
.	O	O

Your	O	O
advise	O	O
would	O	O
be	O	O
helpful	O	O
.	O	O

Have	O	O
you	O	O
checked	O	O
this	O	O
?	O	O

https://docs.unity3d.com/Manual/ReducingFilesize.html	O	O

I	O	O
'm	O	O
afraid	O	O
you	O	O
wo	O	O
n't	O	O
find	O	O
more	O	O
.	O	O

There	O	O
will	O	O
always	O	O
be	O	O
a	O	O
minimal	O	O
size	O	O
,	O	O
even	O	O
for	O	O
an	O	O
empty	O	O
project	O	O
,	O	O
because	O	O
you	O	O
're	O	O
embedding	O	O
mono	O	B-Application
,	O	O
unity	O	B-Application
engine	O	O
,	O	O
etc	O	O
..	O	O
.	O	O

If	O	O
you	O	O
want	O	O
total	O	O
control	O	O
,	O	O
the	O	O
question	O	O
you	O	O
should	O	O
ask	O	O
yourself	O	O
is	O	O
:	O	O

"	O	O
Do	O	O
I	O	O
really	O	O
need	O	O
Unity	O	B-Application
for	O	O
a	O	O
word	O	O
puzzle	O	O
?	O	O
"	O	O

If	O	O
your	O	O
game	O	O
is	O	O
made	O	O
mostly	O	O
with	O	O
scripts	O	O
,	O	O
you	O	O
could	O	O
maybe	O	O
convert	O	O
it	O	O
to	O	O
a	O	O
native	O	O
app	O	O
?	O	O

Try	O	O
use	O	O
the	O	O
documentation	O	O
Manual	O	O
on	O	O
Reducing	O	O
the	O	O
file	O	O
size	O	O
of	O	O
your	O	O
build	O	O
.	O	O

Also	O	O
this	O	O
forum	O	O
post	O	O
could	O	O
help	O	O
you	O	O
.	O	O

Otherwise	O	O
a	O	O
simple	O	O
Google	O	B-Website
search	O	O
will	O	O
give	O	O
you	O	O
many	O	O
results	O	O
.	O	O

In	O	O
my	O	O
users	O	O
controller	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
put	O	O
in	O	O
place	O	O
the	O	O
remember	O	O
me	O	O
functionality	O	O
on	O	O
login	O	O
.	O	O

IT	O	O
seems	O	O
pretty	O	O
simple	O	O
set	O	O
a	O	O
cookie	O	O
look	O	O
for	O	O
the	O	O
cookie	O	O
when	O	O
the	O	O
user	O	O
visits	O	O
the	O	O
login	O	O
page	O	O
and	O	O
if	O	O
it	O	O
exists	O	O
log	O	O
them	O	O
in	O	O
.	O	O

However	O	O
,	O	O
Cake	O	B-Library
is	O	O
not	O	O
saving	O	O
the	O	O
cookie	O	O
,	O	O
at	O	O
least	O	O
not	O	O
that	O	O
I	O	O
can	O	O
see	O	O
,	O	O
and	O	O
when	O	O
I	O	O
revisit	O	O
the	O	O
page	O	O
I	O	O
am	O	O
not	O	O
auto	O	O
logged	O	O
in	O	O
.	O	O

To	O	O
test	O	O
this	O	O
I	O	O
have	O	O
the	O	O
following	O	O
code	O	O
:	O	O

Now	O	O
right	O	O
after	O	O
I	O	O
set	O	O
this	O	O
cookie	O	O
I	O	O
can	O	O
place	O	O
a	O	O
$this->cookie->read('Auth.User')	O	B-Code_Block
;	O	I-Code_Block
and	O	O
get	O	O
the	O	O
value	O	O
of	O	O
this	O	O
cookie	O	O
,	O	O
however	O	O
it	O	O
does	O	O
not	O	O
show	O	O
up	O	O
in	O	O
the	O	O
browsers	O	O
(	O	O
Chrome	O	B-Application
,	O	O
FireFox	O	B-Application
)	O	O
cookie	O	O
list	O	B-Data_Structure
.	O	O

If	O	O
I	O	O
use	O	O
plain	O	O
PHP	O	B-Language
cookies	O	O
,	O	O
via	O	O
setcookie()	O	B-Function
I	O	O
can	O	O
see	O	O
the	O	O
cookie	O	O
but	O	O
of	O	O
course	O	O
the	O	O
Cake	O	B-Library
Cookie	O	O
read	O	O
does	O	O
not	O	O
work	O	O
with	O	O
those	O	O
cookies	O	O
.	O	O

What	O	O
should	O	O
I	O	O
look	O	O
for	O	O
to	O	O
resolve	O	O
this	O	O
issue	O	O
?	O	O

I	O	O
did	O	O
find	O	O
a	O	O
work	O	O
around	O	O
,	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
like	O	O
it	O	O
because	O	O
it	O	O
just	O	O
bypasses	O	O
the	O	O
framework	O	O
.	O	O

I	O	O
found	O	O
out	O	O
how	O	O
cake	O	B-Library
is	O	O
creating	O	O
the	O	O
cookies	O	O
and	O	O
for	O	O
these	O	O
cookies	O	O
I	O	O
use	O	O
cakes	O	B-Library
cookie	O	O
creation	O	O
algorithm	O	O
in	O	O
my	O	O
code	O	O
and	O	O
use	O	O
setcookie()	O	B-Function
to	O	O
do	O	O
the	O	O
setting	O	O
.	O	O

Just	O	O
for	O	O
anyone	O	O
else	O	O
that	O	O
may	O	O
want	O	O
or	O	O
need	O	O
to	O	O
use	O	O
the	O	O
work	O	O
around	O	O
:	O	O

Now	O	O
you	O	O
can	O	O
use	O	O
cakes	O	B-Library
cookie	O	O
component	O	O
to	O	O
read	O	O
the	O	O
value	O	O
.	O	O

There	O	O
is	O	O
more	O	O
you	O	O
have	O	O
to	O	O
change	O	O
if	O	O
your	O	O
value	O	O
is	O	O
an	O	O
array	O	B-Data_Structure
,	O	O
read	O	O
through	O	O
the	O	O
cookie.php	O	B-File_Name
code	O	O
to	O	O
see	O	O
what	O	O
you	O	O
would	O	O
need	O	O
to	O	O
do	O	O
.	O	O

Also	O	O
I	O	O
left	O	O
out	O	O
the	O	O
encryption	O	O
that	O	O
too	O	O
can	O	O
be	O	O
found	O	O
in	O	O
the	O	O
cookie.php	O	B-File_Name
and	O	O
your	O	O
apps	O	O
settings	O	O
.	O	O

For	O	O
this	O	O
issue	O	O
I	O	O
do	O	O
not	O	O
need	O	O
array	O	B-Data_Structure
values	O	O
since	O	O
I	O	O
am	O	O
only	O	O
store	O	O
the	O	O
users	O	O
ID	O	B-Variable
.	O	O

and	O	O
I	O	O
did	O	O
put	O	O
in	O	O
place	O	O
encryption	O	O
unlike	O	O
above	O	O
.	O	O

I	O	O
would	O	O
still	O	O
like	O	O
to	O	O
know	O	O
why	O	O
the	O	O
component	O	O
is	O	O
not	O	O
working	O	O
though	O	O
.	O	O

The	O	O
following	O	O
login	O	O
action	O	O
works	O	O
well	O	O
for	O	O
me	O	O
:	O	O

Does	O	O
it	O	O
work	O	O
on	O	O
your	O	O
side	O	O
?	O	O

My	O	O
Rails	O	B-Library
app	O	O
began	O	O
returning	O	O
funky	O	O
validation	O	O
error	O	O
messages	O	O
of	O	O
this	O	O
form	O	O
upon	O	O
create/save	O	O
of	O	O
a	O	O
model	O	O
.	O	O

{	O	B-Code_Block
{	O	B-Code_Block
count	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
errors	O	O
prohibited	O	O
this	O	O
{	O	B-Code_Block
{	O	B-Code_Block
model	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
from	O	O
being	O	O
saved	O	O

There	O	O
were	O	O
problems	O	O
with	O	O
the	O	O
following	O	O
fields	O	O
:	O	O

{	O	B-Code_Block
{	O	B-Code_Block
attribute	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
message	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
attribute	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
message	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
attribute	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
message	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
attribute	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
{	O	B-Code_Block
{	O	B-Code_Block
message	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block

Has	O	O
anyone	O	O
else	O	O
experienced	O	O
anything	O	O
like	O	O
this	O	O
?	O	O

Thanks	O	O

You	O	O
probably	O	O
upgraded	O	O
Ruby	O	B-Language
to	O	O
a	O	O
version	O	O
that	O	O
does	O	O
not	O	O
work	O	O
well	O	O
with	O	O
your	O	O
version	O	O
of	O	O
Rails	O	B-Library
.	O	O

I	O	O
think	O	O
that	O	O
if	O	O
you	O	O
use	O	O
Ruby	O	B-Language
1.9	O	B-Version
you	O	O
have	O	O
to	O	O
at	O	O
least	O	O
use	O	O
Rails	O	B-Library
2.3.9	O	B-Version
if	O	O
I	O	O
'm	O	O
not	O	O
mistaken	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
changelog	O	O
for	O	O
Rails	O	B-Library
2.3.9	O	B-Version
:	O	O
ruby-on-rails-2-3-9-released	O	B-Language

To	O	O
me	O	O
,	O	O
the	O	O
above	O	O
code	O	O
looks	O	O
normal	O	O
.	O	O

However	O	O
,	O	O
I	O	O
'm	O	O
new	O	O
to	O	O
C++	O	B-Language
so	O	O
I	O	O
may	O	O
be	O	O
missing	O	O
some	O	O
nuance	O	O
.	O	O

I	O	O
'm	O	O
getting	O	O
a	O	O
bunch	O	O
of	O	O
compiler	O	B-Application
errors	O	O
from	O	O
it	O	O
,	O	O
such	O	O
as	O	O
:	O	O

and	O	O

What	O	O
gives	O	O
!	O	O

The	O	O
error	O	O
is	O	O
probably	O	O
in	O	O
LudoCore/Singleton.h	B-Code_Block	B-File_Name
or	O	O
something	O	O
else	O	O
included	O	O
earlier	O	O
.	O	O

Make	O	O
sure	O	O
your	O	O
class	B-Code_Block	O
definitions	O	O
have	O	O
;	B-Code_Block	B-Code_Block
semicolons	O	O
after	O	O
them	O	O
and	O	O
all	O	O
that	O	O
.	O	O

Quick	O	O
test	O	O
:	O	O
comment	O	O
out	O	O
the	O	O
#include	B-Code_Block	B-Code_Block
and	O	O
stick	O	O
a	O	O
template	B-Code_Block	B-Code_Block
<class	I-Code_Block	I-Code_Block
C>	I-Code_Block	I-Code_Block
class	I-Code_Block	I-Code_Block
Singleton	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
predeclaration	O	O
there	O	O
instead	O	O
.	O	O

If	O	O
the	O	O
compiler	O	B-Application
now	O	O
complains	O	O
about	O	O
incomplete	O	O
types	O	O
,	O	O
I	O	O
'm	O	O
right	O	O
,	O	O
and	O	O
if	O	O
not	O	O
,	O	O
post	O	O
more	O	O
details	O	O
.	O	O

Have	O	O
a	O	O
look	O	O
in	O	O
the	O	O
other	O	O
header	O	O
(	O	O
LudoCore/Singleton.h	O	B-File_Name
)	O	O
.	O	O

The	O	O
second	O	O
error	O	O
implies	O	O
that	O	O
the	O	O
error	O	O
is	O	O
before	O	O
the	O	O
class	B-Code_Block	O
LudoTimer	I-Code_Block	B-Class
declaration	O	O
at	O	O
the	O	O
top	O	O
.	O	O

My	O	O
guess	O	O
is	O	O
that	O	O
Singleton.h	O	B-File_Name
defines	O	O
a	O	O
class	O	O
,	O	O
and	O	O
there	O	O
's	O	O
a	O	O
missing	O	O
'	O	B-Code_Block
;	O	I-Code_Block
'	O	I-Code_Block
after	O	O
that	O	O
class	O	O
definition	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
total	O	O
amount	O	O
of	O	O
VRAM	O	B-Device
my	O	O
game	O	O
is	O	O
currently	O	O
using	O	O
.	O	O

I	O	O
want	O	O
to	O	O
display	O	O
this	O	O
in	O	O
my	O	O
debug	O	O
information	O	O
.	O	O

When	O	O
I	O	O
was	O	O
using	O	O
the	O	O
Visual	B-Code_Block	B-Application
Studio	I-Code_Block	I-Application
Graphics	I-Code_Block	I-Application
Analyzer	I-Code_Block	I-Application
I	O	O
got	O	O
an	O	O
idea	O	O
.	O	O

I	O	O
figured	O	O
that	O	O
I	O	O
could	O	O
get	O	O
the	O	O
amount	O	O
of	O	O
VRAM	O	B-Device
used	O	O
by	O	O
adding	O	O
the	O	O
size	O	O
of	O	O
each	O	O
of	O	O
the	O	O
graphic	O	O
objects	O	O
as	O	O
seen	O	O
in	O	O
the	O	O
Graphics	B-Code_Block	B-User_Interface_Element
Object	I-Code_Block	I-User_Interface_Element
Table	I-Code_Block	I-User_Interface_Element
.	O	O

Unfortunately	O	O
I	O	O
have	O	O
no	O	O
idea	O	O
how	O	O
to	O	O
get	O	O
each	O	O
of	O	O
those	O	O
objects	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
simple	O	O
way	O	O
to	O	O
get	O	O
these	O	O
?	O	O

I	O	O
actually	O	O
found	O	O
an	O	O
easier	O	O
way	O	O
to	O	O
do	O	O
this	O	O
:	O	O

..	O	O
.	O	O

This	O	O
gets	O	O
the	O	O
currently	O	O
used	O	O
VRAM	O	B-Device
from	O	O
the	O	O
default	O	O
(	O	O
ID	O	B-Variable
0	O	B-Value
)	O	O
adapter	O	B-Device
and	O	O
converts	O	O
it	O	O
to	O	O
megabytes	O	O
.	O	O

Note	O	O
:	O	O
This	O	O
does	O	O
require	O	O
the	O	O
use	O	O
of	O	O
the	O	O
windows	O	B-Operating_System
10	O	B-Version
SDK	O	B-Application

i	O	O
am	O	O
using	O	O
ccavenue	O	B-Website
in	O	O
my	O	O
prestashop	B-Code_Block	B-Application
store	I-Code_Block	O
Version	I-Code_Block	O
1.2.5.0	I-Code_Block	B-Version
.	O	O

My	O	O
problem	O	O
is	O	O
after	O	O
successful	O	O
credit	O	O
card	O	O
transaction	O	O
,	O	O
when	O	O
coming	O	O
back	O	O
to	O	O
website	O	O
,	O	O
shopping	O	O
cart	O	O
items	O	O
are	O	O
not	O	O
clearing	O	O
and	O	O
also	O	O
orders	O	O
are	O	O
not	O	O
updating	O	O
.	O	O

I	O	O
am	O	O
using	O	O
CCavenue	O	B-Application
Payment	O	I-Application
Gateway	O	I-Application
developed	O	O
by	O	O
bluezeal.in	O	B-Website
.	O	O

In	O	O
merchant	O	O
account	O	O
settings	O	O
I	O	O
have	O	O
given	O	O
Return	O	O
Page	O	O
URL	O	O
as	O	O
http://myshop	B-Code_Block	B-Code_Block
/modules/ccavenue/validation.php	I-Code_Block	I-Code_Block
where	O	O
I	O	O
am	O	O
updating	O	O
my	O	O
order	O	O
table	O	B-User_Interface_Element
.	O	O

And	O	O
in	O	O
ccavenue.php	O	B-File_Name
page	O	O
I	O	O
have	O	O
given	O	O
my	O	O
return	O	O
url	O	O
as	O	O
$Url	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
http://'.htmlspecialchars($_SERVER['HTTP_HOST'	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
ENT_COMPAT	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
UTF-8	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
.__PS_BASE_URI__	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
modules/ccavenue/validation.php	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
.	O	O

After	O	O
successful	O	O
transaction	O	O
ccavenue	O	O
is	O	O
not	O	O
returning	O	O
anything	O	O
to	O	O
my	O	O
validation.php	O	B-File_Name
page	O	O
.	O	O

Ie	O	O
,	O	O
AuthDesc	B-Code_Block	B-Variable
,	O	O
Order_Id	B-Code_Block	B-Variable
etc	O	O

This	O	O
problem	O	O
got	O	O
solved	O	O
after	O	O
regenerating	O	O
key	O	O
in	O	O
merchant	O	O
account	O	O
settings.	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
empty	O	O
a	O	O
directory	O	O
using	O	O
the	O	O
rm	B-Code_Block	B-Code_Block
program	O	O
.	O	O

I	O	O
capture	O	O
a	O	O
path	O	O
into	O	O
a	O	O
variable	O	O
and	O	O
go	O	O
to	O	O
use	O	O
this	O	O
like	O	O
so	O	O
:	O	O

There	O	O
certainly	O	O
is	O	O
such	O	O
a	O	O
directory	O	O
at	O	O
the	O	O
path	O	O
.	O	O

When	O	O
I	O	O
try	O	O
this	O	O
manually	O	O
,	O	O
without	O	O
a	O	O
variable	O	O
,	O	O
it	O	O
works	O	O
as	O	O
expected	O	O
.	O	O

You	O	O
're	O	O
using	O	O
fancy	O	O
quotes	O	O
in	O	O
your	O	O
assignment	O	O
of	O	O
export_folder_path	B-Code_Block	B-Code_Block
.	O	O

These	O	O
slanted	O	O
Unicode	O	O
quotes	O	O
are	O	O
not	O	O
recognized	O	O
as	O	O
quotes	O	O
by	O	O
bash	O	B-Application
,	O	O
and	O	O
are	O	O
therefore	O	O
treated	O	O
as	O	O
literals	O	O
.	O	O

This	O	O
is	O	O
usually	O	O
due	O	O
to	O	O
copypasting	O	O
from	O	O
blogs	O	O
,	O	O
or	O	O
using	O	O
an	O	O
editor	O	B-Application
or	O	O
OS	O	O
not	O	O
intended	O	O
for	O	O
programmers	O	O
such	O	O
as	O	O
Word	O	B-Application
or	O	O
macOS	O	B-Operating_System
.	O	O

Replace	O	O
them	O	O
with	O	O
regular	O	O
ASCII	O	O
double	O	O
quotes	O	O
in	O	O
your	O	O
script	O	O
,	O	O
and	O	O
disable	O	O
"	O	O
smart	O	O
quotes	O	O
"	O	O
in	O	O
your	O	O
editor	O	B-Application
or	O	O
OS	O	O
.	O	O

If	O	O
you	O	O
are	O	O
sure	O	O
about	O	O
removing	O	O
the	O	O
directory	O	O
along	O	O
with	O	O
its	O	O
contents	O	O
,	O	O
I	O	O
would	O	O
advise	O	O
this	O	O
:	O	O

The	O	O
double	O	O
quotes	O	O
will	O	O
take	O	O
care	O	O
of	O	O
any	O	O
spaces	O	O
in	O	O
the	O	O
name	O	O
of	O	O
the	O	O
directory	O	O
.	O	O

Had	O	O
a	O	O
bit	O	O
of	O	O
a	O	O
"	O	O
is	O	O
this	O	O
real	O	O
life	O	O
moment	O	O
"	O	O
.	O	O

Why	O	O
are	O	O
we	O	O
naming	O	O
mutators	O	O
with	O	O
get	O	O
and	O	O
set	O	O
prefixes	O	O
:	O	O

It	O	O
would	O	O
just	O	O
as	O	O
easy	O	O
and	O	O
understandable	O	O
to	O	O
just	O	O
do	O	O

myMember	O	B-Function
(	O	O
myMember	O	B-Class
Member	O	B-Variable
)	O	O

as	O	O
setMyMember	O	B-Function
and	O	O
getMyMember	O	B-Function

Is	O	O
there	O	O
a	O	O
historical	O	O
reason	O	O
why	O	O
Java	O	B-Language
has	O	O
this	O	O
style	O	O
?	O	O

The	O	O
get*	O	O
and	O	O
set*	O	O
style	O	O
of	O	O
naming	O	O
is	O	O
specified	O	O
in	O	O
the	O	O
JavaBeans	O	B-Class
specification	O	O
,	O	O
and	O	O
some	O	O
libraries	O	O
using	O	O
reflection	O	O
expect	O	O
this	O	O
style	O	O
to	O	O
be	O	O
used	O	O
.	O	O

For	O	O
example	O	O
,	O	O
Jackson	O	B-Class
mapper	O	I-Class
can	O	O
serialize	O	O
a	O	O
java	O	B-Language
object	O	O
using	O	O
the	O	O
get/setters	O	O
to	O	O
JSON	O	B-File_Type
without	O	O
any	O	O
additional	O	O
annotations	O	O
;	O	O
if	O	O
you	O	O
use	O	O
a	O	O
different	O	O
naming	O	O
style	O	O
,	O	O
you	O	O
have	O	O
to	O	O
tell	O	O
it	O	O
where	O	O
your	O	O
properties	O	O
are	O	O
.	O	O

Note	O	O
that	O	O
some	O	O
other	O	O
programming	O	O
languages	O	O
use	O	O
different	O	O
styles	O	O
.	O	O

Perl	O	B-Language
libraries	O	O
,	O	O
for	O	O
example	O	O
,	O	O
often	O	O
use	O	O
a	O	O
->someProperty()	B-Code_Block	B-Function
getter	O	O
and	O	O
->someProperty($newValue)	B-Code_Block	B-Function
setter	O	O
.	O	O

I	O	O
am	O	O
following	O	O
the	O	O
Basic	O	O
Single-Row	O	O
Tile	O	O
Source	O	O
Collection	O	O
example	O	O
with	O	O
the	O	O
same	O	O
configurations	O	O
and	O	O
tile	O	O
sources	O	O
as	O	O
mentioned	O	O
in	O	O
the	O	O
example	O	O
.	O	O

I	O	O
am	O	O
now	O	O
trying	O	O
to	O	O
add	O	O
overlays	O	B-User_Interface_Element
on	O	O
the	O	O
first	O	O
and	O	O
second	O	O
image	O	B-User_Interface_Element
but	O	O
having	O	O
trouble	O	O
doing	O	O
it	O	O
.	O	O

The	O	O
first	O	O
overlay	O	B-User_Interface_Element
should	O	O
have	O	O
been	O	O
positioned	O	O
on	O	O
top	O	O
of	O	O
the	O	O
first	O	O
image	O	B-User_Interface_Element
and	O	O
the	O	O
second	O	O
overlay	O	B-User_Interface_Element
should	O	O
have	O	O
been	O	O
placed	O	O
on	O	O
the	O	O
second	O	O
image	O	B-User_Interface_Element
but	O	O
its	O	O
not	O	O
happening	O	O
that	O	O
way.	O	O
.	O	O

I	O	O
am	O	O
adding	O	O
the	O	O
overlays	O	B-User_Interface_Element
collection	O	O
to	O	O
the	O	O
tileSources	O	B-Class
collection	O	O
.	O	O

Are	O	O
the	O	O
overlays	O	B-User_Interface_Element
not	O	O
independent	O	O
for	O	O
different	O	O
pages	O	O
?	O	O

Also	O	O
,	O	O
I	O	O
get	O	O
the	O	O
below	O	O
error	O	O
in	O	O
console	O	B-Application
after	O	O
adding	O	O
the	O	O
overlays	O	O
,	O	O
I	O	O
do	O	O
not	O	O
understand	O	O
how	O	O
I	O	O
can	O	O
use	O	O
TiledImage.imageToViewportRectangle	O	B-Class
in	O	O
such	O	O
basic	O	O
initialization	O	O
of	O	O
the	O	O
plugin	O	B-Application
.	O	O

.	O	O

Codepen	O	B-Application
example	O	O
URL	O	O
:	O	O
https://codepen.io/hussainb/pen/QQPPvL	O	O

Codepen	O	B-Application
Code	O	O
:	O	O

html	O	B-Language
:	O	O

css	O	B-Language
:	O	O

Javascript	O	B-Language
:	O	O

Looks	O	O
like	O	O
this	O	O
is	O	O
a	O	O
bug	O	O
with	O	O
OpenSeadragon	O	B-Library
!	O	O

Here	O	O
's	O	O
the	O	O
issue	O	O
ticket	O	O
:	O	O

https://github.com/openseadragon/openseadragon/issues/1412	O	O

You	O	O
can	O	O
work	O	O
around	O	O
it	O	O
by	O	O
storing	O	O
your	O	O
overlays	O	B-User_Interface_Element
separately	O	O
and	O	O
adding	O	O
them	O	O
after	O	O
the	O	O
images	O	B-User_Interface_Element
have	O	O
opened	O	O
,	O	O
something	O	O
like	O	O
so	O	O
(	O	O
assuming	O	O
you	O	O
've	O	O
already	O	O
created	O	O
a	O	O
viewer	O	B-Class
)	O	O
:	O	O

You	O	O
can	O	O
see	O	O
this	O	O
in	O	O
action	O	O
here	O	O
:	O	O

https://codepen.io/iangilman/pen/aqgzJZ	O	O

Some	O	O
data	O	O
I	O	O
have	O	O
to	O	O
plot	O	O
have	O	O
coordinates	O	O
such	O	O
as	O	O
(	O	B-Value
20	O	I-Value
,	O	I-Value
0	O	I-Value
)	O	I-Value
,	O	O
(	O	B-Value
10	O	I-Value
,	O	I-Value
0	O	I-Value
)	O	I-Value
,	O	O
etc	O	O
..	O	O
.	O	O
Basically	O	O
some	O	O
of	O	O
the	O	O
points	O	O
belong	O	O
to	O	O
the	O	O
x-axis	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
,	O	O
these	O	O
points	O	O
are	O	O
hidden	O	O
by	O	O
the	O	O
axis	O	O
;	O	O
i.e	O	O
.	O	O
the	O	O
markers	O	O
are	O	O
behind	O	O
the	O	O
line	O	O
and	O	O
therefore	O	O
cannot	O	O
be	O	O
seen	O	O
properly	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
of	O	O
my	O	O
figure	O	O
:	O	O
http://i.stack.imgur.com/FNcob.png	O	O

Does	O	O
anybody	O	O
have	O	O
an	O	O
idea	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
?	O	O

I	O	O
am	O	O
running	O	O
out	O	O
of	O	O
idea	O	O
..	O	O
.	O	O

Thanks	O	O
.	O	O

Viktor	O	B-User_Name

Matplotlib	O	B-Library
"	O	O
snaps	O	O
"	O	O
plot	O	O
limits	O	O
to	O	O
"	O	O
whole	O	O
"	O	O
(	O	O
factors	O	O
of	O	O
2	O	B-Value
,	O	O
5	O	B-Value
,	O	O
10	O	B-Value
,	O	O
100	O	B-Value
,	O	O
etc	O	O
)	O	O
numbers	O	O
,	O	O
by	O	O
default	O	O
.	O	O

This	O	O
often	O	O
means	O	O
that	O	O
your	O	O
data	O	O
may	O	O
wind	O	O
up	O	O
on	O	O
the	O	O
boundary	O	O
of	O	O
the	O	O
plot	O	O
.	O	O

ax.margins	B-Code_Block	B-Function
allows	O	O
you	O	O
to	O	O
add	O	O
a	O	O
padding	O	O
factor	O	O
before	O	O
this	O	O
autoscaling	O	O
for	O	O
the	O	O
plot	O	O
is	O	O
calculated	O	O
.	O	O

It	O	O
's	O	O
a	O	O
quick	O	O
way	O	O
to	O	O
avoid	O	O
the	O	O
problem	O	O
of	O	O
points	O	O
on	O	O
the	O	O
plot	O	O
boundary	O	O
.	O	O

As	O	O
a	O	O
quick	O	O
example	O	O
of	O	O
the	O	O
problem	O	O
:	O	O

And	O	O
an	O	O
easy	O	O
solution	O	O
:	O	O

I	O	O
have	O	O
a	O	O
table	O	B-Data_Structure
of	O	O
data	O	O
that	O	O
goes	O	O
quite	O	O
some	O	O
time	O	O
back	O	O
,	O	O
but	O	O
I	O	O
only	O	O
want	O	O
to	O	O
results	O	O
in	O	O
my	O	O
query	O	O
for	O	O
the	O	O
last	O	O
13	O	O
weeks	O	O
.	O	O

There	O	O
is	O	O
a	O	O
date	O	O
column	O	B-Data_Structure
in	O	O
that	O	O
table	O	B-Data_Structure
.	O	O

I	O	O
can	O	O
use	O	O

to	O	O
get	O	O
the	O	O
date	O	O
of	O	O
13	O	O
weeks	O	O
back	O	O
as	O	O
a	O	O
separate	O	O
query	O	O
-	O	O
but	O	O
I	O	O
am	O	O
having	O	O
trouble	O	O
linking	O	O
that	O	O
into	O	O
the	O	O
initial	O	O
select	O	O
to	O	O
only	O	O
return	O	O
me	O	O
the	O	O
last	O	O
13	O	O
weeks	O	O
of	O	O
data	O	O
.	O	O

I	O	O
have	O	O
used	O	O
that	O	O
query	O	O
as	O	O
the	O	O
data	O	O
should	O	O
refresh	O	O
every	O	O
day	O	O
to	O	O
go	O	O
back	O	O
13	O	O
weeks	O	O
to	O	O
that	O	O
date	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
I	O	O
can	O	O
do	O	O
that	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O

I	O	O
'm	O	O
a	O	O
bit	O	O
confused	O	O
on	O	O
what	O	O
your	O	O
issue	O	O
is	O	O
.	O	O

You	O	O
should	O	O
be	O	O
able	O	O
to	O	O
use	O	O
the	O	O
dateadd()	O	B-Function
in	O	O
your	O	O
where	O	B-Code_Block
clause	O	O
:	O	O

This	O	O
should	O	O
be	O	O
what	O	O
you	O	O
are	O	O
looking	O	O
for	O	O
:	O	O

I	O	O
want	O	O
to	O	O
build	O	O
a	O	O
specific	O	O
nodejs	O	B-Library
as	O	O
a	O	O
static	O	O
library	O	O
without	O	O
some	O	O
internal	O	O
module	O	O
like	O	O
child_process	B-Code_Block	B-Class
dns	I-Code_Block	I-Class
etc	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
configurable	O	O
way	O	O
to	O	O
go	O	O
about	O	O
this	O	O
?	O	O

Remove	O	O
the	O	O
modules	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
from	O	O
node.gyp	O	B-Library
,	O	O
remove	O	O
the	O	O
.js	O	B-File_Type
files	O	O
from	O	O
the	O	O
lib	B-Code_Block	B-File_Name
folder	O	O
,	O	O
remove	O	O
them	O	O
from	O	O
the	O	O
builtinLibs	B-Code_Block	B-Class
array	O	B-Data_Structure
in	O	O
lib/internal/module.js	B-Code_Block	B-File_Name
then	O	O
build	O	O
it	O	O
.	O	O

Be	O	O
aware	O	O
that	O	O
these	O	O
modules	O	O
are	O	O
used	O	O
in	O	O
tests	O	O
and	O	O
benchmarks	O	O
,	O	O
and	O	O
for	O	O
example	O	O
with	O	O
child_proccess	B-Code_Block	B-File_Name
,	O	O
in	O	O
lib/internal/v8_prof_polyfill.js	B-Code_Block	B-File_Name
and	O	O
lib/internal/cluster/master.js	B-Code_Block	B-File_Name

Let	O	O
me	O	O
commence	O	O
by	O	O
stating	O	O
my	O	O
objective	O	O
:	O	O
I	O	O
am	O	O
attempting	O	O
to	O	O
compare	O	O
two	O	O
13-bit	O	O
integers	O	B-Data_Type
:	O	O
>	O	B-Code_Block
,	O	O
<	O	B-Code_Block
,	O	O
and	O	O
=	O	B-Code_Block
;	O	O
I	O	O
have	O	O
to	O	O
do	O	O
this	O	O
calculation	O	O
trillions	O	O
of	O	O
times	O	O
,	O	O
so	O	O
it	O	O
is	O	O
imperative	O	O
that	O	O
I	O	O
optimize	O	O
it	O	O
as	O	O
much	O	O
as	O	O
possible	O	O
.	O	O

My	O	O
program	O	O
currently	O	O
utilizes	O	O
Python	O	B-Language
2.7	O	B-Version
and	O	O
pyopencl	O	B-Library
to	O	O
achieve	O	O
this	O	O
calculation	O	O
.	O	O

I	O	O
am	O	O
averaging	O	O
about	O	O
800	O	O
GFlops	O	O
out	O	O
of	O	O
my	O	O
ATI	O	B-Device
Radeon	O	I-Device
6870	O	I-Device
which	O	O
is	O	O
fine	O	O
for	O	O
now	O	O
.	O	O

So	O	O
here	O	O
is	O	O
my	O	O
question	O	O
:	O	O
If	O	O
instead	O	O
of	O	O
caring	O	O
out	O	O
the	O	O
<,	O	B-Code_Block
>,	O	I-Code_Block
and	O	O
=	O	B-Code_Block
operators	O	O
on	O	O
4	O	O
byte	O	O
floats	O	B-Data_Type
(as	O	O
I	O	O
am	O	O
doing	O	O
now),	O	O
I	O	O
wrote	O	O
bitwise	O	O
functions	O	O
to	O	O
handle	O	O
the	O	O
<,	O	B-Code_Block
>	O	I-Code_Block
,	O	O
and	O	O
=	O	B-Code_Block
,	O	O
and	O	O
I	O	O
was	O	O
able	O	O
to	O	O
process	O	O
2	O	O
-	O	O
13	O	O
bits	O	O
objects	O	O
at	O	O
a	O	O
time	O	O
,	O	O
would	O	O
this	O	O
increase	O	O
my	O	O
speed	O	O
?	O	O

Or	O	O
does	O	O
C	O	B-Language
already	O	O
have	O	O
the	O	O
most	O	O
efficient	O	O
way	O	O
of	O	O
finding	O	O
<,	O	B-Code_Block
and	O	O
>	O	B-Code_Block
,	O	O
and	O	O
=	O	B-Code_Block
(	O	O
obviously	O	O
)	O	O
for	O	O
floats	O	B-Data_Type
?	O	O

I	O	O
Have	O	O
a	O	O
models	O	O
like	O	O
this	O	O
:	O	O

there	O	O
is	O	O
some	O	O
query	O	O
that	O	O
i	O	O
want	O	O
the	O	O
orm	O	O
form	O	O
:	O	O

and	O	O
at	O	O
last	O	O
do	O	O
u	O	O
know	O	O
any	O	O
good	O	O
refrence	O	O
for	O	O
orm	O	O

thx	O	O
for	O	O
help	O	O

I	O	O
'm	O	O
assuming	O	O
the	O	O
group	O	B-Function
by	O	I-Function
is	O	O
for	O	O
ordering	O	O
.	O	O

If	O	O
you	O	O
really	O	O
want	O	O
group_by	O	B-Function
look	O	O
at	O	O
aggregates	O	O
and	O	O
annotate	O	O
in	O	O
django	O	B-Library
.	O	O

My	O	O
guess	O	O
of	O	O
what	O	O
you	O	O
are	O	O
looking	O	O
for	O	O
is	O	O
:	O	O

1	O	O
:	O	O
Get	O	O
the	O	O
person	O	O
record	O	O
-	O	O
select	O	B-Code_Block
person_name	O	I-Code_Block
from	O	I-Code_Block
Person	O	I-Code_Block

2	O	O
:	O	O
select	O	B-Code_Block
*	O	I-Code_Block
from	O	I-Code_Block
Person	O	I-Code_Block
,	O	I-Code_Block
Car	O	I-Code_Block
where	O	I-Code_Block
car_owner	O	I-Code_Block
=	O	I-Code_Block
person_id	O	I-Code_Block

Get	O	O
the	O	O
cars	O	B-Variable
belonging	O	O
to	O	O
the	O	O
person	O	B-Variable

3	B-Code_Block	O
:	I-Code_Block	O
select	I-Code_Block	B-Code_Block
*	O	I-Code_Block
from	O	I-Code_Block
Person	O	I-Code_Block
,	O	I-Code_Block
Car	O	I-Code_Block
group_by(person_name)	O	I-Code_Block

Get	O	O
list	O	B-Data_Structure
of	O	O
cars	O	B-Variable
sorted	O	O
by	O	O
owner	O	B-Variable

4	B-Code_Block	O
:	I-Code_Block	O
select	I-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
from	O	I-Code_Block
Person	O	I-Code_Block
,	O	I-Code_Block
Car	O	I-Code_Block
where	O	I-Code_Block
name	O	I-Code_Block
like	O	I-Code_Block
%x%	O	I-Code_Block
group_by(person_name)	O	I-Code_Block
having	O	I-Code_Block
car_id	O	I-Code_Block
>=	O	I-Code_Block
2	O	I-Code_Block

List	O	B-Data_Structure
of	O	O
cars	O	B-Variable
with	O	O
search	O	O
criteria	O	O

Cars	B-Code_Block	B-Variable
and	I-Code_Block	O
their	I-Code_Block	O
Owners	I-Code_Block	B-Variable

Here	O	O
's	O	O
what	O	O
I	O	O
intend	O	O
to	O	O
do	O	O
.	O	O

Request	O	O
https://reqres.in/api/users/2	B-Code_Block	O

Which	O	O
sends	O	O
a	O	O
response	O	O
as	O	O
follows	O	O
.	O	O

Now	O	O
,	O	O
I	O	O
wanna	O	O
grab	O	O
the	O	O
avatar	O	O
url	O	O
and	O	O
make	O	O
another	O	O
request	O	O
,	O	O
which	O	O
gives	O	O
me	O	O
the	O	O
image	O	B-File_Type
binary	O	I-File_Type
.	O	O

At	O	O
the	O	O
end	O	O
of	O	O
this	O	O
,	O	O
what	O	O
I	O	O
want	O	O
as	O	O
output	O	O
is	O	O
an	O	O
Observable	O	B-Class
that	O	O
gives	O	O
me	O	O
this	O	O
data	O	O
.	O	O

Here	O	O
's	O	O
how	O	O
I	O	O
approached	O	O
but	O	O
ca	O	O
n't	O	O
finish	O	O
it	O	O
.	O	O

Basically	O	O
,	O	O
is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
have	O	O
a	O	O
structure	O	O
like	O	O
this	O	O
,	O	O

Which	O	O
then	O	O
gets	O	O
resolved	O	O
to	O	O
my	O	O
final	O	O
data	O	O
?	O	O

You	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
use	O	O
switchMap	B-Code_Block	B-Function
for	O	O
this	O	O
and	O	O
use	O	O
concatMap	B-Code_Block	B-Function
or	O	O
mergeMap	B-Code_Block	B-Function
instead	O	O
:	O	O

I	O	O
would	O	O
like	O	O
my	O	O
page	O	O
to	O	O
pop-up	O	O
a	O	O
window	O	B-User_Interface_Element
that	O	O
contains	O	O
a	O	O
form	O	B-User_Interface_Element
.	O	O

When	O	O
the	O	O
form	O	B-User_Interface_Element
is	O	O
filled	O	O
out	O	O
and	O	O
Submit	O	O
is	O	O
clicked	O	O
,	O	O
I	O	O
would	O	O
like	O	O
the	O	O
pop-up	O	B-User_Interface_Element
to	O	O
remain	O	O
on	O	O
top	O	O
of	O	O
the	O	O
page	O	B-User_Interface_Element
with	O	O
new	O	O
data	O	O
loaded	O	O
into	O	O
it	O	O
.	O	O

Whenever	O	O
I	O	O
try	O	O
this	O	O
so	O	O
far	O	O
,	O	O
when	O	O
I	O	O
click	O	O
on	O	O
the	O	O
submit	O	O
button	O	B-User_Interface_Element
in	O	O
my	O	O
pop-up	O	B-User_Interface_Element
,	O	O
the	O	O
pop-up	O	B-User_Interface_Element
either	O	O
closes	O	O
,	O	O
if	O	O
I	O	O
have	O	O
target	O	B-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
_self	O	I-Code_Block
"	O	I-Code_Block
,	O	O
or	O	O
the	O	O
contains	O	O
of	O	O
the	O	O
pop-up	O	B-User_Interface_Element
go	O	O
into	O	O
a	O	O
new	O	O
tab	O	B-User_Interface_Element
that	O	O
the	O	O
browser	O	B-Application
opens	O	O
.	O	O

I	O	O
have	O	O
yet	O	O
to	O	O
find	O	O
a	O	O
solution	O	O
that	O	O
allows	O	O
the	O	O
pop-up	O	B-User_Interface_Element
to	O	O
stay	O	O
up	O	O
when	O	O
coming	O	O
from	O	O
this	O	O
AJAX	O	B-Library
pop-up	O	B-Function
function	O	O
(	O	O
listed	O	O
below	O	O
)	O	O
.	O	O

I	O	O
could	O	O
do	O	O
a	O	O
standard	O	O
non-AJAX	O	B-Library
popup	O	B-Function
,	O	O
but	O	O
then	O	O
if	O	O
a	O	O
user	O	O
clicks	O	O
on	O	O
the	O	O
page	O	B-User_Interface_Element
the	O	O
pop-up	O	B-User_Interface_Element
came	O	O
from	O	O
,	O	O
the	O	O
pop-up	O	B-User_Interface_Element
goes	O	O
underneath	O	O
the	O	O
main	O	O
page	O	B-User_Interface_Element
,	O	O
which	O	O
is	O	O
n't	O	O
something	O	O
I	O	O
want	O	O
at	O	O
all	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
page	O	B-User_Interface_Element
where	O	O
my	O	O
pop-up	O	B-User_Interface_Element
comes	O	O
from	O	O

So	O	O
,	O	O
this	O	O
is	O	O
the	O	O
current	O	O
graph	O	B-Data_Structure
and	O	O
form	O	B-User_Interface_Element
pop-up	O	I-User_Interface_Element
.	O	O

It	O	O
is	O	O
in	O	O
the	O	O
form	O	O
of	O	O
a	O	O
JSP	O	B-Application
backed	O	O
by	O	O
a	O	O
servlet	O	B-Class
.	O	O

The	O	O
first	O	O
part	O	O
of	O	O
the	O	O
header	O	B-User_Interface_Element
gets	O	O
all	O	O
the	O	O
parameters	O	O
and	O	O
then	O	O
zoomPlot.generatePlot()	O	B-Function
creates	O	O
the	O	O
plot	O	B-User_Interface_Element
and	O	O
saves	O	O
it	O	O
as	O	O
a	O	O
.png	O	B-File_Type
.	O	O

The	O	O
body	O	O
displays	O	O
the	O	O
.png	O	B-File_Type
graph	O	B-Data_Structure
and	O	O
then	O	O
also	O	O
shows	O	O
the	O	O
form	O	B-User_Interface_Element
.	O	O

When	O	O
one	O	O
submits	O	O
the	O	O
form	O	B-User_Interface_Element
,	O	O
the	O	O
same	O	O
thing	O	O
happens	O	O
again	O	O
.	O	O

The	O	O
first	O	O
time	O	O
,	O	O
this	O	O
pop-up	O	B-User_Interface_Element
is	O	O
displayed	O	O
,	O	O
the	O	O
plot	O	B-User_Interface_Element
uses	O	O
default	O	O
values	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
really	O	O
sure	O	O
how	O	O
to	O	O
convert	O	O
this	O	O
to	O	O
an	O	O
AJAX	O	B-Function
request	O	I-Function
,	O	O
so	O	O
if	O	O
anyone	O	O
has	O	O
any	O	O
good	O	O
ideas	O	O
,	O	O
please	O	O
let	O	O
me	O	O
know	O	O
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
recycle	O	O
as	O	O
much	O	O
as	O	O
I	O	O
can	O	O
.	O	O

Use	O	O
AJAX	O	B-Library
to	O	O
submit	O	O
the	O	O
form	O	B-HTML_XML_Tag
.	O	O

In	O	O
your	O	O
init	O	O
code	O	O
:	O	O

Elsewhere	O	O
:	O	O

There	O	O
are	O	O
many	O	O
ways	O	O
I	O	O
would	O	O
do	O	O
it	O	O
:	O	O

1	O	O
:	O	O
A	O	O
form	O	B-HTML_XML_Tag
and	O	O
an	O	O
Iframe	O	B-HTML_XML_Tag

Target	O	O
the	O	O
form	O	B-HTML_XML_Tag
to	O	O
the	O	O
iframe	O	B-HTML_XML_Tag
:	O	O

Visually	O	O
hide	O	O
the	O	O
iframe	O	B-HTML_XML_Tag
with	O	O
CSS	O	B-Language
on	O	O
initial	O	O
load	O	O
.	O	O

You	O	O
should	O	O
visibility	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
hidden	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
instead	O	O
of	O	O
display	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
none	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
because	O	O
the	O	O
latter	O	O
destroys	O	O
an	O	O
element	O	O
from	O	O
the	O	O
DOM	O	B-Library
.	O	O

Prevent	O	O
default	O	O
submission	O	O
of	O	O
the	O	O
form	O	O
.	O	B-HTML_XML_Tag

When	O	O
the	O	O
form	O	B-HTML_XML_Tag
is	O	O
submitted	O	O
(	O	O
with	O	O
AJAX	O	B-Library
)	O	O
,	O	O
hide	O	O
the	O	O
form	O	B-HTML_XML_Tag
and	O	O
show	O	O
the	O	O
iframe	O	B-HTML_XML_Tag
.	O	O

The	O	O
dialog	O	B-User_Interface_Element
would	O	O
still	O	O
be	O	O
open	O	O
.	O	O

2	O	O
:	O	O
A	O	O
form	O	B-HTML_XML_Tag
with	O	O
AJAX	O	B-Library

Wrap	O	O
the	O	O
form	O	B-HTML_XML_Tag
in	O	O
a	O	O
div	O	B-HTML_XML_Tag
like	O	O
this	O	O
:	O	O

Then	O	O
use	O	O
AJAX	O	B-Library
to	O	O
submit	O	O
the	O	O
form	O	B-HTML_XML_Tag
and	O	O
show	O	O
results	O	O
in	O	O
the	O	O
#results	O	B-HTML_XML_Tag
-container	O	I-HTML_XML_Tag

NOTE	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
explain	O	O
the	O	O
process	O	O
so	O	O
that	O	O
you	O	O
'll	O	O
be	O	O
able	O	O
to	O	O
implement	O	O
your	O	O
own	O	O
login	O	B-User_Interface_Element
.	O	O

DO	O	O
NOT	O	O
FORGET	O	O
to	O	O
prevent	O	O
default	O	O
submission	O	O
of	O	O
the	O	O
form	O	B-HTML_XML_Tag
in	O	O
any	O	O
of	O	O
the	O	O
above	O	O
examples	O	O
!	O	O

Since	O	O
you	O	O
use	O	O
jQuery	O	B-Library
,	O	O
it	O	O
's	O	O
like	O	O
this	O	O
:	O	O

PS	O	O
:	O	O
Your	O	O
snippet	O	O
is	O	O
not	O	O
functioning	O	O
properly	O	O
.	O	O

:::EDIT::	O	O
:	O	O

Prevent	O	O
default	O	O
submission	O	O
of	O	O
the	O	O
form	O	B-HTML_XML_Tag

Send	O	O
a	O	O
POST	O	B-Function
request	O	O
on	O	O
submit	O	O
to	O	O
your	O	O
server	O	B-Application

Respond	O	O
with	O	O
the	O	O
new	O	O
graph	O	B-User_Interface_Element
image	O	I-User_Interface_Element
url	O	O
from	O	O
the	O	O
server	O	B-Application

Replace	O	O
the	O	O
old	O	O
graph	O	B-User_Interface_Element
image	O	I-User_Interface_Element
src	O	B-HTML_XML_Tag
with	O	O
the	O	O
new	O	O
one	O	O

Can	O	O
you	O	O
add	O	O
more	O	O
code	O	O
to	O	O
your	O	O
question	O	O
so	O	O
I	O	O
can	O	O
help	O	O
out	O	O
?	O	O

Especially	O	O
your	O	O
current	O	O
JavaScript	O	B-Language
.	O	O

The	O	O
assignment	O	O
is	O	O
to	O	O
develop	O	O
a	O	O
monitor	O	O
,	O	O
by	O	O
the	O	O
name	O	O
of	O	O
matchmaker	O	B-Function
.	O	O

We	O	O
have	O	O
a	O	O
routine	O	O
:	O	O
self()	O	B-Function
;	O	O
that	O	O
returns	O	O
the	O	O
thread	O	O
's	O	O
id	O	B-Variable
.	O	O

The	O	O
matchmaker	O	B-Function
method	O	O
must	O	O
do	O	O
the	O	O
following	O	O
:	O	O

Threads	O	O
that	O	O
call	O	O
this	O	O
routine	O	O
"	O	B-Value
trade	O	I-Value
"	O	I-Value
tids	O	B-Variable
.	O	O

When	O	O
a	O	O
thread	O	O
A	O	O
calls	O	O
make_match()	O	B-Function
and	O	O
a	O	O
value	O	O
B	O	B-Value
is	O	O
returned	O	O
,	O	O
this	O	O
means	O	O
that	O	O
that	O	O
thread	O	O
ID	O	B-Variable
B	O	B-Value
also	O	O
called	O	O
the	O	O
make_match	O	B-Function
routine	O	O
.	O	O

For	O	O
a	O	O
pair	O	O
to	O	O
be	O	O
possible	O	O
make_match()	O	B-Function
can	O	O
send	O	O
the	O	O
thread	O	O
to	O	O
sleep	O	O
,	O	O
at	O	O
will	O	O
.	O	O

For	O	O
the	O	O
mutex	O	O
and	O	O
condition	O	O
variables	O	O
pthread.h	O	B-File_Name
mustbe	O	O
used	O	O
.	O	O

This	O	O
is	O	O
the	O	O
code	O	O
I	O	O
came	O	O
up	O	O
with	O	O
but	O	O
because	O	O
this	O	O
is	O	O
a	O	O
written	O	O
assignment	O	O
I	O	O
cannot	O	O
evaluate	O	O
it	O	O
's	O	O
correctness	O	O
.	O	O

I	O	O
would	O	O
like	O	O
some	O	O
feedback	O	O
on	O	O
wether	O	O
this	O	O
could	O	O
work	O	O
or	O	O
not	O	O
.	O	O

Thank	O	O
you	O	O
in	O	O
advance	O	O
.	O	O

I	O	O
am	O	O
using	O	O
Rg.Plugins.Popup	O	B-Class
for	O	O
a	O	O
simple	O	O
confirmation	O	O
popup	O	B-User_Interface_Element
before	O	O
deleting	O	O
an	O	O
item	O	O
from	O	O
the	O	O
list	O	O
like	O	O
"	O	B-Value
Are	O	I-Value
you	O	I-Value
sure	O	I-Value
you	O	I-Value
want	O	I-Value
to	O	I-Value
delete	O	I-Value
Item1	O	I-Value
from	O	I-Value
the	O	I-Value
list	O	I-Value
?	O	I-Value
"	O	I-Value
.	O	O

I	O	O
need	O	O
to	O	O
know	O	O
how	O	O
to	O	O
pause	O	O
the	O	O
deleting	O	B-Function
method	O	O
till	O	O
it	O	O
gets	O	O
the	O	O
confirmation	O	O
from	O	O
the	O	O
popup	O	B-User_Interface_Element
.	O	O

You	O	O
can	O	O
use	O	O
TaskCompletionSource	O	B-Class

For	O	O
example	O	O
,	O	O
create	O	O
PopupAlert	B-Code_Block	B-Class
page	O	O
with	O	O
an	O	O
async	O	B-Data_Type
Show	B-Code_Block	B-Class
method	O	O
:	O	O

And	O	O
,	O	O
usage	O	O
would	O	O
look	O	O
like	O	O

Why	O	O
not	O	O
leverage	O	O
MessagingCenter	O	B-Class
to	O	O
call	O	O
a	O	O
method	O	O
which	O	O
will	O	O
remove	O	O
said	O	O
item	O	B-Variable
?	O	O

You	O	O
could	O	O
subscribe	O	O
to	O	O
the	O	O
message	O	O
when	O	O
displaying	O	O
the	O	O
popup	O	B-User_Interface_Element
and	O	O
receive	O	O
it	O	O
when	O	O
the	O	O
confirm	O	O
button	O	B-User_Interface_Element
has	O	O
been	O	O
clicked	O	O
.	O	O

I	O	O
have	O	O
several	O	O
mat	O	B-File_Type
file	O	O
like	O	O
:	O	O
first.mat	O	B-File_Name
,	O	O
second.mat	O	B-File_Name
,	O	O
third.mat	O	B-File_Name
,..	O	O
.	O	O

all	O	O
of	O	O
these	O	O
files	O	O
have	O	O
the	O	O
same	O	O
content	O	O
like	O	O
:	O	O
variable1	O	B-Variable
<3400x1	O	B-Value
double>	O	B-Data_Type
,	O	O
variable2<1143x1	O	B-Variable
double>	O	B-Data_Type
,	O	O
variable3<1141x1	O	B-Variable
double>	O	B-Data_Type
,	O	O
..	O	O
.	O	O

all	O	O
mat	O	B-File_Type
files	O	O
have	O	O
the	O	O
same	O	O
content	O	O
but	O	O
the	O	O
size	O	O
of	O	O
each	O	O
variable	O	O
in	O	O
each	O	O
mat	O	B-File_Type
file	O	O
is	O	O
different	O	O
.	O	O

I	O	O
need	O	O
to	O	O
concatenate	O	O
all	O	O
same	O	O
variables	O	O
in	O	O
all	O	O
mat	O	B-File_Type
files	O	O
in	O	O
order	O	O
to	O	O
have	O	O
just	O	O
one	O	O
mat	O	B-File_Type
file	O	O
.	O	O

can	O	O
somebody	O	O
tell	O	O
me	O	O
what	O	O
can	O	O
I	O	O
do	O	O
?	O	O
which	O	O
function	O	O
should	O	O
I	O	O
use	O	O
?	O	O

Many	O	O
thanks	O	O
.	O	O

There	O	O
is	O	O
no	O	O
matlab	O	B-Language
function	O	O
to	O	O
do	O	O
this	O	O
,	O	O
you	O	O
need	O	O
to	O	O
open	O	O
all	O	O
individual	O	O
vectors	O	B-Data_Structure
,	O	O
combine	O	O
them	O	O
in	O	O
the	O	O
way	O	O
you	O	O
want	O	O
,	O	O
and	O	O
save	O	O
them	O	O
back	O	O
to	O	O
disk	O	B-Device
.	O	O

Something	O	O
like	O	O
this	O	O
(	O	O
untested	O	O
)	O	O
:	O	O

Thanks	O	O
all	O	O
for	O	O
your	O	O
answers	O	O
,	O	O
here	O	O
is	O	O
the	O	O
final	O	O
code	O	O
which	O	O
is	O	O
working	O	O
correctly	O	O
.	O	O

I	O	O
am	O	O
playing	O	O
with	O	O
the	O	O
new	O	O
google	O	B-Website
expansion	O	O
pack	O	O
stuff	O	O
,	O	O
and	O	O
the	O	O
google	O	O
library	O	O
project	O	O
for	O	O
the	O	O
downloader	O	O
has	O	O
a	O	O
special	O	O
values-v9/styles.xml	O	B-File_Name
file	O	O
for	O	O
the	O	O
notification	O	B-User_Interface_Element
text	O	O
properties	O	O
.	O	O

This	O	O
causes	O	O
an	O	O
error	O	O
when	O	O
the	O	O
app	O	O
that	O	O
is	O	O
using	O	O
the	O	O
library	O	O
is	O	O
preAPI9	O	B-Library
..	O	O
.	O	O
at	O	O
least	O	O
for	O	O
me	O	O
.	O	O

It	O	O
is	O	O
referring	O	O
to	O	O
some	O	O
style	O	O
stuff	O	O
that	O	O
only	O	O
appeared	O	O
in	O	O
api9	O	B-Library
.	O	B-Version

I	O	O
've	O	O
tried	O	O
setting	O	O

<uses-sdk	O	B-Code_Block
android:minSdkVersion="8"	O	I-Code_Block
android:targetSdkVersion="9"	O	B-Code_Block
/>	O	I-Code_Block

in	O	O
the	O	O
AndroidManifest.xml	O	B-File_Name
of	O	O
the	O	O
main	O	O
app	O	O
,	O	O
but	O	O
this	O	O
did	O	O
n't	O	O
help	O	O
.	O	O

I	O	O
would	O	O
(	O	O
naively	O	O
)	O	O
hope	O	O
eclipse	O	B-Application
would	O	O
just	O	O
ignore	O	O
the	O	O
error	O	O
if	O	O
I	O	O
'm	O	O
building	O	O
for	O	O
api8	O	B-Library
,	O	B-Version
and	O	O
then	O	O
when	O	O
deployed	O	O
on	O	O
the	O	O
market	O	O
the	O	O
system	O	O
would	O	O
use	O	O
the	O	O
values-9	O	B-File_Name
stuff	O	O
if	O	O
the	O	O
phone	O	O
were	O	O
at	O	O
or	O	O
above	O	O
that	O	O
level	O	O
,	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
seem	O	O
to	O	O
work	O	O
that	O	O
way	O	O
.	O	O

So	O	O
,	O	O
I	O	O
'm	O	O
hoping	O	O
I	O	O
'm	O	O
missing	O	O
something	O	O
trivial	O	O
here	O	O
.	O	O

btw	O	O
-	O	O
here	O	O
are	O	O
the	O	O
specific	O	O
errors	O	O

Description	O	B-Output_Block
Resource	O	I-Output_Block
Path	O	I-Output_Block
Location	O	I-Output_Block
Type	O	I-Output_Block

error	O	B-Output_Block
:	O	I-Output_Block
Error	O	I-Output_Block
retrieving	O	I-Output_Block
parent	O	I-Output_Block
for	O	I-Output_Block
item	O	I-Output_Block
:	O	I-Output_Block
No	O	I-Output_Block
resource	O	I-Output_Block
found	O	I-Output_Block
that	O	I-Output_Block
matches	O	I-Output_Block
the	O	I-Output_Block
given	O	I-Output_Block
name	O	I-Output_Block
'	O	I-Output_Block
android:TextAppearance.StatusBar.EventContent.Title	O	I-Output_Block
'	O	I-Output_Block
.	O	I-Output_Block

styles.xml	O	B-Output_Block
/Google	O	I-Output_Block
Play	O	I-Output_Block
Downloader	O	I-Output_Block
Library/res/values	O	I-Output_Block
-v9	O	I-Output_Block
line	O	I-Output_Block
4	O	I-Output_Block
Android	O	I-Output_Block
AAPT	O	I-Output_Block
Problem	O	I-Output_Block

Description	O	B-Output_Block
Resource	O	I-Output_Block
Path	O	I-Output_Block
Location	O	I-Output_Block
Type	O	I-Output_Block

error	O	B-Output_Block
:	O	I-Output_Block
Error	O	I-Output_Block
retrieving	O	I-Output_Block
parent	O	I-Output_Block
for	O	I-Output_Block
item	O	I-Output_Block
:	O	I-Output_Block
No	O	I-Output_Block
resource	O	I-Output_Block
found	O	I-Output_Block
that	O	I-Output_Block
matches	O	I-Output_Block
the	O	I-Output_Block
given	O	I-Output_Block
name	O	I-Output_Block
'	O	I-Output_Block
android:TextAppearance.StatusBar.EventContent.Title	O	I-Output_Block
'	O	I-Output_Block
.	O	O

styles.xml	O	B-Output_Block
/Google	O	I-Output_Block
Play	O	I-Output_Block
Downloader	O	I-Output_Block
Library/res/values	O	I-Output_Block
-v9	O	I-Output_Block
line	O	I-Output_Block
4	O	I-Output_Block
Android	O	I-Output_Block
AAPT	O	I-Output_Block
Problem	O	I-Output_Block

Yes	O	O
,	O	O
I	O	O
'm	O	O
getting	O	O
this	O	O
also	O	O
.	O	O

I	O	O
posted	O	O
a	O	O
related	O	O
question	O	O
here	O	O
:	O	O

Android	O	B-Operating_System
apk	O	B-File_Type
expansion	O	I-File_Type
file	O	O
libs	O	O
problems	O	O

I	O	O
'm	O	O
stumped	O	O
to	O	O
know	O	O
what	O	O
to	O	O
do	O	O
.	O	O

Update	O	O
:	O	O

This	O	O
worked	O	O
for	O	O
me	O	O
.	O	O

I	O	O
deleted	O	O
the	O	O
values-v9	O	B-File_Name
folder	O	O
and	O	O
rebuilt	O	O
everything	O	O
.	O	O

The	O	O
DownloadManager	O	B-Application
is	O	O
now	O	O
working	O	O
.	O	O

How	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
.	O	O

I	O	O
've	O	O
fixed	O	O
this	O	O
error	O	O
by	O	O
building	O	O
the	O	O
project	O	O
with	O	O
the	O	O
following	O	O
commands	O	O
:	O	O

The	O	O
first	O	O
command	O	O
tells	O	O
to	O	O
use	O	O
the	O	O
Android	O	B-Operating_System
2.3.3	O	B-Version
toolchain	O	O
for	O	O
buiding	O	O
the	O	O
project	O	O
.	O	O

Note	O	O
that	O	O
I	O	O
still	O	O
have	O	O
android:minSdkVersion	O	B-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
8	O	I-Code_Block
"	O	I-Code_Block
in	O	O
AndroidManifest.xml	O	B-File_Name
.	O	O

You	O	O
should	O	O
not	O	O
delete	O	O
the	O	O
values-v9/	O	B-File_Name
folder	O	O
.	O	O

Removing	O	O
it	O	O
can	O	O
cause	O	O
displaying	O	O
notification	O	B-User_Interface_Element
with	O	O
dark	O	B-User_Interface_Element
font	O	I-User_Interface_Element
on	O	O
dark	O	B-User_Interface_Element
background	O	I-User_Interface_Element
.	O	O

I	O	O
am	O	O
currently	O	O
trying	O	O
to	O	O
add	O	O
a	O	O
toolbar	O	B-User_Interface_Element
as	O	O
the	O	O
action	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
and	O	O
I	O	O
am	O	O
having	O	O
trouble	O	O
getting	O	O
anything	O	O
besides	O	O
the	O	O
name	O	O
of	O	O
the	O	O
app	O	O
to	O	O
display	O	O
.	O	O

I	O	O
am	O	O
adding	O	O
the	O	O
Toolbar	O	B-User_Interface_Element
from	O	O
appcompat	O	B-Library
and	O	O
have	O	O
created	O	O
the	O	O
menu	O	B-File_Name
xml	O	I-File_Name
file	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
necessary	O	O
step	O	O
I	O	O
need	O	O
to	O	O
take	O	O
in	O	O
order	O	O
to	O	O
link	O	O
the	O	O
two	O	O
?	O	O

Here	O	O
is	O	O
my	O	O
activity	O	B-File_Name
xml	O	I-File_Name
:	O	O

I	O	O
am	O	O
sure	O	O
the	O	O
toolbar	O	B-User_Interface_Element
is	O	O
being	O	O
added	O	O
to	O	O
the	O	O
layout	O	O
correctly	O	O
because	O	O
I	O	O
have	O	O
been	O	O
able	O	O
to	O	O
change	O	O
its	O	O
size	O	O
and	O	O
that	O	O
has	O	O
been	O	O
reflected	O	O
correctly	O	O
when	O	O
it	O	O
runs	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
xml	O	B-Language
for	O	O
the	O	O
menu	O	B-HTML_XML_Tag
:	O	O

And	O	O
this	O	O
is	O	O
the	O	O
only	O	O
thing	O	O
that	O	O
shows	O	O
up	O	O
in	O	O
the	O	O
action	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
:	O	O

Just	O	O
to	O	O
be	O	O
clear	O	O
I	O	O
am	O	O
pretty	O	O
much	O	O
following	O	O
this	O	O
tutorial	O	O
exactly	O	O
:	O	O

http://developer.android.com/training/appbar/index.html	O	O

Any	O	O
help	O	O
is	O	O
appreciated	O	O
,	O	O
thank	O	O
you	O	O
!	O	O

add	O	O
below	O	O
method	O	O
in	O	O
you	O	O
activity	O	B-File_Name

i	O	O
have	O	O
created	O	O
a	O	O
SLIDE	O	O
UP	O	O
animation	O	B-Class
on	O	O
view	O	O
and	O	O
i	O	O
am	O	O
repeating	O	O
this	O	O
animation	O	B-Class
again	O	O
onAnimationEnd	O	B-Function
but	O	O
my	O	O
onAnimationEnd	O	B-Function
fired	O	O
twice	O	O
,	O	O
i	O	O
have	O	O
checked	O	O
it	O	O
with	O	O
counter	O	B-Variable
at	O	O
onAnimationEnd	O	B-Function
,	O	O
i	O	O
will	O	O
post	O	O
my	O	O
code	O	O
,	O	O
you	O	O
can	O	O
check	O	O
that	O	O
the	O	O
counter	O	B-Variable
in	O	O
onAnimationEnd	O	B-Function
will	O	O
incremented	O	O
twice	O	O
at	O	O
same	O	O
time	O	O
,	O	O
I	O	O
am	O	O
starting	O	O
the	O	O
animation	O	B-Class
again	O	O
in	O	O
onAnimationEnd	O	B-Function
method	O	O
,	O	O
please	O	O
guide	O	O
me	O	O
where	O	O
i	O	O
am	O	O
doing	O	O
wrong	O	O
?	O	O

If	O	O
you	O	O
want	O	O
your	O	O
animation	O	B-Class
to	O	O
play	O	O
once	O	O
,	O	O
you	O	O
have	O	O
to	O	O
remove	O	O
tickerView.startAnimation(animSlideUp)	O	B-Code_Block
;	O	I-Code_Block
from	O	O
the	O	O
onAnimationEnd	O	B-Function
Method	O	O
.	O	O

Avoid	O	O
using	O	O
xml	O	B-Language
animations	O	B-Class
,	O	O
it	O	O
's	O	O
much	O	O
easier	O	O
in	O	O
java	O	B-Language
code	O	O
.	O	O

If	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
animate	O	O
two	O	O
properties	O	O
:	O	O

In	O	O
your	O	O
case	O	O
,	O	O
you	O	O
're	O	O
only	O	O
changing	O	O
the	O	O
scaleY	O	B-Variable
value	O	O
from	O	O
1.0	O	B-Value
to	O	O
0	O	B-Value
,	O	O
so	O	O
use	O	O
this	O	O
:	O	O

LinearInterpolator	O	B-Class
is	O	O
used	O	O
by	O	O
default	O	O
.	O	O

Repeat	O	O
after	O	O
every	O	O
5	O	O
sec	O	O

I	O	O
may	O	O
found	O	O
the	O	O
solution	O	O
:	O	O
post	O	O
an	O	O
runnable	O	O
to	O	O
restart	O	O
the	O	O
animation	O	B-Class
.	O	O

In	O	O
your	O	O
case	O	O
,	O	O
in	O	O
OnAnimationEnd()	B-Code_Block	B-Function
function	O	O
,	O	O
code	O	O
like	O	O
this	O	O
:	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
see	O	O
the	O	O
page	O	O
in	O	O
Firebug	O	B-Application
or	O	O
other	O	O
software	O	O
after	O	O
the	O	O
content	O	O
of	O	O
a	O	O
div	O	B-HTML_XML_Tag
has	O	O
been	O	O
replaced	O	O
with	O	O
ajax	O	B-Library
?	O	O

yes	O	O

firebug	O	B-Application
marks	O	O
the	O	O
changed	O	O
div	O	B-HTML_XML_Tag
in	O	O
yellow	O	B-Value
and	O	O
you	O	O
can	O	O
see	O	O
the	O	O
html	O	B-Language
dynamic	O	O
updates	O	O
in	O	O
the	O	O
html	O	B-Language
view	O	O

Sure	O	O
,	O	O
you	O	O
can	O	O
inspect	O	O
the	O	O
DOM	O	B-Library
with	O	O
FireBug	O	B-Application
which	O	O
always	O	O
shows	O	O
the	O	O
DOM	O	B-Library
at	O	O
its	O	O
most	O	O
recent	O	O
state	O	O
(	O	O
and	O	O
of	O	O
course	O	O
accounts	O	O
for	O	O
AJAX	O	B-Library
updates	O	O
)	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
create	O	O
a	O	O
simple	O	O
OSX	O	B-Operating_System
app	O	O
that	O	O
has	O	O
a	O	O
split	O	O
view	O	O
(	O	O
top	O	O
to	O	O
bottom	O	O
)	O	O
.	O	O

The	O	O
second	O	O
view	O	O
of	O	O
split	O	O
view	O	O
is	O	O
a	O	O
NSTabview	O	B-Class
having	O	O
three	O	O
tabs	O	B-User_Interface_Element
.	O	O

Everything	O	O
looks	O	O
fine	O	O
but	O	O
NSTabview	O	B-Class
is	O	O
not	O	O
showing	O	O
tabs	O	B-User_Interface_Element
bars	O	I-User_Interface_Element
(	O	O
it	O	O
is	O	O
not	O	O
tabless	O	O
)	O	O
however	O	O
when	O	O
i	O	O
click	O	O
around	O	O
it	O	O
works	O	O
and	O	O
switch	O	O
to	O	O
other	O	O
tabs	O	B-User_Interface_Element
.	O	O

I	O	O
have	O	O
created	O	O
an	O	O
image	O	B-User_Interface_Element
editor	O	O
on	O	O
Qt	O	B-Library
but	O	O
I	O	O
have	O	O
an	O	O
issue	O	O
displaying	O	O
the	O	O
image	O	B-User_Interface_Element
on	O	O
the	O	O
graphicsView	B-Code_Block	B-Class
.	O	O

When	O	O
I	O	O
open	O	O
the	O	O
image	O	B-User_Interface_Element
,	O	O
I	O	O
call	O	O
fitInView	B-Code_Block	B-Function
so	O	O
that	O	O
it	O	O
fits	O	O
nicely	O	O
to	O	O
the	O	O
graphicsView	B-Code_Block	B-Class
and	O	O
here	O	O
lies	O	O
the	O	O
problem	O	O
:	O	O
when	O	O
I	O	O
maximize	O	O
the	O	O
window	O	B-User_Interface_Element
the	O	O
graphics	O	O
view	O	O
size	O	O
changes	O	O
since	O	O
I	O	O
have	O	O
set	O	O
a	O	O
horizontal	O	O
layout	O	O
,	O	O
but	O	O
the	O	O
image	O	B-User_Interface_Element
does	O	O
n't	O	O
change	O	O
size	O	O
.	O	O

Here	O	O
some	O	O
images	O	B-User_Interface_Element
about	O	O
what	O	O
I	O	O
'm	O	O
talking	O	O
about	O	O
:	O	O

If	O	O
I	O	O
open	O	O
the	O	O
file	O	O
when	O	O
the	O	O
window	O	B-User_Interface_Element
is	O	O
already	O	O
maximized	O	O
,	O	O
it	O	O
's	O	O
all	O	O
good	O	O
.	O	O

How	O	O
can	O	O
I	O	O
call	O	O
fitInView	B-Code_Block	B-Function
when	O	O
the	O	O
window	O	B-User_Interface_Element
get	O	O
maximized	O	O
?	O	O

Quite	O	O
easy	O	O
,	O	O
just	O	O
override	O	O
the	O	O
resizeEvent	O	B-Class
.	O	O

This	O	O
working	O	O
code	O	O
relies	O	O
on	O	O
QGraphicsView	O	B-Class
and	O	O
QGraphicsScene	O	B-Class
,	O	O
zoom	O	O
works	O	O
as	O	O
well	O	O
;)	O	O

I	O	O
want	O	O
to	O	O
share	O	O
images	O	B-User_Interface_Element
to	O	O
Instagram	O	B-Application
from	O	O
my	O	O
own	O	O
iOS	O	B-Operating_System
app	O	O
and	O	O
I	O	O
am	O	O
using	O	O
Kingfisher	O	B-Library
throughout	O	O
the	O	O
project	O	O
to	O	O
download	O	O
and	O	O
cache	O	O
images	O	B-User_Interface_Element
and	O	O
show	O	O
them	O	O
in	O	O
UIImageViews	O	B-Class
but	O	O
this	O	O
time	O	O
I	O	O
want	O	O
to	O	O
do	O	O
something	O	O
a	O	O
little	O	O
bit	O	O
different	O	O
.	O	O

Basically	O	O
,	O	O
I	O	O
am	O	O
getting	O	O
a	O	O
response	O	O
from	O	O
an	O	O
API	O	O
with	O	O
the	O	O
url	O	O
of	O	O
an	O	O
image	O	B-User_Interface_Element
and	O	O
I	O	O
want	O	O
to	O	O

Download	O	O
the	O	O
image	O	B-User_Interface_Element
to	O	O
the	O	O
library	O	O
using	O	O
the	O	O
URL	O	O

There	O	O
is	O	O
a	O	O
bunch	O	O
of	O	O
questions	O	O
on	O	O
this	O	O
for	O	O
objective-C	O	B-Language
using	O	O

but	O	O
I	O	O
am	O	O
using	O	O
Swift	O	B-Language
.	O	O

Rename	O	O
it	O	O
with	O	O
.igo	O	B-File_Type
extension	O	O
(	O	O
instagram	O	B-Application
exclusive	O	O
)	O	O

Not	O	O
sure	O	O
how	O	O
to	O	O
go	O	O
about	O	O
this	O	O
,	O	O
would	O	O
depend	O	O
on	O	O
number	O	O
1	O	O
.	O	O

Then	O	O
I	O	O
could	O	O
share	O	O
it	O	O
doing	O	O
something	O	O
like	O	O

or	O	O
I	O	O
could	O	O
do	O	O
it	O	O
using	O	O
the	O	O
instagram	O	B-Application
hooks	O	O
:	O	O

Documentation	O	O
on	O	O
this	O	O
is	O	O
scarce	O	O
specially	O	O
for	O	O
Swift	O	B-Language
.	O	O

How	O	O
can	O	O
I	O	O
go	O	O
about	O	O
this	O	O
?	O	O

a	O	O
push	O	O
in	O	O
the	O	O
right	O	O
direction	O	O
is	O	O
all	O	O
I	O	O
need	O	O
.	O	O

In	O	O
my	O	O
navigation	O	B-User_Interface_Element
controller	O	I-User_Interface_Element
,	O	O
I	O	O
have	O	O
a	O	O
UIBarButtonItem	O	B-Class
set	O	O
to	O	O
System	O	O
item	O	O
"	O	B-Value
Action	O	I-Value
"	O	I-Value
.	O	O

I	O	O
then	O	O
created	O	O
the	O	O
following	O	O
IBAction	O	B-Class
code	O	O
:	O	O

The	O	O
excludedActivityTypes	O	B-Function
list	O	B-Data_Structure
is	O	O
a	O	O
complete/exhaustive	O	O
list	O	B-Data_Structure
of	O	O
available	O	O
UIActivityTypes	O	B-Class
gleaned	O	O
from	O	O
code-complete	O	O
or	O	O
command-clicking	O	O
on	O	O
UIActivity	O	B-Class
type	O	O
and	O	O
going	O	O
through	O	O
the	O	O
resulting	O	O
struct	O	B-Data_Structure
.	O	O

I	O	O
uncomment	O	O
those	O	O
I	O	O
wish	O	O
to	O	O
exclude	O	O
-	O	O
but	O	O
leave	O	O
them	O	O
in	O	O
for	O	O
quick	O	O
reference	O	O
in	O	O
the	O	O
future	O	O
.	O	O

This	O	O
will	O	O
give	O	O
you	O	O
the	O	O
popup	O	B-User_Interface_Element
you	O	O
want	O	O
.	O	O

It	O	O
sounds	O	O
like	O	O
you	O	O
already	O	O
know	O	O
how	O	O
to	O	O
use	O	O
Kingfisher	O	B-Library
and	O	O
retrieving	O	O
the	O	O
UIImage	O	B-Class
from	O	O
the	O	O
URL	O	O
.	O	O

So	O	O
what	O	O
i	O	O
'm	O	O
about	O	O
to	O	O
provide	O	O
is	O	O
information	O	O
for	O	O
saving	O	O
the	O	O
image	O	B-User_Interface_Element
to	O	O
the	O	O
documents	O	O
directory	O	O
and	O	O
retrieving	O	O
it	O	O
to	O	O
share	O	O
.	O	O

Retrieve	O	O
the	O	O
correct	O	O
directory	O	O
URL	O	O

Saving	O	O
an	O	O
image	O	B-User_Interface_Element
to	O	O
that	O	O
directory	O	O

Retrieving	O	O
an	O	O
image	O	B-User_Interface_Element
from	O	O
the	O	O
directory	O	O

Sharing	O	O
an	O	O
image	O	B-User_Interface_Element

How	O	O
to	O	O
Use	O	O

And	O	O
as	O	O
DFD	O	B-User_Name
pointed	O	O
out	O	O
,	O	O
you	O	O
can	O	O
exclude	O	O
certain	O	O
items	O	O
from	O	O
the	O	O
share	O	O
VC	O	O
to	O	O
only	O	O
allow	O	O
what	O	O
you	O	O
need	O	O
.	O	O

In	O	O
our	O	O
application	O	O
we	O	O
have	O	O
a	O	O
few	O	O
GDI+	O	B-Library
objects	O	O
that	O	O
are	O	O
used	O	O
often	O	O
in	O	O
many	O	O
different	O	O
contexts	O	O
.	O	O

This	O	O
includes	O	O
some	O	O
instances	O	O
of	O	O
Font	B-Code_Block	B-Class
,	O	O
SolidBrush	B-Code_Block	B-Class
(	O	O
White	O	B-Value
,	O	O
Black.	O	B-Value
.	O	O
)	O	O
,	O	O
some	O	O
Pen.	B-Code_Block	B-Class
.	O	O

For	O	O
those	O	O
objects	O	O
our	O	O
strategy	O	O
so	O	O
far	O	O
has	O	O
been	O	O
to	O	O
hold	O	O
them	O	O
through	O	O
widely	O	O
visible	O	O
static	O	B-Data_Type
read-only	O	O
fields	O	O
.	O	O

This	O	O
avoids	O	O
to	O	O
create/dispose	O	O
them	O	O
millions	O	O
of	O	O
time	O	O
.	O	O

We	O	O
took	O	O
care	O	O
of	O	O
thread-safety	O	O
accesses	O	O
on	O	O
these	O	O
object	O	O
of	O	O
course	O	O
(	O	O
they	O	O
are	O	O
just	O	O
accessed	O	O
from	O	O
the	O	O
UI	O	O
thread	O	O
basically	O	O
)	O	O
.	O	O

There	O	O
are	O	O
just	O	O
a	O	O
few	O	O
of	O	O
these	O	O
GDI+	O	B-Library
objects	O	O
hold	O	O
for	O	O
the	O	O
lifetime	O	O
of	O	O
the	O	O
application	O	O
,	O	O
say	O	O
like	O	O
200	O	O
.	O	O

The	O	O
others	O	O
GDI+	O	B-Library
objects	O	O
(	O	O
the	O	O
ones	O	O
with	O	O
short-life	O	O
)	O	O
are	O	O
all	O	O
disposed	O	O
asap	O	O
.	O	O

But	O	O
we	O	O
sometime	O	O
get	O	O
unexpected	O	O
GDI+	O	B-Library
resources	O	O
outage	O	O
exception	O	B-Class
,	O	O
hopefully	O	O
rarely	O	O
enough	O	O
.	O	O

I	O	O
am	O	O
wondering	O	O
if	O	O
these	O	O
exceptions	O	B-Class
could	O	O
come	O	O
from	O	O
these	O	O
few	O	O
GDI+	O	B-Library
objects	O	O
hold	O	O
,	O	O
and	O	O
if	O	O
this	O	O
would	O	O
be	O	O
a	O	O
wiser	O	O
strategy	O	O
to	O	O
create/dispose	O	O
tons	O	O
of	O	O
short-life	O	O
GDI+	O	B-Library
objects	O	O
instead	O	O
.	O	O

Does	O	O
anybody	O	O
have	O	O
real-world	O	O
experience	O	O
and	O	O
relevant	O	O
conclusions	O	O
about	O	O
theses	O	O
two	O	O
strategies	O	O
?	O	O

Caching	O	O
System.Drawing	O	B-Class
objects	O	O
is	O	O
a	O	O
mistake	O	O
.	O	O

They	O	O
are	O	O
very	O	O
cheap	O	O
to	O	O
create	O	O
,	O	O
very	O	O
expensive	O	O
to	O	O
keep	O	O
around	O	O
.	O	O

They	O	O
are	O	O
allocated	O	O
on	O	O
a	O	O
special	O	O
heap	O	B-Data_Structure
that	O	O
all	O	O
processes	O	O
on	O	O
a	O	O
desktop	O	B-Device
need	O	O
to	O	O
share	O	O
.	O	O

The	O	O
heap	O	B-Data_Structure
size	O	O
is	O	O
limited	O	O
to	O	O
65535	O	O
objects	O	O
.	O	O

Creating	O	O
objects	O	O
like	O	O
a	O	O
brush	O	B-Class
or	O	O
a	O	O
pen	O	B-Class
takes	O	O
roughly	O	O
a	O	O
microsecond	O	O
,	O	O
miniscule	O	O
compared	O	O
to	O	O
the	O	O
cost	O	O
of	O	O
the	O	O
operation	O	O
you	O	O
perform	O	O
with	O	O
them	O	O
.	O	O

The	O	O
only	O	O
drawing	O	O
object	O	O
that	O	O
is	O	O
expensive	O	O
is	O	O
a	O	O
Font	O	B-Class
.	O	O

Creating	O	O
one	O	O
involves	O	O
a	O	O
sizable	O	O
chunk	O	O
of	O	O
overhead	O	O
taken	O	O
by	O	O
the	O	O
font	O	B-Class
mapper	O	O
.	O	O

But	O	O
that	O	O
's	O	O
already	O	O
solved	O	O
by	O	O
.NET	O	B-Library
,	O	O
it	O	O
caches	O	O
them	O	O
.	O	O

Other	O	O
than	O	O
hogging	O	O
the	O	O
heap	O	B-Data_Structure
needlessly	O	O
,	O	O
the	O	O
programming	O	O
style	O	O
is	O	O
dangerous	O	O
.	O	O

It	O	O
is	O	O
far	O	O
too	O	O
easy	O	O
to	O	O
forget	O	O
blindly	O	O
applying	O	O
the	O	O
using	O	O
statement	O	O
.	O	O

This	O	O
certainly	O	O
can	O	O
get	O	O
you	O	O
into	O	O
trouble	O	O
,	O	O
you	O	O
are	O	O
relying	O	O
on	O	O
the	O	O
finalizer	O	O
thread	O	O
to	O	O
release	O	O
them	O	O
again	O	O
.	O	O

If	O	O
a	O	O
program	O	O
involves	O	O
lots	O	O
of	O	O
heavy	O	O
painting	O	O
but	O	O
not	O	O
enough	O	O
object	O	O
allocation	O	O
to	O	O
trigger	O	O
a	O	O
GC	O	O
then	O	O
you	O	O
will	O	O
exhaust	O	O
the	O	O
quota	O	O
for	O	O
GDI	O	B-Library
objects	O	O
.	O	O

Which	O	O
is	O	O
10,000	O	O
objects	O	O
for	O	O
a	O	O
process	O	O
by	O	O
default	O	O
.	O	O

This	O	O
will	O	O
crash	O	O
your	O	O
program	O	O
.	O	O

Do	O	O
note	O	O
that	O	O
the	O	O
System.Drawing	O	B-Class
class	O	O
wrappers	O	O
are	O	O
not	O	O
nearly	O	O
big	O	O
enough	O	O
to	O	O
trigger	O	O
a	O	O
GC	O	O
by	O	O
themselves	O	O
,	O	O
10000	O	O
of	O	O
them	O	O
will	O	O
not	O	O
be	O	O
enough	O	O
to	O	O
get	O	O
the	O	O
finalizers	O	O
to	O	O
run	O	O
and	O	O
release	O	O
the	O	O
handles	O	O
again	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
very	O	O
easy	O	O
to	O	O
diagnose	O	O
,	O	O
you	O	O
can	O	O
use	O	O
Task	O	B-Application
Manager	O	I-Application
.	O	O

Use	O	O
View	O	B-Value
+	O	O
Select	O	B-Value
Columns	O	B-User_Interface_Element
and	O	O
tick	O	O
"	O	B-Value
GDI	O	I-Value
Objects	O	I-Value
"	O	I-Value
.	O	O

Might	O	O
as	O	O
well	O	O
tick	O	O
"	O	B-Value
USER	O	I-Value
Objects	O	I-Value
"	O	I-Value
,	O	O
another	O	O
one	O	O
that	O	O
's	O	O
very	O	O
easily	O	O
leaked	O	O
.	O	O

Keep	O	O
an	O	O
eye	O	O
on	O	O
the	O	O
displayed	O	O
counts	O	O
for	O	O
your	O	O
process	O	O
while	O	O
you	O	O
are	O	O
using	O	O
it	O	O
.	O	O

A	O	O
steadily	O	O
climbing	O	O
number	O	O
spells	O	O
doom	O	O
.	O	O

I	O	O
have	O	O
a	O	O
custom	O	O
experience	O	O
button	O	B-User_Interface_Element
for	O	O
the	O	O
page	O	B-Application
editor	O	I-Application
in	O	O
Sitecore	O	B-Application
which	O	O
references	O	O
a	O	O
custom	O	O
command	O	O
.	O	O

What	O	O
is	O	O
the	O	O
correct	O	O
way	O	O
to	O	O
open	O	O
a	O	O
SPEAK	O	B-Library
dialog	O	B-User_Interface_Element
from	O	O
this	O	O
context	O	O
and	O	O
how	O	O
should	O	O
the	O	O
width/height	O	B-Variable
of	O	O
the	O	O
dialog	O	B-User_Interface_Element
be	O	O
set	O	O
?	O	O

I	O	O
have	O	O
the	O	O
following	O	O
command	O	O
code	O	O
:	O	O

and	O	O
I	O	O
am	O	O
finding	O	O
that	O	O
the	O	O
size	O	O
of	O	O
the	O	O
dialog	O	B-User_Interface_Element
bears	O	O
no	O	O
resemblance	O	O
to	O	O
the	O	O
width	B-Code_Block	B-Variable
and	O	O
height	B-Code_Block	B-Variable
parameters	O	O
passed	O	O
to	O	O
SheerResponse.ShowModalDialog	B-Code_Block	B-Function
.	O	O

I	O	O
have	O	O
also	O	O
tried	O	O
passing	O	O
in	O	O
values	O	O
suffixed	O	O
with	O	O
"	O	O
px	O	O
"	O	O
but	O	O
this	O	O
does	O	O
not	O	O
help	O	O
.	O	O

There	O	O
is	O	O
no	O	O
out	O	O
of	O	O
the	O	O
box	O	O
ability	O	O
to	O	O
set	O	O
the	O	O
width	O	B-Variable
and	O	O
height	O	B-Variable
for	O	O
SPEAK-based	O	B-Library
dialogs	O	B-User_Interface_Element
in	O	O
Sitecore	O	B-Application
7.5	O	B-Version
(	O	O
it	O	O
's	O	O
available	O	O
in	O	O
8.0	O	B-Version
)	O	O

However	O	O
,	O	O
you	O	O
could	O	O
customize	O	O
the	O	O
\sitecore\shell\Controls\jQueryModalDialogs.html	O	B-File_Name
file	O	O
.	O	O

Just	O	O
find	O	O
and	O	O
update	O	O
the	O	O
following	O	O
if	B-Code_Block	B-Code_Block
statement	O	O
:	O	O

In	O	O
Sitecore	O	B-Application
8.0	O	B-Version
a	O	O
new	O	O
method	O	O
has	O	O
been	O	O
added	O	O
:	O	O

Your	O	O
SheerResponse.ShowModalDialog	B-Code_Block	B-Code_Block
(	B-Code_Block	B-Code_Block
url	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
100	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
200	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
string.Empty	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
;	B-Code_Block	B-Code_Block
will	O	O
be	O	O

Description	O	O
of	O	O
ForceDialogSize	B-Code_Block	B-Variable
property	O	O
:	O	O

When	O	O
designing	O	O
my	O	O
software	O	O
,	O	O
I	O	O
began	O	O
with	O	O
interfaces	O	O
since	O	O
this	O	O
seems	O	O
to	O	O
be	O	O
the	O	O
"	O	O
standard	O	O
"	O	O
.	O	O

Then	O	O
I	O	O
switched	O	O
to	O	O
abstract	O	O
classes	O	O
because	O	O
they	O	O
seem	O	O
better	O	O
suited	O	O
to	O	O
the	O	O
problem	O	O
at	O	O
hand	O	O
.	O	O

However	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
if	O	O
I	O	O
've	O	O
missed	O	O
out	O	O
on	O	O
some	O	O
considerations	O	O
when	O	O
making	O	O
this	O	O
design	O	O
choice	O	O
.	O	O

Other	O	O
than	O	O
domain	O	O
specific	O	O
issues	O	O
which	O	O
I	O	O
have	O	O
thought	O	O
about	O	O
what	O	O
are	O	O
the	O	O
more	O	O
general	O	O
factors	O	O
to	O	O
consider	O	O
when	O	O
choosing	O	O
between	O	O
interfaces	O	O
and	O	O
abstracts	O	O
classes	O	O
?	O	O

If	O	O
your	O	O
interface	O	O
also	O	O
has	O	O
reasonable	O	O
default	O	O
behavior	O	O
for	O	O
at	O	O
least	O	O
some	O	O
of	O	O
the	O	O
functionality	O	O
,	O	O
you	O	O
may	O	O
want	O	O
to	O	O
use	O	O
an	O	O
abstract	O	O
class	O	O
to	O	O
avoid	O	O
common	O	O
boilerplate	O	O
code	O	O
in	O	O
all	O	O
of	O	O
the	O	O
concrete	O	O
implementations	O	O
.	O	O

Otherwise	O	O
,	O	O
use	O	O
an	O	O
interface	O	O
.	O	O

I	O	O
find	O	O
the	O	O
best	O	O
option	O	O
most	O	O
of	O	O
the	O	O
time	O	O
is	O	O
to	O	O
do	O	O
both	O	O
.	O	O

That	O	O
is	O	O
not	O	O
always	O	O
possible	O	O
when	O	O
you	O	O
are	O	O
relying	O	O
on	O	O
something	O	O
happening	O	O
in	O	O
the	O	O
base	O	O
class	O	O
.	O	O

Providing	O	O
both	O	O
an	O	O
abstract	O	O
base	O	O
class	O	O
and	O	O
an	O	O
interface	O	O
allows	O	O
the	O	O
greatest	O	O
latitude	O	O
by	O	O
implementers	O	O
of	O	O
your	O	O
abstraction	O	O
,	O	O
again	O	O
,	O	O
as	O	O
long	O	O
as	O	O
you	O	O
do	O	O
n't	O	O
require	O	O
something	O	O
happens	O	O
by	O	O
an	O	O
implementer	O	O
of	O	O
the	O	O
interface	O	O
.	O	O

If	O	O
you	O	O
require	O	O
that	O	O
something	O	O
happens	O	O
,	O	O
then	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
provide	O	O
an	O	O
interface	O	O
at	O	O
all--and	O	O
you	O	O
would	O	O
also	O	O
need	O	O
to	O	O
make	O	O
sure	O	O
that	O	O
your	O	O
base	O	O
class	O	O
ensures	O	O
this	O	O
required	O	O
action	O	O
to	O	O
ALWAYS	O	O
occur	O	O
..	O	O
.	O	O

Negative	O	O
to	O	O
doing	O	O
both	O	O
:	O	O
more	O	O
goo	O	O
.	O	O

example	O	O
pseudocode	O	O
:	O	O

Note	O	O
that	O	O
in	O	O
this	O	O
example	O	O
,	O	O
someone	O	O
could	O	O
make	O	O
their	O	O
own	O	O
class	O	O
that	O	O
implements	O	O
IVehicle	B-Code_Block	B-Class
and	O	O
then	O	O
pass	O	O
it	O	O
to	O	O
anything	O	O
that	O	O
takes	O	O
an	O	O
IVehicle	B-Code_Block	B-Class
.	O	O

That	O	O
object	O	O
would	O	O
NOT	O	O
need	O	O
to	O	O
be	O	O
a	O	O
child	O	O
of	O	O
the	O	O
Vehicle	B-Code_Block	B-Class
abstract	O	O
class	O	O
.	O	O

If	O	O
,	O	O
therefore	O	O
,	O	O
you	O	O
were	O	O
to	O	O
expect	O	O
something	O	O
specific	O	O
to	O	O
happen	O	O
in	O	O
the	O	O
PutCarInGear()	B-Code_Block	B-Variable
method	O	O
,	O	O
it	O	O
's	O	O
quite	O	O
likely	O	O
that	O	O
that	O	O
new	O	O
class	O	O
would	O	O
NOT	O	O
fulfill	O	O
that	O	O
expectation	O	O
.	O	O

However	O	O
,	O	O
as	O	O
long	O	O
as	O	O
it	O	O
never	O	O
matters	O	O
what	O	O
implementations	O	O
of	O	O
IVehicle	B-Code_Block	B-Class
do	O	O
,	O	O
then	O	O
it	O	O
's	O	O
the	O	O
most	O	O
flexible	O	O
abstraction	O	O
to	O	O
have	O	O
both	O	O
an	O	O
abstract	O	O
base	O	O
class	O	O
AND	O	O
an	O	O
interface	O	O
.	O	O

I	O	O
trying	O	O
to	O	O
convert	O	O
encryption	O	O
code	O	O
using	O	O
CryptoJS	O	B-Library
aes256	O	I-Library
from	O	O
.net	O	B-Library
to	O	O
javascript	O	B-Language
(	O	O
Cordova	O	B-Library
)	O	O
but	O	O
i	O	O
do	O	O
n't	O	O
have	O	O
the	O	O
right	O	O
result	O	O
.	O	O

//.Net	O	B-Library
Code	O	O

//	O	O
Cordova	O	B-Library
Code	O	O
:	O	O

I	O	O
can	O	O
successfully	O	O
encode	O	O
the	O	O
resulting	O	O
Base64	O	B-Data_Type
string	O	I-Data_Type
and	O	O
decode	O	O
the	O	O
message	O	O
.	O	O

What	O	O
I	O	O
also	O	O
need	O	O
,	O	O
is	O	O
the	O	O
same	O	O
encoding	O	O
method	O	O
written	O	O
in	O	O
Javascript(Cordova)	O	B-Language
.	O	O

Here	O	O
is	O	O
what	O	O
I	O	O
have	O	O
so	O	O
far	O	O

However	O	O
the	O	O
resulting	O	O
Base64	O	B-Data_Type
string	O	I-Data_Type
does	O	O
not	O	O
match	O	O
the	O	O
one	O	O
generated	O	O
by	O	O
.Net	O	B-Library
.	O	O

Any	O	O
ideas	O	O
?	O	O

I	O	O
have	O	O
my	O	O
data.frame	O	B-Function
sample	O	O
:	O	O

I	O	O
want	O	O
to	O	O
stay	O	O
only	O	O
pairs	O	O
logged_in	B-Code_Block	B-Variable
and	O	O
deauthorize	B-Code_Block	B-Variable
(	O	O
I	O	O
need	O	O
it	O	O
for	O	O
calculation	O	O
time	O	O
between	O	O
logs	O	O
logged_in	B-Code_Block	B-Variable
and	O	O
deauthorize	B-Code_Block	B-Variable
,	O	O
but	O	O
some	O	O
logs	O	O
was	O	O
lost	O	O
)	O	O
.	O	O

So	O	O
I	O	O
want	O	O
my	O	O
table	O	B-Data_Structure
after	O	O
sort	O	O
looks	O	O
like	O	O
:	O	O

This	O	O
is	O	O
a	O	O
base	B-Code_Block	B-Application
R	I-Code_Block	I-Application
solution	O	O
using	O	O
R	O	B-Language
's	O	O
factor	O	O
coercion	O	O
.	O	O

We	O	O
locate	O	O
the	O	O
instances	O	O
of	O	O
"	B-Code_Block	B-Variable
deauthorize	I-Code_Block	I-Variable
"	I-Code_Block	I-Variable
by	O	O
using	O	O
factors	O	O
to	O	O
our	O	O
advantage	O	O
.	O	O

Usually	O	O
they	O	O
are	O	O
a	O	O
pain	O	O
but	O	O
in	O	O
this	O	O
case	O	O
being	O	O
able	O	O
to	O	O
quickly	O	O
turn	O	O
the	O	O
EventName	B-Code_Block	B-Variable
column	O	B-Data_Structure
into	O	O
a	O	O
series	O	O
of	O	O
1	O	B-Value
's	O	O
and	O	O
2	O	B-Value
's	O	O
helps	O	O
quicken	O	O
the	O	O
search	O	O
.	O	O

Check	O	O
as.numeric(df$EventName)	B-Code_Block	B-Function
for	O	O
reference	O	O
.	O	O

With	O	O
this	O	O
index	O	O
we	O	O
then	O	O
need	O	O
to	O	O
find	O	O
cases	O	O
of	O	O
a	O	O
1	O	B-Value
followed	O	O
by	O	O
a	O	O
2	O	B-Value
.	O	O

An	O	O
efficient	O	O
way	O	O
to	O	O
do	O	O
that	O	O
is	O	O
to	O	O
find	O	O
the	O	O
difference	O	O
of	O	O
each	O	O
element	O	O
.	O	O

diff(as.numeric(df$EventName))	B-Code_Block	B-Function
does	O	O
that	O	O
for	O	O
us	O	O
.	O	O

you	O	O
can	O	O
imagine	O	O
which	O	O
value	O	O
of	O	O
that	O	O
vector	O	B-Data_Structure
will	O	O
target	O	O
the	O	O
case	O	O
we	O	O
are	O	O
looking	O	O
for	O	O
,	O	O
-1	B-Code_Block	B-Value
.	O	O

Data	O	O

Please	O	O
Help	O	O
me	O	O
.	O	O

I	O	O
'm	O	O
running	O	O
a	O	O
face	O	O
recognition	O	O
detector	O	O
python	O	B-Language
program	O	O
that	O	O
will	O	O
display	O	O
the	O	O
data	O	O
from	O	O
sqllite	O	B-Application
studio	O	I-Application
database	O	O
..	O	O
.	O	O

that	O	O
was	O	O
the	O	O
program	O	O

the	O	O
error	O	O
was	O	O

And	O	O
i	O	O
'm	O	O
using	O	O
python	O	B-Language
3.4	O	B-Version
and	O	O
opencv	O	B-Library
3.4	O	B-Version

Can	O	O
anyone	O	O
help	O	O
me	O	O
??	O	O
?	O	O

im	O	O
new	O	O
in	O	O
python	O	B-Language
.	O	O

Thank	O	O
you	O	O
so	O	O
much	O	O
...	O	O
.	O	O

Indexing	O	O
is	O	O
zero-based	O	O
in	O	O
Python	O	B-Language
.	O	O

That	O	O
means	O	O
,	O	O
counting	O	O
starts	O	O
from	O	O
0	B-Code_Block	B-Value
not	O	O
1	B-Code_Block	B-Value
.	O	O

Try	O	O
changing	O	O
lines	O	O
36	O	O
and	O	O
38	O	O
to	O	O
:	O	O

How	O	O
can	O	O
I	O	O
do	O	O
authorization	O	O
with	O	O
my	O	O
email	O	O
and	O	O
password	O	O
without	O	O
dialog	O	B-User_Interface_Element
box	O	I-User_Interface_Element
?	O	O

And	O	O
how	O	O
can	O	O
I	O	O
do	O	O
extend	O	O
access_token	O	O
.	O	O

Function	O	O
getUser	O	B-Function
in	O	O
PHP	O	B-Library
SDK	O	I-Library
always	O	O
return	O	O
0	O	B-Value
.	O	O

I	O	O
want	O	O
do	O	O
post	O	O
feed	O	O
on	O	O
the	O	O
fan	O	O
group	O	O
's	O	O
wall	O	O
with	O	O
cronjob	O	B-Application
.	O	O

I	O	O
try	O	O
like	O	O
that	O	O
:	O	O

It	O	O
's	O	O
work	O	O
,	O	O
but	O	O
within	O	O
an	O	O
hour	O	O
and	O	O
if	O	O
I	O	O
already	O	O
logged	O	O

As	O	O
someone	O	O
who	O	O
is	O	O
quite	O	O
new	O	O
to	O	O
Swift	O	B-Language
and	O	O
CoreData	O	B-Library
,	O	O
I	O	O
am	O	O
sure	O	O
I	O	O
am	O	O
going	O	O
about	O	O
this	O	O
the	O	O
wrong	O	O
way	O	O
and	O	O
am	O	O
hoping	O	O
someone	O	O
might	O	O
be	O	O
able	O	O
to	O	O
help	O	O
.	O	O

Background	O	O
:	O	O
I	O	O
am	O	O
downloading	O	O
JSON	O	B-File_Type
over	O	O
an	O	O
API	O	B-Library
,	O	O
and	O	O
caching	O	O
the	O	O
content	O	O
locally	O	O
on	O	O
an	O	O
iPad	O	B-Device
in	O	O
CoreData	O	B-Library
.	O	O

As	O	O
part	O	O
of	O	O
the	O	O
process	O	O
,	O	O
I	O	O
need	O	O
to	O	O
download	O	O
a	O	O
small	O	O
image	O	B-User_Interface_Element
thumbnail	O	I-User_Interface_Element
,	O	O
which	O	O
I	O	O
am	O	O
also	O	O
storing	O	O
in	O	O
CoreData	O	B-Library
(	O	O
as	O	O
a	O	O
Transformable	O	B-Data_Type
)	O	O
.	O	O

I	O	O
was	O	O
doing	O	O
:	O	O
My	O	O
original	O	O
implementation	O	O
downloaded	O	O
images	O	B-User_Interface_Element
and	O	O
saved	O	O
them	O	O
to	O	O
CoreData	O	B-Library
,	O	O
but	O	O
although	O	O
it	O	O
is	O	O
being	O	O
triggered	O	O
from	O	O
a	O	O
background	O	O
thread	O	O
(	O	O
a	O	O
callback	O	O
following	O	O
the	O	O
API	O	B-Library
call	O	O
)	O	O
,	O	O
the	O	O
actual	O	O
downloading	O	O
of	O	O
the	O	O
images	O	B-User_Interface_Element
seems	O	O
to	O	O
cause	O	O
the	O	O
app	O	O
to	O	O
hang	O	O
:	O	O

What	O	O
I	O	O
am	O	O
now	O	O
doing	O	O
:	O	O
I	O	O
have	O	O
since	O	O
updated	O	O
my	O	O
code	O	O
to	O	O
the	O	O
following	O	O
:	O	O

I	O	O
then	O	O
call	O	O
the	O	O
code	O	O
thus	O	O
:	O	O

Doing	O	O
this	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
get	O	O
any	O	O
blocks	O	O
on	O	O
the	O	O
main	O	O
thread	O	O
that	O	O
I	O	O
notice	O	O
.	O	O

Inspecting	O	O
the	O	O
sqlite	O	B-Application
file	O	O
from	O	O
the	O	O
device	O	O
,	O	O
it	O	O
looks	O	O
as	O	O
though	O	O
the	O	O
data	O	O
is	O	O
getting	O	O
set	O	O
properly	O	O
,	O	O
but	O	O
the	O	O
images	O	B-User_Interface_Element
are	O	O
not	O	O
showing	O	O
up	O	O
in	O	O
the	O	O
UI	O	O
.	O	O

Is	O	O
my	O	O
method	O	O
completely	O	O
wrong	O	O
?	O	O

If	O	O
not	O	O
,	O	O
how	O	O
can	O	O
I	O	O
inform	O	O
the	O	O
UI	O	O
that	O	O
the	O	O
core	O	B-Library
data	O	I-Library
model	O	O
has	O	O
been	O	O
updated	O	O
in	O	O
such	O	O
a	O	O
way	O	O
that	O	O
will	O	O
cause	O	O
a	O	O
refresh	O	O
?	O	O

What	O	O
function	O	O
can	O	O
be	O	O
called	O	O
to	O	O
update	O	O
a	O	O
specific	O	O
row/cell	O	B-User_Interface_Element
of	O	O
a	O	O
table/uicollectionview	O	B-User_Interface_Element
?	O	O

Your	O	O
NSURLConnection	O	B-Class
's	O	O
callbacks	O	O
are	O	O
happening	O	O
on	O	O
the	O	O
main	O	O
queue	O	B-Data_Structure
.	O	O

This	O	O
is	O	O
one	O	O
reason	O	O
your	O	O
application	O	O
is	O	O
locking	O	O
up	O	O
.	O	O

Your	O	O
managed	O	O
object	O	O
context	O	O
,	O	O
at	O	O
least	O	O
in	O	O
the	O	O
code	O	O
you	O	O
have	O	O
posted	O	O
,	O	O
is	O	O
not	O	O
following	O	O
the	O	O
Core	O	B-Library
Data	O	I-Library
concurrency	O	O
rules	O	O
.	O	O

You	O	O
have	O	O
a	O	O
choice	O	O
between	O	O
thread	O	O
confinement	O	O
(	O	O
unfortunately	O	O
,	O	O
the	O	O
default	O	O
,	O	O
which	O	O
is	O	O
obsolete	O	O
)	O	O
,	O	O
and	O	O
queue	O	B-Data_Structure
confinement	O	O
.	O	O

With	O	O
thread	O	O
confinement	O	O
,	O	O
you	O	O
can	O	O
only	O	O
use	O	O
a	O	O
managed	O	O
object	O	O
context	O	O
from	O	O
the	O	O
thread	O	O
where	O	O
it	O	O
was	O	O
created	O	O
.	O	O

If	O	O
you	O	O
created	O	O
your	O	O
managed	O	O
object	O	O
context	O	O
on	O	O
the	O	O
main	O	O
thread	O	O
(	O	O
or	O	O
queue	O	B-Data_Structure
)	O	O
,	O	O
you	O	O
can	O	O
only	O	O
use	O	O
it	O	O
from	O	O
there	O	O
-	O	O
so	O	O
any	O	O
Core	O	B-Library
Data	O	I-Library
operation	O	O
you	O	O
perform	O	O
on	O	O
that	O	O
context	O	O
will	O	O
block	O	O
the	O	O
main	O	O
thread	O	O
,	O	O
and	O	O
in	O	O
turn	O	O
the	O	O
UI	O	O
.	O	O

Using	O	O
queue	O	B-Data_Structure
confinement	O	O
(	O	O
almost	O	O
)	O	O
any	O	O
operation	O	O
on	O	O
the	O	O
managed	O	O
object	O	O
context	O	O
must	O	O
go	O	O
through	O	O
either	O	O
the	O	O
performBlock	B-Code_Block	B-Function
:	I-Code_Block	I-Function
or	O	O
performBlockAndWait	B-Code_Block	B-Function
:	I-Code_Block	I-Function
methods	O	O
.	O	O

The	O	O
enqueued	O	O
block	O	O
is	O	O
executed	O	O
on	O	O
the	O	O
context	O	O
's	O	O
serial	O	O
queue	O	B-Data_Structure
.	O	O

This	O	O
is	O	O
far	O	O
less	O	O
failure	O	O
prone	O	O
than	O	O
thread	O	O
confinement	O	O
and	O	O
has	O	O
been	O	O
the	O	O
recommended	O	O
practice	O	O
for	O	O
concurrency	O	O
since	O	O
iOS	O	B-Operating_System
5	O	B-Version
.	O	O

Typically	O	O
this	O	O
would	O	O
be	O	O
done	O	O
using	O	O
an	O	O
NSFetchedResultsController	B-Code_Block	B-Class
,	O	O
which	O	O
observes	O	O
a	O	O
managed	O	O
object	O	O
context	O	O
for	O	O
changes	O	O
relevant	O	O
to	O	O
it	O	O
's	O	O
fetch	O	O
request	O	O
.	O	O

Once	O	O
the	O	O
initial	O	O
fetch	O	O
populates	O	O
the	O	O
controller	O	O
it	O	O
will	O	O
listen	O	O
for	O	O
changes	O	O
to	O	O
the	O	O
context	O	O
that	O	O
affect	O	O
the	O	O
objects	O	O
specified	O	O
by	O	O
the	O	O
fetch	O	O
request	O	O
.	O	O

When	O	O
relevant	O	O
changes	O	O
occur	O	O
the	O	O
controller	O	O
informs	O	O
it	O	O
's	O	O
delegate	O	O
through	O	O
callbacks	O	O
.	O	O

I	O	O
want	O	O
to	O	O
copy	O	O
a	O	O
part	O	O
of	O	O
BufferedImage	O	B-Class
,	O	O
but	O	O
the	O	O
copying	O	O
form	O	O
is	O	O
not	O	O
a	O	O
simple	O	O
square	O	O
but	O	O
rather	O	O
a	O	O
square	O	O
rotated	O	O
on	O	O
some	O	O
angle	O	O
.	O	O

As	O	O
an	O	O
output	O	O
I	O	O
want	O	O
to	O	O
get	O	O
the	O	O
BufferedImage	O	B-Class
with	O	O
width	O	O
and	O	O
height	O	O
equals	O	O
to	O	O
the	O	O
copying	O	O
square	O	O
size	O	O
and	O	O
contents	O	O
from	O	O
the	O	O
initial	O	O
image	O	B-User_Interface_Element
,	O	O
where	O	O
copying	O	O
square	O	O
intersects	O	O
the	O	O
initial	O	O
image	O	B-User_Interface_Element
.	O	O

What	O	O
is	O	O
the	O	O
simplest	O	O
way	O	O
to	O	O
do	O	O
it	O	O
?	O	O

A	O	O
simple	O	O
approach	O	O
would	O	O
be	O	O
to	O	O
create	O	O
a	O	O
new	O	O
image	O	B-User_Interface_Element
with	O	O
the	O	O
desired	O	O
size	O	O
,	O	O
transform	O	O
a	O	O
Graphics2D	B-Code_Block	B-Class
of	O	O
this	O	O
image	O	B-User_Interface_Element
according	O	O
to	O	O
the	O	O
selected	O	O
square	O	O
region	O	O
,	O	O
and	O	O
then	O	O
simply	O	O
paint	O	O
the	O	O
original	O	O
image	O	B-User_Interface_Element
into	O	O
this	O	O
graphics	O	B-User_Interface_Element
:	O	O

Control	O	O
'	O	O
GridView1	O	B-Class
'	O	O
of	O	O
type	O	O
'	O	O
GridView	O	B-Class
'	O	O
must	O	O
be	O	O
placed	O	O
inside	O	O
a	O	O
form	O	B-HTML_XML_Tag
tag	O	O
with	O	O
runat	O	B-Code_Block
=	O	I-Code_Block
server	O	I-Code_Block
.	O	O

When	O	O
I	O	O
export	O	O
the	O	O
Gridview	O	B-Class
to	O	O
Excel	O	B-Application
,	O	O
I	O	O
get	O	O
an	O	O
error	O	O
like	O	O
this	O	O
.	O	O

Can	O	O
you	O	O
help	O	O
me	O	O
?	O	O

My	O	O
code	O	O
example	O	O
is	O	O
as	O	O
follows	O	O
.	O	O

I	O	O
think	O	O
,	O	O
you	O	O
can	O	O
use	O	O
below	O	O
the	O	O
example	O	O
.	O	O

.aspx	O	B-File_Type
file	O	O
contens	O	O

.aspx.vb	O	B-File_Type
file	O	O
contents	O	O

There	O	O
are	O	O
two	O	O
views	O	B-Variable
in	O	O
my	O	O
application	O	O
.	O	O

After	O	O
launching	O	O
the	O	O
app	O	O
I	O	O
switch	O	O
the	O	O
view	O	B-Variable
with	O	O
button	O	B-User_Interface_Element
like	O	O
this	O	O
:	O	O

But	O	O
whenever	O	O
i	O	O
switch	O	O
the	O	O
view	O	B-Variable
the	O	O
code	O	O
above	O	O
initialize	O	O
the	O	O
view	O	B-Variable
.	O	O

I	O	O
want	O	O
to	O	O
maintain	O	O
previous	O	O
status	O	O
of	O	O
the	O	O
view	O	B-Variable
.	O	O

How	O	O
can	O	O
I	O	O
solve	O	O
this	O	O
problem	O	O
?	O	O

On	O	O
an	O	O
iPad	O	B-Device
this	O	O
will	O	O
present	O	O
the	O	O
second	O	O
view	O	B-Variable
modally	O	O
,	O	O
as	O	O
dictated	O	O
by	O	O
the	O	O
views	O	O
modalTransitionStyle	O	B-Variable
.	O	O

So	O	O
there	O	O
you	O	O
could	O	O
get	O	O
back	O	O
to	O	O
the	O	O
original	O	O
by	O	O
calling	O	O
dismissViewControllerAnimated:completion	B-Code_Block	B-Function
:	I-Code_Block	O
on	O	O
the	O	O
new	O	O
ViewController	O	B-Library
.	O	O

On	O	O
the	O	O
iPhone	O	B-Device
you	O	O
can	O	O
use	O	O
a	O	O
UINavigationController	O	B-Class
in	O	O
your	O	O
storyboard	O	B-Application
to	O	O
push	O	O
and	O	O
then	O	O
pop	O	O
the	O	O
secondViewController	O	B-Variable
.	O	O

As	O	O
long	O	O
as	O	O
you	O	O
are	O	O
using	O	O
the	O	O
storyboard	O	O
,	O	O
you	O	O
can	O	O
set	O	O
up	O	O
the	O	O
transition	O	O
there	O	O
and	O	O
the	O	O
perform	O	O
it	O	O
using	O	O
-	O	O
performSegueWithIdentifier:sender	B-Code_Block	B-Function
:	I-Code_Block	I-Function
from	O	O
your	O	O
button	O	B-User_Interface_Element
.	O	O

Or	O	O
for	O	O
that	O	O
matter	O	O
you	O	O
can	O	O
connect	O	O
the	O	O
segue	O	B-Class
directly	O	O
to	O	O
your	O	O
button	O	B-User_Interface_Element
in	O	O
which	O	O
case	O	O
the	O	O
transition	O	O
will	O	O
be	O	O
performed	O	O
without	O	O
additional	O	O
code	O	O
.	O	O

instantiateViewControllerWithIdentifier	B-Code_Block	B-Function
:	I-Code_Block	I-Function
always	O	O
returns	O	O
a	O	O
new	O	O
instance	O	O
of	O	O
an	O	O
UIViewController	B-Code_Block	B-Class
.	O	O

You	O	O
need	O	O
to	O	O
keep	O	O
a	O	O
reference	O	O
to	O	O
a	O	O
previous	O	O
one	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
create	O	O
it	O	O
over	O	O
and	O	O
over	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
make	O	O
Avplayer	O	B-Class
resume	O	O
from	O	O
where	O	O
it	O	O
stopped	O	O
,	O	O
by	O	O
make	O	O
global	O	B-Data_Type
value	O	O
of	O	O
type	O	O
CMtime	O	B-Class
and	O	O
store	O	O
currenttime	O	B-Function
then	O	O
use	O	O
it	O	O
to	O	O
resume	O	O
from	O	O
where	O	O
it	O	O
stopped	O	O

My	O	O
code	O	O
:	O	O

When	O	O
I	O	O
try	O	O
to	O	O
use	O	O
seek(to:)	O	B-Function

nothing	O	O
changed	O	O
it	O	O
also	O	O
start	O	O
from	O	O
beginning	O	O
!	O	O

I	O	O
try	O	O
to	O	O
change	O	O
currenttime	O	B-Variable
by	O	O
using	O	O

I	O	O
did	O	O
n't	O	O
know	O	O
why	O	O
it	O	O
always	O	O
start	O	O
from	O	O
beginning	O	O

I	O	O
was	O	O
using	O	O
AVAudioPlayer	O	B-Class
and	O	O
it	O	O
was	O	O
much	O	O
easier	O	O
than	O	O
AVplayer	O	B-Class

but	O	O
because	O	O
I	O	O
need	O	O
to	O	O
stream	O	O
Audio	O	O
I	O	O
change	O	O
it	O	O
to	O	O
AVplayer	O	B-Class

I	O	O
found	O	O
a	O	O
solution	O	O
,	O	O

I	O	O
got	O	O
seconds	O	B-Variable
from	O	O
CMtime	O	B-Class
using	O	O
this	O	O
code	O	O
,	O	O
and	O	O
add	O	O
it	O	O
on	O	O
Unwind	O	B-Function
segue	O	I-Function
function	O	O

2.in	O	O
viewdidload	O	B-Function
I	O	O
use	O	O
this	O	O
code	O	O

it	O	O
's	O	O
a	O	O
solution	O	O
but	O	O
not	O	O
a	O	O
perfect	O	O
solution	O	O
,	O	O
everytime	O	O
it	O	O
re-download	O	O
a	O	O
audio	O	O
file	O	O
to	O	O
resume	O	O
it	O	O
,	O	O
that	O	O
mean	O	O
If	O	O
I	O	O
play	O	O
a	O	O
file	O	O
and	O	O
then	O	O
I	O	O
return	O	O
to	O	O
tableview	O	O
then	O	O
return	O	O
back	O	O
,	O	O
it	O	O
will	O	O
purse	O	O
and	O	O
wait	O	O
some	O	O
second	O	O
then	O	O
play	O	O
it	O	O
from	O	O
where	O	O
it	O	O
stopped	O	O
.	O	O

I	O	O
have	O	O
a	O	O
table	O	B-User_Interface_Element
cell	O	I-User_Interface_Element
in	O	O
my	O	O
xml	O	B-HTML_XML_Tag
file	O	O
,	O	O
which	O	O
has	O	O
two	O	O
TextViews	O	B-Class
.	O	O

Now	O	O
,	O	O
i	O	O
want	O	O
to	O	O
create	O	O
copies	O	O
of	O	O
that	O	O
cell	O	B-User_Interface_Element
and	O	O
assign	O	O
values	O	O
into	O	O
through	O	O
the	O	O
java	O	B-Language
code	O	O
.	O	O

All	O	O
other	O	O
cells	O	B-User_Interface_Element
should	O	O
have	O	O
the	O	O
same	O	O
property	O	O
as	O	O
that	O	O
one	O	O
.	O	O

(	O	O
cell	O	B-User_Interface_Element
background	O	O
color	O	O
,	O	O
font	O	O
type	O	O
,	O	O
font	O	O
size	O	O
etc	O	O
)	O	O
.	O	O

That	O	O
cell	O	B-User_Interface_Element
will	O	O
span	O	O
the	O	O
entire	O	O
first	O	O
row	O	B-User_Interface_Element
,	O	O
and	O	O
then	O	O
the	O	O
resulting	O	O
row	O	B-User_Interface_Element
will	O	O
be	O	O
used	O	O
to	O	O
create	O	O
multiple	O	O
rows	O	B-User_Interface_Element
after	O	O
that	O	O
.	O	O

Can	O	O
anyone	O	O
help	O	O
me	O	O
achieve	O	O
the	O	O
above	O	O
.	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
android	O	B-Operating_System
programming	O	O
.	O	O

This	O	O
is	O	O
my	O	O
part	O	O
of	O	O
my	O	O
xml	O	B-File_Type
file	O	O
.	O	O

When	O	O
I	O	O
run	O	O
.gradlew	O	B-Code_Block
createCoverageReport	O	I-Code_Block
I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O

But	O	O
when	O	O
I	O	O
access	O	O
that	O	O
index.html	O	B-File_Name
it	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
its	O	O
crashing.	O	O
.	O	O
the	O	O
build	O	O
gets	O	O
to	O	O
about	O	O
98%	O	O
before	O	O
this	O	O
fail	O	O
.	O	O

I	O	O
have	O	O
a	O	O
nexus	O	B-Device
5	O	B-Version
connected	O	O
running	O	O
4.4.	O	B-Version
.	O	O

my	O	O
build.gradle	O	B-File_Name
looks	O	O
like	O	O
this	O	O
:	O	O

The	O	O
apply	O	O
plug-in	O	O
part	O	O
causes	O	O
the	O	O
tests	O	O
to	O	O
not	O	O
run	O	O
.	O	O

Like	O	O
Bill	O	B-User_Name
suggested	O	O
gradle	O	B-Application
's	O	O
latest	O	O
release	O	O
has	O	O
jacoco	O	B-Library
packaged	O	O
within	O	O
so	O	O
it	O	O
need	O	O
n't	O	O
be	O	O
applied	O	O
anymore	O	O
.	O	O

My	O	O
tests	O	O
recently	O	O
broke	O	O
because	O	O
of	O	O
this	O	O
.	O	O

Removing	O	O
that	O	O
line	O	O
fixed	O	O
my	O	O
issue	O	O
and	O	O
I	O	O
get	O	O
my	O	O
reports	O	O
again	O	O
.	O	O

Couple	O	O
things	O	O
.	O	O

To	O	O
fix	O	O
your	O	O
first	O	O
error	O	O
"	O	O
Instrumentation	O	O
run	O	O
failed	O	O
due	O	O
to	O	O
'	O	O
java.lang.VerifyError	O	B-Error_Name
'	O	O
"	O	O
,	O	O
upgrade	O	O
your	O	O
build	O	B-Application
tools	O	I-Application
to	O	O
21+	O	B-Version
.	O	O

This	O	O
is	O	O
a	O	O
bug	O	O
in	O	O
the	O	O
android	O	B-Application
build	O	I-Application
tools	O	I-Application
that	O	O
they	O	O
have	O	O
fixed	O	O
.	O	O

Hooray	O	O
!	O	O

You	O	O
do	O	O
n't	O	O
have	O	O
to	O	O
apply	O	O
the	O	O
jacoco	O	B-Library
plugin	O	O
,	O	O
it	O	O
is	O	O
part	O	O
of	O	O
the	O	O
android	O	B-Application
gradle	O	I-Application
plugin	O	O
.	O	O

All	O	O
you	O	O
need	O	O
is	O	O
'	O	O
testCoverageEnabled	O	B-Code_Block
true	O	I-Code_Block
'	O	O
and	O	O
it	O	O
will	O	O
create	O	O
your	O	O
.ec	O	B-File_Type
file	O	O
.	O	O

Applying	O	O
the	O	O
plugin	O	O
does	O	O
n't	O	O
hurt	O	O
as	O	O
far	O	O
as	O	O
I	O	O
know	O	O
,	O	O
but	O	O
it	O	O
's	O	O
helpful	O	O
to	O	O
get	O	O
your	O	O
mind	O	O
around	O	O
the	O	O
fact	O	O
that	O	O
jacoco	O	B-Library
is	O	O
in	O	O
there	O	O
already	O	O
.	O	O

The	O	O
override	O	O
for	O	O
'	O	O
reportsDir	O	B-Variable
'	O	O
might	O	O
not	O	O
work	O	O
,	O	O
so	O	O
you	O	O
should	O	O
also	O	O
look	O	O
for	O	O
your	O	O
report	O	O
in	O	O
'	O	O
build/outputs/reports/coverage/debug/index.html	O	O
'	O	O
.	O	O

how	O	O
to	O	O
map	O	O
closest	O	O
craigslist	O	B-Website
site	O	O
for	O	O
a	O	O
given	O	O
address(zip)	O	O
?	O	O

or	O	O
I	O	O
was	O	O
thinking	O	O
of	O	O
making	O	O
that	O	O
mapping	O	O
myself	O	O
by	O	O
looking	O	O
at	O	O
the	O	O
list	O	O
of	O	O
craigslist	O	B-Website
sites	O	O
city-wise/state	O	O
-wise	O	O
.	O	O

Indeed	O	O
,	O	O
I	O	O
believe	O	O
the	O	O
best	O	O
solution	O	O
is	O	O
to	O	O
get	O	O
a	O	O
list	O	O
of	O	O
Craigslist	O	B-Website
sites/cities	O	O
,	O	O
prebuild	O	O
a	O	O
mapping	O	O
of	O	O
cities	O	O
to	O	O
coordinates	O	O
using	O	O
some	O	O
geocoding	O	B-Library
API	O	O
(	O	O
Tiny	O	B-Library
Geocoder	O	I-Library
comes	O	O
to	O	O
mind	O	O
but	O	O
Yahoo	O	B-Website
and	O	O
Bing	O	B-Website
offer	O	O
good	O	O
solutions	O	O
too	O	O
)	O	O
,	O	O
and	O	O
then	O	O
storing	O	O
it	O	O
in	O	O
a	O	O
way	O	O
that	O	O
makes	O	O
sort-by-nearest	O	O
easy	O	O
(	O	O
say	O	O
,	O	O
MySQL	O	B-Application
's	O	O
geospatial	O	O
extensions	O	O
or	O	O
MongoDB's	O	B-Application
)	O	O
.	O	O

I	O	O
came	O	O
across	O	O
a	O	O
bug	O	O
in	O	O
code	O	O
that	O	O
is	O	O
only	O	O
reproduced	O	O
when	O	O
the	O	O
code	O	O
is	O	O
built	O	O
with	O	O
optimizations	O	O
enabled	O	O
.	O	O

I	O	O
've	O	O
made	O	O
a	O	O
console	O	B-Application
app	O	O
that	O	O
replicates	O	O
the	O	O
logic	O	O
for	O	O
testing	O	O
(	O	O
code	O	O
below	O	O
)	O	O
.	O	O

You	O	O
'll	O	O
see	O	O
that	O	O
when	O	O
optimization	O	O
is	O	O
enabled	O	O
'	O	O
value	O	B-Variable
'	O	O
becomes	O	O
null	O	B-Value
after	O	O
execution	O	O
of	O	O
this	O	O
invalid	O	O
logic	O	O
:	O	O

The	O	O
fix	O	O
is	O	O
straight	O	O
forward	O	O
and	O	O
is	O	O
commented	O	O
out	O	O
below	O	O
the	O	O
offending	O	O
code	O	O
.	O	O

But	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
more	O	O
concerned	O	O
that	O	O
I	O	O
may	O	O
have	O	O
come	O	O
across	O	O
a	O	O
bug	O	O
in	O	O
the	O	O
assembler	O	B-Application
or	O	O
perhaps	O	O
someone	O	O
else	O	O
has	O	O
an	O	O
explanation	O	O
of	O	O
why	O	O
value	O	B-Variable
gets	O	O
set	O	O
to	O	O
null	O	B-Value
.	O	O

The	O	O
normal	O	O
output	O	O
should	O	O
be	O	O
:	O	O

The	O	O
buggy	O	O
output	O	O
is	O	O
:	O	O

My	O	O
Env	O	O
is	O	O
a	O	O
VM	O	B-Application
running	O	O
Windows	O	B-Operating_System
Server	O	I-Operating_System
2003	O	B-Version
R2	O	I-Version
with	O	O
.NET	O	B-Library
3.5	O	B-Version
SP1	O	I-Version
.	O	O

Using	O	O
VS2008	O	B-Application
Team	O	O
System	O	O
.	O	O

Thanks	O	O
,	O	O

Brian	O	B-User_Name

Yes	O	O
,	O	O
your	O	O
expression	O	O
fatally	O	O
confuses	O	O
the	O	O
JIT	O	O
optimizer	O	O
.	O	O

The	O	O
generated	O	O
machine	O	O
code	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

The	O	O
bug	O	O
occurs	O	O
at	O	O
address	O	B-Variable
41	O	B-Value
,	O	O
the	O	O
optimizer	O	O
has	O	O
concluded	O	O
that	O	O
value	O	B-Variable
will	O	O
always	O	O
be	O	O
null	O	B-Value
so	O	O
it	O	O
directly	O	O
passes	O	O
a	O	O
null	O	B-Value
to	O	O
String.Concat()	O	B-Function
.	O	O

For	O	O
comparison	O	O
,	O	O
this	O	O
is	O	O
the	O	O
code	O	O
that	O	O
's	O	O
generated	O	O
when	O	O
JIT	O	O
optimization	O	O
is	O	O
turned	O	O
off	O	O
:	O	O

The	O	O
code	O	O
got	O	O
moved	O	O
,	O	O
but	O	O
do	O	O
note	O	O
that	O	O
at	O	O
address	O	B-Variable
5c	O	B-Value
it	O	O
now	O	O
uses	O	O
the	O	O
local	O	O
variable	O	O
(	O	O
value	O	B-Variable
)	O	O
instead	O	O
of	O	O
null	O	B-Value
.	O	O

You	O	O
can	O	O
report	O	O
this	O	O
bug	O	O
at	O	O
connect.microsoft.com	O	O
.	O	O

The	O	O
workaround	O	O
is	O	O
simple	O	O
:	O	O

This	O	O
bug	O	O
seems	O	O
to	O	O
have	O	O
been	O	O
fixed	O	O
in	O	O
.NET	O	B-Library
4	O	B-Version
(	O	O
beta	O	B-Version
2)	O	I-Version
.	O	O

Here	O	O
's	O	O
the	O	O
optimized	O	O
x86	O	O
disassembly	O	O
for	O	O
the	O	O
bit	O	O
nobugz	O	O
highlighted	O	O
,	O	O
above	O	O
:	O	O

The	O	O
program	O	O
also	O	O
displays	O	O
the	O	O
expected	O	O
output	O	O
in	O	O
both	O	O
optimized	O	O
and	O	O
unoptimized	O	O
modes	O	O
.	O	O

I	O	O
am	O	O
use	O	O
to	O	O
develop	O	O
one	O	O
web	O	O
app	O	O
using	O	O
Forge	O	B-Library
API	O	I-Library
.	O	O

It	O	O
's	O	O
working	O	O
well	O	O
and	O	O
good	O	O
.	O	O

At	O	O
the	O	O
same	O	O
time	O	O
am	O	O
using	O	O
design	O	O
automation	O	O
in	O	O
forge	O	B-Application
.	O	O

I	O	O
can	O	O
able	O	O
to	O	O
create	O	O
Package	O	O
and	O	O
it	O	O
's	O	O
working	O	O
fine	O	O
.	O	O

I	O	O
will	O	O
process	O	O
the	O	O
dwg	O	B-File_Type
file	O	O
using	O	O
forge	O	B-Library
api	O	I-Library
preparing	O	O
to	O	O
viewer	O	O
.	O	O

I	O	O
can	O	O
able	O	O
to	O	O
view	O	O
dwg	O	B-File_Type
in	O	O
browser	O	B-Application
.	O	O

My	O	O
issue	O	O
is	O	O
I	O	O
have	O	O
viewer	O	O
click	O	O
event	O	O
the	O	O
event	O	O
click	O	O
populate	O	O
the	O	O
element	O	B-Variable
id	O	I-Variable
.	O	O

However	O	O
,	O	O
my	O	O
package	O	O
I	O	O
can	O	O
get	O	O
only	O	O
the	O	O
object	O	B-Variable
id	O	I-Variable
.	O	O

element	O	B-Variable
id	O	I-Variable
and	O	O
object	O	B-Variable
id	O	I-Variable
totally	O	O
different	O	O
.	O	O

What	O	O
is	O	O
the	O	O
conman	O	B-Variable
id	O	I-Variable
each	O	O
object	O	O
client	O	O
and	O	O
server	O	O
side	O	O
.	O	O

Summary	O	O
:	O	O
when	O	O
user	O	O
click	O	O
the	O	O
object	O	O
in	O	O
viewer	O	O
I	O	O
want	O	O
to	O	O
capture	O	O
id	O	O
and	O	O
store	O	O
my	O	O
local	O	O
database	O	O
.	O	O

and	O	O
using	O	O
package	O	O
I	O	O
need	O	O
to	O	O
process	O	O
the	O	O
user	O	O
clicked	O	O
object	O	O
.	O	O

Example	O	O
:	O	O
when	O	O
user	O	O
click	O	O
the	O	O
drawing	O	O
number	O	O
in	O	O
viewer	O	O
.	O	O

From	O	O
the	O	O
next	O	O
time	O	O
I	O	O
want	O	O
change	O	O
the	O	O
drawing	O	O
number	O	O
dynamically	O	O
using	O	O
call	O	O
package	O	O
from	O	O
C#	O	B-Language
code	O	O
.	O	O

For	O	O
an	O	O
RVT	O	B-File_Type
file	O	O
,	O	O
one	O	O
easy	O	O
way	O	O
to	O	O
handle	O	O
this	O	O
is	O	O
to	O	O
extract	O	O
the	O	O
Forge	O	B-Application
externalId	B-Code_Block	B-Variable
from	O	O
the	O	O
Forge	O	B-Application
object	O	O
properties	O	O
.	O	O

That	O	O
is	O	O
equal	O	O
to	O	O
the	O	O
Revit	O	B-Library
element	O	O
UniqueId	B-Code_Block	B-Variable
property	O	O
.	O	O

The	O	O
RvtMetaProp	O	B-Function
Revit	O	B-Library
add-in	O	O
makes	O	O
use	O	O
of	O	O
this	O	O
.	O	O

Oh	O	O
,	O	O
now	O	O
I	O	O
just	O	O
found	O	O
a	O	O
better	O	O
,	O	O
more	O	O
complete	O	O
and	O	O
succinct	O	O
explanation	O	O
of	O	O
Unique	O	O
IDs	O	O
for	O	O
Forge	O	B-Application
Viewer	O	B-User_Interface_Element
Elements	O	O
:	O	O

The	O	O
Viewer	O	B-User_Interface_Element
gives	O	O
access	O	O
to	O	O
three	O	O
types	O	O
of	O	O
IDs	O	O
when	O	O
dealing	O	O
with	O	O
Revit	O	B-Library
files	O	O
:	O	O

dbId	B-Code_Block	B-Variable
:	O	O
this	O	O
is	O	O
viewer	O	O
specific	O	O
and	O	O
used	O	O
to	O	O
manipulate	O	O
elements	O	O
within	O	O
the	O	O
viewer	O	O
,	O	O
such	O	O
as	O	O
for	O	O
the	O	O
.getProperties()	B-Code_Block	B-Function
method	O	O
.	O	O

Revit	O	B-Library
ElementID	B-Code_Block	B-Variable
:	O	O
exposed	O	O
as	O	O
part	O	O
of	O	O
the	O	O
Name	B-Code_Block	B-Variable
property	O	O
in	O	O
the	O	O
viewer	O	O
.	O	O

When	O	O
you	O	O
select	O	O
something	O	O
,	O	O
the	O	O
Property	O	B-User_Interface_Element
panel	O	I-User_Interface_Element
title	O	O
is	O	O
in	O	O
the	O	O
form	O	O
of	O	O
'	O	B-Value
Name	O	I-Value
[	O	B-Value
12345	O	I-Value
]	O	I-Value
'	O	B-Value
.	O	O

You	O	O
can	O	O
parse	O	O
this	O	O
name	O	O
string	O	B-Data_Type
and	O	O
extract	O	O
the	O	O
element	O	B-Variable
id	O	I-Variable
.	O	O

Revit	O	B-Library
UniqueID	B-Code_Block	B-Variable
:	O	O
exposed	O	O
as	O	O
the	O	O
externalId	B-Code_Block	B-Variable
property	O	O
in	O	O
the	O	O
.getProperty()	B-Code_Block	B-Function
response	O	O
.	O	O

I	O	O
was	O	O
surprised	O	O
that	O	O
there	O	O
is	O	O
no	O	O
straightforward	O	O
solution	O	O
to	O	O
this	O	O
problem	O	O
.	O	O

Nothing	O	O
I	O	O
found	O	O
on	O	O
the	O	O
web	O	O
or	O	O
on	O	O
SO	O	B-Website
seems	O	O
to	O	O
work	O	O
.	O	O

For	O	O
example	O	O
I	O	O
have	O	O
this	O	O
html	O	B-Language
code	O	O
:	O	O

I	O	O
want	O	O
to	O	O
evoke	O	O
save	O	O
as	O	O
dialog	O	B-HTML_XML_Tag
when	O	O
user	O	O
clicks	O	O
on	O	O
this	O	O
image	O	B-User_Interface_Element
,	O	O
instead	O	O
opening	O	O
the	O	O
image	O	B-User_Interface_Element
in	O	O
new	O	O
window	O	B-User_Interface_Element
,	O	O
as	O	O
it	O	O
's	O	O
a	O	O
format	O	O
understood	O	O
by	O	O
browser	O	B-Application
.	O	O

There	O	O
must	O	O
be	O	O
at	O	O
least	O	O
some	O	O
javascript	O	B-Language
to	O	O
do	O	O
the	O	O
task	O	O
,	O	O
or	O	O
?	O	O

You	O	O
absolutely	O	O
cannot	O	O
do	O	O
it	O	O
on	O	O
client	O	B-Application
side	O	O
,	O	O
neither	O	O
in	O	O
HTML	O	B-Language
,	O	O
nor	O	O
Javascript	O	B-Language
,	O	O
it	O	O
can	O	O
only	O	O
be	O	O
done	O	O
by	O	O
sending	O	O
the	O	O
correct	O	O
HTTP	O	O
response	O	O
headers	O	O
from	O	O
server	O	B-Application
side	O	O
.	O	O

I	O	O
am	O	O
getting	O	O
following	O	O
error	O	O
when	O	O
hitting	O	O
FEB	O	B-Library
REST	O	I-Library
API	O	I-Library
for	O	O
getting	O	O
record	O	O
.	O	O

I	O	O
am	O	O
passing	O	O
Authorization	O	O
header	O	O
and	O	O
using	O	O
get	O	O
request	O	O
using	O	O
following	O	O
URL	O	O
and	O	O
I	O	O
am	O	O
using	O	O
Java	O	B-Language
for	O	O
calling	O	O
the	O	O
REST	O	B-Library
API	O	I-Library
.	O	O

If	O	O
I	O	O
am	O	O
hitting	O	O
same	O	O
URL	O	O
using	O	O
postman	O	B-Application
,	O	O
it	O	O
works	O	O
perfectly	O	O
.	O	O

URL	O	O
:	O	O
http://localhost/forms-basic/secure/org/data/f0720c16-d4b8-442f-8674-2d7fbdab8afc/F_Form1/8d4dfeed-aa11-45fc-a958-23d62d9328cc	O	O

I	O	O
have	O	O
passed	O	O
accept	O	O
header	O	O
as	O	O
application/atom	O	B-Code_Block
+xml	O	I-Code_Block
in	O	O
the	O	O
request	O	O
header	O	O
,	O	O
and	O	O
now	O	O
it	O	O
is	O	O
working	O	O
fine	O	O
,	O	O
without	O	O
any	O	O
issues	O	O
.	O	O

There	O	O
are	O	O
two	O	O
ways	O	O
to	O	O
make	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
list	O	I-User_Interface_Element
in	O	O
Excel	O	B-Application
:	O	O

Data	O	B-User_Interface_Element
validation	O	I-User_Interface_Element
list	O	I-User_Interface_Element

Combobox	O	B-User_Interface_Element
form	O	O
control	O	O

Now	O	O
in	O	O
my	O	O
project	O	O
I	O	O
have	O	O
Data	O	B-User_Interface_Element
validation	O	I-User_Interface_Element
dropdown	O	I-User_Interface_Element
lists	O	I-User_Interface_Element
wich	O	O
can	O	O
be	O	O
too	O	O
long	O	O
and	O	O
I	O	O
want	O	O
to	O	O
add	O	O
search	O	O
functionality	O	O
for	O	O
it	O	O
.	O	O

I	O	O
've	O	O
find	O	O
some	O	O
solutions	O	O
but	O	O
only	O	O
for	O	O
combobox	O	B-User_Interface_Element
control	O	O
,	O	O
which	O	O
not	O	O
applicable	O	O
for	O	O
my	O	O
Excel	O	B-Application
document	O	O
,	O	O
because	O	O
theese	O	O
dropdown	O	B-Data_Structure
lists	O	I-Data_Structure
should	O	O
be	O	O
repeated	O	O
in	O	O
each	O	O
row	O	B-Data_Structure
:	O	O

Is	O	O
there	O	O
any	O	O
possible	O	O
solution	O	O
to	O	O
add	O	O
search	O	O
functionality	O	O
to	O	O
datavalidation	O	O
dropdown	O	B-User_Interface_Element
list	O	I-User_Interface_Element
?	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
send	O	O
objects	O	O
retrieved	O	O
by	O	O
NHibernate	O	B-Library
over	O	O
WCF	O	B-Library
,	O	O
but	O	O
whenever	O	O
a	O	O
have	O	O
a	O	O
property	O	O
of	O	O
ICollection	O	B-Class
I	O	O
get	O	O
an	O	O
exception	O	B-Class
.	O	O

When	O	O
NHibernate	O	B-Library
gets	O	O
the	O	O
data	O	O
from	O	O
the	O	O
database	O	O
this	O	O
property	O	O
is	O	O
intitialized	O	O
with	O	O
an	O	O
instance	O	O
of	O	O
PersistentGenericSet	O	B-Class
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
I	O	O
can	O	O
send	O	O
a	O	O
PersistentGenericSet	O	B-Class
over	O	O
WCF	O	B-Library
?	O	O

-or	O	O
-	O	O

Is	O	O
there	O	O
some	O	O
way	O	O
making	O	O
NHibernate	O	B-Library
initialize	O	O
these	O	O
properties	O	O
with	O	O
another	O	O
type	O	O
?	O	O

The	O	O
PersistentGenericSet	O	B-Class
is	O	O
part	O	O
of	O	O
NHibernate	O	B-Library
(	O	O
used	O	O
to	O	O
track	O	O
changes	O	O
in	O	O
collections	O	O
)	O	O
.	O	O

It	O	O
is	O	O
based	O	O
on	O	O
the	O	O
ISet	O	B-Class
interface	O	O
and	O	O
classes	O	O
from	O	O
Iesi.Collections	O	B-Library
,	O	O
which	O	O
was	O	O
used	O	O
to	O	O
fill	O	O
a	O	O
gap	O	O
in	O	O
the	O	O
.Net	O	B-Library
framework	O	O
as	O	O
there	O	O
is	O	O
n't	O	O
a	O	O
Set	O	B-Class
type	O	O
.	O	O

I	O	O
guess	O	O
that	O	O
WCF	O	B-Library
has	O	O
a	O	O
problem	O	O
serializing	O	O
this	O	O
type	O	O
.	O	O

A	O	O
quick	O	O
fix	O	O
is	O	O
to	O	O
change	O	O
your	O	O
NHibernate	O	B-Library
mappings	O	O
to	O	O
use	O	O
a	O	O
Bag	O	B-Class
instead	O	O
of	O	O
a	O	O
Set	O	B-Class
.	O	O

Then	O	O
you	O	O
can	O	O
use	O	O
a	O	O
normal	O	O
IList	B-Code_Block	B-Class
<T>	I-Code_Block	I-Class
instead	O	O
of	O	O
Set<T>	B-Code_Block	B-Class
in	O	O
your	O	O
classes	O	O
w	O	O
.	O	O

A	O	O
better	O	O
solution	O	O
is	O	O
to	O	O
create	O	O
a	O	O
remote	O	O
facade	O	O
which	O	O
sends	O	O
DTOs	O	O
to	O	O
your	O	O
WCF	O	B-Library
endpoints	O	O
.	O	O

This	O	O
will	O	O
allow	O	O
you	O	O
to	O	O
keep	O	O
the	O	O
interface	O	O
of	O	O
your	O	O
internal	O	O
types	O	O
separate	O	O
from	O	O
those	O	O
exposed	O	O
as	O	O
remote	O	O
services	O	O
.	O	O

Jimmy	O	B-User_Name
Bogards	O	I-User_Name
Automapper	O	B-Library
is	O	O
a	O	O
great	O	O
tool	O	O
which	O	O
will	O	O
help	O	O
with	O	O
the	O	O
mapping	O	O
process	O	O
.	O	O

Edit	O	O

After	O	O
re-reading	O	O
the	O	O
problem	O	O
I	O	O
had	O	O
a	O	O
look	O	O
around	O	O
the	O	O
and	O	O
came	O	O
across	O	O
this	O	O
article	O	O
which	O	O
describes	O	O
a	O	O
workaround	O	O
for	O	O
sending	O	O
NHibernate	O	B-Library
collections	O	O
over	O	O
WCF	O	B-Library
.	O	O

David	O	B-User_Name
Brion	O	I-User_Name
has	O	O
written	O	O
a	O	O
good	O	O
follow	O	O
up	O	O
article	O	O
.	O	O

I	O	O
have	O	O
an	O	O
installer	O	O
created	O	O
using	O	O
Installshield	O	B-Application
2012	O	B-Version
that	O	O
depends	O	O
greatly	O	O
on	O	O
the	O	O
value	O	O
of	O	O
a	O	O
Registry	O	O
key	O	O
written	O	O
by	O	O
some	O	O
other	O	O
application	O	O
developed	O	O
in-house	O	O
.	O	O

I	O	O
use	O	O
RegDBGetKeyValueEx	O	B-Function
Installscript	O	B-Library
API	O	I-Library
to	O	O
fetch	O	O
the	O	O
value	O	O
.	O	O

This	O	O
value	O	O
is	O	O
a	O	O
directory	O	O
path	O	O
guaranteed	O	O
to	O	O
have	O	O
a	O	O
trailing	O	O
backslash	O	O
.	O	O

This	O	O
value	O	O
serves	O	O
as	O	O
the	O	O
TARGETDIR	O	B-Variable
for	O	O
my	O	O
installer	O	O
.	O	O

The	O	O
issue	O	O
is	O	O
that	O	O
I	O	O
often	O	O
see	O	O
a	O	O
foreign	O	O
character	O	B-Data_Type
(	O	O
Chinese	O	O
,	O	O
Japanese	O	O
or	O	O
Korean	O	O
)	O	O
appended	O	O
to	O	O
the	O	O
backslash.This	O	B-Value
causes	O	O
my	O	O
TARGETDIR	O	B-Variable
to	O	O
contain	O	O
the	O	O
foreign	O	O
character	O	B-Data_Type
.	O	O

This	O	O
pollutes	O	O
my	O	O
installation	O	O
.	O	O

I	O	O
feel	O	O
this	O	O
is	O	O
some	O	O
bug	O	O
with	O	O
Installscript	O	B-Library
API	O	I-Library
which	O	O
wrongly	O	O
translates	O	O
the	O	O
Registry	O	O
value	O	O
.	O	O

Please	O	O
provide	O	O
some	O	O
inputs	O	O
so	O	O
that	O	O
I	O	O
may	O	O
find	O	O
the	O	O
root-cause	O	O
of	O	O
the	O	O
issue	O	O
.	O	O

EDIT	O	O
1	O	O
:	O	O

The	O	O
other	O	O
application	O	O
in	O	O
question	O	O
is	O	O
a	O	O
purely	O	O
ANSI	O	O
application	O	O
with	O	O
no	O	O
support	O	O
for	O	O
Unicode	O	O
.	O	O

There	O	O
is	O	O
no	O	O
#define	O	B-Code_Block
UNICODE	O	I-Code_Block
specified	O	O
anywhere	O	O
.	O	O

I	O	O
also	O	O
checked	O	O
the	O	O
compiler	O	O
parameters	O	O
and	O	O
found	O	O
nothing	O	O
related	O	O
to	O	O
Unicode	O	O
specified	O	O
.	O	O

This	O	O
application	O	O
reads	O	O
one	O	O
Registry	O	O
key	O	O
and	O	O
appends	O	O
a	O	O
backslash	O	O
and	O	O
updates	O	O
other	O	O
keys	O	O
.	O	O

Once	O	O
this	O	O
operation	O	O
is	O	O
done	O	O
my	O	O
installer	O	O
fetches	O	O
the	O	O
values	O	O
written	O	O
:	O	O

The	O	O
values	O	O
updated	O	O
in	O	O
the	O	O
above	O	O
code	O	O
are	O	O
then	O	O
written	O	O
to	O	O
registry	O	B-Variable
.	O	O

The	O	O
Installscript	O	B-Library
code	O	O
that	O	O
fetches	O	O
these	O	O
values	O	O
is	O	O
:	O	O

EDIT	O	O
2	O	O
:	O	O

The	O	O
way	O	O
the	O	O
registry	O	B-Variable
value	O	O
is	O	O
set	O	O
seems	O	O
to	O	O
be	O	O
wrong	O	O
:	O	O

I	O	O
feel	O	O
the	O	O
correct	O	O
code	O	O
should	O	O
have	O	O
been	O	O
:	O	O

In	O	O
some	O	O
code	O	O
pages	O	O
the	O	O
currency	O	O
symbol	O	O
is	O	O
the	O	O
same	O	O
byte	O	B-Data_Type
value	O	O
in	O	O
ASCII	O	O
as	O	O
the	O	O
backslash	O	B-Value
.	O	O

If	O	O
you	O	O
're	O	O
using	O	O
Unicode	O	O
functions	O	O
this	O	O
should	O	O
n't	O	O
be	O	O
an	O	O
issue	O	O
though	O	O
.	O	O

See	O	O
http://www.siao2.com/2005/09/17/469941.aspx	O	O
for	O	O
more	O	O
information	O	O
.	O	O

When	O	O
assigning	O	O
the	O	O
Registry	O	O
data	O	O
to	O	O
your	O	O
m_reqPath	B-Code_Block	B-Variable
variable	O	O
,	O	O
you	O	O
are	O	O
treating	O	O
it	O	O
as	O	O
null-terminated	O	B-Value
character	O	B-Data_Type
data	O	O
.	O	O

However	O	O
,	O	O
string	O	B-Data_Type
data	O	O
read	O	O
by	O	O
RegQueryValueEx()	B-Code_Block	B-Function
is	O	O
not	O	O
guaranteed	O	O
to	O	O
be	O	O
null-terminated	O	B-Value
,	O	O
if	O	O
the	O	O
original	O	O
writer	O	O
of	O	O
the	O	O
data	O	O
did	O	O
not	O	O
include	O	O
one	O	O
.	O	O

This	O	O
is	O	O
clearly	O	O
stated	O	O
in	O	O
the	O	O
documentation	O	O
.	O	O

Chances	O	O
are	O	O
that	O	O
the	O	O
string	O	B-Data_Type
data	O	O
you	O	O
are	O	O
reading	O	O
from	O	O
the	O	O
Registry	O	O
is	O	O
not	O	O
null-terminated	O	B-Value
,	O	O
so	O	O
you	O	O
end	O	O
up	O	O
copying	O	O
random	O	O
data	O	O
from	O	O
the	O	O
end	O	O
of	O	O
your	O	O
buffer	O	B-Class
.	O	O

To	O	O
account	O	O
for	O	O
that	O	O
possibility	O	O
,	O	O
you	O	O
need	O	O
to	O	O
allocate	O	O
extra	O	O
space	O	O
in	O	O
your	O	O
buffer	O	B-Class
and	O	O
put	O	O
your	O	O
own	O	O
null	O	B-Value
terminator	O	O
at	O	O
the	O	O
end	O	O
of	O	O
whatever	O	O
data	O	O
you	O	O
actually	O	O
read	O	O
.	O	O

If	O	O
the	O	O
data	O	O
is	O	O
properly	O	O
null	O	B-Value
terminated	O	O
,	O	O
then	O	O
your	O	O
terminator	O	O
will	O	O
simply	O	O
be	O	O
redundant	O	O
.	O	O

You	O	O
are	O	O
also	O	O
leaking	O	O
the	O	O
opened	O	O
Registry	O	O
key	O	O
handle	O	O
if	O	O
RegOpenKeyEx()	B-Code_Block	B-Function
succeeds	O	O
but	O	O
RegQueryValueEx()	B-Code_Block	B-Function
fails	O	O
.	O	O

Try	O	O
this	O	O
instead	O	O
:	O	O

To	O	O
avoid	O	O
this	O	O
issue	O	O
altogether	O	O
,	O	O
use	O	O
RegGetValue()	B-Code_Block	B-Function
instead	O	O
,	O	O
which	O	O
deals	O	O
with	O	O
the	O	O
null	O	B-Value
terminator	O	O
for	O	O
you	O	O
:	O	O

Or	O	O
:	O	O

A	O	O
lot	O	O
of	O	O
positioning	O	O
problems	O	O
seem	O	O
to	O	O
be	O	O
easily	O	O
solvable	O	O
with	O	O
the	O	O
CSS	O	B-Language
display	O	B-Code_Block
:	O	I-Code_Block
table	O	I-Code_Block
rule	O	O
,	O	O
so	O	O
I	O	O
thought	O	O
I	O	O
'd	O	O
give	O	O
it	O	O
a	O	O
try	O	O
.	O	O

The	O	O
only	O	O
problem	O	O
is	O	O
when	O	O
I	O	O
do	O	O
,	O	O
the	O	O
footer	O	B-User_Interface_Element
completely	O	O
disappears	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
.	O	O

html	O	B-Language
:	O	O

css	O	B-Language
with	O	O
sass	O	B-Language
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
copy	O	O
an	O	O
example	O	O
from	O	O
this	O	O
codepen	O	B-Application
:	O	O

http://codepen.io/colintoh/pen/tGmDp	O	O

but	O	O
the	O	O
footer	O	B-User_Interface_Element
just	O	O
is	O	O
n't	O	O
showing	O	O
up	O	O
.	O	O

How	O	O
would	O	O
you	O	O
go	O	O
about	O	O
fixing	O	O
this	O	O
?	O	O

edit	O	O
:	O	O

CSS	O	B-Language
:	O	O

And	O	O
I	O	O
'm	O	O
using	O	O
Firefox	O	B-Application
right	O	O
now	O	O
.	O	O

You	O	O
need	O	O
to	O	O
add	O	O

To	O	O
your	O	O
footer	O	B-User_Interface_Element
.	O	O

Otherwise	O	O
it	O	O
will	O	O
only	O	O
take	O	O
up	O	O
the	O	O
space	O	O
needed	O	O
to	O	O
fit	O	O
the	O	O
content	O	O
inside	O	O
.	O	O

Also	O	O
,	O	O
some	O	O
browsers	O	B-Application
do	O	O
not	O	O
allow	O	O
for	O	O
empty	O	O
divs	O	B-HTML_XML_Tag
.	O	O

Add	O	O
some	O	O
content	O	O
to	O	O
your	O	O
footer	O	B-User_Interface_Element
,	O	O
and	O	O
it	O	O
should	O	O
show	O	O
up	O	O
in	O	O
your	O	O
browser	O	B-Application
.	O	O

JSFiddle	O	B-Application
:	O	O
https://jsfiddle.net/rq9nm772/1/	O	O

I	O	O
have	O	O
the	O	O
next	O	O
strange	O	O
problem	O	O
,	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
parse	O	O
response	O	O
with	O	O
JSON	O	B-File_Type
data	O	O
in	O	O
background	O	O
,	O	O
because	O	O
there	O	O
's	O	O
a	O	O
lot	O	O
of	O	O
data	O	O
and	O	O
call	O	O
it	O	O
like	O	O
this	O	O
:	O	O

And	O	O
the	O	O
parseResponse()	O	B-Function
method	O	O
is	O	O
written	O	O
like	O	O
this	O	O
:	O	O

So	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
,	O	O
but	O	O
somehow	O	O
the	O	O
data	O	O
appeared	O	O
in	O	O
RecyclerView	O	B-Class
is	O	O
there	O	O
before	O	O
onPostExecute	O	B-Function
is	O	O
shown	O	O
,	O	O
because	O	O
in	O	O
post	O	O
execute	O	O
the	O	O
progressbar	O	B-Class
should	O	O
go	O	O
invisible	O	O
and	O	O
notifydatasetchange	B-Code_Block	B-Function
should	O	O
also	O	O
appear	O	O
there	O	O
.	O	O

But	O	O
data	O	O
appears	O	O
before	O	O
the	O	O
progressbar	O	B-Class
goes	O	O
invisible	O	O
and	O	O
notifyDataSetChange()	B-Code_Block	B-Function
fired	O	O
,	O	O
help	O	O
me	O	O
please	O	O
!	O	O

An	O	O
AsyncTask	B-Code_Block	B-Class
that	O	O
returns	O	O
nothing	O	O
from	O	O
doInBackground()	B-Code_Block	B-Function
(	O	O
and	O	O
does	O	O
n't	O	O
communicate	O	O
with	O	O
onPostExecute()	B-Code_Block	B-Function
via	O	O
private	O	O
members	O	O
)	O	O
is	O	O
always	O	O
suspicious	O	O
.	O	O

You	O	O
have	O	O
a	O	O
lot	O	O
of	O	O
side	O	O
effects	O	O
in	O	O
your	O	O
AsyncTask	B-Code_Block	B-Class
and	O	O
that	O	O
kind	O	O
of	O	O
stuff	O	O
is	O	O
hard	O	O
to	O	O
debug	O	O
.	O	O

You	O	O
add	O	O
to	O	O
cityList	B-Code_Block	B-Variable
and	O	O
activeOrders	B-Code_Block	B-Variable
for	O	O
example	O	O
,	O	O
without	O	O
showing	O	O
what	O	O
that	O	O
actually	O	O
is	O	O
.	O	O

Presumably	O	O
those	O	O
are	O	O
lists	O	B-Data_Structure
attached	O	O
to	O	O
some	O	O
Adapter	B-Code_Block	B-Class
and	O	O
adding	O	O
to	O	O
those	O	O
might	O	O
trigger	O	O
a	O	O
View	B-Code_Block	B-Class
attached	O	O
to	O	O
the	O	O
Adapter	B-Code_Block	B-Class
to	O	O
be	O	O
re-drawn	O	O
.	O	O

If	O	O
that	O	O
is	O	O
the	O	O
case	O	O
you	O	O
could	O	O
try	O	O
calling	O	O
setNotifyOnChange(false)	B-Code_Block	B-Function
on	O	O
mAdapter	B-Code_Block	B-Variable
(	O	O
to	O	O
delay	O	O
updates	O	O
until	O	O
you	O	O
manually	O	O
call	O	O
notifyDataSetChanged()	B-Code_Block	B-Function
later	O	O
)	O	O
.	O	O

http://developer.android.com/reference/android/widget/ArrayAdapter.html#setNotifyOnChange(boolean)	O	O

In	O	O
general	O	O
,	O	O
if	O	O
your	O	O
AsyncTask	B-Code_Block	B-Class
does	O	O
n't	O	O
return	O	O
anything	O	O
or	O	O
otherwise	O	O
"	O	O
communicate	O	O
"	O	O
with	O	O
onPostExecute()	B-Code_Block	B-Function
there	O	O
is	O	O
little	O	O
point	O	O
in	O	O
having	O	O
onPostExecute()	B-Code_Block	B-Function
in	O	O
the	O	O
first	O	O
place	O	O
.	O	O

Even	O	O
better	O	O
would	O	O
be	O	O
not	O	O
to	O	O
have	O	O
any	O	O
side	O	O
effect	O	O
in	O	O
doInBackground()	B-Code_Block	B-Function
and	O	O
instead	O	O
return	O	O
the	O	O
parsed	O	O
data	O	O
and	O	O
only	O	O
add	O	O
it	O	O
to	O	O
cityList	B-Code_Block	B-Variable
and	O	O
activeOrders	B-Code_Block	B-Variable
in	O	O
onPostExecute()	B-Code_Block	B-Function
.	O	O

Multi-threading	O	O
is	O	O
tricky	O	O
and	O	O
AsyncTasks	B-Code_Block	B-Class
while	O	O
appearing/attempting	O	O
to	O	O
make	O	O
it	O	O
easier	O	O
,	O	O
have	O	O
many	O	O
pitfalls	O	O
.	O	O

I	O	O
have	O	O
attempted	O	O
to	O	O
answer	O	O
a	O	O
question	O	O
on	O	O
thread	O	O
safety	O	O
of	O	O
AsyncTask	B-Code_Block	B-Class
here	O	O

I	O	O
do	O	O
n't	O	O
have	O	O
the	O	O
privilege	O	O
to	O	O
comment	O	O
,	O	O
so	O	O
I	O	O
'll	O	O
post	O	O
it	O	O
here	O	O
:	O	O

You	O	O
do	O	O
n't	O	O
happen	O	O
to	O	O
have	O	O
listeners	O	B-Class
on	O	O
your	O	O
ordersDatabase	B-Code_Block	B-Variable
,	O	O
cityList	B-Code_Block	B-Variable
or	O	O
activeOrders	B-Code_Block	B-Variable
?	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
write	O	O
a	O	O
RewriteRule	O	B-Variable
for	O	O
my	O	O
.htaccess	O	B-File_Type
file	O	O
.	O	O

My	O	O
Condition	O	O
is	O	O
following	O	O
,	O	O
Force	O	O
All	O	O
user	O	O
on	O	O
my	O	O
website	O	O
to	O	O
HTTP	O	O
with	O	O
www	O	O
and	O	O
force	O	O
secure-email	O	O
folder	O	O
to	O	O
only	O	O
https	O	O
with	O	O
www	O	O
.	O	O

Any	O	O
ideas	O	O
on	O	O
how	O	O
to	O	O
write	O	O
this	O	O
RewriteRule	O	B-Variable
?	O	O

You	O	O
can	O	O
use	O	O
something	O	O
similar	O	O
to	O	O
this	O	O
(	O	O
adapt	O	O
it	O	O
for	O	O
your	O	O
need	O	O
)	O	O
:	O	O

FYI	O	O
:	O	O
this	O	O
works	O	O
only	O	O
with	O	O
Apache	O	B-Application
version	O	O
>=	O	O
2.4	O	B-Version
or	O	O
else	O	O
you	O	O
have	O	O
to	O	O
use	O	O
mod_rewrite	O	B-Function

more	O	O
details	O	O
can	O	O
be	O	O
found	O	O
here	O	O
and	O	O
here	O	O
to	O	O
adapt	O	O
the	O	O
rules	O	O
above	O	O
.	O	O

But	O	O
I	O	O
highly	O	O
recommend	O	O
setting	O	O
all	O	O
the	O	O
website	O	O
over	O	O
HTTPS	O	O
(	O	O
HTTPS	O	O
is	O	O
a	O	O
requirement	O	O
for	O	O
many	O	O
new	O	O
browser	O	B-Application
features	O	O
,	O	O
particularly	O	O
those	O	O
required	O	O
for	O	O
Progressive	O	O
Web	O	O
Apps	O	O
)	O	O

I	O	O
have	O	O
defined	O	O
a	O	O
couple	O	O
of	O	O
type	O	O
synonyms	O	O
as	O	O
follows	O	O
:	O	O

In	O	O
addition	O	O
I	O	O
have	O	O
defined	O	O
the	O	O
following	O	O
type	O	O
and	O	O
type	O	O
synonym	O	O
:	O	O

Finally	O	O
,	O	O
the	O	O
following	O	O
function	O	O
to	O	O
construct	O	O
a	O	O
graph	O	B-Data_Structure
:	O	O

In	O	O
the	O	O
above	O	O
function	O	O
,	O	O
a	O	O
list	O	O
of	O	O
tuples	O	B-Data_Structure
is	O	O
provided	O	O
where	O	O
the	O	O
first	O	O
element	O	O
of	O	O
the	O	O
tuple	O	B-Data_Structure
is	O	O
another	O	O
tuple	O	B-Data_Structure
and	O	O
the	O	O
second	O	O
a	O	O
list	O	B-Data_Structure
,	O	O
as	O	O
per	O	O
the	O	O
functions	O	O
type	O	O
signature	O	O
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
Haskell	O	B-Language
so	O	O
am	O	O
having	O	O
some	O	O
difficulty	O	O
in	O	O
deciphering	O	O
the	O	O
following	O	O
error	O	O
messages	O	O
:	O	O

I	O	O
have	O	O
concluded	O	O
that	O	O
there	O	O
are	O	O
type	O	O
mismatches	O	O
but	O	O
am	O	O
not	O	O
clear	O	O
how	O	O
so	O	O
,	O	O
given	O	O
the	O	O
types	O	O
I	O	O
have	O	O
defined	O	O
and	O	O
the	O	O
functions	O	O
type	O	O
signature	O	O
.	O	O

Of	O	O
course	O	O
,	O	O
this	O	O
is	O	O
a	O	O
useful	O	O
exercise	O	O
to	O	O
do	O	O
,	O	O
and	O	O
as	O	O
a	O	O
result	O	O
of	O	O
making	O	O
this	O	O
mistake	O	O
you	O	O
've	O	O
learned	O	O
to	O	O
better	O	O
understand	O	O
operator	O	O
precedence	O	O
and	O	O
parsing	O	O
in	O	O
Haskell	O	B-Language
.	O	O

However	O	O
,	O	O
once	O	O
you	O	O
have	O	O
more	O	O
experience	O	O
you	O	O
'll	O	O
realize	O	O
you	O	O
could	O	O
have	O	O
avoided	O	O
the	O	O
problem	O	O
,	O	O
and	O	O
wound	O	O
up	O	O
with	O	O
simpler	O	O
code	O	O
as	O	O
a	O	O
result	O	O
,	O	O
by	O	O
using	O	O
pattern	O	O
matching	O	O
instead	O	O
of	O	O
composing	O	O
calls	O	O
to	O	O
fst	B-Code_Block	B-Function
and	O	O
snd	B-Code_Block	B-Function
:	O	O

Now	O	O
the	O	O
code	O	O
is	O	O
shaped	O	O
like	O	O
the	O	O
data	O	O
it	O	O
consumes	O	O
,	O	O
and	O	O
you	O	O
get	O	O
to	O	O
give	O	O
descriptive	O	O
names	O	O
to	O	O
the	O	O
values	O	O
you	O	O
work	O	O
with	O	O
.	O	O

Another	O	O
improvement	O	O
comes	O	O
from	O	O
observing	O	O
that	O	O
this	O	O
recursive	O	O
pattern	O	O
is	O	O
very	O	O
common	O	O
:	O	O
you	O	O
do	O	O
something	O	O
to	O	O
each	O	O
item	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
independent	O	O
of	O	O
each	O	O
other	O	O
,	O	O
and	O	O
construct	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
the	O	O
results	O	O
.	O	O

In	O	O
fact	O	O
,	O	O
that	O	O
is	O	O
exactly	O	O
what	O	O
map	B-Code_Block	B-Function
does	O	O
.	O	O

So	O	O
you	O	O
could	O	O
write	O	O
a	O	O
function	O	O
that	O	O
deals	O	O
with	O	O
only	O	O
one	O	O
of	O	O
these	O	O
PGM	O	B-Variable
items	O	O
at	O	O
a	O	O
time	O	O
,	O	O
and	O	O
then	O	O
use	O	O
map	B-Code_Block	B-Function
to	O	O
extend	O	O
it	O	O
to	O	O
a	O	O
function	O	O
that	O	O
works	O	O
on	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
them	O	O
:	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
f	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
g	I-Code_Block	I-Code_Block
x	I-Code_Block	I-Code_Block
is	O	O
f	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
g	I-Code_Block	I-Code_Block
x	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
.	O	O

Therefore	O	O
,	O	O
the	O	O
types	O	O
do	O	O
n't	O	O
match	O	O
:	O	O

You	O	O
either	O	O
have	O	O
to	O	O
use	O	O
parentheses	O	O
around	O	O
fst	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
fst	I-Code_Block	I-Code_Block
or	O	O
$	B-Code_Block	B-Code_Block
:	O	O

You	O	O
can	O	O
also	O	O
combine	O	O
both	O	O
,	O	O
e.g	O	O
.	O	O

fst	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
fst	I-Code_Block	I-Code_Block
$	I-Code_Block	I-Code_Block
x	I-Code_Block	I-Code_Block
,	O	O
since	O	O
the	O	O
precedence	O	O
of	O	O
$	B-Code_Block	B-Code_Block
is	O	O
low	O	O
.	O	O

I	O	O
am	O	O
working	O	O
on	O	O
a	O	O
document	O	O
that	O	O
is	O	O
used	O	O
in	O	O
a	O	O
lecture	O	O
each	O	O
semester	O	O
.	O	O

The	O	O
contents	O	O
basically	O	O
stay	O	O
the	O	O
same	O	O
,	O	O
but	O	O
only	O	O
a	O	O
subset	O	O
of	O	O
the	O	O
content	O	O
is	O	O
used	O	O
each	O	O
semester	O	O
.	O	O

Defines	O	O
are	O	O
used	O	O
to	O	O
set	O	O
which	O	O
parts	O	O
should	O	O
be	O	O
compiled	O	O
and	O	O
which	O	O
not	O	O
.	O	O

In	O	O
one	O	O
part	O	O
of	O	O
the	O	O
document	O	O
a	O	O
list	O	O
of	O	O
the	O	O
options	O	O
is	O	O
compiled	O	O
in	O	O
a	O	O
tabular	O	O
in	O	O
the	O	O
following	O	O
form	O	O
:	O	O

So	O	O
all	O	O
options	O	O
that	O	O
are	O	O
chosen	O	O
via	O	O
defines	O	O
are	O	O
listed	O	O
in	O	O
the	O	O
table	O	B-User_Interface_Element
as	O	O
a	O	O
row	O	B-User_Interface_Element
.	O	O

The	O	O
problem	O	O
that	O	O
occurs	O	O
is	O	O
that	O	O
the	O	O
&	B-Code_Block	B-Value
character	O	O
seems	O	O
to	O	O
break	O	O
the	O	O
\ifdefined	B-Code_Block	B-Code_Block
and	O	O
is	O	O
treated	O	O
as	O	O
a	O	O
\fi	B-Code_Block	B-Code_Block
.	O	O

An	O	O
Incomplete	B-Code_Block	B-Error_Name
\ifdefined	I-Code_Block	I-Error_Name
error	O	O
is	O	O
thrown	O	O
.	O	O

I	O	O
worked	O	O
around	O	O
this	O	O
by	O	O
defining	O	O
a	O	O
command	O	O
that	O	O
just	O	O
outputs	O	O
the	O	O
&	B-Code_Block	B-Value
char	O	B-Data_Type
.	O	O

But	O	O
there	O	O
sure	O	O
is	O	O
a	O	O
better	O	O
way	O	O
.	O	O

Note	O	O
that	O	O
I	O	O
am	O	O
working	O	O
on	O	O
someone	O	O
elses	O	O
document	O	O
and	O	O
cannot	O	O
just	O	O
change	O	O
the	O	O
whole	O	O
structure	O	O
and	O	O
the	O	O
use	O	O
of	O	O
defines	O	O
to	O	O
reach	O	O
this	O	O
specific	O	O
goal	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
use	O	O
it	O	O
.	O	O

And	O	O
it	O	O
's	O	O
really	O	O
nice	O	O
for	O	O
some	O	O
Plots	O	B-User_Interface_Element
,	O	O
but	O	O
when	O	O
its	O	O
about	O	O
making	O	O
for	O	O
example	O	O
a	O	O
triangle	O	B-User_Interface_Element
I	O	O
found	O	O
it	O	O
quite	O	O
complicated	O	O
.	O	O

I	O	O
figured	O	O
out	O	O
how	O	O
to	O	O
draw	O	O
a	O	O
triangle	O	B-User_Interface_Element
but	O	O
how	O	O
to	O	O
add	O	O
that	O	O
angle	O	B-User_Interface_Element
marks	O	I-User_Interface_Element
,	O	O
those	O	O
curved	O	B-User_Interface_Element
lines	O	I-User_Interface_Element
?	O	O

And	O	O
since	O	O
I	O	O
'm	O	O
beginner	O	O
into	O	O
this	O	O
job	O	O
,	O	O
of	O	O
writing	O	O
a	O	O
book	O	O
,	O	O
can	O	O
anyone	O	O
recommend	O	O
me	O	O
which	O	O
is	O	O
the	O	O
best	O	O
way	O	O
to	O	O
accomplish	O	O
good	O	O
looking	O	O
graphics	O	O
,	O	O
for	O	O
example	O	O
as	O	O
in	O	O
the	O	O
picture	O	B-User_Interface_Element
below	O	O
.	O	O

Which	O	O
programs	O	O
are	O	O
best	O	O
to	O	O
use	O	O
.	O	O

Thanks	O	O
for	O	O
any	O	O
suggestions	O	O
and	O	O
recommendations	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
simple/basic	O	O
way	O	O
to	O	O
do	O	O
the	O	O
first	O	O
one	O	O
:	O	O

The	O	O
following	O	O
is	O	O
the	O	O
exact	O	O
same	O	O
thing	O	O
,	O	O
but	O	O
wrapped	O	O
in	O	O
Manipulate	B-Code_Block	B-Class
and	O	O
parameterized	O	O
on	O	O
the	O	O
angle	O	O
alpha	B-Code_Block	B-Variable
:	O	O

If	O	O
you	O	O
move	O	O
the	O	O
slider	O	B-User_Interface_Element
,	O	O
the	O	O
content	O	O
will	O	O
change	O	O
accordingly	O	O
:	O	O

Edit	O	O
You	O	O
can	O	O
get	O	O
inspiration	O	O
from	O	O
the	O	O
Demonstrations	O	O
project	O	O
too	O	O
.	O	O

These	O	O
are	O	O
the	O	O
triangle-related	O	B-User_Interface_Element
demonstrations	O	O
.	O	O

After	O	O
taking	O	O
a	O	O
quick	O	O
look	O	O
,	O	O
I	O	O
think	O	O
you	O	O
should	O	O
see	O	O
the	O	O
geometry-related	O	O
demonstrations	O	O
by	O	O
Jay	O	B-User_Name
Warendorff	O	I-User_Name
.	O	O

He	O	O
has	O	O
made	O	O
a	O	O
lot	O	O
of	O	O
these	O	O
,	O	O
and	O	O
they	O	O
use	O	O
a	O	O
structured	O	O
set	O	O
of	O	O
geometry-related	O	O
functions	O	O
that	O	O
you	O	O
most	O	O
likely	O	O
can	O	O
reuse	O	O
.	O	O

Here	O	O
's	O	O
an	O	O
angleArc	B-Code_Block	B-Function
function	O	O
to	O	O
get	O	O
you	O	O
started	O	O
.	O	O

This	O	O
is	O	O
just	O	O
a	O	O
small	O	O
example	O	O
of	O	O
a	O	O
helper	O	O
function	O	O
you	O	O
could	O	O
use	O	O
,	O	O
there	O	O
's	O	O
a	O	O
lot	O	O
of	O	O
room	O	O
for	O	O
improvement	O	O
.	O	O

I	O	O
want	O	O
to	O	O
create	O	O
a	O	O
hierarchial	O	O
array	O	B-Data_Structure
from	O	O
the	O	O
single	O	O
dimensional	O	O
array	O	B-Data_Structure
obtained	O	O
from	O	O
database	O	O
.	O	O

Language	O	O
is	O	O
PHP	O	B-Language
.	O	O

In	O	O
the	O	O
below	O	O
mentioned	O	O
example	O	O
key	O	O
id	O	B-Variable
-3	O	B-Value
indicates	O	O
that	O	O
it	O	O
is	O	O
the	O	O
root	O	O
node	O	O
.	O	O

Input	O	O
Data	O	O
:	O	O

Output	O	O
expected	O	O
data	O	O
:	O	O

The	O	O
trick	O	O
is	O	O
to	O	O
use	O	O
&$a	O	O
notation	O	O
which	O	O
gives	O	O
us	O	O
references	O	O
instead	O	O
of	O	O
variable	O	O
copies	O	O
.	O	O

Basically	O	O
non-root	O	O
nodes	O	O
are	O	O
attached	O	O
to	O	O
the	O	O
parents	O	O
,	O	O
and	O	O
root	O	O
nodes	O	O
go	O	O
to	O	O
result	O	O
array	O	B-Data_Structure
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
update	O	O
query	O	O
that	O	O
works	O	O
in	O	O
design	O	O
mode	O	O
of	O	O
Access	O	B-Application
.	O	O

I	O	O
have	O	O
inserted	O	O
it	O	O
into	O	O
a	O	O
VBA	O	B-Language
procedure	O	O
and	O	O
want	O	O
to	O	O
update	O	O
the	O	O
recordset	O	B-Data_Structure
with	O	O
the	O	O
windows	O	O
ID	O	O
of	O	O
the	O	O
user	O	O
by	O	O
declaring	O	O
this	O	O
as	O	O
a	O	O
variable	O	O
-	O	O

My	O	O
problem	O	O
is	O	O
when	O	O
I	O	O
click	O	O
the	O	O
command	O	B-User_Interface_Element
button	O	I-User_Interface_Element
to	O	O
run	O	O
the	O	O
procedure	O	O
a	O	O
message	O	B-User_Interface_Element
box	O	I-User_Interface_Element
appears	O	O
with	O	O
my	O	O
Windows	O	O
ID	O	O
as	O	O
the	O	O
title	O	O
and	O	O
it	O	O
asks	O	O
to	O	O
'	O	B-Output_Block
Enter	O	I-Output_Block
a	O	I-Output_Block
Parameter	O	I-Output_Block
Value	O	I-Output_Block
'	O	B-Output_Block
instead	O	O
of	O	O
inserting	O	O
it	O	O
directly	O	O
to	O	O
the	O	O
table	O	B-Data_Structure
.	O	O

I	O	O
am	O	O
not	O	O
sure	O	O
but	O	O
it	O	O
seems	O	O
the	O	O
SQL	O	B-Language
statement	O	O
is	O	O
incorrect	O	O
as	O	O
the	O	O
windows	O	O
ID	O	O
is	O	O
not	O	O
being	O	O
picked	O	O
up	O	O
as	O	O
a	O	O
variable	O	O

Add	O	O
quotes	O	O
around	O	O
the	O	O
user	O	O
name	O	O
value	O	O
so	O	O
the	O	O
db	O	B-Application
engine	O	I-Application
will	O	O
interpret	O	O
it	O	O
as	O	O
a	O	O
literal	O	O
text	O	O
string	O	B-Data_Type
instead	O	O
of	O	O
a	O	O
parameter	O	O
name	O	O
.	O	O

That	O	O
change	O	O
should	O	O
resolve	O	O
your	O	O
immediate	O	O
issue	O	O
.	O	O

Beyond	O	O
that	O	O
,	O	O
include	O	O
spaces	O	O
before	O	O
WHERE	B-Code_Block	B-Code_Block
and	O	O
AND	B-Code_Block	B-Code_Block
.	O	O

Also	O	O
execute	O	O
the	O	O
query	O	O
with	O	O
DAO	O	B-Application
's	O	O
Execute	B-Code_Block	B-Function
method	O	O
and	O	O
include	O	O
the	O	O
dbFailOnError	O	B-Variable
option	O	O
.	O	O

Imagine	O	O
code	O	O
like	O	O
this	O	O
:	O	O

Regarding	O	O
the	O	O
fact	O	O
that	O	O
the	O	O
logical	O	O
branching	O	O
is	O	O
by	O	O
standard	O	O
ensured	O	O
to	O	O
be	O	O
evaluated	O	O
from	O	O
left	O	O
to	O	O
right	O	O
and	O	O
and	O	O
says	O	O
regarding	O	O
the	O	O
conditional	O	O
&	B-Code_Block	B-Code_Block
it	O	O
breaks	O	O
as	O	O
soon	O	O
as	O	O
one	O	O
condition	O	O
is	O	O
false	O	B-Value
,	O	O
Is	O	O
there	O	O
any	O	O
rule	O	O
that	O	O
would	O	O
make	O	O
this	O	O
snippet	O	O
invalid	O	O
?	O	O

I	O	O
know	O	O
there	O	O
are	O	O
more	O	O
efficent	O	O
and	O	O
even	O	O
better	O	O
to	O	O
retrace	O	O
ways	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
specially	O	O
interested	O	O
in	O	O
:	O	O

does	O	O
the	O	O
interupt	O	O
condition	O	O
of	O	O
the	O	O
do/while	B-Code_Block	B-Code_Block
loop	O	O
prevent	O	O
from	O	O
invoking	O	O
undefined	O	O
behavior	O	O
through	O	O
the	O	O
rule	O	O
about	O	O
using	O	O
pointer	O	B-Data_Type
arithmetic	O	O
that	O	O
results	O	O
in	O	O
a	O	O
pointer	O	B-Data_Type
leaving	O	O
the	O	O
bounds	O	O
or	O	O
more	O	O
as	O	O
1	O	O
past	O	O
the	O	O
array	O	B-Data_Structure
?	O	O

After	O	O
this	O	O
loop	O	O
:	O	O

ActingPointer	B-Code_Block	B-Variable
ends	O	O
up	O	O
being	O	O
equal	O	O
to	O	O
OriginPointer	B-Code_Block	B-Variable
+	I-Code_Block	O
SOME_GIVEN_AMOUNT	I-Code_Block	B-Variable
,	O	O
which	O	O
is	O	O
ok	O	O
as	O	O
a	O	O
pointer	O	B-Data_Type
(	O	O
as	O	O
it	O	O
points	O	O
to	O	O
one	O	O
element	O	O
past	O	O
the	O	O
end	O	O
)	O	O
,	O	O
but	O	O
writing	O	O
to	O	O
it	O	O
in	O	O
the	O	O
first	O	O
iteration	O	O
of	O	O
the	O	O
do	B-Code_Block	B-Code_Block
loop	O	O
is	O	O
undefined	O	O
behaviour	O	O
.	O	O

If	O	O
ActingPointer	B-Code_Block	B-Variable
is	O	O
decremented	O	O
before	O	O
the	O	O
do	B-Code_Block	B-Code_Block
loop	O	O
,	O	O
everything	O	O
is	O	O
fine	O	O
.	O	O

Yes	O	O
,	O	O
because	O	O
it	O	O
starts	O	O
at	O	O
1	O	B-Value
past	O	O
the	O	O
array	O	B-Data_Structure
,	O	O
and	O	O
is	O	O
not	O	O
decremented	O	O
below	O	O
the	O	O
start	O	O
of	O	O
the	O	O
array	O	B-Data_Structure
.	O	O

I	O	O
made	O	O
a	O	O
ajax	O	B-Function
call	O	O
from	O	O
my	O	O
jsp	O	B-Application
to	O	O
servlet	O	B-Application
.	O	O

when	O	O
I	O	O
want	O	O
to	O	O
return	O	O
string	O	B-Data_Type
then	O	O
it	O	O
is	O	O
working	O	O
fine	O	O
.	O	O

But	O	O
I	O	O
want	O	O
to	O	O
send	O	O
response	O	O
as	O	O
a	O	O
String	O	B-Data_Type
array	O	B-Data_Structure
then	O	O
its	O	O
not	O	O
working	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
that	O	O
I	O	O
can	O	O
send	O	O
string	O	B-Data_Type
array	O	B-Data_Structure
from	O	O
servlet	O	B-Application
as	O	O
a	O	O
ajax	O	B-Function
response	O	O
.	O	O

Send	O	O
the	O	O
ajax	O	B-Function
response	O	O
in	O	O
json	O	B-File_Type
format	O	O
by	O	O
encoding	O	O
the	O	O
array	O	B-Data_Structure
in	O	O
json	O	B-File_Type
and	O	O
return	O	O
it	O	O
.	O	O

You	O	O
can	O	O
use	O	O
Gson	O	B-Library
and	O	O
then	O	O
encode	O	O
your	O	O
array	O	B-Data_Structure
like	O	O
:	O	O

And	O	O
on	O	O
the	O	O
Javascript	O	B-Language
end	O	O
,	O	O
you	O	O
can	O	O
access	O	O
it	O	O
as	O	O
a	O	O
json	O	B-File_Type
object	O	O

Write	O	O
it	O	O
out	O	O
to	O	O
JSON	O	B-File_Type
instead	O	O
.	O	O

Javascript	O	B-Language
ca	O	O
n't	O	O
understand	O	O
the	O	O
result	O	O
of	O	O
a	O	O
Java	O	B-Language
array	O	B-Data_Structure
's	O	O
toString()	O	B-Function
method	O	O
(	O	O
[	B-Code_Block	B-Code_Block
Ljava.lang.String	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
@5527f4f9	I-Code_Block	I-Code_Block
)	O	O
,	O	O
but	O	O
I	O	O
know	O	O
it	O	O
can	O	O
understand	O	O
JSON	O	B-File_Type
.	O	O

If	O	O
you	O	O
're	O	O
only	O	O
ever	O	O
going	O	O
to	O	O
be	O	O
using	O	O
a	O	O
string	O	B-Data_Type
array	O	B-Data_Structure
and	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
use	O	O
any	O	O
more	O	O
libraries	O	O
:	O	O

Depending	O	O
on	O	O
what	O	O
Javascript	O	B-Language
framework	O	O
you	O	O
're	O	O
using	O	O
on	O	O
your	O	O
client-side	O	B-Application
,	O	O
your	O	O
JSON	O	B-File_Type
will	O	O
be	O	O
available	O	O
as	O	O
the	O	O
xmlHttpRequestObject.responseText	B-Code_Block	B-Variable
.	O	O

AngularJS	O	B-Library
stores	O	O
it	O	O
in	O	O
the	O	O
$http.get().success	B-Code_Block	B-Function
method	O	O
's	O	O
first	O	O
data	B-Code_Block	B-Variable
parameter	O	O
.	O	O

jQuery	O	B-Library
stores	O	O
it	O	O
in	O	O
the	O	O
$.ajax({success})	B-Code_Block	B-Function
method	O	O
's	O	O
first	O	O
data	B-Code_Block	B-Variable
parameter	O	O
.	O	O

Angular	O	B-Library
and	O	O
jQuery	O	B-Library
automatically	O	O
validate	O	O
and	O	O
eval	B-Code_Block	B-Function
it	O	O
to	O	O
an	O	O
[	B-Code_Block	B-Code_Block
object	I-Code_Block	I-Code_Block
Object	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
for	O	O
you	O	O
,	O	O
but	O	O
xmlHttpRequestObject.responseText	B-Code_Block	B-Variable
does	O	O
n't	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
compare	O	O
two	O	O
values	O	O
from	O	O
a	O	O
dual	O	O
input	O	O
range	O	O
slider	O	B-User_Interface_Element
.	O	O

If	O	O
the	O	O
bottom	O	O
value	O	O
is	O	O
equal	O	O
or	O	O
greater	O	O
than	O	O
the	O	O
top	O	O
value	O	O
,	O	O
I	O	O
want	O	O
to	O	O
return	O	O
false	B-Code_Block	B-Value
.	O	O

This	O	O
is	O	O
to	O	O
prevent	O	O
overlap	O	O
between	O	O
the	O	O
two	O	O
thumbs	O	O
.	O	O

I	O	O
have	O	O
used	O	O
.change	B-Code_Block	B-Function
to	O	O
listen	O	O
for	O	O
changes	O	O
.	O	O

I	O	O
can	O	O
then	O	O
console.log	B-Code_Block	B-Function
&	O	O
return	O	O
the	O	O
value	O	O
after	O	O
it	O	O
's	O	O
been	O	O
updated	O	O
.	O	O

I	O	O
have	O	O
included	O	O
the	O	O
last	O	O
bit	O	O
of	O	O
code	O	O
in	O	O
the	O	O
hope	O	O
for	O	O
help	O	O
.	O	O

You	O	O
can	O	O
see	O	O
an	O	O
full	O	O
almost	O	O
working	O	O
version	O	O
here	O	O
:	O	O

https://fiddle.jshell.net/elliottjb7/fj9ot08v/	O	O

Thanks	O	O

this	O	O
line	O	O

should	O	O
be	O	O

This	O	O
does	O	O
the	O	O
correct	O	O
check	O	O
where	O	O
bottom	O	O
is	O	O
:	O	O

Also	O	O
,	O	O
the	O	O
first	O	O
2	O	O
functions	O	O
(.change())	B-Code_Block	B-Function
are	O	O
quite	O	O
redundant	O	O
for	O	O
what	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
achieve	O	O
but	O	O
I	O	O
've	O	O
included	O	O
a	O	O
better	O	O
way	O	O
to	O	O
write	O	O
them	O	O

I	O	O
have	O	O
8-10	O	O
classes	O	O
that	O	O
extends	O	O
JPanel	B-Code_Block	B-Class
.	O	O

Each	O	O
of	O	O
them	O	O
have	O	O
unique	O	O
look	O	O
and	O	O
all	O	O
kind	O	O
of	O	O
listeners	O	O
.	O	O

I	O	O
create	O	O
a	O	O
GameWindow	B-Code_Block	B-Class
class	O	O
that	O	O
extends	O	O
JFrame	B-Code_Block	B-Class
and	O	O
add	O	O
those	O	O
panels	O	O
to	O	O
GameWindow	B-Code_Block	B-Class
.	O	O

For	O	O
example	O	O
,	O	O
in	O	O
MainMenuPanel	B-Code_Block	B-Class
,	O	O
if	O	O
user	O	O
click	O	O
a	O	O
certain	O	O
label	O	O
or	O	O
button	O	B-User_Interface_Element
,	O	O
user	O	O
should	O	O
be	O	O
directed	O	O
another	O	O
panel	O	B-User_Interface_Element
.	O	O

I	O	O
am	O	O
using	O	O
only	O	O
one	O	O
frame	O	O
to	O	O
see	O	O
changes	O	O
.	O	O

So	O	O
how	O	O
can	O	O
I	O	O
change	O	O
between	O	O
panels	O	B-User_Interface_Element
and	O	O
see	O	O
its	O	O
effects	O	O
on	O	O
GameWindow	B-Code_Block	B-Class
frame	O	O
?	O	O

When	O	O
I	O	O
deploy	O	O
the	O	O
Tomcat	O	B-Application
project	O	O
,	O	O
the	O	O
console	O	B-Application
shows	O	O
the	O	O
error	O	O
:	O	O

I	O	O
spent	O	O
several	O	O
days	O	O
working	O	O
on	O	O
it	O	O
and	O	O
did	O	O
not	O	O
find	O	O
a	O	O
solution	O	O
to	O	O
the	O	O
problem	O	O
,	O	O
so	O	O
I	O	O
hope	O	O
to	O	O
be	O	O
able	O	O
to	O	O
get	O	O
help	O	O
,	O	O
thank	O	O
you	O	O
very	O	O
much	O	O
!	O	O

This	O	O
is	O	O
the	O	O
configuration	O	O
file	O	O
beans.xml	O	B-File_Name
:	O	O

I	O	O
've	O	O
noticed	O	O
a	O	O
common	O	O
bug	O	O
with	O	O
browser	O	B-Application
back	O	B-User_Interface_Element
button	O	I-User_Interface_Element
usage	O	O
on	O	O
my	O	O
web	O	O
app	O	O
where	O	O
hitting	O	O
the	O	O
back	O	B-User_Interface_Element
button	O	I-User_Interface_Element
after	O	O
logout	O	O
loads	O	O
a	O	O
cached	O	O
page	O	B-User_Interface_Element
where	O	O
the	O	O
user	O	O
appears	O	O
logged	O	O
in	O	O
(	O	O
though	O	O
they	O	O
are	O	O
n't	O	O
actually	O	O
)	O	O
.	O	O

I	O	O
found	O	O
a	O	O
lot	O	O
of	O	O
helpful	O	O
questions	O	O
with	O	O
helpful	O	O
answers	O	O
and	O	O
employed	O	O
the	O	O
fixes	O	O
folks	O	O
suggested	O	O
,	O	O
including	O	O
every	O	O
combination	O	O
of	O	O
suggested	O	O
Cache-Control	O	B-Library
options	O	O
in	O	O
the	O	O
header	O	B-User_Interface_Element
:	O	O

And	O	O
the	O	O
header	O	B-User_Interface_Element
works	O	O
on	O	O
most	O	O
browsers	O	B-Application
,	O	O
even	O	O
with	O	O
just	O	O
no-cache	O	B-Function
and	O	O
no-store	O	B-Function
,	O	O
but	O	O
no	O	O
header	O	B-User_Interface_Element
options	O	O
solve	O	O
this	O	O
on	O	O
Safari	O	B-Application
.	O	O

Sure	O	O
enough	O	O
,	O	O
the	O	O
most	O	O
reliable	O	O
way	O	O
I	O	O
can	O	O
find	O	O
to	O	O
resolve	O	O
this	O	O
for	O	O
Safari	O	B-Application
is	O	O
to	O	O
use	O	O
some	O	O
javascript	O	B-Language
as	O	O
such	O	O
which	O	O
forces	O	O
a	O	O
reload	O	O
:	O	O

The	O	O
javascript	O	B-Language
block	O	O
above	O	O
does	O	O
work	O	O
,	O	O
but	O	O
only	O	O
if	O	O
the	O	O
user	O	O
does	O	O
n't	O	O
disable	O	O
javascript	O	B-Language
via	O	O
Safari	O	B-Application
->	O	O
Preferences	O	O
->	O	O
Security	O	O
and	O	O
subsequently	O	O
hit	O	O
the	O	O
back	O	B-User_Interface_Element
button	O	I-User_Interface_Element
.	O	O

It	O	O
's	O	O
very	O	O
much	O	O
an	O	O
edge	O	O
case	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
kind	O	O
of	O	O
fascinated	O	O
that	O	O
such	O	O
a	O	O
popular	O	O
browser	O	B-Application
makes	O	O
such	O	O
a	O	O
trivial	O	O
bug	O	O
this	O	O
tricky	O	O
!	O	O

If	O	O
anybody	O	O
has	O	O
found	O	O
a	O	O
way	O	O
to	O	O
make	O	O
Safari	O	B-Application
play	O	O
nice	O	O
without	O	O
javascript	O	B-Language
I	O	O
'd	O	O
love	O	O
to	O	O
hear	O	O
how	O	O
.	O	O

Thanks	O	O
all	O	O
in	O	O
advance	O	O
!	O	O

I	O	O
am	O	O
newbie	O	O
to	O	O
ember.js	O	B-Library
and	O	O
node.I	O	O
want	O	O
to	O	O
send	O	O
email	O	O
using	O	O
mailgun	O	B-Library
in	O	O
an	O	O
ember.js	O	B-Library
app	O	O
,	O	O
but	O	O
ca	O	O
n't	O	O
find	O	O
a	O	O
way	O	O
to	O	O
do	O	O
that	O	O
.	O	O

Found	O	O
mailgun-js	O	B-Library
package	O	O
but	O	O
do	O	O
not	O	O
how	O	O
to	O	O
connect	O	O
this	O	O
package	O	O
with	O	O
ember.js	O	B-Library
using	O	O
express	O	O
.	O	O

Or	O	O
if	O	O
there	O	O
is	O	O
any	O	O
way	O	O
that	O	O
i	O	O
could	O	O
call	O	O
a	O	O
parse-cloud	O	O
function	O	O
in	O	O
ember	O	B-Library
controller	O	O
to	O	O
send	O	O
mail	O	O
.	O	O

Ember	O	B-Library
runs	O	O
in	O	O
the	O	O
browser	O	B-Application
while	O	O
sending	O	O
email	O	O
is	O	O
done	O	O
(	O	O
or	O	O
:	O	O
should	O	O
under	O	O
most	O	O
circumstances	O	O
be	O	O
done	O	O
)	O	O
on	O	O
the	O	O
server	O	B-Application
.	O	O

express	B-Code_Block	B-Code_Block
and	O	O
mailgun-js	B-Code_Block	B-Library
hint	O	O
at	O	O
that	O	O
that	O	O
's	O	O
what	O	O
you	O	O
really	O	O
want	O	O
to	O	O
do	O	O
(	O	O
as	O	O
they	O	O
are	O	O
server-side	O	B-Application
node	O	O
modules	O	O
)	O	O
.	O	O

You	O	O
'd	O	O
have	O	O
to	O	O
hook	O	O
the	O	O
mail-sending	O	O
into	O	O
the	O	O
REST	O	B-Library
backend	O	O
on	O	O
the	O	O
server	O	B-Application
or	O	O
provide	O	O
it	O	O
as	O	O
an	O	O
extra	O	O
service	O	O
that	O	O
you	O	O
might	O	O
access	O	O
through	O	O
a	O	O
jQuery-Ajax-Call	O	B-Library
from	O	O
your	O	O
ember	O	B-Library
app	O	O
.	O	O

I	O	O
have	O	O
a	O	O
WPF	O	B-Library
DataGrid	O	B-Class
with	O	O
the	O	O
following	O	O
definition	O	O
.	O	O

This	O	O
allows	O	O
me	O	O
to	O	O
have	O	O
the	O	O
user	O	O
selected	O	O
a	O	O
"	O	O
region	O	O
"	O	O
of	O	O
cells	O	O
.	O	O

The	O	O
DataGrid	O	B-Class
is	O	O
bound	O	O
to	O	O
an	O	O
observable	O	O
collection	O	O
.	O	O

The	O	O
XAML	O	B-Language
column	O	B-User_Interface_Element
definitions	O	O
have	O	O
some	O	O
columns	O	B-User_Interface_Element
hidden	O	O
,	O	O
some	O	O
visible	O	O
like	O	O
this	O	O
:	O	O

I	O	O
also	O	O
have	O	O
a	O	O
Right	O	O
Mouse	O	B-Device
Button	O	I-Device
context	O	B-User_Interface_Element
menu	O	I-User_Interface_Element
defined	O	O
for	O	O
the	O	O
DataGrid	O	B-Class
:	O	O

I	O	O
would	O	O
like	O	O
to	O	O
be	O	O
able	O	O
to	O	O
Click	O	O
,	O	O
Drag	O	O
and	O	O
Drop	O	O
a	O	O
copy	O	O
of	O	O
the	O	O
currently	O	O
selected	O	O
cells	O	B-User_Interface_Element
into	O	O
an	O	O
external	O	O
application	O	O
.	O	O

I	O	O
was	O	O
thinking	O	O
of	O	O
using	O	O
the	O	O
combination	O	O
of	O	O
pressing	O	O
the	O	O
"	O	O
Alt	O	B-Keyboard_IP
Key	O	O
"	O	O
and	O	O
Left	O	O
Mouse	O	B-Device
Button	O	I-Device
click	O	O
to	O	O
initiate	O	O
the	O	O
DragDrop	O	B-Class
operation	O	O
.	O	O

For	O	O
example	O	O
,	O	O
consider	O	O
the	O	O
"	O	O
irregular	O	O
"	O	O
selection	O	O
of	O	O
cells	O	B-User_Interface_Element
in	O	O
the	O	O
DataGrid	O	B-Class
:	O	O

I	O	O
am	O	O
unclear	O	O
on	O	O
how	O	O
to	O	O
proceed	O	O
and	O	O
have	O	O
several	O	O
questions	O	O
regarding	O	O
this	O	O
:	O	O

1)	O	O
What	O	O
events	O	O
do	O	O
I	O	O
override	O	O
so	O	O
that	O	O
the	O	O
/Left	O	O
Mouse	O	B-Device
click	O	O
do	O	O
not	O	O
affect	O	O
the	O	O
currently	O	O
selected	O	O
cells	O	B-User_Interface_Element
?	O	O

2)	O	O
How	O	O
do	O	O
I	O	O
determine	O	O
whether	O	O
the	O	O
Left	O	O
Mouse	O	B-Device
Button	O	I-Device
click	O	O
is	O	O
occurring	O	O
within	O	O
a	O	O
region	O	O
of	O	O
selected	O	O
cells	O	B-User_Interface_Element
?	O	O

How	O	O
do	O	O
I	O	O
handle	O	O
the	O	O
data	O	O
piece	O	O
?	O	O

3)	O	O
Once	O	O
I	O	O
've	O	O
determined	O	O
the	O	O
above	O	O
,	O	O
what	O	O
is	O	O
the	O	O
next	O	O
step	O	O
?	O	O

Do	O	O
copy	O	O
data	O	O
into	O	O
the	O	O
clipboard	O	B-Application
for	O	O
use	O	O
on	O	O
the	O	O
external	O	O
drop	O	O
?	O	O

4)	O	O
What	O	O
events	O	O
(	O	O
if	O	O
any	O	O
)	O	O
do	O	O
I	O	O
need	O	O
to	O	O
override	O	O
on	O	O
the	O	O
DataGrid	O	B-Class
in	O	O
order	O	O
for	O	O
this	O	O
to	O	O
work	O	O
?	O	O

Thanks	O	O

the	O	O
basic	O	O
events	O	O
to	O	O
drag	O	O
and	O	O
drop	O	O
are	O	O
:	O	O
events	O	O
to	O	O
drag	O	O
and	O	O
drop	O	O

Specially	O	O
the	O	O
DragLeave	O	B-Function
and	O	O
Drop	O	B-Function
to	O	O
do	O	O
what	O	O
you	O	O
want	O	O
.	O	O

Then	O	O
you	O	O
need	O	O
to	O	O
control	O	O
(	O	O
delete/add	O	O
)	O	O
the	O	O
GridData	O	B-Class
property	O	O
from	O	O
your	O	O
VM	O	B-Application
to	O	O
search	O	O
and	O	O
move	O	O
the	O	O
values	O	O
.	O	O

I	O	O
strongly	O	O
recommend	O	O
3rd	O	O
party	O	O
like	O	O
Telerik	O	B-Application
to	O	O
do	O	O
it	O	O
.	O	O

Here	O	O
is	O	O
your	O	O
complete	O	O
answer	O	O
I	O	O
believe	O	O
.	O	O

Here	O	O
you	O	O
need	O	O
to	O	O
have	O	O
the	O	O
shift	O	B-Keyboard_IP
key	O	O
down	O	O
to	O	O
signal	O	O
the	O	O
drag	O	O
.	O	O

This	O	O
is	O	O
needed	O	O
to	O	O
disambiguate	O	O
the	O	O
click	O	O
and	O	O
drag	O	O
that	O	O
is	O	O
used	O	O
in	O	O
the	O	O
DataGrid	O	B-Class
to	O	O
select	O	O
cells	O	B-User_Interface_Element
.	O	O

You	O	O
might	O	O
use	O	O
some	O	O
other	O	O
mechanism	O	O
such	O	O
as	O	O
context	O	O
menu	O	B-User_Interface_Element
item	O	O
.	O	O

The	O	O
clipboard	O	B-Application
is	O	O
key	O	O
to	O	O
any	O	O
drag	O	O
and	O	O
drop	O	O
operation	O	O
.	O	O

What	O	O
you	O	O
are	O	O
doing	O	O
is	O	O
putting	O	O
data	O	O
on	O	O
the	O	O
clipboard	O	B-Application
in	O	O
various	O	O
formats	O	O
that	O	O
the	O	O
target	O	O
of	O	O
the	O	O
drop	O	O
will	O	O
recognize	O	O
.	O	O

In	O	O
this	O	O
example	O	O
only	O	O
plain	O	O
text	O	O
is	O	O
used	O	O
.	O	O

But	O	O
you	O	O
might	O	O
want	O	O
to	O	O
create	O	O
rich	O	B-File_Type
text	O	I-File_Type
or	O	O
HTML	O	B-File_Type
or	O	O
any	O	O
number	O	O
of	O	O
other	O	O
formats	O	O
.	O	O

The	O	O
external	O	O
application	O	O
you	O	O
are	O	O
dropping	O	O
on	O	O
must	O	O
be	O	O
registered	O	O
as	O	O
a	O	O
drop	O	O
target	O	O
.	O	O

You	O	O
cannot	O	O
force	O	O
the	O	O
other	O	O
app	O	O
to	O	O
respond	O	O
to	O	O
the	O	O
drop	O	O
...	O	O
it	O	O
must	O	O
be	O	O
listening	O	O
for	O	O
it	O	O
.	O	O

So	O	O
this	O	O
example	O	O
will	O	O
work	O	O
with	O	O
Word	O	B-Application
and	O	O
Excel	O	B-Application
.	O	O

It	O	O
will	O	O
not	O	O
work	O	O
with	O	O
Notepad	O	B-Application
.	O	O

I	O	O
believe	O	O
all	O	O
4	O	O
items	O	O
are	O	O
satisfied	O	O
:	O	O

Override	O	O
the	O	O
preview	O	B-Function
mouse	O	I-Function
down	O	I-Function
event	O	O
.	O	O

The	O	O
original	O	O
source	O	O
of	O	O
the	O	O
mouse	O	B-Device
event	O	O
comes	O	O
from	O	O
the	O	O
data	O	B-Class
grid	O	I-Class
cell	O	B-User_Interface_Element
.	O	O

If	O	O
the	O	O
cell	O	B-User_Interface_Element
is	O	O
selected	O	O
then	O	O
you	O	O
are	O	O
within	O	O
the	O	O
block	O	O
of	O	O
cells	O	B-User_Interface_Element
that	O	O
is	O	O
selected	O	O
.	O	O

For	O	O
the	O	O
selected	O	O
cells	O	B-User_Interface_Element
,	O	O
gather	O	O
the	O	O
data	O	O
from	O	O
the	O	O
bindings	O	O
and	O	O
organize	O	O
into	O	O
a	O	O
grid	O	B-User_Interface_Element
.	O	O

As	O	O
a	O	O
baseline	O	O
use	O	O
plain	O	O
text	O	O
but	O	O
optionally	O	O
add	O	O
other	O	O
formats	O	O
as	O	O
well	O	O
.	O	O

Use	O	O
the	O	O
DragDrop	O	B-Class
class	O	O
to	O	O
actually	O	O
implement	O	O
the	O	O
drag	O	O
and	O	O
drop	O	O
.	O	O

Override	O	O
preview	O	B-Function
mouse	O	I-Function
down	O	I-Function
.	O	O

I	O	O
've	O	O
seen	O	O
examples	O	O
using	O	O
crc	O	B-Function
,	O	O
but	O	O
the	O	O
examples	O	O
I	O	O
've	O	O
got	O	O
my	O	O
head	O	O
round	O	O
work	O	O
with	O	O
generating	O	O
a	O	O
checksum	O	O
for	O	O
entire	O	O
table	O	B-Data_Structure
data	O	O
(	O	O
for	O	O
use	O	O
with	O	O
replication	O	O
and	O	O
data	O	O
validation	O	O
)	O	O
.	O	O

For	O	O
example	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
assign	O	O
a	O	O
checksum	O	O
value	O	O
to	O	O
each	O	O
entry	O	O
in	O	O
a	O	O
MYSQL	O	B-Application
database	O	O
,	O	O
based	O	O
on	O	O
a	O	O
series	O	O
of	O	O
field	O	O
values	O	O
(	O	O
shown	O	O
above	O	O
)	O	O
.	O	O

The	O	O
idea	O	O
being	O	O
that	O	O
when	O	O
a	O	O
specific	O	O
set	O	O
of	O	O
fields	O	O
have	O	O
the	O	O
same	O	O
data	O	O
in	O	O
,	O	O
the	O	O
checksum	O	O
generated	O	O
would	O	O
be	O	O
the	O	O
same	O	O
and	O	O
I	O	O
can	O	O
deal	O	O
with	O	O
duplicate	O	O
entries	O	O
by	O	O
checking	O	O
the	O	O
checksum	O	O
value	O	O
,	O	O
instead	O	O
of	O	O
lengthy	O	O
checks	O	O
of	O	O
the	O	O
field	O	O
to	O	O
see	O	O
if	O	O
they	O	O
contain	O	O
matching	O	O
data	O	O
.	O	O

I	O	O
've	O	O
seen	O	O
this	O	O
in	O	O
SQL	O	B-Application
SERVER	O	I-Application
,	O	O
using	O	O
checksum_binary	O	O
,	O	O
which	O	O
is	O	O
so	O	O
fast	O	O
but	O	O
is	O	O
there	O	O
a	O	O
better	O	O
solution	O	O
to	O	O
apply	O	O
a	O	O
checksum	O	O
value	O	O
to	O	O
individual	O	O
fields	O	O
for	O	O
comparison	O	O
or	O	O
should	O	O
I	O	O
stick	O	O
with	O	O
trying	O	O
to	O	O
modify	O	O
the	O	O
above	O	O
?	O	O

I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
you	O	O
are	O	O
doing	O	O
something	O	O
this	O	O
complicated	O	O
:	O	O

A	O	O
checksum	O	O
for	O	O
each	O	O
rows	O	B-Data_Structure
with	O	O
3	O	O
columns	O	B-Data_Structure
:	O	O

To	O	O
insert	O	O
this	O	O
new	O	O
checksum	O	O
:	O	O

Alter	O	O
the	O	O
table	O	B-Data_Structure
to	O	O
add	O	O
the	O	O
new	O	O
column	O	B-Data_Structure
then	O	O

A	O	O
note	O	O
the	O	O
checksum	O	O
wo	O	O
n't	O	O
be	O	O
100%	O	O
safe	O	O
as	O	O
if	O	O
the	O	O
last	O	O
character	O	B-Data_Type
of	O	O
1	O	O
column	O	B-Data_Structure
is	O	O
not	O	O
there	O	O
but	O	O
find	O	O
in	O	O
the	O	O
next	O	O
column	O	B-Data_Structure
the	O	O
hash	O	O
will	O	O
be	O	O
the	O	O
same	O	O
.	O	O

Maybe	O	O
you	O	O
can	O	O
add	O	O
a	O	O
separator	O	O
in	O	O
the	O	O
concat	O	B-Code_Block
to	O	O
be	O	O
sure	O	O
:	O	O

I	O	O
just	O	O
started	O	O
messing	O	O
with	O	O
node.js	O	B-Library
and	O	O
I	O	O
'm	O	O
already	O	O
having	O	O
problems	O	O
,	O	O
I	O	O
have	O	O
no	O	O
idea	O	O
how	O	O
to	O	O
even	O	O
start	O	O
debugging	O	O
this.	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
just	O	O
use	O	O
npm	O	B-Application
just	O	O
install	O	O
each	O	O
package	O	O
with	O	O
a	O	O
separate	O	O
command	O	O

On	O	O
my	O	O
computer	O	O
it	O	O
works	O	O
.	O	O

My	O	O
suggestion	O	O
is	O	O
to	O	O
use	O	O
the	O	O
"	O	O
package.json	O	B-File_Name
"	O	O
file	O	O
.	O	O

In	O	O
that	O	O
file	O	O
you	O	O
can	O	O
specify	O	O
the	O	O
libraries	O	O
you	O	O
need	O	O
and	O	O
it	O	O
's	O	O
going	O	O
to	O	O
download	O	O
the	O	O
dependencies	O	O
for	O	O
you	O	O
.	O	O

For	O	O
example	O	O

and	O	O
just	O	O
execute	O	O

And	O	O
npm	O	B-Application
will	O	O
make	O	O
all	O	O
for	O	O
you	O	O
.	O	O

It	O	O
will	O	O
create	O	O
a	O	O
"	O	O
node_modules	O	B-File_Name
"	O	O
where	O	O
there	O	O
are	O	O
the	O	O
dependencies	O	O
.	O	O

Just	O	O
create	O	O
your	O	O
js	O	B-Language
files	O	O
in	O	O
the	O	O
same	O	O
directory	O	O
of	O	O
"	O	O
node_modules	O	B-File_Name
"	O	O
and	O	O
the	O	O
dependencies	O	O
will	O	O
be	O	O
all	O	O
available	O	O
to	O	O
be	O	O
included	O	O
.	O	O

As	O	O
you	O	O
can	O	O
see	O	O
in	O	O
the	O	O
package.json	O	B-File_Name
file	O	O
,	O	O
near	O	O
every	O	O
dependency	O	O
,	O	O
there	O	O
is	O	O
a	O	O
"	O	B-Value
*	O	I-Value
"	O	I-Value
,	O	O
that	O	O
means	O	O
"	O	B-Value
all	O	I-Value
versions	O	I-Value
"	O	I-Value
.	O	O

If	O	O
you	O	O
want	O	O
,	O	O
you	O	O
can	O	O
set	O	O
a	O	O
specific	O	O
version	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
know	O	O
more	O	O
about	O	O
this	O	O
,	O	O
that	O	O
's	O	O
a	O	O
useful	O	O
link	O	O
:	O	O
https://npmjs.org/doc/json.html	O	O

I	O	O
want	O	O
a	O	O
placeholder	O	O
value	O	O
to	O	O
hold	O	O
the	O	O
answer	O	O
to	O	O
a	O	O
calculation	O	O
,	O	O
however	O	O
the	O	O
compiler	O	B-Application
does	O	O
n't	O	O
like	O	O
it	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code.	O	O
.	O	O

Would	O	O
really	O	O
appreciate	O	O
it	O	O
if	O	O
you	O	O
could	O	O
help	O	O
me	O	O
out	O	O
.	O	O

final	B-Code_Block	B-Data_Type
is	O	O
a	O	O
keyword	O	O
.	O	O

Try	O	O
changing	O	O
your	O	O
float	B-Code_Block	B-Data_Type
final	I-Code_Block	B-Variable
to	O	O
another	O	O
name	O	O
like	O	O
float	B-Code_Block	B-Data_Type
finalAnswer	I-Code_Block	B-Variable

It	O	O
is	O	O
because	O	O
you	O	O
use	O	O
the	O	O
keyword	O	O
final	O	B-Data_Type
.	O	O

Change	O	O
your	O	O
name	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
debug	O	O
my	O	O
application	O	O
.	O	O

I	O	O
know	O	O
for	O	O
a	O	O
fact	O	O
that	O	O
code	O	O
in	O	O
a	O	O
given	O	O
class	O	O
A	O	B-Class
is	O	O
executing	O	O
because	O	O
I	O	O
have	O	O
log	O	O
statements	O	O
in	O	O
methods	O	O
in	O	O
that	O	O
class	O	O
printing	O	B-Class
when	O	O
I	O	O
run	O	O
the	O	O
app	O	O
,	O	O
however	O	O
the	O	O
problem	O	O
is	O	O
that	O	O
when	O	O
I	O	O
set	O	O
breakpoints	O	O
on	O	O
that	O	O
code	O	O
which	O	O
I	O	O
know	O	O
is	O	O
executing	O	O
off	O	O
of	O	O
the	O	O
main	O	O
thread	O	O
in	O	O
class	O	O
A	O	B-Class
,	O	O
and	O	O
debug	O	O
the	O	O
app	O	O
,	O	O
the	O	O
breakpoints	O	O
do	O	O
n't	O	O
pause	O	O
execution	O	O
.	O	O

Breakpoints	O	O
I	O	O
have	O	O
set	O	O
in	O	O
onResume()	O	B-Function
of	O	O
an	O	O
Activity	O	O
class	O	O
B	O	B-Class
are	O	O
executing	O	O
,	O	O
so	O	O
there	O	O
's	O	O
something	O	O
wrong	O	O
with	O	O
how	O	O
Android	O	B-Application
Studio	O	I-Application
is	O	O
choosing	O	O
to	O	O
execute	O	O
breakpoints	O	O
.	O	O

My	O	O
issue	O	O
seems	O	O
similar	O	O
to	O	O
this	O	O
:	O	O
Android	O	B-Application
Studio	O	I-Application
breakpoints	O	O
not	O	O
working	O	O
in	O	O
doinbackground	O	B-Function

I	O	O
've	O	O
tried	O	O
that	O	O
user	O	O
's	O	O
workaround	O	O
but	O	O
with	O	O
no	O	O
luck	O	O
.	O	O

I	O	O
deleted	O	O
my	O	O
.gradle	O	B-File_Name
,	O	O
and	O	O
.AndroidStudioPreview	O	B-File_Name
folders	O	O
,	O	O
then	O	O
restarted	O	O
my	O	O
computer	O	B-Device
and	O	O
restarted	O	O
Android	O	B-Application
Studio	O	I-Application
.	O	O

My	O	O
breakpoints	O	O
are	O	O
working	O	O
properly	O	O
now	O	O
.	O	O

So	O	O
it	O	O
was	O	O
an	O	O
issue	O	O
with	O	O
Android	O	B-Application
Studio	O	I-Application
,	O	O
and	O	O
the	O	O
nuclear	O	O
option	O	O
worked	O	O
.	O	O

I	O	O
have	O	O
two	O	O
dataframes	O	B-Data_Structure
.	O	O

The	O	O
first	O	O
is	O	O
my	O	O
main	O	B-Variable
pool	O	O
,	O	O
and	O	O
the	O	O
second	O	O
is	O	O
a	O	O
"	O	O
list	O	B-Data_Structure
"	O	O
of	O	O
names	O	O
that	O	O
I	O	O
want	O	O
to	O	O
filter	O	O
on	O	O
.	O	O

main	O	O
:	O	O

list1	O	B-Variable
(	O	O
currently	O	O
in	O	O
a	O	O
dataframe	O	B-Data_Structure
)	O	O

I	O	O
want	O	O
to	O	O
use	O	O
dplyr::filter	O	B-Function
and	O	O
the	O	O
%in%	O	B-Code_Block
operator	O	O
to	O	O
subset	O	O
the	O	O
main	O	B-Variable
pool	O	O
:	O	O

I	O	O
thought	O	O
the	O	O
above	O	O
would	O	O
work	O	O
,	O	O
but	O	O
it	O	O
's	O	O
creating	O	O
a	O	O
0	O	B-Value
row	O	B-Data_Structure
dataframe	O	I-Data_Structure
.	O	O

Richard	O	B-User_Name
's	O	O
suggestion	O	O
worked	O	O
!	O	O

I	O	O
'm	O	O
developing	O	O
a	O	O
single-page	O	O
web	O	O
application	O	O
using	O	O
Backbone	O	B-Library
and	O	O
Laravel	O	B-Library
.	O	O

I	O	O
've	O	O
set	O	O
my	O	O
router	O	B-Device
to	O	O
use	O	O
pushState	O	B-Function
and	O	O
configured	O	O
Laravel	O	B-Library
to	O	O
send	O	O
all	O	O
other	O	O
requests	O	O
to	O	O
the	O	O
main	O	O
view	O	O
of	O	O
the	O	O
backbone	O	B-Library
application	O	O
,	O	O
where	O	O
backbone	O	B-Library
takes	O	O
care	O	O
of	O	O
the	O	O
routing	O	O
.	O	O

My	O	O
problem/question	O	O
is	O	O
as	O	O
follows	O	O
:	O	O

I	O	O
have	O	O
a	O	O
route	O	O
called	O	O
'	O	O
dashboard	O	B-Function
'	O	O
,	O	O
this	O	O
route	O	O
is	O	O
the	O	O
main	O	O
application	O	O
view	O	O
and	O	O
is	O	O
shown	O	O
after	O	O
login	O	O
.	O	O

It	O	O
uses	O	O
a	O	O
collection	O	B-Class
called	O	O
Clients	O	B-Class
.	O	O

The	O	O
Dash.Views.Dashboard	B-Code_Block	B-Class
view	O	O
takes	O	O
care	O	O
of	O	O
all	O	O
the	O	O
views	O	O
in	O	O
the	O	O
application	O	O
,	O	O
when	O	O
calling	O	O
the	O	O
renderDashboard()	O	B-Function
;	O	O
method	O	O
,	O	O
it	O	O
starts	O	O
rendering	O	O
all	O	O
client	O	B-Application
views	O	O
.	O	O

This	O	O
is	O	O
where	O	O
it	O	O
gets	O	O
interesting	O	O
.	O	O

The	O	O
code	O	O
for	O	O
rendering	O	O
all	O	O
the	O	O
client	O	O
views	O	O
is	O	O
as	O	O
follows	O	O
:	O	O

with	O	O
the	O	O
above	O	O
code	O	O
,	O	O
it	O	O
works	O	O
in	O	O
all	O	O
cases	O	O
.	O	O

With	O	O
that	O	O
i	O	O
mean	O	O
when	O	O
I	O	O
log	O	O
in	O	O
first	O	O
and	O	O
the	O	O
application	O	O
routes	O	O
me	O	O
to	O	O
the	O	O
dashboard	O	B-User_Interface_Element
view	O	O
all	O	O
the	O	O
clients	O	B-Application
gets	O	O
rendered	O	O
and	O	O
appended	O	O
to	O	O
the	O	O
DOM	O	O
,	O	O
the	O	O
same	O	O
thing	O	O
happens	O	O
when	O	O
I	O	O
access	O	O
/dashboard	B-Code_Block	B-User_Interface_Element
immediately	O	O
(	O	O
afther	O	O
the	O	O
application	O	O
checks	O	O
if	O	O
i	O	O
'm	O	O
logged	O	O
in	O	O
)	O	O
.	O	O

But	O	O
,	O	O
when	O	O
I	O	O
use	O	O
the	O	O
following	O	O
code	O	O
it	O	O
does	O	O
n't	O	O
load	O	O
the	O	O
client	O	B-Application
views	O	O
when	O	O
I	O	O
first	O	O
log	O	O
in	O	O
.	O	O

It	O	O
does	O	O
load	O	O
the	O	O
client	O	B-Application
views	O	O
when	O	O
i	O	O
access	O	O
/dashboard	B-Code_Block	B-User_Interface_Element
directly	O	O
.	O	O

It	O	O
took	O	O
me	O	O
a	O	O
while	O	O
to	O	O
figure	O	O
out	O	O
that	O	O
the	O	O
fix	O	O
of	O	O
the	O	O
problem	O	O
was	O	O
that	O	O
I	O	O
had	O	O
to	O	O
replace	O	O
this	B-Code_Block	B-Variable
.	I-Code_Block	I-Variable
$el	I-Code_Block	I-Variable
with	O	O
$(this.el)	B-Code_Block	B-Variable
,	O	O
but	O	O
I	O	O
alway	O	O
's	O	O
thought	O	O
it	O	O
did	O	O
n't	O	O
matter	O	O
because	O	O
they	O	O
are	O	O
essentially	O	O
the	O	O
same	O	O
,	O	O
or	O	O
am	O	O
I	O	O
wrong	O	O
in	O	O
this	O	O
assumption	O	O
?	O	O

Can	O	O
someone	O	O
explain	O	O
to	O	O
me	O	O
this	O	O
weird	O	O
behaviour	O	O
?	O	O

As	O	O
requested	O	O
,	O	O
here	O	O
is	O	O
my	O	O
global	O	B-Data_Type
Dashboard	O	B-Class
view	O	O

I	O	O
'd	O	O
guess	O	O
that	O	O
your	O	O
problem	O	O
is	O	O
right	O	O
here	O	O
:	O	O

If	O	O
there	O	O
is	O	O
no	O	O
.dashboard	B-Code_Block	B-Variable
then	O	O
you	O	O
directly	O	O
assign	O	O
to	O	O
this.el	B-Code_Block	B-Variable
and	O	O
that	O	O
's	O	O
a	O	O
mistake	O	O
as	O	O
it	O	O
wo	O	O
n't	O	O
update	O	O
this	B-Code_Block	B-Variable
.	I-Code_Block	I-Variable
$	I-Code_Block	I-Variable
el	I-Code_Block	I-Variable
.	O	O

The	O	O
result	O	O
is	O	O
that	O	O
this.el	B-Code_Block	B-Variable
and	O	O
this	B-Code_Block	B-Variable
.	I-Code_Block	I-Variable
$el	I-Code_Block	I-Variable
reference	O	O
different	O	O
things	O	O
and	O	O
nothing	O	O
works	O	O
.	O	O

You	O	O
should	O	O
use	O	O
setElement	B-Code_Block	B-Function
to	O	O
change	O	O
a	O	O
view	O	O
's	O	O
el	B-Code_Block	B-Variable
:	O	O

So	O	O
you	O	O
should	O	O
be	O	O
saying	O	O
this	O	O
:	O	O

I	O	O
ca	O	O
n't	O	O
work	O	O
this	O	O
out	O	O
.	O	O

Or	O	O
am	O	O
I	O	O
missing	O	O
something	O	O
?	O	O

It	O	O
does	O	O
n't	O	O
seem	O	O
to	O	O
work	O	O
?	O	O

it	O	O
wo	O	O
n't	O	O
know	O	O
about	O	O
the	O	O
old	O	O
params	O	O
unless	O	O
you	O	O
merge	O	O
them	O	O
in	O	O
and	O	O
send	O	O
them	O	O
on	O	O
.	O	O

From	O	O
the	O	O
documentation	O	O
:	O	O

You	O	O
're	O	O
passing	O	O
a	O	O
String	O	B-Data_Type
as	O	O
the	O	O
first	O	O
argument	O	O
,	O	O
so	O	O
it	O	O
's	O	O
using	O	O
the	O	O
3rd	O	O
option	O	O
.	O	O

Your	O	O
second	O	O
parameter	O	O
is	O	O
interpreted	O	O
as	O	O
the	O	O
value	O	O
for	O	O
the	O	O
response_status	B-Code_Block	B-Variable
parameter	O	O
.	O	O

So	O	O
,	O	O
if	O	O
your	O	O
redirect	O	O
is	O	O
an	O	O
internal	O	O
one	O	O
(	O	O
to	O	O
the	O	O
same	O	O
app	O	O
)	O	O
,	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
specify	O	O
the	O	O
scheme	O	O
and	O	O
hostname	O	O
.	O	O

Just	O	O
use	O	O

If	O	O
it	O	O
's	O	O
an	O	O
external	O	O
URL	O	O
,	O	O
build	O	O
the	O	O
complete	O	O
URL	O	O
before	O	O
redirecting	O	O
:	O	O

Hi	O	O
i	O	O
have	O	O
created	O	O
app	O	O
using	O	O
altbeacon	O	B-Library
reference	O	O
app	O	O
.	O	O

And	O	O
i	O	O
want	O	O
to	O	O
call	O	O
didEnterRegion	O	B-Function
using	O	O
bootstrap	O	B-Class
notifier	O	I-Class
when	O	O
app	O	O
sees	O	O
beacon	O	B-Device
in	O	O
background	O	O
.	O	O

But	O	O
i	O	O
dont	O	O
want	O	O
it	O	O
to	O	O
scan	O	O
background	O	O
every	O	O
5	O	O
minutes	O	O
,	O	O
i	O	O
want	O	O
my	O	O
app	O	O
react	O	O
to	O	O
new	O	O
beacon	O	B-Device
immediately	O	O
.	O	O

Is	O	O
there	O	O
some	O	O
way	O	O
to	O	O
do	O	O
this	O	O
?	O	O

My	O	O
Code	O	O
:	O	O

}	O	B-Code_Block

You	O	O
can	O	O
increase	O	O
the	O	O
frequency	O	O
of	O	O
background	O	O
scans	O	O
with	O	O
the	O	O
following	O	O
code	O	O
:	O	O

This	O	O
will	O	O
make	O	O
the	O	O
background	O	O
detection	O	O
times	O	O
as	O	O
fast	O	O
as	O	O
in	O	O
the	O	O
foreground	O	O
.	O	O

But	O	O
be	O	O
forewarned	O	O
,	O	O
this	O	O
will	O	O
make	O	O
your	O	O
app	O	O
use	O	O
lots	O	O
of	O	O
battery	O	O
power	O	O
.	O	O

You	O	O
can	O	O
tweak	O	O
the	O	O
between	O	O
scan	O	O
period	O	O
to	O	O
your	O	O
tolerance	O	O
for	O	O
battery	O	O
drain	O	O
.	O	O

As	O	O
you	O	O
noted	O	O
,	O	O
the	O	O
default	O	O
is	O	O
5	O	O
minutes	O	O
(	O	O
5*3600l	O	O
)	O	O
.	O	O

Android	O	B-Operating_System
L	O	B-Version
has	O	O
new	O	O
scanning	O	B-Library
APIs	O	I-Library
which	O	O
promise	O	O
to	O	O
help	O	O
improve	O	O
this	O	O
tradeoff	O	O
between	O	O
detection	O	O
timers	O	O
and	O	O
battery	O	O
usage	O	O
.	O	O

But	O	O
for4.3	O	B-Version
and	O	O
4.4	O	B-Version
apps	O	O
,	O	O
you	O	O
need	O	O
to	O	O
make	O	O
a	O	O
judgment	O	O
call	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
Java	O	B-Language
6	O	B-Version
.	O	O

Do	O	O
you	O	O
think	O	O
there	O	O
's	O	O
a	O	O
reason	O	O
why	O	O
there	O	O
are	O	O
conditional	O	O
expressions	O	O

and	O	O
not	O	O
loop	O	O
expressions	O	O

which	O	O
adds	O	O
elements	O	O
from	O	O
schedule	O	O
into	O	O
weeklyPlan	O	B-Variable
while	O	O
hasNext()	B-Code_Block	B-Function
.	O	O

Or	O	O
do	O	O
some	O	O
languages	O	O
have	O	O
this	O	O
feature	O	O
or	O	O
something	O	O
similar	O	O
?	O	O

These	O	O
"	O	O
loop	O	O
expressions	O	O
"	O	O
,	O	O
in	O	O
a	O	O
slightly	O	O
different	O	O
form	O	O
,	O	O
are	O	O
called	O	O
closures	O	O
.	O	O

In	O	O
groovy-code	O	B-Language
:	O	O

That	O	O
is	O	O
-	O	O
you	O	O
can	O	O
define	O	O
what	O	O
happens	O	O
with	O	O
each	O	O
object	O	O
of	O	O
the	O	O
schedule	B-Code_Block	B-Variable
collection	O	O
.	O	O

Java	O	B-Language
does	O	O
not	O	O
yet	O	O
support	O	O
closures	O	O
.	O	O

There	O	O
it	O	O
is	O	O
implemented	O	O
with	O	O
anonymous	O	O
classes	O	O
.	O	O

Of	O	O
course	O	O
closures	O	O
are	O	O
more	O	O
than	O	O
that	O	O
,	O	O
and	O	O
this	O	O
is	O	O
only	O	O
one	O	O
of	O	O
their	O	O
applications	O	O
.	O	O

I	O	O
think	O	O
it	O	O
's	O	O
because	O	O
conditional	O	O
expressions	O	O
are	O	O
much	O	O
easier	O	O
to	O	O
implement	O	O
without	O	O
having	O	O
to	O	O
worry	O	O
about	O	O
pesky	O	O
details	O	O
.	O	O

For	O	O
example	O	O
,	O	O
looking	O	O
at	O	O
your	O	O
code	O	O
,	O	O
are	O	O
you	O	O
saying	O	O
that	O	O
weeklyPlan.add	O	B-Function
will	O	O
be	O	O
called	O	O
multiple	O	O
times	O	O
?	O	O

In	O	O
that	O	O
case	O	O
,	O	O
the	O	O
scope	O	O
of	O	O
your	O	O
=>	B-Code_Block	B-Code_Block
operator	O	O
just	O	O
jumped	O	O
outside	O	O
of	O	O
the	O	O
parentheses	O	O
that	O	O
contain	O	O
it	O	O
.	O	O

C#	O	B-Language
has	O	O
features	O	O
in	O	O
LINQ	O	B-Library
that	O	O
can	O	O
perform	O	O
similar	O	O
actions	O	O
to	O	O
what	O	O
you	O	O
're	O	O
describing	O	O
.	O	O

It	O	O
implements	O	O
these	O	O
using	O	O
closures	O	O
and	O	O
extension	O	O
methods	O	O
:	O	O

But	O	O
these	O	O
are	O	O
much	O	O
more	O	O
tricky	O	O
language	O	O
constructs	O	O
than	O	O
Java	O	B-Language
started	O	O
out	O	O
with	O	O
and	O	O
the	O	O
.NET	O	B-Library
runtime	O	O
has	O	O
been	O	O
able	O	O
to	O	O
change	O	O
much	O	O
more	O	O
rapidly	O	O
than	O	O
the	O	O
Java	O	B-Language
platform	O	O
has	O	O
,	O	O
largely	O	O
for	O	O
political	O	O
reasons	O	O
.	O	O

Java	O	B-Language
7	O	B-Version
was	O	O
supposed	O	O
to	O	O
feature	O	O
closures	O	O
,	O	O
but	O	O
they	O	O
got	O	O
pushed	O	O
back	O	O
to	O	O
the	O	O
"	O	O
next	O	O
version	O	O
.	O	O
"	O	O

I	O	O
always	O	O
read	O	O
that	O	O
,	O	O
at	O	O
any	O	O
given	O	O
time	O	O
,	O	O
the	O	O
processor	O	B-Device
can	O	O
only	O	O
run	O	O
one	O	O
process	O	O
at	O	O
a	O	O
time	O	O
.	O	O

So	O	O
one	O	O
and	O	O
only	O	O
one	O	O
process	O	O
is	O	O
in	O	O
state	O	O
running	B-Code_Block	O
.	O	O

However	O	O
,	O	O
we	O	O
can	O	O
have	O	O
a	O	O
number	O	O
of	O	O
runnable	O	O
processes	O	O
.	O	O

These	O	O
are	O	O
all	O	O
of	O	O
these	O	O
processes	O	O
who	O	O
are	O	O
waiting	O	O
for	O	O
the	O	O
scheduler	O	O
to	O	O
schedule	O	O
their	O	O
execution	O	O
.	O	O

At	O	O
any	O	O
given	O	O
time	O	O
,	O	O
do	O	O
all	O	O
these	O	O
runnable	O	O
processes	O	O
exist	O	O
in	O	O
user	O	O
address	O	O
space	O	O
?	O	O

Or	O	O
has	O	O
the	O	O
currently	O	O
running	O	O
process	O	O
in	O	O
user	O	O
address	O	O
space	O	O
,	O	O
and	O	O
it	O	O
is	O	O
only	O	O
once	O	O
they	O	O
are	O	O
scheduled	O	O
that	O	O
they	O	O
are	O	O
brought	O	O
back	O	O
to	O	O
RAM	O	B-Device
from	O	O
disk	O	B-Device
.	O	O

In	O	O
which	O	O
case	O	O
,	O	O
does	O	O
it	O	O
mean	O	O
that	O	O
the	O	O
kernel	O	B-Application
keeps	O	O
the	O	O
process	O	O
task	O	O
descriptor	O	O
in	O	O
its	O	O
list	O	O
of	O	O
all	O	O
runnable	O	O
processes	O	O
even	O	O
if	O	O
they	O	O
are	O	O
in	O	O
disk	O	B-Device
?	O	O

I	O	O
guess	O	O
you	O	O
can	O	O
tell	O	O
I	O	O
am	O	O
confused	O	O
.	O	O

If	O	O
CPU	O	B-Device
supports	O	O
virtual	O	O
memory	O	O
addressing	O	O
,	O	O
each	O	O
process	O	O
has	O	O
a	O	O
unique	O	O
view	O	O
of	O	O
the	O	O
memory	O	O
.	O	O

Two	O	O
different	O	O
processes	O	O
that	O	O
tries	O	O
to	O	O
read	O	O
from	O	O
the	O	O
same	O	O
memory	O	O
address	O	O
,	O	O
will	O	O
map	O	O
to	O	O
different	O	O
location	O	O
in	O	O
physical	O	O
memory	O	O
,	O	O
unless	O	O
the	O	O
memory	O	O
maps	O	O
tells	O	O
otherwize	O	O
(	O	O
shared	O	O
memory	O	O
,	O	O
like	O	O
DLL	O	B-File_Type
files	O	O
are	O	O
mapped	O	O
read	O	O
only	O	O
like	O	O
this	O	O
for	O	O
instance	O	O
)	O	O

If	O	O
CPU	O	B-Device
does	O	O
not	O	O
support	O	O
virtual	O	O
memory	O	O
,	O	O
but	O	O
only	O	O
memory	O	O
protection	O	O
,	O	O
the	O	O
memory	O	O
from	O	O
the	O	O
other	O	O
processes	O	O
will	O	O
be	O	O
protected	O	O
away	O	O
,	O	O
so	O	O
that	O	O
the	O	O
running	O	O
process	O	O
can	O	O
only	O	O
access	O	O
its	O	O
own	O	O
memory	O	O
.	O	O

I	O	O
have	O	O
Login	O	O
page	O	B-User_Interface_Element
without	O	O
Layout	O	O
.	O	O

I	O	O
'm	O	O
try	O	O
to	O	O
do	O	O
login	O	O
using	O	O
ajax	O	B-Function
post	O	I-Function
method	O	O
but	O	O
that	O	O
method	O	O
not	O	O
hit	O	O
on	O	O
the	O	O
mvc	O	B-Algorithm
Controller	O	O
method	O	O
.	O	O

When	O	O
Im	O	O
try	O	O
to	O	O
login	O	O
alert	O	B-User_Interface_Element
box	O	I-User_Interface_Element
in	O	O
success	O	O
section	O	O
is	O	O
popup	O	O
with	O	O
blank	O	O
.	O	O

If	O	O
this	O	O
method	O	O
hit	O	O
that	O	O
alert	O	O
should	O	O
have	O	O
some	O	O
record	O	O
.	O	O

please	O	O
help	O	O
me	O	O
to	O	O
fix	O	O
this	O	O
issue	O	O
.	O	O

Ajax	O	B-Function
method	O	O
:	O	O

Login	O	O
Form	O	O
:	O	O

Scripts	O	O
:	O	O

The	O	O
Problem	O	O
is	O	O
with	O	O
datatype	B-Code_Block	O
which	O	O
you	O	O
have	O	O
not	O	O
specified	O	O
in	O	O
ajax	O	B-Function
request	O	O
:	O	O
-	O	O

If	O	O
your	O	O
alert	O	B-Function
is	O	O
empty	O	O
(	O	O
and	O	O
not	O	O
undefined	O	O
)	O	O
your	O	O
server	O	B-Application
is	O	O
not	O	O
responding	O	O
with	O	O
a	O	O
object	O	O
that	O	O
has	O	O
any	O	O
value	O	O
for	O	O
in	O	O
data.Code	O	B-Code_Block
.	O	O

e.g	O	O
.	O	O

alert({}.Code)	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block
shows	O	O
an	O	O
alert	O	B-Function
with	O	O
undefined	O	O
whereas	O	O
data	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
{Code:''};alert(data.Code)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
shows	O	O
an	O	O
empty	O	O
alert	O	B-Function
as	O	O
described	O	O
in	O	O
your	O	O
question	O	O
.	O	O

Probably	O	O
best	O	O
to	O	O
use	O	O
the	O	O
console	O	B-Application
to	O	O
debug	O	O
your	O	O
code	O	O
instead	O	O
of	O	O
alerts	O	B-Function
.	O	O

I	O	O
am	O	O
using	O	O
AFNetworking	B-Code_Block	B-Library
2.0	I-Code_Block	B-Version
to	O	O
send	O	O
data	O	O
to	O	O
my	O	O
API	O	B-Library
(	O	O
json	O	B-File_Type
)	O	O
.	O	O

Everything	O	O
works	O	O
fine	O	O
except	O	O
of	O	O
sending	O	O
data	O	O
with	O	O
german	O	O
letters	O	O
like	O	O
ä	B-Code_Block	B-Value
ü	I-Code_Block	I-Value
ö	I-Code_Block	I-Value
.	O	O

Does	O	O
anyone	O	O
know	O	O
what	O	O
is	O	O
the	O	O
problem	O	O
?	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
not	O	O
the	O	O
API	O	B-Library
because	O	O
i	O	O
did	O	O
it	O	O
in	O	O
Android	O	B-Operating_System
and	O	O
it	O	O
worked	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
:	O	O

I	O	O
have	O	O
a	O	O
method	O	O
that	O	O
is	O	O
called	O	O
every	O	O
time	O	O
the	O	O
devices	O	O
location	O	O
updates	O	O
with	O	O
statements	O	O
below	O	O
included	O	O
:	O	O

Just	O	O
curious	O	O
as	O	O
to	O	O
why	O	O
I	O	O
'm	O	O
getting	O	O
a	O	O
SIGABRT	O	B-Function
signal	O	I-Function
from	O	O
this	O	O
PrevSpeedDic	O	B-Variable
here	O	O
:	O	O

But	O	O
when	O	O
I	O	O
move	O	O
this	O	O
above	O	O
the	O	O
statement	O	O
above	O	O
it	O	O
works	O	O
fine	O	O
as	O	O
it	O	O
should	O	O
.	O	O

My	O	O
variables	O	O
are	O	O
defined	O	O
correctly	O	O
or	O	O
it	O	O
would	O	O
not	O	O
work	O	O
in	O	O
any	O	O
circumstance	O	O
.	O	O

Local	O	O
variables	O	O
are	O	O
not	O	O
initialized	O	O
to	O	O
0	O	B-Value
(	O	O
nil	O	B-Value
)	O	O
by	O	O
default	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
set	O	O
DriveInfoDic	O	B-Variable
before	O	O
that	O	O
if	O	O
,	O	O
it	O	O
's	O	O
going	O	O
to	O	O
take	O	O
the	O	O
first	O	O
branch	O	O
and	O	O
crash	O	O
.	O	O

I	O	O
've	O	O
been	O	O
reading	O	O
through	O	O
some	O	O
similar	O	O
questions	O	O
but	O	O
was	O	O
n't	O	O
able	O	O
to	O	O
find	O	O
an	O	O
answer	O	O
that	O	O
I	O	O
can	O	O
implement	O	O
.	O	O

I	O	O
am	O	O
using	O	O
Google	O	B-Library
App	O	I-Library
Engine	O	I-Library
and	O	O
doing	O	O
a	O	O
simple	O	O
CSV	O	B-File_Type
export	O	O
using	O	O
unicodecsv	O	B-Library
,	O	O
which	O	O
works	O	O
fine	O	O
.	O	O

This	O	O
export	O	O
is	O	O
supposed	O	O
to	O	O
run	O	O
daily	O	O
and	O	O
save	O	O
the	O	O
result	O	O
as	O	O
the	O	O
same	O	O
Blobstore	O	B-Class
item	O	I-Class
every	O	O
time	O	O
,	O	O
so	O	O
it	O	O
can	O	O
be	O	O
retrieved	O	O
from	O	O
the	O	O
same	O	O
URL	O	O
.	O	O

I	O	O
know	O	O
that	O	O
this	O	O
is	O	O
not	O	O
the	O	O
initial	O	O
intention	O	O
of	O	O
Blobstore	O	B-Class
items	O	I-Class
,	O	O
but	O	O
I	O	O
also	O	O
read	O	O
some	O	O
articles	O	O
that	O	O
got	O	O
it	O	O
working	O	O
.	O	O

Unforuntately	O	O
since	O	O
I	O	O
am	O	O
not	O	O
such	O	O
an	O	O
experienced	O	O
programmer	O	O
,	O	O
I	O	O
was	O	O
n't	O	O
able	O	O
to	O	O
use	O	O
any	O	O
of	O	O
it	O	O
for	O	O
my	O	O
situation	O	O
.	O	O

Would	O	O
be	O	O
great	O	O
if	O	O
someone	O	O
could	O	O
give	O	O
me	O	O
some	O	O
input	O	O
on	O	O
how	O	O
to	O	O
realize	O	O
this	O	O
.	O	O

As	O	O
Tim	O	B-User_Name
pointed	O	O
out	O	O
you	O	O
cannot	O	O
overwrite	O	O
blobstore	O	B-Library
entity	O	O
,	O	O
but	O	O
you	O	O
may	O	O
create	O	O
a	O	O
new	O	O
one	O	O
every	O	O
time	O	O
and	O	O
remember	O	O
the	O	O
key	O	B-Class
to	O	O
serve	O	O
the	O	O
new	O	O
entity	O	O
:	O	O

then	O	O
,	O	O
in	O	O
a	O	O
cron	O	B-Class
handler	O	I-Class
you	O	O
may	O	O
:	O	O

and	O	O
,	O	O
finally	O	O
,	O	O
when	O	O
you	O	O
serve	O	O
your	O	O
file	O	O
(	O	O
in	O	O
a	O	O
BlobstoreDownloadHandler	B-Code_Block	B-Class
)	O	O
you	O	O
do	O	O
just	O	O
:	O	O

You	O	O
can	O	O
not	O	O
overwrite	O	O
a	O	O
blob	O	B-Library
store	O	I-Library
entity	O	O
,	O	O
only	O	O
delete	O	O
it	O	O
.	O	O

You	O	O
have	O	O
no	O	O
control	O	O
over	O	O
the	O	O
blob	O	B-Class
store	O	I-Class
key	O	I-Class
,	O	O
so	O	O
you	O	O
will	O	O
have	O	O
to	O	O
keep/manage	O	O
the	O	O
URL	O	O
in	O	O
yourapp	O	O
with	O	O
a	O	O
redirect	O	O
to	O	O
the	O	O
current	O	O
blob	O	B-Library
store	O	I-Library
URL	O	O
.	O	O

As	O	O
for	O	O
writing	O	O
to	O	O
the	O	O
blob	O	B-Library
store	O	I-Library
,	O	O
have	O	O
a	O	O
look	O	O
at	O	O
the	O	O
file	O	B-Library
api	O	I-Library

https://developers.google.com/appengine/docs/python/blobstore/overview#Writing_Files_to_the_Blobstore	O	O

I	O	O
do	O	O
not	O	O
use	O	O
Xcode	O	B-Application
to	O	O
build	O	O
my	O	O
IPA	O	B-File_Type
.	O	O

I	O	O
tried	O	O
searching	O	O
apple	O	O
documentation	O	O
,	O	O
but	O	O
I	O	O
cannot	O	O
find	O	O
what	O	O
the	O	O
key	O	O
values	O	O
are	O	O
for	O	O
all	O	O
possible	O	O
system	O	O
capabilities	O	O
.	O	O

In	O	O
order	O	O
to	O	O
not	O	O
be	O	O
lazy	O	O
,	O	O
I	O	O
also	O	O
tried	O	O
to	O	O
archive	O	O
a	O	O
project	O	O
with	O	O
these	O	O
capabilities	O	O
turned	O	O
on	O	O
,	O	O
and	O	O
searched	O	O
through	O	O
the	O	O
IPA	O	B-File_Type
,	O	O
but	O	O
cannot	O	O
find	O	O
where	O	O
Xcode6	B-Code_Block	B-Application
is	O	O
hiding	O	O
these	O	O
entitlements	O	O
.	O	O

For	O	O
users	O	O
using	O	O
Xcode6	O	B-Application
these	O	O
are	O	O
the	O	O
capabilities	O	O
listed	O	O
here	O	O

Since	O	O
I	O	O
generate	O	O
my	O	O
IPA	O	B-File_Type
manually	O	O
,	O	O
I	O	O
need	O	O
to	O	O
know	O	O
what	O	O
these	O	O
keys	O	O
are	O	O
in	O	O
order	O	O
to	O	O
match	O	O
the	O	O
capabilities	O	O
set	O	O
on	O	O
my	O	O
App	O	O
Identifier	O	O
.	O	O

UPDATED	O	O

Here	O	O
are	O	O
the	O	O
key	O	O
values	O	O
,	O	O
they	O	O
were	O	O
actually	O	O
in	O	O
the	O	O
project.pbxproj	B-Code_Block	B-File_Name
file	O	O
,	O	O
thanks	O	O
for	O	O
the	O	O
help	O	O
@colinta	O	B-User_Name

Your	O	O
screenshot	O	O
gave	O	O
me	O	O
an	O	O
idea	O	O
-	O	O
check	O	O
the	O	O
diff	O	O
of	O	O
the	O	O
project.pbxproj	O	B-File_Name
file	O	O
!	O	O

Came	O	O
up	O	O
with	O	O
this	O	O
:	O	O

HTH	O	O

I	O	O
am	O	O
currently	O	O
working	O	O
the	O	O
following	O	O
pagerank	O	B-Algorithm
algorithm	O	O
:	O	O

where	O	O
mxm	B-Code_Block	B-Variable
contains	O	O
the	O	O
following	O	O
:	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
:	O	O

it	O	O
should	O	O
perform	O	O
the	O	O
following	O	O
iterations	O	O
:	O	O

Iteration	O	O
0	O	O
:	O	O

Iteration	O	O
1	O	O
:	O	O

Iteration	O	O
2	O	O
:	O	O

Iteration	O	O
3	O	O
:	O	O

.	O	O

.	O	O

.	O	O

Iteration	O	O
9	O	O
:	O	O

however	O	O
,	O	O
it	O	O
does	O	O
not	O	O
work	O	O
.	O	O

(	O	O
The	O	O
above	O	O
is	O	O
a	O	O
part	O	O
,	O	O
of	O	O
the	O	O
full	O	O
code	O	O
.	O	O
)	O	O

Can	O	O
anybody	O	O
please	O	O
solve	O	O
this	O	O
problem	O	O
?	O	O

It	O	O
is	O	O
based	O	O
on	O	O
this	O	O
function	O	O
.	O	O

Looking	O	O
at	O	O
this	O	O
section	O	O
of	O	O
the	O	O
code	O	O

Variables	O	O
p	B-Code_Block	B-Variable
and	O	O
q	B-Code_Block	B-Variable
are	O	O
set	O	O
to	O	O
the	O	O
same	O	O
value	O	O
host_rank[k]	B-Code_Block	B-Code_Block
.	O	O

So	O	O
unless	O	O
i	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
k	I-Code_Block	I-Code_Block
(	O	O
thus	O	O
changing	O	O
the	O	O
array	O	B-Data_Structure
element	O	O
between	O	O
p	B-Code_Block	B-Variable
and	O	O
q	B-Code_Block	B-Variable
being	O	O
read	O	O
)	O	O
,	O	O
lol	B-Code_Block	B-Variable
will	O	O
not	O	O
move	O	O
from	O	O
0	B-Code_Block	B-Value
,	O	O
so	O	O
eucl	B-Code_Block	B-Variable
will	O	O
be	O	O
0	B-Code_Block	B-Value
,	O	O
and	O	O
the	O	O
loop	O	O
will	O	O
be	O	O
infinite	O	O
.	O	O

I	O	O
also	O	O
suspect	O	O
that	O	O
lol	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
should	O	O
be	O	O
within	O	O
the	O	O
do-while	B-Code_Block	B-Code_Block
loop	O	O
.	O	O

And	O	O
unless	O	O
the	O	O
variables	O	O
i	B-Code_Block	B-Variable
,	O	O
d	B-Code_Block	B-Variable
,	O	O
n	B-Code_Block	B-Variable
and	O	O
sumPR	B-Code_Block	B-Variable
are	O	O
shared	O	O
and	O	O
altered	O	O
by	O	O
another	O	O
process	O	O
,	O	O
the	O	O
loop	O	O
,	O	O
if	O	O
it	O	O
repeats	O	O
,	O	O
will	O	O
always	O	O
repeat	O	O
.	O	O

Say	O	O
I	O	O
have	O	O
the	O	O
following	O	O
HTML	O	B-Language
:	O	O

What	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
do	O	O
is	O	O
replace	O	O
all	O	O
instances	O	O
of	O	O
US$	O	B-Value
XX.xx	O	I-Value
with	O	O
GBP£	O	B-Variable
YY.yy	O	I-Variable
on	O	O
the	O	O
live	O	O
page	O	O
using	O	O
jquery	O	B-Library
.	O	O

The	O	O
value	O	O
of	O	O
GBP	O	B-Variable
would	O	O
be	O	O
determined	O	O
by	O	O
my	O	O
own	O	O
currency	O	O
conversion	O	O
ratio	O	O
.	O	O

So	O	O
I	O	O
'm	O	O
assuming	O	O
what	O	O
I	O	O
'd	O	O
first	O	O
need	O	O
to	O	O
do	O	O
is	O	O
use	O	O
a	O	O
regular	O	O
expression	O	O
to	O	O
get	O	O
all	O	O
instances	O	O
of	O	O
the	O	O
prices	O	O
which	O	O
would	O	O
be	O	O
anything	O	O
beginning	O	O
with	O	O
USD$	O	B-Value
and	O	O
ending	O	O
after	O	O
.xx	O	B-Value
?	O	O

Prices	O	O
will	O	O
always	O	O
have	O	O
cents	O	O
displayed	O	O
.	O	O

Then	O	O
I	O	O
'm	O	O
stuck	O	O
what	O	O
would	O	O
be	O	O
the	O	O
best	O	O
way	O	O
to	O	O
accomplish	O	O
the	O	O
next	O	O
part	O	O
.	O	O

Should	O	O
I	O	O
wrap	O	O
these	O	O
instances	O	O
in	O	O
a	O	O
span	O	O
tag	O	O
with	O	O
a	O	O
class	O	O
,	O	O
then	O	O
use	O	O
jquery.each()	O	B-Function
function	O	O
to	O	O
loop	O	O
through	O	O
each	O	O
and	O	O
replace	O	O
the	O	O
contents	O	O
with	O	O
a	O	O
jquery(this).html("GBP£YY.yy")	O	B-Function
?	O	O

Any	O	O
help	O	O
setting	O	O
me	O	O
on	O	O
the	O	O
right	O	O
path	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

Thanks	O	O
guys	O	O
.	O	O

base	O	O
method	O	O
for	O	O
text	O	O
replacements	O	O
:	O	O

stuff	O	O
you	O	O
need	O	O
to	O	O
do	O	O
:	O	O

you	O	O
can	O	O
fire	O	O
that	O	O
on	O	O
ANY	O	O
site	O	O
.	O	O

it	O	O
will	O	O
even	O	O
replace	O	O
titles	O	O
etc	O	O
.	O	O

so.	O	O
.	O	O
to	O	O
tell	O	O
you	O	O
about	O	O
the	O	O
benefits	O	O
of	O	O
not	O	O
using	O	O
jquery	O	B-Library
for	O	O
this	O	O
:	O	O

jquery	O	B-Library
will	O	O
process	O	O
and	O	O
wrap	O	O
every	O	O
single	O	O
element	O	O
in	O	O
a	O	O
browser	O	B-Application
compatible	O	O
way	O	O
.	O	O

using	O	O
a	O	O
native	O	O
javascript	O	B-Language
solution	O	O
would	O	O
speed	O	O
up	O	O
this	O	O
process	O	O
alot	O	O
.	O	O

using	O	O
native	O	O
textnodes	O	B-Class
also	O	O
is	O	O
benefitial	O	O
since	O	O
it	O	O
will	O	O
not	O	O
break	O	O
event	O	B-Class
handlers	O	O
for	O	O
child	O	O
elements	O	O
.	O	O

you	O	O
should	O	O
also	O	O
consider	O	O
using	O	O
fastdom	O	B-Application
.	O	O

it	O	O
does	O	O
not	O	O
matter	O	O
if	O	O
you	O	O
are	O	O
using	O	O
jquery	O	B-Library
or	O	O
native	O	O
js	O	B-Language
.	O	O

after	O	O
writing	O	O
to	O	O
elements	O	O
the	O	O
dom	O	O
has	O	O
to	O	O
do	O	O
certain	O	O
tasks	O	O
before	O	O
it	O	O
can	O	O
be	O	O
read	O	O
again	O	O
.	O	O

in	O	O
the	O	O
end	O	O
you	O	O
will	O	O
loose	O	O
some	O	O
time	O	O
for	O	O
each	O	O
edited	O	O
element	O	O
.	O	O

to	O	O
give	O	O
you	O	O
a	O	O
fastdom	O	B-Application
example	O	O
:	O	O

this	O	O
will	O	O
basically	O	O
do	O	O
the	O	O
job	O	O
in	O	O
an	O	O
instant	O	O
.	O	O

if	O	O
you	O	O
want	O	O
to	O	O
go	O	O
even	O	O
further	O	O
you	O	O
could	O	O
add	O	O
this	O	O
to	O	O
jquery	O	B-Library
as	O	O
following	O	O
:	O	O

and	O	O
call	O	O
it	O	O
like	O	O
that	O	O
:	O	O

If	O	O
all	O	O
of	O	O
these	O	O
values	O	O
are	O	O
directly	O	O
in	O	O
the	O	O
span	O	B-HTML_XML_Tag
,	O	O
if	O	O
not	O	O
you	O	O
can	O	O
give	O	O
them	O	O
a	O	O
unique	O	O
class	O	O
and	O	O
use	O	O
it	O	O
to	O	O
iterate	O	O
over	O	O
them	O	O
,	O	O
you	O	O
can	O	O
use	O	O
the	O	O
following	O	O

You	O	O
first	O	O
get	O	O
the	O	O
numeric	O	O
part	O	O
of	O	O
the	O	O
string	O	B-Data_Type
in	O	O
a	O	O
variable	O	O

convert	O	O
the	O	O
currency	O	O
store	O	O
it	O	O
in	O	O
other	O	O
variable	O	O
.	O	O

replace	O	O
US$	O	B-Value
with	O	O
GBP	O	B-Value

replace	O	O
numeric	O	O
part	O	O
of	O	O
the	O	O
string	O	B-Data_Type
with	O	O
converted	O	O
value	O	O

jQuery	O	B-Library
:	O	O

I	O	O
am	O	O
working	O	O
on	O	O
a	O	O
project	O	O
that	O	O
uses	O	O
blade	O	B-Library
templating	O	I-Library
.	O	O

Due	O	O
to	O	O
server	O	B-Device
limitations	O	O
,	O	O
I	O	O
am	O	O
required	O	O
to	O	O
rather	O	O
than	O	O
have	O	O
blade	O	B-Library
generate	O	O
cache	O	B-File_Type
files	O	O
on	O	O
the	O	O
fly	O	O
-	O	O
I	O	O
need	O	O
to	O	O
provide	O	O
blade	O	B-Library
with	O	O
all	O	O
the	O	O
cache	O	B-File_Type
files	O	O
for	O	O
the	O	O
application	O	O
.	O	O

Oddly	O	O
,	O	O
blade	O	B-Library
keeps	O	O
ignoring	O	O
all	O	O
the	O	O
cache	O	B-File_Type
files	O	O
we	O	O
're	O	O
providing	O	O
and	O	O
seems	O	O
to	O	O
reference	O	O
cache	O	B-File_Type
files	O	O
that	O	O
do	O	O
n't	O	O
exist	O	O
.	O	O

Any	O	O
idea	O	O
why	O	O
this	O	O
is	O	O
?	O	O

how	O	O
to	O	O
prevent	O	O
?	O	O

Essentially	O	O
,	O	O
I	O	O
am	O	O
100%	O	O
happy	O	O
to	O	O
generate	O	O
and	O	O
ftp	O	B-File_Type
all	O	O
the	O	O
cache	O	B-File_Type
files	O	O
over	O	O
.	O	O

Although	O	O
,	O	O
the	O	O
files	O	O
blade	O	B-Library
attempts	O	O
reference	O	O
during	O	O
render	O	O
time	O	O
do	O	O
n't	O	O
exist	O	O
and	O	O
the	O	O
files	O	O
we	O	O
are	O	O
providing	O	O
are	O	O
n't	O	O
picked	O	O
up	O	O
by	O	O
blade	O	B-Library
.	O	O

I	O	O
appreciate	O	O
the	O	O
help	O	O
.	O	O

Clear	O	O
Blade	O	B-Library
cache	O	O
:	O	O

I	O	O
'm	O	O
developing	O	O
a	O	O
website	O	O
using	O	O
JSP	O	B-Library
and	O	O
Servlets	O	B-Class
using	O	O
Apache	O	B-Application
-	O	I-Application
tomcat	O	I-Application
5.5	O	B-Version
as	O	O
server	O	B-Application
.	O	O

My	O	O
application	O	O
runs	O	O
fine	O	O
.	O	O

But	O	O
whenever	O	O
I	O	O
leave	O	O
any	O	O
webpage	O	O
open	O	O
and	O	O
return	O	O
back	O	O
to	O	O
it	O	O
after	O	O
some	O	O
time	O	O
say	O	O
30minutes	O	O
,	O	O
and	O	O
click	O	O
on	O	O
any	O	O
button	O	B-User_Interface_Element
or	O	O
icon	O	B-User_Interface_Element
,	O	O
it	O	O
throws	O	O
error	O	O
sayin	O	O
-	O	O

Sounds	O	O
like	O	O
your	O	O
session	O	O
is	O	O
timing	O	O
out	O	O
.	O	O

You	O	O
need	O	O
to	O	O
either	O	O
force	O	O
the	O	O
user	O	O
to	O	O
login	O	O
again	O	O
,	O	O
or	O	O
extend	O	O
your	O	O
session	O	O
timeout	O	O
.	O	O

You	O	O
can	O	O
change	O	O
the	O	O
session	O	O
timeout	O	O
by	O	O
editing	O	O
your	O	O
web.xml	O	B-File_Name
and	O	O
adding	O	O
:	O	O

Which	O	O
will	O	O
give	O	O
you	O	O
a	O	O
session	O	O
timeout	O	O
of	O	O
60	O	O
minutes	O	O
.	O	O

-1	O	B-Value
means	O	O
there	O	O
is	O	O
no	O	O
timeout	O	O
.	O	O

The	O	O
symptom	O	O
that	O	O
this	O	O
only	O	O
occurs	O	O
after	O	O
a	O	O
long	O	O
time	O	O
indeed	O	O
indicates	O	O
that	O	O
the	O	O
session	O	O
has	O	O
been	O	O
timed	O	O
out	O	O
.	O	O

But	O	O
changing	O	O
the	O	O
session	O	O
timeout	O	O
is	O	O
not	O	O
the	O	O
right	O	O
solution	O	O
.	O	O

You	O	O
have	O	O
actually	O	O
a	O	O
bug	O	O
in	O	O
your	O	O
JSP	O	B-Library
.	O	O

Because	O	O
you	O	O
're	O	O
using	O	O
old	O	O
fashioned	O	O
JSP	O	B-Library
scriptlets	O	B-File_Name
<%	B-Code_Block	B-Code_Block
%>	I-Code_Block	I-Code_Block
instead	O	O
of	O	O
normal	O	O
Java	O	B-Language
classes	O	O
such	O	O
as	O	O
servlets	O	B-Class
to	O	O
control	O	O
the	O	O
request/response	O	O
and	O	O
do	O	O
the	O	O
business	O	O
stuff	O	O
in	O	O
the	O	O
JSP	O	B-Library
,	O	O
it	O	O
's	O	O
harder	O	O
to	O	O
naildown	O	O
the	O	O
root	O	O
cause	O	O
of	O	O
the	O	O
NullPointerException	B-Code_Block	B-Error_Name
.	O	O

You	O	O
need	O	O
to	O	O
open	O	O
the	O	O
generated	O	O
homepage_jsp.java	B-Code_Block	B-File_Name
in	O	O
server	O	B-Application
's	O	O
work	O	O
directory	O	O
and	O	O
head	O	O
to	O	O
line	O	O
107	O	O
and	O	O
finally	O	O
trackback	O	O
this	O	O
line	O	O
into	O	O
your	O	O
homepage.jsp	B-Code_Block	B-File_Name
so	O	O
that	O	O
you	O	O
can	O	O
fix	O	O
the	O	O
bug	O	O
.	O	O

Perhaps	O	O
you	O	O
need	O	O
to	O	O
do	O	O
a	O	O
request.getSession()	B-Code_Block	B-Function
instead	O	O
of	O	O
request.getSession(false)	B-Code_Block	B-Function
,	O	O
or	O	O
you	O	O
need	O	O
to	O	O
check	O	O
if	O	O
a	O	O
session	O	O
attribute	O	O
is	O	O
not	O	O
null	B-Code_Block	B-Value
before	O	O
accessing	O	O
it	O	O
,	O	O
etcetera	O	O
.	O	O

Please	O	O
suggest	O	O
me	O	O
how	O	O
can	O	O
i	O	O
configure	O	O
the	O	O
orientdb	O	B-Application
with	O	O
spring	O	B-Library
mvc	O	B-Algorithm
.	O	O

I	O	O
have	O	O
added	O	O
above	O	O
code	O	O
into	O	O
my	O	O
mvc-dispacher-servlet.xml	O	B-File_Name
file	O	O

and	O	O
i	O	O
have	O	O
added	O	O
dependencies	O	O
also	O	O
in	O	O
to	O	O
pom.xml	O	B-File_Name

My	O	O
OrientDb	O	B-Application
server	O	I-Application
is	O	O
2.2.13	O	B-Version
version	O	O
which	O	O
is	O	O
latest	O	O
.	O	O

help	O	O
me	O	O
in	O	O
configuring	O	O
it.if	O	O
possible	O	O
suggest	O	O
a	O	O
sample	O	O
project	O	O
URL	O	O
also	O	O
.	O	O

Thank	O	O
You	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
find	O	O
an	O	O
appropriate	O	O
way	O	O
to	O	O
read	O	O
the	O	O
contents	O	O
of	O	O
an	O	O
Excel	O	B-File_Type
file	O	O
on	O	O
an	O	O
NT	O	B-Operating_System
server	O	I-Operating_System
operating	O	O
system	O	O
.	O	O

I	O	O
have	O	O
numerous	O	O
problems	O	O
using	O	O
the	O	O
Excel	O	B-Application
API	O	I-Application
and	O	O
then	O	O
came	O	O
across	O	O
the	O	O
official	O	O
Microsoft	O	B-Website
on	O	O
Office	O	O
Automation	O	O
which	O	O
states	O	O
that	O	O
the	O	O
Excel	O	B-Application
API	O	I-Application
is	O	O
not	O	O
suitable	O	O
for	O	O
Excel	O	B-Application
automation	O	O
.	O	O

The	O	O
sorts	O	O
issues	O	O
that	O	O
I	O	O
saw	O	O
were	O	O
similar	O	O
to	O	O
those	O	O
described	O	O
in	O	O
the	O	O
article	O	O
.	O	O

Is	O	O
there	O	O
another	O	O
way	O	O
that	O	O
I	O	O
can	O	O
read	O	O
an	O	O
Excel	O	B-File_Type
file	O	O
(	O	O
xls	O	B-File_Type
,	O	O
xlsx	O	B-File_Type
,	O	O
xlsm	O	B-File_Type
)	O	O
on	O	O
a	O	O
server	O	B-Application
(	O	O
no	O	O
UI	O	O
)	O	O
in	O	O
such	O	O
a	O	O
way	O	O
that	O	O
does	O	O
n't	O	O
suffer	O	O
the	O	O
same	O	O
sort	O	O
of	O	O
threading/security/license	O	O
issues	O	O
imposed	O	O
within	O	O
the	O	O
Excel	O	B-Application
API	O	I-Application
?	O	O

Excel	O	B-Application
.	O	O

After	O	O
of	O	O
years	O	O
of	O	O
trying	O	O
to	O	O
stop	O	O
folks	O	O
from	O	O
using	O	O
Excel	O	B-Application
on	O	O
the	O	O
server	O	B-Application
,	O	O
they	O	O
've	O	O
given	O	O
up/embraced	O	O
the	O	O
market	O	O
need	O	O
and	O	O
have	O	O
started	O	O
to	O	O
support	O	O
this	O	O
.	O	O

2007	O	B-Version
has	O	O
some	O	O
impovement	O	O
for	O	O
this	O	O
,	O	O
and	O	O
Excel	O	B-Application
2010	O	B-Version
is	O	O
supposed	O	O
to	O	O
have	O	O
even	O	O
more	O	O
.	O	O

There	O	O
were	O	O
a	O	O
number	O	O
of	O	O
libraries	O	O
that	O	O
were	O	O
highlighted	O	O
by	O	O
different	O	O
users	O	O
that	O	O
would	O	O
allow	O	O
the	O	O
sort	O	O
of	O	O
functionality	O	O
required	O	O
.	O	O

I	O	O
've	O	O
listed	O	O
them	O	O
here	O	O
and	O	O
some	O	O
of	O	O
these	O	O
were	O	O
evaluated	O	O
so	O	O
where	O	O
appropriate	O	O
I	O	O
've	O	O
tried	O	O
to	O	O
put	O	O
down	O	O
interesting	O	O
comments	O	O
for	O	O
comparing	O	O
them	O	O
.	O	O

The	O	O
details	O	O
I	O	O
've	O	O
included	O	O
are	O	O
completely	O	O
opinion	O	O
based	O	O
,	O	O
however	O	O
any	O	O
of	O	O
these	O	O
libraries	O	O
would	O	O
probably	O	O
achieve	O	O
the	O	O
required	O	O
goal	O	O
.	O	O

SpreadsheetGear.Net	O	B-Library

(	O	O
Did	O	O
n't	O	O
evaluate	O	O
due	O	O
to	O	O
high	O	O
purchase	O	O
cost	O	O
)	O	O

Aspose.Cells	O	B-Library

(	O	O
Evaluated	O	O
by	O	O
a	O	O
collegue	O	O
.	O	O

Appeared	O	O
to	O	O
be	O	O
fairly	O	O
simple	O	O
to	O	O
implement	O	O
,	O	O
performance	O	O
comparable	O	O
to	O	O
Excel	O	B-Application
Interop	O	O
)	O	O
.	O	O

GemBox	O	B-Library

(	O	O
Did	O	O
n't	O	O
evaluate	O	O
)	O	O

Excel	O	B-Library
Services	O	I-Library

(	O	O
Seems	O	O
only	O	O
to	O	O
be	O	O
included	O	O
in	O	O
SharePoint	O	B-Application
2007	O	B-Version
)	O	O

Excel	O	B-Library
Mapper	O	I-Library

(	O	O
Did	O	O
n't	O	O
evaluate	O	O
because	O	O
it	O	O
requires	O	O
strongly	O	O
typed	O	O
objects	O	O
to	O	O
import	O	O
into	O	O
which	O	O
did	O	O
n't	O	O
fit	O	O
my	O	O
requirement	O	O
)	O	O
.	O	O

SmartXls	O	B-Library

(	O	O
Did	O	O
n't	O	O
evaluate	O	O
because	O	O
it	O	O
requires	O	O
strongly	O	O
typed	O	O
objects	O	O
to	O	O
import	O	O
into	O	O
which	O	O
did	O	O
n't	O	O
fit	O	O
my	O	O
requirement	O	O
)	O	O
.	O	O

ActiveXls	O	B-Library

(	O	O
Fairly	O	O
easy	O	O
to	O	O
use	O	O
,	O	O
lack	O	O
of	O	O
Properties	O	O
raises	O	O
questions	O	O
,	O	O
they	O	O
have	O	O
a	O	O
preference	O	O
of	O	O
Methods	O	O
for	O	O
trivial	O	O
actions	O	O
.	O	O

Despite	O	O
it	O	O
's	O	O
claim	O	O
of	O	O
1M	O	O
records	O	O
a	O	O
second	O	O
was	O	O
out	O	O
performed	O	O
by	O	O
cheaper	O	O
FlexCel	O	B-Library
.	O	O

Have	O	O
decided	O	O
that	O	O
the	O	O
help/API	O	O
manual	O	O
is	O	O
almost	O	O
useless	O	O
.	O	O
)	O	O

Koogra	O	B-Library

(	O	O
Did	O	O
n't	O	O
evaluate	O	O
due	O	O
to	O	O
finding	O	O
no	O	O
documentations/information	O	O
)	O	O

FileHelpers	O	B-Library

(	O	O
Did	O	O
n't	O	O
evaluate	O	O
)	O	O

Flexcel	O	B-Library

(	O	O
Lowest	O	O
cost	O	O
solution	O	O
found	O	O
,	O	O
good	O	O
performance	O	O
and	O	O
was	O	O
simple	O	O
to	O	O
implement	O	O
with	O	O
a	O	O
close	O	O
proximity	O	O
to	O	O
Excel	O	B-Application
Interop	O	O
structure	O	O
.	O	O

Also	O	O
received	O	O
quick	O	O
response	O	O
to	O	O
technical	O	O
question	O	O
from	O	O
support	O	O
.	O	O

Probably	O	O
my	O	O
pick	O	O
of	O	O
the	O	O
bunch	O	O
.	O	O
)	O	O

SyncFusion	O	B-Library
BackOffice	O	I-Library

(	O	O
Medium	O	O
cost	O	O
and	O	O
had	O	O
a	O	O
reasonable	O	O
structure	O	O
.	O	O

Unfortunately	O	O
had	O	O
more	O	O
difficulty	O	O
implementing	O	O
and	O	O
inconsistent	O	O
results	O	O
when	O	O
running	O	O
unit	O	O
tests	O	O
.	O	O

Also	O	O
received	O	O
a	O	O
number	O	O
of	O	O
'	O	B-Error_Name
Attempted	O	I-Error_Name
to	O	I-Error_Name
read	O	I-Error_Name
protected	O	I-Error_Name
memory	O	I-Error_Name
'	O	B-Error_Name
errors	O	I-Error_Name
,	O	O
which	O	O
did	O	O
n't	O	O
encourage	O	O
me	O	O
with	O	O
purely	O	O
managed	O	O
library	O	O
.	O	O
)	O	O

I	O	O
have	O	O
tried	O	O
a	O	O
few	O	O
really	O	O
basic	O	O
css	O	B-Language
hovers	O	B-Function
which	O	O
work	O	O
on	O	O
all	O	O
browsers	O	B-Application
except	O	O
ie10	O	B-Application
.	O	O

My	O	O
question	O	O
now	O	O
is	O	O
what	O	O
is	O	O
going	O	O
on	O	O
?	O	O

It	O	O
only	O	O
works	O	O
on	O	O
anchor	O	O
tags	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
work-around	O	O
?	O	O

I	O	O
tried	O	O
specifying	O	O
a	O	O
background-color	O	B-Variable
but	O	O
that	O	O
doesnt	O	O
work	O	O
.	O	O

I	O	O
read	O	O
a	O	O
lot	O	O
on	O	O
stackoverflow	O	B-Website
but	O	O
non	O	O
of	O	O
it	O	O
seems	O	O
to	O	O
be	O	O
related	O	O
to	O	O
my	O	O
problem	O	O
.	O	O

Not	O	O
sure	O	O
if	O	O
this	O	O
answers	O	O
your	O	O
question	O	O
but	O	O
the	O	O
code	O	O
below	O	O
works	O	O
for	O	O
me	O	O
(	O	O
IE10	O	B-Application
,	O	O
Win7	O	B-Operating_System
on	O	O
Virtual	O	B-Application
Machine	O	I-Application
)	O	O

Another	O	O
option	O	O
is	O	O
to	O	O
use	O	O
Javascript	O	B-Language
.	O	O

I	O	O
finally	O	O
found	O	O
out	O	O
what	O	O
was	O	O
wrong	O	O
!	O	O

The	O	O
answer	O	O
is	O	O
so	O	O
retarded	O	O
that	O	O
I	O	O
did	O	O
n't	O	O
belive	O	O
it	O	O
would	O	O
work	O	O
but	O	O
it	O	O
did	O	O
.	O	O

Simply	O	O
add	O	O
this	O	O
at	O	O
the	O	O
page	O	O
beginning	O	O
(	O	O
before	O	O
<html>	B-Code_Block	B-HTML_XML_Tag
tag	O	O
)	O	O
:	O	O

Yep	O	O
,	O	O
Internet	O	B-Application
Explorer.	O	I-Application
.	O	O

Otherwise	O	O
the	O	O
:hover	B-Code_Block	B-Function
works	O	O
only	O	O
on	O	O
<a>	B-Code_Block	B-HTML_XML_Tag
and	O	O
<button>	B-Code_Block	B-HTML_XML_Tag
tags	O	O
.	O	O

I	O	O
have	O	O
created	O	O
one	O	O
application	O	O
and	O	O
running	O	O
SSIS	O	B-Application
Package	O	I-Application
dynamically	O	O
.	O	O

But	O	O
while	O	O
running	O	O
the	O	O
code	O	O
Application	O	O
got	O	O
crashed.I	O	O
saw	O	O
eventviewer	O	B-Application
and	O	O
found	O	O
below	O	O
exception	O	B-Class

Please	O	O
help	O	O
me	O	O
to	O	O
fix	O	O
this.	O	O
.	O	O

So	O	O
I	O	O
currently	O	O
have	O	O
2	O	O
pipelines	O	B-Class
,	O	O
both	O	O
are	O	O
ordered	O	O
as	O	O
below	O	O
.	O	O

They	O	O
execute	O	O
in	O	O
the	O	O
correct	O	O
order	O	O
.	O	O

1	O	O
.	O	O
)	O	O

The	O	O
first	O	O
pipeline	O	B-Class
is	O	O
a	O	O
mutator	O	O
.	O	O

2	O	O
.	O	O
)	O	O

The	O	O
second	O	O
is	O	O
submits	O	O
the	O	O
information	O	O
to	O	O
the	O	O
database	O	O
.	O	O

The	O	O
data	O	O
correctly	O	O
gets	O	O
submitted	O	O
to	O	O
the	O	O
database	O	O
.	O	O

My	O	O
problems	O	O
is	O	O
that	O	O
sometimes	O	O
when	O	O
data	O	O
reaches	O	O
my	O	O
mutator	B-Code_Block	O
pipeline	I-Code_Block	B-Class
I	O	O
want	O	O
to	O	O
create	O	O
'	O	O
additional	O	O
'	O	O
items	O	O
to	O	O
pass	O	O
to	O	O
my	O	O
second	O	O
pipeline	O	B-Class
.	O	O

Currently	O	O
(	O	O
without	O	O
mutations	O	O
)	O	O
it	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

I	O	O
cannot	O	O
however	O	O
,	O	O
return	B-Code_Block	O
more	O	O
than	O	O
once	O	O
.	O	O

I	O	O
also	O	O
do	O	O
not	O	O
want	O	O
to	O	O
create	O	O
an	O	O
additional	O	O
item	O	O
that	O	O
starts	O	O
from	O	O
the	O	O
start	O	O
of	O	O
pipeline	O	B-Class
1	O	O
.	O	O

Many	O	O
helps	O	O
in	O	O
advance	O	O
.	O	O

Quickly	O	O
looking	O	O
at	O	O
the	O	O
docs	O	O
you	O	O
could	O	O
probably	O	O
create	O	O
a	O	O
subclass	O	O
of	O	O
scrapy.item.Item	B-Code_Block	B-Class
,	O	O
that	O	O
is	O	O
sort	O	O
of	O	O
like	O	O
a	O	O
linked	O	B-Data_Structure
list	O	I-Data_Structure
.	O	O

Not	O	O
having	O	O
touched	O	O
scrapy	O	O
much	O	O
something	O	O
like	O	O
this	O	O
could	O	O
do	O	O
it	O	O
.	O	O

It	O	O
might	O	O
need	O	O
some	O	O
modifications	O	O
but	O	O
should	O	O
be	O	O
enough	O	O
to	O	O
get	O	O
you	O	O
started	O	O
.	O	O

Now	O	O
your	O	O
process	O	O
items	O	O
can	O	O
create	O	O
multiple	O	O
Items	O	O
and	O	O
chain	O	O
them	O	O
.	O	O

Now	O	O
in	O	O
your	O	O
database	O	O
pipeline	O	O
you	O	O
can	O	O
process	O	O
each	O	O
item	O	O
.	O	O

I	O	O
have	O	O
a	O	O
database	O	O
structure	O	O
like	O	O
this	O	O
:	O	O

I	O	O
write	O	O
the	O	O
database	O	O
into	O	O
an	O	O
array	O	B-Data_Structure

and	O	O
restructure	O	O
that	O	O
array	O	B-Data_Structure
to	O	O
set	O	O
up	O	O
child-parent	O	O
relations	O	O
with	O	O
this	O	O
function	O	O
:	O	O

and	O	O
the	O	O
generated	O	O
array	O	B-Data_Structure
looks	O	O
like	O	O
this	O	O

now	O	O
i	O	O
need	O	O
to	O	O
sort	O	O
every	O	O
dimension	O	O
of	O	O
the	O	O
array	O	B-Data_Structure
by	O	O
the	O	O
sort	O	O
value	O	O
,	O	O
(	O	O
my	O	O
"	O	O
real	O	O
array	O	B-Data_Structure
"	O	O
has	O	O
more	O	O
subarrays	O	B-Data_Structure
then	O	O
this	O	O
one	O	O
)	O	O
.	O	O

i	O	O
played	O	O
around	O	O
with	O	O
multisort	O	B-Algorithm
but	O	O
i	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
find	O	O
the	O	O
solution	O	O

any	O	O
ideas	O	O
?	O	O

Sort	O	O
the	O	O
array	O	B-Data_Structure
when	O	O
it	O	O
is	O	O
1	O	O
dimension	O	O
before	O	O
you	O	O
build	O	O
the	O	O
multi-dimensional	O	O
array	O	B-Data_Structure
.	O	O

Even	O	O
better	O	O
if	O	O
you	O	O
are	O	O
using	O	O
a	O	O
query	O	O
,	O	O
sort	O	O
it	O	O
there	O	O
.	O	O

Sort	O	O
by	O	O
parent	O	O
then	O	O
sort	O	O
.	O	O

When	O	O
you	O	O
build	O	O
your	O	O
multidimensional	O	O
array	O	B-Data_Structure
,	O	O
each	O	O
child	O	O
will	O	O
be	O	O
appended	O	O
to	O	O
the	O	O
parent	O	O
.	O	O

If	O	O
they	O	O
are	O	O
already	O	O
in	O	O
the	O	O
correct	O	O
order	O	O
,	O	O
they	O	O
will	O	O
end	O	O
up	O	O
in	O	O
the	O	O
same	O	O
order	O	O
.	O	O

I	O	O
've	O	O
been	O	O
trying	O	O
to	O	O
make	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
labels	O	B-Class
displayed	O	O
on	O	O
JFrame	O	B-Class
.	O	O

But	O	O
JFrame	O	B-Class
could	O	O
n't	O	O
display	O	O
the	O	O
created	O	O
labels	O	B-Class
.	O	O

It	O	O
just	O	O
appears	O	O
blank	O	O
.	O	O

How	O	O
to	O	O
fix	O	O
this	O	O
problem	O	O
?	O	O

JFrame	O	B-Class
has	O	O
BorderLayout	O	B-Class
implemented	O	O
in	O	O
API	O	B-Library
,	O	O
in	O	O
BorderLayout	O	B-Class
only	O	O
one	O	O
JComponents	O	B-Class
can	O	O
be	O	O
placed	O	O
to	O	O
one	O	O
of	O	O
5th	O	O
areas	O	O

your	O	O
code	O	O
posted	O	O
here	O	O
is	O	O
n't	O	O
completed	O	O
,	O	O
does	O	O
n't	O	O
shows	O	O
how	O	O
is	O	O
arrays	O	B-Data_Structure
of	O	O
JLabels	O	B-Class
added	O	O
to	O	O
JFrame	O	B-Class

to	O	O
start	O	O
with	O	O
GridLayout	O	B-Class

I	O	O
'd	O	O
be	O	O
suggest	O	O
to	O	O
use	O	O
JTable	O	B-Class
(	O	O
in	O	O
JScrollPane	O	B-Class
)	O	O
instead	O	O
of	O	O
bunch	O	O
of	O	O
JLabels	O	B-Class
added	O	O
to	O	O
JFrame	O	B-Class

I	O	O
have	O	O
been	O	O
trying	O	O
to	O	O
render	O	O
a	O	O
rich:dataTable	O	B-Data_Structure
,	O	O
but	O	O
fails	O	O
,	O	O
when	O	O
it	O	O
comes	O	O
to	O	O
its	O	O
conditional	O	O
rendering.I	O	O
wanted	O	O
to	O	O
render	O	O
it	O	O
only	O	O
if	O	O
the	O	O
size	O	O
of	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
the	O	O
backing-bean	O	O
fetches	O	O
from	O	O
DB	O	O
,	O	O
is	O	O
greater	O	O
than	O	O
zero	O	B-Value
.	O	O

JSF-2.0	O	B-Application
,	O	O
RichFaces-4	O	B-Library
are	O	O
what	O	O
i	O	O
use	O	O
.	O	O

You	O	O
have	O	O
to	O	O
use	O	O
the	O	O
"	O	O
render	O	O
"	O	O
attribute	O	O
of	O	O
the	O	O
datatable	O	O
.	O	O

With	O	O
it	O	O
you	O	O
can	O	O
define	O	O
if	O	O
the	O	O
component	O	O
is	O	O
rendered	O	O
to	O	O
the	O	O
client	O	B-Application
or	O	O
not	O	O
.	O	O

So	O	O
check	O	O
by	O	O
EL	O	O
if	O	O
the	O	O
list	O	B-Data_Structure
is	O	O
populated	O	O
.	O	O

you	O	O
can	O	O
do	O	O
something	O	O
like	O	O
:	O	O

and	O	O
all	O	O
is	O	O
fine	O	O
.	O	O

I	O	O
always	O	O
implement	O	O
my	O	O
database	O	O
query	O	B-Function
method	O	O
to	O	O
never	O	O
return	O	O
null	O	B-Value
,	O	O
if	O	O
the	O	O
query	O	B-Function
has	O	O
no	O	O
result	O	O
I	O	O
return	O	O
an	O	O
empty	O	B-Value
list	O	B-Data_Structure
.	O	O

This	O	O
way	O	O
i	O	O
'm	O	O
sure	O	O
I	O	O
never	O	O
get	O	O
a	O	O
nullpointerexception	O	O
and	O	O
I	O	O
prefer	O	O
then	O	O
to	O	O
show	O	O
an	O	O
empty	O	B-Value
table	O	B-Data_Structure
.	O	O

Because	O	O
it	O	O
's	O	O
easer	O	O
to	O	O
layout	O	O
the	O	O
page	O	O
,	O	O
when	O	O
you	O	O
are	O	O
sure	O	O
the	O	O
table	O	B-Data_Structure
always	O	O
exist	O	O
.	O	O

Hope	O	O
that	O	O
helps	O	O
.	O	O

It	O	O
looks	O	O
like	O	O
the	O	O
attribute	O	O
name	O	O
on	O	O
the	O	O
a4j:jsFunction	O	B-Function
is	O	O
reRender	O	B-Variable
instead	O	O
of	O	O
just	O	O
render	O	O
.	O	O

Should	O	O
fix	O	O
it	O	O
.	O	O

I	O	O
found	O	O
this	O	O
great	O	O
code	O	O
which	O	O
is	O	O
helping	O	O
me	O	O
parse	O	O
through	O	O
and	O	O
display	O	O
results	O	O
from	O	O
a	O	O
php	O	B-Language
generated	O	O
html	O	B-Language
table	O	B-Data_Structure
on	O	O
another	O	O
page	O	O
on	O	O
my	O	O
server	O	B-Device
,	O	O
using	O	O
PHP	O	B-Language
's	O	O
DOMDocument	O	B-Variable
and	O	O
DOMXpath	O	B-Variable
:	O	O

The	O	O
problem	O	O
is	O	O
,	O	O
I	O	O
want	O	O
to	O	O
add	O	O
another	O	O
variable	O	O
to	O	O
the	O	O
same	O	O
foreach	O	B-Code_Block
loop	O	O
,	O	O
something	O	O
like	O	O
this	O	O
:	O	O

This	O	O
code	O	O
is	O	O
not	O	O
working	O	O
,	O	O
and	O	O
I	O	O
've	O	O
done	O	O
a	O	O
bit	O	O
of	O	O
research	O	O
also	O	O
,	O	O
which	O	O
has	O	O
lead	O	O
me	O	O
to	O	O
believe	O	O
that	O	O
including	O	O
multiple	O	O
variables	O	O
in	O	O
the	O	O
same	O	O
foreach	O	B-Code_Block
loop	O	O
is	O	O
not	O	O
possible	O	O
.	O	O

Can	O	O
anyone	O	O
verify	O	O
this	O	O
,	O	O
and	O	O
if	O	O
so	O	O
,	O	O
does	O	O
anyone	O	O
have	O	O
another	O	O
idea	O	O
for	O	O
how	O	O
I	O	O
could	O	O
achieve	O	O
a	O	O
similar	O	O
result	O	O
?	O	O

Thanks	O	O
so	O	O
much	O	O
!	O	O

I	O	O
want	O	O
to	O	O
copy	O	O
div	O	B-HTML_XML_Tag
tag	O	O
action	O	O
to	O	O
inputbox	O	B-User_Interface_Element
in	O	O
click	O	O
event.In	O	O
div	O	B-HTML_XML_Tag
tag	O	O
calender	O	B-Application
is	O	O
displayed	O	O
.	O	O

Just	O	O
show	O	O
datepicker	O	B-Function
on	O	O
a	O	O
click	O	O
event	O	O
like	O	O
this	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
integrate	O	O
AWS	O	B-Application
API	O	I-Application
Gateway	O	I-Application
with	O	O
an	O	O
AWS	O	B-Application
lambda	O	I-Application
function	O	O
.	O	O

The	O	O
integration	O	O
works	O	O
flawlessly	O	O
until	O	O
I	O	O
use	O	O
the	O	O
'	O	O
Lambda	O	O
Proxy	O	O
integration	O	O
'	O	O
in	O	O
my	O	O
Integration	O	O
Request	O	O
.	O	O

When	O	O
I	O	O
check	O	O
'	O	O
Use	O	O
Lambda	O	O
Proxy	O	O
integration	O	O
'	O	O
in	O	O
my	O	O
integration	O	O
request	O	O
,	O	O
I	O	O
start	O	O
getting	O	O
:	O	O

I	O	O
googled	O	B-Website
around	O	O
a	O	O
bit	O	O
and	O	O
realized	O	O
that	O	O
I	O	O
need	O	O
to	O	O
send	O	O
back	O	O
the	O	O
response	O	O
in	O	O
a	O	O
certain	O	O
format	O	O
:	O	O

However	O	O
,	O	O
despite	O	O
doing	O	O
that	O	O
,	O	O
I	O	O
still	O	O
continue	O	O
to	O	O
see	O	O
the	O	O
same	O	O
error	O	O
.	O	O

What	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
?	O	O

This	O	O
is	O	O
what	O	O
my	O	O
Lambda	O	B-Application
function	O	O
looks	O	O
like	O	O
:	O	O

When	O	O
I	O	O
test	O	O
the	O	O
API	O	O
from	O	O
API	O	B-Application
Gateway	O	I-Application
console	O	O
,	O	O
this	O	O
is	O	O
the	O	O
response	O	O
I	O	O
get	O	O
:	O	O

If	O	O
I	O	O
un-check	O	O
the	O	O
'	O	O
Use	O	O
Lambda	O	O
Proxy	O	O
integration	O	O
'	O	O
,	O	O
everything	O	O
works	O	O
okay	O	O
.	O	O

But	O	O
I	O	O
want	O	O
to	O	O
know	O	O
why	O	O
my	O	O
response	O	O
is	O	O
malformed	O	O
and	O	O
how	O	O
to	O	O
fix	O	O
it	O	O
.	O	O

Thanks	O	O
!	O	O

I	O	O
figured	O	O
it	O	O
out	O	O
.	O	O

I	O	O
was	O	O
sending	O	O
the	O	O
response	O	O
back	O	O
in	O	O
an	O	O
incorrect	O	O
manner	O	O
.	O	O

The	O	O
response	O	O
had	O	O
to	O	O
be	O	O
sent	O	O
back	O	O
as	O	O
a	O	O
POJO	O	B-Data_Type
object	O	O
directly	O	O
rather	O	O
than	O	O
serializing	O	O
the	O	O
POJO	O	B-Data_Type
and	O	O
sending	O	O
it	O	O
back	O	O
as	O	O
a	O	O
String	O	B-Data_Type
.	O	O

This	O	O
is	O	O
how	O	O
I	O	O
got	O	O
it	O	O
to	O	O
work	O	O
.	O	O

Hope	O	O
this	O	O
helps	O	O
someone	O	O
!	O	O

I	O	O
'm	O	O
using	O	O
Ardent	O	B-Application
with	O	O
Laravel	O	B-Library
.	O	O

We	O	O
are	O	O
working	O	O
on	O	O
a	O	O
site	O	O
that	O	O
only	O	O
allows	O	O
US	O	O
customers	O	O
but	O	O
we	O	O
're	O	O
extending	O	O
it	O	O
to	O	O
Canadian	O	O
customers	O	O
as	O	O
well	O	O
.	O	O

One	O	O
of	O	O
our	O	O
requirements	O	O
is	O	O
that	O	O
the	O	O
zip	O	O
code	O	O
be	O	O
5-9	O	B-Value
characters	O	I-Value
long	O	O
,	O	O
all	O	O
numbers	O	O
(	O	O
we	O	O
strip	O	O
out	O	O
the	O	O
dash	O	O
and	O	O
other	O	O
punctuation	O	O
to	O	O
validate	O	O
)	O	O
.	O	O

We	O	O
want	O	O
to	O	O
have	O	O
validation	O	O
for	O	O
postal	O	O
codes	O	O
as	O	O
well	O	O
,	O	O
but	O	O
only	O	O
for	O	O
postal_codes	O	B-Variable
to	O	O
be	O	O
required	O	O
if	O	O
zip_code	O	B-Variable
is	O	O
not	O	O
offered	O	O
(	O	O
and	O	O
vice	O	O
versa	O	O
)	O	O
.	O	O

Is	O	O
this	O	O
possible	O	O
?	O	O

Theoretically	O	O
we	O	O
could	O	O
use	O	O
just	O	O
one	O	O
field	O	O
but	O	O
we	O	O
'd	O	O
have	O	O
to	O	O
have	O	O
a	O	O
more	O	O
complex	O	O
regex	O	O
.	O	O

In	O	O
my	O	O
site	O	O
,	O	O
I	O	O
handle	O	O
this	O	O
with	O	O
a	O	O
country	O	B-Variable
field	O	O
:	O	O

You	O	O
could	O	O
also	O	O
use	O	O
required_without	O	B-Value
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
test	O	O
how	O	O
long	O	O
my	O	O
battery	O	B-Device
runs	O	O
on	O	O
my	O	O
raspberry	O	B-Device
pi	O	I-Device
.	O	O

All	O	O
i	O	O
need	O	O
to	O	O
do	O	O
is	O	O
run	O	O
a	O	O
while	O	O
loop	O	O
until	O	O
the	O	O
battery	O	B-Device
dies	O	O
.	O	O

However	O	O
,	O	O
I	O	O
need	O	O
to	O	O
record	O	O
the	O	O
time	O	O
that	O	O
it	O	O
starts	O	O
and	O	O
ends	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
save	O	O
the	O	O
data	O	O
into	O	O
a	O	O
txt	O	B-File_Type
file	O	O
.	O	O

My	O	O
current	O	O
code	O	O
is	O	O
as	O	O
follows	O	O
:	O	O

If	O	O
I	O	O
just	O	O
print	O	O
the	O	O
results	O	O
in	O	O
python	O	B-Language
i	O	O
will	O	O
get	O	O
a	O	O
result	O	O
,	O	O
and	O	O
the	O	O
current	O	O
code	O	O
makes	O	O
a	O	O
file	O	B-Class
called	O	O
'	O	O
file	O	B-Variable
'	O	O
but	O	O
there	O	O
is	O	O
nothing	O	O
saved	O	O
in	O	O
the	O	O
txt	O	B-File_Type
file	O	O
.	O	O

Any	O	O
and	O	O
all	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

Thank	O	O
you	O	O
for	O	O
your	O	O
time	O	O

No	O	O
need	O	O
to	O	O
record	O	O
these	O	O
times	O	O
yourself	O	O
.	O	O

The	O	O
Pi	O	B-Device
(	O	O
and	O	O
almost	O	O
any	O	O
Linux	O	B-Operating_System
distribution	O	O
)	O	O
writes	O	O
those	O	O
events	O	O
to	O	O
the	O	O
/var/log/wtmp	B-Code_Block	B-File_Name
file	O	O
(	O	O
more	O	O
about	O	O
that	O	O
file	O	O
here	O	O
)	O	O
.	O	O

The	O	O
last	B-Code_Block	B-Code_Block
command	O	O
can	O	O
retrieve	O	O
those	O	O
events	O	O
(	O	O
also	O	O
see	O	O
the	O	O
manual	O	O
entry	O	O
for	O	O
last	O	O
)	O	O
.	O	O

Try	O	O
the	O	O
following	O	O
:	O	O

Explanation	O	O
of	O	O
the	O	O
flags	O	O
:	O	O

-F	O	B-Code_Block
prints	O	O
the	O	O
full	O	O
date	O	O
and	O	O
times	O	O
-	O	O
which	O	O
is	O	O
handy	O	O
in	O	O
your	O	O
case	O	O
,	O	O
because	O	O
that	O	O
's	O	O
what	O	O
you	O	O
wanted	O	O
to	O	O
know	O	O
.	O	O

-R	O	B-Code_Block
suppresses	O	O
the	O	O
hostname	O	O
in	O	O
the	O	O
output	O	O
.	O	O

You	O	O
do	O	O
n't	O	O
need	O	O
that	O	O
.	O	O

-x	O	B-Code_Block
shows	O	O
shutdown	O	O
en	O	O
runlevel	O	O
changes	O	O
-	O	O
now	O	O
that	O	O
's	O	O
what	O	O
you	O	O
wanted	O	O
to	O	O
know	O	O
.	O	O

Finally	O	O
the	O	O
grep	B-Code_Block	B-Code_Block
statement	O	O
filters	O	O
out	O	O
the	O	O
boot	O	O
or	O	O
shutdown	O	O
messages	O	O
.	O	O

I	O	O
would	O	O
recomend	O	O
code	O	O
that	O	O
looks	O	O
like	O	O
the	O	O
following	O	O
:	O	O

The	O	O
couple	O	O
of	O	O
differences	O	O
.	O	O

First	O	O
,	O	O
you	O	O
always	O	O
open	O	B-Function
the	O	O
file	O	B-Class
in	O	O
append	B-Code_Block	O
mode	O	O
.	O	O

This	O	O
way	O	O
,	O	O
the	O	O
file	O	B-Class
will	O	O
be	O	O
flushed	O	O
every	O	O
time	O	O
.	O	O

Next	O	O
,	O	O
it	O	O
will	O	O
always	O	O
update	O	O
the	O	O
file	O	B-Class
with	O	O
the	O	O
amount	O	O
of	O	O
time	O	O
elapsed	O	O
.	O	O

So	O	O
even	O	O
if	O	O
your	O	O
raspberry	O	B-Device
pi	O	I-Device
shuts	O	O
down	O	O
,	O	O
you	O	O
should	O	O
be	O	O
able	O	O
to	O	O
recover	O	O
it	O	O
.	O	O

Context	O	O

GNU	O	B-Operating_System
bash	O	B-Application
4.4.12(1)-release	B-Code_Block	B-Version

Powerline	O	B-Application
2.5.2-1	B-Code_Block	B-Version

PS1	O	B-Variable
Script	O	O

Powerline	O	B-Application
config	O	O

config.json	O	B-File_Name

colors.json	O	B-File_Name

colorschemes/shell/default.json	O	B-File_Name

themes/shell/default.json	O	B-File_Name

Problem	O	O

I	O	O
have	O	O
the	O	O
same	O	O
problem	O	O
as	O	O
him	O	O
,	O	O
when	O	O
I	O	O
write	O	O
a	O	O
few	O	O
chars	O	B-Data_Type
the	O	O
line	O	O
wraps	O	O
and	O	O
I	O	O
start	O	O
writing	O	O
in	O	O
the	O	O
same	O	O
line	O	O
,	O	O
overwriting	O	O
what	O	O
I	O	O
already	O	O
wrote	O	O
(	O	O
including	O	O
ps	O	B-Variable
1)	O	I-Variable
.	O	O

I	O	O
am	O	O
aware	O	O
that	O	O
this	O	O
could	O	O
be	O	O
a	O	O
non-printable	O	O
character	O	O
problem	O	O
,	O	O
but	O	O
does	O	O
n't	O	O
it	O	O
means	O	O
that	O	O
it	O	O
's	O	O
a	O	O
powerline	O	B-Application
bug	O	O
?	O	O

What	O	O
other	O	O
problems	O	O
can	O	O
it	O	O
be	O	O
?	O	O

I	O	O
am	O	O
attempting	O	O
to	O	O
queue	O	B-Data_Structure
multiple	O	O
notifications	O	B-User_Interface_Element
to	O	O
pop	O	O
at	O	O
different	O	O
times	O	O
depending	O	O
on	O	O
when	O	O
the	O	O
user	O	O
clicks	O	O
a	O	O
button	O	B-User_Interface_Element
(	O	O
scheduleNotification	O	B-Class
occurs	O	O
10	O	O
seconds	O	O
after	O	O
its	O	O
pressed	O	O
)	O	O
but	O	O
the	O	O
notifications	O	B-User_Interface_Element
all	O	O
pop	O	O
at	O	O
the	O	O
same	O	O
time	O	O
depending	O	O
on	O	O
the	O	O
users	O	O
final	O	O
press	O	O
of	O	O
the	O	O
button	O	B-User_Interface_Element
.	O	O

For	O	O
example	O	O
,	O	O
pressing	O	O
the	O	O
button	O	B-User_Interface_Element
4	O	O
times	O	O
,	O	O
the	O	O
final	O	O
notification	O	B-User_Interface_Element
will	O	O
pop	O	O
10	O	O
seconds	O	O
after	O	O
the	O	O
4th	O	O
click	O	O
.	O	O

Relevant	O	O
code	O	O
:	O	O

Receiver	O	B-Class
class	O	O

I	O	O
have	O	O
form	O	O
validation	O	O
code	O	O
which	O	O
notifies	O	O
when	O	O
the	O	O
EmployeeNo	B-Code_Block	B-Variable
and	O	O
EngagementID	B-Code_Block	B-Variable
have	O	O
already	O	O
been	O	O
created	O	O
.	O	O

It	O	O
should	O	O
work	O	O
like	O	O
this	O	O
:	O	O
when	O	O
you	O	O
have	O	O
an	O	O
EmployeeNo	B-Code_Block	B-Variable
with	O	O
0507	B-Code_Block	B-Value
and	O	O
an	O	O
EngagementID	B-Code_Block	B-Variable
with	O	O
13	B-Code_Block	B-Value
,	O	O
it	O	O
should	O	O
not	O	O
create	O	O
a	O	O
duplicate	O	O
.	O	O

The	O	O
error	O	O
should	O	O
be	O	O
,	O	O
Engagement	O	B-Output_Block
already	O	I-Output_Block
exists	O	I-Output_Block
on	O	I-Output_Block
that	O	I-Output_Block
username	O	I-Output_Block
.	O	O

Can	O	O
you	O	O
please	O	O
help	O	O
me	O	O
?	O	O

simply	O	O
put	O	O
you	O	O
're	O	O
declaring	O	O
a	O	O
class	O	O
named	O	O
"	O	O
Die	O	B-Class
"	O	O
and	O	O
defining	O	O
3	O	O
functions	O	O
which	O	O
do	O	O
the	O	O
following	O	O
:	O	O

show	O	B-Function
:	O	O
returns	O	O
a	O	O
string	O	B-Data_Type
with	O	O
the	O	O
face	O	O
value	O	O
of	O	O
the	O	O
die	O	O
in	O	O
brackets	O	O

getFaceValue	O	B-Function
:	O	O
get	O	O
the	O	O
face	O	O
value	O	O
of	O	O
the	O	O
die	O	O

roll	O	B-Function
:	O	O
gets	O	O
a	O	O
random	O	O
number	O	O
between	O	O
1	O	B-Value
and	O	O
6	O	B-Value
,	O	O
essentially	O	O
rolling	O	O
the	O	O
die	O	O

I	O	O
have	O	O
:	O	O

I	O	O
want	O	O
to	O	O
find	O	O
B	O	B-Variable
in	O	O
A	O	B-Variable
,	O	O
but	O	O
like	O	O
this	O	O
:	O	O

find	O	O
first	O	O
rowA	O	O
of	O	O
value	O	O
1	O	O
(	O	O
from	O	O
B	O	B-Variable
)	O	O

find	O	O
first	O	O
rowA	O	O
of	O	O
value	O	O
0	O	O
(	O	O
from	O	O
B	O	B-Function
)	O	O

find	O	O
first	O	O
rowA	O	O
of	O	O
value	O	O
5	O	O
(	O	O
from	O	O
B	O	B-Variable
)	O	O

I	O	O
should	O	O
have	O	O
at	O	O
the	O	O
end	O	O
C	B-Code_Block	B-Code_Block
=[	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block

Your	O	O
code	O	O
is	O	O
almost	O	O
correct	O	O
.	O	O

You	O	O
must	O	O
initialize	O	O
the	O	O
index-variable	B-Code_Block	B-Variable
:	O	O

In	O	O
MySQL	O	B-Application
,	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
store	O	O
a	O	O
type	O	O
in	O	O
a	O	O
variable	O	O
and	O	O
use	O	O
it	O	O
in	O	O
following	O	O
expressions	O	O
?	O	O

The	O	O
reason	O	O
is	O	O
to	O	O
reduce	O	O
code	O	O
duplicity	O	O
and	O	O
avoid	O	O
possible	O	O
problems	O	O
when	O	O
editing	O	O
existing	O	O
scripts	O	O
when	O	O
it	O	O
is	O	O
mandatory	O	O
to	O	O
use	O	O
the	O	O
same	O	O
type	O	O
.	O	O

For	O	O
example	O	O
:	O	O

I	O	O
had	O	O
1	O	O
perl	O	B-Language
script	O	O
in	O	O
which	O	O
we	O	O
write	O	O
couple	O	O
of	O	O
subroutines	O	O
.	O	O

Example	O	O
:	O	O

Now	O	O
,	O	O
i	O	O
wrote	O	O
another	O	O
script	O	O
Try_2.pl	B-Code_Block	B-File_Name
,	O	O
in	O	O
which	O	O
i	O	O
want	O	O
to	O	O
call	O	O
check	O	O
subroutine	O	O
of	O	O
perl	O	B-Language
script	O	O
Try_1.pl	B-Code_Block	B-File_Name
.	O	O

It	O	O
sounds	O	O
like	O	O
you	O	O
want	O	O
to	O	O
create	O	O
a	O	O
module	O	O
.	O	O

Try_1.pm	O	B-File_Name
(	O	O
Edit	O	O
:	O	O
note	O	O
extension	O	O
)	O	O
should	O	O
have	O	O
the	O	O
following	O	O
form	O	O
:	O	O

And	O	O
then	O	O
Try_2.pl	O	B-File_Name
needs	O	O
to	O	O
get	O	O
that	O	O
code	O	O
:	O	O

That	O	O
what	O	O
you	O	O
're	O	O
looking	O	O
for	O	O
?	O	O

If	O	O
you	O	O
are	O	O
not	O	O
using	O	O
modules	O	O
(	O	O
extension	O	O
.pm	B-Code_Block	B-File_Type
)	O	O
but	O	O
instead	O	O
use	O	O
libraries	O	O
(	O	O
extension	O	O
.pl	B-Code_Block	B-File_Type
)	O	O
:	O	O

Make	O	O
sure	O	O
that	O	O
both	O	O
files	O	O
Try_1.pl	B-Code_Block	B-File_Name
and	O	O
Try_2.pl	B-Code_Block	B-File_Name
are	O	O
in	O	O
the	O	O
same	O	O
directory	O	O
.	O	O

Should	O	O
I	O	O
use	O	O
ArrayList	O	B-Class
,	O	O
Vectors	O	B-Class
,	O	O
HashMp	O	B-Class
or	O	O
is	O	O
there	O	O
anything	O	O
else	O	O
I	O	O
should	O	O
use	O	O
to	O	O
store	O	O
data	O	O
from	O	O
a	O	O
bank	O	O
program	O	O
I	O	O
am	O	O
working	O	O
on	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
store	O	O
the	O	O
user	O	O
information	O	O
in	O	O
an	O	O
one	O	O
of	O	O
them	O	O
and	O	O
then	O	O
send	O	O
it	O	O
to	O	O
a	O	O
file	O	O
,	O	O
which	O	O
should	O	O
I	O	O
use	O	O
?	O	O

Thank	O	O
you	O	O
.	O	O

To	O	O
decide	O	O
between	O	O
using	O	O
an	O	O
ArrayList/Vector	O	B-Class
or	O	O
a	O	O
HashMap	O	B-Class
depends	O	O
on	O	O
whether	O	O
you	O	O
have	O	O
key-value	O	O
pairs	O	O
or	O	O
simple	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
elements	O	O
.	O	O

For	O	O
key-value	O	O
pairs	O	O
a	O	O
HashMap	O	B-Class
is	O	O
the	O	O
go-to	O	O
option	O	O
(	O	O
e.g	O	O
name	O	B-Variable
-	O	O
person	O	B-Variable
object	O	O
)	O	O
.	O	O

If	O	O
you	O	O
just	O	O
have	O	O
objects	O	B-Class
but	O	O
no	O	O
real	O	O
keys	O	O
(	O	O
a	O	O
list	O	O
of	O	O
trees	O	O
in	O	O
a	O	O
forest	O	O
)	O	O
then	O	O
a	O	O
ArrayList	O	B-Class
or	O	O
Vector	O	B-Class
would	O	O
be	O	O
better	O	O
.	O	O

The	O	O
difference	O	O
between	O	O
Vector	O	B-Class
and	O	O
ArrayList	O	B-Class
is	O	O
more	O	O
subtle	O	O
.	O	O

If	O	O
you	O	O
want	O	O
more	O	O
information	O	O
on	O	O
the	O	O
difference	O	O
between	O	O
the	O	O
two	O	O
you	O	O
can	O	O
read	O	O
this	O	O
article	O	O
.	O	O

But	O	O
as	O	O
the	O	O
article	O	O
is	O	O
from	O	O
2001	O	O
,	O	O
the	O	O
information	O	O
is	O	O
n't	O	O
the	O	O
newest	O	O
.	O	O

In	O	O
most	O	O
cases	O	O
,	O	O
the	O	O
ArrayList	O	B-Class
is	O	O
the	O	O
better	O	O
choice	O	O
and	O	O
Vector	O	B-Class
is	O	O
pretty	O	O
much	O	O
considered	O	O
deprecated	O	O
nowadays	O	O
.	O	O

As	O	O
the	O	O
biggest	O	O
difference	O	O
between	O	O
the	O	O
two	O	O
is	O	O
,	O	O
that	O	O
Vector	O	B-Class
is	O	O
synchronized	O	O
while	O	O
ArrayList	O	B-Class
is	O	O
n't	O	O
,	O	O
which	O	O
in	O	O
most	O	O
cases	O	O
,	O	O
makes	O	O
the	O	O
Vector	O	B-Class
slower	O	O
than	O	O
the	O	O
ArrayList	O	B-Class
as	O	O
it	O	O
creates	O	O
unnecessary	O	O
overhead	O	O
.	O	O

For	O	O
more	O	O
information	O	O
you	O	O
can	O	O
look	O	O
at	O	O
this	O	O
question	O	O
:	O	O
Why	O	O
is	O	O
Java	O	B-Language
Vector	O	B-Class
class	O	O
considered	O	O
obsolete	O	O
or	O	O
deprecated	O	O
?	O	O

I	O	O
am	O	O
coding	O	O
in	O	O
Qt	O	B-Application
C++	O	B-Language
.	O	O

I	O	O
am	O	O
declaring	O	O
a	O	O
literal	O	O
double	O	B-Data_Type
value	O	O
in	O	O
my	O	O
main	O	O
rountine	O	O
of	O	O
0.1	O	B-Value
.	O	O

I	O	O
then	O	O
pass	O	O
this	O	O
variable	O	O
to	O	O
a	O	O
function	O	O
that	O	O
takes	O	O
type	O	O
double	O	B-Data_Type
.	O	O

When	O	O
I	O	O
hover	O	O
the	O	O
mouse	O	O
over	O	O
the	O	O
variable	O	O
in	O	O
debug	O	O
mode	O	O
I	O	O
see	O	O
0.100000000000001	O	B-Value

What	O	O
is	O	O
the	O	O
cause	O	O
of	O	O
this	O	O
change	O	O
and	O	O
how	O	O
do	O	O
I	O	O
stop	O	O
it	O	O
please	O	O
?	O	O

Method	O	O
Definition	O	O
:	O	O

Method	O	O
Call	O	O
with	O	O
literal	O	O
value	O	O
of	O	O
0.1	O	B-Value
:	O	O

My	O	O
environment	O	O
is	O	O
Windows	O	B-Operating_System
64	O	B-Version
bit	O	O
OS	O	O
using	O	O
Qt	O	B-Application
5.2.1	O	B-Version
and	O	O
compiling	O	O
using	O	O
Microsoft	O	B-Application
2010	O	I-Application
Visual	O	I-Application
Studio	O	I-Application
compiler	O	I-Application
in	O	O
32	O	O
bit	O	O
.	O	O

Many	O	O
decimal	O	O
numbers	O	O
are	O	O
not	O	O
exactly	O	O
representable	O	O
in	O	O
IEEE	O	O
floating	O	O
point	O	O
(	O	O
i.e	O	O
.	O	O
the	O	O
binary	O	O
representation	O	O
used	O	O
for	O	O
double	B-Code_Block	B-Data_Type
)	O	O
and	O	O
0.1	O	B-Value
falls	O	O
in	O	O
this	O	O
camp	O	O
.	O	O

When	O	O
you	O	O
type	O	O
0.1	B-Code_Block	B-Value
the	O	O
C++	O	B-Language
compiler	O	B-Application
is	O	O
required	O	O
to	O	O
convert	O	O
that	O	O
into	O	O
a	O	O
double	B-Code_Block	B-Data_Type
to	O	O
be	O	O
represented	O	O
on	O	O
your	O	O
hardware	O	O
.	O	O

It	O	O
does	O	O
so	O	O
by	O	O
computing	O	O
a	O	O
near	O	O
approximation	O	O
of	O	O
this	O	O
and	O	O
so	O	O
you	O	O
see	O	O
a	O	O
bit	O	O
of	O	O
error	O	O
.	O	O

If	O	O
you	O	O
try	O	O
something	O	O
like	O	O
a	O	O
power	O	O
of	O	O
two	O	O
:	O	O
0.5	B-Code_Block	B-Value
,	O	O
0.25	B-Code_Block	B-Value
these	O	O
will	O	O
be	O	O
exactly	O	O
represented	O	O
.	O	O

See	O	O
this	O	O
link	O	O
for	O	O
a	O	O
much	O	O
more	O	O
in-depth	O	O
description	O	O
of	O	O
the	O	O
idea	O	O
.	O	O

This	O	O
is	O	O
normal	O	O
behaviour	O	O
in	O	O
any	O	O
computer	O	B-Device
.	O	O

It	O	O
's	O	O
caused	O	O
by	O	O
the	O	O
fact	O	O
that	O	O
decimal	O	B-Data_Type
numbers	O	I-Data_Type
are	O	O
being	O	O
stored	O	O
in	O	O
fixed-sized	O	O
binary	O	O
memory	O	O
.	O	O

The	O	O
extra	O	O
digits	O	O
come	O	O
from	O	O
the	O	O
inherent	O	O
errors	O	O
caused	O	O
by	O	O
converting	O	O
from	O	O
binary	O	O
to	O	O
decimal	O	O
.	O	O

You	O	O
will	O	O
not	O	O
get	O	O
rid	O	O
of	O	O
them	O	O
.	O	O

The	O	O
best	O	O
you	O	O
can	O	O
do	O	O
is	O	O
choose	O	O
a	O	O
precision	O	O
(	O	O
either	O	O
float	B-Code_Block	B-Data_Type
or	O	O
double	B-Code_Block	B-Data_Type
)	O	O
that	O	O
is	O	O
big	O	O
enough	O	O
so	O	O
that	O	O
the	O	O
extra	O	O
error	O	O
digits	O	O
will	O	O
not	O	O
make	O	O
any	O	O
difference	O	O
to	O	O
your	O	O
solution	O	O
,	O	O
and	O	O
then	O	O
chop	O	O
them	O	O
off	O	O
when	O	O
you	O	O
display	O	O
the	O	O
number	O	O
.	O	O

When	O	O
my	O	O
view	O	B-Class
controller	O	I-Class
is	O	O
first	O	O
presented	O	O
,	O	O
I	O	O
want	O	O
it	O	O
to	O	O
potentially	O	O
update	O	O
a	O	O
cache	O	O
that	O	O
provides	O	O
the	O	O
data	O	O
for	O	O
that	O	O
view	O	O
.	O	O

However	O	O
,	O	O
when	O	O
the	O	O
user	O	O
taps	O	O
the	O	O
back	O	O
button	O	B-User_Interface_Element
from	O	O
a	O	O
deeper	O	O
view	O	B-Class
controller	O	I-Class
to	O	O
return	O	O
to	O	O
this	O	O
view	O	B-Class
controller	O	I-Class
,	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
update	O	O
the	O	O
cache	O	O
again	O	O
.	O	O

Which	O	O
event	O	O
should	O	O
I	O	O
be	O	O
using	O	O
?	O	O

in	O	O
init	B-Code_Block	B-Function
,	O	O
I	O	O
do	O	O
n't	O	O
have	O	O
all	O	O
the	O	O
parameters	O	O
I	O	O
need	O	O
yet	O	O
.	O	O

viewWillAppear	B-Code_Block	B-Function
will	O	O
be	O	O
fired	O	O
every	O	O
time	O	O
the	O	O
view	O	O
will	O	O
appear	O	O
.	O	O

viewDidLoad	B-Code_Block	B-Function
will	O	O
be	O	O
fired	O	O
every	O	O
time	O	O
the	O	O
view	O	O
has	O	O
been	O	O
loaded	O	O
from	O	O
the	O	O
nib	O	B-File_Type
,	O	O
which	O	O
I	O	O
believe	O	O
could	O	O
happen	O	O
a	O	O
second	O	O
time	O	O
if	O	O
there	O	O
's	O	O
a	O	O
memory	O	O
warning	O	O
.	O	O

(	O	O
Or	O	O
is	O	O
this	O	O
wrong	O	O
?	O	O
)	O	O

Since	O	O
this	O	O
is	O	O
not	O	O
a	O	O
memory	O	O
resident	O	O
cache	O	O
,	O	O
it	O	O
seems	O	O
the	O	O
wrong	O	O
place	O	O
to	O	O
handle	O	O
this	O	O
.	O	O

having	O	O
the	O	O
caller	O	O
call	O	O
something	O	O
extra	O	O
is	O	O
inelegant	O	O
,	O	O
if	O	O
there	O	O
's	O	O
a	O	O
built-in	O	O
way	O	O
to	O	O
handle	O	O
this	O	O
.	O	O

To	O	O
clarify	O	O
,	O	O
this	O	O
is	O	O
not	O	O
a	O	O
memory	O	O
resident	O	O
cache	O	O
.	O	O

This	O	O
is	O	O
parsing	O	O
an	O	O
XML	O	B-File_Type
file	O	O
to	O	O
binary	O	B-File_Type
.	O	O

The	O	O
binary	O	B-File_Type
is	O	O
loaded	O	O
and	O	O
unloaded	O	O
in	O	O
viewDidLoad	B-Code_Block	B-Function
and	O	O
viewDidUnload	B-Code_Block	B-Function
.	O	O

This	O	O
is	O	O
a	O	O
prerequisite	O	O
for	O	O
that	O	O
step	O	O
,	O	O
making	O	O
sure	O	O
the	O	O
binary	O	B-File_Type
is	O	O
up-to-date	O	O
prior	O	O
to	O	O
it	O	O
being	O	O
loaded	O	O
.	O	O

load	O	O
the	O	O
cache	O	O
in	O	O
viewDidLoad	O	B-Function
and	O	O
release	O	O
it	O	O
in	O	O
viewDidUnload	O	B-Function
and	O	O
dealloc	O	B-Function
.	O	O

viewDidUnload	O	B-Function
is	O	O
called	O	O
during	O	O
low-memory	O	O
conditions	O	O
.	O	O

if	O	O
you	O	O
want	O	O
your	O	O
app	O	O
to	O	O
remain	O	O
responsive	O	O
,	O	O
you	O	O
'd	O	O
free	O	O
up	O	O
as	O	O
much	O	O
memory	O	O
as	O	O
you	O	O
can	O	O
.	O	O

well	O	O
explained	O	O
here	O	O
:	O	O
When	O	O
should	O	O
I	O	O
release	O	O
objects	O	O
in	O	O
-(void)viewDidUnload	O	B-Function
rather	O	O
than	O	O
in	O	O
-dealloc	O	B-Function
?	O	O

Using	O	O
init	B-Code_Block	B-Function
may	O	O
work	O	O
,	O	O
but	O	O
I	O	O
would	O	O
recommend	O	O
a	O	O
simple	O	O
subclass	O	O
of	O	O
UINavigationController	B-Code_Block	B-Class
.	O	O

Create	O	O
a	O	O
new	O	O
method	O	O
called	O	O
setRootTableViewController	B-Code_Block	B-Code_Block
:(	I-Code_Block	I-Code_Block
UITableViewController	I-Code_Block	I-Code_Block
*)	I-Code_Block	I-Code_Block
controller	I-Code_Block	I-Code_Block
,	O	O
or	O	O
something	O	O
like	O	O
it	O	O
.	O	O

In	O	O
the	O	O
method	O	O
implementation	O	O
call	O	O
this	O	O
:	O	O

reloadData	B-Code_Block	B-Variable
will	O	O
call	O	O
all	O	O
of	O	O
your	O	O
delegate	O	O
and	O	O
data	O	O
source	O	O
methods	O	O
,	O	O
and	O	O
use	O	O
them	O	O
to	O	O
update	O	O
the	O	O
table	O	B-User_Interface_Element
.	O	O

If	O	O
you	O	O
want	O	O
a	O	O
special	O	O
method	O	O
call	O	O
on	O	O
your	O	O
table	O	B-Class
view	O	I-Class
controller	O	I-Class
instead	O	O
,	O	O
you	O	O
could	O	O
change	O	O
the	O	O
method	O	O
declaration	O	O
to	O	O
setRootTableViewController	B-Code_Block	B-Code_Block
:(	I-Code_Block	I-Code_Block
CustomTableViewController	I-Code_Block	I-Code_Block
*)	I-Code_Block	I-Code_Block
controller	I-Code_Block	I-Code_Block
(	O	O
or	O	O
whatever	O	O
your	O	O
custom	O	O
table	O	O
controller	O	O
is	O	O
called	O	O
)	O	O
,	O	O
and	O	O
replace	O	O
the	O	O
reloadData	B-Code_Block	B-Variable
line	O	O
with	O	O
one	O	O
that	O	O
calls	O	O
that	O	O
method	O	O
.	O	O

Then	O	O
,	O	O
in	O	O
your	O	O
app	O	O
delegate	O	O
,	O	O
instead	O	O
of	O	O
creating	O	O
a	O	O
UINavigationController	B-Code_Block	B-Class
and	O	O
adding	O	O
your	O	O
custom	O	O
view	O	B-Class
controller	O	I-Class
,	O	O
create	O	O
one	O	O
of	O	O
these	O	O
,	O	O
and	O	O
call	O	O
this	O	O
method	O	O
to	O	O
add	O	O
the	O	O
first	O	O
view	O	O
.	O	O

However	O	O
,	O	O
if	O	O
you	O	O
are	O	O
using	O	O
a	O	O
nib	O	B-File_Type
to	O	O
set	O	O
the	O	O
rootViewController	B-Code_Block	B-Class
,	O	O
you	O	O
can	O	O
just	O	O
override	O	O
initWithRootViewController	B-Code_Block	B-Code_Block
:(	I-Code_Block	I-Code_Block
UIViewController	I-Code_Block	I-Code_Block
*)	I-Code_Block	I-Code_Block
controller	I-Code_Block	I-Code_Block
,	O	O
as	O	O
I	O	O
imagine	O	O
that	O	O
is	O	O
what	O	O
the	O	O
nib	O	B-File_Type
will	O	O
call	O	O
to	O	O
set	O	O
the	O	O
first	O	O
view	O	O
in	O	O
the	O	O
stack	O	O
:	O	O

Hope	O	O
this	O	O
helps	O	O
!	O	O

This	O	O
query	O	O
works	O	O
in	O	O
data	O	B-Application
studio	O	I-Application
,	O	O
but	O	O
fails	O	O
to	O	O
show	O	O
alias	O	O
in	O	O
MS	O	B-Application
Query	O	I-Application
!	O	O

I	O	O
have	O	O
tried	O	O
different	O	O
types	O	O
such	O	O
as	O	O
"",'',[]	O	B-Value
and	O	O
even	O	O
https://support.microsoft.com/en-us/kb/298955	O	O

SELECT	O	B-Code_Block
'	O	I-Code_Block
TRANIN'AS	O	I-Code_Block
NAME	O	I-Code_Block
,	O	I-Code_Block
SUM	O	I-Code_Block
(	O	I-Code_Block
CASE	O	I-Code_Block
WHEN	O	I-Code_Block
ALT3.TRANINDT	O	I-Code_Block
BETWEEN	O	I-Code_Block
20150603	O	I-Code_Block
AND	O	I-Code_Block
20150601	O	I-Code_Block
THEN	O	I-Code_Block
1	O	I-Code_Block
else	O	I-Code_Block
0	O	I-Code_Block
END	O	I-Code_Block
)	O	I-Code_Block
AS	O	B-Code_Block
CurrentMonth	O	I-Code_Block
,	O	I-Code_Block
SUM	O	I-Code_Block
(	O	I-Code_Block
CASE	O	I-Code_Block
WHEN	O	I-Code_Block
ALT3.TRANINDT	O	I-Code_Block
BETWEEN	O	I-Code_Block
20150501	O	I-Code_Block
AND	O	I-Code_Block
20150531	O	I-Code_Block
THEN	O	I-Code_Block
1	O	I-Code_Block
else	O	I-Code_Block
0	O	I-Code_Block
END	O	I-Code_Block
)	O	I-Code_Block
AS	O	B-Code_Block
LastMonth	O	I-Code_Block

FROM	O	B-Code_Block
ALT3	O	I-Code_Block

MS	O	B-Website
broke	O	O
MS	O	B-Application
query	O	I-Application
a	O	O
long	O	O
time	O	O
ago	O	O
..	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
to	O	O
get	O	O
it	O	O
to	O	O
work	O	O
right	O	O
,	O	O
but	O	O
nothing	O	O
worked	O	O
.	O	O

I	O	O
've	O	O
pretty	O	O
much	O	O
given	O	O
up	O	O
.	O	O

Normally	O	O
I	O	O
just	O	O
rename	O	O
the	O	O
column	O	B-Data_Structure
once	O	O
the	O	O
data	O	O
is	O	O
back	O	O
in	O	O
Excel	O	B-Application
.	O	O

But	O	O
if	O	O
you	O	O
really	O	O
want	O	O
the	O	O
name	O	O
returned	O	O
from	O	O
MS	O	B-Application
query	O	I-Application
,	O	O
this	O	O
works	O	O
:	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
why	O	O
,	O	O
but	O	O
i	O	O
ca	O	O
n't	O	O
pick	O	O
the	O	O
value	O	O
of	O	O
the	O	O
person__name	O	B-Variable
and	O	O
person__email	O	B-Variable
,	O	O
the	O	O
most	O	O
strange	O	O
part	O	O
is	O	O
that	O	O
i	O	O
can	O	O
pick	O	O
the	O	O
value	O	O
in	O	O
the	O	O
console	O	B-Application
on	O	O
the	O	O
browser	O	B-Application
..	O	I-Application
.	O	O
someone	O	O
knows	O	O
what	O	O
could	O	O
be	O	O
causing	O	O
this	O	O
?	O	O

This	O	O
is	O	O
not	O	O
a	O	O
problem	O	O
of	O	O
html	O	B-Language
the	O	O
2	O	O
inputs	O	B-User_Interface_Element
fields	O	I-User_Interface_Element
have	O	O
the	O	O
id	O	O
person__name	O	B-Variable
and	O	O
person__email	O	B-Variable
.	O	O

The	O	O
code	O	O
is	O	O
in	O	O
a	O	O
external	O	O
file	O	O
,	O	O
and	O	O
i	O	O
am	O	O
calling	O	O
that	O	O
in	O	O
the	O	O
bottom	O	O
of	O	O
my	O	O
html	O	B-Language
.	O	O

HTML	O	B-Language
:	O	O

I	O	O
cant	O	O
use	O	O
the	O	O
submit	O	O
input	O	O
.	O	O

UPDATE	O	O
:	O	O

The	O	O
scripts	O	O
in	O	O
the	O	O
bottom	O	O
of	O	O
the	O	O
page	O	O
:	O	O

Inside	O	O
the	O	O
main	O	O
script	O	O
:	O	O

If	O	O
you	O	O
want	O	O
to	O	O
alert	O	B-Function
the	O	O
name	O	B-Variable
,	O	O
make	O	O
sure	O	O
you	O	O
use	O	O
the	O	O
name	O	B-Variable
in	O	O
the	O	O
jQuery	O	B-Library

http://jsfiddle.net/376fLujs/3/	O	O

Also	O	O
,	O	O
make	O	O
sure	O	O
your	O	O
script	O	O
is	O	O
included	O	O
properly	O	O
.	O	O

Include	O	O
the	O	O
jQuery	O	B-Library
before	O	O
your	O	O
script	O	O
:	O	O

add	O	O
:	O	O
console.log("working")	O	B-Code_Block
;	O	I-Code_Block
as	O	O
the	O	O
very	O	O
first	O	O
line	O	O
of	O	O
your	O	O
script	O	O

open	O	O
the	O	O
chrome	O	B-Application
console	O	I-Application
/	O	O
Firebug	O	B-Application
and	O	O
refresh	O	O
your	O	O
page	O	O
.	O	O

if	O	O
you	O	O
do	O	O
n't	O	O
see	O	O
"	O	O
working	O	O
"	O	O
in	O	O
the	O	O
console	O	B-Application
,	O	O
your	O	O
javascript	O	B-Language
is	O	O
not	O	O
included	O	O
properly	O	O
.	O	O

Edit	O	O
:	O	O
based	O	O
on	O	O
your	O	O
comments	O	O
again	O	O
.	O	O

If	O	O
you	O	O
have	O	O
multiple	O	O
forms	O	O
,	O	O
re-using	O	O
the	O	O
same	O	O
ID	O	B-Variable
,	O	O
it	O	O
will	O	O
not	O	O
work	O	O
.	O	O

Always	O	O
keep	O	O
IDs	O	B-Variable
unique	O	O
.	O	O

Since	O	O
your	O	O
link	O	O
is	O	O
inside	O	O
of	O	O
the	O	O
form	O	B-User_Interface_Element
like	O	O
your	O	O
input	O	O
,	O	O
you	O	O
could	O	O
do	O	O
this	O	O
:	O	O

http://jsfiddle.net/376fLujs/4/	O	O

I	O	O
would	O	O
say	O	O
try	O	O
using	O	O
this	O	O
for	O	O
your	O	O
event	O	O
handling	O	O
:	O	O

The	O	O
reason	O	O
it	O	O
might	O	O
not	O	O
be	O	O
working	O	O
is	O	O
because	O	O
the	O	O
element	O	O
might	O	O
not	O	O
yet	O	O
be	O	O
created	O	O
when	O	O
the	O	O
script	O	O
loads	O	O
.	O	O

This	O	O
should	O	O
take	O	O
care	O	O
of	O	O
that	O	O
issue	O	O
.	O	O

I	O	O
'll	O	O
try	O	O
to	O	O
keep	O	O
this	O	O
as	O	O
brief	O	O
as	O	O
possible	O	O
.	O	O

I	O	O
have	O	O
GitLab	O	B-Application
server	O	I-Application
on	O	O
which	O	O
I	O	O
have	O	O
a	O	O
few	O	O
repositories	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
their	O	O
API	O	B-Application
,	O	O
specifically	O	O
Get	O	O
file	O	O
archive	O	O
using	O	O
cURL	O	B-Library
and	O	O
PHP	O	B-Language
.	O	O

Code	O	O
bellow	O	O
:	O	O

The	O	O
file	O	O
downloads	O	O
properly	O	O
and	O	O
is	O	O
saved	O	O
on	O	O
the	O	O
disk	O	O
.	O	O

However	O	O
,	O	O
when	O	O
I	O	O
try	O	O
to	O	O
unzip	O	O
it	O	O
MAC	O	B-Operating_System
OS	O	I-Operating_System
automatically	O	O
adds	O	O
a	O	O
.git	O	B-File_Type
extension	O	O
.	O	O

If	O	O
I	O	O
manually	O	O
remove	O	O
the	O	O
.git	O	B-File_Type
extension	O	O
it	O	O
will	O	O
be	O	O
properly	O	O
recognized	O	O
as	O	O
a	O	O
folder	O	O
and	O	O
everything	O	O
seems	O	O
to	O	O
be	O	O
in	O	O
order	O	O
(	O	O
no	O	O
missing	O	O
files	O	O
,	O	O
no	O	O
corrupted	O	O
files	O	O
,	O	O
etc	O	O
)	O	O
.	O	O

This	O	O
is	O	O
a	O	O
nuisance	O	O
to	O	O
say	O	O
the	O	O
least	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
particularly	O	O
sure	O	O
if	O	O
my	O	O
code	O	O
is	O	O
wrong	O	O
,	O	O
or	O	O
there	O	O
's	O	O
something	O	O
wrong	O	O
with	O	O
GitLab	O	B-Application
's	O	O
API	O	I-Application
,	O	O
or	O	O
there	O	O
's	O	O
something	O	O
wrong	O	O
how	O	O
MAC	O	B-Operating_System
OS	O	I-Operating_System
treats	O	O
.git	O	B-File_Type
extension	O	O
.	O	O

To	O	O
be	O	O
perfectly	O	O
honest	O	O
I	O	O
do	O	O
n't	O	O
even	O	O
know	O	O
where	O	O
to	O	O
begin	O	O
debugging	O	O
.	O	O

Google	O	B-Website
and/or	O	O
SO	O	B-Website
does	O	O
n't	O	O
have	O	O
anything	O	O
of	O	O
significance	O	O
either	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
OS	O	B-Operating_System
X	O	I-Operating_System
Version	O	O
10.8.4	O	B-Version

I	O	O
'll	O	O
leave	O	O
a	O	O
comment	O	O
with	O	O
their	O	O
API	O	B-Application
link	O	O
in	O	O
the	O	O
comments	O	O
,	O	O
because	O	O
apparently	O	O
I	O	O
ca	O	O
n't	O	O
use	O	O
links	O	O
since	O	O
I	O	O
'm	O	O
a	O	O
new	O	O
user	O	O
.	O	O

I	O	O
am	O	O
newer	O	O
to	O	O
Android	O	B-Operating_System
,	O	O
but	O	O
and	O	O
am	O	O
attempting	O	O
to	O	O
add	O	O
group	O	O
chat	O	O
functionality	O	O
that	O	O
would	O	O
be	O	O
similar	O	O
to	O	O
the	O	O
GroupMe	O	B-Application
app	O	O
.	O	O

Within	O	O
GroupMe	O	B-Application
,	O	O
a	O	O
person	O	O
can	O	O
make	O	O
a	O	O
group	O	O
,	O	O
invite	O	O
friends	O	O
and	O	O
all	O	O
those	O	O
friends	O	O
can	O	O
share	O	O
content	O	O
and	O	O
see	O	O
the	O	O
message	O	O
updates	O	O
of	O	O
other	O	O
members	O	O
.	O	O

I	O	O
have	O	O
researched	O	O
Scringo	O	B-Application
,	O	O
as	O	O
it	O	O
is	O	O
a	O	O
free	O	O
implementation	O	O
of	O	O
person	O	O
to	O	O
person	O	O
chat	O	O
,	O	O
but	O	O
the	O	O
docs	O	O
on	O	O
Group	O	O
chat	O	O
imply	O	O
only	O	O
using	O	O
'	O	O
chat	O	O
rooms	O	O
'	O	O
,	O	O
not	O	O
personal	O	O
small	O	O
group	O	O
related	O	O
chats	O	O
such	O	O
as	O	O
in	O	O
GroupMe	O	B-Application
.	O	O

Is	O	O
there	O	O
a	O	O
possibility	O	O
of	O	O
customizing	O	O
Scringo	O	B-Application
so	O	O
that	O	O
one	O	O
can	O	O
enable	O	O
such	O	O
'	O	O
private	O	O
'	O	O
,	O	O
invitation	O	O
only	O	O
,	O	O
group	O	O
features	O	O
?	O	O

You	O	O
can	O	O
use	O	O
the	O	O
ScringoCommentButton	O	B-User_Interface_Element
(	O	O
http://www.scringo.com/docs/android-guides/popular/setup-chat-rooms-and-forums/#Adhoc	O	O
)	O	O
and	O	O
let	O	O
only	O	O
the	O	O
users	O	O
you	O	O
want	O	O
into	O	O
that	O	O
room	O	O
.	O	O

You	O	O
can	O	O
show	O	O
this	O	O
button	O	B-User_Interface_Element
only	O	O
to	O	O
allowed	O	O
users	O	O
.	O	O

BTW	O	O
,	O	O
you	O	O
can	O	O
even	O	O
customize	O	O
the	O	O
UI	O	O
of	O	O
the	O	O
button	O	B-User_Interface_Element
using	O	O
the	O	O
XML	O	B-Language
:	O	O
scringo_comment_button.xml	O	B-File_Name
,	O	I-File_Name
inside	O	O
the	O	O
Scringo	O	B-Library
Android	O	I-Library
Library	O	I-Library
project	O	O

I	O	O
have	O	O
a	O	O
problem	O	O
.	O	O

I	O	O
am	O	O
using	O	O
a	O	O
Visual	O	B-Application
studio	O	I-Application
web	O	O
performance	O	O
test	O	O
and	O	O
I	O	O
have	O	O
a	O	O
csv	O	B-File_Type
file	O	O
with	O	O
the	O	O
data	O	O
that	O	O
I	O	O
need	O	O
to	O	O
send	O	O
in	O	O
a	O	O
string	O	B-Data_Type
body	O	O
of	O	O
a	O	O
web	O	O
request	O	O
.	O	O

The	O	O
issue	O	O
is	O	O
that	O	O
when	O	O
the	O	O
web	O	B-Application
test	O	I-Application
retrieve	O	O
the	O	O
data	O	O
from	O	O
accountID	O	B-Variable
it	O	O
takes	O	O
the	O	O
data	O	O
as	O	O
int	O	O
instead	O	O
of	O	O
a	O	O
string	O	B-Data_Type
.	O	O

So	O	O
if	O	O
the	O	O
account	O	O
number	O	O
is	O	O
000005	O	B-Value
or	O	O
000016	O	B-Value
the	O	O
test	O	O
put	O	O
a	O	O
5	O	B-Value
and	O	O
a	O	O
15	O	B-Value
ignoring	O	O
the	O	O
zeroes	O	B-Value
on	O	O
the	O	O
left	O	O
.	O	O

That	O	O
give	O	O
me	O	O
an	O	O
error	O	O
on	O	O
my	O	O
web	O	O
service	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
force	O	O
the	O	O
web	O	B-Application
test	O	I-Application
to	O	O
see	O	O
all	O	O
the	O	O
data	O	O
as	O	O
strings	O	B-Data_Type
?	O	O

Thanks	O	O

Below	O	O
you	O	O
can	O	O
see	O	O
an	O	O
example	O	O
of	O	O
the	O	O
csv	O	B-File_Type
file	O	O
.	O	O

The	O	O
data	O	O
is	O	O
not	O	O
a	O	O
lot	O	O
and	O	O
is	O	O
only	O	O
2	O	O
columns	O	B-Data_Structure
so	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
create	O	O
a	O	O
database	O	O
for	O	O
that	O	O

What	O	O
I	O	O
end	O	O
up	O	O
doing	O	O
is	O	O
creating	O	O
a	O	O
Web	O	B-Application
Request	O	I-Application
plug	O	I-Application
in	O	I-Application
that	O	O
gets	O	O
the	O	O
data	O	O
source	O	O
from	O	O
the	O	O
webtest	O	B-Application
context	O	O
and	O	O
editing	O	O
the	O	O
value	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
code	O	O
example	O	O
:	O	O

}	O	B-Code_Block

MKV	O	B-File_Type
is	O	O
one	O	O
of	O	O
the	O	O
most	O	O
popular	O	O
video	O	O
container	O	O
format	O	O
which	O	O
supports	O	O
to	O	O
group	O	O
one	O	O
or	O	O
more	O	O
video	O	O
,	O	O
audio	O	O
or	O	O
subtitle	O	O
files	O	O
to	O	O
be	O	O
grouped	O	O
together	O	O
to	O	O
one	O	O
file	O	O
;	O	O

Now	O	O
a	O	O
days	O	O
majority	O	O
of	O	O
4K	O	O
videos	O	O
available	O	O
online	O	O
are	O	O
in	O	O
mkv	O	B-File_Type
format	O	O
,	O	O
and	O	O
all	O	O
of	O	O
them	O	O
are	O	O
above	O	O
20GB	O	O
in	O	O
size	O	O
;	O	O

But	O	O
here	O	O
is	O	O
the	O	O
problem	O	O
,	O	O
majority	O	O
of	O	O
TV	O	B-Device
or	O	O
media	O	B-Device
player	O	I-Device
only	O	O
support	O	O
FAT16/32	O	O
not	O	O
even	O	O
exFAT	O	O
,	O	O
Considering	O	O
the	O	O
limitation	O	O
of	O	O
4GB	O	O
file	O	O
size	O	O
in	O	O
FAT32	O	O
,	O	O
is	O	O
there	O	O
a	O	O
way	O	O
that	O	O
i	O	O
can	O	O
split	O	O
the	O	O
20	O	O
gb	O	O
file	O	O
into	O	O
multiple	O	O
2GB	O	O
or	O	O
3Gb	O	O
file	O	O
and	O	O
having	O	O
metadata	O	O
mkv	O	B-File_Type
(	O	O
main.mkv	O	B-File_Name
in	O	O
the	O	O
below	O	O
example	O	O
)	O	O
file	O	O
which	O	O
will	O	O
able	O	O
to	O	O
pick	O	O
the	O	O
respective	O	O
data	O	O
;	O	O

Is	O	O
there	O	O
any	O	O
movie	O	O
format	O	O
which	O	O
supports	O	O
the	O	O
split	O	O
file	O	O
model	O	O

like	O	O
this	O	O

folder/	O	B-File_Name

main.mkv	O	B-File_Name

part1.dat	O	B-File_Name

part2.dat	O	B-File_Name

part3.dat	O	B-File_Name

part4.dat	O	B-File_Name

...	O	O
.	O	O
etc	O	O

Is	O	O
there	O	O
a	O	O
container	O	O
format	O	O
which	O	O
support	O	O
this	O	O
way	O	O
to	O	O
organize	O	O
files	O	O
?	O	O
?	O	O

If	O	O
MKV	O	B-File_Type
supports	O	O
this	O	O
,	O	O
how	O	O
can	O	O
i	O	O
convert	O	O
single	O	O
mkv	O	B-File_Type
file	O	O
to	O	O
this	O	O
format	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
set	O	O
up	O	O
my	O	O
virtual	O	O
(	O	O
xen	O	B-Application
)	O	O
win	O	B-Operating_System
xp	O	B-Version
instances	O	O
,	O	O
a	O	O
dedicated	O	O
windows	O	B-Operating_System
server	O	B-Application
,	O	O
and	O	O
a	O	O
dedicated	O	O
windows	O	B-Operating_System
xp	O	B-Version
desktop	O	B-Device
pc	O	I-Device
for	O	O
web	O	O
app	O	O
UI	O	O
testing	O	O
,	O	O
using	O	O
selenium-rc	O	B-Application
and	O	O
the	O	O
selenium	O	B-Library
PHP	O	B-Language
API	O	B-Library
from	O	O
pear	O	B-Application
(	O	O
the	O	O
php	O	B-Language
script	O	O
running	O	O
the	O	O
tests	O	O
sits	O	O
on	O	O
its	O	O
app	O	O
server	O	B-Application
,	O	O
on	O	O
the	O	O
same	O	O
local	O	O
network	O	O
as	O	O
the	O	O
remote-controlled	O	O
windowses	O	O
)	O	O
.	O	O

Everything	O	O
has	O	O
worked	O	O
out	O	O
great	O	O
so	O	O
far	O	O
,	O	O
except	O	O
i	O	O
am	O	O
unable	O	O
to	O	O
get	O	O
a	O	O
screenshot	O	O
from	O	O
selenium	O	B-Application
RC	O	I-Application
-	O	O
they	O	O
are	O	O
all	O	O
blank	O	O
(	O	O
gray	O	O
)	O	O
after	O	O
base64_decode()	O	B-Function
;	O	I-Function
(	O	O
without	O	O
that	O	O
,	O	O
they	O	O
dont	O	O
even	O	O
open	O	O
)	O	O
.	O	O

Despite	O	O
os	O	B-Operating_System
x	O	I-Operating_System
preview	O	B-Application
displays	O	O
them	O	O
as	O	O
gray	O	O
,	O	O
i	O	O
'm	O	O
pretty	O	O
sure	O	O
they	O	O
are	O	O
actually	O	O
transparent	O	O
or	O	O
have	O	O
some	O	O
kind	O	O
of	O	O
other	O	O
corruption	O	O
because	O	O
Photoshop	O	B-Application
wont	O	O
open	O	O
them	O	O
at	O	O
all	O	O
.	O	O

(	O	O
and	O	O
they	O	O
weigh	O	O
0.7k	O	O
)	O	O
The	O	O
unix	O	B-Operating_System
"	O	O
file	O	B-Code_Block
"	O	O
command	O	O
however	O	O
recognizes	O	O
them	O	O
correctly	O	O
as	O	O
"	O	O
PNG	O	B-File_Type
image	O	O
,	O	O
1440	O	O
x	O	O
900	O	O
,	O	O
8-bit/color	O	O
RGB	O	O
,	O	O
non-interlaced	O	O
"	O	O
-	O	O
1440	O	O
x	O	O
900	O	O
is	O	O
the	O	O
resolution	O	O
of	O	O
my	O	O
Mac	O	B-Device
,	O	O
connected	O	O
to	O	O
the	O	O
windows	O	B-Operating_System
systems	O	O
through	O	O
remote	O	B-Application
desktop	O	I-Application
.	O	O

I	O	O
'm	O	O
running	O	O
the	O	O
selenium	O	B-Application
rc	O	I-Application
directly	O	O
(	O	O
ie	O	O
java	O	B-Code_Block
-jar	O	I-Code_Block
selenium-server.jar	O	I-Code_Block
)	O	O
,	O	O
not	O	O
as	O	O
a	O	O
service	O	O
.	O	O

The	O	O
symptoms	O	O
are	O	O
the	O	O
same	O	O
accross	O	O
all	O	O
my	O	O
windows	O	B-Operating_System
test	O	O
systems	O	O
.	O	O

My	O	O
Selenium	O	B-Library
version	O	O
is	O	O
1.0.1	O	B-Version
,	O	O
here	O	O
's	O	O
the	O	O
snippet	O	O
that	O	O
tries	O	O
to	O	O
get	O	O
the	O	O
screenshot	O	O
:	O	O

$this->selenium->windowMaximize()	O	B-Code_Block
;	O	I-Code_Block

$screenshot	O	B-Code_Block
=	O	I-Code_Block
$this->selenium->captureScreenshotToString()	O	I-Code_Block
;	O	I-Code_Block

I	O	O
'm	O	O
using	O	O
the	O	O
latest	O	O
Testing_Selenium	O	B-Library
pear	O	I-Library
package	O	O
.	O	O

I	O	O
realize	O	O
there	O	O
is	O	O
a	O	O
question	O	O
here	O	O
dealing	O	O
with	O	O
a	O	O
similar	O	O
issue	O	O
,	O	O
but	O	O
i	O	O
'm	O	O
not	O	O
using	O	O
a	O	O
service	O	O
wrapper	O	O
nor	O	O
i	O	O
can	O	O
afford	O	O
to	O	O
introduce	O	O
this	O	O
complexity	O	O
(	O	O
but	O	O
do	O	O
let	O	O
me	O	O
know	O	O
if	O	O
you	O	O
think	O	O
that	O	O
's	O	O
a	O	O
mistake	O	O
)	O	O

thanks	O	O
&	O	O
regards	O	O
,	O	O

Andras	O	B-User_Name

ps	O	O
:	O	O
i	O	O
'm	O	O
cross	O	O
posting	O	O
this	O	O
to	O	O
several	O	O
forums	O	O
in	O	O
a	O	O
desperate	O	O
attempt	O	O
to	O	O
get	O	O
some	O	O
imput	O	O
-	O	O
apologies	O	O
if	O	O
that	O	O
upsets	O	O
you	O	O
:-)	O	O

edit	O	O
:	O	O
selenium	O	B-Application
rc	O	I-Application
console	O	I-Application
says	O	O

16:38:24.562	O	B-Output_Block
INFO	O	I-Output_Block
-	O	I-Output_Block
Got	O	I-Output_Block
result	O	I-Output_Block
:	O	I-Output_Block
[	O	I-Output_Block
base64	O	I-Output_Block
encoded	O	I-Output_Block
PNG	O	I-Output_Block
]	O	I-Output_Block
on	O	B-Output_Block
session	O	I-Output_Block
a5304a287eb244028c8c843b294bf98f	O	I-Output_Block

java.net.SocketException	O	B-Output_Block
:	O	I-Output_Block
Software	O	I-Output_Block
caused	O	I-Output_Block
connection	O	I-Output_Block
abort	O	I-Output_Block
:	O	I-Output_Block
socket	O	I-Output_Block
write	O	I-Output_Block
error	O	I-Output_Block

at	O	B-Output_Block
java.net.SocketOutputStream.socketWrite0(NativeMethod)	O	I-Output_Block

at	O	B-Output_Block
java.net.SocketOutputStream.socketWrite(UnknownSource)	O	I-Output_Block

at	O	B-Output_Block
java.net.SocketOutputStream.write(UnknownSource)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.ChunkingOutputStream.bypassWrite(ChunkingOutputStream.java:151)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.BufferedOutputStream.write(BufferedOutputStream.java:142)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpOutputStream.write(HttpOutputStream.java:423)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpOutputStream.write(HttpOutputStream.java:414)	O	I-Output_Block

at	O	B-Output_Block
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:370)	O	I-Output_Block

at	O	B-Output_Block
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpServer.service(HttpServer.java:909)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpConnection.service(HttpConnection.java:820)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)	O	I-Output_Block

at	O	B-Output_Block
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)	O	I-Output_Block

for	O	O
all	O	O
screen	O	O
captures	O	O
.	O	O

When	O	O
there	O	O
is	O	O
no	O	O
physical	O	O
desktop	O	B-Device
(	O	O
or	O	O
remote	O	B-Application
desktop	O	I-Application
session	O	O
)	O	O
,	O	O
the	O	O
Java	O	B-Language
process	O	O
that	O	O
runs	O	O
Selenium	O	B-Application
RC	O	I-Application
will	O	O
result	O	O
in	O	O
a	O	O
black	O	O
screenshot	O	O
.	O	O

Without	O	O
knowing	O	O
more	O	O
info	O	O
,	O	O
this	O	O
could	O	O
be	O	O
your	O	O
problem	O	O
.	O	O

As	O	O
the	O	O
creator	O	O
of	O	O
Selenium	O	B-Application
RC	O	I-Application
,	O	O
I	O	O
actually	O	O
recommend	O	O
against	O	O
using	O	O
the	O	O
Windows	O	B-Operating_System
Service	O	O
entirely	O	O
.	O	O

Instead	O	O
,	O	O
do	O	O
what	O	O
we	O	O
do	O	O
at	O	O
BrowserMob	O	B-Application
,	O	O
which	O	O
provides	O	O
free	O	O
monitoring	O	O
and	O	O
free	O	O
load	O	O
testing	O	O
services	O	O
,	O	O
as	O	O
well	O	O
as	O	O
a	O	O
recently	O	O
launch	O	O
instant	O	O
test	O	O
tool	O	O
that	O	O
takes	O	O
screenshots	O	O
of	O	O
your	O	O
site	O	O
from	O	O
multiple	O	O
locations	O	O
.	O	O

What	O	O
we	O	O
do	O	O
is	O	O
launch	O	O
everything	O	O
from	O	O
under	O	O
the	O	O
context	O	O
of	O	O
a	O	O
VNC	O	B-Application
session	O	O
.	O	O

On	O	O
Windows	O	B-Operating_System
,	O	O
configure	O	O
VNC	O	B-Application
to	O	O
launch	O	O
a	O	O
session	O	O
upon	O	O
startup	O	O
.	O	O

Then	O	O
make	O	O
sure	O	O
the	O	O
user	O	O
auto-logs	O	O
in	O	O
.	O	O

Then	O	O
place	O	O
a	O	O
.bat	O	B-File_Type
file	O	O
in	O	O
Program	O	B-File_Name
Files->Startup	O	I-File_Name
that	O	O
launches	O	O
Selenium	O	B-Application
RC	O	I-Application
.	O	O

It	O	O
's	O	O
kind	O	O
of	O	O
a	O	O
pain	O	O
,	O	O
but	O	O
it	O	O
's	O	O
the	O	O
most	O	O
reliable	O	O
way	O	O
I	O	O
've	O	O
found	O	O
for	O	O
ensuring	O	O
that	O	O
Selenium	O	B-Application
RC	O	I-Application
starts	O	O
in	O	O
an	O	O
environment	O	O
that	O	O
supports	O	O
screenshots	O	O
,	O	O
launching	O	O
IE	O	B-Application
,	O	O
interacting	O	O
with	O	O
native	O	O
events	O	O
,	O	O
etc	O	O
.	O	O

Good	O	O
luck	O	O
!	O	O

Have	O	O
you	O	O
seen	O	O
a	O	O
similar	O	O
question	O	O
?	O	O

Maybe	O	O
that	O	O
could	O	O
help	O	O
you	O	O
.	O	O

I	O	O
had	O	O
similar	O	O
adventures	O	O
.	O	O

I	O	O
have	O	O
4	O	O
outlined	O	O
star	O	O
images	O	B-User_Interface_Element
.	O	O

Whenever	O	O
I	O	O
click	O	O
a	O	O
button	O	B-User_Interface_Element
,	O	O
I	O	O
want	O	O
the	O	O
first	O	O
star	O	O
to	O	O
change	O	O
its	O	O
image	O	B-User_Interface_Element
to	O	O
a	O	O
filled	O	O
star	O	O
and	O	O
whenever	O	O
I	O	O
click	O	O
the	O	O
button	O	B-User_Interface_Element
again	O	O
I	O	O
want	O	O
the	O	O
next	O	O
star	O	O
to	O	O
change	O	O
to	O	O
a	O	O
filled	O	O
star	O	O
and	O	O
so	O	O
on	O	O
.	O	O

I	O	O
have	O	O
something	O	O
like	O	O
this	O	O
but	O	O
when	O	O
I	O	O
click	O	O
on	O	O
the	O	O
button	O	B-User_Interface_Element
,	O	O
all	O	O
the	O	O
starts	O	O
turn	O	O
into	O	O
filled	O	O
stars	O	O
.	O	O

After	O	O
they	O	O
are	O	O
all	O	O
filled	O	O
stars	O	O
,	O	O
I	O	O
would	O	O
like	O	O
them	O	O
all	O	O
to	O	O
turn	O	O
into	O	O
blank	O	O
stars	O	O
after	O	O
the	O	O
next	O	O
button	O	B-User_Interface_Element
click	O	O
.	O	O

I	O	O
have	O	O
set	O	O
im1	O	B-Variable
through	O	O
im4	O	B-Variable
to	O	O
outlined	O	O
stars	O	O
and	O	O
R.drawable.star	O	B-Class
is	O	O
a	O	O
filled	O	O
star	O	O
.	O	O

Try	O	O
the	O	O
following	O	O
:	O	O

When	O	O
running	O	O
react-native	B-Code_Block	B-Code_Block
link	I-Code_Block	I-Code_Block
it	O	O
gives	O	O
this	O	O
error	O	O
,	O	O

It	O	O
says	O	O
,	O	O
rnpm-install	B-Code_Block	B-Error_Name
ERR	I-Code_Block	I-Error_Name
!	I-Code_Block	O

It	B-Code_Block	O
seems	I-Code_Block	O
something	I-Code_Block	O
went	I-Code_Block	O
wrong	I-Code_Block	O
while	I-Code_Block	O
linking.	I-Code_Block	O
.	I-Code_Block	O
Error	I-Code_Block	O
:	I-Code_Block	O
Cannot	I-Code_Block	O
read	I-Code_Block	O
property	I-Code_Block	O
'	I-Code_Block	O
UIAppFonts	I-Code_Block	O
'	B-Code_Block	O
of	I-Code_Block	O
null	I-Code_Block	B-Value

I	O	O
had	O	O
this	O	O
exact	O	O
same	O	O
problem	O	O
.	O	O

I	O	O
had	O	O
accidentally	O	O
deleted	O	O
by	O	O
Info.plist	B-Code_Block	B-File_Name
file	O	O
in	O	O
my	O	O
ios	O	B-Operating_System
directory	O	O
.	O	O

Restoring	O	O
it	O	O
,	O	O
fixed	O	O
my	O	O
issue	O	O
.	O	O

I	O	O
was	O	O
just	O	O
wondering	O	O
if	O	O
there	O	O
is	O	O
a	O	O
way	O	O
to	O	O
write	O	O
a	O	O
template	O	O
in	O	O
the	O	O
software	O	O
so	O	O
that	O	O
every	O	O
time	O	O
that	O	O
I	O	O
would	O	O
like	O	O
to	O	O
start	O	O
a	O	O
new	O	O
project	O	O
I	O	O
do	O	O
n't	O	O
have	O	O
to	O	O
type	O	O
out	O	O
all	O	O
of	O	O
the	O	O
following	O	O
!	O	O

I	O	O
would	O	O
like	O	O
to	O	O
be	O	O
able	O	O
to	O	O
start	O	O
a	O	O
new	O	O
project	O	O
and	O	O
have	O	O
it	O	O
all	O	O
saved	O	O
if	O	O
that	O	O
is	O	O
possible	O	O
!	O	O

The	O	O
following	O	O
code	O	O
needs	O	O
to	O	O
print	O	O
like	O	O
this	O	O
:	O	O

The	O	O
number	O	O
marking	O	O
the	O	O
number	O	O
,	O	O
and	O	O
the	O	O
asterix	O	O
marking	O	O
the	O	O
frequency	O	O
at	O	O
which	O	O
that	O	O
number	O	O
has	O	O
appeared	O	O
.	O	O

This	O	O
is	O	O
the	O	O
code	O	O
,	O	O
but	O	O
it	O	O
prints	O	O
like	O	O
this	O	O
:	O	O

How	O	O
do	O	O
I	O	O
get	O	O
it	O	O
to	O	O
print	O	O
the	O	O
way	O	O
as	O	O
first	O	O
shown	O	O
?	O	O

Surely	O	O
you	O	O
just	O	O
use	O	O
print	O	O
a	O	O
new	O	O
line	O	O
?	O	O

Can	O	O
be	O	O
done	O	O
using	O	O
/n	B-Code_Block	B-Value
.	O	O

I	O	O
am	O	O
attempting	O	O
to	O	O
convert	O	O
one	O	O
of	O	O
my	O	O
application	O	O
written	O	O
in	O	O
C#	O	B-Language
-	O	O
Windows	O	B-Library
Forms	O	I-Library
to	O	O
C++	O	B-Language
-	O	O
wxWidgets	O	B-Library
.	O	O

My	O	O
app	O	O
is	O	O
borderless	O	O
and	O	O
has	O	O
a	O	O
thin	O	O
,	O	O
transparent	O	O
panel	O	B-User_Interface_Element
on	O	O
top	O	O
of	O	O
the	O	O
form	O	B-User_Interface_Element
which	O	O
can	O	O
be	O	O
used	O	O
to	O	O
move	O	O
the	O	O
form	O	B-User_Interface_Element
.	O	O

(	O	O
I	O	O
used	O	O
the	O	O
technique	O	O
from	O	O
this	O	O
question	O	O
:	O	O
Make	O	O
a	O	O
borderless	O	O
form	O	B-User_Interface_Element
movable	O	O
?	O	O
)	O	O

Now	O	O
,	O	O
I	O	O
basically	O	O
want	O	O
to	O	O
do	O	O
the	O	O
same	O	O
thing	O	O
in	O	O
wxWidgets	O	B-Library
,	O	O
I	O	O
've	O	O
searched	O	O
around	O	O
the	O	O
internet	O	O
on	O	O
how	O	O
to	O	O
handle	O	O
a	O	O
mouse	O	B-Device
down	O	O
event	O	B-Class
over	O	O
a	O	O
wxPanel	O	B-Class
and	O	O
found	O	O
a	O	O
couple	O	O
examples	O	O
but	O	O
both	O	O
used	O	O
wxPython	O	B-Class
in	O	O
their	O	O
article/question	O	O
and	O	O
I	O	O
have	O	O
no	O	O
knowledge	O	O
about	O	O
Python	O	B-Language
at	O	O
all	O	O
.	O	O

So	O	O
how	O	O
to	O	O
do	O	O
the	O	O
same	O	O
thing	O	O
in	O	O
C++	O	B-Language
-	O	O
wxWidgets	O	B-Library
?	O	O

"	O	O
how	O	O
to	O	O
fire	O	O
a	O	O
mouse	O	B-Device
down	O	O
event	O	O
?	O	O
"	O	O
.	O	O

You	O	O
do	O	O
not	O	O
need	O	O
to	O	O
worry	O	O
about	O	O
'	O	O
firing	O	O
'	O	O
the	O	O
event	O	O
-	O	O
the	O	O
OS	O	O
does	O	O
that	O	O
.	O	O

You	O	O
need	O	O
to	O	O
handle	O	O
the	O	O
event	O	O
which	O	O
is	O	O
EVT_LEFT_DOWN	O	B-Class
.	O	O

Is	O	O
your	O	O
question	O	O
about	O	O
how	O	O
to	O	O
handle	O	O
wxWidgets	O	B-Class
events	O	I-Class
?	O	O

Have	O	O
you	O	O
looked	O	O
at	O	O
the	O	O
sample	O	O
programs	O	O
?	O	O

http://docs.wxwidgets.org/2.6/wx_samples.html	O	O
They	O	O
are	O	O
all	O	O
in	O	O
C++	O	B-Language
.	O	O

There	O	O
is	O	O
a	O	O
description	O	O
of	O	O
how	O	O
to	O	O
handle	O	O
events	O	B-Class
here	O	O
:	O	O
http://docs.wxwidgets.org/2.6/wx_eventhandlingoverview.html#eventhandlingoverview	O	O

If	O	O
you	O	O
question	O	O
is	O	O
about	O	O
something	O	O
more	O	O
specific	O	O
in	O	O
the	O	O
details	O	O
of	O	O
handling	O	O
the	O	O
EVT_LEFT_DOWN	O	B-Class
event	O	O
,	O	O
then	O	O
please	O	O
post	O	O
your	O	O
code	O	O
,	O	O
describe	O	O
what	O	O
you	O	O
want	O	O
it	O	O
to	O	O
do	O	O
and	O	O
what	O	O
it	O	O
does	O	O
instead	O	O
.	O	O

I	O	O
creating	O	O
5	O	O
threads	O	O
and	O	O
all	O	O
access	O	O
the	O	O
critical	O	O
section	O	O
and	O	O
read	O	O
a	O	O
value	O	O
from	O	O
file	O	O
and	O	O
change	O	O
the	O	O
value	O	O
.	O	O

However	O	O
in	O	O
the	O	O
end	O	O
all	O	O
print	O	O
the	O	O
same	O	O
value	O	O
,	O	O
that	O	O
is	O	O
the	O	O
first	O	O
value	O	O
.	O	O

How	O	O
can	O	O
I	O	O
implement	O	O
a	O	O
lock	O	O
using	O	O
semaphores	O	O
so	O	O
that	O	O
only	O	O
one	O	O
thread	O	O
access	O	O
the	O	O
critical	O	O
section	O	O
at	O	O
a	O	O
time	O	O
?	O	O

I	O	O
've	O	O
just	O	O
created	O	O
a	O	O
new	O	O
MySQL	O	B-Application
user	O	O
with	O	O
a	O	O
password	O	O
and	O	O
granted	O	O
them	O	O
all	O	O
privileges	O	O
on	O	O
a	O	O
database	O	O
.	O	O

Now	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
connect	O	O
to	O	O
that	O	O
database	O	O
,	O	O
with	O	O
the	O	O
password	O	O
I	O	O
just	O	O
set	O	O
,	O	O
and	O	O
I	O	O
can't	O	O
:	O	O

What	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
?	O	O

I	O	O
'm	O	O
working	O	O
on	O	O
MacOS	O	B-Operating_System
Lion	O	B-Version
in	O	O
a	O	O
bash	O	B-Application
shell	O	I-Application
,	O	O
version	O	O
10.6	O	B-Version
of	O	O
MySQL	O	B-Application
.	O	O

The	O	O
CREATE	O	B-Code_Block
USER	O	I-Code_Block
statement	O	O
needs	O	O
a	O	O
host-part	O	O
when	O	O
you	O	O
define	O	O
the	O	O
user	O	O
.	O	O

Otherwise	O	O
it	O	O
will	O	O
use	O	O
the	O	O
default	O	O
'	O	B-Value
%	O	I-Value
'	O	B-Value
and	O	O
since	O	O
the	O	O
GRANT	O	B-Code_Block
statement	O	O
includes	O	O
@'localhost'	O	B-Value
,	O	O
you	O	O
end	O	O
up	O	O
with	O	O
a	O	O
user	O	O
with	O	O
a	O	O
password	O	O
,	O	O
and	O	O
the	O	O
other	O	O
without	O	O
.	O	O

Results	O	O
in	O	O
:	O	O

Use	O	O
the	O	O
following	O	O
to	O	O
get	O	O
what	O	O
you	O	O
want	O	O
:	O	O

Note	O	O
that	O	O
it	O	O
is	O	O
best	O	O
specify	O	O
the	O	O
database	O	O
when	O	O
you	O	O
connect	O	O
,	O	O
otherwise	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
change	O	O
the	O	O
default	O	O
database	O	O
after	O	O
connecting	O	O
:	O	O

I	O	O
have	O	O
a	O	O
Travis	O	B-Application
build	O	O
that	O	O
keeps	O	O
failing	O	O
,	O	O
and	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
.env	B-Code_Block	B-File_Type
file	O	O
mentioned	O	O
in	O	O
the	O	O
env-file	O	B-File_Type
below	O	O
.	O	O

I	O	O
tried	O	O
putting	O	O
after_failure	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
cat	I-Code_Block	I-Code_Block
/Users/travis/.opam/system/build/topkg.0.9.0/topkg	I-Code_Block	I-Code_Block
-19768-81a3ce.env	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
in	O	O
the	O	O
yml	O	B-File_Type
,	O	O
but	O	O
it	O	O
did	O	O
n't	O	O
do	O	O
anything	O	O
.	O	O

How	O	O
would	O	O
I	O	O
go	O	O
about	O	O
getting	O	O
this	O	O
file	O	O
?	O	O

This	O	O
is	O	O
also	O	O
during	O	O
a	O	O
before_install	B-Code_Block	B-Code_Block
step	O	O
.	O	O

I	O	O
reached	O	O
out	O	O
to	O	O
Travis	O	B-Application
support	O	O
on	O	O
this	O	O
and	O	O
they	O	O
told	O	O
me	O	O
that	O	O
any	O	O
errors	O	O
during	O	O
the	O	O
before_install	B-Code_Block	B-Code_Block
step	O	O
will	O	O
not	O	O
generate	O	O
the	O	O
contents	O	O
of	O	O
a	O	O
log	O	B-File_Type
into	O	O
the	O	O
Travis	O	B-Application
build	O	O
log	O	B-File_Type
.	O	O

I	O	O
have	O	O
a	O	O
list	O	B-Data_Structure
:	O	O

I	O	O
would	O	O
like	O	O
to	O	O
know	O	O
the	O	O
absolute	O	O
fastest	O	O
way	O	O
of	O	O
pulling	O	O
all	O	O
values	O	O
above	O	O
say	O	O
"	O	O
7	O	B-Value
"	O	O
and	O	O
placing	O	O
them	O	O
into	O	O
a	O	O
new	O	O
list	O	B-Data_Structure
.	O	O

I	O	O
do	O	O
not	O	O
want	O	O
to	O	O
use	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
,	O	O
that	O	O
takes	O	O
too	O	O
long	O	O
when	O	O
there	O	O
are	O	O
hundreds	O	O
of	O	O
millions	O	O
of	O	O
items	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
.	O	O

so	O	O
ideally	O	O
something	O	O
like	O	O
this	O	O
:	O	O

Thanks	O	O
for	O	O
any	O	O
suggestions	O	O
!	O	O

Processing	O	O
times	O	O
appreciated	O	O
!	O	O

I	O	O
would	O	O
n't	O	O
worry	O	O
too	O	O
much	O	O
about	O	O
maintaining	O	O
a	O	O
sorted	O	O
order	O	O
and	O	O
use	O	O
numpy	B-Code_Block	B-Library
:	O	O

If	O	O
you	O	O
have	O	O
items	O	O
that	O	O
are	O	O
sorted	O	O
already	O	O
you	O	O
can	O	O
make	O	O
use	O	O
of	O	O
the	O	O
bisect	B-Code_Block	B-Library
module	O	O
(	O	O
or	O	O
numpy	B-Code_Block	B-Library
has	O	O
its	O	O
own	O	O
methods	O	O
for	O	O
working	O	O
with	O	O
sorted	O	O
data	O	O
)	O	O
:	O	O

And	O	O
to	O	O
add	O	O
items	O	O
in	O	O
sorted	O	O
order	O	O
:	O	O

AboveNumber	O	B-Class
can	O	O
do	O	O
no	O	O
magic	O	O
.	O	O

If	O	O
the	O	O
list	O	B-Data_Structure
is	O	O
unordered	O	O
,	O	O
it	O	O
must	O	O
run	O	O
through	O	O
all	O	O
items	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
.	O	O

You	O	O
can	O	O
optimize	O	O
this	O	O
by	O	O
maintaining	O	O
the	O	O
list	O	B-Data_Structure
in	O	O
order	O	O
,	O	O
i.e	O	O
.	O	O
by	O	O
making	O	O
sure	O	O
that	O	O
the	O	O
list	O	B-Data_Structure
is	O	O
always	O	O
ordered	O	O
after	O	O
an	O	O
insert	O	O
or	O	O
erase	O	O
.	O	O

If	O	O
the	O	O
list	O	B-Data_Structure
is	O	O
ordered	O	O
,	O	O
you	O	O
may	O	O
find	O	O
your	O	O
"	O	O
mean	O	O
"	O	O
by	O	O
a	O	O
binary	O	O
search	O	O
,	O	O
which	O	O
would	O	O
be	O	O
much	O	O
faster	O	O
than	O	O
running	O	O
through	O	O
all	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
then	O	O
cut	O	O
the	O	O
list	O	B-Data_Structure
at	O	O
that	O	O
position	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
implement	O	O
a	O	O
SSO	O	O
on	O	O
Windows	O	B-Operating_System
(	O	O
in	O	O
Java	O	B-Language
)	O	O
.	O	O

Recently	O	O
I	O	O
discovered	O	O
this	O	O
example	O	O
doing	O	O
exactly	O	O
what	O	O
I	O	O
want	O	O
to	O	O
do	O	O
with	O	O
Waffle	O	B-Library
:	O	O

The	O	O
example	O	O
is	O	O
easy	O	O
,	O	O
it	O	O
works	O	O
and	O	O
it	O	O
seams	O	O
to	O	O
do	O	O
exactly	O	O
what	O	O
I	O	O
want	O	O
.	O	O

But	O	O
I	O	O
do	O	O
n't	O	O
understand	O	O
how	O	O
it	O	O
works	O	O
.	O	O

What	O	O
is	O	O
happening	O	O
in	O	O
the	O	O
background	O	O
?	O	O

Does	O	O
Waffle	O	B-Library
get	O	O
the	O	O
Kerberos	O	O
ticket	O	O
from	O	O
Windows	O	B-Operating_System
?	O	O

How	O	O
does	O	O
the	O	O
server	O	B-Application
validate	O	O
the	O	O
ticket	O	O
of	O	O
the	O	O
client	O	B-Application
?	O	O

Can	O	O
I	O	O
absolutely	O	O
trust	O	O
the	O	O
user	O	O
groups	O	O
which	O	O
I	O	O
get	O	O
after	O	O
the	O	O
do-loop	O	B-Code_Block

from	O	O
the	O	O
server	O	B-Application
context	O	O
?	O	O

Thanks	O	O
.	O	O

Thomas	O	B-User_Name
.	O	O

Waffle	O	B-Library
uses	O	O
the	O	O
Windows	O	B-Application
SSPI	O	I-Application
,	O	O
which	O	O
performs	O	O
all	O	O
operations	O	O
involving	O	O
Kerberos	O	O
tickets	O	O
on	O	O
client	O	B-Application
's	O	O
behalf	O	O
.	O	O

The	O	O
client	O	B-Application
never	O	O
sees	O	O
the	O	O
ticket	O	O
.	O	O

This	O	O
is	O	O
a	O	O
basic	O	O
Kerberos	O	O
question	O	O
.	O	O

The	O	O
token	O	O
sent	O	O
to	O	O
the	O	O
server	O	B-Application
is	O	O
encrypted	O	O
by	O	O
server	O	B-Variable
's	O	O
secret	O	I-Variable
key	O	I-Variable
,	O	O
which	O	O
guarantees	O	O
that	O	O
the	O	O
token	O	O
was	O	O
created	O	O
by	O	O
the	O	O
Ticket	O	B-Application
Granting	O	I-Application
Service	O	I-Application
,	O	O
which	O	O
authenticated	O	O
the	O	O
client	O	B-Application
.	O	O

Yes	O	O
,	O	O
the	O	O
are	O	O
retrieved	O	O
from	O	O
the	O	O
security	O	B-Variable
token	O	I-Variable
.	O	O

This	O	O
is	O	O
a	O	O
Windows-specific	O	B-Operating_System
extension	O	O
of	O	O
the	O	O
MIT	O	B-Licence
Kerberos	O	I-Licence
protocol	O	I-Licence
.	O	O

I	O	O
wanted	O	O
some	O	O
text	O	O
data	O	O
that	O	O
might	O	O
look	O	O
like	O	O
emails	O	O
or	O	O
letters	O	O
which	O	O
i	O	O
can	O	O
use	O	O
while	O	O
experimenting	O	O
the	O	O
API	O	B-Library
in	O	O
elasticsearch	O	B-Application
.	O	O

But	O	O
I	O	O
have	O	O
n't	O	O
been	O	O
able	O	O
to	O	O
find	O	O
any	O	O
yet	O	O
.	O	O

Can	O	O
anyone	O	O
suggest	O	O
me	O	O
some	O	O
sources	O	O
where	O	O
one	O	O
can	O	O
find	O	O
the	O	O
data	O	O
?	O	O

Thanks	O	O
&	O	O
Regards	O	O

Check	O	O
out	O	O
the	O	O
enron	O	O
dataset	O	O
as	O	O
a	O	O
nice	O	O
start	O	O
..	O	O
.	O	O

Type	O	O
the	O	O
next	O	O
URL	O	O
in	O	O
the	O	O
browser	O	B-Application
:	O	O

localhost:9200/_search	O	B-Value

Do	O	O
you	O	O
see	O	O
data	O	O
?	O	O

(	O	O
If	O	O
the	O	O
elasticsearch	O	B-Application
is	O	O
in	O	O
server	O	B-Application
and	O	O
you	O	O
are	O	O
in	O	O
remote	O	O
computer	O	B-Device
replace	O	O
the	O	O
localhist	O	B-Value
with	O	O
your	O	O
IP	O	O
)	O	O

How	O	O
do	O	O
I	O	O
extract	O	O
all	O	O
urls	O	O
for	O	O
a	O	O
certain	O	O
query	O	O
that	O	O
contain	O	O
parameters	O	O
:	O	O

For	O	O
example	O	O
:	O	O

But	O	O
since	O	O
?	O	B-Value
is	O	O
an	O	O
special	O	O
char	O	B-Data_Type
,	O	O
I	O	O
do	O	O
n't	O	O
how	O	O
to	O	O
make	O	O
that	O	O
to	O	O
work	O	O
.	O	O

Thank	O	O
you	O	O
in	O	O
advance	O	O
.	O	O

The	O	O
HTML	O	B-Language
code	O	O
for	O	O
?	B-Code_Block	B-Value
is	O	O
?	B-Code_Block	B-Value

Your	O	O
query	O	O
would	O	O
then	O	O
be	O	O
site:example.com	B-Code_Block	B-Code_Block
AND	I-Code_Block	I-Code_Block
inurl	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
?	I-Code_Block	I-Code_Block

For	O	O
example	O	O
,	O	O
to	O	O
constrain	O	O
a	O	O
query	O	O
for	O	O
Car	B-Code_Block	B-Code_Block
,	O	O
the	O	O
URL	O	O
will	O	O
be	O	O
:	O	O

https://www.google.ca/search?site=webhp&source=hp&q=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B&oq=Car+site%3Aexample.com+AND+inurl%3A%26%2363%3B	O	O

I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
"	O	O
Uncaught	O	B-Error_Name
TypeError	O	I-Error_Name
:	O	O
undefined	O	O
is	O	O
not	O	O
a	O	O
function	O	O
"	O	O
and	O	O
anything	O	O
that	O	O
I	O	O
tried	O	O
solve	O	O
the	O	O
issue	O	O
.	O	O

I	O	O
taking	O	O
an	O	O
online	O	O
course	O	O
and	O	O
this	O	O
is	O	O
part	O	O
of	O	O
my	O	O
final	O	O
project	O	O
but	O	O
I	O	O
stuck	O	O
without	O	O
get	O	O
any	O	O
solution	O	O
,	O	O
please	O	O
explain	O	O
me	O	O
how	O	O
to	O	O
solve	O	O
this	O	O
and	O	O
why	O	O
this	O	O
happen	O	O
to	O	O
my	O	O
code	O	O
,	O	O
thanks	O	O
and	O	O
here	O	O
are	O	O
my	O	O
code	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
error	O	O

You	O	O
are	O	O
saying	O	O

it	O	O
should	O	O
be	O	O

Using	O	O
Spark	O	B-Library
1.5.1	O	B-Version
,	O	O

I	O	O
've	O	O
been	O	O
trying	O	O
to	O	O
forward	O	O
fill	O	O
null	O	B-Value
values	O	O
with	O	O
the	O	O
last	O	O
known	O	O
observation	O	O
for	O	O
one	O	O
column	O	B-Data_Structure
of	O	O
my	O	O
DataFrame	O	B-Class
.	O	O

It	O	O
is	O	O
possible	O	O
to	O	O
start	O	O
with	O	O
a	O	O
null	O	B-Value
value	O	O
and	O	O
for	O	O
this	O	O
case	O	O
I	O	O
would	O	O
to	O	O
backward	O	O
fill	O	O
this	O	O
null	O	B-Value
value	O	O
with	O	O
the	O	O
first	O	O
knwn	O	O
observation	O	O
.	O	O

However	O	O
,	O	O
If	O	O
that	O	O
too	O	O
complicates	O	O
the	O	O
code	O	O
,	O	O
this	O	O
point	O	O
can	O	O
be	O	O
skipped	O	O
.	O	O

In	O	O
this	O	O
post	O	O
,	O	O
a	O	O
solution	O	O
in	O	O
Scala	O	B-Language
was	O	O
provided	O	O
for	O	O
a	O	O
very	O	O
similar	O	O
problem	O	O
by	O	O
zero323	O	B-User_Name
.	O	O

But	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
Scala	O	B-Language
and	O	O
I	O	O
do	O	O
n't	O	O
succeed	O	O
to	O	O
''	O	O
translate''	O	O
it	O	O
in	O	O
Pyspark	O	B-Library
API	O	I-Library
code	O	O
.	O	O

It	O	O
's	O	O
possible	O	O
to	O	O
do	O	O
it	O	O
with	O	O
Pyspark	O	B-Library
?	O	O

Thanks	O	O
for	O	O
your	O	O
help	O	O
.	O	O

Below	O	O
,	O	O
a	O	O
simple	O	O
example	O	O
sample	O	O
input	O	O
:	O	O

And	O	O
the	O	O
expected	O	O
output	O	O
:	O	O

The	O	O
partitioned	O	O
example	O	O
code	O	O
from	O	O
Spark	O	B-Library
/	O	O
Scala	O	B-Language
:	O	O
forward	O	O
fill	O	O
with	O	O
last	O	O
observation	O	O
in	O	O
pyspark	O	B-Library
is	O	O
shown	O	O
.	O	O

This	O	O
only	O	O
works	O	O
for	O	O
data	O	O
that	O	O
can	O	O
be	O	O
partitioned	O	O
.	O	O

Load	O	O
the	O	O
data	O	O

The	O	O
DataFrame	O	B-Class
is	O	O

Column	O	B-Data_Structure
used	O	O
to	O	O
sort	O	O
the	O	O
partitions	O	O

The	O	O
fill	O	B-Function
function	O	O
.	O	O

Can	O	O
be	O	O
used	O	O
to	O	O
fill	O	O
in	O	O
multiple	O	O
columns	O	B-Data_Structure
if	O	O
necessary	O	O
.	O	O

Convert	O	O
to	O	O
rdd	O	B-Data_Structure
,	O	O
partition	O	O
,	O	O
sort	O	O
and	O	O
fill	O	O
the	O	O
missing	O	O
values	O	O

Convert	O	O
back	O	O
to	O	O
DataFrame	O	B-Class

The	O	O
output	O	O
is	O	O

Cloudera	O	B-Website
has	O	O
released	O	O
a	O	O
library	O	O
called	O	O
spark-ts	O	B-Library
that	O	O
offers	O	O
a	O	O
suite	O	O
of	O	O
useful	O	O
methods	O	O
for	O	O
processing	O	O
time	O	O
series	O	O
and	O	O
sequential	O	O
data	O	O
in	O	O
Spark	O	B-Library
.	O	O

This	O	O
library	O	O
supports	O	O
a	O	O
number	O	O
of	O	O
time-windowed	O	O
methods	O	O
for	O	O
imputing	O	O
data	O	O
points	O	O
based	O	O
on	O	O
other	O	O
data	O	O
in	O	O
the	O	O
sequence	O	O
.	O	O

http://blog.cloudera.com/blog/2015/12/spark-ts-a-new-library-for-analyzing-time-series-data-with-apache-spark/	O	O

inside	O	O
response	O	O
i	O	O
have	O	O
bellow	O	O
html	O	B-Language
code	O	O
with	O	O
simple	O	O
JavaScript	O	B-Language
function	O	O

here	O	O
,	O	O
this	O	O
popup()function	O	B-Function
is	O	O
not	O	O
working	O	O
please	O	O
help	O	O
me	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
you	O	O
expect	O	O
that	O	O
Javascript	O	B-Language
contained	O	O
within	O	O
an	O	O
ajax	O	B-Function
response	O	O
is	O	O
executed	O	O
.	O	O

This	O	O
is	O	O
n't	O	O
the	O	O
case	O	O
,	O	O
the	O	O
browser	O	B-Application
does	O	O
n't	O	O
execute	O	O
any	O	O
Javascript	O	B-Language
contained	O	O
within	O	O
ajax	O	B-Function
responses	O	O
.	O	O

It	O	O
might	O	O
be	O	O
possible	O	O
to	O	O
try	O	O
to	O	O
parse	O	O
out	O	O
the	O	O
Javascript	O	B-Language
and	O	O
execute	O	O
it	O	O
in	O	O
some	O	O
way	O	O
,	O	O
such	O	O
as	O	O
eval()	B-Code_Block	B-Function
but	O	O
that	O	O
would	O	O
be	O	O
nasty	O	O
and	O	O
not	O	O
a	O	O
good	O	O
idea	O	O
.	O	O

Using	O	O
eval()	B-Code_Block	B-Function
you	O	O
also	O	O
have	O	O
to	O	O
consider	O	O
that	O	O
it	O	O
will	O	O
only	O	O
accept	O	O
valid	O	O
Javascript	O	B-Language
,	O	O
so	O	O
you	O	O
could	O	O
n't	O	O
just	O	O
pass	O	O
your	O	O
response	O	O
to	O	O
it	O	O
because	O	O
that	O	O
includes	O	O
some	O	O
HTML	O	B-Language
.	O	O

A	O	O
possible	O	O
solution	O	O
could	O	O
be	O	O
to	O	O
have	O	O
the	O	O
popup()	B-Code_Block	B-Function
function	O	O
already	O	O
defined	O	O
in	O	O
the	O	O
page	O	O
or	O	O
an	O	O
external	O	O
Javascript	O	B-File_Type
file	O	O
,	O	O
and	O	O
to	O	O
assign	O	O
the	O	O
click	O	O
handler	O	O
after	O	O
you	O	O
add	O	O
the	O	O
HTML	O	B-Language
to	O	O
the	O	O
DOM	O	B-Library
.	O	O

For	O	O
example	O	O
:	O	O

Make	O	O
that	O	O
string	O	B-Data_Type
hidden	O	O
in	O	O
your	O	O
page	O	O
and	O	O
just	O	O
display	O	O
it	O	O
on	O	O
success	O	O
.	O	O

like	O	O
:	O	O

Better	O	O
way	O	O
to	O	O
try	O	O
with	O	O
DOM	O	B-Library
.	O	O

Let	O	O
me	O	O
know	O	O
if	O	O
above	O	O
code	O	O
is	O	O
work	O	O
for	O	O
you	O	O
.	O	O

I	O	O
try	O	O
to	O	O
traverse	O	O
some	O	O
excel2007	O	B-Application
data	O	O
by	O	O
using	O	O
poi.jar	O	B-File_Name
based	O	O
on	O	O
jdk1.6.But	O	B-Application
when	O	O
I	O	O
seem	O	O
to	O	O
find	O	O
a	O	O
strange	O	O
phenomenon	O	O
that	O	O
when	O	O
I	O	O
traverse	O	O
the	O	O
row	O	O
(	O	O
stored	O	O
by	O	O
HashMap())	O	B-Class
and	O	O
then	O	O
add	O	O
the	O	O
row	O	O
data	O	O
to	O	O
java.util.ArrayList	O	B-Class
.	O	O

And	O	O
starting	O	O
the	O	O
next	O	O
iterator	O	O
,	O	O
I	O	O
first	O	O
clear	O	O
the	O	O
row	O	O
data	O	O
by	O	O
invoking	O	O
Map.clear()	O	B-Function
,	O	O
but	O	O
when	O	O
again	O	O
invoking	O	O
the	O	O
ArrayList.add()	O	B-Function
method	O	O
,	O	O
this	O	O
row	O	O
data	O	O
is	O	O
overridden	O	O
the	O	O
older	O	O
data	O	O
.	O	O

Next	O	O
Snippets	O	O
show	O	O
the	O	O
debug	O	O
log	O	O
for	O	O
rowForSheet(List)	O	B-Variable

the	O	O
later	O	O
data	O	O
override	O	O
the	O	O
older	O	O
data	O	O

Did	O	O
you	O	O
?	O	O

First	O	O
off	O	O
,	O	O
I	O	O
would	O	O
put	O	O
the	O	O
creation	O	O
of	O	O
your	O	O
map	O	B-Class
inside	O	O
of	O	O
the	O	O
loops	O	B-Code_Block
so	O	O
you	O	O
add	O	O
a	O	O
new	O	O
map	O	B-Class
each	O	O
time	O	O
.	O	O

Now	O	O
each	O	O
item	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
will	O	O
be	O	O
a	O	O
different	O	O
map	O	B-Class
,	O	O
with	O	O
the	O	O
new	O	O
data	O	O
you	O	O
've	O	O
added	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
Amazon	O	B-Application
Redshift	O	I-Application
to	O	O
do	O	O
data	O	O
analysis	O	O
,	O	O
and	O	O
sometimes	O	O
I	O	O
use	O	O
'	O	O
unload	O	B-Function
'	O	O
to	O	O
unload	O	O
a	O	O
RedShift	O	B-Data_Structure
table	O	I-Data_Structure
into	O	O
S3	O	B-File_Type
and	O	O
then	O	O
copy	O	O
the	O	O
data	O	O
into	O	O
another	O	O
Redshift	O	B-Application
instance	O	O
.	O	O

Since	O	O
I	O	O
only	O	O
need	O	O
to	O	O
specify	O	O
a	O	O
prefix	O	O
of	O	O
the	O	O
data	O	O
file	O	O
when	O	O
doing	O	O
'	O	O
unload	O	B-Function
'	O	O
,	O	O
and	O	O
it	O	O
will	O	O
create	O	O
many	O	O
files	O	O
in	O	O
S3	O	B-File_Type
bucket	O	O
,	O	O
I	O	O
need	O	O
a	O	O
graceful	O	O
way	O	O
to	O	O
cleanup	O	O
all	O	O
those	O	O
data	O	O
files	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
enumerate	O	O
each	O	O
object	O	O
in	O	O
the	O	O
bucket	O	O
and	O	O
check	O	O
if	O	O
the	O	O
key	O	O
matches	O	O
the	O	O
prefix	O	O
.	O	O

It	O	O
's	O	O
very	O	O
easy	O	O
with	O	O
s3cmd	O	B-Application
from	O	O
s3tools	O	B-Website
(	O	O
get	O	O
your	O	O
own	O	O
copy	O	O
from	O	O
http://s3tools.org/s3cmd	O	O
)	O	O

First	O	O
configure	O	O
this	O	O
program	O	O
with	O	O
a	O	O
command	O	O
:	O	O

Then	O	O
the	O	O
rest	O	O
is	O	O
just	O	O
one	O	O
command	O	O
:	O	O

I	O	O
have	O	O
two	O	O
web	O	B-HTML_XML_Tag
roles	O	I-HTML_XML_Tag
and	O	O
one	O	O
of	O	O
them	O	O
runs	O	O
the	O	O
service	O	O
layer	O	O
consisting	O	O
of	O	O
3	O	O
WCF	O	B-Library
services	O	O
connected	O	O
with	O	O
net.tcp	O	O
,	O	O
each	O	O
deployed	O	O
as	O	O
a	O	O
website	O	O
on	O	O
port	O	B-Device
808	O	B-Value
,	O	O
810	O	B-Value
,	O	O
and	O	O
811	O	B-Value
.	O	O

Now	O	O
I	O	O
want	O	O
the	O	O
service	O	O
layer	O	O
to	O	O
only	O	O
be	O	O
open	O	O
to	O	O
my	O	O
other	O	O
web	O	B-HTML_XML_Tag
role	O	I-HTML_XML_Tag
.	O	O

So	O	O
I	O	O
tried	O	O
to	O	O
make	O	O
one	O	O
of	O	O
the	O	O
services	O	O
endpoint	O	O
internal	O	O
and	O	O
to	O	O
give	O	O
access	O	O
for	O	O
my	O	O
front	O	O
web	O	B-HTML_XML_Tag
role	O	I-HTML_XML_Tag
.	O	O

Like	O	O
this	O	O
:	O	O

But	O	O
when	O	O
the	O	O
UserService	O	B-File_Name
is	O	O
attempted	O	O
it	O	O
seems	O	O
to	O	O
time	O	O
out	O	O
.	O	O

I	O	O
have	O	O
also	O	O
tried	O	O
to	O	O
set	O	O
<AllowAllTraffic/>	B-Code_Block	B-HTML_XML_Tag
instead	O	O
of	O	O
<WhenSource	B-Code_Block	B-HTML_XML_Tag
...>	I-Code_Block	I-HTML_XML_Tag
but	O	O
that	O	O
has	O	O
no	O	O
effect	O	O
.	O	O

Second	O	O
attempt	O	O
:	O	O

After	O	O
some	O	O
feedback	O	O
I	O	O
have	O	O
tried	O	O
some	O	O
variations	O	O
to	O	O
set	O	O
a	O	O
FixedPort	B-Code_Block	B-HTML_XML_Tag
and	O	O
PortRange	B-Code_Block	B-HTML_XML_Tag
to	O	O
811	O	B-Value
and	O	O
the	O	O
role	O	O
listening	O	O
to	O	O
port	B-Code_Block	B-Code_Block
="*"	I-Code_Block	I-Code_Block
.	O	O

I	O	O
have	O	O
kept	O	O
the	O	O
NetworkTrafficRules	O	B-HTML_XML_Tag
as	O	O
in	O	O
previous	O	O
attempts	O	O
.	O	O

I	O	O
also	O	O
added	O	O
the	O	O
following	O	O
code	O	O
to	O	O
make	O	O
sure	O	O
there	O	O
is	O	O
a	O	O
listener	O	O
for	O	O
a	O	O
dynamic	O	O
port	O	B-Device
.	O	O

In	O	O
my	O	O
WebRole.cs	O	B-File_Name
file	O	O
:	O	O

Another	O	O
note	O	O
is	O	O
that	O	O
the	O	O
calling	O	O
service	O	O
uses	O	O
port	O	B-Device
811	O	B-Value
to	O	O
find	O	O
the	O	O
right	O	O
service	O	O
since	O	O
the	O	O
service	O	O
runs	O	O
three	O	O
different	O	O
WCF	O	B-Library
project	O	O
sites	O	O
.	O	O

And	O	O
the	O	O
service	O	O
I	O	O
'm	O	O
calling	O	O
also	O	O
uses	O	O
a	O	O
specified	O	O
port	O	B-Device
number	O	O
which	O	O
I	O	O
think	O	O
can	O	O
be	O	O
a	O	O
problem	O	O
if	O	O
it	O	O
all	O	O
of	O	O
a	O	O
sudden	O	O
should	O	O
be	O	O
dynamic	O	O
.	O	O

The	O	O
calling	O	O
service	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

And	O	O
on	O	O
the	O	O
receiving(Internal)	O	O
WebRole	O	B-HTML_XML_Tag
sites	O	O
I	O	O
have	O	O
the	O	O
following	O	O
types	O	O
of	O	O
configurations	O	O
.	O	O

And	O	O
the	O	O
other	O	O
WCF	O	B-Library
site	O	O
on	O	O
port	O	B-Device
811	O	B-Value
:	O	O

You	O	O
could	O	O
use	O	O
the	O	O
internal	O	O
endpoint	O	O
IP-addresses	O	O
and	O	O
instead	O	O
of	O	O
the	O	O
external	O	O
address	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
:	O	O

works	O	O
if	O	O
I	O	O
give	O	O
as	O	O
input	O	B-Code_Block
->	O	I-Code_Block
c:\data	O	I-Code_Block

but	O	O
not	O	O
if	O	O
:	O	O

Can	O	O
someone	O	O
explain	O	O
me	O	O
the	O	O
reason	O	O
for	O	O
this	O	O
behaviour	O	O
?	O	O

Thank	O	O
you	O	O
.	O	O

Because	O	O
in	O	O
literal	O	O
strings	O	B-Data_Type
,	O	O
\	B-Code_Block	B-Value
is	O	O
an	O	O
escape	O	O
character	O	O
-	O	O
allow	O	O
putting	O	O
quotes/tabs/newlines	O	B-Value
etc	O	O
.	O	O
in	O	O
literal	O	O
strings	O	B-Data_Type
.	O	O

You	O	O
should	O	O
use	O	O
'	B-Code_Block	B-Value
c:\\data	I-Code_Block	I-Value
'	B-Code_Block	B-Value
or	O	O
'	B-Code_Block	B-Value
c:/data	I-Code_Block	I-Value
'	I-Code_Block	I-Value
(	O	O
forward	O	O
slash	O	O
works	O	O
fine	O	O
in	O	O
windows	O	B-Operating_System
)	O	O

Another	O	O
way	O	O
is	O	O
to	O	O
use	O	O
"	O	O
raw	O	O
"	O	O
strings	O	B-Data_Type
r'c:\data'	B-Code_Block	B-Value
but	O	O
be	O	O
careful	O	O
,	O	O
because	O	O
you	O	O
ca	O	O
n't	O	O
use	O	O
any	O	O
escaped	O	O
characters	O	O
anymore	O	O

I	O	O
am	O	O
just	O	O
trying	O	O
to	O	O
make	O	O
multiplication	O	O

when	O	O
I	O	O
type	O	O
something	O	O
like	O	O
that	O	O
(	O	B-Value
3*	O	I-Value
5)	O	I-Value
give	O	O
me	O	O
that	O	O
error	O	O
:	O	O

and	O	O
when	O	O
I	O	O
am	O	O
using	O	O
backslah	O	B-Value
to	O	O
escape	O	O
:	O	O

I	O	O
see	O	O
unclosed	O	B-Error_Name
character	O	I-Error_Name
literal	O	I-Error_Name
and	O	O
illegal	O	B-Error_Name
start	O	I-Error_Name
of	O	I-Error_Name
expression	O	I-Error_Name
errors	O	O

what	O	O
should	O	O
I	O	O
do	O	O
?	O	O

Refer	O	O
to	O	O
the	O	O
Javadoc	O	O
of	O	O
String.replaceFirst	B-Code_Block	B-Function
:	O	O

The	O	O
first	O	O
parameter	O	O
is	O	O
a	O	O
regular	O	O
expression	O	O
(	O	O
meaning	O	O
characters	O	O
like	O	O
*	B-Code_Block	B-Value
have	O	O
special	O	O
meaning	O	O
)	O	O
;	O	O

The	O	O
second	O	O
parameter	O	O
is	O	O
a	O	O
regex	O	O
replacement	O	O
(	O	O
meaning	O	O
certain	O	O
character	O	O
sequences	O	O
have	O	O
special	O	O
meaning	O	O
,	O	O
e.g	O	O
.	O	O
\	B-Code_Block	B-Value
and	O	O
$	B-Code_Block	B-Value
)	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
pass	O	O
in	O	O
strings	O	B-Data_Type
from	O	O
an	O	O
untrusted	O	O
source	O	O
(	O	O
like	O	O
user	O	O
input	O	O
)	O	O
,	O	O
you	O	O
need	O	O
to	O	O
quote	O	O
them	O	O
appropriately	O	O
:	O	O

However	O	O
,	O	O
String.replaceFirst	B-Code_Block	B-Function
is	O	O
not	O	O
the	O	O
right	O	O
tool	O	O
for	O	O
this	O	O
job	O	O
.	O	O

It	O	O
wo	O	O
n't	O	O
work	O	O
correctly	O	O
if	O	O
there	O	O
is	O	O
a	O	O
match	O	O
for	O	O
the	O	O
search	O	O
string	O	B-Data_Type
before	O	O
the	O	O
one	O	O
you	O	O
are	O	O
really	O	O
looking	O	O
for	O	O
.	O	O

The	O	O
most	O	O
straightforward	O	O
modification	O	O
to	O	O
your	O	O
code	O	O
would	O	O
be	O	O
to	O	O
use	O	O
String.substring	B-Code_Block	B-Function
-	O	O
you	O	O
know	O	O
exactly	O	O
where	O	O
the	O	O
thing	O	O
you	O	O
want	O	O
to	O	O
replace	O	O
is	O	O
,	O	O
so	O	O
make	O	O
use	O	O
of	O	O
that	O	O
information	O	O
:	O	O

(	O	O
This	O	O
would	O	O
replace	O	O
the	O	O
last	O	O
7	O	O
lines	O	O
in	O	O
the	O	O
loop	O	O
)	O	O

You	O	O
can	O	O
do	O	O
this	O	O
better	O	O
again	O	O
by	O	O
using	O	O
a	O	O
StringBuilder	B-Code_Block	B-Class
,	O	O
to	O	O
avoid	O	O
creating	O	O
unnecessary	O	O
strings	O	B-Data_Type
in	O	O
the	O	O
loop	O	O
.	O	O

However	O	O
,	O	O
this	O	O
still	O	O
would	O	O
n't	O	O
work	O	O
in	O	O
the	O	O
case	O	O
of	O	O
multi-digit	O	O
or	O	O
negative	O	O
numbers	O	O
.	O	O

I	O	O
have	O	O
a	O	O
question	O	O
regarding	O	O
Java	O	B-Language
code	O	O
implementation	O	O
for	O	O
the	O	O
following	O	O
scenario	O	O
,	O	O

Get	O	O
User	O	O
Input	O	O
[	O	O
String	O	B-Data_Type
from	O	O
Scanner	O	B-Class
]	O	O

Convert	O	O
the	O	O
String	O	B-Data_Type
input	O	O
to	O	O
1D	O	O
Array	O	B-Data_Structure

From	O	O
the	O	O
1D	O	O
char	O	B-Data_Type
array	O	B-Data_Structure
,	O	O
populate	O	O
it	O	O
accordingly	O	O
to	O	O
2D	O	O
char	O	B-Data_Type
array	O	B-Data_Structure
based	O	O
on	O	O
positions	O	O
,	O	O
[	O	B-Value
0	O	I-Value
]	O	I-Value
[	O	B-Value
0	O	I-Value
]	O	I-Value
,	O	O
[	O	B-Value
0	O	I-Value
]	O	I-Value
[	O	B-Value
1	O	I-Value
]	O	I-Value
etc	O	O

What	O	O
I	O	O
have	O	O
done	O	O
is	O	O
as	O	O
follows	O	O
,	O	O

charArray	O	B-Variable
has	O	O
been	O	O
created	O	O
as	O	O
a	O	O
6	O	O
by	O	O
6	O	O
array.char[][]	B-Code_Block	B-Data_Structure
charArray	I-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
new	I-Code_Block	I-Code_Block
char[6][6]	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

It	O	O
seems	O	O
from	O	O
the	O	O
printing	O	O
of	O	O
messages	O	O
,	O	O
I	O	O
could	O	O
get	O	O
the	O	O
text	O	O
's	O	O
i	O	B-Variable
position	O	O
and	O	O
to	O	O
it	O	O
's	O	O
corresponding	O	O
2D	O	O
array	O	B-Data_Structure
positions	O	O
.	O	O

But	O	O
I	O	O
could	O	O
not	O	O
populate	O	O
the	O	O
values	O	O
by	O	O
assigning	O	O
.	O	O

I	O	O
appreciate	O	O
any	O	O
tips	O	O
and	O	O
guidance	O	O
for	O	O
the	O	O
above	O	O
case	O	O
.	O	O

Thank	O	O
you	O	O
very	O	O
much	O	O
.	O	O

I	O	O
did	O	O
n't	O	O
get	O	O
your	O	O
question	O	O
.	O	O

But	O	O
if	O	O
you	O	O
want	O	O
to	O	O
store	O	O
in	O	O
6*6	O	O
character	O	B-Data_Type
array	O	B-Data_Structure
without	O	O
getting	O	O
exception	O	B-Class
.	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
how	O	O
to	O	O
do	O	O
it	O	O

The	O	O
easiest	O	O
way	O	O
is	O	O
to	O	O
make	O	O
sure	O	O
the	O	O
user	O	O
has	O	O
entered	O	O
36	O	O
characters	O	O
exactly	O	O
,	O	O
then	O	O
you	O	O
can	O	O
just	O	O
copy	O	O
the	O	O
char	O	B-Data_Type
array	O	B-Data_Structure
.	O	O

Live	O	O
Demo	O	O

And	O	O
you	O	O
could	O	O
use	O	O
that	O	O
1D	O	O
array	O	B-Data_Structure
as	O	O
a	O	O
flat	O	O
2D	O	O
array	O	B-Data_Structure
,	O	O
or	O	O
parse	O	O
them	O	O
into	O	O
a	O	O
2D	O	O
array	O	B-Data_Structure
in	O	O
this	O	O
way	O	O
.	O	O

I	O	O
want	O	O
to	O	O
create	O	O
list	O	B-Data_Structure
from	O	O
one	O	O
table	O	B-Data_Structure
,	O	O
using	O	O
contain	O	O
with	O	O
another	O	O
tables	O	B-Data_Structure
and	O	O
make	O	O
keyField	O	B-Variable
from	O	O
first	O	O
Table	O	B-Data_Structure
but	O	O
valueField	O	B-Variable
from	O	O
another	O	O
Table	O	B-Data_Structure
+	O	O
key	O	B-Variable
.	O	O

I	O	O
have	O	O
table	O	B-Data_Structure
CustomerNumbers	O	B-Variable
(	O	O
key	O	O
=>	O	O
customer_number	O	O
)	O	O
->	O	O
Users	O	O
->	O	O
Groups	O	O
(	O	O
value	O	O
=>	O	O
name	O	O
)	O	O

Need	O	O
to	O	O
create	O	O
list	O	B-Data_Structure
with	O	O
all	O	O
CustomerNumbers.customer_number	O	B-Class
as	O	O
key	O	O
and	O	O
Groups.name	O	B-Class
plus	O	O
key	O	B-Variable
as	O	O
value	O	O
.	O	O

here	O	O
is	O	O
my	O	O
query	O	O
(	O	O
also	O	O
,	O	O
I	O	O
do	O	O
not	O	O
want	O	O
make	O	O
standard	O	O
classic	O	O
php	O	B-Language
foreach	O	O
to	O	O
create	O	O
list	O	B-Data_Structure
)	O	O

result	O	O
shoud	O	O
be	O	O
like	O	O

Also	O	O
this	O	O
is	O	O
not	O	O
duplicated	O	O
question	O	O
@drmonkeyninja	O	B-User_Name
because	O	O
in	O	O
your	O	O
example	O	O
(	O	O
Question	O	O
)	O	O
you	O	O
need	O	O
to	O	O
use	O	O
virtual	O	O
field	O	O
option	O	O
from	O	O
single	O	O
model	O	O
(	O	O
ex	O	O
.	O	O

Model	O	O
Users	O	O
and	O	O
take	O	O
First	O	O
and	O	O
Last	O	O
name	O	O
as	O	O
one	O	O
field	O	O
)	O	O
.	O	O

In	O	O
my	O	O
case	O	O
I	O	O
need	O	O
virtual	O	O
field	O	O
from	O	O
model	O	O
Customer	O	O
Numbers	O	O
and	O	O
another	O	O
field	O	O
from	O	O
Model	O	O
Groups	O	O
)	O	O
.	O	O

Here	O	O
is	O	O
solution	O	O
in	O	O
pure	O	O
php	O	B-Language
,	O	O
but	O	O
I	O	O
hope	O	O
so	O	O
that	O	O
there	O	O
is	O	O
CakePhp	O	B-Library
soultion	O	O
too	O	O
.	O	O

I	O	O
am	O	O
a	O	O
beginner	O	O
.	O	O

I	O	O
am	O	O
finding	O	O
it	O	O
very	O	O
difficult	O	O
to	O	O
understand	O	O
one	O	O
concept	O	O
here	O	O
.	O	O

Please	O	O
help	O	O
me	O	O
understand	O	O
the	O	O
concept	O	O
.	O	O

Solution	O	O
:	O	O

MyApp.Web	O	B-Variable
references	O	O
MyApp.Logic	O	B-Variable
,	O	O
and	O	O
MyApp.Logic	O	B-Variable
references	O	O
MyApp.Data	O	B-Variable
.	O	O

On	O	O
my	O	O
application	O	O
,	O	O
what	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
do	O	O
is	O	O
simply	O	O
bind	O	O
a	O	O
gridview	O	B-User_Interface_Element
by	O	O
the	O	O
tablename	O	B-Variable
,	O	O
which	O	O
is	O	O
chosen	O	O
from	O	O
a	O	O
dropdownlist	O	B-User_Interface_Element
.	O	O

However	O	O
,	O	O
there	O	O
are	O	O
hundreds	O	O
and	O	O
more	O	O
tables	O	B-Data_Structure
.	O	O

The	O	O
purpose	O	O
here	O	O
is	O	O
just	O	O
to	O	O
display	O	O
data	O	O
to	O	O
the	O	O
user	O	O
(	O	O
with	O	O
paging	O	O
)	O	O
.	O	O

So	O	O
a	O	O
class	O	O
"	O	O
Get_Data	O	B-Class
"	O	O
on	O	O
project	O	O
MyApp.Data	O	B-Variable
has	O	O
a	O	O
function	O	O
:	O	O

From	O	O
MyApp.Logic	O	B-Variable
,	O	O
I	O	O
am	O	O
just	O	O
passing	O	O
the	O	O
datatable	O	B-Data_Structure
from	O	O
the	O	O
MyApp.Data	O	B-Variable
tier	O	O
to	O	O
MyApp.Web	O	B-Variable
.	O	O

And	O	O
then	O	O
the	O	O
gridview	O	B-User_Interface_Element
is	O	O
bound	O	O
and	O	O
everything	O	O
is	O	O
working	O	O
here	O	O
.	O	O

So	O	O
what	O	O
I	O	O
am	O	O
doing	O	O
wrong	O	O
here	O	O
?	O	O

Is	O	O
it	O	O
really	O	O
bad	O	O
to	O	O
have	O	O
datatable	O	B-Data_Structure
in	O	O
UI	O	O
level	O	O
?	O	O

Why	O	O
is	O	O
it	O	O
a	O	O
bad	O	O
design	O	O
?	O	O

The	O	O
notion	O	O
that	O	O
it	O	O
is	O	O
bad	O	O
practice	O	O
for	O	O
your	O	O
UI	O	O
to	O	O
create/load/consume	O	O
a	O	O
datatable	O	B-Data_Structure
comes	O	O
from	O	O
the	O	O
idea	O	O
that	O	O
it	O	O
is	O	O
preferable	O	O
to	O	O
split	O	O
your	O	O
application	O	O
into	O	O
layers	O	O
that	O	O
specialize	O	O
,	O	O
the	O	O
most	O	O
common	O	O
split	O	O
is	O	O
to	O	O
have	O	O
3	O	O
layers	O	O
:	O	O

Layer	O	O
1	O	O
is	O	O
a	O	O
data	O	O
layer	O	O
responsible	O	O
for	O	O
communicating	O	O
with	O	O
the	O	O
database	O	O
and	O	O
populating	O	O
domain	O	O
objects	O	O
,	O	O
the	O	O
domain	O	O
objects	O	O
are	O	O
typically	O	O
defined	O	O
in	O	O
layer	O	O
2	O	O
which	O	O
also	O	O
holds	O	O
the	O	O
business	O	O
logic	O	O
for	O	O
your	O	O
application	O	O
.	O	O

by	O	O
domain	O	O
objects	O	O
i	O	O
mean	O	O
classes	O	O
that	O	O
represent	O	O
real	O	O
things	O	O
like	O	O
customer	O	O
,	O	O
bank	O	O
account	O	O
,	O	O
hotel	O	O
room	O	O
etc	O	O
.	O	O

and	O	O
by	O	O
business	O	O
logic	O	O
i	O	O
mean	O	O
the	O	O
rules	O	O
that	O	O
apply	O	O
to	O	O
domain	O	O
objects	O	O
during	O	O
events	O	O
i.e	O	O
.	O	O
when	O	O
a	O	O
hotel	O	O
room	O	O
is	O	O
booked	O	O
a	O	O
confirmation	O	O
is	O	O
sent	O	O
to	O	O
the	O	O
customer	O	O
.	O	O

the	O	O
third	O	O
layer	O	O
is	O	O
the	O	O
UI	O	O
layer	O	O
,	O	O
to	O	O
simplyfy	O	O
coding	O	O
this	O	O
should	O	O
only	O	O
deal	O	O
with	O	O
whats	O	O
in	O	O
layer	O	O
2	O	O
,	O	O
this	O	O
is	O	O
where	O	O
the	O	O
recommendation	O	O
to	O	O
not	O	O
use	O	O
datatables	O	B-Data_Structure
in	O	O
your	O	O
UI	O	O
comes	O	O
from	O	O
.	O	O

the	O	O
motivation	O	O
to	O	O
split	O	O
your	O	O
application	O	O
really	O	O
start	O	O
to	O	O
make	O	O
sense	O	O
when	O	O
your	O	O
application	O	O
is	O	O
big	O	O
,	O	O
or	O	O
you	O	O
have	O	O
multiple	O	O
developers	O	O
working	O	O
on	O	O
it	O	O
,	O	O
or	O	O
your	O	O
using	O	O
unit	O	O
testing	O	O
.	O	O

If	O	O
you	O	O
're	O	O
in	O	O
that	O	O
situation	O	O
then	O	O
i	O	O
'd	O	O
try	O	O
and	O	O
find	O	O
a	O	O
friendly	O	O
member	O	O
of	O	O
your	O	O
team	O	O
to	O	O
explain	O	O
this	O	O
better	O	O
,	O	O
but	O	O
if	O	O
this	O	O
is	O	O
just	O	O
you	O	O
writing	O	O
an	O	O
application	O	O
on	O	O
your	O	O
own	O	O
then	O	O
i	O	O
would	O	O
n't	O	O
worry	O	O
too	O	O
much	O	O
about	O	O
it	O	O
,	O	O
write	O	O
lots	O	O
of	O	O
code	O	O
,	O	O
read	O	O
lots	O	O
of	O	O
books	O	O
and	O	O
this	O	O
stuff	O	O
will	O	O
make	O	O
more	O	O
sense	O	O
,	O	O
i	O	O
would	O	O
recommend	O	O
the	O	O
craig	O	B-User_Name
larman	O	I-User_Name
book	O	O
on	O	O
uml	O	B-Language
and	O	O
patterns	O	O
.	O	O

hope	O	O
this	O	O
helps	O	O

I	O	O
am	O	O
using	O	O
asp.net	O	B-Library
with	O	O
javascript	O	B-Language
.	O	O

Javascript	O	B-Language
work	O	O
fine	O	O
with	O	O
IE8	O	B-Application
and	O	O
some	O	O
IE11	O	B-Application
.	O	O

Javascript	O	B-Language
is	O	O
able	O	O
to	O	O
response	O	O
for	O	O
some	O	O
user	O	O
who	O	O
use	O	O
IE11	O	B-Application
but	O	O
it	O	O
does	O	O
n't	O	O
response	O	O
to	O	O
other	O	O
users	O	O
who	O	O
is	O	O
also	O	O
use	O	O
IE11	O	B-Application
even	O	O
though	O	O
they	O	O
already	O	O
have	O	O
IE	O	B-Application
setting	O	O
script	O	O
enabled	O	O
.	O	O

I	O	O
already	O	O
update	O	O
to	O	O
4.5	O	B-Version
.NET	O	B-Library
Framework	O	O
but	O	O
the	O	O
result	O	O
still	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

One	O	O
of	O	O
users	O	O
told	O	O
me	O	O
that	O	O
the	O	O
web	O	O
used	O	O
to	O	O
work	O	O
well	O	O
before	O	O
while	O	O
he	O	O
using	O	O
IE11	O	B-Application
and	O	O
he	O	O
have	O	O
n't	O	O
change	O	O
anything	O	O
since	O	O
until	O	O
web	O	O
does	O	O
n't	O	O
work	O	O
for	O	O
him	O	O
.	O	O

Anyone	O	O
know	O	O
what	O	O
could	O	O
cause	O	O
it	O	O
?	O	O

Here	O	O
is	O	O
one	O	O
of	O	O
user	O	O
who	O	O
got	O	O
this	O	O
source	O	O
error	O	O
on	O	O
javascript	O	B-File_Type
file	O	O
,	O	O

I	O	O
found	O	O
the	O	O
solution	O	O
is	O	O
in	O	O
IE	O	B-Application
setting	O	O
under	O	O
Security	O	O
tab	O	B-User_Interface_Element
by	O	O
removing	O	O
the	O	O
web	O	O
URL	O	O
from	O	O
trusted	O	O
sites	O	O
and	O	O
move	O	O
url	O	O
to	O	O
local	O	O
intranet	O	O
.	O	O

I	O	O
have	O	O
a	O	O
UICollectionViewController	O	B-Class
with	O	O
a	O	O
large	O	O
dataset	O	O
(	O	O
>2000	O	O
items	O	O
)	O	O
with	O	O
a	O	O
custom	O	O
layout	O	O
.	O	O

Using	O	O
sections	O	O
,	O	O
the	O	O
scrolling	O	O
performance	O	O
became	O	O
extremely	O	O
choppy	O	O
.	O	O

Using	O	O
Instruments	O	O
and	O	O
a	O	O
few	O	O
tests	O	O
,	O	O
I	O	O
determined	O	O
this	O	O
was	O	O
due	O	O
to	O	O
lookup	O	O
in	O	O
the	O	O
layout	O	O
(	O	O
layoutAttributesForElementsInRect	B-Code_Block	B-Function
:	I-Code_Block	I-Function
)	O	O
.	O	O

I	O	O
cache	O	O
layout	O	O
attributes	O	O
in	O	O
prepareLayout	B-Code_Block	B-Function
,	O	O
and	O	O
look	O	O
them	O	O
up	O	O
here	O	O
like	O	O
so	O	O
,	O	O
in	O	O
the	O	O
fastest	O	O
way	O	O
I	O	O
know	O	O
of	O	O
:	O	O

I	O	O
found	O	O
that	O	O
~	O	O
25%	O	O
of	O	O
cpu	O	B-Device
time	O	O
was	O	O
spent	O	O
enumerating	O	O
this	O	O
,	O	O
mostly	O	O
on	O	O
[	B-Code_Block	B-Code_Block
NSIndexPath	I-Code_Block	I-Code_Block
isEqual	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
.	O	O

So	O	O
,	O	O
I	O	O
need	O	O
a	O	O
faster	O	O
way	O	O
to	O	O
hash	O	O
these	O	O
values	O	O
.	O	O

It	O	O
must	O	O
be	O	O
possible	O	O
,	O	O
because	O	O
I	O	O
did	O	O
a	O	O
cross	O	O
test	O	O
using	O	O
the	O	O
same	O	O
data	O	O
with	O	O
a	O	O
sectioned	O	O
UICollectionViewFlowLayout	O	B-Class
and	O	O
it	O	O
was	O	O
smooth	O	O
.	O	O

Well	O	O
,	O	O
turns	O	O
out	O	O
using	O	O
arrays	O	B-Data_Structure
instead	O	O
of	O	O
dictionaries	O	B-Data_Structure
,	O	O
and	O	O
filtering	O	O
by	O	O
an	O	O
NSPredicate	O	B-Class
was	O	O
much	O	O
faster	O	O
since	O	O
in	O	O
this	O	O
case	O	O
the	O	O
indices	O	O
were	O	O
already	O	O
known	O	O
.	O	O

My	O	O
project	O	O
was	O	O
running	O	O
on	O	O
Django	O	B-Library
1.5.4	O	B-Version
and	O	O
I	O	O
wanted	O	O
to	O	O
upgrade	O	O
it	O	O
.	O	O

I	O	O
did	O	O
pip	B-Code_Block	B-Code_Block
install	I-Code_Block	I-Code_Block
-U	I-Code_Block	I-Code_Block
-I	I-Code_Block	I-Code_Block
django	I-Code_Block	I-Code_Block
and	O	O
now	O	O
pip	B-Code_Block	B-Code_Block
freeze	I-Code_Block	I-Code_Block
shows	O	O
Django	O	B-Library
1.6.5	O	B-Version
(	O	O
clearly	O	O
django	O	B-Library
has	O	O
upgraded	O	O
,	O	O
I	O	O
'm	O	O
in	O	O
virtualen	B-Code_Block	B-Code_Block
v)	I-Code_Block	I-Code_Block
but	O	O
my	O	O
project	O	O
is	O	O
still	O	O
using	O	O
Django	O	B-Library
1.5.4	O	B-Version
.	O	O

How	O	O
can	O	O
I	O	O
use	O	O
the	O	O
upgraded	O	O
version	O	O
?	O	O

UPDATE	O	O
:	O	O
Thanks	O	O
for	O	O
your	O	O
comments	O	O
.	O	O

I	O	O
tried	O	O
everything	O	O
but	O	O
unfortunately	O	O
nothing	O	O
worked	O	O
and	O	O
I	O	O
had	O	O
to	O	O
re-deploy	O	O
the	O	O
app	O	O
.	O	O

Hope	O	O
someone	O	O
explains	O	O
why	O	O
this	O	O
happened	O	O
.	O	O

You	O	O
can	O	O
use	O	O
--upgrade	B-Code_Block	B-Code_Block
with	O	O
the	O	O
pip	B-Code_Block	B-Code_Block
command	O	O
to	O	O
upgrade	O	O
Python	O	B-Language
packages	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
an	O	O
expert	O	O
on	O	O
either	O	O
Python	O	B-Language
or	O	O
Django	O	B-Library
.	O	O

What	O	O
I	O	O
am	O	O
doing	O	O
is	O	O
following	O	O
along	O	O
this	O	O
really	O	O
very	O	O
good	O	O
book	O	O
:	O	O
Test	O	O
Driven	O	O
Web	O	O
Development	O	O
With	O	O
Python	O	B-Language
(	O	O
2nd	O	O
Ed	O	O
)	O	O
.	O	O

It	O	O
uses	O	O
Django	O	B-Library
..	O	O
.	O	O

I	O	O
'm	O	O
also	O	O
using	O	O
a	O	O
Windoze	O	B-Operating_System
machine	O	O
(	O	O
W10	O	B-Operating_System
)	O	O
with	O	O
Cygwin	O	B-Application
.	O	O

The	O	O
reason	O	O
I	O	O
mention	O	O
all	O	O
this	O	O
is	O	O
because	O	O
I	O	O
found	O	O
,	O	O
having	O	O
installed	O	O
Python	O	B-Language
3.6	O	B-Version
in	O	O
my	O	O
Cygwin	O	B-Application
setup	O	O
,	O	O
that	O	O
I	O	O
had	O	O
to	O	O
use	O	O
pip3	O	B-Code_Block
,	O	O
not	O	O
pip	B-Code_Block	B-Code_Block
,	O	O
to	O	O
install	O	O
Django	O	B-Library
.	O	O

My	O	O
installed	O	O
version	O	O
of	O	O
Django	O	B-Library
was	O	O
1.11.8	O	B-Version
.	O	O

To	O	O
follow	O	O
the	O	O
"	O	O
official	O	O
"	O	O
(?)	O	O

tutorial	O	O
here	O	O
they	O	O
want	O	O
you	O	O
to	O	O
have	O	O
Django	O	B-Library
2.0	O	B-Version
installed	O	O
.	O	O

I	O	O
successfully	O	O
managed	O	O
to	O	O
do	O	O
this	O	O
with	O	O
:	O	O

Hope	O	O
this	O	O
helps	O	O
someone	O	O
.	O	O

Perhaps	O	O
someone	O	O
much	O	O
more	O	O
knowledgeable	O	O
than	O	O
me	O	O
can	O	O
talk	O	O
about	O	O
the	O	O
need	O	O
or	O	O
otherwise	O	O
to	O	O
use	O	O
pip3	B-Code_Block	B-Code_Block
for	O	O
all	O	O
Python	O	B-Language
3.x	O	B-Version
activity	O	O
??	O	O
?	O	O

I	O	O
have	O	O
an	O	O
existing	O	O
java	O	B-Language
based	O	O
rate	O	O
streaming	O	O
application	O	O
deployed	O	O
in	O	O
weblogic	O	B-Application
,	O	O
i	O	O
need	O	O
to	O	O
use	O	O
node	O	B-Application
js	O	I-Application
and	O	O
redis	O	B-Application
for	O	O
real-time	O	O
streaming	O	O
rates	O	O
.	O	O

How	O	O
can	O	O
i	O	O
use	O	O
node	O	B-Application
js	O	I-Application
and	O	O
redis	O	B-Application
to	O	O
my	O	O
existing	O	O
java	O	B-Language
based	O	O
application	O	O
deployed	O	O
in	O	O
weblogic	O	B-Application
.	O	O

I	O	O
'm	O	O
writing	O	O
some	O	O
software	O	O
that	O	O
talks	O	O
to	O	O
external	O	O
hardware	O	O
via	O	O
a	O	O
dll	O	B-Library
(	O	O
moving	O	O
some	O	O
motors	O	O
and	O	O
reading	O	O
some	O	O
values	O	O
back	O	O
)	O	O
.	O	O

The	O	O
calls	O	O
to	O	O
the	O	O
dll	O	B-Library
are	O	O
blocking	O	O
and	O	O
may	O	O
not	O	O
return	O	O
for	O	O
in	O	O
the	O	O
order	O	O
of	O	O
10	O	O
seconds	O	O
.	O	O

The	O	O
software	O	O
performs	O	O
a	O	O
scan	O	O
by	O	O
moving	O	O
the	O	O
hardware	O	O
,	O	O
taking	O	O
a	O	O
reading	O	O
and	O	O
repeating	O	O
for	O	O
a	O	O
number	O	O
of	O	O
points	O	O
.	O	O

One	O	O
scan	O	O
can	O	O
take	O	O
in	O	O
the	O	O
order	O	O
of	O	O
30	O	O
minutes	O	O
to	O	O
complete	O	O
.	O	O

While	O	O
the	O	O
scan	O	O
is	O	O
running	O	O
I	O	O
would	O	O
obviously	O	O
like	O	O
the	O	O
GUI	O	B-User_Interface_Element
to	O	O
be	O	O
responsive	O	O
and	O	O
a	O	O
live	O	O
graph	O	B-Data_Structure
(	O	O
in	O	O
an	O	O
MDI	O	B-Class
Child	O	I-Class
)	O	O
of	O	O
the	O	O
incoming	O	O
data	O	O
to	O	O
be	O	O
updated	O	O
at	O	O
each	O	O
point	O	O
.	O	O

Multithreading	O	O
seems	O	O
the	O	O
obvious	O	O
choice	O	O
for	O	O
this	O	O
problem	O	O
.	O	O

My	O	O
question	O	O
is	O	O
,	O	O
what	O	O
is	O	O
the	O	O
best	O	O
way	O	O
to	O	O
thread	O	O
this	O	O
and	O	O
talk	O	O
back	O	O
to	O	O
the	O	O
main	O	O
VCL	O	B-Library
thread	O	O
to	O	O
update	O	O
the	O	O
graph	O	B-Data_Structure
during	O	O
a	O	O
scan	O	O
?	O	O

I	O	O
currently	O	O
have	O	O
a	O	O
single	O	O
TThread	O	B-Class
descendant	O	O
that	O	O
performs	O	O
the	O	O
'	O	O
scan	O	O
logic	O	O
'	O	O
and	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
doubles	O	B-Data_Type
in	O	O
the	O	O
public	O	O
var	O	B-Data_Type
section	O	O
of	O	O
the	O	O
ChildForm	O	B-Class
.	O	O

I	O	O
need	O	O
to	O	O
fill	O	O
out	O	O
this	O	O
array	O	B-Data_Structure
from	O	O
the	O	O
thread	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
whether	O	O
to	O	O
use	O	O
Synchronize	O	B-Function
or	O	O
CriticalSection	O	B-Function
or	O	O
PostMessage	O	B-Function
or	O	O
some	O	O
other	O	O
method	O	O
.	O	O

Each	O	O
time	O	O
a	O	O
new	O	O
value	O	O
is	O	O
added	O	O
,	O	O
the	O	O
main	O	O
VCL	O	B-Library
thread	O	O
needs	O	O
to	O	O
update	O	O
the	O	O
graph	O	B-Data_Structure
.	O	O

Should	O	O
I	O	O
really	O	O
have	O	O
an	O	O
intermediary	O	O
object	O	O
for	O	O
the	O	O
data	O	O
that	O	O
is	O	O
a	O	O
global	O	B-Data_Type
var	O	I-Data_Type
and	O	O
access	O	O
this	O	O
from	O	O
the	O	O
Thread	O	B-Class
and	O	O
the	O	O
ChildForm	O	B-Class
separately	O	O
somehow	O	O
?	O	O

I	O	O
find	O	O
that	O	O
populating	O	O
a	O	O
TThreadList	B-Code_Block	B-Class
from	O	O
the	O	O
background	O	O
thread	O	O
,	O	O
then	O	O
posting	O	O
a	O	O
message	O	O
to	O	O
the	O	O
main	O	O
thread	O	O
that	O	O
there	O	O
is	O	O
a	O	O
new	O	O
item	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
then	O	O
processing	O	O
the	O	O
list	O	B-Data_Structure
in	O	O
the	O	O
main	O	O
thread	O	O
is	O	O
simple	O	O
and	O	O
easily	O	O
maintainable	O	O
.	O	O

With	O	O
this	O	O
method	O	O
,	O	O
you	O	O
could	O	O
store	O	O
as	O	O
many	O	O
readings	O	O
as	O	O
you	O	O
wanted	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
and	O	O
every	O	O
time	O	O
the	O	O
main	O	O
thread	O	O
received	O	O
a	O	O
message	O	O
,	O	O
it	O	O
would	O	O
simply	O	O
process	O	O
all	O	O
the	O	O
items	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
at	O	O
once	O	O
.	O	O

Define	O	O
a	O	O
class	O	O
for	O	O
the	O	O
readings	O	O
,	O	O
instantiate	O	O
them	O	O
,	O	O
and	O	O
add	O	O
them	O	O
to	O	O
the	O	O
list	O	B-Data_Structure
in	O	O
the	O	O
background	O	O
thread	O	O
.	O	O

Do	O	O
n't	O	O
forget	O	O
to	O	O
free	O	O
them	O	O
in	O	O
the	O	O
main	O	O
thread	O	O
when	O	O
you	O	O
pop	O	O
them	O	O
off	O	O
the	O	O
list	O	B-Data_Structure
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
invest	O	O
a	O	O
little	O	O
more	O	O
then	O	O
a	O	O
simple	O	O
Synchronize	O	B-Function
call	O	O
which	O	O
by	O	O
the	O	O
way	O	O
blocks	O	O
the	O	O
main	O	O
thread	O	O
,	O	O
you	O	O
can	O	O
add	O	O
a	O	O
simple	O	O
FIFO	O	O
queue	O	B-Data_Structure
with	O	O
messaging	O	O
on	O	O
top	O	O
of	O	O
it	O	O
.	O	O

The	O	O
flow	O	O
of	O	O
data	O	O
would	O	O
be	O	O
like	O	O
this	O	O
:	O	O

The	O	O
thread	O	O
puts	O	O
the	O	O
data	O	O
into	O	O
the	O	O
queue	O	B-Data_Structure
.	O	O

The	O	O
thread	O	O
post	O	O
a	O	O
message	O	O
to	O	O
the	O	O
main	O	O
thread	O	O
window	O	O
.	O	O

Which	O	O
one	O	O
I	O	O
do	O	O
n't	O	O
care	O	O
:)	O	O

You	O	O
handle	O	O
the	O	O
message	O	O
that	O	O
data	O	O
is	O	O
available	O	O
and	O	O
process	O	O
any	O	O
messages	O	O
in	O	O
the	O	O
queue	O	B-Data_Structure
as	O	O
you	O	O
see	O	O
fit	O	O
.	O	O

The	O	O
code	O	O
would	O	O
look	O	O
something	O	O
like	O	O
this	O	O
:	O	O

the	O	O
queue	O	B-Data_Structure
..	O	O
.	O	O

the	O	O
data	O	O
is	O	O
put	O	O
into	O	O
the	O	O
queue	O	B-Data_Structure
..	O	O
.	O	O

and	O	O
processing	O	O
..	O	O
.	O	O

The	O	O
code	O	O
is	O	O
written	O	O
without	O	O
Delphi	O	B-Application
and	O	O
checks	O	O
so	O	O
it	O	O
can	O	O
contain	O	O
errors	O	O
.	O	O

I	O	O
showed	O	O
the	O	O
example	O	O
using	O	O
my	O	O
freely	O	O
available	O	O
thread	O	O
safe	O	O
queue	O	B-Data_Structure
and	O	O
TAnyValue	O	B-Variable
.	O	O

You	O	O
can	O	O
find	O	O
both	O	O
here	O	O
:	O	O

http://www.cromis.net/blog/downloads/	O	O

Also	O	O
please	O	O
note	O	O
then	O	O
I	O	O
did	O	O
not	O	O
do	O	O
any	O	O
check	O	O
if	O	O
PostMessage	O	B-Function
was	O	O
actually	O	O
sent	O	O
.	O	O

You	O	O
should	O	O
check	O	O
that	O	O
in	O	O
production	O	O
code	O	O
.	O	O

I	O	O
am	O	O
creating	O	O
a	O	O
app	O	O
whereby	O	O
the	O	O
user	O	O
inputs	O	O
data	O	O
into	O	O
a	O	O
form	O	B-User_Interface_Element
and	O	O
then	O	O
hits	O	O
the	O	O
button	O	B-User_Interface_Element
,	O	O
opens	O	O
up	O	O
a	O	O
emailing	O	O
app	O	O
and	O	O
sends	O	O
it	O	O
off	O	O
to	O	O
the	O	O
email	O	O
address	O	O
put	O	O
in	O	O
.	O	O

I	O	O
have	O	O
3	O	O
checkboxes	O	B-User_Interface_Element
,	O	O
one	O	O
that	O	O
asks	O	O
if	O	O
the	O	O
user	O	O
wants	O	O
a	O	O
call	O	O
back	O	O
,	O	O
one	O	O
if	O	O
they	O	O
want	O	O
an	O	O
email	O	O
back	O	O
and	O	O
one	O	O
saying	O	O
no	O	O
thanks	O	O
to	O	O
both	O	O
.	O	O

My	O	O
current	O	O
java	O	B-Language
code	O	O
is	O	O
:	O	O

And	O	O
then	O	O
the	O	O
method	O	O
which	O	O
calls	O	O
all	O	O
the	O	O
above	O	O
is	O	O
:	O	O

On	O	O
the	O	O
last	O	O
line	O	O
,	O	O
I	O	O
want	O	O
to	O	O
get	O	O
the	O	O
data	O	O
from	O	O
the	O	O
checkbox	O	B-Class
for	O	O
example	O	O
,	O	O
if	O	O
the	O	O
call	O	O
back	O	O
box	O	B-User_Interface_Element
was	O	O
ticked	O	O
,	O	O
in	O	O
the	O	O
email	O	O
it	O	O
should	O	O
say	O	O
"	O	O
The	O	O
user	O	O
requests	O	O
a	O	O
call	O	O
back	O	O
"	O	O
.	O	O

If	O	O
both	O	O
call	O	O
and	O	O
email	O	O
are	O	O
ticked	O	O
then	O	O
"	O	O
The	O	O
user	O	O
requests	O	O
a	O	O
call	O	O
or	O	O
email	O	O
back	O	O
"	O	O
and	O	O
if	O	O
the	O	O
no	O	O
thanks	O	O
checkbox	O	B-User_Interface_Element
is	O	O
ticked	O	O
then	O	O
"	O	O
The	O	O
user	O	O
does	O	O
n't	O	O
require	O	O
an	O	O
update	O	O
when	O	O
issue	O	O
is	O	O
resolved	O	O
"	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
create	O	O
a	O	O
dataset	O	O
pattern	O	O
like	O	O
this	O	O
from	O	O
the	O	O
rest	O	B-Library
service	O	O
in	O	O
my	O	O
angular	O	B-Library
application	O	O
.	O	O

Example	O	O
:	O	O

Right	O	O
now	O	O
this	O	O
is	O	O
my	O	O
code	O	O
to	O	O
build	O	O
a	O	O
similar	O	O
pattern	O	O
,	O	O

Problem	O	O
is	O	O
data	O	O
field	O	O
is	O	O
not	O	O
creating	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

This	O	O
is	O	O
the	O	O
final	O	O
output	O	O
which	O	O
the	O	O
above	O	O
code	O	O
generates	O	O
.	O	O

try	O	O
this	O	O
,	O	O
You	O	O
nee	O	O
a	O	O
loop	O	O
for	O	O
dataname	B-Code_Block	B-Variable

push()	O	B-Function
returns	O	O
the	O	O
new	O	O
array	O	B-Data_Structure
's	O	O
length	O	O

or	O	O
you	O	O
can	O	O
use	O	O
concat()	O	B-Function

SOLUTION	O	O

Well	O	O
,	O	O
that	O	O
's	O	O
what	O	O
I	O	O
get	O	O
when	O	O
I	O	O
use	O	O
a	O	O
bit	O	O
oldish	O	O
Symfony2	O	B-Application
release	O	O
(	O	O
2.0-RC6	O	B-Version
)	O	O
.	O	O

It	O	O
seems	O	O
that	O	O
there	O	O
was	O	O
a	O	O
bug	O	O
in	O	O
__construct	B-Code_Block	B-Function
of	O	O
RoleSecurityIdentity	B-Code_Block	B-Class
(	O	O
reported	O	O
back	O	O
in	O	O
December	O	O
'	O	O
10	O	O
)	O	O
.	O	O

Instead	O	O
of	O	O
instance	B-Code_Block	O
of	I-Code_Block	O
Role	I-Code_Block	B-Class
it	O	O
should	O	O
be	O	O
instance	B-Code_Block	O
of	I-Code_Block	O
RoleInstance	I-Code_Block	B-Class
.	O	O

I	O	O
should	O	O
probably	O	O
close	O	O
this	O	O
question	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
pretty	O	O
new	O	O
to	O	O
whole	O	O
ACL	B-Code_Block	B-Data_Structure
concept	O	O
in	O	O
Symfony2	B-Code_Block	B-Application
but	O	O
I	O	O
understand	O	O
basics	O	O
behind	O	O
it	O	O
.	O	O

Last	O	O
night	O	O
I	O	O
was	O	O
trying	O	O
to	O	O
make	O	O
next	O	O
scenario	O	O
work	O	O
:	O	O

I	O	O
have	O	O
2	O	O
user	O	O
roles	O	O
(	O	O
ROLE_GROUP1	B-Code_Block	B-Variable
,	O	O
ROLE_GROUP	B-Code_Block	B-Variable
2)	I-Code_Block	I-Variable
and	O	O
I	O	O
want	O	O
to	O	O
setup	O	O
object-level	O	O
ACL	B-Code_Block	B-Class
for	O	O
the	O	O
one	O	O
of	O	O
these	O	O
groups	O	O
.	O	O

If	O	O
user	O	O
with	O	O
ROLE_GROUP1	B-Code_Block	B-Variable
is	O	O
logged	O	O
in	O	O
it	O	O
should	O	O
put	O	O
this	O	O
role	O	O
into	O	O
ACE	B-Code_Block	B-Variable
,	O	O
otherwise	O	O
it	O	O
should	O	O
put	O	O
ROLE_GROUP2	B-Code_Block	B-Variable
.	O	O

So	O	O
far	O	O
I	O	O
wrote	O	O
this	O	O
code	O	O
(	O	O
really	O	O
almost	O	O
identical	O	O
to	O	O
official	O	O
docs	O	O
)	O	O
:	O	O

The	O	O
way	O	O
I	O	O
understand	O	O
it	O	O
,	O	O
this	O	O
should	O	O
grant	O	O
all	O	O
permissions	O	O
to	O	O
users	O	O
with	O	O
ROLE_GROUP1	B-Code_Block	B-Variable
role	O	O
.	O	O

Am	O	O
I	O	O
wrong	O	O
?	O	O

To	O	O
check	O	O
for	O	O
permissions	O	O
I	O	O
used	O	O
this	O	O
code	O	O
(	O	O
again	O	O
,	O	O
from	O	O
official	O	O
docs	O	O
)	O	O
:	O	O

..	O	O
.	O	O
but	O	O
it	O	O
always	O	O
fails	O	O
(	O	O
that	O	O
is	O	O
throws	O	O
an	O	O
exception	O	O
)	O	O
.	O	O

I	O	O
looked	O	O
into	O	O
the	O	O
ACL	O	B-Data_Structure
tables	O	I-Data_Structure
and	O	O
everything	O	O
seemed	O	O
normal	O	O
,	O	O
as	O	O
far	O	O
as	O	O
I	O	O
could	O	O
see	O	O
.	O	O

Am	O	O
I	O	O
doing	O	O
something	O	O
wrong	O	O
with	O	O
RoleSecurityIdentity	O	B-Class
?	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
achieve	O	O
this	O	O
scenario	O	O
?	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
much	O	O
appreciated	O	O
!	O	O

EDIT	O	O

I	O	O
just	O	O
drilled	O	O
down	O	O
through	O	O
the	O	O
Symfony	O	B-Application
's	O	O
code	O	O
and	O	O
found	O	O
out	O	O
that	O	O
permission	O	O
grant	O	O
fails	O	O
in	O	O
equals	B-Code_Block	B-Function
method	O	O
of	O	O
RoleSecurityIdentity	B-Code_Block	B-Class
.	O	O

It	O	O
turns	O	O
out	O	O
that	O	O
$sid->getRole()	B-Code_Block	B-Code_Block
is	O	O
string	B-Code_Block	B-Data_Type
"	O	O
ROLE_GROUP1	O	B-Variable
"	O	O
while	O	O
$	B-Code_Block	B-Code_Block
this->role	I-Code_Block	I-Code_Block
is	O	O
Role	B-Code_Block	B-Class
object	O	O
of	O	O
ROLE_GROUP1	O	B-Variable
role	O	O
.	O	O

Just	O	O
to	O	O
mark	O	O
this	O	O
question	O	O
as	O	O
resolved	O	O
.	O	O

Solution	O	O
:	O	O

Well	O	O
,	O	O
that	O	O
's	O	O
what	O	O
I	O	O
get	O	O
when	O	O
I	O	O
use	O	O
a	O	O
bit	O	O
oldish	O	O
Symfony2	O	B-Application
release	O	O
(	O	O
2.0-RC6	O	B-Version
)	O	O
.	O	O

It	O	O
seems	O	O
that	O	O
there	O	O
was	O	O
a	O	O
bug	O	O
in	O	O
__construct	O	B-Function
of	O	O
RoleSecurityIdentity	O	B-Class
(	O	O
reported	O	O
back	O	O
in	O	O
December	O	O
'	O	O
10	O	O
)	O	O
.	O	O

Instead	O	O
of	O	O
instance	O	O
of	O	O
Role	O	B-Class
it	O	O
should	O	O
be	O	O
instance	O	O
of	O	O
RoleInstance	O	B-Class
.	O	O

I	O	O
should	O	O
probably	O	O
close	O	O
this	O	O
question	O	O
..	O	O
.	O	O

I	O	O
have	O	O
two	O	O
tables	O	O
as	O	O
follows	O	O
:	O	O

The	O	O
two	O	O
tables	O	B-Data_Structure
are	O	O
related	O	O
through	O	O
Foreign-key	O	B-Variable
:	O	I-Variable
FkOriginalTextId	O	I-Variable

Basically	O	O
,	O	O
OriginalText	O	B-Class
will	O	O
have	O	O
key/value	O	B-Variable
pairs	O	O
for	O	O
different	O	O
languages	O	O
.	O	O

If	O	O
a	O	O
particular	O	O
client	O	B-Application
wants	O	O
a	O	O
certain	O	O
value	O	O
to	O	O
be	O	O
customized	O	O
then	O	O
it	O	O
goes	O	O
to	O	O
the	O	O
CustomText	O	B-Class
table	O	B-Data_Structure
.	O	O

An	O	O
example	O	O
would	O	O
be	O	O
OriginalText	O	B-Class
:	O	O
Employee	O	B-Variable
,	O	O
CustomText	O	B-Class
:	O	O
Staff-member	O	B-Variable
for	O	O
the	O	O
key	O	B-Variable
:	O	O
Employee	O	B-Variable
.	O	O

I	O	O
want	O	O
to	O	O
write	O	O
a	O	O
Lambda/Linq	O	B-Library
to	O	O
get	O	O
all	O	O
the	O	O
text	O	O
of	O	O
a	O	O
given	O	O
language	O	O
from	O	O
the	O	O
OriginalText	O	B-Class
table	O	B-Data_Structure
,	O	O
but	O	O
the	O	O
TextValue	O	B-Variable
should	O	O
be	O	O
overriden	O	O
if	O	O
there	O	O
's	O	O
a	O	O
custom	O	O
replacement	O	O
for	O	O
that	O	O
key	O	B-Variable
in	O	O
the	O	O
CustomText	O	B-Class
table	O	B-Data_Structure
.	O	O

I	O	O
can	O	O
do	O	O
this	O	O
using	O	O
multiple	O	O
SQL	O	B-Language
statements	O	O
by	O	O
getting	O	O
the	O	O
OriginalText	O	B-Class
values	O	O
to	O	O
a	O	O
temp	O	B-Variable
table	O	B-Data_Structure
and	O	O
later	O	O
on	O	O
updating	O	O
them	O	O
with	O	O
CustomText	O	B-Class
value	O	O
,	O	O
but	O	O
is	O	O
there	O	O
's	O	O
a	O	O
better	O	O
way	O	O
to	O	O
do	O	O
that	O	O
?	O	O

Perhaps	O	O
using	O	O
a	O	O
CTE	O	O
?	O	O

P.S	O	O
.	O	O
I	O	O
want	O	O
to	O	O
do	O	O
this	O	O
using	O	O
LINQ	O	B-Library
or	O	O
Lambda	O	B-Library
expressions	O	O

As	O	O
two	O	O
tables	O	B-Data_Structure
have	O	O
relations	O	O
so	O	O
,	O	O
you	O	O
can	O	O
easily	O	O
check	O	O
if	O	O
each	O	O
OriginalText	B-Code_Block	B-Class
item	O	O
has	O	O
a	O	O
CustomText	B-Code_Block	B-Class
or	O	O
not	O	O
.	O	O

and	O	O
get	O	O
value	O	O
from	O	O
CustomText	B-Code_Block	B-Class
if	O	O
exists	O	O
:	O	O

I	O	O
have	O	O
just	O	O
normalized	O	O
the	O	O
font	O	B-Variable
size	O	I-Variable
with	O	O
this	O	O
:	O	O

Now	O	O
I	O	O
would	O	O
like	O	O
to	O	O
resize	O	O
the	O	O
heading	O	B-User_Interface_Element
tags	O	O
giving	O	O
percentages	O	O
to	O	O
the	O	O
<h1>,	B-Code_Block	B-HTML_XML_Tag
<h2>	I-Code_Block	I-HTML_XML_Tag
.	O	O

Something	O	O
like	O	O
this	O	O
:	O	O

As	O	O
you	O	O
can	O	O
see	O	O
,	O	O
I	O	O
gave	O	O
a	O	O
percentage	O	O
to	O	O
the	O	O
h2	O	B-HTML_XML_Tag
,	O	O
but	O	O
what	O	O
are	O	O
the	O	O
percentages	O	O
for	O	O
the	O	O
rest	O	O
of	O	O
them	O	O
?	O	O

The	O	O
percentages	O	O
can	O	O
be	O	O
whatever	O	O
you	O	O
want	O	O
them	O	O
to	O	O
be	O	O
.	O	O

There	O	O
's	O	O
nothing	O	O
saying	O	O
that	O	O
an	O	O
H1	O	B-HTML_XML_Tag
has	O	O
to	O	O
be	O	O
bigger	O	O
than	O	O
an	O	O
H2	O	B-HTML_XML_Tag
,	O	O
that	O	O
's	O	O
just	O	O
the	O	O
default	O	O
.	O	O

View	O	O
the	O	O
falowing	O	O
link	O	O
,	O	O
it	O	O
might	O	O
help	O	O
you	O	O
solve	O	O
that	O	O
:	O	O

CSS	O	B-Language
FONT	O	B-Variable
SIZE	O	I-Variable
em	O	O
vs	O	O
px	O	O
vs	O	O
pt	O	O
vs	O	O
%	O	O

I	O	O
found	O	O
this	O	O
link	O	O
with	O	O
a	O	O
conversion	O	O
table	O	B-User_Interface_Element
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
assign	O	O
click	O	O
event	O	O
to	O	O
a	O	O
button	O	B-User_Interface_Element
using	O	O
live	O	B-Function
and	O	O
want	O	O
the	O	O
user	O	O
can	O	O
only	O	O
trigger	O	O
it	O	O
only	O	O
once	O	O
.	O	O

Are	O	O
there	O	O
anyways	O	O
to	O	O
do	O	O
it	O	O
?	O	O

Please	O	O
note	O	O
:	O	O
The	O	O
button	O	B-User_Interface_Element
is	O	O
created	O	O
dynamically	O	O
.	O	O

You	O	O
can	O	O
use	O	O
one()	B-Code_Block	B-Function
with	O	O
delegated	O	O
handlers	O	O
as	O	O
well	O	O
(	O	O
in	O	O
jQuery	O	B-Library
1.7	O	B-Version
+	O	O
)	O	O
and	O	O
replace	O	O
the	O	O
deprecated	O	O
live()	B-Code_Block	B-Function
function	O	O
with	O	O
something	O	O
like	O	O
this	O	O
:	O	O

replace	O	O
document	B-Code_Block	B-Variable
with	O	O
the	O	O
closest	O	O
non-dynamic	O	O
parent	O	O
.	O	O

The	O	O
best	O	O
option	O	O
is	O	O
to	O	O
use	O	O
.one	O	B-Function
instead	O	O
of	O	O
live	O	B-Function
for	O	O
the	O	O
button	O	B-User_Interface_Element
.	O	O

That	O	O
makes	O	O
more	O	O
sense.	O	O
.	O	O

If	O	O
you	O	O
do	O	O
not	O	O
want	O	O
to	O	O
use	O	O
it	O	O
then	O	O
you	O	O
can	O	O
use	O	O
a	O	O
Hiddenfield	O	O
in	O	O
your	O	O
page	O	O
and	O	O
when	O	O
the	O	O
click	O	O
event	O	O
is	O	O
triggered	O	O
then	O	O
set	O	O
the	O	O
flag	O	B-Variable
value.	O	O
.	O	O

Next	O	O
time	O	O
when	O	O
you	O	O
click	O	O
the	O	O
button	O	O
check	O	O
for	O	O
the	O	O
flag	O	B-Variable
value	O	O
,	O	O
if	O	O
it	O	O
was	O	O
already	O	O
executed	O	O
once	O	O
then	O	O
do	O	O
not	O	O
run	O	O
the	O	O
code	O	O
inside	O	O
it.	O	O
.	O	O

Check	O	O
this	O	O
example	O	O
http://jsfiddle.net/sushanth009/Fakb5/	O	O

Also	O	O
note	O	O
that	O	O
.live	O	B-Function
is	O	O
deprecated	O	O
in	O	O
the	O	O
current	O	O
jQuery	O	B-Library
version	O	O
.	O	O

It	O	O
is	O	O
preferred	O	O
to	O	O
use	O	O
.on()	O	B-Function
instead	O	O

Why	O	O
am	O	O
I	O	O
getting	O	O
this	O	O
error	O	O
?	O	O

Here	O	O
's	O	O
the	O	O
code	O	O
.	O	O

I	O	O
think	O	O
it	O	O
looks	O	O
fine	O	O
,	O	O
but	O	O
I	O	O
may	O	O
have	O	O
some	O	O
pretty	O	O
bad	O	O
mistakes	O	O
.	O	O

sorry	O	O
for	O	O
the	O	O
dumb	O	O
question	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
do	O	O
arrays	O	B-Data_Structure
which	O	O
are	O	O
lists	O	B-Data_Structure
in	O	O
python	O	B-Language
(	O	O
for	O	O
the	O	O
first	O	O
time	O	O
)	O	O
,	O	O
and	O	O
I	O	O
am	O	O
also	O	O
new	O	O
to	O	O
coding	O	O
and	O	O
python	O	B-Language
.	O	O

Here	O	O
:	O	O

You	O	O
assign	O	O
playerHand	O	B-Variable
the	O	O
return	O	O
from	O	O
randint	B-Code_Block	B-Function
,	O	O
which	O	O
is	O	O
an	O	O
int	B-Code_Block	B-Data_Type
.	O	O

Then	O	O
here	O	O
:	O	O

You	O	O
attempt	O	O
to	O	O
index	O	O
into	O	O
playerHand	B-Code_Block	B-Variable
like	O	O
it	O	O
is	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

Hence	O	O
the	O	O
error	O	O
.	O	O

You	O	O
need	O	O
make	O	O
a	O	O
list	O	B-Data_Structure
.	O	O

The	O	O
wrong	O	O
version	O	O
:	O	O

The	O	O
correct	O	O
version	O	O
:	O	O

So	O	O
confusingly	O	O
@IfProfileValue	B-Code_Block	B-Class
has	O	O
nothing	O	O
to	O	O
do	O	O
with	O	O
@Profile	B-Code_Block	B-Class
or	O	O
@ActiveProfiles	B-Code_Block	B-Class
.	O	O

@Profile	B-Code_Block	B-Class
tests	O	O
to	O	O
see	O	O
if	O	O
a	O	O
profile	O	B-Class
is	O	O
active	O	B-Value
,	O	O
@ActiveProfiles	B-Code_Block	B-Class
sets	O	O
them	O	O
as	O	O
active	O	B-Value
,	O	O
and	O	O
@IfProfileValue	B-Code_Block	B-Class
allows	O	O
you	O	O
to	O	O
check	O	O
things	O	O
in	O	O
Spring	O	B-Library
Environment	B-Code_Block	O
.	O	O

Wut	O	O
?	O	O

I	O	O
'd	O	O
deprecate	O	O
all	O	O
of	O	O
them	O	O
and	O	O
add	O	O
new	O	O
ones	O	O
@IfEnvironment	B-Code_Block	B-Class
,	O	O
@IfProfile	B-Code_Block	B-Class
,	O	O
and	O	O
@ActivateProfiles	B-Code_Block	B-Class
.	O	O

Commentary	O	O
aside	O	O
,	O	O
how	O	O
can	O	O
I	O	O
use	O	O
@IfProfileValue	B-Code_Block	B-Class
to	O	O
detect	O	O
whether	O	O
i	O	O
have	O	O
a	O	O
profile	O	B-Class
active	O	B-Value
?	O	O

I	O	O
am	O	O
not	O	O
using	O	O
Spring	O	B-Library
Boot	O	I-Library
on	O	O
this	O	O
project	O	O
,	O	O
at	O	O
this	O	O
time	O	O
.	O	O

Answers	O	O
should	O	O
show	O	O
code	O	O
,	O	O
and	O	O
we	O	O
will	O	O
assume	O	O
that	O	O
I	O	O
want	O	O
the	O	O
test	O	O
to	O	O
run	O	O
if	O	O
the	O	O
profile	O	B-Class
is	O	O
activated	O	O
as	O	O
@ActiveProfiles	B-Code_Block	B-Class
(	I-Code_Block	I-Class
"	I-Code_Block	I-Class
test	I-Code_Block	I-Class
"	I-Code_Block	I-Class
)	I-Code_Block	I-Class
.	O	O

I	O	O
tried	O	O
@IfProfileValue	B-Code_Block	B-Code_Block
(	B-Code_Block	B-Code_Block
name	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
activeProfiles	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
value	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
test	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
but	O	O
that	O	O
seems	O	O
to	O	O
have	O	O
the	O	O
test	O	O
skipped	O	O
,	O	O
which	O	O
means	O	O
it	O	O
's	O	O
not	O	O
matching	O	O
.	O	O

I	O	O
'm	O	O
going	O	O
to	O	O
speculate	O	O
the	O	O
problem	O	O
may	O	O
have	O	O
to	O	O
do	O	O
with	O	O
the	O	O
fact	O	O
that	O	O
ActiveProfiles	B-Code_Block	B-Class
is	O	O
a	O	O
Collection	B-Code_Block	B-Class
.	O	O

That	O	O
's	O	O
correct	O	O
,	O	O
and	O	O
I	O	O
explained	O	O
this	O	O
in	O	O
detail	O	O
here	O	O
:	O	O
https://stackoverflow.com/a/23627479/388980	O	O

..	O	O
.	O	O
which	O	O
I	O	O
'm	O	O
assuming	O	O
you	O	O
have	O	O
already	O	O
seen	O	O
,	O	O
since	O	O
you	O	O
commented	O	O
on	O	O
my	O	O
answer	O	O
yesterday	O	O
.	O	O

The	O	O
reason	O	O
that	O	O
@IfProfileValue	B-Code_Block	B-Class
has	O	O
nothing	O	O
to	O	O
do	O	O
with	O	O
@Profile	B-Code_Block	B-Class
or	O	O
@ActiveProfiles	B-Code_Block	B-Class
is	O	O
due	O	O
to	O	O
the	O	O
evolution	O	O
of	O	O
the	O	O
framework	O	O
.	O	O

See	O	O
below	O	O
for	O	O
further	O	O
details	O	O
.	O	O

These	O	O
statements	O	O
are	O	O
not	O	O
entirely	O	O
correct	O	O
,	O	O
especially	O	O
the	O	O
last	O	O
part	O	O
.	O	O

@Profile	B-Code_Block	B-Class
is	O	O
used	O	O
to	O	O
selectively	O	O
enable	O	O
a	O	O
component	O	O
(	O	O
e.g	O	O
.	O	O
,	O	O
@Service	B-Code_Block	B-Class
,	O	O
etc	O	O
.	O	O
)	O	O
,	O	O
@Configuration	B-Code_Block	B-Class
class	O	O
,	O	O
or	O	O
@Bean	B-Code_Block	B-Function
method	O	O
if	O	O
one	O	O
of	O	O
the	O	O
named	O	O
bean	O	O
definition	O	O
profiles	O	B-Variable
is	O	O
active	O	B-Value
in	O	O
the	O	O
Spring	O	B-Class
Environment	B-Code_Block	I-Class
for	O	O
the	O	O
ApplicationContext	B-Code_Block	B-Class
.	O	O

This	O	O
annotation	O	O
is	O	O
not	O	O
directly	O	O
related	O	O
to	O	O
testing	O	O
:	O	O
@Profile	B-Code_Block	B-Class
should	O	O
not	O	O
be	O	O
used	O	O
on	O	O
a	O	O
test	O	O
class	O	O
.	O	O

@ActiveProfiles	B-Code_Block	B-Class
is	O	O
used	O	O
to	O	O
designate	O	O
which	O	O
bean	O	O
definition	O	O
profiles	O	O
(	O	O
e.g	O	O
.	O	O
,	O	O
those	O	O
declared	O	O
via	O	O
@Profile	B-Code_Block	B-Class
)	O	O
should	O	O
be	O	O
active	O	B-Value
when	O	O
loading	O	O
an	O	O
ApplicationContext	B-Code_Block	B-Class
for	O	O
an	O	O
integration	O	O
test	O	O
.	O	O

@IfProfileValue	B-Code_Block	B-Class
does	O	O
not	O	O
allow	O	O
you	O	O
to	O	O
check	O	O
things	O	O
in	O	O
the	O	O
Spring	O	B-Class
Environment	B-Code_Block	I-Class
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
why	O	O
you	O	O
are	O	O
assuming	O	O
this	O	O
,	O	O
since	O	O
none	O	O
of	O	O
the	O	O
documentation	O	O
in	O	O
the	O	O
Spring	O	B-Library
Framework	O	I-Library
states	O	O
that	O	O
.	O	O

As	O	O
I	O	O
stated	O	O
in	O	O
the	O	O
aforementioned	O	O
thread	O	O
:	O	O

Please	O	O
note	O	O
that	O	O
@IfProfileValue	B-Code_Block	B-Class
was	O	O
introduced	O	O
in	O	O
Spring	O	B-Library
Framework	O	I-Library
2.0	O	B-Version
,	O	O
long	O	O
before	O	O
the	O	O
notion	O	O
of	O	O
bean	O	O
definition	O	O
profiles	O	O
,	O	O
and	O	O
@ActiveProfiles	B-Code_Block	B-Class
was	O	O
first	O	O
introduced	O	O
in	O	O
Spring	O	B-Library
Framework	O	I-Library
3.1	O	B-Version
.	O	O

In	O	O
the	O	O
aforementioned	O	O
thread	O	O
,	O	O
I	O	O
also	O	O
pointed	O	O
out	O	O
the	O	O
following	O	O
:	O	O

The	O	O
term	O	O
'	O	O
profile	O	B-Variable
'	O	O
is	O	O
perhaps	O	O
misleading	O	O
when	O	O
considering	O	O
the	O	O
semantics	O	O
for	O	O
@IfProfileValue	B-Code_Block	B-Class
.	O	O

The	O	O
key	O	O
is	O	O
to	O	O
think	O	O
about	O	O
'	O	O
test	O	O
groups	O	O
'	O	O
(	O	O
like	O	O
those	O	O
in	O	O
TestNG	O	B-Library
)	O	O
instead	O	O
of	O	O
'	O	O
profiles	O	B-Variable
'	O	O
.	O	O

See	O	O
the	O	O
examples	O	O
in	O	O
the	O	O
JavaDoc	O	O
for	O	O
@IfProfileValue	O	B-Class
.	O	O

That	O	O
depends	O	O
,	O	O
and	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
assuming	O	O
you	O	O
mean	O	O
bean	O	O
definition	O	O
profile	O	B-Variable
when	O	O
you	O	O
say	O	O
"	O	O
profile	O	B-Variable
"	O	O
.	O	O

If	O	O
you	O	O
're	O	O
using	O	O
@ActiveProfiles	B-Code_Block	B-Class
to	O	O
set	O	O
the	O	O
bean	O	O
definition	O	O
profiles	O	O
for	O	O
your	O	O
tests	O	O
,	O	O
you	O	O
cannot	O	O
currently	O	O
use	O	O
@IfProfileValue	B-Code_Block	B-Class
to	O	O
determine	O	O
if	O	O
a	O	O
bean	O	O
definition	O	O
profile	O	B-Class
is	O	O
active	O	B-Value
,	O	O
since	O	O
the	O	O
bean	O	O
definition	O	O
profiles	O	B-Variable
configured	O	O
via	O	O
@ActiveProfiles	B-Code_Block	B-Class
are	O	O
set	O	O
directly	O	O
in	O	O
the	O	O
test	O	O
's	O	O
ApplicationContext	B-Code_Block	B-Class
and	O	O
not	O	O
as	O	O
a	O	O
Java	O	B-Language
system	O	O
property	O	O
.	O	O

However	O	O
,	O	O
if	O	O
you	O	O
are	O	O
setting	O	O
the	O	O
bean	O	O
definition	O	O
profiles	O	O
only	O	O
via	O	O
the	O	O
spring.profiles.active	B-Code_Block	B-Variable
system	O	O
property	O	O
,	O	O
then	O	O
it	O	O
would	O	O
be	O	O
possible	O	O
to	O	O
use	O	O
@IfProfileValue	B-Code_Block	B-Class
to	O	O
determine	O	O
if	O	O
a	O	O
bean	O	O
definition	O	O
profile	O	B-Variable
is	O	O
active	O	B-Value
,	O	O
since	O	O
@IfProfileValue	B-Code_Block	B-Class
in	O	O
fact	O	O
works	O	O
with	O	O
system	O	O
properties	O	O
.	O	O

For	O	O
example	O	O
,	O	O
you	O	O
could	O	O
then	O	O
use	O	O
the	O	O
following	O	O
:	O	O

That	O	O
wo	O	O
n't	O	O
work	O	O
since	O	O
activeProfiles	B-Code_Block	B-Value
is	O	O
the	O	O
incorrect	O	O
property	O	O
name	O	B-Variable
.	O	O

The	O	O
correct	O	O
system	O	O
property	O	O
name	O	O
is	O	O
spring.profiles.active	B-Code_Block	B-Variable
.	O	O

See	O	O
AbstractEnvironment.ACTIVE_PROFILES_PROPERTY_NAME	B-Code_Block	B-Variable
for	O	O
details	O	O
.	O	O

The	O	O
fact	O	O
that	O	O
@IfProfileValue	B-Code_Block	B-Class
does	O	O
not	O	O
work	O	O
in	O	O
harmony	O	O
with	O	O
@ActiveProfiles	B-Code_Block	B-Class
is	O	O
a	O	O
known	O	O
issue	O	O
to	O	O
the	O	O
Spring	O	B-Library
team	O	O
.	O	O

Please	O	O
consult	O	O
the	O	O
following	O	O
JIRA	O	B-Application
issues	O	O
for	O	O
further	O	O
details	O	O
and	O	O
to	O	O
join	O	O
in	O	O
on	O	O
the	O	O
discussions	O	O
if	O	O
you	O	O
'd	O	O
like	O	O
.	O	O

https://jira.spring.io/browse/SPR-7754	O	O

https://jira.spring.io/browse/SPR-8982	O	O

https://jira.spring.io/browse/SPR-11677	O	O

Hope	O	O
this	O	O
clarifies	O	O
the	O	O
situation	O	O
for	O	O
you	O	O
!	O	O

Sam	O	B-User_Name
(	O	O
author	O	O
of	O	O
the	O	O
Spring	O	O
TestContext	O	O
Framework	O	O
)	O	O

Sam	O	B-User_Name
nailed	O	O
it	O	O
.	O	O

(	O	O
As	O	O
well	O	O
as	O	O
the	O	O
fact	O	O
this	O	O
was	O	O
accepted	O	O
and	O	O
answered	O	O
years	O	O
back	O	O
)	O	O

One	O	O
thing	O	O
to	O	O
add	O	O
is	O	O
that	O	O
if	O	O
you	O	O
'd	O	O
like	O	O
to	O	O
pass	O	O
System	O	O
Properties	O	O
through	O	O
to	O	O
your	O	O
test	O	O
,	O	O
having	O	O
them	O	O
propagate	O	O
through	O	O
to	O	O
the	O	O
JVM	O	B-Application
if	O	O
you	O	O
are	O	O
using	O	O
a	O	O
build	O	O
tool	O	O
like	O	O
gradle	O	B-Application
may	O	O
require	O	O
an	O	O
additional	O	O
step	O	O
.	O	O

And	O	O
then	O	O
business	O	O
as	O	O
usual	O	O
in	O	O
your	O	O
integration	O	O
test	O	O

Finally	O	O
you	O	O
can	O	O
execute	O	O
your	O	O
tests	O	O
from	O	O
the	O	O
terminal	O	B-Application
with	O	O
the	O	O
property	O	O
you	O	O
specified	O	O
.	O	O

The	O	O
thing	O	O
I	O	O
like	O	O
most	O	O
about	O	O
@IfProfileValue	B-Code_Block	B-Class
over	O	O
grabbing	O	O
the	O	O
System.property	O	B-Variable
and	O	O
checking	O	O
assumeTrue/False	B-Code_Block	B-Value
manually	O	O
is	O	O
that	O	O
no	O	O
Spring	O	B-Library
Context	O	O
is	O	O
loaded	O	O
(	O	O
or	O	O
flyway/other	O	O
migrations	O	O
you	O	O
may	O	O
have	O	O
)	O	O
keeping	O	O
unit	O	O
tests	O	O
fast	O	O
.	O	O

I	O	O
have	O	O
Form1	B-Code_Block	B-Class
withDataGridView`	I-Code_Block	B-Class
which	O	O
consists	O	O
of	O	O
the	O	O
following	O	O
columns	O	B-Data_Structure
:	O	O

ID	O	B-Class

NAME	O	B-Class

SHORT	O	B-Class
DESCRIPTION	O	I-Class

DESCRIPTION	O	B-Class

Also	O	O
I	O	O
have	O	O
a	O	O
button	O	B-User_Interface_Element
that	O	O
opens	O	O
a	O	O
separate	O	O
Form2	B-Code_Block	B-Class
that	O	O
has	O	O
several	O	O
textboxes	O	B-Class
.	O	O

How	O	O
can	O	O
I	O	O
pass	O	O
data	O	O
from	O	O
the	O	O
second	O	O
form	O	O
to	O	O
the	O	O
original	O	O
form	O	B-User_Interface_Element
,	O	O
the	O	O
value	O	O
from	O	O
textBox1	O	B-Class
of	O	O
Form2	O	B-Class
will	O	O
be	O	O
passed	O	O
to	O	O
the	O	O
ID	O	B-Class
column	O	B-Data_Structure
of	O	O
the	O	O
DataGridView	O	B-Class
?	O	O

It	O	O
should	O	O
be	O	O
works	O	O
same	O	O
for	O	O
all	O	O
columns	O	B-Data_Structure
(	O	O
textbox2	O	B-Class
to	O	O
NAME	O	B-Class
..	O	O
textbox4	O	O
to	O	O
DESCRIPTION	O	B-Class
)	O	O

//	O	O
Form2	O	B-Class

\Form1	O	B-Class

If	O	O
you	O	O
mean	O	O
like	O	O
this	O	O
it	O	O
does	O	O
n't	O	O
pass	O	O
the	O	O
data	O	O
.	O	O

Could	O	O
you	O	O
please	O	O
correct	O	O
me	O	O
?	O	O

You	O	O
've	O	O
got	O	O
the	O	O
code	O	O
of	O	O
Form1	B-Code_Block	B-Class
in	O	O
the	O	O
class	O	O
.	O	O

Move	O	O
that	O	O
to	O	O
a	O	O
method	O	O
or	O	O
event	O	O
handler	O	O
,	O	O
as	O	O
Form_Load	B-Code_Block	B-Function
or	O	O
to	O	O
the	O	O
form	O	B-Class
constructor	O	O
.	O	O

Edit	O	O

This	O	O
is	O	O
how	O	O
your	O	O
Form2	B-Code_Block	B-Class
should	O	O
look	O	O
like	O	O
.	O	O

Note	O	O
mc	B-Code_Block	B-Variable
is	O	O
defined	O	O
at	O	O
class	O	O
level	O	O
,	O	O
so	O	O
it	O	O
is	O	O
accessible	O	O
from	O	O
outside	O	O
the	O	O
form	O	O
:	O	O

This	O	O
would	O	O
save	O	O
your	O	O
object	O	O
on	O	O
button	O	B-User_Interface_Element
click	O	O
and	O	O
close	O	O
the	O	O
form	O	O
in	O	O
that	O	O
moment	O	O

I	O	O
tried	O	O
to	O	O
use	O	O
jQuery	O	B-Library
combobox	O	B-Function
(	O	O
fiddle	O	B-Application
)	O	O
in	O	O
my	O	O
Mozilla	O	B-Application
Firefox	O	I-Application
addon	O	O
.	O	O

But	O	O
AMO	O	B-Application
editors	O	I-Application
rejected	O	O
my	O	O
Addon	O	B-Application
after	O	O
reviewing	O	O
stating	O	O
that	O	O
my	O	O
javascript	O	B-Language
does	O	O
unsafe	O	O
HTML	O	B-Language
insertion	O	O
with	O	O
unsanitized	O	O
data	O	O
.	O	O

Parts	O	O
of	O	O
the	O	O
code	O	O
stated	O	O
as	O	O
unsafe	O	O
all	O	O
belong	O	O
to	O	O
the	O	O
code	O	O
on	O	O
official	O	O
jQuery	O	B-Library
Ui	O	I-Library
page	O	O
for	O	O
combobox	O	B-Function
.	O	O

I	O	O
am	O	O
also	O	O
writing	O	O
the	O	O
code	O	O
below	O	O
.	O	O

Removing	O	O
this	O	O
piece	O	O
of	O	O
code	O	O
throws	O	O
error	O	O
if	O	O
I	O	O
try	O	O
to	O	O
create	O	O
a	O	O
combobox	O	B-Function
.	O	O

It	O	O
makes	O	O
me	O	O
wonder	O	O
why	O	O
combobox	B-Code_Block	B-Function
is	O	O
n't	O	O
already	O	O
included	O	O
in	O	O
jQuery	O	B-Library
and	O	O
why	O	O
do	O	O
I	O	O
have	O	O
to	O	O
put	O	O
this	O	O
snippet	O	O
inside	O	O
my	O	O
code	O	O
?	O	O

Am	O	O
I	O	O
doing	O	O
anything	O	O
wrong	O	O
here	O	O
.	O	O

Alternatively	O	O
Can	O	O
someone	O	O
suggest	O	O
me	O	O
how	O	O
can	O	O
I	O	O
make	O	O
this	O	O
code	O	O
taken	O	O
from	O	O
official	O	O
jquery	O	B-Library
page	O	O
safe	O	O
and	O	O
sanitized	O	O
?	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
store	O	O
some	O	O
certain	O	O
information	O	O
in	O	O
the	O	O
firebase	O	B-Application
realtime	O	I-Application
database	O	I-Application
.	O	O

My	O	O
database	O	O
structure	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

I	O	O
need	O	O
to	O	O
be	O	O
able	O	O
to	O	O
specify	O	O
condition	O	O
like	O	O
this	O	O
SQL	O	B-Language
example	O	O
:	O	O

is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
do	O	O
that	O	O
in	O	O
the	O	O
database	O	O
using	O	O
Ruby	O	B-Language
or	O	O
at	O	O
least	O	O
their	O	O
REST	O	B-Library
API	O	I-Library
?	O	O

The	O	O
solution	O	O
can	O	O
be	O	O
divided	O	O
into	O	O
two	O	O
steps	O	O
.	O	O

Step	O	O
1)	O	O
You	O	O
have	O	O
to	O	O
update	O	O
rules	O	O
in	O	O
firebase	O	B-Application
Database	O	I-Application
if	O	O
not	O	O
already	O	O
done	O	O
.	O	O

Step	O	O
2)	O	O
To	O	O
fetch	O	O
data	O	O
from	O	O
firebase	O	B-Application
Database	O	I-Application
.	O	O

The	O	O
rest	O	B-Library
API	O	I-Library
request	O	O
should	O	O
be	O	O
something	O	O
like	O	O
this	O	O

I	O	O
am	O	O
using	O	O
Oracle	O	B-Application
11G	O	B-Version
and	O	O
I	O	O
have	O	O
the	O	O
following	O	O
string	O	B-Data_Type
:	O	O
I	B-Code_Block	B-Value
-	I-Code_Block	I-Value
Am	I-Code_Block	I-Value
in	I-Code_Block	I-Value
-	I-Code_Block	I-Value
Need	I-Code_Block	I-Value
Help	I-Code_Block	I-Value
-	I-Code_Block	I-Value
Please	I-Code_Block	I-Value
and	O	O
want	O	O
to	O	O
parse	O	O
the	O	O
string	O	B-Data_Type
using	O	O
the	O	O
-	B-Code_Block	B-Value
character	O	B-Data_Type
then	O	O
select	O	O
everything	O	O
after	O	O
the	O	O
second	O	O
object	O	O
.	O	O

I	O	O
have	O	O
been	O	O
playing	O	O
around	O	O
with	O	O
REGEXP_REPLACE	B-Code_Block	B-Function
and	O	O
SUBSTR	B-Code_Block	B-Function
and	O	O
I	O	O
can	O	O
select	O	O
the	O	O
second	O	O
object	O	O
but	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
select	O	O
everything	O	O
after	O	O
the	O	O
second	O	O
object	O	O
.	O	O

I	O	O
know	O	O
I	O	O
need	O	O
to	O	O
add	O	O
a	O	O
*	O	B-Value
somewhere	O	O
I	O	O
think	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
get	O	O
the	O	O
syntax	O	O
correct	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

The	O	O
above	O	O
query	O	O
returns	O	O
the	O	O
second	O	O
object	O	O
'	O	B-Value
Am	O	I-Value
in	O	I-Value
'	O	B-Value
but	O	O
I	O	O
want	O	O
this	O	O
returned	O	O
'	O	B-Value
Need	O	I-Value
of	O	I-Value
Help	O	I-Value
-	O	I-Value
Please	O	I-Value
'	O	B-Value
.	O	O

It	O	O
is	O	O
also	O	O
important	O	O
to	O	O
note	O	O
that	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
the	O	O
-	B-Code_Block	B-Value
character	O	B-Data_Type
directly	O	O
following	O	O
the	O	O
second	O	O
object	O	O
in	O	O
the	O	O
result	O	O
either	O	O
but	O	O
I	O	O
want	O	O
to	O	O
start	O	O
with	O	O
the	O	O
third	O	O
object	O	O
.	O	O

Since	O	O
[	B-Code_Block	B-Value
^-	I-Code_Block	I-Value
]	I-Code_Block	I-Value
will	O	O
only	O	O
match	O	O
non-hyphen	O	O
characters	O	B-Data_Type
,	O	O
your	O	O
match	O	O
group	O	O
will	O	O
start	O	O
after	O	O
the	O	O
first	O	O
hyphen	O	B-Value
and	O	O
then	O	O
stop	O	O
before	O	O
the	O	O
next	O	O
one	O	O
.	O	O

To	O	O
capture	O	O
everything	O	O
following	O	O
the	O	O
first	O	O
hyphen	O	B-Value
,	O	O
try	O	O
:	O	O

I	O	O
have	O	O
an	O	O
array	O	B-Data_Structure
like	O	O
this	O	O
(	O	O
PHP	O	B-Language
Code	O	O
)	O	O
:	O	O

I	O	O
want	O	O
just	O	O
get	O	O
values	O	O
specific	O	O
range	O	O
of	O	O
index	O	O
and	O	O
replace	O	O
previous	O	O
arrays	O	B-Data_Structure
values	O	O
with	O	O
these	O	O
new	O	O
values.Something	O	O
like	O	O
this	O	O
:	O	O

I	O	O
want	O	O
get	O	O
this	O	O
result	O	O
:	O	O

How	O	O
should	O	O
I	O	O
do	O	O
this	O	O
?	O	O

Update	O	O
:	O	O

I	O	O
just	O	O
want	O	O
to	O	O
separate	O	O
the	O	O
values	O	O
of	O	O
the	O	O
array($my_arr)	O	B-Data_Structure
that	O	O
are	O	O
within	O	O
the	O	O
range	O	O
of	O	O
the	O	O
specified	O	O
number	O	O
of	O	O
indexes	O	O
and	O	O
everywhere	O	O
in	O	O
the	O	O
array	O	B-Data_Structure
and	O	O
replace	O	O
all	O	O
previous	O	O
array($my_arr)	O	B-Data_Structure
values	O	O
with	O	O
these	O	O
new	O	O
values	O	O
.	O	O

**	O	O

If	O	O
there	O	O
were	O	O
not	O	O
some	O	O
of	O	O
the	O	O
indexes	O	O
,	O	O
Other	O	O
indexes	O	O
outside	O	O
of	O	O
the	O	O
specified	O	O
range	O	O
for	O	O
index	O	O
numbers	O	O
should	O	O
not	O	O
be	O	O
replaced	O	O
and	O	O
only	O	O
return	O	O
values	O	O
of	O	O
indexes	O	O
between	O	O
0	O	B-Value
and	O	O
4($my_arr[0]....$my_arr[4])	O	B-Value
,	O	O
and	O	O
if	O	O
they	O	O
do	O	O
n't	O	O
have	O	O
value	O	O
leave	O	O
empty	O	O
or	O	O
do	O	O
not	O	O
return	O	O
something	O	O
else	O	O

I	O	O
found	O	O
a	O	O
simple	O	O
solution	O	O
after	O	O
several	O	O
tests	O	O
:	O	O

array_slice	O	B-Function

Since	O	O
your	O	O
array	O	B-Data_Structure
contains	O	O
mixed	O	O
keys	O	O
,	O	O
you	O	O
should	O	O
first	O	O
sort	O	O
it	O	O
so	O	O
the	O	O
numeric	O	O
keys	O	O
would	O	O
appear	O	O
first	O	O
.	O	O

According	O	O
to	O	O
your	O	O
code	O	O
:	O	O

Output	O	O
:	O	O

Manual	O	O
array_slice	O	B-Function

Manual	O	O
ksort	O	B-Function

assume	O	O
I	O	O
have	O	O
a	O	O
dataset	O	B-Data_Structure
:	O	O

And	O	O
I	O	O
want	O	O
sql	O	B-Language
to	O	O
generate	O	O
the	O	O
following	O	O
datasource	O	O
based	O	O
on	O	O
the	O	O
dateStart	O	B-Variable
and	O	O
the	O	O
dateEnd	O	B-Variable
.	O	O

Note	O	O
the	O	O
year	O	O
and	O	O
month	O	O
grouping	O	O
.	O	O

I	O	O
'm	O	O
having	O	O
a	O	O
hard	O	O
time	O	O
wrapping	O	O
my	O	O
head	O	O
around	O	O
this	O	O
one	O	O
.	O	O

Any	O	O
ideas	O	O
?	O	O

First	O	O
,	O	O
create	O	O
a	O	O
tabled-valued	O	O
function	O	O
that	O	O
takes	O	O
the	O	O
2	O	O
dates	O	O
and	O	O
returns	O	O
the	O	O
year	O	O
and	O	O
month	O	O
as	O	O
a	O	O
table	O	B-Data_Structure
:	O	O

As	O	O
an	O	O
example	O	O
the	O	O
following	O	O
:	O	O

returns	O	O
:	O	O

Then	O	O
you	O	O
would	O	O
join	O	O
to	O	O
it	O	O
like	O	O
this	O	O
to	O	O
get	O	O
what	O	O
you	O	O
wanted	O	O
:	O	O

I	O	O
find	O	O
it	O	O
easiest	O	O
to	O	O
approach	O	O
these	O	O
problems	O	O
by	O	O
creating	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
integers	O	B-Data_Type
and	O	O
then	O	O
using	O	O
that	O	O
to	O	O
increment	O	O
the	O	O
dates	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
:	O	O

A	O	O
ScalaTest	O	B-Application
suite	O	O
is	O	O
using	O	O

What	O	O
is	O	O
the	O	O
sbt	O	B-Application
command	O	O
line	O	O
to	O	O
achieve	O	O
this	O	O
setting	O	O
?	O	O

I	O	O
have	O	O
tried	O	O

Also	O	O
:	O	O

Finally	O	O
:	O	O

When	O	O
using	O	O
any	O	O
of	O	O
those	O	O
attempts	O	O
the	O	O
System.getProperty	O	B-Function
comes	O	O
up	O	O
blank	O	O
.	O	O

An	O	O
approach	O	O
that	O	O
does	O	O
work	O	O
is	O	O
running	O	O
the	O	O
ScalaTest	O	B-Application
from	O	O
within	O	O
Intellij	O	B-Application
and	O	O
setting	O	O
the	O	O
JVM	O	B-Application
parameters	O	O
to	O	O
-Dmy.command-line.property	O	B-Code_Block
=	O	I-Code_Block
foo	O	I-Code_Block
within	O	O
the	O	O
Run	O	O
Configuration	O	O
.	O	O

This	O	O
worked	O	O
for	O	O
me	O	O
:	O	O

and	O	O
:	O	O

Your	O	O
third	O	O
way	O	O
almost	O	O
works	O	O
(	O	O
if	O	O
fork	B-Code_Block	B-Code_Block
in	I-Code_Block	I-Code_Block
Test	I-Code_Block	I-Code_Block
:=	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
is	O	O
set	O	O
)	O	O
.	O	O

But	O	O
you	O	O
have	O	O
to	O	O
change	O	O
into	O	O
the	O	O
project	O	O
first	O	O
:	O	O

I	O	O
have	O	O
created	O	O
a	O	O
Dynamic	O	O
Url	O	O
with	O	O
optional	O	O
parameter	O	O

e.g	O	O
.	O	O
,	O	O
If	O	O
my	O	O
url	O	O
is	O	O
as	O	O
www.example.com/getTest/1/	O	O

Now	O	O
this	O	O
1	B-Code_Block	O
in	O	O
url	O	O
is	O	O
optional	O	O
,	O	O
to	O	O
handle	O	O
this	O	O
in	O	O
views	O	O
I	O	O
have	O	O
used	O	O
None	O	B-Variable
like	O	O

Thus	O	O
if	O	O
there	O	O
is	O	O
no	O	O
id	O	O
in	O	O
URL	O	O
then	O	O
still	O	O
the	O	O
function	O	O
works	O	O
for	O	O
me	O	O
.	O	O

But	O	O
I	O	O
am	O	O
facing	O	O
issue	O	O
while	O	O
testing	O	O
this	O	O
in	O	O
unit	O	O
cases	O	O
.	O	O

if	O	O
I	O	O
use	O	O
url	O	O
as	O	O
url	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
reverse	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
'yescourse:academypage_url'	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
args	I-Code_Block	I-Code_Block
=[	I-Code_Block	I-Code_Block
None]	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
it	O	O
gives	O	O
me	O	O
the	O	O
error	O	O

NoReverseMatch	B-Code_Block	B-Error_Name
:	I-Code_Block	O
Reverse	I-Code_Block	B-Output_Block
for	I-Code_Block	I-Output_Block
'	I-Code_Block	I-Output_Block
academypage_url	I-Code_Block	I-Output_Block
'	B-Code_Block	B-Output_Block
with	I-Code_Block	I-Output_Block
arguments	I-Code_Block	I-Output_Block
'	I-Code_Block	I-Output_Block
(	B-Code_Block	B-Output_Block
'	B-Code_Block	B-Output_Block
new	I-Code_Block	I-Output_Block
'	B-Code_Block	B-Output_Block
,	I-Code_Block	I-Output_Block
None	I-Code_Block	I-Output_Block
)	I-Code_Block	I-Output_Block
'	B-Code_Block	B-Output_Block
and	I-Code_Block	I-Output_Block
keyword	I-Code_Block	I-Output_Block
arguments	I-Code_Block	I-Output_Block
'{}'	I-Code_Block	I-Output_Block
not	I-Code_Block	I-Output_Block
found	I-Code_Block	I-Output_Block
.	I-Code_Block	I-Output_Block

So	O	O
Please	O	O
Tell	O	O
me	O	O
how	O	O
I	O	O
can	O	O
handle	O	O
these	O	O
optional	O	O
url	O	O
in	O	O
Test	O	O
cases	O	O
or	O	O
in	O	O
Reverse	O	B-Class
.	O	O

Edit	O	O
:	O	O

You	O	O
made	O	O
the	O	O
view	O	O
function	O	O
's	O	O
id	B-Code_Block	B-Variable
parameter	O	O
optional	O	O
,	O	O
but	O	O
it	O	O
's	O	O
not	O	O
optional	O	O
in	O	O
the	O	O
url	O	O
pattern	O	O
.	O	O

You	O	O
firsty	O	O
need	O	O
to	O	O
rewrite	O	O
your	O	O
pattern	O	O
as	O	O
:	O	O

=>	O	O
the	O	O
whole	O	O
'	O	O
id	O	B-Variable
'	O	O
sub-pattern	O	O
is	O	O
optional	O	O
,	O	O
but	O	O
if	O	O
it	O	O
's	O	O
not	O	O
it	O	O
must	O	O
match	O	O
one	O	O
or	O	O
more	O	O
numerics	O	O
.	O	O

Once	O	O
done	O	O
,	O	O
you	O	O
can	O	O
reverse	O	O
the	O	O
url	O	O
by	O	O
not	O	O
passing	O	O
any	O	O
of	O	O
the	O	O
args	B-Code_Block	B-Variable
nor	O	O
kwargs	B-Code_Block	B-Variable
arguments	O	O
:	O	O

or	O	O
by	O	O
passing	O	O
an	O	O
empty	O	O
list	O	B-Data_Structure

or	O	O
by	O	O
passing	O	O
None	B-Code_Block	B-Value

but	O	O
not	O	O
by	O	O
passing	O	O
a	O	O
list	O	B-Data_Structure
containing	O	O
None	B-Code_Block	B-Value
.	O	O

I	O	O
have	O	O
a	O	O
controller	O	O
"	O	O
front	O	O
"	O	O
and	O	O
I	O	O
want	O	O
only	O	O
for	O	O
this	O	O
controller	O	O
to	O	O
use	O	O
a	O	O
custom	O	O
error	O	O
action	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
this	O	O
?	O	O

I	O	O
tried	O	O
this	O	O
but	O	O
it	O	O
does	O	O
not	O	O
seems	O	O
to	O	O
work	O	O

I	O	O
found	O	O
this	O	O
solution	O	O
to	O	O
catch	O	O
the	O	O
Exception	O	B-Class

All	O	O
http	O	O
security	O	O
is	O	O
applied	O	O
at	O	O
startup	O	O
:	O	O

During	O	O
runtime	O	O
,	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
add	O	O
more	O	O
to	O	O
it	O	O
..	O	O
.	O	O

When	O	O
that	O	O
line	O	O
is	O	O
executed	O	O
,	O	O
it	O	O
adds	O	O
it	O	O
to	O	O
http.authorizeRequests()'s	O	B-Function
but	O	O
/bla	O	O
is	O	O
still	O	O
accessible	O	O
by	O	O
"	O	O
non	O	O
admins	O	O
"	O	O

When	O	O
server	O	B-Application
is	O	O
restarted	O	O
,	O	O
this	O	O
change	O	O
takes	O	O
effect	O	O
because	O	O
it	O	O
is	O	O
loading	O	O
bla	O	O
from	O	O
the	O	O
database	O	O
.	O	O

How	O	O
do	O	O
I	O	O
make	O	O
the	O	O
security	O	O
take	O	O
effect	O	O
instantly	O	O
without	O	O
restarting	O	O
the	O	O
server	O	B-Application
?	O	O

You	O	O
are	O	O
trying	O	O
to	O	O
dynamicaly	O	O
change	O	O
a	O	O
spring	O	B-Library
bean	O	O
at	O	O
runtime	O	O
which	O	O
is	O	O
very	O	O
hard	O	O
to	O	O
do	O	O
unless	O	O
you	O	O
use	O	O
tools	O	O
like	O	O
spring-loaded	O	B-Library
or	O	O
JRebel	O	B-Library
.	O	O

There	O	O
is	O	O
a	O	O
lot	O	O
of	O	O
SO	O	B-Website
about	O	O
it	O	O
:	O	O

Update	O	O
spring	O	B-Library
beans	O	B-Class
dynamically	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
?	O	O

dynamically	O	O
change	O	O
spring	O	B-Library
beans	O	B-Class

Can	O	O
I	O	O
replace	O	O
a	O	O
Spring	O	B-Library
bean	O	B-Class
definition	O	O
at	O	O
runtime	O	O
?	O	O

The	O	O
best	O	O
approach	O	O
(	O	O
in	O	O
my	O	O
opinion	O	O
)	O	O
for	O	O
your	O	O
use	O	O
case	O	O
is	O	O
to	O	O
use	O	O
spring	O	B-Library
profiles	O	B-Class
.	O	O

Define	O	O
a	O	O
bean	O	B-Class
with	O	O
authorisations	O	O
for	O	O
/bla	O	O
and	O	O
another	O	B-Class
bean	O	O
without	O	O
.	O	O

Then	O	O
use	O	O
them	O	O
in	O	O
different	O	O
profiles	O	O
.	O	O

see	O	O
dynamically	O	O
declare	O	O
beans	O	B-Class
at	O	O
runtime	O	O
in	O	O
Spring	O	B-Library

I	O	O
'm	O	O
looking	O	O
for	O	O
a	O	O
Sphinx	O	B-Application
charset_table	B-Code_Block	B-Data_Structure
that	O	O
is	O	O
suitable	O	O
for	O	O
natural	O	O
language	O	O
"	O	O
almost	O	O
all	O	O
"	O	O
languages	O	O
.	O	O

I	O	O
understand	O	O
that	O	O
"	O	O
almost	O	O
all	O	O
"	O	O
is	O	O
quite	O	O
a	O	O
vague	O	O
definition	O	O
.	O	O

So	O	O
the	O	O
requirement	O	O
can	O	O
be	O	O
restated	O	O
in	O	O
such	O	O
a	O	O
way	O	O
that	O	O
the	O	O
charset_table	B-Code_Block	B-Data_Structure
must	O	O
be	O	O
suitable	O	O
to	O	O
at	O	O
least	O	O
the	O	O
following	O	O
language	O	O
codes	O	O
:	O	O

Given	O	O
those	O	O
requirements	O	O
what	O	O
would	O	O
be	O	O
a	O	O
suitable	O	O
charset_table	B-Code_Block	B-Data_Structure
?	O	O

If	O	O
one	O	O
of	O	O
MySQL	O	B-Application
's	O	O
collations	O	O
,	O	O
for	O	O
example	O	O
utf8_general_ci	O	B-Value
,	O	O
would	O	O
be	O	O
suitable	O	O
(	O	O
even	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
use	O	O
MySQL	O	B-Application
)	O	O
or	O	O
would	O	O
be	O	O
a	O	O
decent	O	O
starting	O	O
point	O	O
that	O	O
you	O	O
can	O	O
adapt	O	O
then	O	O
you	O	O
might	O	O
find	O	O
this	O	O
useful	O	O
:	O	O
http://thefsb.wordpress.com/2010/12/	O	O

The	O	O
docs	O	O
says	O	O
that	O	O
new	B-Code_Block	B-Code_Block
"	O	O
creates	O	O
a	O	O
mutable	O	B-Data_Type
vector	O	B-Data_Structure
of	O	O
the	O	O
given	O	O
length	O	O
"	O	O
and	O	O
unsafeNew	B-Code_Block	B-Code_Block
"	O	O
creates	O	O
a	O	O
mutable	O	B-Data_Type
vector	O	B-Data_Structure
of	O	O
the	O	O
given	O	O
length	O	O
.	O	O

The	O	O
length	O	O
is	O	O
not	O	O
checked	O	O
.	O	O
"	O	O

However	O	O
this	O	O
resolved	O	O
github	O	B-Website
issue	O	O
indicates	O	O
that	O	O
unsafeNew	B-Code_Block	B-Code_Block
does	O	O
not	O	O
zero	O	O
the	O	O
memory	O	O
while	O	O
new	B-Code_Block	B-Code_Block
does	O	O
.	O	O

Which	O	O
one	O	O
is	O	O
it	O	O
?	O	O

No	O	O
,	O	O
not	O	O
in	O	O
general	O	O
.	O	O

If	O	O
you	O	O
click	O	O
through	O	O
the	O	O
source	O	O
this	O	O
is	O	O
pretty	O	O
clear	O	O
:	O	O

https://hackage.haskell.org/package/vector-0.11.0.0/docs/src/Data-Vector-Generic-Mutable.html#new	O	O

new	B-Code_Block	B-Code_Block
is	O	O
unsafeNew	B-Code_Block	B-Code_Block
with	O	O
the	O	O
addition	O	O
of	O	O
basicInitialize	B-Code_Block	B-Code_Block
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
use	O	O
the	O	O
Jquery	O	B-Library
plugin	O	O
Supersized	O	B-Application
and	O	O
i	O	O
cant	O	O
.	O	O

I	O	O
am	O	O
working	O	O
with	O	O
Magento	O	B-Application
.	O	O

i	O	O
have	O	O
sustitute	O	O
all	O	O
the	O	O
$	O	O
by	O	O
jQuery	O	B-Library
inside	O	O
the	O	O
supersized	O	B-Application
library	O	O
.	O	O

And	O	O
i	O	O
have	O	O
added	O	O
this	O	O
:	O	O
jQuery.noConflict()	O	B-Function
;	O	I-Function
just	O	O
before	O	O
the	O	O
start	O	O
of	O	O
the	O	O
function	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
,	O	O
i	O	O
copy	O	O
the	O	O
script	O	O
and	O	O
the	O	O
html	O	B-Language
.	O	O

I	O	O
dont	O	O
know	O	O
why	O	O
it	O	O
doesnt	O	O
work	O	O
,	O	O
can	O	O
anyone	O	O
help	O	O
me	O	O
?	O	O

Try	O	O
:	O	O

No	O	O
need	O	O
to	O	O
include	O	O
both	O	O
:	O	O

they	O	O
are	O	O
the	O	O
same	O	O
thing	O	O

Note	O	O

I	O	O
do	O	O
n't	O	O
see	O	O
any	O	O
function	O	O
named	O	O
supersized()	B-Code_Block	B-Function
so	O	O
how	O	O
it	O	O
will	O	O
work	O	O
?	O	O

your	O	O
process	O	O
is	O	O
wrong	O	O
.	O	O

Read	O	O
about	O	O
jQuery	O	B-Library
plugin	O	O
making	O	O
process	O	O
.	O	O

You	O	O
used	O	O

and	O	O

both	O	O
use	O	O
any	O	O
one	O	O
because	O	O
the	O	O
are	O	O
same	O	O
and	O	O
be	O	O
sure	O	O
that	O	O
:	O	O

you	O	O
added	O	O
jQuery	O	B-Library
library	O	O
first	O	O

Full	O	O
code	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
get	O	O
a	O	O
‌	B-Code_Block	B-Code_Block
with	I-Code_Block	I-Code_Block
innerHTML	I-Code_Block	I-Code_Block

The	O	O
output	O	O
should	O	O
be	O	O

But	O	O
the	O	O
output	O	O
is	O	O
:	O	O

How	O	O
can	O	O
I	O	O
get	O	O
the	O	O
‌	B-Code_Block	B-Code_Block
?	I-Code_Block	I-Code_Block

alert(document.getElementsByTagName('div')[0].innerHTML)	B-Code_Block	B-Function

<div>This	B-Code_Block	B-Code_Block
div	I-Code_Block	I-Code_Block
contains	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
zero-width&zwnj;non-joiner,	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
non-breaking&nbsp;space	I-Code_Block	I-Code_Block
&amp;	I-Code_Block	I-Code_Block
an	I-Code_Block	I-Code_Block
ampersand</div>	I-Code_Block	I-Code_Block

Fiddle	O	B-Application
:	O	O
https://jsfiddle.net/yst1Lanv/	O	O

You	O	O
can	O	O
search	O	O
for	O	O
it	O	O
using	O	O
its	O	O
unicode	O	O
\u200c	B-Code_Block	B-Value
.	O	O

Then	O	O
replace	O	O
it	O	O
with	O	O
‌	B-Code_Block	B-Value
string	I-Code_Block	I-Value
.	O	B-Data_Type

alert	B-Code_Block	B-Function
(	I-Code_Block	I-Function
document.getElementsByTagName	B-Code_Block	B-Function
('div')[0]	I-Code_Block	I-Function
.innerHTML.replace	I-Code_Block	I-Function
(	I-Code_Block	I-Function
/	I-Code_Block	I-Function
\u200c/g	I-Code_Block	I-Function
,	I-Code_Block	I-Function
'	I-Code_Block	I-Function
‌'	I-Code_Block	I-Function
)	I-Code_Block	I-Function
)	B-Code_Block	B-Function

<div>This	B-Code_Block	B-Code_Block
div	I-Code_Block	I-Code_Block
contains	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
zero-width&zwnj;non-joiner,	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
non-breaking&nbsp;space	I-Code_Block	I-Code_Block
&amp;	I-Code_Block	I-Code_Block
an	I-Code_Block	I-Code_Block
ampersand</div>	I-Code_Block	I-Code_Block

Your	O	O
character	O	B-Data_Type
is	O	O
in	O	O
the	O	O
extracted	O	O
(	O	O
innerHTML	B-Code_Block	B-Variable
)	O	O
text	O	O
,	O	O
just	O	O
not	O	O
encoded	O	O
as	O	O
its	O	O
HTML	O	B-Language
entity	O	O
.	O	O

If	O	O
you	O	O
want	O	O
you	O	O
can	O	O
replace	O	O
the	O	O
character	O	B-Data_Type
with	O	O
its	O	O
entity	O	O
:	O	O

alert	B-Code_Block	B-Function
(	I-Code_Block	I-Function
document.getElementsByTagName	B-Code_Block	B-Function
('div')[0]	I-Code_Block	I-Function
.innerHTML.replace	I-Code_Block	I-Function
(/‌/	I-Code_Block	I-Function
g	I-Code_Block	I-Function
,	I-Code_Block	I-Function
'	I-Code_Block	I-Function
‌'	I-Code_Block	I-Function
)	I-Code_Block	I-Function
)	B-Code_Block	B-Function
;	B-Code_Block	B-Function

<div>This	B-Code_Block	B-Code_Block
div	I-Code_Block	I-Code_Block
contains	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
zero-width&zwnj;non-joiner,	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
non-breaking&nbsp;space	I-Code_Block	I-Code_Block
&amp;	I-Code_Block	I-Code_Block
an	I-Code_Block	I-Code_Block
ampersand</div>	I-Code_Block	I-Code_Block

Yong	O	B-User_Name
Quan	O	I-User_Name
posted	O	O
some	O	O
nicer	O	O
code	O	O
than	O	O
me	O	O
,	O	O
if	O	O
you	O	O
want	O	O
your	O	O
app	O	O
to	O	O
be	O	O
more	O	O
maintainable	O	O
use	O	O
the	O	O
unicode	O	O
.	O	O

My	O	O
regex	O	O
above	O	O
is	O	O
pretty	O	O
confusing	O	O
,	O	O
this	O	O
is	O	O
easier	O	O
to	O	O
read	O	O
:	O	O

I	O	O
have	O	O
a	O	O
case	O	O
where	O	O
I	O	O
need	O	O
to	O	O
collect	O	O
sales	O	O
statistics	O	O
from	O	O
a	O	O
table	O	B-Data_Structure
with	O	O
lots	O	O
of	O	O
aggregated	O	O
data	O	O
.	O	O

The	O	O
table	O	O
has	O	O
a	O	O
few	O	O
million	O	O
entries	O	O
,	O	O
and	O	O
the	O	O
database	O	O
itself	O	O
is	O	O
around	O	O
22Gb	O	O
.	O	O

Plenty	O	O
of	O	O
data	O	O
to	O	O
play	O	O
with	O	O
!	O	O

I	O	O
have	O	O
this	O	O
working	O	O
query	O	O
,	O	O
but	O	O
I	O	O
feel	O	O
I	O	O
should	O	O
do	O	O
this	O	O
better	O	O
-	O	O
and	O	O
it	O	O
is	O	O
also	O	O
very	O	O
slow	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
PHP	O	B-Language
with	O	O
sqlsrv	O	B-Library
extension	O	O
on	O	O
CentOS	O	B-Application
7	O	B-Version
to	O	O
connect	O	O
to	O	O
a	O	O
MSSQL	O	B-Application
database	O	O
(	O	O
ERP	O	O
system	O	O
)	O	O
.	O	O

My	O	O
php	O	B-Language
variables	O	O
in	O	O
this	O	O
query	O	O
is	O	O
set	O	O
up	O	O
like	O	O
this	O	O
:	O	O

So	O	O
,	O	O
as	O	O
you	O	O
may	O	O
have	O	O
guessed	O	O
already	O	O
,	O	O
I	O	O
'm	O	O
collecting	O	O
sales	O	O
statistics	O	O
for	O	O
a	O	O
given	O	O
customer	O	O
for	O	O
each	O	O
month	O	O
of	O	O
the	O	O
year	O	B-Variable
2016	O	B-Value
and	O	O
2015	O	B-Value
.	O	O

Note	O	O
that	O	O
the	O	O
query	O	O
works	O	O
well	O	O
,	O	O
giving	O	O
me	O	O
the	O	O
result	O	O
i	O	O
expect	O	O
-	O	O
but	O	O
it	O	O
is	O	O
too	O	O
slow	O	O
on	O	O
customers	O	O
with	O	O
many	O	O
orders/transactions	O	O
.	O	O

Any	O	O
pointers	O	O
on	O	O
how	O	O
to	O	O
speed	O	O
this	O	O
up	O	O
?	O	O

Thank	O	O
you	O	O
very	O	O
much	O	O
for	O	O
your	O	O
time	O	O
!	O	O

Your	O	O
query	O	O
should	O	O
be	O	O
using	O	O
conditional	O	O
aggregation	O	O
:	O	O

Subqueries	O	O
should	O	O
not	O	O
be	O	O
necessary	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
WebApi	O	B-Library
action	O	O
that	O	O
deletes	O	O
an	O	O
order	O	O
from	O	O
the	O	O
back-end	O	O
database	O	O
,	O	O
only	O	O
for	O	O
users	O	B-Variable
that	O	O
are	O	O
in	O	O
the	O	O
Admin	B-Code_Block	B-Variable
and	O	O
Order	B-Code_Block	B-Variable
roles	O	O
.	O	O

However	O	O
,	O	O
if	O	O
the	O	O
user	O	B-Variable
is	O	O
also	O	O
in	O	O
the	O	O
Readonly	B-Code_Block	B-Variable
role	O	O
the	O	O
action	O	O
returns	O	O
a	O	O
HTTP	B-Code_Block	B-Error_Name
403	I-Code_Block	I-Error_Name
Forbidden	I-Code_Block	I-Error_Name
response	O	O
.	O	O

What	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
know	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
prevent	O	O
actions	O	O
from	O	O
being	O	O
executed	O	O
if	O	O
users	O	O
are	O	O
in	O	O
specific	O	O
roles	O	O
so	O	O
that	O	O
I	O	O
do	O	O
not	O	O
have	O	O
to	O	O
put	O	O
if(User.IsInRole("Readonly"))	B-Code_Block	B-Code_Block
{	I-Code_Block	I-Code_Block
return	I-Code_Block	I-Code_Block
Forbidden()	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
at	O	O
the	O	O
start	O	O
of	O	O
all	O	O
database	O	O
update-able	O	O
action	O	O
methods	O	O
,	O	O
e.g	O	O
.	O	O

The	O	O
NotAuthorized	B-Code_Block	B-Variable
action	O	O
filter	O	O
will	O	O
return	O	O
a	O	O
HTTP	B-Code_Block	B-Error_Name
403	I-Code_Block	I-Error_Name
Forbidden	I-Code_Block	I-Error_Name
response	O	O
if	O	O
the	O	O
user	O	O
is	O	O
in	O	O
the	O	O
Readonly	B-Code_Block	B-Variable
role	O	O
.	O	O

Is	O	O
this	O	O
possible	O	O
?	O	O

This	O	O
is	O	O
the	O	O
code	O	O
to	O	O
implement	O	O
a	O	O
reverse	O	O
of	O	O
the	O	O
[	B-Code_Block	B-Variable
Authorize()	I-Code_Block	I-Variable
]	I-Code_Block	I-Variable
attribute	O	O
and	O	O
forbid	O	O
users	O	O
from	O	O
executing	O	O
MVC	O	B-Algorithm
WebApi	O	B-Library
actions	O	O
if	O	O
they	O	O
are	O	O
a	O	O
member	O	O
of	O	O
one	O	O
or	O	O
more	O	O
roles	O	O
.	O	O

To	O	O
use	O	O
this	O	O
filter	O	O
attribute	O	O
simply	O	O
decorate	O	O
any	O	O
actions	O	O
that	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
users	O	O
to	O	O
execute	O	O
if	O	O
they	O	O
're	O	O
a	O	O
member	O	O
of	O	O
a	O	O
restricted	O	O
role	O	O
,	O	O
e.g	O	O
.	O	O

if	O	O
the	O	O
user	O	O
is	O	O
part	O	O
of	O	O
a	O	O
read-only	O	O
role	O	O
they	O	O
not	O	O
permitted	O	O
to	O	O
update	O	O
the	O	O
database	O	O
:	O	O

I	O	O
have	O	O
a	O	O
problem	O	O
saving	O	O
a	O	O
one	O	O
to	O	O
many	O	O
self-reference	O	O
relationship	O	O
,	O	O
both	O	O
parent	O	O
and	O	O
children	O	O
are	O	O
saved	O	O
properly	O	O
on	O	O
the	O	O
database	O	O
,	O	O
but	O	O
Im	O	O
getting	O	O
parent_id	O	B-Variable
null	O	B-Value
for	O	O
the	O	O
children	O	O
.	O	O

I	O	O
folloed	O	O
the	O	O
doctrine	O	B-Library
example	O	O
..	O	O
.	O	O
but	O	O
no	O	O
idea	O	O

}	O	B-Code_Block

and	O	O
my	O	O
controller	O	O
here	O	O
:	O	O

I	O	O
really	O	O
dont	O	O
know	O	O
what	O	O
im	O	O
doing	O	O
wrong	O	O

You	O	O
need	O	O
to	O	O
persist	O	O
ALL	O	O
of	O	O
your	O	O
entities	O	O
.	O	O

And	O	O
after	O	O
running	O	O
(	O	O
assuming	O	O
you	O	O
use	O	O
doctrine	O	B-Library
)	O	O

Your	O	O
will	O	O
have	O	O
a	O	O
function	O	O
named	O	O
"	O	O
Category->addChildren	O	B-Function
"	O	O
which	O	O
should	O	O
be	O	O
used	O	O
to	O	O
add	O	O
children	O	O
to	O	O
an	O	O
existing	O	O
category	O	O
entity	O	O
.	O	O

Try	O	O
this	O	O
:	O	O

Have	O	O
you	O	O
tried	O	O
out	O	O
Doctrine	O	B-Application
Extensions	O	I-Application
,	O	O
particularly	O	O
the	O	O
tree	O	B-Data_Structure
extension	O	O
?	O	O

It	O	O
makes	O	O
work	O	O
like	O	O
this	O	O
extremely	O	O
easy	O	O
.	O	O

I	O	O
have	O	O
been	O	O
working	O	O
on	O	O
a	O	O
simple	O	O
LWJGL	O	B-Library
practice	O	O
project	O	O
for	O	O
a	O	O
bit	O	O
and	O	O
just	O	O
recently	O	O
stumbled	O	O
into	O	O
a	O	O
new	O	O
issue	O	O
.	O	O

Now	O	O
with	O	O
every	O	O
project	O	O
i	O	O
due	O	O
i	O	O
save	O	O
working	O	O
backups	O	O
in	O	O
multiple	O	O
places	O	O
.	O	O

I	O	O
was	O	O
running	O	O
a	O	O
Windows	O	B-Operating_System
8.1	O	B-Version
OS	O	O
and	O	O
recently	O	O
upgraded	O	O
to	O	O
Windows	O	B-Operating_System
10	O	B-Version
and	O	O
suddenly	O	O
all	O	O
of	O	O
my	O	O
backups	O	O
and	O	O
current	O	O
program	O	O
have	O	O
the	O	O
rendering	O	O
error	O	O
as	O	O
seen	O	O
below	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
to	O	O
run	O	O
my	O	O
program	O	O
on	O	O
a	O	O
windows	O	B-Operating_System
8.1	O	B-Version
OS	O	O
and	O	O
it	O	O
works	O	O
fine	O	O
there	O	O
.	O	O

Is	O	O
there	O	O
some	O	O
new	O	O
windows	O	B-Operating_System
driver	O	B-Application
update	O	O
that	O	O
could	O	O
be	O	O
causing	O	O
this	O	O
rendering	O	O
issue	O	O
?	O	O

Or	O	O
is	O	O
there	O	O
some	O	O
incompatibility	O	O
with	O	O
windows	O	B-Operating_System
10	O	B-Version
and	O	O
LWJGL	O	B-Library
i	O	O
hav	O	O
n't	O	O
been	O	O
able	O	O
to	O	O
find	O	O
out	O	O
about	O	O
?	O	O

Try	O	O
this	O	O
:	O	O

before	O	O
you	O	O
render	O	O
any	O	O
objects	O	O
into	O	O
your	O	O
world	O	O
,	O	O
make	O	O
sure	O	O
you	O	O
are	O	O
using	O	O
the	O	O
inbuilt	O	O
depth	O	O
testing	O	O
,	O	O
this	O	O
can	O	O
be	O	O
done	O	O
by	O	O
using	O	O
this	O	O
line	O	O
of	O	O
code	O	O
:	O	O

GL11.glEnable(GL11.GL_DEPTH_TEST)	O	B-Code_Block
;	O	I-Code_Block

This	O	O
should	O	O
work	O	O
for	O	O
you	O	O
,	O	O
as	O	O
it	O	O
is	O	O
forgotten	O	O
in	O	O
most	O	O
cases	O	O
that	O	O
this	O	O
happens	O	O
!	O	O

-Kore	O	B-User_Name

EDIT	O	O
:	O	O

Also	O	O
dont	O	O
forget	O	O
to	O	O
clear	O	O
the	O	O
buffer	O	B-Data_Structure
aswell	O	O
!	O	O
!	O	O

GL11	O	B-Code_Block
.	O	I-Code_Block
glClear(GL11	O	I-Code_Block
.	O	I-Code_Block
GL_COLOR_BUFFER_BIT|GL11	O	I-Code_Block
.	O	I-Code_Block
GL_DEPTH_BUFFER_BIT	O	I-Code_Block
);	O	I-Code_Block

Firstly	O	O
,	O	O
I	O	O
know	O	O
LocationManager	O	B-Class
does	O	O
n't	O	O
have	O	O
to	O	O
be	O	O
called	O	O
in	O	O
an	O	O
AsyncTask	O	B-Class
as	O	O
it	O	O
's	O	O
already	O	O
non	O	O
UI	O	O
blocking	O	O
:)	O	O

I	O	O
have	O	O
an	O	O
activity	O	O
which	O	O

1	O	O
.	O	O
Gets	O	O
the	O	O
users	O	O
current	O	O
location	O	O

2	O	O
.	O	O
Calls	O	O
a	O	O
webservice	O	O
to	O	O
retrieve	O	O
a	O	O
list	O	O
of	O	O
specific	O	O
POIs	O	O
around	O	O
that	O	O
location	O	O
.	O	O

The	O	O
user	O	O
can	O	O
choose	O	O
to	O	O
view	O	O
the	O	O
results	O	O
as	O	O
map	O	B-Data_Structure
or	O	O
list	O	B-Data_Structure
using	O	O
a	O	O
TabActivity	O	B-Class
.	O	O

Bearing	O	O
this	O	O
in	O	O
mind	O	O
the	O	O
AsyncTask	O	B-Class
to	O	O
get	O	O
users	O	O
location	O	O
and	O	O
call	O	O
to	O	O
webservice	O	O
is	O	O
managed	O	O
by	O	O
the	O	O
TabActivity	O	B-Class
view	O	O
rather	O	O
than	O	O
either	O	O
of	O	O
the	O	O
docked	O	O
views	O	O
.	O	O

So	O	O
I	O	O
want	O	O
the	O	O
TabActivity	O	B-Class
to	O	O
start	O	O
an	O	O
AsyncTask	O	B-Class
which	O	O
first	O	O
gets	O	O
the	O	O
users	O	O
location	O	O
,	O	O
then	O	O
calls	O	O
the	O	O
webservice	O	O
.	O	O

A	O	O
progress	O	O
dialog	O	B-User_Interface_Element
prevents	O	O
switching	O	O
views	O	O
using	O	O
the	O	O
tabs	O	B-Keyboard_IP
during	O	O
this	O	O
process	O	O
.	O	O

It	O	O
's	O	O
pretty	O	O
much	O	O
all	O	O
working	O	O
apart	O	O
from	O	O
getting	O	O
the	O	O
users	O	O
location	O	O
from	O	O
the	O	O
AsyncTask	O	B-Class
.	O	O

The	O	O
webservice	O	O
code	O	O
is	O	O
written	O	O
,	O	O
the	O	O
mapping	O	O
and	O	O
overlay	O	O
code	O	O
is	O	O
written	O	O
,	O	O
the	O	O
task	O	O
progress	O	O
dialog	O	B-User_Interface_Element
copes	O	O
with	O	O
orientation	O	O
changes	O	O
.	O	O

The	O	O
focus	O	O
on	O	O
location	O	O
is	O	O
speed	O	O
rather	O	O
than	O	O
accuracy	O	O
.	O	O

If	O	O
the	O	O
user	O	O
chooses	O	O
to	O	O
view	O	O
results	O	O
on	O	O
the	O	O
mapview	O	B-Class
then	O	O
I	O	O
will	O	O
provide	O	O
a	O	O
'	O	O
My	O	O
location	O	O
'	O	O
button	O	B-User_Interface_Element
which	O	O
will	O	O
enable	O	O
a	O	O
more	O	O
accurate	O	O
location	O	O
to	O	O
be	O	O
obtained	O	O
.	O	O

I	O	O
just	O	O
want	O	O
to	O	O
initially	O	O
get	O	O
a	O	O
rough	O	O
location	O	O
and	O	O
return	O	O
the	O	O
search	O	O
results	O	O
quickly	O	O
.	O	O

Maybe	O	O
I	O	O
'm	O	O
going	O	O
about	O	O
this	O	O
the	O	O
wrong	O	O
way	O	O
.	O	O

Maybe	O	O
I	O	O
should	O	O
display	O	O
the	O	O
map	O	B-Data_Structure
view	O	O
,	O	O
let	O	O
the	O	O
map	O	B-Data_Structure
activity	O	O
find	O	O
the	O	O
current	O	O
location	O	O
,	O	O
then	O	O
call	O	O
just	O	O
the	O	O
webservice	O	O
in	O	O
the	O	O
async	O	B-Class
-	O	O
but	O	O
then	O	O
what	O	O
if	O	O
the	O	O
user	O	O
taps	O	O
the	O	O
list	O	O
view	O	O
tab	O	O
during	O	O
the	O	O
location	O	O
phase	O	O
?	O	O

I	O	O
was	O	O
also	O	O
going	O	O
to	O	O
allow	O	O
the	O	O
user	O	O
to	O	O
specify	O	O
their	O	O
default	O	O
view	O	O
-	O	O
some	O	O
people	O	O
may	O	O
prefer	O	O
a	O	O
list	O	O
to	O	O
a	O	O
map	O	O
.	O	O

In	O	O
this	O	O
case	O	O
I	O	O
would	O	O
have	O	O
a	O	O
listview	O	O
which	O	O
had	O	O
to	O	O
retrieve	O	O
the	O	O
location	O	O
.	O	O

Thanks	O	O
for	O	O
any	O	O
advice	O	O

Martin	O	B-User_Name
.	O	O

I	O	O
sussed	O	O
it	O	O
.	O	O

The	O	O
problem	O	O
I	O	O
was	O	O
having	O	O
was	O	O
that	O	O
the	O	O
LocationListener	O	B-Function
was	O	O
not	O	O
being	O	O
called	O	O
in	O	O
the	O	O
AsyncTask	O	B-Class
.	O	O

The	O	O
reason	O	O
for	O	O
this	O	O
was	O	O
that	O	O
although	O	O
I	O	O
'd	O	O
created	O	O
and	O	O
prepared	O	O
a	O	O
lopper	O	O
in	O	O
the	O	O
thread	O	O
I	O	O
had	O	O
n't	O	O
called	O	O
Looper.Loop()	O	B-Function

I	O	O
start	O	O
the	O	O
requestLocationUpdates	O	B-Class
,	O	O
kick	O	O
off	O	O
a	O	O
timer	O	O
.	O	O

Either	O	O
the	O	O
locationmanager	O	B-Class
responds	O	O
with	O	O
a	O	O
location	O	O
,	O	O
or	O	O
the	O	O
timer	O	O
expires	O	O
.	O	O

At	O	O
this	O	O
point	O	O
I	O	O
call	O	O
looper.quit()	O	B-Function
to	O	O
ensure	O	O
things	O	O
return	O	O
to	O	O
normal	O	O
.	O	O

Seems	O	O
to	O	O
be	O	O
working	O	O
.	O	O

You	O	O
also	O	O
have	O	O
to	O	O
remember	O	O
to	O	O
respond	O	O
to	O	O
the	O	O
back	O	O
button	O	B-User_Interface_Element
etc	O	O
,	O	O
cancelling	O	O
the	O	O
timer	O	O
and	O	O
looper	O	O
if	O	O
the	O	O
AsyncTask	O	B-Class
is	O	O
cancelled	O	O
.	O	O

I	O	O
currently	O	O
have	O	O
the	O	O
code	O	O
below	O	O
to	O	O
load	O	O
in	O	O
a	O	O
user	O	O
's	O	O
profile	O	O
picture	O	O
in	O	O
my	O	O
iOS	O	B-Operating_System
app	O	O
.	O	O

However	O	O
,	O	O
this	O	O
is	O	O
a	O	O
rewrite	O	O
by	O	O
me	O	O
to	O	O
load	O	O
it	O	O
from	O	O
an	O	O
url	O	O
.	O	O

The	O	O
old	O	O
code	O	O
had	O	O
this	O	O
UIImageView	B-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
imageView	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
[	B-Code_Block	B-Code_Block
[	B-Code_Block	B-Code_Block
UIImageView	B-Code_Block	B-Code_Block
alloc	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
initWithFrame:CGRectMake(0,40,100,100)	B-Code_Block	B-Code_Block
]	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
so	O	O
that	O	O
the	O	O
image	O	B-Variable
would	O	O
n't	O	O
be	O	O
too	O	O
large	O	O
.	O	O

How	O	O
can	O	O
I	O	O
incorporate	O	O
that	O	O
into	O	O
my	O	O
code	O	O
?	O	O

And	O	O
changing	O	O
http://placehold.it/250x250	B-Code_Block	B-Code_Block
to	O	O
http://placehold.it/100x100	B-Code_Block	B-Code_Block
is	O	O
not	O	O
an	O	O
option	O	O
,	O	O
since	O	O
that	O	O
is	O	O
just	O	O
a	O	O
placeholder	O	O
.	O	O

Use	O	O
UIImageView	B-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
imageView	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
[	B-Code_Block	B-Code_Block
[	B-Code_Block	B-Code_Block
UIImageView	B-Code_Block	B-Code_Block
alloc	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
initWithFrame:CGRectMake(0,40,100,100)	B-Code_Block	B-Code_Block
]	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
?	O	O

You	O	O
can	O	O
set	O	O
the	O	O
image	O	B-Variable
later	O	O
using	O	O

Also	O	O
,	O	O
you	O	O
should	O	O
probably	O	O
take	O	O
out	O	O

imageView.layer.rasterizationScale	B-Code_Block	B-Variable
and	O	O
imageView.layer.shouldRasterize	B-Code_Block	B-Variable
,	O	O

you	O	O
probably	O	O
do	O	O
n't	O	O
need	O	O
them	O	O
.	O	O

on	O	O
a	O	O
side	O	O
note	O	O

(	O	O
+	B-Code_Block	B-Code_Block
[	I-Code_Block	I-Code_Block
NSData	I-Code_Block	I-Code_Block
dataWithContentsOfURL	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
should	O	O
NEVER	O	O
be	O	O
used	O	O
in	O	O
such	O	O
case.	O	O
.	O	O
)	O	O

While	O	O
uploading	O	O
doc	O	B-File_Type
file	O	O
(	O	O
example	O	B-File_Name
test.doc	O	I-File_Name
)	O	O
to	O	O
server	O	B-Application
(	O	O
unix	O	B-Operating_System
machine	O	O
)	O	O
,	O	O
I	O	O
am	O	O
using	O	O
apache	B-Code_Block	B-Application
commons	I-Code_Block	I-Application
jar	O	B-File_Type
which	O	O
gives	O	O
me	O	O
FormFile	B-Code_Block	B-Class
instance	O	O
at	O	O
server	O	B-Application
side	O	O
which	O	O
is	O	O
having	O	O
all	O	O
the	O	O
data	O	O
in	O	O
byte	O	B-Data_Type
array	O	B-Data_Structure
form	O	O
.	O	O

When	O	O
I	O	O
write	O	O
the	O	O
same	O	O
byte	O	B-Data_Type
array	O	B-Data_Structure
to	O	O
response	O	O
output	O	O
stream	O	O
and	O	O
send	O	O
it	O	O
to	O	O
browser	O	B-Application
to	O	O
download	O	O
the	O	O
same	O	O
file	O	O
,	O	O
weird	O	O
content	O	O
is	O	O
shown	O	O
.	O	O

I	O	O
get	O	O
one	O	O
pop	O	B-User_Interface_Element
up	O	I-User_Interface_Element
to	O	O
select	O	O
encoding	O	O
in	O	O
which	O	O
i	O	O
would	O	O
like	O	O
to	O	O
see	O	O
the	O	O
data	O	O
and	O	O
weird	O	O
data	O	O
is	O	O
shown	O	O
in	O	O
that	O	O
doc.The	O	B-File_Type
content	O	O
type	O	O
is	O	O
set	O	O
as	O	O
follows	O	O
:	O	O

I	O	O
think	O	O
that	O	O
while	O	O
writing	O	O
data	O	O
to	O	O
output	O	O
stream	O	O
,	O	O
meta	O	O
data	O	O
related	O	O
to	O	O
doc	O	B-File_Type
file	O	O
is	O	O
also	O	O
written	O	O
which	O	O
causes	O	O
this	O	O
issue	O	O
.	O	O

Is	O	O
there	O	O
anything	O	O
specific	O	O
for	O	O
doc	O	B-File_Type
or	O	O
docx	O	B-File_Type
file	O	O
formats	O	O
,	O	O
which	O	O
needs	O	O
to	O	O
be	O	O
done	O	O
so	O	O
file	O	O
is	O	O
in	O	O
proper	O	O
format	O	O
and	O	O
i	O	O
can	O	O
see	O	O
correct	O	O
data	O	O
which	O	O
i	O	O
uploaded	O	O
or	O	O
I	O	O
am	O	O
missing	O	O
something	O	O
?	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

Thanks	O	O
in	O	O
Advance	O	O
.	O	O

Let	O	O
me	O	O
know	O	O
if	O	O
more	O	O
info	O	O
is	O	O
required	O	O
.	O	O

It	O	O
may	O	O
not	O	O
be	O	O
a	O	O
fix	O	O
for	O	O
your	O	O
problem	O	O
because	O	O
I	O	O
have	O	O
not	O	O
run	O	O
any	O	O
test	O	O
around	O	O
.	O	O

But	O	O
to	O	O
check	O	O
the	O	O
correct	O	O
mime	O	O
types	O	O
please	O	O
refer	O	O
to	O	O
this	O	O
link	O	O
:	O	O

https://technet.microsoft.com/en-us/library/ee309278(office.12).aspx	O	O

Updated	O	O
:	O	O

You	O	O
can	O	O
use	O	O
response	O	O
type	O	O
as	O	O
ArrayBuffer	O	B-Class
and	O	O
set	O	O
the	O	O
content	O	O
as	O	O
Blob	O	B-Class
.	O	O

Or	O	O
this	O	O
could	O	O
work	O	O

There	O	O
's	O	O
a	O	O
known	O	O
issue	O	O
in	O	O
Microsoft	O	B-Website
which	O	O
provide	O	O
workaround	O	O
for	O	O
the	O	O

Encoding	O	O
Pop	O	B-User_Interface_Element
Up	O	I-User_Interface_Element

My	O	O
question	O	O
is	O	O
quite	O	O
simple	O	O
,	O	O
if	O	O
I	O	O
declare	O	O
an	O	O
IF	O	B-Code_Block
statement	O	O
with	O	O
a	O	O
series	O	O
of	O	O
OR	O	B-Code_Block
clauses	O	O
will	O	O
JavaScript	O	B-Language
read	O	O
all	O	O
of	O	O
the	O	O
ORs	O	B-Code_Block
or	O	O
stop	O	O
at	O	O
the	O	O
first	O	O
one	O	O
that	O	O
is	O	O
satisfied	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

Stops	O	O
at	O	O
the	O	O
first	O	O
one	O	O
.	O	O

It	O	O
's	O	O
called	O	O
short-circuiting	O	O

http://en.wikipedia.org/wiki/Short-circuit_evaluation	O	O

https://developer.mozilla.org/en/JavaScript/Reference/Operators/Logical_Operators	O	O

I	O	O
have	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
data	O	O
the	O	O
data	O	O
is	O	O
all	O	O
in	O	O
one	O	O
column	O	B-User_Interface_Element
for	O	O
example	O	O

and	O	O
I	O	O
want	O	O
it	O	O
to	O	O
move	O	O
to	O	O

So	O	O
the	O	O
formula	O	O
will	O	O
look	O	O
like	O	O

Without	O	O
typing	O	O
the	O	O
whole	O	O
thing	O	O
out	O	O
is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
do	O	O
this	O	O
?	O	O

Put	O	O
this	O	O
in	O	O
the	O	O
upper	O	O
left	O	O
cell	O	B-User_Interface_Element
of	O	O
the	O	O
output	O	O
region	O	O
:	O	O

And	O	O
copy/drag	O	O
over	O	O
one	O	O
column	O	B-User_Interface_Element
and	O	O
down	O	O
sufficient	O	O
to	O	O
get	O	O
0s	O	B-Value

Pick	O	O
some	O	O
cell	O	B-User_Interface_Element
and	O	O
enter	O	O
:	O	O

and	O	O
copy	O	O
both	O	O
across	O	O
and	O	O
down	O	O
:	O	O

I	O	O
have	O	O
a	O	O
set	O	O
of	O	O
zipcodes	O	O
and	O	O
a	O	O
data	O	O
point	O	O
corresponding	O	O
to	O	O
each	O	O
.	O	O

I	O	O
have	O	O
to	O	O
plot	O	O
a	O	O
chloropleth	O	B-User_Interface_Element
using	O	O
these	O	O
data	O	O
.	O	O

How	O	O
do	O	O
I	O	O
achieve	O	O
this	O	O
in	O	O
R	O	B-Language
.	O	O

I	O	O
have	O	O
tried	O	O
using	O	O
ggplot	O	B-Library
and	O	O
R	O	B-Language
.	O	O

the	O	O
way	O	O
i	O	O
try	O	O
it	O	O
is	O	O
I	O	O
put	O	O
the	O	O
data	O	O
in	O	O
the	O	O
frame	O	O
,	O	O
convert	O	O
the	O	O
zipcodes	O	O
to	O	O
lat	O	O
long	O	B-Data_Type
,	O	O
and	O	O
then	O	O
try	O	O
to	O	O
plot	O	O
.	O	O

So	O	O
far	O	O
I	O	O
havent	O	O
been	O	O
able	O	O
to	O	O
achieve	O	O
this	O	O
.	O	O

Any	O	O
direction	O	O
/	O	O
code	O	O
samples	O	O
would	O	O
be	O	O
helpful	O	O

While	O	O
writing	O	O
my	O	O
code	O	O
for	O	O
a	O	O
computer	O	O
dating	O	O
assignment	O	O
in	O	O
which	O	O
we	O	O
see	O	O
the	O	O
compatibility	O	O
of	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
four	O	O
objects	O	O
,	O	O
my	O	O
code	O	O
printed	O	O
strangely	O	O
.	O	O

(	O	O
Eclipse	O	B-Application
did	O	O
n't	O	O
give	O	O
me	O	O
an	O	O
error/warning	O	O
at	O	O
first	O	O
)	O	O
.	O	O

Code	O	O
:	O	O

When	O	O
I	O	O
tried	O	O
to	O	O
print	O	O
things	O	O
out	O	O
,	O	O
they	O	O
appeared	O	O
like	O	O
this	O	O
:	O	O

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Elizabeth	O	O
Bennett	O	O
:	O	O
90.0	O	B-Value

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Fitzwilliam	O	O
Darcy	O	O
:	O	O
90.55	O	B-Value

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Romeo	O	O
Montague	O	O
:	O	O
90.3	O	B-Value

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Juliet	O	O
Capulet	O	O
:	O	O
90.0	O	B-Value

so	O	O
.......................................................	O	O
on	O	O
so	O	O
forth	O	O
.	O	O

There	O	O
was	O	O
a	O	O
"	O	B-Value
9	O	I-Value
"	O	I-Value
appearing	O	O
in	O	O
front	O	O
of	O	O
my	O	O
numbers	O	O
.	O	O

I	O	O
found	O	O
the	O	O
problem	O	O
later	O	O
:	O	O
I	O	O
had	O	O
two	O	O
concatenating	O	O
operators	O	O
("+")	O	B-Code_Block
after	O	O
my	O	O
"	O	B-Value
\n	O	I-Value
"	O	B-Value
.	O	O

So	O	O
I	O	O
changed	O	O
my	O	O
code	O	O
,	O	O
deleting	O	O
the	O	O
extraneous	O	O
"	O	B-Code_Block
+	O	I-Code_Block
"	O	I-Code_Block
.	O	O

New	O	O
code	O	O
:	O	O

New	B-Code_Block	O
correct	I-Code_Block	O
run	I-Code_Block	O
:	O	O

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Elizabeth	O	O
Bennett	O	O
:	O	O
0.0	O	B-Value

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Fitzwilliam	O	O
Darcy	O	O
:	O	O
0.55	O	B-Value

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Romeo	O	O
Montague	O	O
:	O	O
0.3	O	B-Value

Fit	O	O
between	O	O
Elizabeth	O	O
Bennett	O	O
and	O	O
Juliet	O	O
Capulet	O	O
:	O	O
0.0	O	B-Value

so	O	O
..............................................	O	O
on	O	O
so	O	O
forth	O	O
.	O	O

Though	O	O
I	O	O
've	O	O
thankfully	O	O
found	O	O
my	O	O
problem	O	O
,	O	O
I	O	O
want	O	O
to	O	O
know	O	O
what	O	O
exactly	O	O
is	O	O
causing	O	O
this	O	O
to	O	O
happen	O	O
.	O	O

Is	O	O
there	O	O
some	O	O
sort	O	O
of	O	O
eclipse	O	B-Application
shorthand	O	O
that	O	O
leads	O	O
to	O	O
the	O	O
"	O	B-Value
9	O	I-Value
"	O	I-Value
'	O	O
s	O	O
appearance	O	O
?	O	O

Or	O	O
is	O	O
this	O	O
due	O	O
to	O	O
some	O	O
eclipse	O	B-Application
bug	O	O
?	O	O

I	O	O
'm	O	O
still	O	O
a	O	O
beginner	O	O
at	O	O
java	O	B-Language
,	O	I-Language
so	O	O
I	O	O
ca	O	O
n't	O	O
make	O	O
a	O	O
solid	O	O
conclusion	O	O
.	O	O

I	O	O
tried	O	O
modifying	O	O
my	O	O
code	O	O
slightly	O	O
to	O	O
see	O	O
how	O	O
Eclipse	O	B-Application
would	O	O
react	O	O
(	O	O
I	O	O
deleted	O	O
the	O	O
space	O	O
between	O	O
my	O	O
original	O	O
"	O	B-Code_Block
+	O	I-Code_Block
+	O	I-Code_Block
"	O	I-Code_Block
)	O	O
:	O	O

Eclipse	B-Code_Block	B-Application
gave	I-Code_Block	O
me	I-Code_Block	O
this	I-Code_Block	O
warning	I-Code_Block	O
:	I-Code_Block	O

Multiple	B-Code_Block	O
markers	O	O
at	O	O
this	O	O
line	O	O

Syntax	O	O
error	O	O
on	O	O
token	O	O
"	O	O
++	O	B-Code_Block
"	O	O
,	O	O
+	O	B-Code_Block

expected	O	O

Invalid	O	O
argument	O	O
to	O	O
operation	O	O
++	O	B-Code_Block
/	O	O
-	O	B-Code_Block
-	O	I-Code_Block

This	O	O
makes	O	O
sense	O	O
,	O	O
because	O	O
++	O	B-Code_Block
on	O	O
its	O	O
own	O	O
is	O	O
an	O	O
operator	O	O
of	O	O
sorts	O	O
.	O	O

Interestingly	O	O
,	O	O
however	O	O
,	O	O
if	O	O
I	O	O
put	O	O
a	O	O
space	O	O
between	O	O
the	O	O
"	O	O
++	O	B-Code_Block
"	O	O
,	O	O
then	O	O
the	O	O
warning	O	O
disappears	O	O
.	O	O

I	O	O
did	O	O
n't	O	O
paste	O	O
my	O	O
entire	O	O
code	O	O
for	O	O
the	O	O
sake	O	O
of	O	O
readability	O	O
,	O	O
but	O	O
if	O	O
necessary	O	O
,	O	O
I	O	O
can	O	O
edit	O	O
and	O	O
add	O	O
it	O	O
in	O	O
.	O	O

Some	O	O
clarification	O	O
regarding	O	O
this	O	O
would	O	O
be	O	O
helpful	O	O
.	O	O

Thank	O	O
you	O	O
.	O	O

No	O	O
,	O	O
it	O	O
's	O	O
not	O	O
a	O	O
bug	O	O
.	O	O

It	O	O
's	O	O
unusual	O	O
,	O	O
but	O	O
it	O	O
's	O	O
not	O	O
a	O	O
bug	O	O
.	O	O

The	O	O
first	O	O
thing	O	O
to	O	O
do	O	O
is	O	O
simplify	O	O
the	O	O
example	O	O
massively	O	O
:	O	O

Result	O	O
:	O	O

Now	O	O
admittedly	O	O
I	O	O
'm	O	O
using	O	O
strings	O	B-Data_Type
for	O	O
both	O	O
start	B-Code_Block	B-Variable
and	O	O
end	B-Code_Block	B-Variable
,	O	O
but	O	O
due	O	O
to	O	O
+	B-Code_Block	B-Code_Block
being	O	O
left-associative	O	O
,	O	O
that	O	O
does	O	O
n't	O	O
make	O	O
any	O	O
difference	O	O
here	O	O
.	O	O

(	O	O
If	O	O
start	B-Code_Block	B-Variable
were	O	O
an	O	O
integer	O	B-Data_Type
,	O	O
the	O	O
first	O	O
binary	O	O
+	B-Code_Block	B-Code_Block
operator	O	O
would	O	O
be	O	O
integer	O	B-Data_Type
addition	O	O
in	O	O
both	O	O
cases	O	O
.	O	O
)	O	O

Basically	O	O
,	O	O
the	O	O
extra	O	O
+	B-Code_Block	B-Code_Block
ends	O	O
up	O	O
being	O	O
a	O	O
unary	O	B-Data_Type
+	B-Code_Block	B-Code_Block
operator	O	O
with	O	O
'	B-Code_Block	B-Value
\t	I-Code_Block	I-Value
'	B-Code_Block	B-Value
as	O	O
the	O	O
operand	O	O
.	O	O

Unary	O	O
numeric	O	O
promotion	O	O
is	O	O
applied	O	O
to	O	O
the	O	O
char	B-Code_Block	B-Data_Type
,	O	O
giving	O	O
int	B-Code_Block	B-Data_Type
as	O	O
a	O	O
result	O	O
.	O	O

So	O	O
the	O	O
code	O	O
becomes	O	O
effectively	O	O
:	O	O

which	O	O
is	O	O
effectively	O	O
:	O	O

which	O	O
is	O	O
effectively	O	O

..	O	O
.	O	O
at	O	O
which	O	O
point	O	O
it	O	O
's	O	O
hopefully	O	O
clear	O	O
why	O	O
you	O	O
're	O	O
getting	O	O
the	O	O
output	O	O
you	O	O
are	O	O
.	O	O

To	O	O
avoid	O	O
accidentally	O	O
ending	O	O
up	O	O
treating	O	O
a	O	O
character	O	B-Data_Type
as	O	O
an	O	O
integer	O	B-Data_Type
,	O	O
it	O	O
's	O	O
probably	O	O
best	O	O
to	O	O
just	O	O
use	O	O
strings	O	B-Data_Type
instead	O	O
-	O	O
at	O	O
which	O	O
point	O	O
the	O	O
code	O	O
wo	O	O
n't	O	O
compile	O	O
because	O	O
there	O	O
's	O	O
no	O	O
unary	O	B-Data_Type
+	B-Code_Block	B-Code_Block
operator	O	O
for	O	O
String	B-Code_Block	B-Data_Type
:	O	O

.	O	O
.	O	O
gives	O	O
:	O	O

The	O	O
problem	O	O
is	O	O
not	O	O
just	O	O
with	O	O
the	O	O
+	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
in	O	O
your	O	O
code	O	O
.	O	O

But	O	O
it	O	O
's	O	O
also	O	O
with	O	O
the	O	O
fact	O	O
that	O	O
you	O	O
are	O	O
using	O	O
char	O	B-Data_Type
'	B-Code_Block	B-Value
\t	I-Code_Block	I-Value
'	B-Code_Block	B-Value
and	O	O
not	O	O
String	O	B-Data_Type
"	B-Code_Block	B-Value
\t	I-Code_Block	I-Value
"	B-Code_Block	B-Value
.	O	O

So	O	O
when	O	O
you	O	O
use	O	O
System.out.println	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Hello	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
\t'	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
;	B-Code_Block	B-Code_Block
,	O	O
the	O	O
\t	B-Code_Block	B-Value
is	O	O
taken	O	O
as	O	O
a	O	O
character	O	O
literal	O	O
and	O	O
appended	O	O
to	O	O
the	O	O
string	O	B-Data_Type
as	O	O
\t	B-Code_Block	B-Value
.	O	O

But	O	O
when	O	O
you	O	O
use	O	O
System.out.println	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Hello	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
\t'	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
;	B-Code_Block	B-Code_Block
,	O	O
it	O	O
becomes	O	O
effectively	O	O
System.out.println	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Hello	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block
(	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
\t'	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
)	B-Code_Block	B-Code_Block
;	B-Code_Block	B-Code_Block
.	O	O

So	O	O
it	O	O
is	O	O
treated	O	O
as	O	O
an	O	O
int	B-Code_Block	B-Data_Type
by	O	O
java	O	B-Language
.	O	O

You	O	O
only	O	O
assign	O	O
+	B-Code_Block	B-Code_Block
and	O	O
-	B-Code_Block	B-Code_Block
signs	O	O
to	O	O
ints	O	B-Data_Type
,	O	O
not	O	O
chars	O	B-Data_Type
.	O	O

Remember	O	O
you	O	O
can	O	O
do	O	O
int	B-Code_Block	B-Code_Block
i	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
+2	I-Code_Block	I-Code_Block
or	O	O
-2	B-Code_Block	B-Code_Block
or	O	O
+	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
.	O	O

And	O	O
the	O	O
ASCII	O	O
value	O	O
of	O	O
\t	B-Code_Block	B-Value
is	O	O
9	B-Code_Block	B-Value
.	O	O

Hence	O	O
it	O	O
gets	O	O
appended	O	O
to	O	O
the	O	O
string	O	B-Data_Type
and	O	O
get	O	O
's	O	O
printed	O	O
as	O	O
Hello9	B-Code_Block	B-Value
.	O	O

I	O	O
have	O	O
this	O	O
jQuery	O	B-Library
plugin	O	O
here	O	O
:	O	O

That	O	O
I	O	O
use	O	O
like	O	O
so	O	O
:	O	O

That	O	O
does	O	O
the	O	O
job	O	O
for	O	O
rotating	O	O
it	O	O
very	O	O
nice	O	O
,	O	O
but	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
animate	O	O
the	O	O
rotation	O	O
process	O	O
,	O	O
what	O	O
can	O	O
be	O	O
done	O	O
to	O	O
make	O	O
it	O	O
happen	O	O
with	O	O
the	O	O
given	O	O
plugin	O	B-Application
?	O	O

(	O	O
fyi	O	O
:	O	O
changing	O	O
animate	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
false	I-Code_Block	I-Code_Block
to	O	O
true	B-Code_Block	O
does	O	O
n't	O	O
enable	O	O
it	O	O
:)	O	O
)	O	O

Thank	O	O
you	O	O
.	O	O

I	O	O
have	O	O
added	O	O
Mandrill	O	B-Library
's	O	O
api	O	I-Library
to	O	O
my	O	O
project	O	O
via	O	O
composer	O	B-Application
,	O	O
and	O	O
I	O	O
have	O	O
also	O	O
installed	O	O
it	O	O
manually	O	O
(	O	O
not	O	O
at	O	O
the	O	O
same	O	O
time	O	O
)	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
a	O	O
template	O	O
that	O	O
I	O	O
created	O	O
in	O	O
my	O	O
Mandrill	O	B-Library
account	O	O
.	O	O

I	O	O
'm	O	O
pretty	O	O
sure	O	O
there	O	O
's	O	O
nothing	O	O
wrong	O	O
with	O	O
my	O	O
code	O	O
.	O	O

Even	O	O
if	O	O
there	O	O
is	O	O
,	O	O
it	O	O
's	O	O
not	O	O
causing	O	O
the	O	O
problem	O	O
that	O	O
I	O	O
'm	O	O
having	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
the	O	O
Mandrill	O	B-Library
methods	O	O
are	O	O
n't	O	O
showing	O	O
up	O	O
.	O	O

When	O	O
I	O	O
type	O	O

..	O	O
.	O	O
these	O	O
are	O	O
my	O	O
following	O	O
choices	O	O
:	O	O

Now	O	O
,	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
what	O	O
all	O	O
the	O	O
methods	O	O
are	O	O
suppose	O	O
to	O	O
be	O	O
.	O	O

I	O	O
do	O	O
know	O	O
that	O	O
one	O	O
of	O	O
the	O	O
methods	O	O
is	O	O
suppose	O	O
to	O	O
be	O	O
messages	O	O
.	O	O

If	O	O
anyone	O	O
can	O	O
give	O	O
me	O	O
some	O	O
trouble-shooting	O	O
ideas	O	O
,	O	O
it	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

I	O	O
've	O	O
been	O	O
at	O	O
it	O	O
for	O	O
6	O	O
hours	O	O
now	O	O
.	O	O

I	O	O
should	O	O
note	O	O
,	O	O
when	O	O
I	O	O
created	O	O
the	O	O
object	O	O
,	O	O
I	O	O
had	O	O
to	O	O
use	O	O
a	O	O
forward	O	O
slash	O	O
in	O	O
order	O	O
for	O	O
my	O	O
project	O	O
to	O	O
find	O	O
it	O	O
..	O	O
.	O	O

I	O	O
only	O	O
bring	O	O
this	O	O
up	O	O
because	O	O
I	O	O
did	O	O
n't	O	O
see	O	O
this	O	O
being	O	O
done	O	O
on	O	O
every	O	O
single	O	O
example	O	O
that	O	O
exist	O	O
out	O	O
in	O	O
the	O	O
web	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
,	O	O

Chris	O	B-User_Name
M	O	I-User_Name
.	O	O

Check	O	O
this	O	O
link	O	O
https://mandrillapp.com/api/docs/messages.php.html	O	O
.	O	O

Its	O	O
has	O	O
PHP	O	B-Language
library	O	O
specific	O	O
examples	O	O
of	O	O
each	O	O
API	O	B-Library
,	O	O
like	O	O
for	O	O
example	O	O
:	O	O

Hope	O	O
this	O	O
helps	O	O
,	O	O

Ive	O	O
been	O	O
following	O	O
the	O	O
tutorials	O	O
from	O	O
this	O	O
site	O	O
to	O	O
get	O	O
the	O	O
phone	O	O
number	O	O
of	O	O
a	O	O
contact	O	O
in	O	O
Android	O	B-Operating_System
.	O	O

The	O	O
issue	O	O
I	O	O
face	O	O
is	O	O
that	O	O
,	O	O
I	O	O
cannot	O	O
seem	O	O
to	O	O
get	O	O
the	O	O
last	O	O
contact	O	O
number	O	O
.	O	O

For	O	O
example	O	O
,	O	O
if	O	O
I	O	O
have	O	O
3	O	O
contacts	O	O
saved	O	O
it	O	O
shows	O	O
the	O	O
numbers	O	O
of	O	O
the	O	O
first	O	O
2	O	O
.	O	O

Im	O	O
posting	O	O
my	O	O
code	O	O
as	O	O
well	O	O
if	O	O
it	O	O
helps	O	O
anyone	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

Thanks	O	O
!	O	O

==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O
==	O	O

EDIT	O	O
:	O	O
For	O	O
those	O	O
interested	O	O
below	O	O
is	O	O
the	O	O
code	O	O
that	O	O
works	O	O
for	O	O
me	O	O
:	O	O

Hi	O	O
try	O	O
the	O	O
following	O	O
code	O	O
to	O	O
get	O	O
all	O	O
contacts	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
draw	O	O
a	O	O
border	O	B-User_Interface_Element
that	O	O
looks	O	O
exactly	O	O
like	O	O
the	O	O
one	O	O
a	O	O
ListView	O	B-Class
on	O	O
Windows	O	B-Operating_System
10	O	B-Version
has	O	O
.	O	O

I	O	O
am	O	O
doing	O	O
this	O	O
because	O	O
,	O	O
Fixed3D	O	B-Variable
looks	O	O
sunken	O	O
,	O	O
and	O	O
FixedSingle	O	B-Variable
looks	O	O
different	O	O
from	O	O
the	O	O
aforementioned	O	O
border	O	B-User_Interface_Element
.	O	O

With	O	O
the	O	O
Magnifier	O	B-Application
,	O	O
I	O	O
found	O	O
out	O	O
that	O	O
the	O	O
Windows	O	B-Operating_System
10	O	B-Version
border	O	B-User_Interface_Element
is	O	O
two-pixel	O	O
wide	O	O
.	O	O

So	O	O
,	O	O
my	O	O
idea	O	O
was	O	O
create	O	O
a	O	O
custom	O	O
panel	O	B-User_Interface_Element
that	O	O
has	O	O
no	O	O
borders	O	B-User_Interface_Element
but	O	O
draws	O	O
two-pixel-wide	O	B-Value
rectangles	O	B-User_Interface_Element
on	O	O
its	O	O
client	O	O
area	O	O
,	O	O
and	O	O
fit	O	O
a	O	O
child	O	B-Variable
,	O	O
whose	O	O
border	O	B-User_Interface_Element
is	O	O
set	O	O
to	O	O
none	O	O
,	O	O
inside	O	O
the	O	O
rectangles	O	B-User_Interface_Element
.	O	O

I	O	O
have	O	O
tried	O	O
the	O	O
following	O	O
,	O	O
but	O	O
it	O	O
does	O	O
not	O	O
work	O	O
well	O	O
with	O	O
the	O	O
Designer	O	B-Application
,	O	O
nor	O	O
does	O	O
it	O	O
work	O	O
at	O	O
all	O	O
.	O	O

What	O	O
is	O	O
wrong	O	O
?	O	O

The	O	O
description	O	O
of	O	O
AffectedControl	B-Code_Block	B-Variable
is	O	O
"	O	O
Gets	O	O
the	O	O
child	O	O
control	O	O
affected	O	O
by	O	O
the	O	O
change	O	O
"	O	O
.	O	O

But	O	O
weirdly	O	O
,	O	O
it	O	O
was	O	O
actually	O	O
the	O	O
panel	O	B-User_Interface_Element
itself	O	O
.	O	O

So	O	O
I	O	O
changed	O	O
it	O	O
like	O	O
the	O	O
following	O	O
.	O	O

It	O	O
works	O	O
,	O	O
but	O	O
there	O	O
is	O	O
some	O	O
flickering	O	O
when	O	O
resizing	O	O
the	O	O
panel	O	B-User_Interface_Element
,	O	O
probably	O	O
because	O	O
it	O	O
is	O	O
actually	O	O
two	O	O
controls	O	O
,	O	O
not	O	O
one	O	O
as	O	O
the	O	O
native	O	O
border	O	B-User_Interface_Element
is	O	O
.	O	O

I	O	O
get	O	O
following	O	O
error	O	O
message	O	O
when	O	O
I	O	O
try	O	O
to	O	O
load	O	O
specific	O	O
entities	O	O
to	O	O
my	O	O
JSP	O	B-Application
form	O	O
.	O	O

This	O	O
occurs	O	O
when	O	O
I	O	O
try	O	O
to	O	O
load	O	O
entities	O	O
which	O	O
types	O	O
are	O	O
"	O	O
USER	O	O
"	O	O
.	O	O

So	O	O
here	O	O
's	O	O
the	O	O
error	O	O
message	O	O
:	O	O

According	O	O
to	O	O
this	O	O
error	O	O
message	O	O
the	O	O
problem	O	O
lies	O	O
in	O	O
at	B-Code_Block	B-Output_Block
com.mysite.bookingmeeting.dao.implementation.UserProfileDaoImpl.findAllUsers(UserProfileDaoImpl.java:47)	I-Code_Block	I-Output_Block
and	O	O
at	B-Code_Block	B-Output_Block
org.apache.jsp.admin.ManageUsers_jsp._jspService(ManageUsers_jsp.java:133)	I-Code_Block	I-Output_Block
.	O	O

I	O	O
have	O	O
checked	O	O
those	O	O
codes	O	O
in	O	O
those	O	O
specific	O	O
pages	O	O
and	O	O
they	O	O
worked	O	O
before	O	O
fine	O	O
but	O	O
for	O	O
some	O	O
reasons	O	O
now	O	O
it	O	O
wo	O	O
n't	O	O
work	O	O
.	O	O

The	O	O
code	O	O
for	O	O
method	O	O
findAllUsers()	O	B-Function
of	O	O
UserProfileDaoImpl()	O	B-Class
class	O	O
is	O	O
following	O	O
:	O	O

And	O	O
code	O	O
for	O	O
ManageUsers.jsp	O	B-File_Name
is	O	O
following	O	O
:	O	O

I	O	O
have	O	O
tested	O	O
above	O	O
file	O	O
without	O	O
DeleteUserForm.jspf	O	B-File_Name
and	O	O
it	O	O
works	O	O
well	O	O
with	O	O
no	O	O
problems	O	O
,	O	O
so	O	O
the	O	O
main	O	O
cause	O	O
is	O	O
DeleteUserForm.jsp	O	B-File_Name
and	O	O
here	O	O
the	O	O
code	O	O
of	O	O
this	O	O
form	O	O
is	O	O
following	O	O
:	O	O

This	O	O
code	O	O
also	O	O
worked	O	O
before	O	O
but	O	O
now	O	O
its	O	O
not	O	O
working	O	O
.	O	O

Any	O	O
help	O	O
is	O	O
really	O	O
appreciated	O	O
.	O	O

I	O	O
solved	O	O
the	O	O
problem	O	O
and	O	O
I	O	O
found	O	O
out	O	O
that	O	O
I	O	O
tried	O	O
to	O	O
set	O	O
String	O	B-Data_Type
type	O	O
variable	O	O
to	O	O
UserProfile	O	B-Class
type	O	O
variable	O	O
.	O	O

I	O	O
have	O	O
a	O	O
class	O	O
(	O	O
SpotDetails	O	B-Class
)	O	O
which	O	O
includes	O	O
a	O	O
fragment	O	O
which	O	O
is	O	O
drawn	O	O
programically	O	O
.	O	O

Untill	O	O
now	O	O
i	O	O
've	O	O
had	O	O
the	O	O
fragment	O	O
drawing	O	O
class	O	O
(	O	O
WindRose	O	B-Class
)	O	O
as	O	O
a	O	O
child	O	O
of	O	O
the	O	O
main	O	O
class	O	O
.	O	O

What	O	O
i	O	O
would	O	O
like	O	O
to	O	O
do	O	O
is	O	O
to	O	O
move	O	O
the	O	O
WindRose	O	B-Class
class	O	O
into	O	O
a	O	O
AsynTask	O	B-Class
for	O	O
better	O	O
User	O	O
Experience	O	O
.	O	O

Now	O	O
the	O	O
Application	O	O
is	O	O
suffering	O	O
from	O	O
too	O	O
much	O	O
work	O	O
on	O	O
the	O	O
main	O	O
thread	O	O
.	O	O

Code	O	O
to	O	O
implement	O	O
the	O	O
WindRose	O	B-Class
:	O	O

WindRose	O	B-Class
code	O	O
:	O	O

Im	O	O
not	O	O
sure	O	O
if	O	O
i	O	O
explained	O	O
things	O	O
right	O	O
so	O	O
please	O	O
tell	O	O
me	O	O
if	O	O
things	O	O
are	O	O
unclear	O	O
:)	O	O

I	O	O
have	O	O
tried	O	O
to	O	O
do	O	O
this	O	O
:	O	O

But	O	O
how	O	O
should	O	O
i	O	O
implement	O	O
this	O	O
back	O	O
to	O	O
the	O	O
SpotDetails	O	B-Class
?	O	O

And	O	O
what	O	O
should	O	O
i	O	O
return	O	O
from	O	O
DrawRose	O	B-Function
?	O	O

You	O	O
should	O	O
draw	O	B-Function
only	O	O
in	O	O
the	O	O
UI	O	O
thread	O	O
.	O	O

You	O	O
ca	O	O
n't	O	O
draw	O	B-Function
in	O	O
the	O	O
background	O	B-User_Interface_Element
if	O	O
using	O	O
the	O	O
Draw	O	B-Function
inheritance	O	O
method	O	O
from	O	O
View	O	B-Class
.	O	O

Better	O	O
to	O	O
use	O	O
a	O	O
SurfaceView	O	B-Class
with	O	O
lock	O	O
/	O	O
unlock	O	O
canvas	O	B-Variable
.	O	O

It	O	O
will	O	O
use	O	O
an	O	O
optimized	O	O
algorithm	O	O
which	O	O
allows	O	O
for	O	O
background	O	B-User_Interface_Element
drawing	O	O
.	O	O

I	O	O
am	O	O
sharing	O	O
data	O	O
across	O	O
two	O	O
sibling	O	O
components	O	O
using	O	O
an	O	O
injectible	O	B-Class
.	O	O

In	O	O
my	O	O
injectible	O	O
I	O	O
am	O	O
using	O	O
an	O	O
observable	O	B-Class
like	O	O
this	O	O
:	O	O

But	O	O
then	O	O
when	O	O
I	O	O
am	O	O
using	O	O
Subject	O	B-Class
in	O	O
place	O	O
of	O	O
Observable	O	B-Class
it	O	O
works	O	O
fine	O	O
.	O	O

I	O	O
want	O	O
to	O	O
use	O	O
Observable	O	B-Class
instead	O	O
of	O	O
Subject	O	B-Class
,	O	O
so	O	O
is	O	O
it	O	O
possible	O	O
?	O	O

I	O	O
am	O	O
new	O	O
to	O	O
reactive	O	O
programming	O	O
,	O	O
and	O	O
I	O	O
am	O	O
confused	O	O
.	O	O

use	O	O
a	O	O
global	O	B-Data_Type
variable	O	O
instead	O	O
of	O	O
injectible	O	B-Class
.	O	O

so	O	O
that	O	O
you	O	O
can	O	O
access	O	O
them	O	O
through	O	O
out	O	O
your	O	O
project	O	O
.	O	O

1.create	O	O
a	O	O
property	O	O
in	O	O
DTO	O	O
.	O	O

2.import	O	O
in	O	O
that	O	O
component	O	O
where	O	O
you	O	O
want	O	O
to	O	O
use	O	O
.	O	O

3.create	O	O
a	O	O
variable	O	O
of	O	O
that	O	O
type	O	O
in	O	O
constructor	O	O
's	O	O
parameter	O	O
.	O	O

4.access	O	O
with	O	O
the	O	O
use	O	O
of	O	O
that	O	O
variable	O	O
.	O	O

I	O	O
'm	O	O
running	O	O
Spark	O	B-Library
1.4.1	O	B-Version
on	O	O
my	O	O
local	O	O
Mac	O	B-Device
laptop	O	I-Device
and	O	O
am	O	O
able	O	O
to	O	O
use	O	O
pyspark	B-Code_Block	B-Library
interactively	O	O
without	O	O
any	O	O
issues	O	O
.	O	O

Spark	O	B-Library
was	O	O
installed	O	O
through	O	O
Homebrew	O	B-Application
and	O	O
I	O	O
'm	O	O
using	O	O
Anaconda	O	B-Application
Python	O	B-Language
.	O	O

However	O	O
,	O	O
as	O	O
soon	O	O
as	O	O
I	O	O
try	O	O
to	O	O
use	O	O
spark-submit	B-Code_Block	B-Code_Block
,	O	O
I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
:	O	O

If	O	O
I	O	O
move	O	O
the	O	O
file	O	O
to	O	O
anywhere	O	O
in	O	O
the	O	O
/usr/local/Cellar/apache-spark/1.4.1/	B-Code_Block	B-File_Name
directory	O	O
,	O	O
then	O	O
spark-submit	B-Code_Block	B-Code_Block
works	O	O
fine	O	O
.	O	O

I	O	O
have	O	O
my	O	O
environment	O	O
variables	O	O
set	O	O
as	O	O
follows	O	O
:	O	O

I	O	O
'm	O	O
sure	O	O
something	O	O
is	O	O
set	O	O
incorrectly	O	O
in	O	O
my	O	O
environment	O	O
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
track	O	O
it	O	O
down	O	O
.	O	O

The	O	O
python	O	B-File_Type
files	O	O
that	O	O
are	O	O
executed	O	O
by	O	O
spark-submit	B-Code_Block	B-Code_Block
should	O	O
be	O	O
on	O	O
the	O	O
PYTHONPATH	B-Code_Block	B-Code_Block
.	O	O

Either	O	O
add	O	O
the	O	O
full	O	O
path	O	O
of	O	O
the	O	O
directory	O	O
by	O	O
doing	O	O
:	O	O

or	O	O
you	O	O
can	O	O
also	O	O
add	O	O
'	B-Code_Block	B-Value
.	I-Code_Block	I-Value
'	I-Code_Block	I-Value
to	O	O
the	O	O
PYTHONPATH	B-Code_Block	B-Code_Block
if	O	O
you	O	O
are	O	O
already	O	O
inside	O	O
the	O	O
directory	O	O
where	O	O
the	O	O
python	O	B-Language
script	O	O
is	O	O

Thanks	O	O
to	O	O
@Def_Os	O	B-User_Name
for	O	O
pointing	O	O
that	O	O
out	O	O
!	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
write	O	O
some	O	O
generic	O	O
code	O	O
for	O	O
handling	O	O
drops	O	O
in	O	O
WPF	O	B-Library
drop	O	O
targets	O	O
.	O	O

AllowDrop	O	B-Variable
is	O	O
set	O	O
to	O	O
true	O	O
,	O	O
and	O	O
I	O	O
've	O	O
hooked	O	O
onto	O	O
DragEnter	O	B-Class
,	O	O
DragOver	O	B-Class
,	O	O
DragLeave	O	B-Class
,	O	O
&	O	O
Drop	O	B-Class
on	O	O
the	O	O
drop	O	O
target	O	O
UIElement	O	B-Class
.	O	O

Using	O	O
the	O	O
bubbling	O	O
events	O	O
enables	O	O
nesting	O	O
of	O	O
drop	O	O
targets	O	O
.	O	O

Note	O	O
I	O	O
have	O	O
no	O	O
access	O	O
to	O	O
the	O	O
drag	O	O
source	O	O
-	O	O
this	O	O
is	O	O
inter-application	O	O
drag	O	O
&	O	O
drop	O	O
.	O	O

If	O	O
I	O	O
have	O	O
some	O	O
UI	O	O
cleanup	O	O
to	O	O
perform	O	O
at	O	O
the	O	O
end	O	O
of	O	O
a	O	O
potential	O	O
drop	O	O
,	O	O
and	O	O
the	O	O
user	O	O
presses	O	O
Esc	O	B-Keyboard_IP
to	O	O
cancel	O	O
the	O	O
drop	O	O
,	O	O
the	O	O
drop	O	O
target	O	O
never	O	O
seems	O	O
to	O	O
gets	O	O
a	O	O
specific	O	O
event	O	O
that	O	O
I	O	O
can	O	O
differentiate	O	O
from	O	O
all	O	O
the	O	O
others	O	O
.	O	O

Drop	O	O
is	O	O
easy	O	O
-	O	O
but	O	O
what	O	O
indicates	O	O
a	O	O
cancel	O	O
?	O	O

The	O	O
problem	O	O
I	O	O
have	O	O
is	O	O
this	O	O
:	O	O

DragLeave	O	B-Class
is	O	O
a	O	O
bubbling	O	O
routed	O	O
event	O	O
.	O	O

e.OriginalSource	O	B-Variable
is	O	O
always	O	O
set	O	O
for	O	O
this	O	O
event	O	O
(	O	O
and	O	O
the	O	O
corresponding	O	O
Preview	O	O
)	O	O
via	O	O
hittesting	O	O
.	O	O

The	O	O
target	O	O
is	O	O
an	O	O
ItemsControl	O	B-Class
(	O	O
Listbox	O	B-Class
is	O	O
what	O	O
I	O	O
've	O	O
currently	O	O
been	O	O
testing	O	O
with	O	O
)	O	O
.	O	O

As	O	O
I	O	O
drag	O	O
over	O	O
my	O	O
intended	O	O
drop	O	O
target	O	O
,	O	O
I	O	O
get	O	O
loads	O	O
of	O	O
DragLeave	O	B-Class
events	O	O
from	O	O
the	O	O
child	O	O
visuals	O	O
within	O	O
the	O	O
target	O	O
.	O	O

I	O	O
never	O	O
get	O	O
any	O	O
from	O	O
the	O	O
target	O	O
itself	O	O
.	O	O

Grids	O	B-User_Interface_Element
,	O	O
rectangles	O	B-User_Interface_Element
,	O	O
borders	O	B-User_Interface_Element
,	O	O
textblocks	O	B-User_Interface_Element
,	O	O
they	O	O
all	O	O
happily	O	O
send	O	O
me	O	O
DragLeave	O	B-Class
,	O	O
but	O	O
none	O	O
from	O	O
the	O	O
actual	O	O
ItemsControl	O	B-Class
I	O	O
'm	O	O
connected	O	O
up	O	O
to	O	O
.	O	O

I	O	O
thought	O	O
it	O	O
might	O	O
be	O	O
a	O	O
hittesting	O	O
problem	O	O
,	O	O
but	O	O
I	O	O
've	O	O
set	O	O
the	O	O
Background	O	B-Variable
of	O	O
the	O	O
ItemsControl	O	B-Class
to	O	O
a	O	O
colour	O	O
,	O	O
and	O	O
it	O	O
makes	O	O
no	O	O
difference	O	O
.	O	O

What	O	O
am	O	O
I	O	O
missing	O	O
?	O	O

How	O	O
am	O	O
I	O	O
supposed	O	O
to	O	O
determine	O	O
that	O	O
a	O	O
drop	O	O
operation	O	O
has	O	O
definitely	O	O
finished	O	O
?	O	O

(	O	O
The	O	O
actual	O	O
problem	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
solve	O	O
is	O	O
that	O	O
I	O	O
'm	O	O
implementing	O	O
some	O	O
custom	O	O
dragging	O	O
behaviour	O	O
in	O	O
a	O	O
TreeView	O	B-Class
that	O	O
expands	O	O
folders	O	B-User_Interface_Element
when	O	O
you	O	O
hover	O	O
over	O	O
them	O	O
,	O	O
and	O	O
cancels	O	O
timers	O	O
&	O	O
undoes	O	O
the	O	O
expansion	O	O
when	O	O
the	O	O
drop	O	O
is	O	O
finished	O	O
,	O	O
and	O	O
more	O	O
to	O	O
come	O	O
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
even	O	O
get	O	O
the	O	O
events	O	O
to	O	O
fire	O	O
sensibly	O	O
for	O	O
a	O	O
ListBox	O	B-Class
)	O	O
.	O	O

You	O	O
do	O	O
have	O	O
a	O	O
complex	O	O
scenario	O	O
here	O	O
so	O	O
this	O	O
will	O	O
start	O	O
basic	O	O
in	O	O
hopes	O	O
of	O	O
giving	O	O
you	O	O
a	O	O
direction	O	O
and	O	O
hopefully	O	O
a	O	O
solution	O	O
.	O	O

The	O	O
framework	O	O
will	O	O
only	O	O
inform	O	O
of	O	O
a	O	O
DragEnter	O	B-Class
event	O	O
if	O	O
the	O	O
control	O	O
is	O	O
marked	O	O
with	O	O
AllowDrop	O	B-Code_Block
=	O	I-Code_Block
true	O	I-Code_Block
.	O	O

So	O	O
make	O	O
sure	O	O
you	O	O
've	O	O
done	O	O
that	O	O
.	O	O

It	O	O
sounds	O	O
like	O	O
you	O	O
have	O	O
but	O	O
I	O	O
just	O	O
want	O	O
to	O	O
be	O	O
sure	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
why	O	O
you	O	O
need	O	O
the	O	O
DragLeave	O	B-Class
event	O	O
but	O	O
if	O	O
it	O	O
's	O	O
to	O	O
grab	O	O
the	O	O
selected	O	O
data	O	O
the	O	O
easiest	O	O
way	O	O
to	O	O
get	O	O
the	O	O
data	O	O
is	O	O
not	O	O
to	O	O
hook	O	O
into	O	O
DragLeave	O	B-Class
but	O	O
to	O	O
hook	O	O
into	O	O
PreviewMouseMove	O	B-Class
.	O	O

You	O	O
can	O	O
then	O	O
determine	O	O
if	O	O
the	O	O
mouse	O	B-Device
is	O	O
pressed	O	O
and	O	O
how	O	O
far	O	O
of	O	O
a	O	O
distance	O	O
to	O	O
move	O	O
before	O	O
enacting	O	O
a	O	O
DoDragDrop	O	B-Function
.	O	O

In	O	O
this	O	O
event	O	O
,	O	O
you	O	O
also	O	O
have	O	O
the	O	O
ability	O	O
to	O	O
add	O	O
and	O	O
analyze	O	O
Drag	O	B-Variable
Data	O	I-Variable
.	O	O

When	O	O
the	O	O
drag	O	O
starts	O	O
you	O	O
can	O	O
create	O	O
a	O	O
new	O	O
DataObject	O	B-Variable
and	O	O
send	O	O
it	O	O
with	O	O
the	O	O
DoDragDrop	O	B-Function
call	O	O
:	O	O

This	O	O
drag	O	B-Variable
data	O	I-Variable
is	O	O
now	O	O
accessible	O	O
through	O	O
the	O	O
DragEventArgs	O	B-Class
object	O	O
by	O	O
using	O	O
(	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
rename	O	O
the	O	O
event	O	O
parameter	O	O
,	O	O
it	O	O
's	O	O
e	O	B-Variable
)	O	O
:	O	O

My	O	O
suggestion	O	O
is	O	O
to	O	O
add	O	O
some	O	O
unique	O	O
information	O	O
to	O	O
the	O	O
drag	O	O
event	O	O
data	O	O
to	O	O
differentiate	O	O
the	O	O
event	O	O
based	O	O
on	O	O
the	O	O
data	O	O
.	O	O

Either	O	O
your	O	O
data	O	O
item	O	O
from	O	O
the	O	O
listbox	O	B-Class
selection	O	O
,	O	O
or	O	O
a	O	O
new	O	O
class	O	O
holding	O	O
your	O	O
data	O	O
item	O	O
and	O	O
another	O	O
indicator	O	O
if	O	O
needed	O	O
.	O	O

check	O	O
for	O	O
e.Source	O	B-Variable
and	O	O
not	O	O
e.OriginalSource	O	B-Variable
,	O	O
if	O	O
you	O	O
have	O	O
set	O	O
DropTarget	O	B-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
True	O	I-Code_Block
"	O	I-Code_Block
on	O	O
the	O	O
ItemsControl	O	B-Class
&	O	O
you	O	O
have	O	O
DropOver	O	B-Class
event	O	O
attached	O	O
to	O	O
the	O	O
ItemsControl	O	B-Class
,	O	O
the	O	O
event	O	O
argument	O	O
e.Source	O	B-Variable
should	O	O
be	O	O
ItemsControl	O	B-Class
.	O	O

I	O	O
'm	O	O
testing	O	O
AngularJS	O	B-Library
with	O	O
Protractor	O	B-Library
,	O	O
I	O	O
have	O	O
a	O	O
repeater	O	B-Function
and	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
sum	O	O
all	O	O
values	O	O
in	O	O
the	O	O
rows	O	B-Variable
,	O	O
and	O	O
compare	O	O
it	O	O
to	O	O
the	O	O
summary	O	O
line	O	O
value	O	O
.	O	O

Here	O	O
's	O	O
my	O	O
HTML	O	B-Language
:	O	O

I	O	O
used	O	O
the	O	O
following	O	O
code	O	O
in	O	O
my	O	O
e2e	O	O
test	O	O
:	O	O

I	O	O
'm	O	O
getting	O	O
various	O	O
kind	O	O
of	O	O
errors	O	O
,	O	O
can	O	O
someone	O	O
advice	O	O
what	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
here	O	O
?	O	O

An	O	O
example	O	O
error	O	O
I	O	O
get	O	O
:	O	O

rows	O	B-Variable
is	O	O
an	O	O
array	O	B-Data_Structure
and	O	O
it	O	O
's	O	O
being	O	O
called	O	O
like	O	O
a	O	O
function	O	O
(	O	O
the	O	O
side	O	O
effect	O	O
is	O	O
that	O	O
getText()	O	B-Function
is	O	O
being	O	O
called	O	O
over	O	O
the	O	O
entire	O	O
array	O	B-Data_Structure
instead	O	O
of	O	O
the	O	O
desired	O	O
element	O	O
)	O	O

Also	O	O
getText()'s	O	B-Function
response	O	O
should	O	O
be	O	O
handled	O	O
with	O	O
another	O	O
callback	O	O
.	O	O

I	O	O
have	O	O
a	O	O
innodb	O	B-Application
table	O	B-Data_Structure
,	O	O
and	O	O
set	O	O
mysql	O	B-Application
innodb_file_per_table	O	B-Code_Block
=	O	I-Code_Block
1	O	I-Code_Block
on	O	O
Host	O	B-Device
A	O	I-Device

this	O	O
table	O	B-Data_Structure
's	O	O
ibd	O	B-File_Type
file	O	O
allocate	O	O
about	O	O
3GB	O	O
disk	O	B-Device

then	O	O
,	O	O
i	O	O
dump	O	O
this	O	O
table	O	O
to	O	O
sql	O	B-Language
file(a.sql)	O	B-File_Name
,	O	O
a.sql	O	B-File_Name
allocate	O	O
about	O	O
2.5Gb	O	O
disk	O	B-Device

next	O	O
,	O	O
i	O	O
import	O	O
a.sql	O	B-File_Name
to	O	O
Host	O	B-Device
B	O	I-Device
.	O	O

Host	O	B-Device
A	O	I-Device
and	O	O
Host	O	B-Device
B	O	I-Device
have	O	O
the	O	O
same	O	O
hardware	O	O
,	O	O
same	O	O
system	O	O
,	O	O
same	O	O
mysql	O	B-Application
configure	O	O
.	O	O

But	O	O
i	O	O
found	O	O
,	O	O
this	O	O
table	O	B-Data_Structure
's	O	O
ibd	O	B-File_Type
file	O	O
on	O	O
Host	O	B-Device
B	O	I-Device
allocate	O	O
30GB	O	O
disk	O	B-Device
.	O	O

i	O	O
try	O	O
to	O	O
dump	O	O
this	O	O
table	O	B-Data_Structure
on	O	O
Host	O	B-Device
B	O	I-Device
to	O	O
b.sql	O	B-File_Name

b.sql	O	B-File_Name
have	O	O
the	O	O
same	O	O
size	O	O
of	O	O
a.sql	O	B-File_Name
.	O	O

I	O	O
am	O	O
sure	O	O
after	O	O
the	O	O
import	O	O
a.sql	O	B-File_Name
to	O	O
Host	O	B-Device
B	O	I-Device
,	O	O
we	O	O
do	O	O
n't	O	O
have	O	O
alert	O	O
table	O	B-Data_Structure
action	O	O
.	O	O

Why	O	O
the	O	O
allocate	O	O
disk	O	O
so	O	O
large	O	O
?	O	O

thanks	O	O
.	O	O

table	O	B-Data_Structure
description	O	O
:	O	O

Do	O	O
you	O	O
still	O	O
have	O	O
ibdata1	O	B-File_Name
there	O	O
?	O	O

What	O	O
is	O	O
the	O	O
result	O	O
after	O	O
you	O	O
run	O	O
optimize	O	O
table	O	B-Data_Structure
a	O	O
on	O	O
Host	O	B-Device
A	O	I-Device
?	O	O

It	O	O
may	O	O
be	O	O
because	O	O
in	O	O
host	O	B-Device
A	O	I-Device
,	O	O
some	O	O
of	O	O
your	O	O
data	O	O
of	O	O
table	O	B-Variable
A	O	I-Variable
is	O	O
inside	O	O
the	O	O
file	O	O
ibdata1	O	B-File_Name
.	O	O

I	O	O
am	O	O
making	O	O
a	O	O
game	O	O
where	O	O
you	O	O
have	O	O
to	O	O
get	O	O
from	O	O
one	O	O
point	O	O
(	O	O
task	O	O
)	O	O
on	O	O
a	O	O
site	O	O
to	O	O
another	O	O
(	O	O
dest	O	O
)	O	O
in	O	O
an	O	O
iframe	O	B-HTML_XML_Tag
.	O	O

Your	O	O
starting	O	O
and	O	O
end	O	O
points	O	O
are	O	O
chosen	O	O
for	O	O
you	O	O
.	O	O

When	O	O
the	O	O
url	O	O
of	O	O
your	O	O
starting	O	O
point	O	O
is	O	O
equal	O	O
to	O	O
your	O	O
end	O	O
point	O	O
I	O	O
would	O	O
like	O	O
a	O	O
popup	O	B-User_Interface_Element
box	O	I-User_Interface_Element
saying	O	O
you	O	O
won	O	O
.	O	O

I	O	O
made	O	O
one	O	O
and	O	O
it	O	O
works	O	O
fine	O	O
in	O	O
Coda	O	B-Application
2	O	B-Version
but	O	O
not	O	O
in	O	O
any	O	O
browser	O	B-Application
.	O	O

I	O	O
am	O	O
very	O	O
new	O	O
to	O	O
JS	O	B-Language
as	O	O
well	O	O
as	O	O
Stack	O	B-Website
Overflow	O	I-Website
so	O	O
any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
!	O	O

How	O	O
I	O	O
am	O	O
calling	O	O
the	O	O
code	O	O
in	O	O
my	O	O
index.html	O	B-File_Name
:	O	O

The	O	O
actual	O	O
code	O	O
:	O	O

Use	O	O
location.href	B-Code_Block	B-Variable
instead	O	O
of	O	O
url.value	B-Code_Block	B-Variable
.	O	O

Or	O	O
you	O	O
can	O	O
see	O	O
other	O	O
useful	O	O
location	O	O
properties	O	O
in	O	O
w3schools	O	B-Website
.	O	O

I	O	O
was	O	O
trying	O	O
to	O	O
download	O	O
this	O	O
image	O	B-User_Interface_Element
,	O	O
directly	O	O
from	O	O
the	O	O
full	O	O
path	O	O
.	O	O

When	O	O
I	O	O
try	O	O
it	O	O
throw	O	O
Firefox	O	B-Application
,	O	O
I	O	O
'm	O	O
redirected	O	O
to	O	O
the	O	O
initial	O	O
page	O	O
.	O	O

But	O	O
into	O	O
some	O	O
Manga	O	B-Application
,	O	O
i	O	O
could	O	O
see	O	O
the	O	O
url	O	O
from	O	O
image	O	B-User_Interface_Element
,	O	O
and	O	O
it	O	O
's	O	O
that	O	O
one	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
the	O	O
code	O	O
below	O	O
..	O	O
.	O	O

Someone	O	O
knows	O	O
why	O	O
it	O	O
's	O	O
happening	O	O
?	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
download	O	O
it	O	O
using	O	O
this	O	O
URL	O	O
directly	O	O
?	O	O

Most	O	O
likely	O	O
they	O	O
are	O	O
checking	O	O
the	O	O
HTTP	O	B-Variable
REFERRER	O	I-Variable
(	O	O
with	O	O
mod_rewrite	O	B-Function
maybe	O	O
)	O	O
and	O	O
if	O	O
it	O	O
does	O	O
n't	O	O
match	O	O
their	O	O
domain	O	O
it	O	O
will	O	O
redirect	O	O
you	O	O
to	O	O
the	O	O
homepage	O	O
.	O	O

Try	O	O
setting	O	O
HTTP-REFERRER	O	B-Variable
to	O	O
http://centraldemangas.com.br/	B-Code_Block	O
and	O	O
see	O	O
if	O	O
that	O	O
works	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
save	O	O
the	O	O
image	O	B-User_Interface_Element
from	O	O
API	O	B-Application
and	O	O
is	O	O
always	O	O
going	O	O
to	O	O
catch	O	O
.	O	O

Estou	O	O
tentando	O	O
salvar	O	O
uma	O	O
imagem	O	O
que	O	O
vem	O	O
da	O	O
API	O	B-Application
mas	O	O
sempre	O	O
cai	O	O
no	O	O
catch	O	O
.	O	O

Assume	O	O
I	O	O
know	O	O
or	O	O
am	O	O
able	O	O
to	O	O
learn	O	O
any	O	O
adjacent	O	O
technology/language	O	O
--what	O	O
'	O	O
s	O	O
the	O	O
best	O	O
way	O	O
to	O	O
go	O	O
about	O	O
automating	O	O
a	O	O
number	O	O
of	O	O
processing/summary	O	O
SQL	O	B-Language
scripts	O	O
?	O	O

I	O	O
have	O	O
a	O	O
number	O	O
of	O	O
scripts	O	O
,	O	O
clean-up	O	O
(	O	O
eg	O	O
,	O	O
update	O	O
,	O	O
delete	O	O
)	O	O
,	O	O
processing	O	O
(	O	O
eg	O	O
,	O	O
joins	O	O
)	O	O
and	O	O
summaries	O	O
post-processing	O	O
,	O	O
that	O	O
I	O	O
wrote	O	O
last	O	O
month	O	O
but	O	O
would	O	O
like	O	O
to	O	O
automate	O	O
.	O	O

What	O	O
's	O	O
the	O	O
preferred	O	O
method(s)	O	O
of	O	O
automating	O	O
the	O	O
entire	O	O
process	O	O
as	O	O
a	O	O
series	O	O
of	O	O
sequential	O	O
scripts	O	O
?	O	O

EDIT	O	O
:	O	O
All	O	O
of	O	O
this	O	O
is	O	O
run	O	O
on	O	O
MySQL	O	B-Application
dbs	O	O
.	O	O

Similar	O	O
to	O	O
MAW	O	B-User_Name
's	O	O
answer	O	O
,	O	O
except	O	O
I	O	O
would	O	O
use	O	O
a	O	O
Windows	O	B-Application
Service	O	I-Application
instead	O	O
of	O	O
a	O	O
command	O	B-Application
line	O	I-Application
app	O	I-Application
(	O	O
no	O	O
GUI	O	O
)	O	O
,	O	O
and	O	O
split	O	O
out	O	O
the	O	O
individual	O	O
DB	O	O
scripts	O	O
into	O	O
separate	O	O
tasks	O	O
within	O	O
the	O	O
Service	O	O
so	O	O
that	O	O
they	O	O
can	O	O
if	O	O
necessary	O	O
be	O	O
called	O	O
at	O	O
different	O	O
time	O	O
intervals	O	O
,	O	O
log	O	O
their	O	O
results	O	O
separately	O	O
,	O	O
and	O	O
be	O	O
independently	O	O
configured	O	O
.	O	O

This	O	O
depends	O	O
greatly	O	O
on	O	O
your	O	O
DBMS	O	B-Application
.	O	O

In	O	O
SQL	O	B-Application
Server	O	I-Application
there	O	O
are	O	O
scheduled	O	O
jobs	O	O
which	O	O
can	O	O
run	O	O
any	O	O
combination	O	O
of	O	O
stored	O	O
procedures/commands	O	O
on	O	O
a	O	O
schedule	O	O
,	O	O
similar	O	O
to	O	O
Windows	O	B-Application
scheduled	O	I-Application
tasks	O	I-Application
.	O	O

Since	O	O
you	O	O
've	O	O
tagged	O	O
this	O	O
question	O	O
with	O	O
mysql	O	B-Application
,	O	O
I	O	O
'll	O	O
assume	O	O
thats	O	O
what	O	O
your	O	O
running	O	O
.	O	O

One	O	O
way	O	O
to	O	O
do	O	O
this	O	O
on	O	O
mysql	O	B-Application
is	O	O
:	O	O

http://dev.mysql.com/tech-resources/articles/event-feature.html	O	O

If	O	O
all	O	O
else	O	O
fails	O	O
,	O	O
you	O	O
can	O	O
reference	O	O
all	O	O
of	O	O
these	O	O
scripts	O	O
in	O	O
a	O	O
stored	O	O
procedure	O	O
,	O	O
than	O	O
create	O	O
a	O	O
simple	O	O
command	O	B-Application
line	O	I-Application
program	O	O
which	O	O
would	O	O
connect	O	O
to	O	O
that	O	O
db	O	O
and	O	O
call	O	O
that	O	O
procedure	O	O
.	O	O

Then	O	O
schedule	O	O
that	O	O
program	O	O
with	O	O
Windows	O	B-Application
Task	O	I-Application
scheduler	O	I-Application
or	O	O
similar	O	O
.	O	O

I	O	O
have	O	O
a	O	O
table	O	B-HTML_XML_Tag
with	O	O
3	O	O
columns	O	B-User_Interface_Element
and	O	O
want	O	O
to	O	O
change	O	O
it	O	O
's	O	O
color	O	O
to	O	O
green	O	O
depending	O	O
on	O	O
what	O	O
I	O	O
select	O	O
on	O	O
my	O	O
checklist	O	B-User_Interface_Element
(	O	O
form	O	B-HTML_XML_Tag
)	O	O
.	O	O

I	O	O
want	O	O
to	O	O
change	O	O
in	O	O
GREEN	O	O
the	O	O
column	O	O
depending	O	O
on	O	O
the	O	O
city	O	O
i	O	O
choose	O	O
.	O	O

For	O	O
example	O	O
if	O	O
I	O	O
choose	O	O
New	O	B-Value
York	O	I-Value
,	O	O
then	O	O
column	O	B-User_Interface_Element
New	O	B-Value
York	O	I-Value
become	O	O
green	O	O
.	O	O

Any	O	O
ideas	O	O
?	O	O

HTML	O	B-Language
-	O	O
Table	O	B-HTML_XML_Tag
:	O	O

HTML	O	B-Language
-	O	O
Form	O	B-HTML_XML_Tag
:	O	O

Script	O	O
:	O	O

Instead	O	O
of	O	O
using	O	O
a	O	O
if	B-Code_Block	B-Code_Block
else	I-Code_Block	I-Code_Block
add	O	O
a	O	O
data-city	B-Code_Block	B-Variable
attribute	O	O
to	O	O
map	O	O
which	O	O
value	O	O
of	O	O
dropdown	O	B-User_Interface_Element
corresponds	O	O
to	O	O
which	O	O
column	O	B-User_Interface_Element
of	O	O
the	O	O
table	O	B-User_Interface_Element
.	O	O

Add	O	O
data-city	B-Code_Block	B-Variable
to	O	O
the	O	O
th	B-Code_Block	B-HTML_XML_Tag
like	O	O
this	O	O

Based	O	O
on	O	O
the	O	O
dropdown	O	B-User_Interface_Element
value	O	O
select	O	O
the	O	O
th	O	B-HTML_XML_Tag
and	O	O
get	O	O
its	O	O
index	O	B-Variable
.	O	O

Get	O	O
the	O	O
entire	O	O
column	O	B-User_Interface_Element
(	O	O
tds	O	B-HTML_XML_Tag
)	O	O
based	O	O
on	O	O
that	O	O
index	O	B-Variable
and	O	O
change	O	B-Function
css	O	B-Language
.	O	O

Here	O	O
is	O	O
a	O	O
demo	O	O
http://jsbin.com/leqinun/1/edit?html,js,output	O	O

For	O	O
one	O	O
week	O	O
I	O	O
'm	O	O
getting	O	O
the	O	O
below	O	O
type	O	B-Error_Name
missmatch	O	I-Error_Name
error	O	I-Error_Name
.	O	O

I	O	O
search	O	O
through	O	O
the	O	O
internet	O	O
,	O	O
looked	O	O
at	O	O
how	O	O
to	O	O
use	O	O
generics	O	O
,	O	O
but	O	O
I	O	O
could	O	O
n't	O	O
find	O	O
what	O	O
I	O	O
'm	O	O
doing	O	O
wrong	O	O
.	O	O

could	O	O
anyone	O	O
please	O	O
tell	O	O
me	O	O
how	O	O
to	O	O
fix	O	O
this	O	O
problem	O	O

error	O	O
:	O	O

My	O	O
classes	O	O
and	O	O
interfaces	O	O

A	O	O
little	O	O
improvement	O	O
of	O	O
T	O	B-User_Name
McKeown	O	I-User_Name
's	O	O
answer	O	O
:	O	O

Since	O	O
BaseRequest	O	B-Class
is	O	O
constrained	O	O
by	O	O
parameter	O	O
T	B-Code_Block	B-Variable
,	O	O
you	O	O
should	O	O
put	O	O
constraint	O	O
on	O	O
generic	O	O
method	O	O
too	O	O
.	O	O

Also	O	O
,	O	O
you	O	O
can	O	O
omit	O	O
casting	O	O
from	O	O
caller	O	O
code	O	O
,	O	O
using	O	O
generic	O	O
return	O	O
type	O	O
:	O	O

You	O	O
're	O	O
sending	O	O
a	O	O
type	O	O
ListAlertsRequest	B-Code_Block	B-Class
to	O	O
DoGetRequest	B-Code_Block	B-Function
which	O	O
needs	O	O
a	O	O
parameter	O	O
of	O	O
type	O	O
BaseRequest<BaseResponse>	B-Code_Block	B-Class
.	O	O

ListAlertsRequest	B-Code_Block	B-Class
is	O	O
not	O	O
of	O	O
type	O	O
BaseRequest	B-Code_Block	B-Class
<BaseResponse>	I-Code_Block	I-Class

Hi	O	O
guys	O	O
how	O	O
can	O	O
i	O	O
convert	O	O
a	O	O
image	O	B-User_Interface_Element
to	O	O
object	O	O
in	O	O
this	O	O
code	O	O
for	O	O
example	O	O
:	O	O

The	O	O
reason	O	O
to	O	O
do	O	O
that	O	O
is	O	O
if	O	O
i	O	O
wa	O	O
n't	O	O
to	O	O
upload	O	O
this	O	O
image	O	B-User_Interface_Element
automatically	O	O
if	O	O
the	O	O
input	O	O
file	O	O
is	O	O
n't	O	O
set	O	O
:	O	O

EDIT	O	O

If	O	O
there	O	O
is	O	O
n't	O	O
a	O	O
input	O	O
file	O	O
how	O	O
can	O	O
i	O	O
set	O	O
the	O	O
my	O	O
default	O	O
image	O	O
to	O	O
send	O	O
it	O	O
with	O	O
ajax	O	B-Library
?	O	O
?	O	O

EDIT2	O	O

If	O	O
event.target.files	B-Code_Block	B-Variable
;	I-Code_Block	I-Variable
is	O	O
null	O	O
how	O	O
can	O	O
i	O	O
set	O	O
file	O	O
from	O	O
new	O	O
image	O	B-User_Interface_Element
:	O	O

I	O	O
guess	O	O
you	O	O
can	O	O
do	O	O
this	O	O
:	O	O

where	O	O
defaultImg	B-Code_Block	B-Variable
is	O	O
a	O	O
variable	O	O
which	O	O
contains	O	O
a	O	O
default	O	O
img	O	B-User_Interface_Element
with	O	O
src	O	O
.	O	O

somthing	O	O
like	O	O
:	O	O

I	O	O
wonder	O	O
whether	O	O
there	O	O
is	O	O
any	O	O
way	O	O
to	O	O
calculate	O	O
the	O	O
2nd-order	O	O
derivative	O	O
on	O	O
CRF	O	B-Algorithm
loss	O	O
function	O	O
in	O	O
Tensorflow	O	B-Library
.	O	O

Currently	O	O
,	O	O
when	O	O
I	O	O
use	O	O
"	O	O
tf.contrib.crf.crf_log_likelihood	O	B-Code_Block
"	O	O
to	O	O
calculate	O	O
the	O	O
loss	O	O
function	O	O
,	O	O
it	O	O
gives	O	O
the	O	O
error	O	O
"	O	B-Output_Block
Second-order	O	I-Output_Block
gradient	O	I-Output_Block
for	O	I-Output_Block
while	O	I-Output_Block
loops	O	I-Output_Block
not	O	I-Output_Block
supported	O	I-Output_Block
"	O	I-Output_Block
.	O	O

Previously	O	O
,	O	O
it	O	O
also	O	O
gives	O	O
the	O	O
same	O	O
error	O	O
for	O	O
RNN	O	B-Algorithm
loss	O	O
.	O	O

Does	O	O
Tensorflow	O	B-Library
not	O	O
support	O	O
2nd-order	O	O
derivative	O	O
for	O	O
sequence	O	O
model	O	O
at	O	O
all	O	O
?	O	O

i	O	O
have	O	O
a	O	O
function	O	O
that	O	O
submit	O	O
a	O	O
form	O	O
and	O	O
starts	O	O
an	O	O
imageupload	O	B-Function
.	O	O

After	O	O
the	O	O
imageupload	O	B-Function
is	O	O
complete	O	O
,	O	O
another	O	O
function	O	O
must	O	O
be	O	O
start	O	O
.	O	O

The	O	O
following	O	O
code	O	O
must	O	O
be	O	O
start	O	O
after	O	O
the	O	O
upload	O	O
is	O	O
finished	O	O
.	O	O

But	O	O
where	O	O
i	O	O
must	O	O
the	O	O
function	O	O
insert	O	O
?	O	O

I	O	O
hope	O	O
someone	O	O
can	O	O
help	O	O
me	O	O
.	O	O

Best	O	O
regards	O	O

Hendrik	O	B-User_Name

this	O	O
should	O	O
work	O	O
.	O	O

Use	O	O
success	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block

Read	O	O
http://malsup.com/jquery/form/#options-object	O	O

I	O	O
want	O	O
to	O	O
click	O	O
only	O	O
on	O	O
left	O	O
side	O	O
where	O	O
is	O	O
letter	O	O
"	O	B-Value
F	O	I-Value
"	O	I-Value
and	O	O
other	O	O
section	O	O
to	O	O
make	O	O
not	O	O
clickable	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
with	O	O
css	O	B-Language
class	O	O
diver	O	O
but	O	O
not	O	O
work	O	O
.	O	O

Html	O	B-Language

CSS	O	B-Language

CodePen	O	B-Application

If	O	O
the	O	O
image	O	B-User_Interface_Element
must	O	O
be	O	O
in	O	O
the	O	O
HTML	O	B-Language
.	O	O

Note	O	O
:	O	O
The	O	O
"	O	O
universal	O	O
reset	O	O
"	O	O
(	O	O
the	O	O
*	B-Code_Block	B-Value
section	O	O
)	O	O
have	O	O
an	O	O
effect	O	O
on	O	O
elements	O	O
outside	O	O
the	O	O
scope	O	O
of	O	O
the	O	O
current	O	O
question	O	O
.	O	O

Headers	O	O
,	O	O
paragraphs	O	O
and	O	O
lists	O	O
spring	O	O
to	O	O
mind	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
query	O	O
:	O	O

however	O	O
this	O	O
query	O	O
gives	O	O
me	O	O
:	O	O

I	O	O
basically	O	O
wanted	O	O
the	O	O
list	O	B-Data_Structure
to	O	O
be	O	O
ordered	O	O
by	O	O
the	O	O
style	O	O
that	O	O
has	O	O
the	O	O
most	O	O
pictures	O	O
in	O	O
it	O	O
.	O	O

What	O	O
did	O	O
I	O	O
do	O	O
wrong	O	O
?	O	O

Why	O	O
is	O	O
it	O	O
giving	O	O
me	O	O
1	O	O
on	O	O
all	O	O
of	O	O
the	O	O
styles	O	O
,	O	O
I	O	O
am	O	O
pretty	O	O
sure	O	O
it	O	O
has	O	O
more	O	O
pictures	O	O
for	O	O
that	O	O
style	O	O

ORDER	B-Code_Block	B-Code_Block
BY	I-Code_Block	I-Code_Block
does	O	O
n't	O	O
have	O	O
underscores	O	O
.	O	O

But	O	O
equally	O	O
important	O	O
,	O	O
you	O	O
are	O	O
using	O	O
DISTINCT	B-Code_Block	B-Code_Block
in	O	O
a	O	O
way	O	O
where	O	O
you	O	O
seem	O	O
to	O	O
think	O	O
that	O	O
it	O	O
is	O	O
a	O	O
function	O	O
.	O	O

It	O	O
is	O	O
not	O	O
.	O	O

It	O	O
is	O	O
a	O	O
modifies	O	O
on	O	O
the	O	O
SELECT	B-Code_Block	B-Code_Block
and	O	O
it	O	O
applies	O	O
to	O	O
all	O	O
columns	O	B-Data_Structure
.	O	O

You	O	O
should	O	O
group	B-Code_Block	B-Code_Block
by	I-Code_Block	I-Code_Block
the	O	O
same	O	O
column	O	B-Data_Structure
you	O	O
have	O	O
in	O	O
the	O	O
distinct	O	O
.	O	O

Something	O	O
like	O	O
this	O	O
:	O	O

In	O	O
fact	O	O
,	O	O
you	O	O
almost	O	O
never	O	O
need	O	O
distinct	B-Code_Block	B-Code_Block
with	O	O
group	B-Code_Block	B-Code_Block
by	I-Code_Block	I-Code_Block
.	O	O

If	O	O
you	O	O
are	O	O
using	O	O
,	O	O
you	O	O
need	O	O
to	O	O
think	O	O
why	O	O
it	O	O
would	O	O
be	O	O
necessary	O	O
.	O	O

I	O	O
've	O	O
read	O	O
most	O	O
of	O	O
the	O	O
other	O	O
questions	O	O
on	O	O
non-Abstract	O	O
classes	O	O
with	O	O
abstract	O	O
methods	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
think	O	O
I	O	O
understood	O	O
any	O	O
of	O	O
it	O	O
.	O	O

So	O	O
heres	O	O
my	O	O
problem	O	O
:	O	O

I	O	O
'm	O	O
attempting	O	O
to	O	O
make	O	O
a	O	O
metronome	O	O
,	O	O
for	O	O
the	O	O
metronome	O	O
to	O	O
'	O	O
click	O	O
'	O	O
and	O	O
play	O	O
sound	O	O
I	O	O
copied	O	O
the	O	O
code	O	O
from	O	O
http://www.cs.cmu.edu/~illah/CLASSDOCS/javasound.pdf	O	O
.	O	O

The	O	O
code	O	O
below	O	O
is	O	O
a	O	O
super	O	O
basic	O	O
program	O	O
that	O	O
creates	O	O
a	O	O
JFrame	O	B-Class
,	O	O
JPanel	O	B-Class
,	O	O
and	O	O
JButtton	O	B-Class
.	O	O

When	O	O
the	O	O
Button	O	B-User_Interface_Element
(	O	O
ClickForSound	O	B-Variable
)	O	O
is	O	O
clicked	O	O
,	O	O
it	O	O
should	O	O
play	O	O
the	O	O
sound	O	O
.	O	O

The	O	O
error	O	O
I	O	O
get	O	O
is	O	O
that	O	O
Class	O	O
PlsWork	O	B-Class
is	O	O
not	O	O
abstract	O	O
and	O	O
thus	O	O
does	O	O
not	O	O
override	O	O
abstract	O	O
method	O	O
PlsWork	O	B-Class

Also	O	O
PLEASE	O	O
talk	O	O
to	O	O
me	O	O
like	O	O
an	O	O
idiot	O	O
as	O	O
I	O	O
have	O	O
almost	O	O
no	O	O
understanding	O	O
of	O	O
what	O	O
abstract	O	O
means	O	O
or	O	O
how	O	O
to	O	O
make	O	O
a	O	O
method	O	O
abstract	O	O
,	O	O
if	O	O
I	O	O
want	O	O
anything	O	O
to	O	O
be	O	O
abstract	O	O
or	O	O
anything	O	O
else	O	O
.	O	O

Check	O	O
your	O	O
syntax	O	O
:	O	O
actionPerformed	B-Code_Block	B-Code_Block
!=	I-Code_Block	I-Code_Block
actionPreformed	I-Code_Block	I-Code_Block
.	O	O

Adding	O	O
the	O	O
@Override	B-Code_Block	B-Code_Block
annotation	O	O
can	O	O
be	O	O
helpful	O	O
in	O	O
other	O	O
,	O	O
non-compile	O	O
time	O	O
error	O	O
situations	O	O
(	O	O
eg	O	O
you	O	O
are	O	O
overriding	O	O
a	O	O
non-abstract	O	O
method	O	O
of	O	O
a	O	O
subclass	O	O
)	O	O

With	O	O
the	O	O
following	O	O
git	O	B-Application
history	O	O
:	O	O

I	O	O
have	O	O
the	O	O
SHA	O	O
of	O	O
commit	O	O
g	B-Code_Block	B-Variable
.	O	O

Neither	O	O
feature	O	O
,	O	O
nor	O	O
release	O	O
are	O	O
available	O	O
any	O	O
longer	O	O
and	O	O
I	O	O
need	O	O
to	O	O
find	O	O
commit	O	O
q	B-Code_Block	B-Variable
,	O	O
IE	O	O
where	O	O
the	O	O
release	O	O
branch	O	O
was	O	O
merged	O	O
into	O	O
master	O	O
.	O	O

With	O	O
the	O	O
answers	O	O
in	O	O
a	O	O
different	O	O
question	O	O
(	O	O
Find	O	O
merge	O	O
commit	O	O
which	O	O
include	O	O
a	O	O
specific	O	O
commit	O	O
)	O	O
I	O	O
can	O	O
only	O	O
find	O	O
commit	O	O
k	O	B-Variable
,	O	O
where	O	O
the	O	O
feature	O	O
branch	O	O
was	O	O
merged	O	O
into	O	O
the	O	O
release	O	O
branch	O	O
.	O	O

How	O	O
do	O	O
I	O	O
go	O	O
about	O	O
this	O	O
?	O	O

I	O	O
would	O	O
suggest	O	O
this	O	O
:	O	O

--merges	B-Code_Block	B-Code_Block
logs	O	O
only	O	O
merge	O	O
commits	O	O
,	O	O
and	O	O
--ancestry-path	B-Code_Block	B-Code_Block
limits	O	O
the	O	O
commits	O	O
to	O	O
only	O	O
those	O	O
on	O	O
the	O	O
path	O	O
between	O	O
g	O	B-Variable
and	O	O
q	O	B-Variable
.	O	O

In	O	O
this	O	O
case	O	O
it	O	O
should	O	O
show	O	O
you	O	O
both	O	O
k	O	B-Variable
and	O	O
q	O	B-Variable
.	O	O

If	O	O
the	O	O
feature	O	O
or	O	O
release	O	O
branches	O	O
had	O	O
unique	O	O
names	O	O
you	O	O
should	O	O
be	O	O
able	O	O
to	O	O
find	O	O
q	B-Code_Block	B-Variable
on	O	O
master	B-Code_Block	B-Code_Block
by	O	O
searching	O	O
its	O	O
merge	O	O
commits	O	O
for	O	O
that	O	O
unique	O	O
name	O	O
(	O	O
e.g	O	O
.	O	O
by	O	O
using	O	O
gitk	B-Code_Block	B-Code_Block
--merges	I-Code_Block	I-Code_Block
and	O	O
then	O	O
entering	O	O
a	O	O
term	O	O
in	O	O
the	O	O
Find	B-Code_Block	B-Code_Block
field	O	O
)	O	O
because	O	O
Git	O	B-Application
by	O	O
default	O	O
records	O	O
the	O	O
merged	O	O
branch	O	O
names	O	O
in	O	O
merge	O	O
commit	O	O
messages	O	O
.	O	O

Otherwise	O	O
,	O	O
you	O	O
could	O	O
just	O	O
search	O	O
for	O	O
the	O	O
first	O	O
merge	O	O
commit	O	O
on	O	O
masterthat	B-Code_Block	B-Code_Block
has	O	O
g	B-Code_Block	B-Variable
merged	O	O
with	O	O
a	O	O
script	O	O
similar	O	O
to	O	O
this	O	O
one	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
append	O	O
the	O	O
count	O	O
to	O	O
duplicate	O	O
entries	O	O
in	O	O
a	O	O
string	O	B-Data_Type
array	O	B-Data_Structure
.	O	O

I	O	O
have	O	O
an	O	O
array	O	B-Data_Structure
like	O	O
this	O	O
which	O	O
contains	O	O
duplicate	O	O
entries	O	O
.	O	O

My	O	O
desired	O	O
output	O	O
is	O	O

What	O	O
is	O	O
the	O	O
best	O	O
way	O	O
to	O	O
do	O	O
this	O	O
?	O	O

something	O	O
like	O	O

note	O	O
I	O	O
'm	O	O
using	O	O
very	O	O
simple	O	O
javascript	O	B-Language
to	O	O
keep	O	O
the	O	O
solution	O	O
easily	O	O
readable	O	O
,	O	O
understandable	O	O
.	O	O

Note	O	O
you	O	O
have	O	O
to	O	O
pass	O	O
over	O	O
the	O	O
array	O	B-Data_Structure
twice	O	O
.	O	O

For	O	O
very	O	O
large	O	O
lists	O	B-Data_Structure
,	O	O
this	O	O
is	O	O
not	O	O
very	O	O
efficient	O	O
.	O	O

I	O	O
did	O	O
n't	O	O
test	O	O
this	O	O
,	O	O
but	O	O
something	O	O
like	O	O
that	O	O
should	O	O
work	O	O
.	O	O

This	O	O
should	O	O
tell	O	O
you	O	O
the	O	O
count	O	O
of	O	O
all	O	O
duplicates	O	O
:	O	O

Best	O	O
regards	O	O
!	O	O

We	O	O
have	O	O
about	O	O
100	O	O
users	O	O
that	O	O
were	O	O
disabled	O	O
in	O	O
AD	O	O
,	O	O
and	O	O
thus	O	O
Deprovisioned	O	O
in	O	O
Okta	O	B-Application
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
reactivate	O	O
these	O	O
users	O	O
in	O	O
Okta	O	B-Application
.	O	O

They	O	O
were	O	O
already	O	O
enabled	O	O
on	O	O
AD	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
the	O	O
PowerShell	O	B-Application
module	O	O
for	O	O
Okta	O	B-Application
written	O	O
by	O	O
Matt	O	B-User_Name
Egan	O	I-User_Name
(	O	O
https://github.com/mbegan/Okta-PSModule	O	O
)	O	O
and	O	O
I	O	O
can	O	O
take	O	O
the	O	O
user	O	O
account	O	O
from	O	O
deprovisioned	O	O
to	O	O
Provisioned	O	O
.	O	O

However	O	O
,	O	O
the	O	O
account	O	O
is	O	O
no	O	O
longer	O	O
profiled	O	O
by	O	O
Active	O	O
Directory	O	O
.	O	O

Is	O	O
there	O	O
an	O	O
API	O	B-Library
call	O	O
that	O	O
would	O	O
allow	O	O
me	O	O
to	O	O
make	O	O
that	O	O
final	O	O
link	O	O
?	O	O

If	O	O
I	O	O
understand	O	O
your	O	O
question	O	O
correctly	O	O
.	O	O

You	O	O
have	O	O
AD	O	O
user	O	O
deactivated	O	O
in	O	O
AD	O	O
,	O	O
that	O	O
in	O	O
turn	O	O
deprovisioned	O	O
in	O	O
Okta	O	B-Application
.	O	O

Now	O	O
when	O	O
you	O	O
reactivate	O	O
the	O	O
user	O	O
in	O	O
AD	O	O
the	O	O
user	O	O
and	O	O
later	O	O
in	O	O
Okta	O	B-Application
,	O	O
the	O	O
user	O	O
is	O	O
no	O	O
longer	O	O
mastered	O	O
by	O	O
AD	O	O
?	O	O

If	O	O
that	O	O
is	O	O
the	O	O
case	O	O
,	O	O
once	O	O
you	O	O
activate	O	O
the	O	O
user	O	O
in	O	O
Okta	O	B-Application
(	O	O
via	O	O
API	O	B-Library
the	O	O
request	O	O
will	O	O
be	O	O
POST	O	O
/api/v1/users/{{userId}}/lifecycle/activate?sendEmail=false	O	O
)	O	O
after	O	O
activating	O	O
in	O	O
AD	O	O
,	O	O
you	O	O
need	O	O
to	O	O
run	O	O
the	O	O
import	O	O
for	O	O
AD	O	O
.	O	O

Import	O	O
will	O	O
import	O	O
reactivated	O	O
user	O	O
and	O	O
once	O	O
you	O	O
confirm	O	O
the	O	O
assignment	O	O
user	O	O
will	O	O
be	O	O
AD	O	O
mastered	O	O
again	O	O
.	O	O

I	O	O
have	O	O
a	O	O
table	O	B-Data_Structure
with	O	O
one	O	O
of	O	O
the	O	O
columns	O	B-Data_Structure
as	O	O
varbinary	O	B-Data_Type
,	O	O
which	O	O
actually	O	O
contains	O	O
base64	O	B-Data_Type
encoded	O	O
string	O	B-Data_Type
.	O	O

I	O	O
can	O	O
see	O	O
its	O	O
contents	O	O
using	O	O

However	O	O
,	O	O
I	O	O
need	O	O
to	O	O
convert	O	O
the	O	O
whole	O	O
column	O	B-Data_Structure
to	O	O
XMl	O	B-Language
,	O	O
so	O	O
that	O	O
these	O	O
kind	O	O
of	O	O
cast	O	O
is	O	O
not	O	O
required	O	O
and	O	O
I	O	O
can	O	O
store	O	O
much	O	O
longer	O	O
strings	O	B-Data_Type
as	O	O
XML	O	B-Language
.	O	O

For	O	O
a	O	O
single	O	O
entry	O	O
I	O	O
can	O	O
do	O	O
something	O	O
like	O	O

How	O	O
do	O	O
I	O	O
convert	O	O
the	O	O
whole	O	O
table	O	B-Data_Structure
to	O	O
xml	O	B-Language
?	O	O

Thanks	O	O

How	O	O
about	O	O
using	O	O
for	B-Code_Block	O
xml	I-Code_Block	B-Language
path	I-Code_Block	O
?	O	O

You	O	O
can	O	O
include	O	O
the	O	O
appropriate	O	O
annotations	O	O
.	O	O

You	O	O
can	O	O
also	O	O
have	O	O
multiple	O	O
columns	O	B-Data_Structure
.	O	O

The	O	O
documentation	O	O
is	O	O
here	O	O
.	O	O

This	O	O
should	O	O
work	O	O
for	O	O
you	O	O
:	O	O

I	O	O
have	O	O
a	O	O
two	O	O
dimensional	O	O
array	O	B-Data_Structure
and	O	O
I	O	O
ca	O	O
n't	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
count	O	O
the	O	O
number	O	O
of	O	O
elements	O	O
in	O	O
the	O	O
second	O	O
dimension	O	O
of	O	O
the	O	O
array	O	B-Data_Structure
.	O	O

For	O	O
example	O	O
:	O	O

How	O	O
can	O	O
I	O	O
count	O	O
the	O	O
number	O	O
of	O	O
elements	O	O
in	O	O
$multi_array[0][1]	B-Code_Block	B-Code_Block
for	O	O
example	O	O
?	O	O

The	O	O
output	O	O
of	O	O
:	O	O

count($ALPHABET[0][0])	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block

is	O	O
1	B-Code_Block	B-Value
where	O	O
it	O	O
should	O	O
be	O	O
7	B-Code_Block	B-Value

Treat	O	O
every	O	O
element	O	O
as	O	O
array	O	B-Data_Structure

I	O	O
hope	O	O
this	O	O
can	O	O
help	O	O

$multiarray[0][1]	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
,	O	O
not	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

You	O	O
can	O	O
do	O	O
count($multiarray[$index])	B-Code_Block	B-Code_Block
or	O	O
sum	O	O
them	O	O
all	O	O
by	O	O
:	O	O

Or	O	O
the	O	O
equivalent	O	O
:	O	O

How	O	O
do	O	O
I	O	O
change	O	O
the	O	O
looks	O	O
of	O	O
how	O	O
the	O	O
source	O	O
code	O	O
is	O	O
presented	O	O
in	O	O
doxygen	O	B-Application
?	O	O

I	O	O
mean	O	O
,	O	O
when	O	O
you	O	O
click	O	O
the	O	O
link	O	O
to	O	O
view	O	O
the	O	O
source	O	O
code	O	O
of	O	O
the	O	O
file(s)	O	O
that	O	O
generated	O	O
the	O	O
documentation	O	O
.	O	O

I	O	O
'm	O	O
interested	O	O
in	O	O
changing	O	O
the	O	O
font	O	O
size	O	O
.	O	O

You	O	O
can	O	O
use	O	O
custom	O	O
CSS	O	B-Language
to	O	O
style	O	O
Doxygen	O	B-Application
output	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
make	O	O
a	O	O
table	O	B-Data_Structure
work	O	O
with	O	O
Guid	O	B-Variable
ids	O	B-Variable
instead	O	O
of	O	O
bigint	O	B-Data_Type
,	O	O
and	O	O
different	O	O
name	O	O
than	O	O
id	O	B-Variable
,	O	O
is	O	O
this	O	O
possible	O	O
to	O	O
use	O	O
Guids	O	B-Variable
and	O	O
different	O	O
id	O	B-Variable
name	O	O
for	O	O
the	O	O
client	O	B-Application
model	O	O
?	O	O

Thanks	O	O

I	O	O
have	O	O
3	O	O
commits	O	O
and	O	O
i	O	O
want	O	O
to	O	O
skip	O	O
a	O	O
commit	O	O
-2	O	B-Value
while	O	O
rebasing	O	O
into	O	O
1	O	B-Value

say	O	O

i	O	O
did	O	O
git	O	B-Code_Block
rebase	O	I-Code_Block
-i	O	I-Code_Block
HEAD	O	I-Code_Block
~	O	I-Code_Block
3	O	I-Code_Block

i	O	O
tried	O	O
like	O	O
this	O	O
(	O	O
removed	O	O
the	O	O
pick	O	O
commit	O	B-Code_Block
-2	O	I-Code_Block
)	O	O
but	O	O
that	O	O
deleted	O	O
the	O	O
commit	O	B-Code_Block
-2	O	I-Code_Block
itself	O	O
from	O	O
git	O	B-Application
log	O	B-File_Type
:(	O	O

Someone	O	O
please	O	O
help	O	O
me	O	O
how	O	O
can	O	O
i	O	O
squash	O	O
commit	O	O
1	O	O
and	O	O
commit	O	O
3	O	O
using	O	O
command	O	O
only	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
care	O	O
about	O	O
the	O	O
history	O	O
of	O	O
the	O	O
branch	O	O
and	O	O
the	O	O
commits	O	O
;	O	O
you	O	O
can	O	O
start	O	O
a	O	O
branch	O	O
from	O	O
commit-4	O	B-Code_Block
;	O	I-Code_Block
cherry	O	O
pick	O	O
1	O	B-Value
and	O	O
3	O	B-Value
,	O	O
squash	O	O
them	O	O
and	O	O
then	O	O
cherry	O	O
pick	O	O
commit-2	O	B-Code_Block
.	O	O

You	O	O
will	O	O
be	O	O
on	O	O
a	O	O
new	O	O
branch	O	O
but	O	O
it	O	O
will	O	O
have	O	O
the	O	O
end	O	O
result	O	O
you	O	O
need	O	O
.	O	O

Also	O	O
,	O	O
I	O	O
assumed	O	O
the	O	O
commits	O	O
would	O	O
not	O	O
have	O	O
conflicts	O	O
.	O	O

If	O	O
I	O	O
'm	O	O
understanding	O	O
correctly	O	O
,	O	O
just	O	O
reorder	O	O
the	O	O
commits	O	O
:	O	O

This	O	O
would	O	O
place	O	O
commit	B-Code_Block	B-Code_Block
-2	I-Code_Block	I-Code_Block
after	O	O
-1	B-Code_Block	B-Value
and	O	O
-3	B-Code_Block	B-Value
;	O	O
put	O	O
-2	B-Code_Block	B-Value
on	O	O
top	O	O
if	O	O
you	O	O
want	O	O
it	O	O
to	O	O
come	O	O
before	O	O
.	O	O

(	O	O
Commits	O	O
are	O	O
evaluated	O	O
top	O	O
to	O	O
bottom	O	O
.	O	O
)	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
do	O	O
this	O	O
in	O	O
Enterprise	O	B-Application
Guide	O	I-Application
,	O	O
with	O	O
a	O	O
task	O	O
,	O	O
otherwise	O	O
I	O	O
would	O	O
just	O	O
use	O	O
a	O	O
data	O	O
step	O	O
.	O	O

In	O	O
a	O	O
data	O	O
step	O	O
,	O	O
this	O	O
would	O	O
be	O	O
:	O	O

The	O	O
following	O	O
method	O	O
is	O	O
pretty	O	O
simple	O	O
way	O	O
to	O	O
get	O	O
records	O	O
present	O	O
in	O	O
one	O	O
table	O	B-Data_Structure
and	O	O
not	O	O
in	O	O
the	O	O
other	O	O
.	O	O

Created	O	O
table	O	B-Data_Structure
new	O	O
with	O	O
records	O	O
containing	O	O
sex	O	O
=	O	O
M	O	O
,	O	O
the	O	O
result	O	O
after	O	O
the	O	O
query	O	O
will	O	O
be	O	O
records	O	O
with	O	O
sex	O	O
=	O	O
F	O	O
.	O	O

Example	O	O
:	O	O

Will	O	O
put	O	O
the	O	O
code	O	O
to	O	O
test	O	O
on	O	O
my	O	O
actual	O	O
datasets	O	O
which	O	O
are	O	O
of	O	O
around	O	O
100k	O	O
obs	O	O
and	O	O
update	O	O
the	O	O
result	O	O
.	O	O

P.S	O	O
:	O	O
I	O	O
know	O	O
the	O	O
question	O	O
has	O	O
been	O	O
asked	O	O
answered	O	O
and	O	O
forgotten	O	O
,	O	O
I	O	O
was	O	O
looking	O	O
for	O	O
a	O	O
way	O	O
to	O	O
do	O	O
the	O	O
above	O	O
and	O	O
could	O	O
n't	O	O
find	O	O
a	O	O
direct	O	O
answer	O	O
any	O	O
where	O	O
.	O	O

So	O	O
,	O	O
adding	O	O
so	O	O
that	O	O
it	O	O
may	O	O
come	O	O
handy	O	O
.	O	O

:)	O	O

My	O	O
first	O	O
answer	O	O
also	O	O
.	O	O

:)	O	O

Here	O	O
's	O	O
one	O	O
way	O	O
.	O	O

There	O	O
are	O	O
surely	O	O
many	O	O
others	O	O
.	O	O

This	O	O
is	O	O
my	O	O
model	O	O
class	O	O
.	O	O

Does	O	O
nHibernate	O	B-Application
offer	O	O
a	O	O
way	O	O
to	O	O
represent	O	O
this	O	O
while	O	O
maintaining	O	O
the	O	O
simple	O	O
public	O	O
API	O	O
of	O	O
the	O	O
model	O	O
?	O	O

Not	O	O
sure	O	O
if	O	O
it	O	O
will	O	O
work	O	O
with	O	O
observable	O	O
collection	O	O
(	O	O
may	O	O
need	O	O
to	O	O
map	O	O
as	O	O
IList	O	B-Class
and	O	O
handle	O	O
that	O	O
behind	O	O
the	O	O
scenes	O	O
)	O	O
but	O	O
I	O	O
think	O	O
you	O	O
'd	O	O
need	O	O
to	O	O
do	O	O
something	O	O
like	O	O
this	O	O
in	O	O
your	O	O
mapping	O	O
:	O	O

The	O	O
only	O	O
drawback	O	O
is	O	O
it	O	O
does	O	O
require	O	O
a	O	O
keyed	O	O
table	O	B-Data_Structure
for	O	O
your	O	O
tag	O	B-Variable
values	O	O
.	O	O

However	O	O
,	O	O
I	O	O
worry	O	O
that	O	O
the	O	O
same	O	O
tag	O	B-Variable
can	O	O
appear	O	O
on	O	O
multiple	O	O
leads	O	O
.	O	O

If	O	O
this	O	O
is	O	O
the	O	O
case	O	O
,	O	O
I	O	O
think	O	O
you	O	O
will	O	O
want	O	O
to	O	O
define	O	O
tags	O	B-Variable
as	O	O
a	O	O
many	O	O
to	O	O
many	O	O
with	O	O
an	O	O
intermediate	O	O
table	O	B-Data_Structure
.	O	O

That	O	O
would	O	O
look	O	O
something	O	O
like	O	O
this	O	O
(	O	O
requiring	O	O
an	O	O
object	O	O
for	O	O
your	O	O
tag	O	B-Variable
)	O	O
:	O	O

I	O	O
want	O	O
to	O	O
know	O	O
how	O	O
I	O	O
can	O	O
output	O	O
concatenated	O	O
string	O	B-Data_Type
from	O	O
multiple	O	O
SQL	O	B-Language
CASE	B-Code_Block	B-Code_Block
expressions	O	O
.	O	O

This	O	O
is	O	O
my	O	O
query	O	O
:	O	O

I	O	O
'm	O	O
getting	O	O
this	O	O
:	O	O

So	O	O
instead	O	O
of	O	O
the	O	O
two	O	O
columns	O	O
B	O	B-Variable
and	O	O
LK	O	B-Variable
,	O	O
I	O	O
want	O	O
to	O	O
introduce	O	O
a	O	O
new	O	O
column	O	B-Data_Structure
which	O	O
will	O	O
be	O	O
called	O	O
Access	O	O
Level	O	O
,	O	O
and	O	O
if	O	O
B	O	B-Variable
is	O	O
Active	O	O
or	O	O
LK	O	B-Variable
is	O	O
active	O	O
,	O	O
add	O	O
B	O	B-Variable
or	O	O
LK	O	B-Variable
depending	O	O
for	O	O
each	O	O
program	O	O
.	O	O

For	O	O
example	O	O
,	O	O
if	O	O
B	O	B-Variable
only	O	O
is	O	O
active	O	O
,	O	O
output	O	O
for	O	O
'	O	O
Access	O	O
Level	O	O
'	O	O
column	O	B-Data_Structure
will	O	O
be	O	O
B	O	B-Variable
,	O	O
if	O	O
both	O	O
programs	O	O
are	O	O
active	O	O
then	O	O
output	O	O
will	O	O
be	O	O
'	O	O
B	O	O
,	O	O
LK	O	O
'	O	O
,	O	O
if	O	O
LK	O	B-Variable
is	O	O
active	O	O
only	O	O
,	O	O
the	O	O
column	O	B-Data_Structure
will	O	O
have	O	O
vakue	O	O
of	O	O
LK	O	B-Variable
.	O	O

What	O	O
are	O	O
my	O	O
options	O	O
to	O	O
concatenate	O	O
a	O	O
column	O	B-Data_Structure
value	O	O
from	O	O
multiple	O	O
case	O	B-Code_Block
queries	O	O
?	O	O

Thanks	O	O
,	O	O
Laziale	O	B-User_Name

Write	O	O
a	O	O
third	O	O
CASE	O	B-Code_Block
expression	O	O
that	O	O
checks	O	O
the	O	O
combinations	O	O
you	O	O
describe	O	O
and	O	O
assigns	O	O
the	O	O
appropriate	O	O
value	O	O
.	O	O

In	O	O
pseudocode	O	O
:	O	O

CASE	O	B-Code_Block
expressions	O	O
are	O	O
evaluated	O	O
in	O	O
order	O	O
from	O	O
top	O	O
to	O	O
bottom	O	O
and	O	O
resolve	O	O
to	O	O
the	O	O
first	O	O
WHEN	O	O
condition	O	O
that	O	O
is	O	O
met	O	O
,	O	O
so	O	O
if	O	O
both	O	O
B	O	B-Variable
and	O	O
LK	O	B-Variable
are	O	O
active	O	O
,	O	O
then	O	O
the	O	O
first	O	O
condition	O	O
will	O	O
be	O	O
met	O	O
,	O	O
the	O	O
first	O	O
result	O	O
will	O	O
be	O	O
returned	O	O
,	O	O
and	O	O
it	O	O
wo	O	O
n't	O	O
matter	O	O
that	O	O
the	O	O
other	O	O
two	O	O
conditions	O	O
are	O	O
also	O	O
both	O	O
true	O	B-Value
.	O	O

You	O	O
can	O	O
do	O	O
it	O	O
as	O	O
:	O	O

I	O	O
have	O	O
to	O	O
accept	O	O
either	O	O
input	O	O
from	O	O
keyboard	O	B-Device
or	O	O
2d	O	B-Device
barcode	O	I-Device
scanner	O	I-Device
.	O	O

The	O	O
input	O	O
is	O	O
mixture	O	O
of	O	O
alpha	O	O
numeric	O	O
,	O	O
also	O	O
I	O	O
want	O	O
user	O	O
to	O	O
be	O	O
able	O	O
to	O	O
use	O	O
Ctrl+v	B-Keyboard_IP	B-Keyboard_IP
to	O	O
paste	O	O
their	O	O
input	O	O
.	O	O

Currently	O	O
if	O	O
I	O	O
try	O	O
Ctrl+v	B-Keyboard_IP	B-Keyboard_IP
,	O	O
only	O	O
v	B-Keyboard_IP	B-Keyboard_IP
key	O	O
is	O	O
detected	O	O
and	O	O
shown	O	O
.	O	O

Also	O	O
my	O	O
cursor	O	B-User_Interface_Element
autofocus	O	O
does	O	O
not	O	O
work	O	O
,	O	O
no	O	O
matter	O	O
what	O	O
I	O	O
try	O	O
.	O	O

See	O	O
below	O	O
the	O	O
javascript	O	B-Language
.	O	O

and	O	O
here	O	O
is	O	O
the	O	O
html	O	B-Language
part	O	O
.	O	O

Formatted	O	O
HTML	O	B-Language
:	O	O

My	O	O
question	O	O
could	O	O
sound	O	O
like	O	O
weird	O	O
,	O	O
I	O	O
want	O	O
to	O	O
include	O	O
a	O	O
template	O	O
in	O	O
a	O	O
CFML	O	B-Language
script	O	O
but	O	O
not	O	O
as	O	O
a	O	O
different	O	O
file	O	O
but	O	O
a	O	O
string/text/base64	O	B-Data_Type
data	O	O
in	O	O
the	O	O
same	O	O
file	O	O
.	O	O

Is	O	O
that	O	O
possible	O	O
or	O	O
there	O	O
is	O	O
a	O	O
way	O	O
in	O	O
CFML	O	B-Language
?	O	O

I	O	O
can	O	O
do	O	O
that	O	O
in	O	O
PHP	O	B-Language
with	O	O
files	O	O
as	O	O
base64	O	B-Data_Type
data	O	O
even	O	O
images	O	B-User_Interface_Element
base64	O	B-Data_Type
encoded	O	O
.	O	O

I	O	O
thought	O	O
about	O	O
something	O	O
like	O	O
(	O	O
not	O	O
working	O	O
,	O	O
of	O	O
course	O	O
)	O	O
:	O	O

Why	O	O
would	O	O
I	O	O
do	O	O
that	O	O
?	O	O

To	O	O
overcome	O	O
errors	O	O
between	O	O
different	O	O
functions	O	O
with	O	O
same	O	O
name	O	O
in	O	O
different	O	O
CF	O	B-Application
versions	O	O
(	O	O
6	O	B-Version
,	O	O
7	O	B-Version
,	O	O
8	O	B-Version
,	O	O
9	O	B-Version
,	O	O
20	O	B-Version
)	O	O
but	O	O
same	O	O
names	O	O
,	O	O
for	O	O
portability	O	O
.	O	O

Found	O	O
a	O	O
way	O	O
to	O	O
make	O	O
it	O	O
work	O	O
,	O	O
not	O	O
really	O	O
what	O	O
I	O	O
wanted	O	O
but	O	O
works	O	O
:	O	O

I	O	O
have	O	O
custom	O	O
control	O	O
and	O	O
I	O	O
have	O	O
interface	O	O
this	O	O
control	O	O
exposes	O	O
to	O	O
it	O	O
's	O	O
users	O	O
.	O	O

Need	O	O
to	O	O
implement	O	O
it	O	O
like	O	O
so	O	O
:	O	O

So	O	O
,	O	O
how	O	O
do	O	O
I	O	O
tell	O	O
that	O	O
this	O	O
generic	O	O
method	O	O
is	O	O
really	O	O
implementation	O	O
of	O	O
interface	O	O
?	O	O

The	O	O
type	O	O
parameter	O	O
does	O	O
n't	O	O
have	O	O
any	O	O
bearing	O	O
one	O	O
way	O	O
or	O	O
another	O	O
on	O	O
the	O	O
derived	O	O
class	O	O
being	O	O
an	O	O
implementation	O	O
of	O	O
the	O	O
interface	O	O
.	O	O

for	O	O
instance	O	O
:	O	O

Bot	O	O
A	O	B-Class
and	O	O
B	O	B-Class
are	O	O
implementations	O	O
of	O	O
I	O	B-Class
.	O	O

If	O	O
you	O	O
right-click	O	O
on	O	O
the	O	O
interface	O	O
and	O	O
choose	O	O
implement	O	O
interface	O	O
,	O	O
it	O	O
will	O	O
do	O	O
it	O	O
for	O	O
you	O	O
,	O	O
but	O	O
the	O	O
way	O	O
you	O	O
have	O	O
the	O	O
interface	O	O
designed	O	O
,	O	O
it	O	O
wont	O	O
match	O	O
the	O	O
interface	O	O
's	O	O
definition	O	O
.	O	O

To	O	O
make	O	O
them	O	O
match	O	O
,	O	O
you	O	O
can	O	O
do	O	O
the	O	O
following	O	O
(	O	O
now	O	O
the	O	O
implementation	O	O
will	O	O
match	O	O
the	O	O
signature	O	O
of	O	O
the	O	O
interface	O	O
)	O	O
:	O	O

I	O	O
have	O	O
standard	O	O
top-level	O	O
Git	O	B-Application
repository	O	O
with	O	O
Git	O	B-Application
submodules	O	O
.	O	O

It	O	O
is	O	O
known	O	O
that	O	O
when	O	O
commit	O	O
id	O	O
recorded	O	O
by	O	O
top-level	O	O
repository	O	O
does	O	O
not	O	O
match	O	O
actual	O	O
HEAD	B-Code_Block	B-Code_Block
for	O	O
specific	O	O
submodule	O	O
,	O	O
git	B-Code_Block	B-Code_Block
status	I-Code_Block	I-Code_Block
from	O	O
top-level	O	O
repository	O	O
reports	O	O
it	O	O
by	O	O
(	B-Code_Block	O
new	I-Code_Block	O
commits	I-Code_Block	O
)	I-Code_Block	O
(	O	O
for	O	O
example	O	O
)	O	O
:	O	O

Problem	O	O

Now	O	O
,	O	O
in	O	O
some	O	O
circumstances	O	O
,	O	O
git	B-Code_Block	B-Code_Block
status	I-Code_Block	I-Code_Block
stops	O	O
reporting	O	O
(	B-Code_Block	O
new	I-Code_Block	O
commits	I-Code_Block	O
)	I-Code_Block	O
for	O	O
just	O	O
some	O	O
of	O	O
the	O	O
submodules	O	O
even	O	O
if	O	O
it	O	O
is	O	O
clear	O	O
that	O	O
there	O	O
are	O	O
new	O	O
commits	O	O
-	O	O
it	O	O
may	O	O
incorrectly	O	O
stop	O	O
reporting	O	O
(	B-Code_Block	O
new	I-Code_Block	O
commits	I-Code_Block	O
)	I-Code_Block	O
for	O	O
submodule-a.git	B-Code_Block	B-Code_Block
while	O	O
still	O	O
showing	O	O
properly	O	O
(	B-Code_Block	O
new	I-Code_Block	O
commits	I-Code_Block	O
)	I-Code_Block	O
for	O	O
submodule-b.git	B-Code_Block	B-Code_Block
.	O	O

I	O	O
can	O	O
verify	O	O
that	O	O
commit	O	O
ids	O	O
do	O	O
not	O	O
match	O	O
:	O	O

What	O	O
top-level	O	O
repository	O	O
"	O	O
thinks	O	O
"	O	O
:	O	O

What	O	O
submodule	O	O
repository	O	O
"	O	O
thinks	O	O
"	O	O
:	O	O

By	O	O
the	O	O
way	O	O
,	O	O
both	O	O
top-level	O	O
and	O	O
submodule	O	O
repositories	O	O
are	O	O
otherwise	O	O
have	O	O
clean	O	O
status	O	O
:	O	O

Top-level	O	O
(	O	O
note	O	O
missing	O	O
entry	O	O
for	O	O
submodule-a.git	B-Code_Block	B-Code_Block
)	O	O
:	O	O

Submodule	O	O
:	O	O

This	O	O
is	O	O
a	O	O
problem	O	O
because	O	O
I	O	O
'm	O	O
also	O	O
unable	O	O
to	O	O
update	O	O
(	O	O
as	O	O
in	O	O
git	B-Code_Block	B-Code_Block
add	I-Code_Block	I-Code_Block
--all	I-Code_Block	I-Code_Block
&&	I-Code_Block	I-Code_Block
git	I-Code_Block	I-Code_Block
commit	I-Code_Block	I-Code_Block
)	O	O
commit	O	O
ids	O	O
for	O	O
such	O	O
submodules	O	O
recorded	O	O
by	O	O
top-level	O	O
repository	O	O
because	O	O
it	O	O
simply	O	O
"	O	O
thinks	O	O
"	O	O
there	O	O
is	O	O
nothing	O	O
to	O	O
update	O	O
.	O	O

Platform/Version	O	O
:	O	O
GNU/Linux	O	B-Operating_System
4.2.6-200.fc22.x86_64	O	B-Version
,	O	O
git	O	B-Application
version	O	O
2.4.3	O	B-Version
(	O	O
also	O	O
confirmed	O	O
on	O	O
2.5.0	O	B-Version
)	O	O
.	O	O

Question	O	O

Is	O	O
it	O	O
a	O	O
bug	O	O
or	O	O
there	O	O
is	O	O
an	O	O
option	O	O
somewhere	O	O
which	O	O
may	O	O
disable	O	O
such	O	O
(	B-Code_Block	O
new	I-Code_Block	O
commits	I-Code_Block	O
)	I-Code_Block	O
report	O	O
?	O	O

I	O	O
re-confirmed	O	O
the	O	O
issue	O	O
.	O	O

Then	O	O
I	O	O
(	O	O
in-place	O	O
)	O	O
upgraded	O	O
OS	O	O
to	O	O
recently	O	O
released	O	O
Fedora	O	B-Operating_System
24	O	B-Version
(	O	O
which	O	O
has	O	O
Git	O	B-Application
2.7.4	B-Code_Block	B-Version
by	O	O
default	O	O
)	O	O
-	O	O
the	O	O
same	O	O
filesystem	O	O
content	O	O
was	O	O
preserved	O	O
(	O	O
repositories	O	O
and	O	O
configuration	O	O
)	O	O
.	O	O

And	O	O
the	O	O
issue	O	O
disappeared	O	O
.	O	O

So	O	O
,	O	O
it	O	O
must	O	O
have	O	O
been	O	O
a	O	O
bug	O	O
in	O	O
previous	O	O
versions	O	O
of	O	O
git	O	B-Application
.	O	O

One	O	O
retrospective	O	O
observation	O	O
-	O	O
I	O	O
never	O	O
managed	O	O
to	O	O
reproduce	O	O
things	O	O
manually	O	O
using	O	O
short	O	O
branch	O	O
names	O	O
.	O	O

The	O	O
problem	O	O
appeared	O	O
in	O	O
CI	O	O
when	O	O
many	O	O
automatic	O	O
branches	O	O
were	O	O
created	O	O
over	O	O
the	O	O
time	O	O
~	O	O
100	O	O
(	O	O
one	O	O
per	O	O
build	O	O
)	O	O
with	O	O
long	O	O
names	O	O
~	O	O
120+	O	O
characters	O	O
.	O	O

These	O	O
condition	O	O
might	O	O
hit	O	O
some	O	O
unhandled	O	O
edge	O	O
cases	O	O
in	O	O
Git	O	B-Application
.	O	O

I	O	O
have	O	O
a	O	O
Java	O	B-Application
EE	O	B-Version
project	O	O
that	O	O
uses	O	O
lots	O	O
of	O	O
html	O	B-Language
,	O	O
javascript	O	B-Language
,	O	O
java	O	B-Language
etc	O	O
.	O	O

I	O	O
'm	O	O
looking	O	O
to	O	O
use	O	O
JQuery	O	B-Library
to	O	O
load	O	O
up	O	O
an	O	O
html	O	B-Language
template	O	O
into	O	O
a	O	O
div	O	B-HTML_XML_Tag
tag	O	O
however	O	O
I	O	O
'm	O	O
unsure	O	O
of	O	O
where	O	O
the	O	O
relative	O	O
path	O	O
of	O	O
the	O	O
load	O	B-Function
method	O	O
starts	O	O
from	O	O
.	O	O

The	O	O
html	O	B-File_Type
file	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
load	O	O
is	O	O
within	O	O
the	O	O
project	O	O
but	O	O
in	O	O
a	O	O
different	O	O
directory	O	O
.	O	O

Would	O	O
I	O	O
have	O	O
to	O	O
back	O	O
down	O	O
and	O	O
go	O	O
back	O	O
up	O	O
to	O	O
get	O	O
to	O	O
the	O	O
path	O	O
?	O	O

And	O	O
if	O	O
there	O	O
is	O	O
an	O	O
easy	O	O
way	O	O
to	O	O
find	O	O
out	O	O
by	O	O
some	O	O
type	O	O
of	O	O
debugging	O	O
methods	O	O
of	O	O
what	O	O
the	O	O
correct	O	O
path	O	O
is	O	O
...	O	O
.	O	O
that	O	O
would	O	O
be	O	O
BONUS	O	O
!	O	O

The	O	O
javascript	O	B-Language
(	O	O
JQuery	O	B-Library
)	O	O
that	O	O
its	O	O
using	O	O
is	O	O
loaded	O	O
in	O	O
,	O	O
the	O	O
line	O	O
below	O	O
is	O	O
also	O	O
in	O	O
another	O	O
file	O	O
.	O	O

I	O	O
have	O	O
something	O	O
like	O	O
the	O	O
following	O	O

I	O	O
hope	O	O
I	O	O
explained	O	O
this	O	O
clearly	O	O
.	O	O

I	O	O
feel	O	O
like	O	O
I	O	O
keep	O	O
changing	O	O
the	O	O
path	O	O
but	O	O
get	O	O
nothing	O	O
.	O	O

I	O	O
'm	O	O
taking	O	O
stabs	O	O
in	O	O
the	O	O
dark	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

Javascript	O	B-Language
runs	O	O
in	O	O
the	O	O
browser	O	B-Application
,	O	O
it	O	O
has	O	O
no	O	O
knowledge	O	O
of	O	O
your	O	O
Java	O	B-Application
EE	O	B-Version
project	O	O
.	O	O

You	O	O
can	O	O
open	O	O
up	O	O
your	O	O
browsers	O	B-Application
console	O	I-Application
and	O	O
write	O	O
this	O	O
on	O	O
the	O	O
page	O	O
to	O	O
see	O	O
:	O	O

It	O	O
depends	O	O
on	O	O
the	O	O
page	O	O
's	O	O
url	O	O
you	O	O
are	O	O
running	O	O
the	O	O
code	O	O
on	O	O
.	O	O

Note	O	O
that	O	O
"	B-Code_Block	B-Value
\	I-Code_Block	I-Value
"	B-Code_Block	B-Value
is	O	O
escape	O	O
character	O	O
in	O	O
javascript	O	B-Language
strings	O	B-Data_Type
.	O	O

You	O	O
probably	O	O
wanted	O	O
"	B-Code_Block	B-Value
/	I-Code_Block	I-Value
"	I-Code_Block	I-Value
there	O	O
.	O	O

You	O	O
can	O	O
specify	O	O
the	O	O
absolute	O	O
url	O	O
by	O	O
staring	O	O
it	O	O
with	O	O
a	O	O
slash	O	B-Value
.	O	O

will	O	O
reference	O	O
http://www.[yourwebsite].com/src/main/webapp/resources/js/template/Event/EventMainTemplate.html	O	O

That	O	O
has	O	O
caused	O	O
me	O	O
a	O	O
lot	O	O
of	O	O
trouble	O	O
before	O	O

I	O	O
have	O	O
tried	O	O
various	O	O
failed	O	O
methods	O	O
for	O	O
these	O	O
by	O	O
other	O	O
similar	O	O
questions	O	O
.	O	O

Hopefully	O	O
,	O	O
y'all	O	O
can	O	O
help	O	O
me	O	O
.	O	O

I	O	O
need	O	O
help	O	O
in	O	O
the	O	O
part	O	O
where	O	O
socket	O	B-Variable
receives	O	O
an	O	O
event	O	O
.	O	O

Please	O	O
comment	O	O
if	O	O
you	O	O
require	O	O
any	O	O
more	O	O
details	O	O
from	O	O
me	O	O

You	O	O
can	O	O
try	O	O
this	O	O
,	O	O
provided	O	O
#messages	B-Code_Block	B-Code_Block
is	O	O
the	O	O
scroll-able	O	O
area	O	O
in	O	O
your	O	O
DOM	O	B-Library
.	O	O

wrap	O	O
the	O	O
ul.messages	O	B-HTML_XML_Tag
in	O	O
a	O	O
div	O	B-HTML_XML_Tag
with	O	O
a	O	O
class	O	B-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
msg-con	O	I-Code_Block
"	O	I-Code_Block

now	O	O
add	O	O
the	O	O
javascript	O	B-Language

hope	O	O
this	O	O
works	O	O
..	O	O
.	O	O

Given	O	O
three	O	O
major	O	O
competing	O	O
applications	O	O
each	O	O
implementing	O	O
a	O	O
slightly	O	O
different	O	O
data	O	O
schema	O	O
for	O	O
the	O	O
same	O	O
problem	O	O
domain	O	O
,	O	O
I	O	O
am	O	O
faced	O	O
with	O	O
the	O	O
task	O	O
of	O	O
implementing	O	O
:	O	O

a	O	O
"	O	O
canonical	O	O
"	O	O
data	O	O
schema	O	O
expressive	O	O
enough	O	O
to	O	O
represent	O	O
something	O	O
like	O	O
the	O	O
intersection	O	O
set	O	O
of	O	O
features	O	O
of	O	O
all	O	O
3	O	O
applications	O	O
as	O	O
well	O	O
as	O	O
additional	O	O
details	O	O
(	O	O
meta	O	O
data	O	O
)	O	O

converters	O	O
for	O	O
doing	O	O
(	O	O
bidirectional	O	O
)	O	O
data	O	O
exchange	O	O
between	O	O
those	O	O
3	O	O
applications	O	O
and	O	O
the	O	O
canonical	O	O
schema	O	O

How	O	O
I	O	O
currently	O	O
approach	O	O
the	O	O
task	O	O

The	O	O
canonical	O	O
schema	O	O
is	O	O
defined	O	O
using	O	O
XSD	O	O
and	O	O
closely	O	O
resembles	O	O
the	O	O
data	O	O
schema	O	O
of	O	O
one	O	O
of	O	O
the	O	O
3	O	O
applications	O	O
,	O	O
let	O	O
's	O	O
call	O	O
it	O	O
A	O	B-Variable
.	O	O

This	O	O
renders	O	O
data	O	O
exchange	O	O
with	O	O
A	O	B-Variable
trivial	O	O
.	O	O

In	O	O
order	O	O
to	O	O
allow	O	O
for	O	O
a	O	O
bidirectional	O	O
data	O	O
exchange	O	O
with	O	O
applications	O	O
B	O	B-Variable
and	O	O
C	O	B-Variable
(	O	O
create	O	O
some	O	O
state	O	O
in	O	O
A	O	B-Variable
,	O	O
load	O	O
it	O	O
into	O	O
B	O	B-Variable
,	O	O
alter	O	O
it	O	O
in	O	O
B	O	B-Variable
,	O	O
load	O	O
the	O	O
altered	O	O
state	O	O
into	O	O
A	O	O
)	O	B-Variable
,	O	O
I	O	O
try	O	O
to	O	O
map	O	O
simples	O	O
states	O	O
in	O	O
A	O	B-Variable
onto	O	O
more	O	O
complex	O	O
states	O	O
in	O	O
B/C	O	B-Variable
which	O	O
can	O	O
be	O	O
identified	O	O
and	O	O
deconstructed	O	O
in	O	O
the	O	O
reverse	O	O
mapping	O	O
.	O	O

Why	O	O
I	O	O
want	O	O
to	O	O
change	O	O
my	O	O
approach	O	O

Most	O	O
of	O	O
the	O	O
schema	O	O
mappings	O	O
are	O	O
pretty	O	O
trivial	O	O
(	O	O
the	O	O
name	O	O
of	O	O
an	O	O
object	O	O
in	O	O
A	O	B-Variable
simply	O	O
maps	O	O
to	O	O
the	O	O
name	O	O
of	O	O
the	O	O
object	O	O
in	O	O
B	O	O
)	O	B-Variable
,	O	O
so	O	O
I	O	O
would	O	O
like	O	O
to	O	O
avoid	O	O
writing	O	O
a	O	O
lot	O	O
of	O	O
trivial	O	O
code	O	O
by	O	O
hand	O	O
.	O	O

I	O	O
imagine	O	O
that	O	O
this	O	O
trivial	O	O
code	O	O
could	O	O
be	O	O
generated	O	O
given	O	O
a	O	O
formalized	O	O
mapping	O	O
between	O	O
the	O	O
data	O	O
schemes	O	O
.	O	O

For	O	O
the	O	O
nontrivial	O	O
parts	O	O
of	O	O
the	O	O
mapping	O	O
(	O	O
like	O	O
the	O	O
one	O	O
desribed	O	O
above	O	O
)	O	O
,	O	O
I	O	O
expect	O	O
lots	O	O
of	O	O
changes	O	O
in	O	O
the	O	O
future	O	O
simply	O	O
because	O	O
it	O	O
seems	O	O
so	O	O
arbitrary	O	O
.	O	O

In	O	O
many	O	O
cases	O	O
a	O	O
specific	O	O
convention	O	O
for	O	O
mapping	O	O
states	O	O
in	O	O
A	O	B-Variable
onto	O	O
more	O	O
complex	O	O
states	O	O
in	O	O
B/C	O	B-Variable
might	O	O
run	O	O
into	O	O
a	O	O
dead	O	O
end	O	O
at	O	O
some	O	O
point	O	O
.	O	O

For	O	O
example	O	O
it	O	O
might	O	O
become	O	O
necessary	O	O
for	O	O
users	O	O
to	O	O
change	O	O
the	O	O
"	O	O
mirrored	O	O
subspace	O	O
"	O	O
label	O	O
and	O	O
therefore	O	O
another	O	O
approach	O	O
for	O	O
identifying	O	O
conversion	O	O
artifacts	O	O
might	O	O
be	O	O
necessary	O	O
.	O	O

I	O	O
imagine	O	O
that	O	O
a	O	O
formalized	O	O
mapping	O	O
could	O	O
be	O	O
a	O	O
tool	O	O
to	O	O
transparently	O	O
manage	O	O
those	O	O
conventions	O	O
.	O	O

Maybe	O	O
a	O	O
reasoner	O	O
could	O	O
even	O	O
automatically	O	O
spot	O	O
incoherent	O	O
,	O	O
inconsistent	O	O
mappings	O	O
.	O	O

It	O	O
might	O	O
also	O	O
allow	O	O
me	O	O
to	O	O
more	O	O
easily	O	O
discuss	O	O
the	O	O
mapping	O	O
with	O	O
domain	O	O
experts	O	O
and	O	O
users	O	O
.	O	O

Questions	O	O

From	O	O
what	O	O
I	O	O
read	O	O
about	O	O
ontologies	O	O
I	O	O
have	O	O
the	O	O
impression	O	O
that	O	O
what	O	O
I	O	O
want	O	O
is	O	O
an	O	O
ontology	O	O
.	O	O

Is	O	O
this	O	O
correct	O	O
?	O	O

As	O	O
I	O	O
understand	O	O
it	O	O
,	O	O
using	O	O
an	O	O
ontology	O	O
to	O	O
describe	O	O
the	O	O
mapping	O	O
would	O	O
also	O	O
require	O	O
me	O	O
to	O	O
express	O	O
the	O	O
data	O	O
schemes	O	O
themselves	O	O
in	O	O
the	O	O
ontology	O	O
(	O	O
so	O	O
a	O	O
relation	O	O
"	O	O
maps	O	O
to	O	O
"	O	O
can	O	O
reference	O	O
a	O	O
type	O	O
from	O	O
A	O	B-Variable
and	O	O
a	O	O
type	O	O
from	O	O
B	O	B-Variable
)	O	O
.	O	O

Since	O	O
those	O	O
schemes	O	O
are	O	O
taken	O	O
from	O	O
long-lived	O	O
applications	O	O
,	O	O
they	O	O
are	O	O
not	O	O
always	O	O
coherent	O	O
.	O	O

For	O	O
example	O	O
,	O	O
a	O	O
"	O	O
feature	O	O
"	O	O
in	O	O
the	O	O
application	O	O
might	O	O
cause	O	O
some	O	O
state	O	O
to	O	O
have	O	O
a	O	O
different	O	O
semantic	O	O
that	O	O
you	O	O
would	O	O
expect	O	O
from	O	O
the	O	O
semantics	O	O
of	O	O
its	O	O
constituents	O	O
.	O	O

Can	O	O
existing	O	O
tools	O	O
help	O	O
me	O	O
with	O	O
managing	O	O
those	O	O
complexities	O	O
?	O	O

I	O	O
expect	O	O
that	O	O
I	O	O
would	O	O
require	O	O
some	O	O
additional	O	O
machinery	O	O
inside	O	O
the	O	O
ontology	O	O
to	O	O
describe	O	O
something	O	O
like	O	O
-taken	O	O
from	O	O
the	O	O
example	O	O
above	O	O
-	O	O
the	O	O
difference	O	O
between	O	O
a	O	O
"	O	O
permanent	O	O
mirrored	O	O
subspace	O	O
"	O	O
and	O	O
a	O	O
"	O	O
dissipating	O	O
mirrored	O	O
subspace	O	O
"	O	O
(	O	O
two	O	O
types	O	O
+	O	O
a	O	O
special	O	O
relation	O	O
reconnecting	O	O
them	O	O
?	O	O
)	O	O
.	O	O

Would	O	O
this	O	O
be	O	O
much	O	O
effort	O	O
to	O	O
do	O	O
?	O	O

Do	O	O
available	O	O
ontology	O	O
languages	O	O
provide	O	O
something	O	O
out-of-the-box	O	O
to	O	O
express	O	O
this	O	O
?	O	O

Is	O	O
this	O	O
application	O	O
of	O	O
ontologies	O	O
a	O	O
common	O	O
application	O	O
for	O	O
ontologies	O	O
or	O	O
is	O	O
it	O	O
a	O	O
corner	O	O
case	O	O
?	O	O

Do	O	O
you	O	O
know	O	O
of	O	O
companies	O	O
who	O	O
provide	O	O
services	O	O
for	O	O
this	O	O
application	O	O
?	O	O

Which	O	O
tools	O	O
would	O	O
you	O	O
suggest	O	O
for	O	O
creating	O	O
the	O	O
ontology	O	O
?	O	O

I	O	O
assume	O	O
there	O	O
are	O	O
no	O	O
off-the-shelf	O	O
tools	O	O
available	O	O
for	O	O
the	O	O
code	O	O
generation	O	O
mentioned	O	O
.	O	O

So	O	O
how	O	O
would	O	O
you	O	O
approach	O	O
the	O	O
code	O	O
generation	O	O
task	O	O
?	O	O

Abstracting	O	O
a	O	O
type	O	O
system	O	O
,	O	O
a	O	O
set	O	O
of	O	O
interfaces	O	O
,	O	O
and	O	O
rules	O	O
for	O	O
transformation	O	O
is	O	O
defined	O	O
as	O	O
subset	O	O
of	O	O
ontology	O	O
creation	O	O
known	O	O
as	O	O
a	O	O
meta-model	O	O
.	O	O

The	O	O
Meta	O	O
Object	O	O
Facility	O	O
(	O	O
MOF	O	O
)	O	O
is	O	O
an	O	O
example	O	O
:	O	O

Topic	O	O
Maps	O	O
are	O	O
another	O	O
:	O	O

References	O	O

InfoGrid	O	O
Web	O	O
Graph	O	O
Database	O	O
:	O	O
What	O	O
are	O	O
the	O	O
differences	O	O
between	O	O
a	O	O
vocabulary	O	O
,	O	O
a	O	O
taxonomy	O	O
,	O	O
a	O	O
thesaurus	O	O
,	O	O
an	O	O
ontology	O	O
,	O	O
and	O	O
a	O	O
meta-model	O	O
?	O	O

Meta	O	O
Object	O	O
Facility	O	O
(	O	O
MOF	O	O
)	O	O

Specification	O	O
(	O	O
pdf	O	B-File_Type
)	O	O

Topic	O	O
Maps	O	O
Now	O	O

An	O	O
Introduction	O	O
to	O	O
Topic	O	O
Maps	O	O

TM4J	O	O
-	O	O
Topic	O	O
Maps	O	O
For	O	O
Java	O	B-Language

Code	O	O
Generation	O	O
with	O	O
OpenDDS	O	B-Language
,	O	O
Part	O	O
I	O	O
:	O	O
:	O	O
OCI	O	O

Paws	O	O
-	O	O
A	O	O
Perl	O	B-Library
SDK	O	I-Library
for	O	O
AWS	O	B-Library
(	O	I-Library
Amazon	O	I-Library
Web	O	I-Library
Services	O	I-Library
)	O	I-Library
APIs	O	B-Library
-	O	O
metacpan.org	O	O

I	O	O
have	O	O
a	O	O
sdk	O	B-Application
that	O	O
can	O	O
be	O	O
integrated	O	O
in	O	O
an	O	O
application	O	O
.	O	O

Server	O	O
for	O	O
our	O	O
sdk	O	B-Application
wants	O	O
to	O	O
use	O	O
single	O	O
GCM	O	B-Application
Id	O	O
to	O	O
send	O	O
push	O	B-User_Interface_Element
notification	O	I-User_Interface_Element
.	O	O

How	O	O
to	O	O
tackle	O	O
the	O	O
scenario	O	O
where	O	O
my	O	O
sdk	O	B-Application
is	O	O
integrated	O	O
in	O	O
two	O	O
applications	O	O
in	O	O
same	O	O
phone	O	B-Device
and	O	O
as	O	O
sdk	O	B-Application
in	O	O
one	O	O
application	O	O
registers	O	O
GCM	O	B-Application
,	O	O
the	O	O
GCM	O	B-Application
registered	O	O
from	O	O
sdk	O	B-Application
in	O	O
other	O	O
application	O	O
expires	O	O
?	O	O

FYI	O	O
I	O	O
have	O	O
reviewed	O	O
this	O	O
answer	O	O
Android	O	B-Application
GCM	O	I-Application
:	O	O
same	O	O
sender	O	O
id	O	O
for	O	O
more	O	O
application	O	O
but	O	O
they	O	O
are	O	O
considering	O	O
the	O	O
app	O	O
is	O	O
installed	O	O
in	O	O
different	O	O
device	O	O
.	O	O

You	O	O
did	O	O
not	O	O
get	O	O
the	O	O
answer	O	O
.	O	O

What	O	O
matters	O	O
is	O	O
registration	B-Code_Block	B-Code_Block
Id	I-Code_Block	I-Code_Block
of	O	O
the	O	O
client	O	B-Application
(	O	O
app	O	O
)	O	O
.	O	O

As	O	O
long	O	O
as	O	O
you	O	O
got	O	O
it	O	O
different	O	O
per	O	O
app	O	O
,	O	O
then	O	O
it	O	O
does	O	O
not	O	O
matter	O	O
where	O	O
it	O	O
is	O	O
installed	O	O
and	O	O
using	O	O
(	O	O
or	O	O
not	O	O
)	O	O
same	O	O
sender	O	O
id	O	O
is	O	O
also	O	O
irrelevant	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
find	O	O
it	O	O
in	O	O
the	O	O
Graph	O	B-Library
API	O	I-Library
,	O	O
is	O	O
there	O	O
some	O	O
way	O	O
to	O	O
get	O	O
the	O	O
alternate	O	O
name	O	O
someone	O	O
fills	O	O
out	O	O
in	O	O
their	O	O
Account	O	O
Settings	O	O
?	O	O

Do	O	O
you	O	O
mean	O	O
the	O	O
user	O	O
's	O	O
'	O	O
username	O	B-Variable
'	O	O
?	O	O

It	O	O
's	O	O
a	O	O
field	O	O
in	O	O
the	O	O
User	O	B-Class
Graph	O	I-Class
Object	O	I-Class
.	O	O

For	O	O
example	O	O
,	O	O
if	O	O
you	O	O
want	O	O
'	O	B-Value
btaylor	O	I-Value
'	O	B-Value
returned	O	O
for	O	O
this	O	O
user	O	O
,	O	O
https://www.facebook.com/btaylor	O	O
,	O	O
you	O	O
'd	O	O
grab	O	O
the	O	O
'	O	O
username	O	B-Variable
'	O	O
field	O	O
from	O	O
the	O	O
User	O	B-Class
Graph	O	I-Class
Object	O	I-Class
,	O	O
as	O	O
in	O	O
this	O	O
example	O	O
:	O	O
https://graph.facebook.com/btaylor	O	O
.	O	O

It	O	O
's	O	O
not	O	O
currently	O	O
possible	O	O
to	O	O
access	O	O
this	O	O
field	O	O
via	O	O
the	O	O
API	O	B-Application
by	O	O
any	O	O
means	O	O
i	O	O
'm	O	O
aware	O	O
of	O	O
,	O	O
you	O	O
could	O	O
file	O	O
a	O	O
wishlist	O	O
item	O	O
in	O	O
the	O	O
bug	O	O
tracker	O	O
,	O	O
it	O	O
may	O	O
get	O	O
picked	O	O
up	O	O
and	O	O
implemented	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
bootstrap	O	B-Library
with	O	O
Django	O	B-Library
.	O	O

Though	O	O
I	O	O
'm	O	O
good	O	O
in	O	O
Python	O	B-Language
,	O	O
I	O	O
'm	O	O
struggling	O	O
to	O	O
figure	O	O
out	O	O
some	O	O
basic	O	O
things	O	O
like	O	O
file	O	O
uploads/forms	O	O
in	O	O
bootstrap	O	B-Library
.	O	O

Is	O	O
there	O	O
an	O	O
example	O	O
to	O	O
do	O	O
that	O	O
?	O	O

Also	O	O
,	O	O
is	O	O
there	O	O
any	O	O
particular	O	O
reason	O	O
for	O	O
using	O	O
FileField	O	B-Class
in	O	O
Django	O	B-Library
models	O	O
?	O	O

Have	O	O
you	O	O
tried	O	O
the	O	O
File	O	O
Uploads	O	O
documentation	O	O

Django	O	B-Library
Cripsy	O	I-Library
forms	O	I-Library
will	O	O
help	O	O
you	O	O
with	O	O
Bootstrap	O	B-Library
forms	O	O
.	O	O

The	O	O
FileField	B-Code_Block	B-Class
(	O	O
docs	O	O
)	O	O
will	O	O
automatically	O	O
upload	O	O
and	O	O
save	O	O
the	O	O
file	O	O
to	O	O
the	O	O
model	O	O
along	O	O
with	O	O
giving	O	O
you	O	O
various	O	O
bit	O	O
of	O	O
additional	O	O
functionality	O	O
such	O	O
as	O	O
where	O	O
to	O	O
upload	O	O
to	O	O
,	O	O
getting	O	O
the	O	O
absolute	O	O
url	O	O
for	O	O
the	O	O
file	O	O
and	O	O
the	O	O
ability	O	O
to	O	O
delete	O	O
the	O	O
file	O	O
from	O	O
the	O	O
model	O	O
object	O	O
.	O	O

I	O	O
am	O	O
using	O	O
a	O	O
command	O	O
which	O	O
allows	O	O
me	O	O
to	O	O
use	O	O
a	O	O
class	O	O
from	O	O
a	O	O
.jar	B-Code_Block	B-File_Type
file	O	O
,	O	O
but	O	O
I	O	O
am	O	O
not	O	O
really	O	O
sure	O	O
of	O	O
the	O	O
meaning	O	O
of	O	O
the	O	O
whole	O	O
command	O	O
.	O	O

I	O	O
also	O	O
wanted	O	O
to	O	O
test	O	O
my	O	O
programs	O	O
from	O	O
Eclipse	O	B-Application
,	O	O
but	O	O
without	O	O
understanding	O	O
fully	O	O
it	O	O
,	O	O
it	O	O
's	O	O
difficult	O	O
to	O	O
customise	O	O
the	O	O
run	O	O
configurations	O	O
.	O	O

The	O	O
command	O	O
is	O	O
the	O	O
following	O	O
:	O	O

I	O	O
have	O	O
a	O	O
few	O	O
questions	O	O
:	O	O

What	O	O
's	O	O
the	O	O
meaning	O	O
of	O	O
:	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
after	O	O
the	O	O
.jar	B-Code_Block	B-File_Type
library	O	O
?	O	O

The	O	O
class	O	O
transport.FileSender	B-Code_Block	B-Class
basically	O	O
allows	O	O
me	O	O
to	O	O
test	O	O
by	O	O
class	O	O
MGBNSender	B-Code_Block	B-Class
,	O	O
but	O	O
so	O	O
far	O	O
I	O	O
have	O	O
not	O	O
manage	O	O
to	O	O
test	O	O
it	O	O
from	O	O
Eclipse	O	B-Application
.	O	O

Could	O	O
you	O	O
please	O	O
help	O	O
me	O	O
how	O	O
should	O	O
I	O	O
do	O	O
it	O	O
?	O	O

I	O	O
have	O	O
already	O	O
imported	O	O
the	O	O
.jar	B-Code_Block	B-File_Type
file.	O	O
.	O	O

The	O	O
.	B-Code_Block	B-Code_Block
adds	O	O
the	O	O
current	O	O
directory	O	O
to	O	O
the	O	O
class-path	O	O
.	O	O

You	O	O
need	O	O
that	O	O
if	O	O
you	O	O
have	O	O
any	O	O
compiled	O	O
Java	O	B-Language
source	O	O
files	O	O
(	O	O
e.g	O	O
.	O	O
classes	O	O
)	O	O
in	O	O
your	O	O
local	O	O
tree	O	O
(	O	O
for	O	O
example	O	O
,	O	O
when	O	O
developing	O	O
,	O	O
you	O	O
might	O	O
have	O	O
your	O	O
Main	O	B-Class
,	O	O
or	O	O
some	O	O
other	O	O
,	O	O
class	O	O
in	O	O
your	O	O
current	O	O
directory	O	O
)	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
determine	O	O
the	O	O
most	O	O
recently	O	O
past	O	O
day	O	O
of	O	O
the	O	O
week	O	O
,	O	O
based	O	O
on	O	O
any	O	O
given	O	O
moment	O	O
.	O	O

Example	O	O
1	O	O
:	O	O
Given	O	O
this	O	O
moment	O	O
—	O	O
let	O	O
's	O	O
say	O	O
Sun	O	B-Value
Oct	O	I-Value
2	O	I-Value
2016	O	I-Value
15:30:30	O	I-Value
EST	O	I-Value
—	O	O
how	O	O
do	O	O
I	O	O
determine	O	O
the	O	O
date	O	O
of	O	O
the	O	O
most	O	O
recently	O	O
past	O	O
Friday	O	B-Value
at	O	I-Value
20:00:00	O	I-Value
MST	O	I-Value
?	O	O

Answer	O	O
1	O	O
:	O	O
In	O	O
this	O	O
case	O	O
,	O	O
I	O	O
'd	O	O
be	O	O
looking	O	O
for	O	O
Friday	O	B-Value
,	O	I-Value
Sept	O	I-Value
30	O	I-Value
,	O	I-Value
2016	O	I-Value
.	O	O

Example	O	O
2	O	O
:	O	O
What	O	O
about	O	O
the	O	O
most	O	O
recently	O	O
past	O	O
Sunday	O	B-Value
at	O	I-Value
21:00:00	O	I-Value
EST	O	I-Value
?	O	O

Answer	O	O
2	O	O
:	O	O
That	O	O
'd	O	O
be	O	O
Sunday	O	B-Value
,	O	I-Value
Sep	O	I-Value
25	O	I-Value
,	O	I-Value
2016	O	I-Value
.	O	O

Example	O	O
3	O	O
:	O	O
What	O	O
about	O	O
the	O	O
most	O	O
recently	O	O
past	O	O
Sunday	O	B-Value
at	O	I-Value
14:30:30	O	I-Value
MST	O	I-Value
?	O	O

Answer	O	O
3	O	O
:	O	O
That	O	O
'd	O	O
be	O	O
Sunday	O	B-Value
,	O	I-Value
Sep	O	I-Value
25	O	I-Value
,	O	I-Value
2016	O	I-Value
.	O	O

You	O	O
could	O	O
have	O	O
a	O	O
look	O	O
at	O	O
the	O	O
php	O	B-Language
DateTime	O	B-Class
API	O	O
extension	O	O
called	O	O
Carbon	O	B-Library
.	O	O

https://packagist.org/packages/nesbot/carbon	O	O

If	O	O
you	O	O
install	O	O
it	O	O
via	O	O
Composer	O	B-Application
you	O	O
could	O	O
simply	O	O
write	O	O
something	O	O
like	O	O
..	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
great	O	O
tutorial	O	O
series	O	O
by	O	O
Alex	O	B-User_Name
from	O	O
Codecourse	O	B-Website
on	O	O
working	O	O
with	O	O
it	O	O
..	O	O
.	O	O

Carbon	O	B-Library
Tutorial	O	O

This	O	O
is	O	O
my	O	O
first	O	O
time	O	O
on	O	O
stackexchange	O	B-Website
,	O	O
facing	O	O
a	O	O
problem	O	O
I	O	O
have	O	O
n't	O	O
been	O	O
able	O	O
to	O	O
find	O	O
a	O	O
solution	O	O
to	O	O
with	O	O
numerous	O	O
hours	O	O
spent	O	O
on	O	O
Google	O	B-Website
.	O	O

Apologies	O	O
in	O	O
advance	O	O
for	O	O
the	O	O
lack	O	O
of	O	O
more	O	O
images	O	B-User_Interface_Element
,	O	O
stackexchange	O	B-Website
will	O	O
not	O	O
allow	O	O
me	O	O
to	O	O
more	O	O
photos	O	B-User_Interface_Element
until	O	O
my	O	O
reputation	O	O
is	O	O
higher	O	O
.	O	O

I	O	O
need	O	O
to	O	O
get	O	O
results	O	O
from	O	O
a	O	O
.do	O	B-File_Type
page	O	O
:	O	O

http://webapps2.rrc.state.tx.us/EWA/productionQueryAction.do	O	O

The	O	O
url	O	O
remains	O	O
static	O	O
when	O	O
a	O	O
large	O	O
query	O	O
e.g	O	O
is	O	O
submitted	O	O
-	O	O
I	O	O
cannot	O	O
alter	O	O
my	O	O
query	O	O
by	O	O
changing	O	O
the	O	O
url	O	O
.	O	O

Once	O	O
submitted	O	O
,	O	O
it	O	O
takes	O	O
a	O	O
long	O	O
time	O	O
to	O	O
load	O	O
,	O	O
and	O	O
after	O	O
loading	O	O
,	O	O
a	O	O
table	O	B-User_Interface_Element
of	O	O
results	O	O
is	O	O
presented	O	O
.	O	O

I	O	O
then	O	O
require	O	O
all	O	O
the	O	O
data	O	O
to	O	O
be	O	O
on	O	O
one	O	O
page	O	O
so	O	O
I	O	O
select	O	O
'	O	O
View	O	O
All	O	O
'	O	O
as	O	O
the	O	O
page	O	O
size	O	O
from	O	O
the	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
menu	O	I-User_Interface_Element
on	O	O
the	O	O
top	O	O
left	O	O
of	O	O
the	O	O
table	O	B-User_Interface_Element
to	O	O
obtain	O	O
the	O	O
following	O	O
page	O	O
(	O	O
which	O	O
has	O	O
many	O	O
more	O	O
rows	O	B-User_Interface_Element
than	O	O
displayed	O	O
here	O	O
)	O	O

Finally	O	O
,	O	O
to	O	O
then	O	O
import	O	O
this	O	O
data	O	O
,	O	O
I	O	O
open	O	O
a	O	O
spreadsheet	O	B-User_Interface_Element
and	O	O
copy-paste	O	O
it	O	O
all	O	O
in	O	O
.	O	O

Even	O	O
for	O	O
one	O	O
county/query/submission	O	O
,	O	O
this	O	O
process	O	O
is	O	O
extremely	O	O
tedious	O	O
,	O	O
and	O	O
I	O	O
have	O	O
to	O	O
do	O	O
this	O	O
monthly	O	O
for	O	O
about	O	O
20	O	O
counties	O	O
,	O	O
then	O	O
a	O	O
further	O	O
10	O	O
districts	O	O
.	O	O

Due	O	O
to	O	O
the	O	O
long	O	O
load	O	O
time	O	O
associated	O	O
with	O	O
the	O	O
return	O	O
of	O	O
each	O	O
query	O	O
,	O	O
this	O	O
is	O	O
a	O	O
task	O	O
that	O	O
easily	O	O
takes	O	O
2-3	O	O
hours	O	O
to	O	O
complete	O	O
.	O	O

As	O	O
such	O	O
,	O	O
I	O	O
am	O	O
hoping	O	O
someone	O	O
here	O	O
has	O	O
some	O	O
kind	O	O
of	O	O
solution	O	O
to	O	O
automate/ease	O	O
the	O	O
process	O	O
,	O	O
or	O	O
even	O	O
simply	O	O
advice	O	O
as	O	O
to	O	O
where	O	O
I	O	O
can	O	O
find	O	O
information	O	O
to	O	O
create	O	O
a	O	O
solution	O	O
myself	O	O
.	O	O

If	O	O
I	O	O
could	O	O
directly	O	O
query	O	O
the	O	O
database	O	O
import	O	O
the	O	O
data	O	O
into	O	O
a	O	O
spreadsheet	O	B-User_Interface_Element
,	O	O
my	O	O
problem	O	O
would	O	O
be	O	O
solved	O	O
.	O	O

The	O	O
load	O	O
times	O	O
are	O	O
irrelevant	O	O
if	O	O
the	O	O
entire	O	O
process	O	O
of	O	O
querying	O	O
the	O	O
server	O	B-Application
can	O	O
be	O	O
automated	O	O
as	O	O
it	O	O
could	O	O
just	O	O
run	O	O
in	O	O
the	O	O
background	O	O
without	O	O
user	O	O
input	O	O
.	O	O

I	O	O
apologise	O	O
for	O	O
the	O	O
long	O	O
and	O	O
non-specific	O	O
question	O	O
,	O	O
and	O	O
any	O	O
response	O	O
will	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

Thank	O	O
you	O	O
very	O	O
much	O	O
.	O	O

Well	O	O
,	O	O
you	O	O
can	O	O
actually	O	O
check	O	O
the	O	O
network	O	O
calls	O	O
that	O	O
are	O	O
executed	O	O
in	O	O
order	O	O
to	O	O
get	O	O
the	O	O
CSV	O	B-File_Type
file	O	O
.	O	O

I	O	O
just	O	O
did	O	O
that	O	O
for	O	O
you	O	O
,	O	O
but	O	O
it	O	O
contains	O	O
a	O	O
lot	O	O
of	O	O
parameters	O	O
which	O	O
you	O	O
need	O	O
to	O	O
send	O	O
in	O	O
.	O	O

Below	O	O
are	O	O
the	O	O
actual	O	O
parameters	O	O
you	O	O
need	O	O
to	O	O
send	O	O
in	O	O
:	O	O

I	O	O
hope	O	O
for	O	O
you	O	O
that	O	O
only	O	O
the	O	O
parameters	O	O
prefixed	O	O
with	O	O
searchArgs	B-Code_Block	B-Class
are	O	O
important	O	O
(	O	O
they	O	O
contain	O	O
the	O	O
information	O	O
of	O	O
the	O	O
form	O	O
,	O	O
like	O	O
the	O	O
month/year/.	O	O
.	O	O

The	O	O
actionManager	B-Code_Block	B-Class
prefixed	O	O
parameters	O	O
contain	O	O
some	O	O
complicated	O	O
data	O	O
,	O	O
you	O	O
need	O	O
to	O	O
define	O	O
them	O	O
(	O	O
else	O	O
you	O	O
get	O	O
an	O	O
error	O	O
)	O	O
,	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
if	O	O
they	O	O
're	O	O
actually	O	O
used	O	O
,	O	O
so	O	O
you	O	O
might	O	O
just	O	O
leave	O	O
them	O	O
empty	O	O
.	O	O

When	O	O
executing	O	O
this	O	O
call	O	O
,	O	O
you	O	O
will	O	O
imediately	O	O
receive	O	O
the	O	O
CSV	O	B-File_Type
file	O	O
which	O	O
you	O	O
can	O	O
probably	O	O
parse	O	O
using	O	O
any	O	O
language	O	O
(	O	O
look	O	O
for	O	O
a	O	O
CSV	O	B-File_Type
parsing	O	O
library	O	O
)	O	O
and	O	O
insert	O	O
it	O	O
into	O	O
a	O	O
database	O	O
or	O	O
something	O	O
else	O	O
.	O	O

However	O	O
,	O	O
the	O	O
best	O	O
possibility	O	O
is	O	O
to	O	O
look	O	O
for	O	O
an	O	O
alternative	O	O
to	O	O
this	O	O
source	O	O
(	O	O
or	O	O
a	O	O
public	O	O
API	O	B-Library
you	O	O
can	O	O
access	O	O
)	O	O
,	O	O
because	O	O
this	O	O
is	O	O
really	O	O
crazy	O	O
to	O	O
work	O	O
with	O	O
,	O	O
and	O	O
it	O	O
might	O	O
change	O	O
.	O	O

Example	O	O
using	O	O
PHP	O	B-Language

The	O	O
following	O	O
code	O	O
is	O	O
an	O	O
example	O	O
in	O	O
PHP	O	B-Language
retrieving	O	O
the	O	O
CSV	O	B-File_Type
(	O	O
using	O	O
cURL	O	B-Library
)	O	O
and	O	O
parsing	O	O
it	O	O
into	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

From	O	O
what	O	O
you	O	O
are	O	O
describing	O	O
,	O	O
this	O	O
sounds	O	O
like	O	O
an	O	O
issue	O	O
with	O	O
the	O	O
Database	O	O
taking	O	O
the	O	O
time	O	O
to	O	O
generate	O	O
the	O	O
results	O	O
.	O	O

If	O	O
this	O	O
is	O	O
the	O	O
case	O	O
,	O	O
do	O	O
you	O	O
know	O	O
if	O	O
there	O	O
are	O	O
any	O	O
indexes	O	O
on	O	O
the	O	O
database	O	O
being	O	O
queried	O	O
?	O	O

If	O	O
you	O	O
are	O	O
querying	O	O
data	O	O
across	O	O
multiple	O	O
linked	O	O
tables	O	B-User_Interface_Element
(	O	O
which	O	O
it	O	O
looks	O	O
&	O	O
sounds	O	O
like	O	O
you	O	O
are	O	O
)	O	O
,	O	O
without	O	O
any	O	O
indexes	O	O
,	O	O
then	O	O
the	O	O
queries	O	O
will	O	O
run	O	O
like	O	O
a	O	O
dog	O	O
.	O	O

This	O	O
website	O	O
offers	O	O
a	O	O
good	O	O
introduction	O	O
to	O	O
indexes	O	O
that	O	O
may	O	O
be	O	O
worth	O	O
taking	O	O
a	O	O
look	O	O
at	O	O
.	O	O

Other	O	O
than	O	O
this	O	O
,	O	O
it	O	O
may	O	O
be	O	O
prevalent	O	O
to	O	O
setup	O	O
a	O	O
cron	O	B-Application
to	O	O
automate	O	O
the	O	O
process	O	O
for	O	O
you	O	O
like	O	O
Anusha	O	B-User_Name
has	O	O
described	O	O
in	O	O
the	O	O
comments	O	O
.	O	O

I	O	O
would	O	O
recommend	O	O
looking	O	O
into	O	O
indexes	O	O
as	O	O
well	O	O
as	O	O
setting	O	O
up	O	O
the	O	O
cron	O	B-Application
jobs	O	O
,	O	O
as	O	O
rather	O	O
than	O	O
just	O	O
cut	O	O
down	O	O
the	O	O
amount	O	O
of	O	O
time	O	O
it	O	O
takes	O	O
for	O	O
you	O	O
to	O	O
generate	O	O
the	O	O
data	O	O
each	O	O
month	O	O
,	O	O
you	O	O
could	O	O
fully	O	O
automate	O	O
it	O	O
,	O	O
and	O	O
have	O	O
it	O	O
running	O	O
in	O	O
a	O	O
few	O	O
minutes	O	O
,	O	O
rather	O	O
than	O	O
hours	O	O
each	O	O
month	O	O
.	O	O

I	O	O
have	O	O
an	O	O
EF	O	B-Library
model	O	O
where	O	O
I	O	O
logically	O	O
have	O	O
a	O	O
"	O	O
template	O	B-Class
"	O	O
type	O	O
and	O	O
an	O	O
"	O	O
instance	O	O
of	O	O
the	O	O
template	O	O
type	O	O
"	O	O

Basically	O	O
my	O	O
templates	O	B-Class
are	O	O
like	O	O
a	O	O
work	O	O
flow	O	O
and	O	O
the	O	O
instances	O	O
are	O	O
those	O	O
templates	O	B-Class
applied	O	O
to	O	O
an	O	O
object	O	O
.	O	O

The	O	O
association	O	O
is	O	O
that	O	O
a	O	O
template	O	B-Class
has	O	O
zero	O	O
to	O	O
many	O	O
instances	O	O
,	O	O
an	O	O
instance	O	O
is	O	O
always	O	O
based	O	O
on	O	O
a	O	O
template	O	B-Class
.	O	O

For	O	O
example	O	O
the	O	O
template	O	B-Class
may	O	O
be	O	O
"	O	O
send	O	O
letter	O	O
"	O	O
which	O	O
gets	O	O
applied	O	O
to	O	O
a	O	O
customer	O	O
to	O	O
create	O	O
an	O	O
instance	O	O
of	O	O
the	O	O
letter	O	O
sent	O	O
,	O	O
which	O	O
includes	O	O
the	O	O
date	O	O
sent	O	O
,	O	O
the	O	O
pdf	O	B-File_Type
of	O	O
the	O	O
letter	O	O
etc	O	O
.	O	O

The	O	O
templates	O	B-Class
have	O	O
a	O	O
few	O	O
subclasses/types	O	O
which	O	O
will	O	O
always	O	O
match	O	O
an	O	O
instance	O	O
which	O	O
also	O	O
has	O	O
a	O	O
corresponding	O	O
subclass	O	O
.	O	O

The	O	O
issue	O	O
is	O	O
how	O	O
can	O	O
I	O	O
ensure	O	O
that	O	O
when	O	O
I	O	O
create	O	O
an	O	O
instance	O	O
(	O	O
which	O	O
will	O	O
have	O	O
a	O	O
reference	O	O
to	O	O
the	O	O
template	O	O
)	O	O
that	O	O
the	O	O
instance	O	O
is	O	O
of	O	O
the	O	O
correct	O	O
inherited	O	O
type	O	O
.	O	O

For	O	O
example	O	O
if	O	O
the	O	O
template	O	O
is	O	O
of	O	O
type	O	O
TemplateType2	O	B-Class
(	O	O
inherits	O	O
from	O	O
template	O	B-Class
)	O	O
and	O	O
I	O	O
add	O	O
an	O	O
instance	O	O
to	O	O
loan1	O	B-Variable
.	O	O
.	O	O
loan1.TemplateInstances.add(foo)	O	B-Function
…	O	O
I	O	O
want	O	O
to	O	O
ensure	O	O
that	O	O
foo	O	B-Variable
is	O	O
of	O	O
type	O	O
InstanceType2	O	B-Class
.	O	O

The	O	O
way	O	O
I	O	O
am	O	O
doing	O	O
it	O	O
now	O	O
seems	O	O
like	O	O
such	O	O
a	O	O
hack	O	O
.	O	O

I	O	O
am	O	O
storing	O	O
the	O	O
instance	O	O
entity	O	O
name	O	O
as	O	O
a	O	O
scalar	O	O
value	O	O
in	O	O
the	O	O
template	O	B-Class
entity	O	O
,	O	O
and	O	O
using	O	O
reflection	O	O
to	O	O
create	O	O
the	O	O
correct	O	O
type	O	O
of	O	O
the	O	O
instance	O	O
.	O	O

It	O	O
works	O	O
,	O	O
but	O	O
it	O	O
is	O	O
basically	O	O
using	O	O
the	O	O
value	O	O
of	O	O
a	O	O
property	O	O
to	O	O
do	O	O
mapping	O	O
,	O	O
exposing	O	O
the	O	O
possibility	O	O
of	O	O
all	O	O
sorts	O	O
of	O	O
errors	O	O
if	O	O
they	O	O
do	O	O
not	O	O
match	O	O
the	O	O
name	O	O
of	O	O
the	O	O
instance	O	O
name	O	O
,	O	O
or	O	O
worse	O	O
if	O	O
they	O	O
enter	O	O
the	O	O
wrong	O	O
entity	O	O
name	O	O
.	O	O

Any	O	O
ideas	O	O
or	O	O
thoughts	O	O
how	O	O
to	O	O
tackle	O	O
this	O	O
issue	O	O
?	O	O

I	O	O
ended	O	O
up	O	O
solving	O	O
this	O	O
through	O	O
a	O	O
bit	O	O
of	O	O
a	O	O
hack	O	O
.	O	O

I	O	O
used	O	O
naming	O	O
conventions	O	O
and	O	O
adding	O	O
my	O	O
own	O	O
handler	O	O
to	O	O
the	O	O
context	O	O
savingchanges	O	B-Function
method	O	O

and	O	O
then	O	O
a	O	O
bit	O	O
of	O	O
reflection	O	O
.	O	O

Not	O	O
the	O	O
best	O	O
solution	O	O
but	O	O
it	O	O
works	O	O
.	O	O

the	O	O
main	O	O
part	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
parse	O	O
a	O	O
string	O	B-Data_Type
with	O	O
parentheses	O	O
of	O	O
the	O	O
form	O	O
((Question)(Left_Node)(right_node))	B-Code_Block	B-Code_Block
.	O	O

The	O	O
question	O	O
for	O	O
example	O	O
will	O	O
be	O	O
of	O	O
the	O	O
form	O	O
"	O	O
if	O	O
segment	O	O
size	O	O
<	O	O
1.5	O	B-Value
,	O	O
then	O	O
choose	O	O
left	O	O
node	O	O
,	O	O
else	O	O
right	O	O
"	O	O
.	O	O

The	O	O
question	O	O
can	O	O
be	O	O
a	O	O
dictionary	O	B-Data_Structure
with	O	O
a	O	O
key	O	B-Variable
and	O	O
a	O	O
value	O	B-Variable
.	O	O

The	O	O
left	O	O
and	O	O
right	O	O
node	O	B-Data_Structure
represent	O	O
a	O	O
complete	O	O
left	O	O
or	O	O
right	O	O
half	O	O
tree	O	B-Data_Structure
,	O	O
which	O	O
will	O	O
be	O	O
traversed	O	O
recursively	O	O
until	O	O
the	O	O
leaf	O	O
node	O	B-Data_Structure
is	O	O
reached	O	O
.	O	O

In	O	O
this	O	O
manner	O	O
we	O	O
will	O	O
build	O	O
a	O	O
binary	O	O
decision	O	O
tree	O	B-Data_Structure
.	O	O

If	O	O
you	O	O
can	O	O
decide	O	O
on	O	O
the	O	O
details	O	O
of	O	O
the	O	O
input	O	O
format	O	O
,	O	O
then	O	O
use	O	O
raw	O	O
python	O	B-Language
source	O	O
code	O	O
.	O	O

For	O	O
example	O	O
you	O	O
can	O	O
store	O	O
your	O	O
tree	O	B-Data_Structure
in	O	O
a	O	O
python	O	B-Language
dictionary	O	B-Data_Structure
of	O	O
nodes	O	B-Data_Structure
:	O	O

Now	O	O
you	O	O
can	O	O
parse	O	O
this	O	O
tree	O	B-Data_Structure
simply	O	O
with	O	O
the	O	O
python	O	B-Language
parser	O	O
.	O	O

Well	O	O
,	O	O
if	O	O
the	O	O
input	O	O
format	O	O
is	O	O
already	O	O
specified	O	O
,	O	O
then	O	O
we	O	O
cannot	O	O
help	O	O
you	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
share	O	O
the	O	O
details	O	O
of	O	O
that	O	O
format	O	O
.	O	O

This	O	O
kind	O	O
of	O	O
syntax	O	O
is	O	O
really	O	O
the	O	O
target	O	O
for	O	O
pyparsing	O	B-Library
.	O	O

The	O	O
basic	O	O
format	O	O
is	O	O
simple	O	O
enough	O	O
,	O	O
and	O	O
in	O	O
pyparsing	O	B-Library
,	O	O
it	O	O
looks	O	O
like	O	O
:	O	O

But	O	O
once	O	O
you	O	O
start	O	O
to	O	O
add	O	O
arithmetic	O	O
expressions	O	O
,	O	O
and	O	O
boolean	O	O
operations	O	O
and	O	O
support	O	O
for	O	O
'	O	O
and	O	B-Code_Block
'	O	O
and	O	O
'	O	O
or	O	B-Code_Block
'	O	O
operators	O	O
,	O	O
things	O	O
get	O	O
complicated	O	O
.	O	O

Also	O	O
,	O	O
this	O	O
is	O	O
a	O	O
recursive	O	O
grammar	O	O
,	O	O
since	O	O
an	O	O
action	O	O
can	O	O
itself	O	O
be	O	O
a	O	O
nested	O	O
decision	O	O
.	O	O

Pyparsing	O	B-Library
has	O	O
built-in	O	O
support	O	O
that	O	O
simplifies	O	O
definition	O	O
of	O	O
arithmetic	O	O
and	O	O
boolean	O	B-Data_Type
expressions	O	O
,	O	O
including	O	O
precedence	O	O
of	O	O
operations	O	O
and	O	O
gruping	O	O
in	O	O
parentheses	O	O
,	O	O
plus	O	O
recursive	O	O
expressions	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
pyparsing	O	B-Library
grammar	O	O
in	O	O
various	O	O
pieces	O	O
.	O	O

First	O	O
here	O	O
are	O	O
some	O	O
of	O	O
the	O	O
basic	O	O
parsing	O	O
elements	O	O
:	O	O

The	O	O
parse	O	O
action	O	O
attached	O	O
to	O	O
the	O	O
number	O	O
expression	O	O
will	O	O
automatically	O	O
convert	O	O
the	O	O
parsed	O	O
number	O	O
to	O	O
a	O	O
float	O	B-Data_Type
value	O	O
at	O	O
parse	O	O
time	O	O
.	O	O

The	O	O
Word	O	B-Class
class	O	O
takes	O	O
two	O	O
strings	O	B-Data_Type
:	O	O
a	O	O
string	O	B-Data_Type
containing	O	O
all	O	O
valid	O	O
leading	O	O
characters	O	O
,	O	O
and	O	O
a	O	O
string	O	B-Data_Type
of	O	O
all	O	O
valid	O	O
body	O	O
characters	O	O
.	O	O

This	O	O
varname	O	B-Variable
definition	O	O
supports	O	O
variable	O	O
names	O	O
similar	O	O
to	O	O
Python	O	B-Language
identifiers	O	O
.	O	O

Pyparsing	O	B-Library
has	O	O
the	O	O
operatorPrecedence	B-Code_Block	B-Function
method	O	O
that	O	O
takes	O	O
an	O	O
expression	O	O
for	O	O
the	O	O
basic	O	O
operand	O	O
definition	O	O
,	O	O
and	O	O
a	O	O
list	O	O
of	O	O
tuples	O	O
to	O	O
define	O	O
each	O	O
level	O	O
of	O	O
operators	O	O
:	O	O
an	O	O
expression	O	O
for	O	O
the	O	O
operators	O	O
,	O	O
an	O	O
integer	O	B-Data_Type
whether	O	O
the	O	O
operator	O	O
is	O	O
unary	O	O
,	O	O
binary	O	O
,	O	O
or	O	O
ternary	O	O
,	O	O
and	O	O
whether	O	O
left	O	O
-	O	O
or	O	O
right-associative	O	O
.	O	O

operatorPrecedence	O	O
takes	O	O
care	O	O
of	O	O
the	O	O
recursive	O	O
definition	O	O
of	O	O
arithmetic	O	O
expressions	O	O
nested	O	O
in	O	O
parentheses	O	O
.	O	O

This	O	O
expression	O	O
defines	O	O
basic	O	O
4-function	O	O
math	O	O
:	O	O

Now	O	O
here	O	O
is	O	O
the	O	O
definition	O	O
of	O	O
a	O	O
boolean	O	O
condition	O	O
(	O	O
which	O	O
we	O	O
'll	O	O
eventually	O	O
use	O	O
to	O	O
define	O	O
the	O	O
decision	O	O
question	O	O
)	O	O
:	O	O

Your	O	O
definition	O	O
of	O	O
actions	O	O
was	O	O
a	O	O
little	O	O
sketchy	O	O
,	O	O
so	O	O
I	O	O
made	O	O
up	O	O
some	O	O
possible	O	O
statements	O	O
:	O	O
an	O	O
assignment	O	O
statement	O	O
,	O	O
a	O	O
print	B-Code_Block	O
statement	O	O
,	O	O
and	O	O
since	O	O
this	O	O
is	O	O
a	O	O
speech	O	O
application	O	O
,	O	O
a	O	O
say	B-Code_Block	O
statement	O	O
which	O	O
is	O	O
very	O	O
simliar	O	O
to	O	O
print	B-Code_Block	O
.	O	O

In	O	O
addition	O	O
to	O	O
the	O	O
expression	O	O
definitions	O	O
,	O	O
you	O	O
'll	O	O
notice	O	O
that	O	O
some	O	O
expressions	O	O
are	O	O
followed	O	O
by	O	O
a	O	O
quoted	O	O
string	O	B-Data_Type
,	O	O
as	O	O
if	O	O
the	O	O
expression	O	O
is	O	O
a	O	O
function	O	O
being	O	O
called	O	O
with	O	O
that	O	O
string	O	B-Data_Type
.	O	O

In	O	O
fact	O	O
,	O	O
this	O	O
"	O	O
call	O	B-Function
"	O	O
actually	O	O
returns	O	O
a	O	O
copy	O	O
of	O	O
the	O	O
expression	O	O
,	O	O
and	O	O
the	O	O
matched	O	O
tokens	O	O
are	O	O
tagged	O	O
with	O	O
that	O	O
name	O	O
.	O	O

These	O	O
results	O	O
names	O	O
are	O	O
very	O	O
helpful	O	O
at	O	O
post-parsing	O	O
time	O	O
at	O	O
picking	O	O
out	O	O
the	O	O
individual	O	O
matching	O	O
elements	O	O
(	O	O
similar	O	O
to	O	O
named	O	O
groups	O	O
in	O	O
regular	O	O
expressions	O	O
)	O	O
.	O	O

Finally	O	O
,	O	O
to	O	O
put	O	O
these	O	O
pieces	O	O
together	O	O
into	O	O
your	O	O
decision	O	O
expression	O	O
,	O	O
here	O	O
are	O	O
the	O	O
question	O	O
and	O	O
action	O	O
expressions	O	O
:	O	O

Note	O	O
that	O	O
the	O	O
action	O	O
definition	O	O
can	O	O
include	O	O
a	O	O
decision	O	O
,	O	O
but	O	O
action	O	O
is	O	O
used	O	O
to	O	O
define	O	O
decision	O	O
.	O	O

To	O	O
break	O	O
this	O	O
chicken-and-egg	O	O
dependency	O	O
,	O	O
we	O	O
preface	O	O
this	O	O
section	O	O
with	O	O
defining	O	O
decision	B-Code_Block	O
,	O	O
but	O	O
with	O	O
a	O	O
placeholder	O	O
expression	O	O
using	O	O
the	O	O
pyparsing	O	B-Library
Forward	B-Code_Block	B-Class
class	O	O
:	O	O

Then	O	O
after	O	O
question	B-Code_Block	B-Variable
and	O	O
action	B-Code_Block	B-Variable
are	O	O
defined	O	O
,	O	O
we	O	O
use	O	O
the	O	O
'	O	O
<<	O	B-Code_Block
'	O	O
operator	O	O
to	O	O
"	O	O
insert	O	O
"	O	O
the	O	O
actual	O	O
expression	O	O
definition	O	O
in	O	O
the	O	O
existing	O	O
decision	B-Code_Block	B-Variable
variable	O	O
:	O	O

Again	O	O
,	O	O
I	O	O
took	O	O
liberties	O	O
with	O	O
your	O	O
defined	O	O
format	O	O
,	O	O
thinking	O	O
that	O	O
an	O	O
optional	O	B-Code_Block
else-clause	O	I-Code_Block
might	O	O
be	O	O
useful	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
this	O	O
to	O	O
be	O	O
optional	O	O
,	O	O
just	O	O
remove	O	O
the	O	O
Optional	B-Code_Block	B-Code_Block
wrapper	O	O
around	O	O
the	O	O
Group(action)("elseAction")	B-Code_Block	B-Code_Block
.	O	O

That	O	O
defines	O	O
the	O	O
grammar	O	O
,	O	O
now	O	O
here	O	O
are	O	O
some	O	O
test	O	O
cases	O	O
.	O	O

Using	O	O
dump()	O	B-Function
on	O	O
the	O	O
results	O	O
returned	O	O
by	O	O
parseString	O	B-Function
is	O	O
a	O	O
nice	O	O
way	O	O
to	O	O
print	O	O
out	O	O
the	O	O
tokens	O	O
,	O	O
and	O	O
any	O	O
names	O	O
attached	O	O
to	O	O
them	O	O
.	O	O

Here	O	O
's	O	O
the	O	O
output	O	O
:	O	O

Here	O	O
is	O	O
a	O	O
link	O	O
to	O	O
the	O	O
full	O	O
parsing	O	O
program	O	O
-	O	O
http://pastebin.com/DnaNrx7j	O	O
.	O	O

This	O	O
is	O	O
just	O	O
the	O	O
first	O	O
stage	O	O
,	O	O
parsing	O	O
the	O	O
input	O	O
.	O	O

The	O	O
next	O	O
step	O	O
is	O	O
actually	O	O
evaluating	O	O
the	O	O
expression	O	O
by	O	O
processing	O	O
the	O	O
returned	O	O
tokens	O	O
.	O	O

The	O	O
pyparsing	O	B-Library
wiki	O	O
example	O	O
SimpleBool.py	O	B-File_Name
(	O	O
http://pyparsing.wikispaces.com/file/view/simpleBool.py	O	O
)	O	O
includes	O	O
an	O	O
example	O	O
of	O	O
attaching	O	O
parse	O	O
actions	O	O
to	O	O
convert	O	O
parsed	O	O
tokens	O	O
into	O	O
callable	O	O
class	O	O
instances	O	O
that	O	O
simplify	O	O
evaluating	O	O
the	O	O
results	O	O
.	O	O

Hope	O	O
this	O	O
helps	O	O
.	O	O

I	O	O
have	O	O
noticed	O	O
people	O	O
use	O	O
this	O	O
code	O	O
to	O	O
localize	O	O

Could	O	O
anyone	O	O
tell	O	O
me	O	O
what	O	O
CurrentUICulture	B-Code_Block	B-Variable
and	O	O
CurrentCulture	B-Code_Block	B-Variable
are	O	O
?	O	O

Why	O	O
do	O	O
we	O	O
need	O	O
to	O	O
assign	O	O
same	O	O
value	O	O
to	O	O
both	O	O

What	O	O
will	O	O
happen	O	O
if	O	O
I	O	O
assign	O	O
the	O	O
value	O	O
CultureInfo("fr-FR")	B-Code_Block	B-Value
;	O	O
to	O	O
only	O	O
CurrentUICulture	O	B-Variable
or	O	O
CurrentCulture	O	B-Variable
?	O	O

I	O	O
would	O	O
really	O	O
like	O	O
to	O	O
know	O	O
in	O	O
detail	O	O
what	O	O
CurrentUICulture	B-Code_Block	B-Variable
and	O	O
CurrentCulture	B-Code_Block	B-Variable
does	O	O
?	O	O

Suppose	O	O
client	O	O
pc	O	B-Device
language	O	O
setting	O	O
could	O	O
be	O	O
German	O	B-Value
or	O	O
French	O	B-Value
etc	O	O
.	O	O
,	O	O
but	O	O
I	O	O
want	O	O
to	O	O
develop	O	O
my	O	O
application	O	O
in	O	O
such	O	O
a	O	O
way	O	O
that	O	O
whatever	O	O
language	O	O
setting	O	O
is	O	O
there	O	O
,	O	O
my	O	O
apps	O	O
will	O	O
work	O	O
in	O	O
that	O	O
pc	O	B-Device
with	O	O
their	O	O
language	O	O
setting	O	O
.	O	O

I	O	O
mean	O	O
that	O	O
all	O	O
the	O	O
controls	O	B-User_Interface_Element
will	O	O
show	O	O
the	O	O
text	O	O
in	O	O
German	O	B-Value
or	O	O
French	O	B-Value
.	O	O

I	O	O
do	O	O
not	O	O
want	O	O
to	O	O
hard	O	O
code	O	O
the	O	O
culture	O	O
this	O	O
way	O	O
CultureInfo("fr-FR")	B-Code_Block	B-Value

I	O	O
would	O	O
rather	O	O
the	O	O
user	O	O
's	O	O
language	O	O
setting	O	O
dictate	O	O
the	O	O
language	O	O
of	O	O
my	O	O
controls	O	B-User_Interface_Element
.	O	O

How	O	O
would	O	O
I	O	O
go	O	O
about	O	O
doing	O	O
this	O	O
?	O	O

It	O	O
's	O	O
pretty	O	O
simple	O	O
.	O	O

CurrentCulture	B-Code_Block	B-Variable
is	O	O
the	O	O
culture	O	O
assigned	O	O
for	O	O
thread	O	O
to	O	O
be	O	O
used	O	O
in	O	O
various	O	O
culture-specific	O	O
methods	O	O
.	O	O

To	O	O
example	O	O
,	O	O
ToString()	B-Code_Block	B-Function
one	O	O
.	O	O

CurrentUICulture	B-Code_Block	B-Variable
is	O	O

By	O	O
setting	O	O
both	O	O
you	O	O
ensure	O	O
what	O	O
all	O	O
ToString()	B-Code_Block	B-Function
works	O	O
correctly	O	O
and	O	O
your	O	O
form	O	O
resources	O	O
are	O	O
loaded	O	O
from	O	O
appropriate	O	O
satellite	O	O
.	O	O

Regarding	O	O
usage	O	O
,	O	O
you	O	O
may	O	O
think	O	O
to	O	O
provide	O	O
user	O	O
with	O	O
option	O	O
to	O	O
change	O	O
language	O	O
.	O	O

To	O	O
example	O	O
,	O	O
I	O	O
have	O	O
native	O	O
German	O	B-Value
windows	O	O
,	O	O
but	O	O
I	O	O
set	O	O
English	O	B-Value
culture	O	O
in	O	O
it	O	O
(	O	O
date	O	O
format	O	O
and	O	O
default	O	O
culture	O	O
for	O	O
console	O	B-Application
applications	O	I-Application
)	O	O
,	O	O
while	O	O
I	O	O
speak	O	O
Russian	O	O
.	O	O

Which	O	O
language	O	O
do	O	O
you	O	O
think	O	O
I	O	O
will	O	O
chose	O	O
when	O	O
using	O	O
your	O	O
software	O	O
?	O	O

=P	O	O

By	O	O
default	O	O
,	O	O
either	O	O
take	O	O
language	O	O
chosen	O	O
in	O	O
installer	O	B-Application
(	O	O
if	O	O
you	O	O
have	O	O
installer	O	B-Application
in	O	O
multiple	O	O
languages	O	O
and	O	O
options	O	O
to	O	O
change	O	O
it	O	O
there	O	O
)	O	O
or	O	O
current	O	O
Windows	O	B-Operating_System
user	O	O
language	O	O
preferences	O	O
.	O	O

One	O	O
possible	O	O
scenario	O	O
:	O	O

Preconditions	O	O
:	O	O
application	O	O
is	O	O
already	O	O
localized	O	O
,	O	O
satellites	O	O
are	O	O
there	O	O
(	O	O
if	O	O
not	O	O
,	O	O
read	O	O
this	O	O
)	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
like	O	O
satellites	O	O
myself	O	O
,	O	O
but	O	O
they	O	O
are	O	O
easy	O	O
to	O	O
start	O	O
with	O	O
.	O	O

When	O	O
application	O	O
starts	O	O
,	O	O
you	O	O
create	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
available	O	O
languages	O	O
(	O	O
either	O	O
statically	O	O
or	O	O
by	O	O
enumerating	O	O
satellites	O	O
)	O	O
.	O	O

Then	O	O
,	O	O
if	O	O
application	O	O
start	O	O
for	O	O
the	O	O
first	O	O
time	O	O
(	O	O
to	O	O
example	O	O
,	O	O
you	O	O
have	O	O
string	B-Code_Block	B-Data_Type
language	I-Code_Block	O
setting	O	O
and	O	O
it	O	O
's	O	O
by	O	O
default	O	O
null	B-Code_Block	B-Value
or	O	O
""	B-Code_Block	B-Value
,	O	O
this	O	O
would	O	O
be	O	O
a	O	O
flag	O	O
what	O	O
no	O	O
language	O	O
is	O	O
selected	O	O
yet	O	O
)	O	O
,	O	O
you	O	O
detect	O	O
default	O	O
os	O	O
language	O	O

and	O	O
if	O	O
it	O	O
's	O	O
in	O	O
your	O	O
list	O	B-Data_Structure
,	O	O
then	O	O
you	O	O
set	O	O

Otherwise	O	O
,	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
this	O	O
language	O	O
,	O	O
then	O	O
use	O	O
"	O	O
default	O	O
"	O	O
language	O	O
(	O	O
to	O	O
example	O	O
,	O	O
"	O	B-Value
en	O	I-Value
"	O	I-Value
)	O	O
.	O	O

If	O	O
its	O	O
done	O	O
at	O	O
at	O	O
the	O	O
start	O	O
of	O	O
your	O	O
application	O	O
,	O	O
then	O	O
any	O	O
further	O	O
constructed	O	O
and	O	O
used	O	O
window	O	O
will	O	O
use	O	O
proper	O	O
resources	O	O
.	O	O

User	O	O
should	O	O
be	O	O
able	O	O
to	O	O
change	O	O
language	O	O
.	O	O

Give	O	O
him	O	O
possibility	O	O
to	O	O
chose	O	O
one	O	O
of	O	O
available	O	O
Languages	B-Code_Block	O
.	O	O

In	O	O
winforms	O	O
you	O	O
will	O	O
have	O	O
to	O	O
reload	O	O
forms	O	O
after	O	O
change	O	O
culture	O	O
.	O	O

Easiest	O	O
solution	O	O
would	O	O
be	O	O
to	O	O
simply	O	O
tell	O	O
user	O	O
what	O	O
"	O	O
software	O	O
restart	O	O
is	O	O
required	O	O
"	O	O
.	O	O

Newbie	O	O
Rails	O	B-Library
coder	O	O
here	O	O
...	O	O
.	O	O
spent	O	O
way	O	O
too	O	O
much	O	O
time	O	O
trying	O	O
to	O	O
figure	O	O
this	O	O
one	O	O
out	O	O
any	O	O
ideas	O	O
?	O	O

The	O	O
following	O	O
script	O	O
works	O	O
on	O	O
my	O	O
dev	O	O
machine	O	O
but	O	O
fails	O	O
in	O	O
production	O	O
.	O	O

After	O	O
this	O	O
script	O	O
fails	O	O
-	O	O
when	O	O
I	O	O
check	O	O
/tmp	O	B-File_Name
folder	O	O
the	O	O
"	O	O
mini_magick20130627-17452-1k48fim.png	O	B-File_Name
"	O	O
file	O	O
is	O	O
actually	O	O
there	O	O
.	O	O

ImageMagick	O	B-Application
convert	O	O
and	O	O
resize	O	O
also	O	O
works	O	O
as	O	O
expected	O	O
from	O	O
the	O	O
command	O	B-Application
line	O	I-Application
.	O	O

Errno::ENOENT	O	B-Error_Name
in	O	O
SitesController	O	O
#create	O	O

No	O	O
such	O	O
file	O	O
or	O	O
directory	O	O
-	O	O
identify	O	O
-quiet	O	O
-ping	O	O
/tmp/mini_magick20130627	O	B-File_Name
-17452-1k48fim.png	O	I-File_Name

This	O	O
is	O	O
another	O	O
answer	O	O
which	O	O
works	O	O
.	O	O

Edit	O	O
development.rb	O	B-File_Name
(	O	O
if	O	O
that	O	O
is	O	O
going	O	O
to	O	O
run	O	O
with	O	O
passenger	O	B-Application
)	O	O
and	O	O
production.rb	O	B-File_Name

add	O	O
to	O	O
bottom	O	O
of	O	O
file	O	O

Got	O	O
it	O	O
from	O	O
this	O	O
reference	O	O
:	O	O
Passenger	O	B-Application
+	O	O
Carrierwave	O	B-Application
+	O	O
Rails	O	B-Library

I	O	O
'll	O	O
answer	O	O
my	O	O
own	O	O
question	O	O
since	O	O
someone	O	O
else	O	O
may	O	O
see	O	O
this	O	O
error	O	O
.	O	O

This	O	O
issue	O	O
has	O	O
to	O	O
do	O	O
with	O	O
the	O	O
way	O	O
Phusion	O	B-Application
Passenger	O	I-Application
(	O	O
under	O	O
Apache	O	B-Application
)	O	O
handles	O	O
environment	O	O
vars	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
an	O	O
Apache	O	B-Application
+	O	O
Phusion	O	B-Application
Passenger	O	I-Application
server	O	I-Application
here	O	O
.	O	O

I	O	O
resolved	O	O
this	O	O
issue	O	O
by	O	O
placing	O	O
the	O	O
ImageMagick	O	B-Application
path	O	O
vars	O	O
into	O	O
my	O	O
apache	O	B-Application
httpd-vhosts.conf	O	B-File_Name
file	O	O
:	O	O

More	O	O
info	O	O
available	O	O
here	O	O
-	O	O

From	O	O
:	O	O
http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from-phusion-passenger/	O	O

But	O	O
wait	O	O
,	O	O
I	O	O
've	O	O
already	O	O
set	O	O
environment	O	O
variables	O	O
in	O	O
my	O	O
/etc/bashrc	O	B-File_Name
or	O	O
/etc/profile	O	B-File_Name
.	O	O

Why	O	O
do	O	O
n't	O	O
they	O	O
work	O	O
?	O	O

If	O	O
you	O	O
've	O	O
set	O	O
environment	O	O
variables	O	O
in	O	O
your	O	O
/etc/bashrc	O	B-File_Name
or	O	O
/etc/profile	O	B-File_Name
,	O	I-File_Name
then	O	O
these	O	O
environment	O	O
variables	O	O
are	O	O
made	O	O
available	O	O
in	O	O
your	O	O
shell	O	B-Application
.	O	O

However	O	O
,	O	O
on	O	O
most	O	O
operating	O	O
systems	O	O
,	O	O
Apache	O	B-Application
is	O	O
not	O	O
started	O	O
from	O	O
the	O	O
shell	O	B-Application
and	O	O
does	O	O
not	O	O
load	O	O
environment	O	O
variables	O	O
defined	O	O
in	O	O
bashrc/profile	O	B-File_Name
,	O	O
which	O	O
is	O	O
why	O	O
setting	O	O
environment	O	O
variables	O	O
in	O	O
/etc/bashrc	O	B-File_Name
and	O	O
/etc/profile	O	B-File_Name
usually	O	O
has	O	O
no	O	O
effect	O	O
on	O	O
Apache	O	B-Application
(	O	O
and	O	O
by	O	O
induction	O	O
,	O	O
on	O	O
Passenger	O	B-Application
and	O	O
Rails	O	B-Library
processes	O	O
)	O	O
.	O	O

in	O	O
my	O	O
project	O	O
when	O	O
i	O	O
run	O	O
it	O	O
in	O	O
chrome	O	B-Application
it	O	O
is	O	O
showing	O	O
wrong	O	O
time	O	O
.	O	O

explorer	O	B-Application
it	O	O
is	O	O
showing	O	O
true	O	O
.	O	O

So	O	O
i	O	O
write	O	O
this	O	O
js	O	B-Language
code	O	O
but	O	O
it	O	O
is	O	O
still	O	O
doesnt	O	O
working	O	O
.	O	O

This	O	O
is	O	O
my	O	O
js	O	B-Language
;	O	O

And	O	O
this	O	O
is	O	O
where	O	O
i	O	O
use	O	O
it	O	O
;	O	O

Pass	O	O
Parameter	O	O
Value	O	O
in	O	O
not	O	O
proper	O	O
Date	O	O
Format	O	O

Use	O	O
processDate.getFullYear()==>	B-Code_Block	B-Code_Block
processDate.getFullYear().toDateString()	I-Code_Block	I-Code_Block
date	O	O
data	O	O
convert	O	O
into	O	O
String	O	B-Data_Type

please	O	O
try	O	O
this	O	O
code	O	O

How	O	O
do	O	O
I	O	O
make	O	O
an	O	O
if	O	O
statement	O	O
in	O	O
JS	O	B-Language
that	O	O
is	O	O
dependent	O	O
on	O	O
character	O	O
count	O	O
in	O	O
an	O	O
html	O	B-Language
input	O	O
field	O	O
?	O	O

For	O	O
example	O	O
,	O	O
if	O	O
there	O	O
is	O	O
a	O	O
value	O	O
greater	O	O
than	O	O
0	O	B-Value
in	O	O
the	O	O
input	O	O
field	O	O
then	O	O
css	O	B-Language
attributes	O	O
of	O	O
that	O	O
field	O	O
will	O	O
change	O	O
.	O	O

And	O	O
to	O	O
complete	O	O
the	O	O
list	O	O
of	O	O
answers	O	O
,	O	O
now	O	O
one	O	O
answer	O	O
that	O	O
evaluates	O	O
the	O	O
value	O	O
when	O	O
the	O	O
input	O	O
loses	O	O
focus	O	O
.	O	O

<input	B-Code_Block	B-Code_Block
id="txt"	I-Code_Block	I-Code_Block
onchange="inputChange(this.value)"	I-Code_Block	I-Code_Block
/>	I-Code_Block	I-Code_Block

Depending	O	O
if	O	O
you	O	O
want	O	O
it	O	O
to	O	O
happen	O	O
on	O	O
page	O	B-User_Interface_Element
load	O	O
or	O	O
checking	O	O
while	O	O
something	O	O
changes	O	O
in	O	O
the	O	O
input	O	O
field	O	O
.	O	O

On	O	O
page	O	O
load	O	O
check	O	O
@gurvinder372	O	B-User_Name
answer	O	O
else	O	O
you	O	O
can	O	O
check	O	O
this	O	O
for	O	O
onkeyup	B-Code_Block	B-Code_Block
on	O	O
the	O	O
input	O	O
field	O	O
:	O	O

<input	B-Code_Block	B-Code_Block
type="text"	I-Code_Block	I-Code_Block
id="input">	I-Code_Block	I-Code_Block

I	O	O
would	O	O
like	O	O
to	O	O
use	O	O
a	O	O
collapsible	O	B-User_Interface_Element
force	O	I-User_Interface_Element
diagram	O	I-User_Interface_Element
which	O	O
is	O	O
collapsed	O	O
by	O	O
default	O	O
(	O	O
starting	O	O
out	O	O
with	O	O
only	O	O
one	O	O
node	O	O
)	O	O
.	O	O

I	O	O
ran	O	O
across	O	O
this	O	O
:	O	O
http://bl.ocks.org/david4096/6168323	O	O
but	O	O
it	O	O
is	O	O
blank	O	O
and	O	O
not	O	O
working	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
the	O	O
latest	O	O
Mozilla	O	B-Application
Firefox	O	I-Application
43.0.4	O	B-Version
.	O	O

I	O	O
even	O	O
put	O	O
it	O	O
to	O	O
plunker	O	B-Application
with	O	O
the	O	O
same	O	O
result	O	O
-	O	O
blank	O	O
.	O	O

Can	O	O
someone	O	O
identify	O	O
the	O	O
problem	O	O
?	O	O

Also	O	O
would	O	O
it	O	O
be	O	O
possible	O	O
to	O	O
have	O	O
it	O	O
partially	O	O
collpased	O	O
?	O	O

That	O	O
means	O	O
the	O	O
first	O	O
set	O	O
of	O	O
children	O	O
expanded	O	O
but	O	O
everything	O	O
else	O	O
collapsed	O	O
?	O	O

My	O	O
non-working	O	O
example	O	O
on	O	O
plunker	O	B-Application

I	O	O
wrote	O	O
this	O	O
code	O	O
.	O	O

But	O	O
getAllNetworkInfo()	O	B-Function
is	O	O
deprecated	O	O
.	O	O

Please	O	O
help	O	O
.	O	O

Thank	O	O
you	O	O
.	O	O

as	O	O
the	O	O
docs	O	O
say	O	O
:	O	O

getAllNetworkInfo()	B-Code_Block	B-Function

I	O	O
think	O	O
you	O	O
can	O	O
use	O	O
getActiveNetworkInfo()	B-Code_Block	B-Function
:	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
:	O	O

You	O	O
can	O	O
use	O	O
this	O	O
class	O	O
for	O	O
detecting	O	O
internet	O	O
connection	O	O
.	O	O

Hope	O	O
this	O	O
will	O	O
help	O	O
you	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
know	O	O
if	O	O
some	O	O
of	O	O
you	O	O
know	O	O
of	O	O
a	O	O
way	O	O
to	O	O
automatically	O	O
title	O	O
plots	O	B-User_Interface_Element
with	O	O
the	O	O
name	O	O
of	O	O
the	O	O
object	O	O
plotted	O	O

so	O	O
that	O	O
for	O	O
intance	O	O
when	O	O
I	O	O
plot	O	O
supermatrix(5:10,:,2:3)	O	B-Function

the	O	O
title	O	O
(	O	O
or	O	O
the	O	O
legend	O	O
.	O	O
.	O	O
)	O	O
on	O	O
the	O	O
plot	O	B-User_Interface_Element
says	O	O
"supermatrix(5:10,:,2:3)"	O	B-Value

thanks	O	O

I	O	O
've	O	O
modified	O	O
the	O	O
function	O	O
dfig	B-Code_Block	B-Function
originally	O	O
created	O	O
by	O	O
F.Moisy	O	B-User_Name
for	O	O
creating	O	O
docked	O	O
figures	O	B-User_Interface_Element
in	O	O
order	O	O
to	O	O
have	O	O
the	O	O
command	O	O
used	O	O
for	O	O
plotting	O	O
show	O	O
up	O	O
in	O	O
the	O	O
figure	O	B-User_Interface_Element
name	O	O
.	O	O

The	O	O
idea	O	O
is	O	O
to	O	O
read	O	O
the	O	O
last	O	O
command	O	O
in	O	O
the	O	O
command	O	O
history	O	O
and	O	O
use	O	O
that	O	O
to	O	O
generate	O	O
the	O	O
figure	O	B-User_Interface_Element
title	O	O
.	O	O

Is	O	O
this	O	O
for	O	O
debugging	O	O
purposes	O	O
?	O	O

If	O	O
not	O	O
then	O	O
I	O	O
suggest	O	O
you	O	O
tell	O	O
us	O	O
your	O	O
overall	O	O
motivation	O	O
because	O	O
someone	O	O
might	O	O
be	O	O
able	O	O
to	O	O
suggest	O	O
a	O	O
more	O	O
robust	O	O
method	O	O
,	O	O
but	O	O
this	O	O
might	O	O
get	O	O
you	O	O
started	O	O
:	O	O

Although	O	O
to	O	O
be	O	O
honest	O	O
I	O	O
cannot	O	O
imagine	O	O
why	O	O
this	O	O
would	O	O
ever	O	O
be	O	O
useful	O	O

I	O	O
followed	O	O
this	O	O
to	O	O
Print	O	O
in	O	O
android	O	B-Operating_System
(	O	O
Thermal	O	B-Device
Printer	O	I-Device
)	O	O

This	O	O
is	O	O
My	O	O
web-view	O	B-Application
Over	O	O
there	O	O
On-click	O	B-Function
It	O	O
will	O	O
Load	O	O
My	O	O
Android	O	B-Operating_System
Activity	O	B-Application
Which	O	O
is	O	O
Out	O	O
of	O	O
view	O	B-Application
..	O	I-Application
.	O	I-Application

For	O	O
that	O	O
I	O	O
have	O	O
Given	O	O
this	O	O
..	O	O
.	O	O
to	O	O
Open	O	O
new	O	O
activity	O	B-Application
from	O	O
web-view.	O	B-Application
.	O	O

Now	O	O
My	O	O
printer	O	B-Device
Activity	O	B-Class
is	O	O
working	O	O
Fine	O	O
So	O	O
here	O	O
I	O	O
want	O	O
to	O	O
pass	O	O
a	O	O
Value	O	O
On	O	B-Function
click	O	I-Function
Button	O	B-User_Interface_Element
Which	O	O
Opens	O	O
Printer	O	B-Application
..	O	O
.	O	O

But	O	O
can	O	O
Any	O	O
one	O	O
suggest	O	O
me	O	O
How	O	O
to	O	O
Receive	O	O
same	O	O
value	O	O
in	O	O
android	O	B-Operating_System
Activity	O	B-Class
not	O	O
in	O	O
web-view.	O	B-Class
.	O	O

All	O	O
I	O	O
need	O	O
is	O	O
In	O	O
my	O	O
web-view	O	B-Application
when	O	O
I	O	O
click	O	O
on	O	O
the	O	O
Button	O	B-User_Interface_Element
its	O	O
loading	O	O
Android	O	B-Operating_System
Activity	O	B-Application
Along	O	O
with	O	O
that	O	O
I	O	O
want	O	O
to	O	O
Pass	O	O
A	O	O
string	O	B-Data_Type
value	O	O
to	O	O
new	O	O
Activity	O	B-Class

Why	O	O
Should	O	O
I	O	O
pass	O	O
Value	O	O
means	O	O
In	O	O
that	O	O
I	O	O
have	O	O
a	O	O
Url	O	O
so	O	O
I	O	O
can	O	O
Print	O	O
with	O	O
that	O	O
URL	O	O

Here	O	O
JS	O	B-Language
value	O	O
is	O	O
different	O	O
form	O	O
current	O	O
URL	O	O

Update	O	O

I	O	O
followed	O	O
this	O	O
But	O	O
its	O	O
Inside	O	O
the	O	O
Web-view	O	B-Class
I	O	O
want	O	O
same	O	O
at	O	O
Outside	O	O
the	O	O
web-view.	O	B-Class
.	O	O

Means	O	O
When	O	O
I	O	O
click	O	O
on	O	O
the	O	O
web-view	O	B-Application
Its	O	O
opening	O	O
android	O	B-Operating_System
activity	O	B-Application
with	O	O
the	O	O
same	O	O
its	O	O
should	O	O
pass	O	O
a	O	O
value	O	O
to	O	O
my	O	O
activity	O	B-Class
not	O	O
the	O	O
web-view	O	B-Class

Update	O	O
1	O	O

I	O	O
followed	O	O
@Sujal	O	B-User_Name
Mandal	O	I-User_Name
answer	O	O
But	O	O
I	O	O
dont	O	O
Know	O	O
How	O	O
to	O	O
use	O	O
that	O	O
Value	O	O
In	O	O
next	O	O
activity	O	B-Class
Can	O	O
any	O	O
one	O	O
suggest	O	O
me.	O	O
.	O	O
on	O	O
this	O	O
kind.	O	O
.	O	O
in	O	O
next	O	O
activity	O	O
It	O	O
may	O	O
in	O	O
System.out.println	B-Code_Block	B-Function
or	O	O
text-view	B-Code_Block	B-User_Interface_Element
or	O	O
any	O	O
other	O	O
string	B-Code_Block	B-Data_Type
So	O	O
I	O	O
can	O	O
use	O	O
can	O	O
Any	O	O
one	O	O
suggest	O	O
How	O	O
to	O	O
Use	O	O
the	O	O
JavaScript	O	B-Language
Value	O	O
in	O	O
other	O	O
activity	O	B-Class
outside	O	O
the	O	O
web-view	O	B-Class
.	O	O

HTML	O	B-Language
JS	O	I-Language
CODE	O	O

&	O	O
change	O	O
your	O	O
android	O	B-Language
code	O	O
to	O	O
be	O	O
like	O	O
this	O	O

In	O	O
next	O	O
activity	O	O
receive	O	O
the	O	O
web	O	O
JS	O	B-Language
response	O	O
by	O	O
using	O	O

String	B-Code_Block	B-Code_Block
data	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
getIntent().getStringExtra("STRING_DATA")	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

at	O	O
oncreate	O	B-Function

I	O	O
have	O	O
a	O	O
HTML	O	B-File_Type
file	O	O
with	O	O
2	O	O
types	O	O
of	O	O
divs	O	B-HTML_XML_Tag
,	O	O
all	O	O
of	O	O
them	O	O
are	O	O
15	O	B-Value
x	O	I-Value
15px	O	I-Value
,	O	O
some	O	O
of	O	O
them	O	O
red	O	B-Value
,	O	O
the	O	O
others	O	O
green	O	B-Value
.	O	O

How	O	O
can	O	O
I	O	O
eliminate	O	O
that	O	O
white	O	O
space	O	O
between	O	O
the	O	O
lines	O	O
?	O	O

I	O	O
tried	O	O
to	O	O
add	O	O
padding	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
2px	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
,	O	O
there	O	O
is	O	O
no	O	O
space	O	O
after	O	O
that	O	O
,	O	O
but	O	O
the	O	O
divs	O	O
are	O	O
getting	O	O
bigger	O	O
than	O	O
I	O	O
want	O	O
.	O	O

How	O	O
can	O	O
I	O	O
get	O	O
rid	O	O
of	O	O
that	O	O
space	O	O
,	O	O
keeping	O	O
the	O	O
size	O	O
I	O	O
want	O	O
(	O	O
15	O	B-Value
x	O	I-Value
15px	O	I-Value
)	O	O
for	O	O
the	O	O
divs	O	B-HTML_XML_Tag
?	O	O

I	O	O
am	O	O
developing	O	O
an	O	O
angular5	O	B-Library
front	O	O
end	O	O
and	O	O
asp.net	O	B-Library
core	O	O
2.0	O	B-Version
web	O	O
api	O	O
application	O	O
using	O	O
Visual	O	B-Application
studio	O	I-Application
2017	O	B-Version
.	O	O

The	O	O
application	O	O
is	O	O
authenticating	O	O
users	O	O
using	O	O
azure	O	B-Application
AD	O	O
.	O	O

Some	O	O
of	O	O
the	O	O
Azure	O	B-Application
AD	O	O
users	O	O
have	O	O
access	O	O
to	O	O
my	O	O
application	O	O
and	O	O
other	O	O
Azure	O	B-Application
AD	O	O
users	O	O
have	O	O
no	O	O
access	O	O
.	O	O

I	O	O
need	O	O
to	O	O
warn	O	O
the	O	O
user	O	O
with	O	O
no	O	O
access	O	O
my	O	O
application	O	O
as	O	O
soon	O	O
as	O	O
they	O	O
login	O	O
in	O	O
(	O	O
If	O	O
they	O	O
have	O	O
no	O	O
groups	O	O
or	O	O
roles	O	O
assigned	O	O
to	O	O
my	O	O
application	O	O
at	O	O
azure	O	B-Application
)	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
that	O	O
?	O	O

Basically	O	O
I	O	O
need	O	O
to	O	O
check	O	O
the	O	O
login	O	O
user	O	O
belong	O	O
to	O	O
certain	O	O
Azure	O	B-Application
AD	O	O
group	O	O
or	O	O
Roles	O	O
.	O	O

thanks	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
guide	O	O
or	O	O
program	O	O
that	O	O
can	O	O
take	O	O
a	O	O
sample	O	O
JSON	O	B-File_Type
response	O	O
and	O	O
generate	O	O
a	O	O
serializeable	O	O
class	O	O
or	O	O
contract	O	O
?	O	O

I	O	O
am	O	O
having	O	O
trouble	O	O
figuring	O	O
out	O	O
how	O	O
to	O	O
build	O	O
the	O	O
contract	O	O
from	O	O
a	O	O
moderately	O	O
sized	O	O
JSON	O	B-File_Type
type	O	O
but	O	O
I	O	O
do	O	O
have	O	O
a	O	O
sample	O	O
response	O	O
.	O	O

My	O	O
json	O	B-File_Type
response	O	O
has	O	O
sub	O	O
types	O	O
such	O	O
as	O	O

you	O	O
can	O	O
use	O	O
http://json2csharp.com/	O	O
See	O	O
the	O	O
example	O	O
I	O	O
did	O	O
before	O	O
:	O	O

I	O	O
hope	O	O
the	O	O
below	O	O
example	O	O
will	O	O
help	O	O
.	O	O

I	O	O
always	O	O
design	O	O
a	O	O
model	O	O
that	O	O
match	O	O
the	O	O
json	O	B-File_Type
.	O	O

It	O	O
is	O	O
much	O	O
better	O	O
to	O	O
work	O	O
with	O	O
the	O	O
object	O	O
when	O	O
it	O	O
is	O	O
your	O	O
own	O	O
model	O	O
design	O	O
.	O	O

It	O	O
is	O	O
very	O	O
easy	O	O
to	O	O
generate	O	O
the	O	O
c#	O	B-Language
model	O	O
from	O	O
the	O	O
json	O	B-File_Type
.	O	O

I	O	O
use	O	O
this	O	O
website	O	O
to	O	O
generate	O	O
the	O	O
model	O	O
:	O	O
http://json2csharp.com	O	O

A	O	O
complete	O	O
example	O	O
is	O	O
:	O	O

C#	O	B-Language
Code	O	O
:	O	O

JSON	O	B-File_Type
:	O	O

Model	O	O
Generated	O	O
automatically	O	O
using	O	O
http://json2csharp.com/	O	O

I	O	O
hope	O	O
this	O	O
complete	O	O
example	O	O
helps	O	O
you	O	O
.	O	O

Have	O	O
a	O	O
good	O	O
day	O	O
!	O	O

I	O	O
have	O	O
a	O	O
table	O	B-User_Interface_Element
with	O	O
players	O	O
and	O	O
scores	O	O
(	O	O
Name:Mike	O	B-Value
Score:10	O	I-Value
,	O	O
Name:Peter	O	B-Value
Score:5	O	I-Value
,	O	O
etc	O	O
)	O	O
and	O	O
a	O	O
View	O	O
with	O	O
3	O	O
pictures	O	B-User_Interface_Element
of	O	O
a	O	O
bronze	O	B-Value
,	O	O
silver	O	B-Value
and	O	O
gold	O	B-Value
medal	O	O
.	O	O

Underneath	O	O
each	O	O
picture	O	B-User_Interface_Element
I	O	O
want	O	O
to	O	O
display	O	O
the	O	O
playername(s)	O	O
of	O	O
the	O	O
winners	O	O
each	O	O
week	O	O
/	O	O
round	O	O
.	O	O

Could	O	O
well	O	O
be	O	O
that	O	O
there	O	O
are	O	O
multiple	O	O
bronze	O	O
,	O	O
silver	O	O
or	O	O
gold	O	O
scores	O	O
.	O	O

In	O	O
my	O	O
TotalViewModel	O	B-Class
I	O	O
have	O	O
an	O	O
ObservableCollection	O	B-Class
for	O	O
all	O	O
the	O	O
Total	O	O
Scores	O	O
:	O	O

I	O	O
wanted	O	O
to	O	O
use	O	O
a	O	O
IEnumerable	O	B-Class
because	O	O
of	O	O
the	O	O
multiple	O	O
numbers	O	O
one	O	O
,	O	O
two	O	O
,	O	O
three	O	O
score	O	O
:	O	O

The	O	O
DataContext	O	B-Class
of	O	O
my	O	O
View	O	O
is	O	O
working	O	O
fine	O	O
for	O	O
the	O	O
straightforward	O	O
bindings	O	O
,	O	O
it	O	O
's	O	O
set	O	O
in	O	O
the	O	O
UserControl	O	B-Class
:	O	O

But	O	O
the	O	O
results	O	O
are	O	O
n't	O	O
displayed	O	O
in	O	O
my	O	O
DataGrid	O	B-Class
(	O	O
guess	O	O
I	O	O
'm	O	O
making	O	O
a	O	O
stupid	O	O
mistake	O	O
here	O	O
)	O	O
:	O	O

So	O	O
I	O	O
have	O	O
2	O	O
questions	O	O
:	O	O

How	O	O
do	O	O
I	O	O
get	O	O
the	O	O
desired	O	O
collection	O	O
of	O	O
number	O	O
1/2/3	O	O
scores	O	O
?	O	O

How	O	O
do	O	O
I	O	O
get	O	O
them	O	O
in	O	O
my	O	O
View	O	O
?	O	O

Thanks	O	O
.	O	O

Well	O	O
I	O	O
wont	O	O
get	O	O
into	O	O
the	O	O
data	O	O
binding	O	O
bit	O	O
but	O	O
a	O	O
linq	O	B-Library
query	O	O
to	O	O
extract	O	O
the	O	O
top	O	O
three	O	O
could	O	O
be	O	O
something	O	O
like	O	O
this	O	O
:	O	O

You	O	O
're	O	O
binding	O	O
to	O	O
FirstOne	O	B-Class
so	O	O
you	O	O
need	O	O
to	O	O
do	O	O
a	O	O
propertychanged	O	B-Function
for	O	O
that	O	O
property	O	O
.	O	O

The	O	O
following	O	O
program	O	O

fails	O	O
to	O	O
compile	O	O
on	O	O
both	O	O
g++	O	B-Application
5.4	O	B-Version
and	O	O
clang	O	B-Application
3.8	O	B-Version
(	O	O
Ubuntu	O	B-Operating_System
64-bit	O	B-Version
)	O	O
.	O	O

g++	O	B-Application
output	O	O

clang	O	B-Application
output	O	O

The	O	O
diagnostics	O	O
vary	O	O
a	O	O
little	O	O
in	O	O
form	O	O
,	O	O
but	O	O
are	O	O
related	O	O
to	O	O
the	O	O
same	O	O
issue	O	O
.	O	O

There	O	O
is	O	O
a	O	O
clash	O	O
with	O	O
the	O	O
standard	O	O
C	O	B-Language
function	O	O
clock	B-Code_Block	B-Function
and	O	O
the	O	O
struct	O	B-Data_Structure
of	O	O
the	O	O
same	O	O
name	O	O
defined	O	O
in	O	O
the	O	O
program	O	O
.	O	O

The	O	O
relevant	O	O
declaration	O	O
from	O	O
time.h	B-Code_Block	B-File_Name
:	O	O

The	O	O
question	O	O
is	O	O
:	O	O
should	O	O
n't	O	O
such	O	O
symbols	O	O
be	O	O
in	O	O
the	O	O
std	B-Code_Block	B-Variable
namespace	O	O
,	O	O
since	O	O
the	O	O
program	O	O
includes	O	O
<ctime>	B-Code_Block	B-Library
?	O	O

Interestingly	O	O
,	O	O
that	O	O
very	O	O
declaration	O	O
sits	O	O
a	O	O
couple	O	O
of	O	O
lines	O	O
after	O	O
a	O	O
macro	O	O
which	O	O
reads	O	O
__BEGIN_NAMESPACE_STD	B-Code_Block	B-Code_Block
.	O	O

In	O	O
addition	O	O
,	O	O
in	O	O
<ctime>	B-Code_Block	B-Library
,	O	O
one	O	O
can	O	O
see	O	O
:	O	O

Is	O	O
there	O	O
some	O	O
kind	O	O
of	O	O
bug	O	O
here	O	O
?	O	O

Thank	O	O
you	O	O
.	O	O

Yes	O	O
,	O	O
and	O	O
they	O	O
are	O	O
.	O	O

Unfortunately	O	O
,	O	O
the	O	O
C++	O	B-Language
standard	O	O
also	O	O
allows	O	O
implementations	O	O
to	O	O
put	O	O
names	O	O
from	O	O
C-library	O	B-Library
derived	O	O
headers	O	B-File_Type
in	O	O
the	O	O
global	O	B-Data_Type
namespace	O	O
.	O	O

In	O	O
this	O	O
case	O	O
,	O	O
you	O	O
get	O	O
std::clock	B-Code_Block	B-Library
and	O	O
::clock	B-Code_Block	B-Library
.	O	O

This	O	O
applies	O	O
to	O	O
all	O	O
the	O	O
<c*>	B-Code_Block	B-Library
C++	O	B-Language
headers	O	B-File_Type
with	O	O
a	O	O
corresponding	O	O
<*.h>	B-Code_Block	B-Library
version	O	O
in	O	O
C	O	B-Language
.	O	O

I	O	O
want	O	O
to	O	O
open	O	O
a	O	O
pdf	B-Code_Block	B-File_Type
file	O	O
on	O	O
my	O	O
html	B-Code_Block	B-Language
document	O	O
,	O	O
but	O	O
the	O	O
file	O	O
wo	O	O
n't	O	O
open	O	O
.	O	O

Chrome	O	B-Application
said	O	O

Please	O	O
help	O	O
.	O	O

the	O	O
pdf	B-Code_Block	B-File_Type
and	O	O
the	O	O
html	B-Code_Block	B-File_Type
are	O	O
on	O	O
the	O	O
same	O	O
location	O	O
on	O	O
the	O	O
localhost	B-Code_Block	B-Code_Block
of	O	O
my	O	O
computer	O	B-Device
.	O	O

After	O	O
Struggling	O	O
with	O	O
this	O	O
problem	O	O
i	O	O
came	O	O
to	O	O
solution	O	O
,	O	O
By	O	O
Referring	O	O
this	O	O
Link	O	O
Here	O	O
.	O	O

Hope	O	O
this	O	O
help	O	O
someone	O	O
.	O	O

JS	O	B-Language
:	O	O

HTML	O	B-Language

below	O	O
code	O	O
are	O	O
working	O	O
for	O	O
PDF	O	B-File_Type
in	O	O
chrome	O	B-Application
browser	O	I-Application

I	O	O
have	O	O
a	O	O
Gridview	O	B-Class
and	O	O
the	O	O
columns	O	B-HTML_XML_Tag
defined	O	O
like	O	O
below	O	O
.	O	O

When	O	O
I	O	O
run	O	O
the	O	O
program	O	O
I	O	O
get	O	O
the	O	O
error	O	O

Can	O	O
anyone	O	O
help	O	O
me	O	O
solving	O	O
this	O	O
?	O	O

Nothing	O	O
seems	O	O
to	O	O
be	O	O
wrong	O	O
with	O	O
your	O	O
markup	O	O
.	O	O

The	O	O
only	O	O
thing	O	O
I	O	O
would	O	O
recommend	O	O
is	O	O
ending	O	O
the	O	O
Label	O	B-HTML_XML_Tag
control	O	O
immediately	O	O
and	O	O
trying	O	O
it	O	O
again	O	O
.	O	O

In	O	O
the	O	O
past	O	O
I	O	O
have	O	O
seen	O	O
issues	O	O
when	O	O
Tab	O	B-Keyboard_IP
,	O	O
Â	O	B-Keyboard_IP
or	O	I-Keyboard_IP
some	O	O
unintentional	O	O
characters	O	O
come	O	O
in	O	O
between	O	O
some	O	O
of	O	O
the	O	O
templated	O	O
controls	O	O
.	O	O

Check	O	O
if	O	O
you	O	O
have	O	O
any	O	O
such	O	O
characters	O	O
by	O	O
redoing	O	O
every	O	O
line	O	O
from	O	O
scratch	O	O
.	O	O

This	O	O
question	O	O
is	O	O
a	O	O
little	O	O
old	O	O
,	O	O
but	O	O
for	O	O
the	O	O
others	O	O
who	O	O
encounter	O	O
this	O	O
problem	O	O
:	O	O

This	O	O
problem	O	O
can	O	O
caused	O	O
by	O	O
not	O	O
putting	O	O
white	O	O
space	O	O
between	O	O
properties	O	O
.	O	O

For	O	O
example	O	O
:	O	O

I	O	O
wanted	O	O
to	O	O
know	O	O
whether	O	O
it	O	O
is	O	O
possible	O	O
to	O	O
copy	O	O
particular	O	O
div	O	B-HTML_XML_Tag
's	O	O
content	O	O
as	O	O
an	O	O
input	O	O
element	O	O
's	O	O
value	O	O
automatically	O	O
when	O	O
page	O	B-User_Interface_Element
is	O	O
loaded	O	O
.	O	O

base	O	O
on	O	O
brso05	O	B-User_Name
's	O	O
answer	O	O
,	O	O

document.getElementById("myInput").value	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
document.getElementById("myDiv").innerHTML	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

Maybe	O	O
something	O	O
like	O	O
this	O	O
:	O	O

I	O	O
have	O	O
the	O	O
list	O	B-Data_Structure
of	O	O
records	O	O
in	O	O
the	O	O
subject	O	O
table	O	B-User_Interface_Element
then	O	O
I	O	O
want	O	O
to	O	O
add	O	O
to	O	O
group_concat	O	O
of	O	O
yii2	O	B-Library
bind	O	O
methods	O	O
.	O	O

but	O	O
I	O	O
have	O	O
to	O	O
get	O	O
the	O	O
single	O	O
value	O	O
only	O	O
.	O	O

I	O	O
want	O	O
result	O	O
is	O	O
"	O	B-Value
English	O	I-Value
,	O	I-Value
maths	O	I-Value
"	O	I-Value
but	O	O
my	O	O
result	O	O
is	O	O
"	O	B-Value
English	O	I-Value
"	O	I-Value
only	O	O
?	O	O

you	O	O
should	O	O
assign	O	O
a	O	O
name	O	O
to	O	O
the	O	O
result	O	O
using	O	O
alias	O	O
.	O	O
.	O	O
eg	O	O
g_sname	O	B-Variable

you	O	O
could	O	O
also	O	O
try	O	O
using	O	O
column()	O	B-Function

I	O	O
got	O	O
an	O	O
HTML	O	B-Language
with	O	O
a	O	O
button	O	B-User_Interface_Element
show	O	O
details	O	O
which	O	O
opens	O	O
up	O	O
a	O	O
lot	O	O
of	O	O
information	O	O
.	O	O

I	O	O
need	O	O
to	O	O
convert	O	O
that	O	O
page	O	O
into	O	O
pdf	O	B-File_Type
,	O	O
therefore	O	O
I	O	O
use	O	O
wkhtmltopdf	O	B-Application
.	O	O

The	O	O
problem	O	O
is	O	O
in	O	O
the	O	O
PDF	O	B-File_Type
the	O	O
details	O	O
wo	O	O
n't	O	O
show	O	O
up	O	O
because	O	O
the	O	O
button	O	B-User_Interface_Element
was	O	O
n't	O	O
clicked	O	O
.	O	O

The	O	O
second	O	O
problem	O	O
is	O	O
I	O	O
ca	O	O
n't	O	O
change	O	O
the	O	O
html	O	B-Language
because	O	O
it	O	O
is	O	O
automatically	O	O
generated	O	O
by	O	O
a	O	O
tool	O	O
called	O	O
OpenSCAP	O	B-Application
.	O	O

Maybe	O	O
you	O	O
got	O	O
an	O	O
idea	O	O
how	O	O
I	O	O
can	O	O
show	O	O
this	O	O
details	O	O
in	O	O
the	O	O
pdf	O	B-File_Type
?	O	O

I	O	O
'm	O	O
working	O	O
on	O	O
SLES	O	B-Operating_System
11	O	B-Version
.	O	O

my	O	O
command	O	O
is	O	O

So	O	O
I	O	O
am	O	O
using	O	O
the	O	O
code	O	O
that	O	O
I	O	O
got	O	O
off	O	O
W3C	O	B-Website
here	O	O
:	O	O
http://www.w3schools.com/php/php_ajax_database.asp	O	O

modified	O	O
it	O	O
to	O	O
fit	O	O
with	O	O
my	O	O
file	O	O
names	O	O
and	O	O
database	O	O
etc	O	O
,	O	O
however	O	O
I	O	O
am	O	O
having	O	O
a	O	O
weird	O	O
issue	O	O
with	O	O
echoing	O	O
my	O	O
responses	O	O
to	O	O
look	O	O
correct	O	O
.	O	O

For	O	O
every	O	O
product	O	O
that	O	O
collects	O	O
from	O	O
the	O	O
product	O	O
database	O	O
it	O	O
needs	O	O
to	O	O
print	O	O
it	O	O
in	O	O
a	O	O
section	O	B-HTML_XML_Tag
tag	O	O
like	O	O
so	O	O
:	O	O

However	O	O
this	O	O
code	O	O
is	O	O
n't	O	O
working	O	O
anymore	O	O
,	O	O
the	O	O
closest	O	O
I	O	O
have	O	O
gotten	O	O
is	O	O
it	O	O
to	O	O
only	O	O
display	O	O
one	O	O
and	O	O
then	O	O
breaks	O	O
the	O	O
rest	O	O
.	O	O

the	O	O
PHP	O	B-Language
echo	O	B-Function
is	O	O
being	O	O
returned	O	O
into	O	O
the	O	O
following	O	O
div	O	B-HTML_XML_Tag
tag	O	O

so	O	O
I	O	O
have	O	O
tried	O	O
changing	O	O
my	O	O
CSS	O	B-Language
to	O	O
stuff	O	O
like	O	O
article	O	B-HTML_XML_Tag
>	O	O
.txtHint	O	B-Class
>	O	O
#sideWays	O	O
or	O	O
even	O	O
just	O	O
making	O	O
the	O	O
#sideWays	O	O
css	O	B-Language
the	O	O
same	O	O
as	O	O
.txtHint	O	B-Class
to	O	O
skip	O	O
the	O	O
>	O	O
#sideWays	O	O
but	O	O
nothing	O	O
is	O	O
working	O	O
to	O	O
display	O	O
my	O	O
CSS	O	B-Language
on	O	O
the	O	O
echo	O	B-Code_Block
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
why	O	O
but	O	O
changing	O	O
the	O	O
keyword	O	O
echo	O	B-Code_Block
to	O	O
print	O	B-Code_Block
fixed	O	O
the	O	O
issue	O	O
of	O	O
it	O	O
not	O	O
recognising	O	O
my	O	O
html	O	B-Language
tags	O	O
and	O	O
applying	O	O
the	O	O
CSS	O	B-Language
to	O	O
them	O	O
.	O	O

Trying	O	O
to	O	O
create	O	O
an	O	O
smart	O	B-Device
watch	O	I-Device
application	O	O
opening	O	O
a	O	O
web	O	O
view	O	O
which	O	O
runs	O	O
some	O	O
javascript	O	B-Language
code	O	O
.	O	O

I	O	O
get	O	O
a	O	O
crazy	O	O
:	O	O

Here	O	O
is	O	O
MWE	O	O
.	O	O

MainActivity.java	O	B-File_Name
:	O	O

activity_main.xml	O	B-File_Name
:	O	O

And	O	O
here	O	O
is	O	O
the	O	O
full	O	O
error	O	O
I	O	O
get	O	O
:	O	O

I	O	O
have	O	O
checked	O	O
other	O	O
threads	O	O
about	O	O
this	O	O
error	O	O
but	O	O
I	O	O
am	O	O
in	O	O
particular	O	O
confused	O	O
about	O	O
this	O	O
"	O	O
line	O	O
0	O	O
"	O	O
on	O	O
the	O	O
xml	O	B-File_Type
file	O	O
error	O	O
.	O	O

Would	O	O
anyone	O	O
know	O	O
why	O	O
this	O	O
is	O	O
happening	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O

Android	O	B-Operating_System
Wear	O	I-Operating_System
does	O	O
not	O	O
support	O	O
WebView	B-Code_Block	B-Class
.	O	O

More	O	O
concretely	O	O
,	O	O
examine	O	O
the	O	O
original	O	O
exception	O	B-Class
:	O	O

Since	O	O
Android	O	B-Operating_System
4.4	O	B-Version
or	O	O
thereabouts	O	O
,	O	O
WebView	B-Code_Block	B-Class
is	O	O
provided	O	O
by	O	O
the	O	O
"	O	O
System	O	B-Application
WebView	O	I-Application
"	O	O
app	O	O
,	O	O
which	O	O
means	O	O
Android	O	B-Operating_System
has	O	O
to	O	O
do	O	O
some	O	O
gyrations	O	O
to	O	O
get	O	O
its	O	O
hand	O	O
on	O	O
the	O	O
guts	O	O
of	O	O
WebView	B-Code_Block	B-Class
implementation	O	O
when	O	O
you	O	O
request	O	O
to	O	O
display	O	O
the	O	O
WebView	B-Code_Block	B-Class
.	O	O

Here	O	O
,	O	O
NullWebViewFactoryProvider	B-Code_Block	B-Error_Name
means	O	O
"	O	O
we	O	O
do	O	O
not	O	O
have	O	O
a	O	O
System	O	B-Application
WebView	O	I-Application
to	O	O
use	O	O
"	O	O
.	O	O

I	O	O
have	O	O
an	O	O
input	O	O
field	O	O
that	O	O
is	O	O
setting	O	O
the	O	O
interval	O	O
in	O	O
days	O	O
to	O	O
run	O	O
a	O	O
script	O	O
.	O	O

I	O	O
'm	O	O
looking	O	O
for	O	O
a	O	O
way	O	O
to	O	O
set	O	O
the	O	O
cronjob	O	B-Application
command	O	O
(	O	O
ie	O	O
:	O	O
*	B-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
)	O	O
using	O	O
a	O	O
PHP	O	B-Language
based	O	O
on	O	O
the	O	O
number	O	O
of	O	O
days	O	O
set	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
do	O	O
this	O	O
or	O	O
does	O	O
it	O	O
have	O	O
to	O	O
be	O	O
manually	O	O
setup	O	O
?	O	O

Something	O	O
like	O	O
:	O	O

if	O	O
i	O	O
understand	O	O
you	O	O
correct	O	O
.	O	O

you	O	O
want	O	O
a	O	O
function	O	O
that	O	O
given	O	O
amount	O	O
of	O	O
days	O	O
will	O	O
return	O	O
the	O	O
string	O	B-Data_Type
?	O	O

*	O	B-File_Name
/5	O	I-File_Name
*	O	I-File_Name
*	O	I-File_Name
*	O	I-File_Name
*	O	I-File_Name
/home/user/test.pl	O	I-File_Name

.   	O	O
-	O	O
minute	O	O
(	O	O
0	O	O
-	O	O
59	O	O
)	O	O

|	O	O
.  --	O	O
-	O	O
hour	O	O
(	O	O
0	O	O
-	O	O
2	O	O
3)	O	B-Value

|	O	O
|	O	O
. ----	O	O
-	O	O
day	O	O
of	O	O
month	O	B-Value
(	O	I-Value
1	O	I-Value
-	O	I-Value
3	O	I-Value
1)	O	I-Value

|	O	O
|	O	O
|	O	O
. -	O	O
-	O	O
month	O	O
(	O	B-Value
1	O	I-Value
-	O	I-Value
1	O	I-Value
2)	O	I-Value
OR	O	I-Value
jan	O	I-Value
,	O	O
feb	O	B-Value
,	O	O
mar	O	B-Value
,	O	O
apr	O	B-Value
..	O	I-Value
.	O	I-Value

|	O	O
|	O	O
|	O	O
|	O	O
.----	O	O
-	O	O
day	O	B-Value
of	O	I-Value
week	O	I-Value
(	O	I-Value
0	O	I-Value
-	O	I-Value
6	O	I-Value
)	O	I-Value
(	O	O
Sunday	O	B-Value
=	O	I-Value
0	O	I-Value
or	O	O
7	O	B-Value
)	O	O
OR	O	O
sun	O	B-Value
,	O	O
mon	O	B-Value
,	O	O
tue	O	B-Value
,	O	O
wed	O	B-Value
,	O	O
thu	O	B-Value
,	O	O
fri	O	B-Value
,	O	O
sat	O	B-Value

|	O	O
|	O	O
|	O	O
|	O	O
|	O	O

*	O	O
*	O	O
*	O	O
*	O	O
*	O	O
command	O	O
to	O	O
be	O	O
executed	O	O

Cronjobs	O	B-Application
cannot	O	O
be	O	O
set	O	O
like	O	O
that	O	O
.	O	O

Each	O	O
minute	O	O
the	O	O
cron	O	B-Application
deamon	O	I-Application
looks	O	O
for	O	O
which	O	O
jobs	O	O
to	O	O
run	O	O
based	O	O
on	O	O
the	O	O
pattern	O	O
(	O	O
"	O	O
is	O	O
this	O	O
the	O	O
correct	O	O
weekday	O	O
?	O	O

is	O	O
this	O	O
the	O	O
correct	O	O
minute	O	O
?	O	O
"	O	O

and	O	O
so	O	O
on	O	O
)	O	O
.	O	O

You	O	O
will	O	O
need	O	O
to	O	O
set	O	O
up	O	O
a	O	O
script	O	O
check	O	O
to	O	O
see	O	O
if	O	O
the	O	O
date	O	O
is	O	O
correct	O	O
because	O	O
cron	O	B-Application
cannot	O	O
do	O	O
that	O	O
.	O	O

You	O	O
can	O	O
make	O	O
that	O	O
check	O	O
in	O	O
the	O	O
manual	O	O
job	O	O
or	O	O
in	O	O
Bash	O	B-Application
.	O	O

is	O	O
it	O	O
possible	O	O
to	O	O
have	O	O
ListBox	B-Code_Block	B-Class
(	O	O
which	O	O
contains	O	O
ScrollViewer	B-Code_Block	B-Class
by	O	O
default	O	O
)	O	O
and	O	O
ListBoxItem	B-Code_Block	B-Class
with	O	O
ScrollViewer	B-Code_Block	B-Class
?	O	O

I	O	O
want	O	O
to	O	O
achieve	O	O
next	O	O
view	O	O
:	O	O

And	O	O
this	O	O
ListBox	O	B-Class
should	O	O
also	O	O
support	O	O
virtualization	O	O
.	O	O

(	O	O
I	O	O
know	O	O
how	O	O
enable	O	O
it	O	O
,	O	O
I	O	O
just	O	O
wondering	O	O
will	O	O
it	O	O
work	O	O
if	O	O
I	O	O
use	O	O
2	O	O
scroll	O	B-Class
viewers	O	I-Class
?	O	O
)	O	O

UPDATED	O	O
:	O	O

I	O	O
need	O	O
to	O	O
use	O	O
ListBox.ItemTemplate	B-Code_Block	B-Variable
,	O	O
since	O	O
I	O	O
'm	O	O
binding	O	O
ItemsSource	B-Code_Block	B-Variable
.	O	O

Thanks	O	O
for	O	O
tips	O	O
.	O	O

Easy	O	O
.	O	O

(	O	O
I	O	O
've	O	O
given	O	O
you	O	O
three	O	O
ways	O	O
to	O	O
do	O	O
this	O	O
,	O	O
one	O	O
must	O	O
be	O	O
right	O	O
!	O	O
)	O	O

Through	O	O
Xaml	O	B-Language
:	O	O

From	O	O
C#	O	B-Language
:	O	O

This	O	O
results	O	O
in	O	O
the	O	O
following	O	O
:	O	O
(	O	O
I	O	O
've	O	O
added	O	O
a	O	O
short	O	O
comment	O	O
just	O	O
so	O	O
you	O	O
can	O	O
see	O	O
the	O	O
difference	O	O
,	O	O
you	O	O
can	O	O
probably	O	O
make	O	O
the	O	O
scroll	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
go	O	O
all	O	O
the	O	O
way	O	O
across	O	O
,	O	O
but	O	O
this	O	O
is	O	O
just	O	O
an	O	O
example	O	O
.	O	O
)	O	O

If	O	O
your	O	O
using	O	O
Item	O	B-Class
Template	O	I-Class
:	O	O
(	O	O
I	O	O
've	O	O
never	O	O
done	O	O
this	O	O
,	O	O
so	O	O
do	O	O
n't	O	O
shoot	O	O
me	O	O
if	O	O
its	O	O
wrong	O	O
!	O	O
:)	O	O
)	O	O

XAML	O	B-Language
:	O	O

Code	O	O
Behind	O	O
:	O	O

Output	O	O
:	O	O

When	O	O
compiling	O	O
a	O	O
64bit	O	O
application	O	O
,	O	O
why	O	O
does	O	O
strlen()	O	B-Function
return	O	O
a	O	O
64-bit	O	O
integer	O	B-Data_Type
?	O	O

Am	O	O
i	O	O
missing	O	O
somthing	O	O
?	O	O

I	O	O
understand	O	O
that	O	O
strlen()	O	B-Function
returns	O	O
a	O	O
size_t	O	B-Data_Type
type	O	O
,	O	O
and	O	O
by	O	O
definition	O	O
this	O	O
should	O	O
n't	O	O
change	O	O
,	O	O
but	O	O
..	O	O
.	O	O
Why	O	O
would	O	O
strlen	O	B-Function
need	O	O
to	O	O
return	O	O
a	O	O
64-bit	O	O
integer	O	B-Data_Type
?	O	O

The	O	O
function	O	O
is	O	O
designed	O	O
to	O	O
be	O	O
used	O	O
with	O	O
strings	O	B-Data_Type
.	O	O

With	O	O
that	O	O
said	O	O
:	O	O

Do	O	O
programmers	O	O
commonly	O	O
create	O	O
multi-gigabyte	O	O
or	O	O
multi-terabyte	O	O
strings	O	B-Data_Type
?	O	O

If	O	O
they	O	O
did	O	O
,	O	O
would	O	O
n't	O	O
they	O	O
need	O	O
a	O	O
better	O	O
way	O	O
to	O	O
determine	O	O
the	O	O
string	O	B-Data_Type
length	O	O
than	O	O
searching	O	O
for	O	O
a	O	O
NULL	O	B-Value
character	O	O
?	O	O

I	O	O
think	O	O
this	O	O
is	O	O
ridiculous	O	O
,	O	O
in	O	O
fact	O	O
,	O	O
maybe	O	O
we	O	O
need	O	O
a	O	O
StrLenAsync()	O	B-Function
function	O	O
with	O	O
a	O	O
callback	O	O
just	O	O
to	O	O
handle	O	O
the	O	O
ultra	O	O
long	O	O
process	O	O
for	O	O
searching	O	O
for	O	O
the	O	O
NULL	O	B-Value
in	O	O
the	O	O
40TB	O	O
string	O	B-Data_Type
.	O	O

Sound	O	O
stupid	O	O
?	O	O

Yea	O	O
,	O	O
well	O	O
strlen()	O	B-Function
returns	O	O
a	O	O
64-bit	O	O
integer	O	B-Data_Type
!	O	O

Of	O	O
course	O	O
,	O	O
the	O	O
proposed	O	O
StrLenAsync()	O	B-Function
function	O	O
is	O	O
a	O	O
joke	O	O
.	O	O

Well	O	O
,	O	O
1)	O	O
size_t	O	B-Data_Type
is	O	O
a	O	O
typedef	O	O
and	O	O
varies	O	O
with	O	O
architectures	O	O
and	O	O
2)	O	O
Would	O	O
n't	O	O
it	O	O
make	O	O
sense	O	O
to	O	O
have	O	O
the	O	O
largest	O	O
integer	O	B-Data_Type
as	O	O
a	O	O
return	O	O
value	O	O
?	O	O

Why	O	O
32	O	O
bits	O	O
?	O	O

Why	O	O
not	O	O
16	O	O
?	O	O

It	O	O
's	O	O
64	O	O
on	O	O
your	O	O
machine	O	O
because	O	O
that	O	O
's	O	O
the	O	O
max	O	O
string	O	B-Data_Type
length	O	O
possible	O	O
.	O	O

It	O	O
looks	O	O
like	O	O
,	O	O
when	O	O
compiling	O	O
for	O	O
a	O	O
64-bit	O	O
target	O	O
,	O	O
size_t	O	B-Data_Type
is	O	O
defined	O	O
as	O	O
64-bit	O	O
.	O	O

This	O	O
makes	O	O
sense	O	O
,	O	O
since	O	O
size_t	O	B-Data_Type
is	O	O
used	O	O
for	O	O
sizes	O	O
of	O	O
all	O	O
kinds	O	O
of	O	O
objects	O	O
,	O	O
not	O	O
just	O	O
strings	O	B-Data_Type
.	O	O

I	O	O
am	O	O
looking	O	O
for	O	O
pupil	O	O
detection	O	O
from	O	O
image	O	B-User_Interface_Element
using	O	O
pythonwith	B-Code_Block	B-Language
opencvpackage	I-Code_Block	B-Library
.	O	O

In	O	O
my	O	O
test	O	O
images	O	B-User_Interface_Element
,	O	O
I	O	O
am	O	O
able	O	O
to	O	O
detect	O	O
pupil	O	O
in	O	O
(	O	O
a	O	O
)	O	O
part	O	O
but	O	O
whenever	O	O
there	O	O
is	O	O
a	O	O
presence	O	O
of	O	O
reflection/	O	O
glare	O	O
,	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
detect	O	O
blob	B-Code_Block	O
of	O	O
pupil	O	O
pixels	O	O
accurately	O	O
in	O	O
(	O	O
b	O	O
)	O	O
part	O	O
of	O	O
image	O	B-User_Interface_Element
.	O	O

Can	O	O
anybody	O	O
help	O	O
me	O	O
out	O	O
?	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
I	O	O
am	O	O
trying	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
make	O	O
connection	O	O
to	O	O
my	O	O
websocket	O	O
server	O	B-Application
which	O	O
i	O	O
basicly	O	O
need	O	O
to	O	O
be	O	O
over	O	O
https	O	O
.	O	O

the	O	O
problem	O	O
is	O	O
that	O	O
my	O	O
browser	O	B-Application
says	O	O
:	O	O
"	O	O
WebSocket	O	O
connection	O	O
to	O	O
'	O	O
wss://192.168.1.8/ws	O	O
'	O	O
failed	O	O
:	O	O
WebSocket	O	O
opening	O	O
handshake	O	O
was	O	O
canceled	O	O
"	O	O

The	O	O
things	O	O
what	O	O
i	O	O
tried	O	O
to	O	O
do	O	O
was	O	O
:	O	O

1)	O	O
Add	O	O
certificate	O	O
to	O	O
system	O	O
(	O	O
win	O	B-Operating_System
8.1	O	B-Version
PRO	O	I-Version
x6	O	I-Version
4)	O	I-Version
by	O	O
double	O	O
clicking	O	O
on	O	O
cert	O	B-File_Type
file	O	O

2)	O	O
Add	O	O
certificate	O	O
to	O	O
google	O	B-Application
chrome	O	I-Application
on	O	O
the	O	O
same	O	O
system	O	O
(	O	O
through	O	O
settings	O	O
of	O	O
browser	O	B-Application
)	O	O

I	O	O
am	O	O
able	O	O
to	O	O
connect	O	O
to	O	O
this	O	O
server	O	B-Application
when	O	O
i	O	O
reimplement	O	O
it	O	O
to	O	O
use	O	O
http	O	O
instead	O	O
of	O	O
https	O	O
so	O	O
physical	O	O
connection	O	O
to	O	O
machine	O	O
looks	O	O
OK	O	O
.	O	O

my	O	O
certificate	O	O
are	O	O
self-signed	O	O
,	O	O
generated	O	O
by	O	O
command	O	O
:	O	O

this	O	O
is	O	O
how	O	O
i	O	O
try	O	O
to	O	O
connect	O	O
to	O	O
it	O	O
:	O	O

As	O	O
@BenDarnell	O	B-User_Name
posted	O	O
,	O	O
We	O	O
have	O	O
to	O	O
accept	O	O
this	O	O
certificate	O	O
by	O	O
browse	O	O
to	O	O
page	O	O
of	O	O
this	O	O
server	O	B-Application
.	O	O

Then	O	O
your	O	O
browser	O	B-Application
will	O	O
inform	O	O
that	O	O
this	O	O
site	O	O
is	O	O
untrusted	O	O
.	O	O

Let	O	O
your	O	O
browser	O	B-Application
to	O	O
use	O	O
this	O	O
untrusted	O	O
certificate	O	O
and	O	O
that	O	O
's	O	O
all	O	O
.	O	O

Here	O	O
is	O	O
code	O	O
you	O	O
will	O	O
need	O	O
to	O	O
place	O	O
in	O	O
code	O	O
:	O	O

I	O	O
've	O	O
been	O	O
trying	O	O
for	O	O
about	O	O
a	O	O
week	O	O
to	O	O
figure	O	O
out	O	O
a	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
menu	O	I-User_Interface_Element
using	O	O
selenium	O	B-Library
2	O	B-Version
.	O	O

It	O	O
's	O	O
a	O	O
project	O	O
I	O	O
am	O	O
working	O	O
on	O	O
to	O	O
automate	O	O
a	O	O
flight	O	O
search	O	O
using	O	O
ITA	O	B-Application
Matrix	O	I-Application
2	O	B-Version
(	O	O
http://matrix.itasoftware.com/	O	O
)	O	O
.	O	O

Everything	O	O
works	O	O
OK	O	O
except	O	O
selecting	O	O
the	O	O
number	O	O
of	O	O
passengers	O	O
from	O	O
the	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
menu	O	I-User_Interface_Element
.	O	O

Clicking	O	O
on	O	O
it	O	O
works	O	O
fine	O	O
,	O	O
but	O	O
attempts	O	O
to	O	O
send	O	O
keys	O	O
or	O	O
arrow	O	O
commands	O	O
to	O	O
both	O	O
it	O	O
,	O	O
and	O	O
the	O	O
new	O	O
ID	O	O
which	O	O
is	O	O
created	O	O
when	O	O
it	O	O
pops	O	O
up	O	O
,	O	O
do	O	O
n't	O	O
result	O	O
in	O	O
any	O	O
actions	O	O
.	O	O

I	O	O
appreciate	O	O
any	O	O
help	O	O
!	O	O

(	O	O
I	O	O
am	O	O
very	O	O
new	O	O
to	O	O
python	O	B-Language
,	O	O
I	O	O
'm	O	O
doing	O	O
this	O	O
project	O	O
as	O	O
a	O	O
sort	O	O
of	O	O
self	O	O
teaching	O	O
exercise	O	O
to	O	O
learn	O	O
)	O	O
.	O	O

In	O	O
this	O	O
case	O	O
,	O	O
it	O	O
fails	O	O
because	O	O
the	O	O
passenger	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
menu	O	I-User_Interface_Element
is	O	O
not	O	O
actually	O	O
a	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
menu	O	I-User_Interface_Element
,	O	O
it	O	O
's	O	O
some	O	O
clever	O	O
html	O	B-Language
and	O	O
javascript	O	B-Language
so	O	O
it	O	O
wo	O	O
n't	O	O
respond	O	O
to	O	O
the	O	O
usual	O	O
events	O	O
as	O	O
expected	O	O
.	O	O

Try	O	O
this	O	O
:	O	O

Click	O	O
on	O	O
the	O	O
list	O	B-User_Interface_Element
at	O	O
ID	O	O
:	O	B-Variable

Then	O	O
click	O	O
the	O	O
menu	O	B-User_Interface_Element
item	O	O
at	O	O
XPath	O	B-Language
(	O	O
replace	O	O
'	O	B-Variable
NUMBER_OF_PASSENGERS	O	I-Variable
'	O	B-Variable
with	O	O
the	O	O
number	O	O
of	O	O
passengers	O	O
)	O	O
:	O	O

I	O	O
am	O	O
using	O	O
the	O	O
code	O	O
below	O	O
to	O	O
get	O	O
unread	O	O
messages	O	O
count	O	O
.	O	O

However	O	O
,	O	O
XMPPUserCoreDataStorageObject	B-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
user	I-Code_Block	I-Code_Block
is	O	O
always	O	O
nil	B-Code_Block	B-Value
.	O	O

The	O	O
chat	O	O
function	O	O
works	O	O
fine	O	O
but	O	O
i	O	O
ca	O	O
n't	O	O
get	O	O
the	O	O
unread	O	O
messages	O	O
count	O	O
.	O	O

It	O	O
seems	O	O
that	O	O
your	O	O
project	O	O
is	O	O
not	O	O
cleaned.So	O	O
deep	O	O
clean	O	O
the	O	O
project	O	O
by	O	O
pressing	O	O
the	O	O
following	O	O
the	O	O
keys	O	O

window+alt+shift+	O	B-Keyboard_IP
k	O	I-Keyboard_IP
.	O	O

I	O	O
hope	O	O
it	O	O
will	O	O
help	O	O
for	O	O
you	O	O
.	O	O

In	O	O
GNU	O	B-Operating_System
EMACS	O	B-Application
24.3	O	B-Version
,	O	O
I	O	O
use	O	O
recentf	O	O
to	O	O
show	O	O
the	O	O
recently	O	O
opened	O	O
files	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
keep	O	O
certain	O	O
makefiles	O	B-File_Name
so	O	O
that	O	O
I	O	O
do	O	O
not	O	O
have	O	O
to	O	O
type	O	O
the	O	O
whole	O	O
path	O	O
whenever	O	O
I	O	O
want	O	O
to	O	O
switch	O	O
projects	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
make	O	O
certain	O	O
files	O	O
sticky	O	O
or	O	O
persistent	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
?	O	O

This	O	O
is	O	O
not	O	O
exactly	O	O
answering	O	O
your	O	O
question	O	O
,	O	O
but	O	O
I	O	O
think	O	O
it	O	O
would	O	O
serve	O	O
the	O	O
same	O	O
purpose	O	O
.	O	O

I	O	O
bookmark	O	O
the	O	O
files	O	O
I	O	O
'm	O	O
using	O	O
most	O	O
often	O	O
.	O	O

You	O	O
can	O	O
read	O	O
more	O	O
about	O	O
it	O	O
here	O	O
:	O	O
http://www.emacswiki.org/emacs/BookMarks	O	O

but	O	O
in	O	O
a	O	O
nutshell	O	O
:	O	O
C-x	B-Keyboard_IP	B-Keyboard_IP
r	I-Keyboard_IP	I-Keyboard_IP
m	I-Keyboard_IP	I-Keyboard_IP
bookmarks	O	O
the	O	O
currently	O	O
open	O	O
file	O	O
(	O	O
works	O	O
on	O	O
dired	B-Code_Block	B-Application
buffers	O	B-Data_Structure
too	O	O
)	O	O
.	O	O

C-x	B-Keyboard_IP	B-Keyboard_IP
r	I-Keyboard_IP	I-Keyboard_IP
b	I-Keyboard_IP	I-Keyboard_IP
loads	O	O
the	O	O
bookmarked	O	O
file	O	O
with	O	O
word	O	O
completion	O	O
.	O	O

Set	O	O
the	O	O
length	O	O
of	O	O
the	O	O
recent	O	O
files	O	O
list	O	B-Data_Structure
to	O	O
a	O	O
high	O	O
number	O	O
.	O	O

For	O	O
example	O	O
:	O	O

This	O	O
way	O	O
the	O	O
makefiles	O	B-File_Name
wo	O	O
n't	O	O
drop	O	O
out	O	O
from	O	O
the	O	O
list	O	B-Data_Structure
if	O	O
you	O	O
visit	O	O
them	O	O
regularly	O	O
.	O	O

Also	O	O
it	O	O
is	O	O
useful	O	O
to	O	O
keep	O	O
a	O	O
long	O	O
recentf	O	O
list	O	B-Data_Structure
and	O	O
use	O	O
a	O	O
package	O	O
which	O	O
allows	O	O
you	O	O
to	O	O
open	O	O
files	O	O
from	O	O
it	O	O
with	O	O
completion	O	O
.	O	O

Here	O	O
you	O	O
can	O	O
find	O	O
some	O	O
ways	O	O
to	O	O
do	O	O
that	O	O
:	O	O
http://www.emacswiki.org/emacs-es/RecentFiles	O	O

I	O	O
am	O	O
running	O	O
a	O	O
Ubuntu	O	B-Operating_System
16.04	O	B-Version
and	O	O
want	O	O
to	O	O
install	O	O
Composer	O	B-Application
.	O	O

I	O	O
have	O	O
2	O	O
options	O	O
at	O	O
least	O	O
:	O	O

Through	O	O
Composer.org	O	B-Website
site	O	O
recommendations	O	O
command	O	O
line->	O	O
php	B-Code_Block	B-Code_Block
-r	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
copy('https://getcomposer	I-Code_Block	I-Code_Block
.org/installer	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
composer-setup.php	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
..	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block

Trough	O	O
apt	O	B-Code_Block
->	O	O
atp	B-Code_Block	B-Code_Block
install	I-Code_Block	I-Code_Block
composer	I-Code_Block	I-Code_Block
,	O	O
as	O	O
you	O	O
can	O	O
see	O	O
below	O	O
:	O	O

So	O	O
,	O	O
is	O	O
there	O	O
any	O	O
constraint	O	O
to	O	O
install	O	O
trough	O	O
process	O	O
2	O	O
?	O	O

If	O	O
you	O	O
install	O	O
through	O	O
the	O	O
package	O	B-Application
manager	O	I-Application
,	O	O
you	O	O
're	O	O
going	O	O
to	O	O
get	O	O
an	O	O
older	O	O
version	O	O
.	O	O

Whether	O	O
or	O	O
not	O	O
that	O	O
matters	O	O
is	O	O
up	O	O
to	O	O
you	O	O
.	O	O

There	O	O
are	O	O
benefits	O	O
to	O	O
installing	O	O
everything	O	O
through	O	O
the	O	O
package	O	B-Application
manager	O	I-Application
;	O	O
namely	O	O
,	O	O
it	O	O
becomes	O	O
easy	O	O
to	O	O
keep	O	O
your	O	O
entire	O	O
system	O	O
up-to-date	O	O
(	O	O
by	O	O
Ubuntu	O	B-Operating_System
's	O	O
definition	O	O
of	O	O
up-to-date	O	O
)	O	O
.	O	O

There	O	O
are	O	O
also	O	O
obvious	O	O
benefits	O	O
to	O	O
following	O	O
a	O	O
given	O	O
piece	O	O
of	O	O
software	O	O
's	O	O
instructions	O	O
.	O	O

Personally	O	O
,	O	O
if	O	O
I	O	O
were	O	O
sharing	O	O
code	O	O
with	O	O
other	O	O
developers	O	O
who	O	O
use	O	O
composer	O	B-Application
,	O	O
I	O	O
'd	O	O
install	O	O
composer	O	B-Application
through	O	O
the	O	O
'	O	O
recommended	O	O
'	O	O
way	O	O
and	O	O
try	O	O
to	O	O
keep	O	O
it	O	O
up	O	O
to	O	O
date	O	O
by	O	O
checking	O	O
periodically	O	O
for	O	O
new	O	O
versions	O	O
on	O	O
the	O	O
website	O	O
.	O	O

That	O	O
way	O	O
we	O	O
'd	O	O
all	O	O
be	O	O
using	O	O
the	O	O
same	O	O
version	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
Basic	O	B-Class
ComboTree	O	I-Class
from	O	O
jeasyui.com	O	B-Website

index.js	O	B-File_Name

in	O	O
cshtml	O	B-File_Type

You	O	O
could	O	O
create	O	O
a	O	O
directive	O	O
[	O	O
set	O	O
the	O	O
directive	O	O
as	O	O
attribute	O	O
for	O	O
input	O	O
element	O	O
]	O	O
and	O	O
within	O	O
the	O	O
directive	O	O
set	O	O
the	O	O
data	O	O
using	O	O
loadData	O	B-Variable
when	O	O
the	O	O
promise	O	O
is	O	O
resolved	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
working	O	O
example	O	O
.	O	O

Hope	O	O
this	O	O
will	O	O
solve	O	O
your	O	O
problem	O	O
..	O	O
.	O	O

create	O	O
a	O	O
service	O	O
to	O	O
get	O	O
the	O	O
remote	O	O
data	O	O

tree_data1.json	O	B-File_Name
data	O	O

create	O	O
a	O	O
directive	O	O
say	O	O
"	O	O
comboTreeDirective	O	B-Variable
"	O	O
and	O	O
add	O	O
the	O	O
directive	O	O
as	O	O
an	O	O
attribute	O	O
to	O	O
comboe	O	O
tree	O	O
element	O	O

use	O	O
the	O	O
directive	O	O
as	O	O
shown	O	O
below	O	O

Below	O	O
is	O	O
the	O	O
complete	O	O
working	O	O
example	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
make	O	O
lots	O	O
of	O	O
calls	O	O
from	O	O
my	O	O
server	O	B-Application
to	O	O
a	O	O
REST	O	B-Library
API	O	I-Library
that	O	O
is	O	O
exposed	O	O
by	O	O
another	O	O
server	O	B-Application
but	O	O
the	O	O
code	O	O
is	O	O
taking	O	O
too	O	O
long	O	O
to	O	O
run	O	O
.	O	O

Below	O	O
is	O	O
the	O	O
code	O	O
which	O	O
takes	O	O
a	O	O
lot	O	O
of	O	O
time	O	O
.	O	O

Right	O	O
now	O	O
I	O	O
am	O	O
using	O	O
C#	O	B-Language
Async/Await	B-Code_Block	B-Code_Block
along	O	O
with	O	O
HTTPClient	B-Code_Block	B-Class
,	O	O
is	O	O
there	O	O
a	O	O
better	O	O
way	O	O
I	O	O
can	O	O
do	O	O
this	O	O
?	O	O

AS	O	O
@TheESJ	O	B-User_Name
said	O	O
the	O	O
awaits	O	B-Code_Block
make	O	O
your	O	O
code	O	O
execute	O	O
in	O	O
a	O	O
serial	O	O
fashion	O	O
.	O	O

That	O	O
is	O	O
once	O	O
execution	O	O
reaches	O	O
the	O	O
first	O	O
await	B-Code_Block	B-Code_Block
,	O	O
execution	O	O
is	O	O
effectively	O	O
"	O	O
paused	O	O
"	O	O
and	O	O
will	O	O
not	O	O
resume	O	O
until	O	O
that	O	O
Task	B-Code_Block	B-Class
is	O	O
complete	O	O
.	O	O

You	O	O
can	O	O
avoid	O	O
this	O	O
by	O	O
not	O	O
awaiting	O	O
the	O	O
Task	B-Code_Block	B-Class
,	O	O
just	O	O
add	O	O
it	O	O
to	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
tasks	O	B-Class
to	O	O
keep	O	O
track	O	O
of	O	O
.	O	O

To	O	O
facilitate	O	O
this	O	O
I	O	O
think	O	O
it	O	O
will	O	O
help	O	O
if	O	O
you	O	O
introduced	O	O
a	O	O
couple	O	O
of	O	O
helper	O	O
methods	O	O
to	O	O
execute	O	O
the	O	O
body	O	O
of	O	O
your	O	O
loops	O	O
and	O	O
return	O	O
a	O	O
Task	B-Code_Block	B-Class
.	O	O

Then	O	O
in	O	O
your	O	O
main	O	O
loop	O	O
you	O	O
just	O	O
add	O	O
the	O	O
tasks	O	B-Class
to	O	O
a	O	O
list	O	B-Data_Structure
as	O	O
the	O	O
methods	O	O
are	O	O
kicked	O	O
off	O	O
,	O	O
this	O	O
will	O	O
essentially	O	O
execute	O	O
the	O	O
tasks	O	B-Class
in	O	O
parallel	O	O
.	O	O

You	O	O
may	O	O
need	O	O
to	O	O
increase	O	O
the	O	O
number	O	O
of	O	O
concurrent	O	O
connections	O	O
your	O	O
server	O	B-Application
can	O	O
make	O	O
if	O	O
it	O	O
causes	O	O
a	O	O
problem	O	O
.	O	O

Your	O	O
main	O	B-Function
method	O	O
then	O	O
becomes	O	O
.	O	O

Those	O	O
'	O	O
await	O	B-Code_Block
's	O	O
inside	O	O
your	O	O
loop	O	O
will	O	O
serialize	O	O
the	O	O
requests	O	O
.	O	O

Consider	O	O
instead	O	O
using	O	O
.ContinueWith	O	B-Function
on	O	O
the	O	O
task	O	O
to	O	O
do	O	O
some	O	O
work	O	O
with	O	O
the	O	O
result	O	O
,	O	O
keep	O	O
track	O	O
of	O	O
the	O	O
tasks	O	O
in	O	O
an	O	O
array	O	B-Data_Structure
,	O	O
then	O	O
call	O	O
Task.WhenAll	O	B-Function
once	O	O
you	O	O
're	O	O
done	O	O
setting	O	O
up	O	O
all	O	O
the	O	O
parallel	O	O
work	O	O
.	O	O

Dear	O	O
Expert	O	O
need	O	O
Help	O	O
first	O	O
see	O	O
my	O	O
view	O	O
code	O	O
in	O	O
codeigniter	O	B-Library
:	O	O

and	O	O
this	O	O
my	O	O
model	O	O
code	O	O
:	O	O

and	O	O
my	O	O
controller	O	O
if	O	O
i	O	O
get	O	O
the	O	O
important	O	O
code	O	O
is	O	O
:	O	O

the	O	O
problem	O	O
is	O	O
if	O	O
searching	O	O
between	O	O
two	O	O
date	O	O
tglawal	O	B-Variable
and	O	O
tglakhir	O	B-Variable

im	O	O
using	O	O
between	O	O
2016-12-04	O	B-Value
and	O	O
2016-12-04	O	B-Value
output	O	O
display	O	O
will	O	O
empty	O	B-Value

but	O	O
if	O	O
using	O	O
between	O	O
2016-12-04	O	B-Value
and	O	O
2016-12-06	O	B-Value
output	O	O
success	O	B-Value
where	O	O
is	O	O
my	O	O
problem	O	O
or	O	O
maybe	O	O
im	O	O
using	O	O
where	O	O
or	O	O
i	O	O
have	O	O
to	O	O
use	O	O
like	O	O
?	O	O

You	O	O
need	O	O
to	O	O
use	O	O
the	O	O
>=	O	B-Code_Block
and	O	O
<=	O	B-Code_Block
operator	O	O
.	O	O

In	O	O
your	O	O
model	O	O
try	O	O
the	O	O
below	O	O
.	O	O

The	O	O
above	O	O
will	O	O
search	O	O
for	O	O
the	O	O
between	O	O
dates	O	O
including	O	O
the	O	O
dates	O	O
selected	O	O
.	O	O

Use	O	O
the	O	O
operator	O	O
depending	O	O
on	O	O
the	O	O
beginning	O	O
and	O	O
ending	O	O
variable	O	O
.	O	O

I	O	O
need	O	O
help	O	O
with	O	O
writing	O	O
a	O	O
function	O	O
to_secs	B-Code_Block	B-Function
that	O	O
converts	O	O
hours	O	O
,	O	O
minutes	O	O
,	O	O
and	O	O
seconds	O	O
to	O	O
a	O	O
total	O	O
number	O	O
of	O	O
seconds	O	O
.	O	O

In	O	O
the	O	O
book	O	O
it	O	O
says	O	O
the	O	O
following	O	O
test	O	O
should	O	O
be	O	O
possible	O	O
:	O	O

There	O	O
are	O	O
3600	O	O
seconds	O	O
in	O	O
an	O	O
hour	O	O
,	O	O
60	O	O
in	O	O
a	O	O
minute	O	O
.	O	O

The	O	O
rest	O	O
is	O	O
simple	O	O
arithmetic	O	O
:	O	O

Demo	O	O
:	O	O

As	O	O
mentioned	O	O
in	O	O
this	O	O
question	O	O
i	O	O
tried	O	O
to	O	O
change	O	O
the	O	O
date	O	O
format	O	O
of	O	O
Liferays	O	B-Library
input-date	O	B-Variable
field	O	I-Variable
.	O	O

So	O	O
far	O	O
successfull	O	O
.	O	O

However	O	O
i	O	O
was	O	O
testing	O	O
it	O	O
in	O	O
different	O	O
browsers	O	B-Application
and	O	O
noticed	O	O
that	O	O
Firefox	O	B-Application
messes	O	O
up	O	O
the	O	O
date	O	O
when	O	O
i	O	O
click	O	O
the	O	O
field	O	B-Variable
.	O	O

No	O	O
problems	O	O
in	O	O
IE	O	B-Application
or	O	O
Chrome	O	B-Application
.	O	O

It	O	O
initially	O	O
displays	O	O
the	O	O
current	O	O
date	O	O
like	O	O
18.08.2017	O	B-Value
.	O	O

But	O	O
when	O	O
i	O	O
click	O	O
the	O	O
field	O	B-Variable
(	O	O
no	O	O
change	O	O
of	O	O
the	O	O
date	O	O
that	O	O
moment	O	O
)	O	O
it	O	O
displays	O	O
d.08.2017	O	B-Value
.	O	O

At	O	O
first	O	O
i	O	O
thought	O	O
i	O	O
messed	O	O
it	O	O
up	O	O
due	O	O
my	O	O
format	O	O
changes	O	O
.	O	O

But	O	O
after	O	O
undoing	O	O
these	O	O
the	O	O
error	O	O
still	O	O
exists	O	O
..	O	O
.	O	O

The	O	O
value	O	O
itself	O	O
however	O	O
is	O	O
working	O	O
normal	O	O
and	O	O
my	O	O
java	O	B-Language
method	O	O
doesnt	O	O
get	O	O
any	O	O
erros	O	O
.	O	O

I	O	O
can	O	O
change	O	O
the	O	O
date	O	O
in	O	O
the	O	O
picker	O	B-User_Interface_Element
and	O	O
the	O	O
hidden	O	O
fields	O	O
will	O	O
have	O	O
the	O	O
correct	O	O
value	O	O
.	O	O

Only	O	O
the	O	O
visible	O	O
part	O	O
of	O	O
the	O	O
date	O	O
is	O	O
messed	O	O
up	O	O
.	O	O

I	O	O
looked	O	O
into	O	O
the	O	O
console	O	O
and	O	O
saw	O	O
,	O	O
that	O	O
Liferay.Form	O	B-File_Name
is	O	O
undefined	O	O
.	O	O

I	O	O
dont	O	O
know	O	O
if	O	O
it	O	O
's	O	O
relevant	O	O
at	O	O
all	O	O
.	O	O

IE	O	B-Application
and	O	O
Chrome	O	B-Application
are	O	O
displaying	O	O
errors	O	O
too	O	O
,	O	O
but	O	O
are	O	O
also	O	O
displaying	O	O
the	O	O
date	O	O
normally	O	O
.	O	O

How	O	O
can	O	O
i	O	O
get	O	O
rid	O	O
of	O	O
this	O	O
error	O	O
?	O	O

EDIT	O	O
:	O	O

That	O	O
's	O	O
the	O	O
code	O	O
i	O	O
'm	O	O
using	O	O
for	O	O
the	O	O
datepicker	O	B-User_Interface_Element
:	O	O

I	O	O
do	O	O
n't	O	O
have	O	O
any	O	O
js	O	B-Language
code	O	O
,	O	O
because	O	O
i	O	O
've	O	O
written	O	O
none	O	O
.	O	O

I	O	O
'm	O	O
attempting	O	O
to	O	O
use	O	O
a	O	O
MOBILE	O	B-Device
first	O	O
approach	O	O
to	O	O
responsive	O	O
design	O	O
.	O	O

In	O	O
doing	O	O
so	O	O
,	O	O
I	O	O
wish	O	O
to	O	O
convert	O	O
my	O	O
MAX	O	B-Variable
media	O	O
queries	O	O
to	O	O
MIN	O	B-Variable
media	O	O
queries	O	O
.	O	O

Therefore	O	O
,	O	O
instead	O	O
of	O	O
using	O	O
graceful	O	O
degradation	O	O
,	O	O
I	O	O
aim	O	O
to	O	O
implement	O	O
progressive	O	O
enhancement	O	O

Can	O	O
anyone	O	O
explain	O	O
the	O	O
best	O	O
way	O	O
to	O	O
re-engineer	O	O
my	O	O
CSS	O	B-Language
to	O	O
use	O	O
MIN-width	O	B-Variable
media	O	O
queries	O	O
as	O	O
opposed	O	O
to	O	O
MAX-width	O	B-Variable
?	O	O

In	O	O
the	O	O
example	O	O
below	O	O
I	O	O
have	O	O
trimmed	O	O
out	O	O
95%	O	O
of	O	O
the	O	O
css	O	B-Language
and	O	O
have	O	O
left	O	O
the	O	O
breakpoints	O	O

//	O	O
      MAIN	O	O
CSS	O	O

//	O	O
      --MEDIA	O	O

//	O	O
      --MEDIA	O	O

@media	O	B-Code_Block
MIN-width	O	I-Code_Block
:	O	I-Code_Block

Min-width	O	B-Variable
media	O	O
queries	O	O
are	O	O
very	O	O
easy	O	O
,	O	O
to	O	O
use	O	O
,	O	O
and	O	O
are	O	O
not	O	O
too	O	O
different	O	O
from	O	O
using	O	O
MAX	O	B-Variable
media	O	O
queries	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
using	O	O
your	O	O
code	O	O
:	O	O

It	O	O
is	O	O
important	O	O
to	O	O
still	O	O
use	O	O
max-width	O	B-Variable
to	O	O
create	O	O
limits	O	O
for	O	O
the	O	O
style	O	O
of	O	O
objects	O	O
on	O	O
certain	O	O
screens	O	B-Device
.	O	O

Using	O	O
min-width	O	B-Variable
can	O	O
be	O	O
especially	O	O
useful	O	O
if	O	O
you	O	O
want	O	O
certain	O	O
styles	O	O
to	O	O
apply	O	O
to	O	O
a	O	O
smaller	O	O
object	O	O
and	O	O
then	O	O
have	O	O
that	O	O
same	O	O
style	O	O
apply	O	O
to	O	O
a	O	O
larger	O	O
object	O	O
.	O	O

This	O	O
way	O	O
you	O	O
can	O	O
keep	O	O
the	O	O
styles	O	O
for	O	O
that	O	O
minimum	O	O
size	O	O
but	O	O
also	O	O
add	O	O
on	O	O
extra	O	O
styles	O	O
to	O	O
the	O	O
larger	O	O
object	O	O
with	O	O
out	O	O
effecting	O	O
the	O	O
smaller	O	O
one	O	O
.	O	O

For	O	O
example	O	O
:	O	O

In	O	O
the	O	O
above	O	O
example	O	O
,	O	O
the	O	O
styles	O	O
from	O	O
screens	O	B-Device
with	O	O
a	O	O
size	O	O
of	O	O
over	O	O
740px	O	B-Value
will	O	O
already	O	O
be	O	O
applied	O	O
to	O	O
any	O	O
screens	O	B-Device
with	O	O
a	O	O
size	O	O
of	O	O
over	O	O
900px	O	B-Value
.	O	O

From	O	O
there	O	O
you	O	O
can	O	O
adjust	O	O
your	O	O
styles	O	O
as	O	O
you	O	O
like	O	O
,	O	O
reducing	O	O
the	O	O
amount	O	O
of	O	O
code	O	O
needed	O	O
to	O	O
produce	O	O
the	O	O
page	O	O
.	O	O

Other	O	O
Things	O	O
:	O	O

-When	O	O
it	O	O
comes	O	O
to	O	O
actual	O	O
elements	O	O
on	O	O
the	O	O
screen	O	B-Device
(	O	O
excluding	O	O
min/max	O	O
-sizes	O	O
with	O	O
@media	O	B-Code_Block
)	O	O
it	O	O
can	O	O
always	O	O
be	O	O
helpful	O	O
to	O	O
use	O	O
percentages	O	O
,	O	O
because	O	O
that	O	O
way	O	O
items	O	O
can	O	O
be	O	O
auto	O	O
re-sized	O	O
according	O	O
to	O	O
the	O	O
screen	O	O
size	O	O
.	O	O

-Here	O	O
is	O	O
a	O	O
great	O	O
website	O	O
that	O	O
will	O	O
help	O	O
you	O	O
on	O	O
your	O	O
endeavours	O	O
with	O	O
media	O	O
queries	O	O
:	O	O
http://css-tricks.com/snippets/css/media-queries-for-standard-devices/	O	O

It	O	O
totally	O	O
depends	O	O
on	O	O
the	O	O
rest	O	O
of	O	O
your	O	O
site	O	O
.	O	O

Some	O	O
sites	O	O
can	O	O
be	O	O
displayed	O	O
well	O	O
at	O	O
the	O	O
width	O	B-Variable
of	O	O
400px	O	B-Value
while	O	O
some	O	O
others	O	O
need	O	O
to	O	O
set	O	O
a	O	O
minumum	O	O
because	O	O
it	O	O
's	O	O
too	O	O
small	O	O
to	O	O
render	O	O
the	O	O
document	O	O
objects	O	O
in	O	O
a	O	O
clean	O	O
manner	O	O
.	O	O

Very	O	O
often	O	O
you	O	O
will	O	O
not	O	O
even	O	O
need	O	O
to	O	O
use	O	O
min-width	O	B-Variable
or	O	O
max-width	O	B-Variable
when	O	O
optimizing	O	O
for	O	O
mobile	O	O
,	O	O
there	O	O
are	O	O
far	O	O
more	O	O
better	O	O
practices	O	O
.	O	O

Here	O	O
are	O	O
some	O	O
of	O	O
them	O	O
:	O	O

Use	O	O
Em	O	B-Value
over	O	O
Px	O	B-Value
-	O	O
It	O	O
is	O	O
always	O	O
better	O	O
to	O	O
set	O	O
font-size	O	B-Variable
and	O	O
other	O	O
sizes	O	O
in	O	O
units	O	O
of	O	O
"	O	O
em	O	B-Value
"	O	O
rather	O	O
than	O	O
in	O	O
"	O	O
px	O	B-Value
"	O	O
.	O	O

This	O	O
is	O	O
because	O	O
a	O	O
pixel	O	O
is	O	O
extremely	O	O
small	O	O
on	O	O
a	O	O
cell	O	B-Device
phone	O	I-Device
,	O	O
whereas	O	O
em	O	O
units	O	O
proportionally	O	O
adjusts	O	O
the	O	O
object	O	O
to	O	O
a	O	O
size	O	O
that	O	O
fits	O	O
the	O	O
screen	O	B-Device
.	O	O

Use	O	O
Percentages	O	O
-	O	O
You	O	O
'll	O	O
find	O	O
that	O	O
using	O	O
percentages	O	O
are	O	O
far	O	O
more	O	O
friendly	O	O
than	O	O
,	O	O
for	O	O
instance	O	O
,	O	O
specifying	O	O
the	O	O
width	O	B-Variable
or	O	O
height	O	B-Variable
of	O	O
an	O	O
element	O	O
in	O	O
pixels	O	O
or	O	O
em	O	O
.	O	O

If	O	O
you	O	O
use	O	O
percentages	O	O
,	O	O
your	O	O
content	O	O
will	O	O
always	O	O
adjust	O	O
well	O	O
in	O	O
for	O	O
skinny	O	O
displays	O	O
.	O	O

Avoid	O	O
Absolutely	O	O
Positioned	O	O
Elements	O	O
-	O	O
Having	O	O
elements	O	O
positioned	O	O
absolutely	O	O
can	O	O
be	O	O
more	O	O
difficuly	O	O
to	O	O
handle	O	O
on	O	O
small	O	O
displays	O	O
.	O	O

It	O	O
simply	O	O
can	O	O
,	O	O
as	O	O
the	O	O
absolute	O	O
elements	O	O
may	O	O
get	O	O
too	O	O
near	O	O
to	O	O
the	O	O
relatively	O	O
positioned	O	O
elements	O	O
.	O	O

Use	O	O
relative	O	O
positioning	O	O
as	O	O
much	O	O
as	O	O
possible	O	O
for	O	O
a	O	O
clean	O	O
site	O	O
.	O	O

I	O	O
am	O	O
learning	O	O
python	O	B-Language
unittest	O	B-Library
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
ask	O	O
what	O	O
the	O	O
'	O	O
test_code	O	B-Variable
'	O	O
in	O	O
the	O	O
following	O	O
code	O	O
is	O	O
.	O	O

Is	O	O
it	O	O
the	O	O
argument	O	O
of	O	O
'	O	O
-m	O	B-Code_Block
'	O	O
option	O	O
or	O	O
one	O	O
of	O	O
unittest	O	B-Library
?	O	O

I	O	O
would	O	O
like	O	O
to	O	O
know	O	O
how	O	O
the	O	O
unittest	O	B-Library
works	O	O
.	O	O

Thank	O	O
you	O	O
very	O	O
much	O	O

Using	O	O
unittest	O	B-Library
module	O	O
you	O	O
can	O	O
run	O	O
tests	O	O
from	O	O
modules	O	O
in	O	O
command	O	O
line	O	O
.	O	O

While	O	O
-m	O	B-Code_Block
is	O	O
a	O	O
flag	O	O
and	O	O
is	O	O
used	O	O
to	O	O
specify	O	O
python	O	B-Language
that	O	O
you	O	O
would	O	O
be	O	O
using	O	O
test	O	O
methods	O	O
of	O	O
unittest	O	B-Library
.	O	O

I	O	O
have	O	O
a	O	O
matrix	O	B-Data_Structure
represented	O	O
in	O	O
PHP	O	B-Language
as	O	O
an	O	O
array	O	B-Data_Structure
:	O	O

and	O	O
I	O	O
have	O	O
a	O	O
second	O	O
matrix	O	B-Data_Structure
represented	O	O
in	O	O
a	O	O
similar	O	O
way	O	O
(	O	O
here	O	O
without	O	O
inner	O	O
arrays	O	B-Data_Structure
,	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
mind	O	O
adding	O	O
them	O	O
)	O	O
:	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
have	O	O
a	O	O
combination	O	O
like	O	O
this	O	O
:	O	O

I	O	O
was	O	O
trying	O	O
to	O	O
find	O	O
a	O	O
code	O	O
snippet	O	O
that	O	O
does	O	O
that	O	O
for	O	O
me	O	O
,	O	O
but	O	O
I	O	O
failed	O	O
because	O	O
I	O	O
do	O	O
n't	O	O
even	O	O
know	O	O
if	O	O
this	O	O
kind	O	O
of	O	O
operation	O	O
has	O	O
a	O	O
name	O	O
.	O	O

Has	O	O
it	O	O
?	O	O

(	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
anyone	O	O
to	O	O
write	O	O
that	O	O
code	O	O
snippet	O	O
,	O	O
I	O	O
can	O	O
do	O	O
that	O	O
myself	O	O
.	O	O
)	O	O

Just	O	O
in	O	O
case	O	O
anyone	O	O
else	O	O
does	O	O
want	O	O
an	O	O
implementation	O	O
,	O	O
the	O	O
following	O	O
would	O	O
create	O	O
a	O	O
cartesian	O	O
product	O	O
of	O	O
two	O	O
arrays	O	B-Data_Structure
:	O	O

And	O	O
additionally	O	O
,	O	O
if	O	O
you	O	O
want	O	O
the	O	O
values	O	O
from	O	O
$array1	O	B-Variable
and	O	O
$array2	O	B-Variable
in	O	O
the	O	O
final	O	O
array	O	B-Data_Structure
,	O	O
you	O	O
can	O	O
merge	O	O
the	O	O
two	O	O
arrays	O	B-Data_Structure
together	O	O
before	O	O
the	O	O
nested	O	O
foreach	O	O
loops	O	O
:	O	O

What	O	O
you	O	O
are	O	O
looking	O	O
for	O	O
is	O	O
called	O	O
the	O	O
cartesian	O	O
product	O	O
.	O	O

There	O	O
is	O	O
no	O	O
native	O	O
PHP	O	B-Language
function	O	O
to	O	O
calculate	O	O
that	O	O
.	O	O

My	O	O
angularjs	O	B-Library
app	O	O
is	O	O
embedded	O	O
into	O	O
asp.net	O	B-Library
mvc	O	I-Library
app	O	O
.	O	O

From	O	O
angularjs	O	B-Library
I	O	O
'm	O	O
sending	O	O
a	O	O
request	O	O
to	O	O
a	O	O
cross	O	O
domain	O	O
like	O	O

and	O	O
I	O	O
'm	O	O
getting	O	O

Is	O	O
it	O	O
something	O	O
that	O	O
I	O	O
can	O	O
fix	O	O
on	O	O
asp.net	O	B-Library
mvc	O	I-Library
server	O	B-Application
side	O	O
inside	O	O
which	O	O
this	O	O
angularjs	O	B-Library
app	O	O
is	O	O
running	O	O
or	O	O
is	O	O
something	O	O
I	O	O
should	O	O
check	O	O
on	O	O
mywebservice.com	O	O
side	O	O
?	O	O

This	O	O
is	O	O
happening	O	O
because	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
send	O	O
a	O	O
request	O	O
to	O	O
a	O	O
server	O	B-Application
of	O	O
a	O	O
different	O	O
origin	O	O
.	O	O

The	O	O
issue	O	O
needs	O	O
to	O	O
be	O	O
resolved	O	O
on	O	O
mywebservice.com	O	O
by	O	O
allowing	O	O
your	O	O
domain	O	O
to	O	O
make	O	O
requests	O	O
to	O	O
it	O	O
.	O	O

Alternatively	O	O
you	O	O
could	O	O
make	O	O
the	O	O
request	O	O
from	O	O
your	O	O
server	O	B-Application
and	O	O
then	O	O
send	O	O
that	O	O
to	O	O
your	O	O
Angular	O	B-Library
front	O	O
end	O	O
.	O	O

I	O	O
want	O	O
to	O	O
create	O	O
ChoiceBox	O	B-Class
which	O	O
I	O	O
want	O	O
to	O	O
call	O	O
when	O	O
I	O	O
press	O	O
the	O	O
image	O	B-User_Interface_Element
below	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
to	O	O
call	O	O
ChoiceBox	O	B-Class
menu	O	B-User_Interface_Element
when	O	O
I	O	O
click	O	O
on	O	O
the	O	O
image	O	B-User_Interface_Element
?	O	O

You	O	O
can	O	O
initially	O	O
put	O	O
the	O	O
ChoiceBox	O	B-Class
in	O	O
your	O	O
pane	O	B-User_Interface_Element
and	O	O
set	O	O
the	O	O
visibility	O	O
as	O	O
false	B-Code_Block	B-Value

Later	O	O
,	O	O
when	O	O
you	O	O
click	O	O
on	O	O
the	O	O
image	O	B-User_Interface_Element
,	O	O
you	O	O
can	O	O
set	O	O
the	O	O
visibility	O	O
as	O	O
true	O	B-Value
!	O	O

Note	O	O
:	O	O
I	O	O
just	O	O
typed	O	O
the	O	O
code	O	O
,	O	O
so	O	O
not	O	O
sure	O	O
whether	O	O
it	O	O
will	O	O
compile	O	O
or	O	O
not	O	O
!	O	O

Just	O	O
wanted	O	O
to	O	O
give	O	O
you	O	O
an	O	O
idea	O	O
!	O	O

How	O	O
do	O	O
I	O	O
generate	O	O
a	O	O
random	O	O
number	O	O
within	O	O
a	O	O
specific	O	O
range	O	O
in	O	O
Groovy	O	B-Language
Script	O	O
?	O	O

I	O	O
want	O	O
to	O	O
generate	O	O
the	O	O
number	O	O
between	O	O
10,000	O	B-Value
and	O	O
90,000	O	B-Value

Below	O	O
are	O	O
my	O	O
attempts	O	O
so	O	O
far	O	O
:	O	O

1	O	O
.	O	O

2	O	O
.	O	O

Both	O	O
of	O	O
these	O	O
generate	O	O
a	O	O
random	O	O
number	O	O
yes	O	O
,	O	O
but	O	O
they	O	O
are	O	O
not	O	O
within	O	O
the	O	O
range	O	O
of	O	O
10	O	B-Value
,	O	I-Value
00-90	O	I-Value
,	O	I-Value
000	O	I-Value

I	O	O
found	O	O
my	O	O
error	O	O
:	O	O
I	O	O
just	O	O
needed	O	O
to	O	O
switch	O	O
the	O	O
90000	O	B-Value
and	O	O
the	O	O
10000	O	B-Value
for	O	O
1	O	B-Value
.	O	O

Correct	O	O
code	O	O
:	O	O

I	O	O
have	O	O
a	O	O
fixed	O	O
menu	O	B-User_Interface_Element
,	O	O
which	O	O
moves	O	O
with	O	O
scrolling	O	O
.	O	O

I	O	O
want	O	O
to	O	O
add	O	O
dynamically	O	O
another	O	O
div	O	B-HTML_XML_Tag
before	O	O
this	O	O
menu	O	B-User_Interface_Element
,	O	O
it	O	O
is	O	O
supposed	O	O
to	O	O
disappear	O	O
once	O	O
clicked	O	O
.	O	O

It	O	O
should	O	O
stick	O	O
to	O	O
the	O	O
moving	O	O
menu	O	B-User_Interface_Element
.	O	O

I	O	O
tried	O	O
to	O	O
prepend	O	O
it	O	O
to	O	O
body	O	O
with	O	O
position	O	O
fixed	O	O
-	O	O
it	O	O
was	O	O
over	O	O
the	O	O
menu	O	B-User_Interface_Element
.	O	O

If	O	O
I	O	O
prepend	O	O
it	O	O
to	O	O
the	O	O
menu	O	B-User_Interface_Element
,	O	O
the	O	O
result	O	O
is	O	O
the	O	O
same	O	O
.	O	O

What	O	O
is	O	O
the	O	O
proper	O	O
way	O	O
to	O	O
approach	O	O
this	O	O
?	O	O

https://jsfiddle.net/rzpL34ef/3/	O	O

You	O	O
can	O	O
do	O	O
something	O	O
like	O	O
this	O	O

Consider	O	O
following	O	O
Javascript	O	B-Language
code	O	O
example	O	O

Why	O	O
does	O	O
IDEA	O	B-Application
say	O	O
{	O	B-Code_Block
}	O	B-Code_Block
ca	O	O
n't	O	O
be	O	O
assigned	O	O
to	O	O
hash	O	B-Class
?	O	O

UPDATE	O	O

JSDoc	O	B-Language
style	O	O
was	O	O
picked	O	O
up	O	O
from	O	O
Zimbra	O	B-Application
frontend	O	O
source	O	O
code	O	O
.	O	O

For	O	O
example	O	O
,	O	O
look	O	O
at	O	O
DwtComposite	O	B-Variable
constructor	O	O
.	O	O

The	O	O
error	O	O
message	O	O
itself	O	O

What	O	O
code	O	O
quality	O	O
/	O	O
code	O	O
coverage	O	O
tools	O	O
are	O	O
available	O	O
for	O	O
Jasmine	O	B-Library
?	O	O

Working	O	O
in	O	O
Rails	O	B-Library
3.2.2	O	B-Version
.	O	O

You	O	O
may	O	O
be	O	O
able	O	O
to	O	O
use	O	O
a	O	O
combination	O	O
of	O	O
JsTestDriver	O	B-Library
and	O	O
this	O	O
Jasmine	O	B-Library
adapter	O	O
to	O	O
get	O	O
coverage	O	O
metrics	O	O
.	O	O

JSCoverage	O	B-Application
is	O	O
a	O	O
C	O	B-Language
based	O	O
tool	O	O
that	O	O
you	O	O
run	O	O
out	O	O
of	O	O
band	O	O
from	O	O
the	O	O
command	O	B-Application
line.	O	I-Application
.	O	O

JesCov	O	B-Application
is	O	O
a	O	O
Java	O	B-Library
solution	O	O
that	O	O
supports	O	O
Jasmine	O	B-Library
.	O	O

You	O	O
can	O	O
run	O	O
it	O	O
from	O	O
the	O	O
command	O	B-Application
line	O	I-Application
,	O	O
so	O	O
it	O	O
should	O	O
be	O	O
fairly	O	O
straight	O	O
forward	O	O
to	O	O
integrate	O	O
with	O	O
Rails	O	B-Library
if	O	O
the	O	O
system	O	O
has	O	O
a	O	O
JRE	O	B-Application
:	O	O

java	B-Code_Block	B-Code_Block
-jar	I-Code_Block	I-Code_Block
jescov-0.0.1.jar	I-Code_Block	I-Code_Block
one.js	I-Code_Block	I-Code_Block
two.js	I-Code_Block	I-Code_Block
three.js	I-Code_Block	I-Code_Block

I	O	O
looked	O	O
into	O	O
JesCov	O	B-Application
several	O	O
months	O	O
ago	O	O
for	O	O
a	O	O
Grails	O	B-Library
project	O	O
,	O	O
but	O	O
never	O	O
actually	O	O
tried	O	O
it	O	O
out	O	O
,	O	O
so	O	O
I	O	O
'd	O	O
be	O	O
interested	O	O
in	O	O
hearing	O	O
your	O	O
experience	O	O
if	O	O
you	O	O
do	O	O
try	O	O
it	O	O
.	O	O

I	O	O
want	O	O
to	O	O
pass	O	O
a	O	O
string	O	B-Data_Type
parameter	O	O
on	O	O
my	O	O
form	O	B-Class
Panel	O	I-Class
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
add	O	O
string	O	B-Data_Type
parameter	O	O
data	O	O
on	O	O
GWT	O	B-Library
form	O	B-Class
panel	O	I-Class
?	O	O

I	O	O
have	O	O
servlet	O	B-Library
code	O	O
that	O	O
will	O	O
receive	O	O
passed	O	O
string	O	B-Data_Type
parameter	O	O
using	O	O
post	O	O
,	O	O
I	O	O
cannot	O	O
include	O	O
the	O	O
parameters	O	O
in	O	O
the	O	O
link	O	O
because	O	O
it	O	O
has	O	O
large	O	O
amounts	O	O
of	O	O
data	O	O

this	O	O
is	O	O
my	O	O
servlet	O	B-Library
code	O	O
:	O	O

Use	O	O
Hidden	O	B-Class
widget	O	B-User_Interface_Element
.	O	O

It	O	O
creates	O	O
<input	B-Code_Block	B-Code_Block
type='hidden'>	I-Code_Block	I-Code_Block
element	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
edit	O	O
a	O	O
template	O	O
system	O	O
so	O	O
where	O	O
I	O	O
can	O	O
use	O	O
params	O	O
such	O	O
as	O	O
[	O	O
title	O	B-HTML_XML_Tag
]	O	O
and	O	O
it	O	O
'll	O	O
show	O	O
my	O	O
title	O	O
in	O	O
the	O	O
included	O	O
page	O	O
.	O	O

But	O	O
I	O	O
also	O	O
want	O	O
to	O	O
be	O	O
able	O	O
to	O	O
use	O	O
php	O	B-Language
code	O	O
inside	O	O
of	O	O
it	O	O
and	O	O
be	O	O
able	O	O
to	O	O
execute	O	O
that	O	O
code	O	O
.	O	O

But	O	O
I	O	O
am	O	O
having	O	O
difficult	O	O
getting	O	O
them	O	O
both	O	O
to	O	O
work	O	O
at	O	O
the	O	O
same	O	O
time	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
to	O	O
use	O	O
include	O	B-Function
instead	O	O
of	O	O
file_get_Contents	O	B-Function
but	O	O
when	O	O
I	O	O
use	O	O
include	O	B-Function
,	O	O
the	O	O
params	O	O
no	O	O
longer	O	O
work	O	O
.	O	O

However	O	O
when	O	O
I	O	O
use	O	O
file_get_contents	O	B-Function
the	O	O
php	O	B-Language
doesnt	O	O
work	O	O
,	O	O
and	O	O
doesnt	O	O
show	O	O
.	O	O

My	O	O
code	O	O
:	O	O

Hope	O	O
someone	O	O
can	O	O
help	O	O
.	O	O

Thanks	O	O

I	O	O
want	O	O
to	O	O
use	O	O
"	O	O
tagit	O	B-Function
"	O	O
,	O	O
but	O	O
it	O	O
is	O	O
n't	O	O
working	O	O
.	O	O

Here	O	O
is	O	O
(	O	O
part	O	O
of	O	O
)	O	O
my	O	O
code	O	O
:	O	O

Can	O	O
you	O	O
wise	O	O
men	O	O
,	O	O
tell	O	O
me	O	O
what	O	O
I	O	O
'm	O	O
doing	O	O
wrong	O	O
and	O	O
how	O	O
to	O	O
fix	O	O
?	O	O

since	O	O
no	O	O
error	O	O
is	O	O
happening	O	O
there	O	O
is	O	O
no	O	O
issue	O	O
in	O	O
the	O	O
plugin	O	O
loading	O	O
.	O	O

Can	O	O
you	O	O
try	O	O
this.Also	O	O
which	O	O
plugin	O	O
are	O	O
you	O	O
using	O	O
?	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
create	O	O
an	O	O
Android	O	B-Operating_System
Application	O	O
that	O	O
can	O	O
record	O	O
a	O	O
video	O	B-User_Interface_Element
and	O	O
,	O	O
during	O	O
recording	O	O
,	O	O
it	O	O
should	O	O
capture	O	O
frames	O	O
in	O	O
order	O	O
to	O	O
process	O	O
them	O	O
.	O	O

But	O	O
when	O	O
I	O	O
try	O	O
to	O	O
run	O	O
my	O	O
app	O	O
on	O	O
my	O	O
emulator	O	B-Application
(	O	O
using	O	O
Eclipse	O	B-Application
Juno	O	B-Version
,	O	O
OpenCV4Android	O	B-Library
ver	O	O
.	O	O
2.4.5	O	B-Version
,	O	O
and	O	O
android-ndk	O	B-Application
)	O	O
,	O	O
I	O	O
have	O	O
this	O	O
result	O	O
in	O	O
my	O	O
logcat	O	B-Application
:	O	O

It	O	O
is	O	O
my	O	O
code	O	O
:	O	O

1)	O	O
MainActivity.java	O	B-File_Name

2)	O	O
jniVideoCapture.cpp	O	B-File_Name

3)	O	O
Android.mk	O	B-File_Name

I	O	O
've	O	O
tried	O	O
to	O	O
copy	O	O
manually	O	O
in	O	O
the	O	O
dir	O	O
libs	O	B-File_Name
of	O	O
the	O	O
project	O	O
the	O	O
library	O	O
libopencv_java.so	O	B-File_Name
,	O	O
taking	O	O
it	O	O
from	O	O
an	O	O
opencv	O	B-Library
tutorial	O	O
project	O	O
,	O	O
and	O	O
I	O	O
've	O	O
loaded	O	O
it	O	O
with	O	O
the	O	O
jniVideoCapture	O	B-Class
in	O	O
the	O	O
MainActivity	O	B-File_Name
,	O	O
but	O	O
without	O	O
better	O	O
results	O	O
,	O	O
because	O	O
when	O	O
I	O	O
run	O	O
the	O	O
project	O	O
,	O	O
the	O	O
library	O	O
is	O	O
automatically	O	O
removed	O	O
from	O	O
libs/	O	B-File_Name
.	O	O

How	O	O
can	O	O
I	O	O
fix	O	O
this	O	O
problem	O	O
?	O	O

Just	O	O
add	O	O
line	O	O
:	O	O

right	O	O
after	O	O
:	O	O

You	O	O
just	O	O
did	O	O
n't	O	O
link	O	O
(	O	O
statically	O	O
)	O	O
opencv	O	B-Library
library	O	O
to	O	O
your	O	O
project	O	O
-	O	O
this	O	O
is	O	O
a	O	O
mistake	O	O
.	O	O

I	O	O
have	O	O
a	O	O
large	O	O
table	O	B-Class
(	O	O
about	O	O
40M	O	O
Rows	O	B-Data_Structure
)	O	O
where	O	O
I	O	O
had	O	O
a	O	O
number	O	O
of	O	O
columns	O	B-Data_Structure
that	O	O
are	O	O
0	O	B-Value
which	O	O
need	O	O
to	O	O
be	O	O
null	O	B-Value
instead	O	O
so	O	O
we	O	O
can	O	O
better	O	O
key	O	O
the	O	O
data	O	O
.	O	O

I	O	O
've	O	O
written	O	O
scripts	O	O
to	O	O
look	O	O
chop	O	O
the	O	O
update	O	O
into	O	O
chunks	O	O
of	O	O
10000	O	O
records	O	O
,	O	O
find	O	O
the	O	O
occurance	O	O
of	O	O
the	O	O
columns	O	B-Data_Structure
with	O	O
zero	O	B-Value
and	O	O
update	O	O
them	O	O
to	O	O
null	O	B-Value
.	O	O

Example	O	O
:	O	O

This	O	O
works	O	O
great	O	O
,	O	O
but	O	O
it	O	O
takes	O	O
for	O	O
ever	O	O
.	O	O

I	O	O
thinking	O	O
the	O	O
better	O	O
way	O	O
to	O	O
do	O	O
this	O	O
would	O	O
be	O	O
to	O	O
create	O	O
a	O	O
second	O	O
table	O	B-Class
and	O	O
insert	O	O
the	O	O
data	O	O
into	O	O
it	O	O
and	O	O
then	O	O
rename	O	O
it	O	O
to	O	O
replace	O	O
the	O	O
old	O	O
table	O	B-Class
with	O	O
the	O	O
columns	O	B-Data_Structure
having	O	O
zero	O	B-Value
.	O	O

Question	O	O
is	O	O
-	O	O
can	O	O
I	O	O
do	O	O
a	O	O
insert	O	O
into	O	O
table2	O	B-Variable
select	O	O
from	O	O
table1	O	B-Variable
and	O	O
in	O	O
the	O	O
process	O	O
cleanse	O	O
the	O	O
data	O	O
from	O	O
table1	O	B-Variable
before	O	O
it	O	O
goes	O	O
in	O	O
?	O	O

You	O	O
can	O	O
usually	O	O
create	O	O
a	O	O
new	O	O
,	O	O
sanitised	O	O
,	O	O
table	O	B-Class
,	O	O
depending	O	O
on	O	O
the	O	O
actual	O	O
DB	O	B-Application
server	O	I-Application
you	O	O
are	O	O
using	O	O
.	O	O

The	O	O
hard	O	O
thing	O	O
is	O	O
that	O	O
if	O	O
there	O	O
are	O	O
other	O	O
tables	O	B-Class
in	O	O
the	O	O
database	O	O
,	O	O
you	O	O
may	O	O
have	O	O
issues	O	O
with	O	O
foreign	O	B-Variable
keys	O	I-Variable
,	O	O
indexes	O	B-Variable
,	O	O
etc	O	O
which	O	O
will	O	O
refer	O	O
to	O	O
the	O	O
original	O	O
table	O	B-Class
.	O	O

Whether	O	O
making	O	O
a	O	O
new	O	O
sanitised	O	O
table	O	B-Class
will	O	O
be	O	O
quicker	O	O
than	O	O
updating	O	O
your	O	O
existing	O	O
table	O	B-Class
is	O	O
something	O	O
you	O	O
can	O	O
only	O	O
tell	O	O
by	O	O
trying	O	O
it	O	O
.	O	O

Dump	O	O
the	O	O
pk/clustered	O	B-Variable
key	O	I-Variable
of	O	O
all	O	O
the	O	O
records	O	O
you	O	O
want	O	O
to	O	O
update	O	O
into	O	O
a	O	O
temp	O	O
table	O	B-Class
.	O	O

Then	O	O
perform	O	O
the	O	O
update	O	O
joining	O	O
to	O	O
the	O	O
temp	O	O
table	O	B-Class
.	O	O

That	O	O
will	O	O
ensure	O	O
the	O	O
lowest	O	O
locking	O	O
level	O	O
and	O	O
quickest	O	O
access	O	O
.	O	O

You	O	O
can	O	O
also	O	O
add	O	O
an	O	O
identity	O	O
column	O	B-Data_Structure
to	O	O
the	O	O
temp	O	O
table	O	B-Class
,	O	O
than	O	O
you	O	O
can	O	O
loop	O	O
through	O	O
and	O	O
do	O	O
the	O	O
updates	O	O
in	O	O
batches	O	O
.	O	O

I	O	O
have	O	O
a	O	O
mysql	O	B-Application
result	O	O
set	O	O
that	O	O
has	O	O
several	O	O
rows	O	B-Data_Structure
,	O	O
what	O	O
i	O	O
would	O	O
like	O	O
to	O	O
do	O	O
is	O	O
to	O	O
combine	O	O
the	O	O
rows	O	B-Data_Structure
to	O	O
form	O	O
one	O	O
row	O	B-Data_Structure
of	O	O
results	O	O
depending	O	O
on	O	O
the	O	O
uniqueness	O	O
of	O	O
the	O	O
rows	O	B-Data_Structure
.	O	O

Say	O	O
I	O	O
have	O	O
this	O	O
:	O	O

Table	O	B-Data_Structure
result	O	O
1	O	O

I	O	O
would	O	O
like	O	O
to	O	O
produce	O	O
something	O	O
like	O	O
this	O	O

I	O	O
have	O	O
tried	O	O
to	O	O
use	O	O
the	O	O
normal	O	O
"	O	O
SELECT	O	B-Code_Block
*	O	I-Code_Block
FROM	O	I-Code_Block
component_summary	B-Code_Block	I-Code_Block
WHERE	O	I-Code_Block
labref='A'	B-Code_Block	I-Code_Block
"	O	O
Then	O	O
use	O	O
a	O	O
function	O	O
in	O	O
the	O	O
application	O	O
side	O	O
to	O	O
do	O	O
this	O	O
but	O	O
its	O	O
not	O	O
working.	O	O
.	O	O

Any	O	O
Suggestions	O	O
to	O	O
do	O	O
it	O	O
with	O	O
mysql	O	B-Application
first	O	O

Try	O	O
this	O	O
query	O	O
.	O	O

Using	O	O
CakePHP	O	B-Library
I	O	O
have	O	O
a	O	O
page	O	O
where	O	O
I	O	O
have	O	O
multiple	O	O
forms	O	B-User_Interface_Element
.	O	O

Each	O	O
form	O	B-Class
updates	O	O
a	O	O
single	O	O
field	O	O
on	O	O
a	O	O
record	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
implement	O	O
a	O	O
way	O	O
to	O	O
submit	O	O
all	O	O
the	O	O
forms	O	B-Class
through	O	O
a	O	O
single	O	O
"	O	O
Submit	O	O
All	O	O
"	O	O
button	O	B-User_Interface_Element
.	O	O

However	O	O
,	O	O
all	O	O
my	O	O
solutions	O	O
so	O	O
far	O	O
have	O	O
been	O	O
lest	O	O
than	O	O
successful	O	O
.	O	O

My	O	O
first	O	O
attempt	O	O
was	O	O
to	O	O
create	O	O
a	O	O
separate	O	O
action	O	O
called	O	O
editAll	B-Code_Block	B-Function
in	O	O
the	O	O
controller	O	O
that	O	O
took	O	O
an	O	O
array	O	B-Data_Structure
,	O	O
but	O	O
I	O	O
cannot	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
send	O	O
the	O	O
data	O	O
from	O	O
all	O	O
the	O	O
forms	O	O
to	O	O
that	O	O
action	O	O
without	O	O
having	O	O
a	O	O
hidden	O	O
form	O	B-Class
that	O	O
saves	O	O
all	O	O
that	O	O
data	O	O
.	O	O

The	O	O
second	O	O
idea	O	O
was	O	O
to	O	O
create	O	O
some	O	O
kind	O	O
of	O	O
Javascript	O	B-Language
function	O	O
that	O	O
iterated	O	O
over	O	O
all	O	O
the	O	O
forms	O	O
to	O	O
create	O	O
an	O	O
array	O	B-Data_Structure
to	O	O
be	O	O
sent	O	O
to	O	O
the	O	O
controller	O	O
's	O	O
editAll	B-Code_Block	B-Function
action	O	O
.	O	O

The	O	O
first	O	O
implementation	O	O
did	O	O
not	O	O
work	O	O
,	O	O
and	O	O
I	O	O
could	O	O
n't	O	O
find	O	O
a	O	O
reasonable	O	O
way	O	O
to	O	O
implement	O	O
the	O	O
second	O	O
idea	O	O
.	O	O

Basically	O	O
,	O	O
I	O	O
was	O	O
hoping	O	O
someone	O	O
could	O	O
point	O	O
me	O	O
in	O	O
the	O	O
direction	O	O
to	O	O
submitting	O	O
multiple	O	O
forms	O	B-Class
(	O	O
or	O	O
at	O	O
least	O	O
the	O	O
data	O	O
from	O	O
multiple	O	O
forms	O	B-Class
)	O	O
at	O	O
once	O	O
from	O	O
a	O	O
single	O	O
page	O	B-User_Interface_Element
.	O	O

I	O	O
assume	O	O
you	O	O
do	O	O
n't	O	O
ALWAYS	O	O
want	O	O
to	O	O
submit	O	O
them	O	O
all	O	O
-	O	O
if	O	O
you	O	O
do	O	O
,	O	O
then	O	O
just	O	O
make	O	O
one	O	O
form	O	B-Class
.	O	O

If	O	O
you	O	O
're	O	O
hoping	O	O
to	O	O
be	O	O
able	O	O
to	O	O
submit	O	O
some	O	O
of	O	O
them	O	O
individually	O	O
,	O	O
but	O	O
also	O	O
be	O	O
able	O	O
to	O	O
submit	O	O
them	O	O
all	O	O
,	O	O
then	O	O
you	O	O
could	O	O
do	O	O
something	O	O
along	O	O
the	O	O
lines	O	O
of	O	O
this	O	O
:	O	O

Keep	O	O
all	O	O
the	O	O
fields	O	O
in	O	O
one	O	O
form	O	B-Class
.	O	O

For	O	O
each	O	O
field	O	O
have	O	O
a	O	O
'	O	O
submitted	O	B-Variable
'	O	O
value	O	O
(	O	O
1	O	B-Value
or	O	O
0	O	B-Value
)	O	O
.	O	O

If	O	O
they	O	O
click	O	O
the	O	O
Submit	O	O
next	O	O
to	O	O
an	O	O
individual	O	O
field	O	O
,	O	O
turn	O	O
all	O	O
of	O	O
the	O	O
submitted	O	B-Variable
values	O	O
to	O	O
0	O	B-Value
except	O	O
that	O	O
one	O	O
,	O	O
then	O	O
submit	O	O
the	O	O
form	O	B-Class
.	O	O

If	O	O
they	O	O
click	O	O
Submit	O	O
All	O	O
,	O	O
then	O	O
turn	O	O
them	O	O
all	O	O
to	O	O
'	O	B-Value
1	O	I-Value
'	O	B-Value
and	O	O
submit	O	O
the	O	O
form	O	B-Class
.	O	O

Then	O	O
,	O	O
when	O	O
you	O	O
process	O	O
the	O	O
data	O	O
,	O	O
just	O	O
strip	O	O
anything	O	O
that	O	O
does	O	O
n't	O	O
have	O	O
'	O	O
submitted	O	B-Variable
'	O	O
value	O	O
of	O	O
1	O	B-Value
.	O	O

It	O	O
would	O	O
still	O	O
take	O	O
some	O	O
work	O	O
,	O	O
and	O	O
you	O	O
're	O	O
submitting	O	O
more	O	O
data	O	O
than	O	O
is	O	O
necessary	O	O
,	O	O
but	O	O
...	O	O
.	O	O
it	O	O
's	O	O
an	O	O
idea	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
the	O	O
value	O	O
of	O	O
a	O	O
column	O	B-Data_Structure
called	O	O
children_ids	B-Code_Block	B-Variable
inside	O	O
a	O	O
subquery	O	O
:	O	O

But	O	O
count_children	B-Code_Block	B-Variable
is	O	O
always	O	O
NULL	B-Code_Block	B-Value
.	O	O

If	O	O
I	O	O
replace	O	O
children_ids	B-Code_Block	B-Variable
with	O	O
some	O	O
real	O	O
values	O	O
,	O	O
it	O	O
works	O	O
:	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
use	O	O
the	O	O
value	O	O
of	O	O
an	O	O
outer	O	O
column	O	B-Data_Structure
inside	O	O
a	O	O
subquery	O	O
?	O	O

You	O	O
can	O	O
do	O	O
what	O	O
you	O	O
want	O	O
using	O	O
find_in_set()	B-Code_Block	B-Function
:	O	O

However	O	O
,	O	O
you	O	O
should	O	O
fix	O	O
your	O	O
data	O	O
structure	O	O
to	O	O
use	O	O
a	O	O
proper	O	O
junction	O	B-Data_Structure
table	O	I-Data_Structure
.	O	O

Storing	O	O
lists	O	B-Data_Structure
of	O	O
ids	O	O
in	O	O
a	O	O
comma	O	O
delimited	O	O
column	O	B-Data_Structure
is	O	O
not	O	O
the	O	O
right	O	O
way	O	O
to	O	O
store	O	O
data	O	O
.	O	O

You	O	O
can	O	O
replace	O	O
In	O	B-Code_Block
(	O	I-Code_Block
children_ids	O	I-Code_Block
)	O	I-Code_Block
by	O	O
In	O	B-Code_Block
(	O	I-Code_Block
select	O	I-Code_Block
children_ids	O	I-Code_Block
from	O	I-Code_Block
hotels	O	I-Code_Block
hotls1	O	I-Code_Block
where	O	I-Code_Block
hotels.id	O	I-Code_Block
=	O	I-Code_Block
hotels1.I	O	I-Code_Block
'	O	I-Code_Block
d	O	I-Code_Block
)	O	I-Code_Block

I	O	O
have	O	O
a	O	O
list	O	B-Data_Structure
and	O	O
want	O	O
to	O	O
split	O	O
each	O	O
elements	O	O
into	O	O
a	O	O
tuple	O	B-Data_Structure
of	O	O
two	O	O
elements	O	O
.	O	O

The	O	O
list	O	B-Data_Structure
looks	O	O
like	O	O
:	O	O

How	O	O
do	O	O
I	O	O
create	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
the	O	O
form	O	O
:	O	O

Use	O	O
split()	B-Code_Block	B-Function
.	O	O

Try	O	O
the	O	O
following	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
integrate	O	O
the	O	O
new	O	O
object	O	O
ADBannerView	O	B-Class
in	O	O
my	O	O
Cocos2d	O	B-Library
game	O	O
but	O	O
the	O	O
banner	O	B-User_Interface_Element
apears	O	O
in	O	O
vertical	O	O
on	O	O
the	O	O
left	O	O
of	O	O
the	O	O
screen	O	O
when	O	O
my	O	O
game	O	O
is	O	O
in	O	O
landscape	O	O
.	O	O

This	O	O
is	O	O
my	O	O
code	O	O
:	O	O

I	O	O
'd	O	O
like	O	O
the	O	O
banner	O	B-User_Interface_Element
to	O	O
appear	O	O
on	O	O
the	O	O
top	O	O
of	O	O
the	O	O
screen	O	O
in	O	O
horizontal	O	O
(	O	O
landscape	O	O
mode	O	O
)	O	O
.	O	O

Thank	O	O
you	O	O
for	O	O
your	O	O
support	O	O
!	O	O

You	O	O
will	O	O
need	O	O
to	O	O
rotate	O	O
the	O	O
frame	O	O
that	O	O
you	O	O
made	O	O
.	O	O

Try	O	O
something	O	O
like	O	O
this	O	O
:	O	O

M_PI	O	B-Variable
is	O	O
defined	O	O
in	O	O
math.h	O	B-File_Name
in	O	O
the	O	O
cocos2d	O	B-Library
library	O	O
,	O	O
it	O	O
's	O	O
just	O	O
pi	O	B-Variable
.	O	O

Once	O	O
you	O	O
get	O	O
it	O	O
on	O	O
,	O	O
just	O	O
play	O	O
with	O	O
the	O	O
first	O	O
2	O	O
numbers	O	O
in	O	O
the	O	O
rect	O	O
to	O	O
position	O	O
it	O	O
where	O	O
you	O	O
need	O	O
it	O	O
.	O	O

You	O	O
should	O	O
modify	O	O
the	O	O
view	O	O
frame	O	O
size	O	O
&	O	O
origin	O	O
in	O	O
shouldAutorotateToInterfaceOrientation	O	B-Function
.	O	O

I	O	O
am	O	O
constantly	O	O
finding	O	O
myself	O	O
building	O	O
programs	O	O
where	O	O
there	O	O
are	O	O
multiple	O	O
screens	O	B-User_Interface_Element
.	O	O

For	O	O
example	O	O
,	O	O
consider	O	O
a	O	O
program	O	O
where	O	O
the	O	O
initial	O	O
layout	O	O
offers	O	O
two	O	O
buttons	O	B-User_Interface_Element
:	O	O
create	O	O
file	O	O
or	O	O
edit	O	O
file	O	O
.	O	O

Upon	O	O
clicking	O	O
one	O	O
,	O	O
it	O	O
takes	O	O
the	O	O
user	O	O
to	O	O
a	O	O
new	O	O
screen	O	B-User_Interface_Element
supporting	O	O
whatever	O	O
button	O	B-User_Interface_Element
they	O	O
press	O	O
.	O	O

Then	O	O
they	O	O
click	O	O
a	O	O
back	O	O
button	O	B-User_Interface_Element
and	O	O
it	O	O
takes	O	O
them	O	O
back	O	O
to	O	O
the	O	O
main	O	O
screen	O	B-User_Interface_Element
of	O	O
the	O	O
program	O	O
.	O	O

I	O	O
am	O	O
wondering	O	O
how	O	O
to	O	O
best	O	O
do	O	O
separate	O	O
menus	O	B-User_Interface_Element
like	O	O
this	O	O
.	O	O

Would	O	O
it	O	O
be	O	O
best	O	O
just	O	O
to	O	O
create	O	O
separate	O	O
methods	O	O
setting	O	O
up	O	O
each	O	O
screen	O	B-User_Interface_Element
,	O	O
then	O	O
call	O	O
the	O	O
appropriate	O	O
one	O	O
when	O	O
a	O	O
button	O	B-User_Interface_Element
(	O	O
like	O	O
"	O	O
back	O	O
"	O	O
button	O	B-User_Interface_Element
)	O	O
is	O	O
clicked	O	O
?	O	O

This	O	O
is	O	O
what	O	O
I	O	O
was	O	O
thinking	O	O
of	O	O
doing	O	O
,	O	O
but	O	O
seeing	O	O
as	O	O
there	O	O
are	O	O
many	O	O
ways	O	O
to	O	O
do	O	O
this	O	O
,	O	O
I	O	O
want	O	O
to	O	O
get	O	O
opinions	O	O
on	O	O
a	O	O
possibly	O	O
better	O	O
way	O	O
of	O	O
changing	O	O
the	O	O
screen	O	B-User_Interface_Element
displayed	O	O
.	O	O

Thanks	O	O
,	O	O
AJ	O	B-User_Name

Based	O	O
on	O	O
your	O	O
2nd	O	O
comment	O	O
to	O	O
the	O	O
original	O	O
question	O	O
,	O	O
I	O	O
think	O	O
it	O	O
is	O	O
best	O	O
to	O	O
look	O	O
at	O	O
using	O	O
Panels	O	B-Class
.	O	O

Look	O	O
at	O	O
using	O	O
multiple	O	O
panels	O	B-Class
for	O	O
each	O	O
of	O	O
the	O	O
activities	O	O
you	O	O
want	O	O
:	O	O

Ensure	O	O
all	O	O
panels	O	B-Class
are	O	O
hidden	O	O
when	O	O
initialised	O	O
,	O	O
and	O	O
then	O	O
simply	O	O
swap	O	O
a	O	O
panel	O	B-Class
for	O	O
another	O	O
one	O	O
upon	O	O
a	O	O
button	O	B-User_Interface_Element
click	O	O
event	O	B-Class
using	O	O
:	O	O

Depending	O	O
on	O	O
the	O	O
layout	O	B-Class
you	O	O
use	O	O
,	O	O
there	O	O
are	O	O
also	O	O
other	O	O
techniques	O	O
.	O	O

For	O	O
example	O	O
,	O	O
rather	O	O
than	O	O
removing	O	O
and	O	O
adding	O	O
(	O	O
or	O	O
showing	O	O
and	O	O
hiding	O	O
multiple	O	O
panels	O	B-Class
)	O	O
,	O	O
if	O	O
you	O	O
use	O	O
BorderLayout	O	B-Class
you	O	O
can	O	O
simple	O	O
"	O	O
replace	O	O
"	O	O
a	O	O
BorderLayout	O	B-Class
area	O	O
with	O	O
another	O	O
panel	O	B-Class
and	O	O
then	O	O
revalidate	O	O
:	O	O

Note	O	O
also	O	O
that	O	O
different	O	O
Operating	O	O
Systems	O	O
(	O	O
Windows	O	B-Operating_System
,	O	O
Mac	O	B-Operating_System
etc	O	O
)	O	O
will	O	O
have	O	O
different	O	O
styles	O	O
they	O	O
like	O	O
to	O	O
adhere	O	O
to	O	O
.	O	O

For	O	O
example	O	O
you	O	O
mentioned	O	O
a	O	O
typical	O	O
Windows	O	B-Operating_System
installer	O	B-Application
;	O	O
people	O	O
have	O	O
come	O	O
to	O	O
expect	O	O
an	O	O
installer	O	B-Application
to	O	O
look	O	O
and	O	O
work	O	O
in	O	O
a	O	O
certain	O	O
way	O	O
,	O	O
but	O	O
on	O	O
a	O	O
different	O	O
OS	O	O
there	O	O
are	O	O
a	O	O
completely	O	O
different	O	O
set	O	O
of	O	O
expectations	O	O
and	O	O
looks	O	O
.	O	O

Further	O	O
reading	O	O
:	O	O

Tutorial	O	O
on	O	O
using	O	O
panels	O	B-Class

Java	O	B-Language
SE	O	B-Version
7	O	I-Version
(	O	O
JPanel	O	B-Class
API	O	O
)	O	O

Edit	O	O
:	O	O

This	O	O
comes	O	O
down	O	O
to	O	O
personal	O	O
preference	O	O
.	O	O

Do	O	O
you	O	O
want	O	O
to	O	O
initalise	O	O
everything	O	O
on	O	O
startup	O	O
and	O	O
have	O	O
quicker	O	O
swaps	O	O
between	O	O
panels	O	B-User_Interface_Element
(	O	O
or	O	O
as	O	O
you	O	O
called	O	O
them	O	O
:	O	O
"	O	O
screens	O	B-User_Interface_Element
"	O	O
)	O	O
,	O	O
OR	O	O
do	O	O
you	O	O
want	O	O
a	O	O
quicker	O	O
inital	O	O
startup	O	O
and	O	O
essentially	O	O
have	O	O
"	O	O
lazy	O	B-Algorithm
loading	O	I-Algorithm
"	O	O
of	O	O
each	O	O
component	O	O
as	O	O
and	O	O
when	O	O
you	O	O
need	O	O
it	O	O
.	O	O

Personally	O	O
I	O	O
opt	O	O
for	O	O
everything	O	O
during	O	O
initalisation	O	O
(	O	O
unless	O	O
there	O	O
is	O	O
a	O	O
lot	O	O
of	O	O
things	O	O
to	O	O
do	O	O
or	O	O
load	O	O
during	O	O
your	O	O
applications	O	O
startup	O	O
)	O	O
.	O	O

This	O	O
really	O	O
comes	O	O
down	O	O
to	O	O
personal	O	O
preference	O	O
.	O	O

Another	O	O
edit	O	O
:	O	O

Speaking	O	O
about	O	O
layouts	O	B-Class
,	O	O
perhaps	O	O
a	O	O
different	O	O
layout	O	O
style	O	O
would	O	O
also	O	O
help	O	O
you	O	O
out	O	O
,	O	O
something	O	O
like	O	O
this	O	O
:	O	O

CardLayout	O	B-Class
tutorial	O	O

Hope	O	O
this	O	O
helps	O	O
out	O	O
somewhat	O	O
.	O	O

If	O	O
the	O	O
state	O	O
of	O	O
the	O	O
screen	O	B-User_Interface_Element
depends	O	O
on	O	O
the	O	O
state	O	O
of	O	O
the	O	O
previous	O	O
screen	O	B-User_Interface_Element
(	O	O
e.g	O	O
.	O	O
like	O	O
in	O	O
a	O	O
wizard	O	B-User_Interface_Element
)	O	O
you	O	O
can	O	O
follow	O	O
the	O	O
steps	O	O
described	O	O
in	O	O
this	O	O
article	O	O

I	O	O
want	O	O
to	O	O
display	O	O
an	O	O
alert	O	B-User_Interface_Element
box	O	I-User_Interface_Element
showing	O	O
a	O	O
message	O	O
with	O	O
PHP	O	B-Language
.	O	O

If	O	O
I	O	O
not	O	O
use	O	O
alert	O	B-User_Interface_Element
box	O	I-User_Interface_Element
I	O	O
get	O	O
the	O	O
right	O	O
answer	O	O
such	O	O
"	O	O
update	B-Code_Block	B-Code_Block
subject	I-Code_Block	I-Code_Block
set	I-Code_Block	I-Code_Block
semester	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
where	I-Code_Block	I-Code_Block
id	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
171	I-Code_Block	I-Code_Block
"	O	O
.	O	O

But	O	O
after	O	O
I	O	O
change	O	O
into	O	O
alert	O	B-User_Interface_Element
box	O	I-User_Interface_Element
the	O	O
answer	O	O
i	O	O
get	O	O
in	O	O
the	O	O
alert	O	B-User_Interface_Element
box	O	I-User_Interface_Element
only	O	O
"	O	O
update	B-Code_Block	B-Code_Block
subject	I-Code_Block	I-Code_Block
set	I-Code_Block	I-Code_Block
$f	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
$data	I-Code_Block	I-Code_Block
where	I-Code_Block	I-Code_Block
id	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
$did	I-Code_Block	I-Code_Block
"	O	O
and	O	O
it	O	O
does	O	O
not	O	O
update	O	O
in	O	O
database	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
PHP	O	B-Language
code	O	O
:	O	O

Change	O	O
the	O	O
quotations	O	O
.	O	O

Learn	O	O
the	O	O
difference	O	O
between	O	O
single	O	O
and	O	O
double	O	O
quotes	O	O
.	O	O

Also	O	O
,	O	O
you	O	O
ca	O	O
n't	O	O
update	O	O
using	O	O
that	O	O
which	O	O
is	O	O
an	O	O
invalid	O	O
query	O	B-Variable
with	O	O
Javascript	O	B-Language
statement	O	O
.	O	O

Instead	O	O
use	O	O
:	O	O

Note	O	O
:	O	O
mysql_	O	B-Class
extensions	O	I-Class
are	O	O
deprecated	O	O
,	O	O
use	O	O
mysqli	O	B-Application
or	O	O
PDO	O	B-Application

What	O	O
you	O	O
are	O	O
passing	O	O
to	O	O
the	O	O
deprecated	O	O
mysql_query	B-Code_Block	B-Function
function	O	O
was	O	O
not	O	O
valid	O	O
sql	O	B-Language
and	O	O
would	O	O
cause	O	O
an	O	O
error	O	O
,	O	O
I	O	O
suspect	O	O
you	O	O
were	O	O
trying	O	O
something	O	O
along	O	O
these	O	O
lines	O	O
?	O	O

I	O	O
am	O	O
attempting	O	O
to	O	O
use	O	O
HttpClient	O	B-Class
to	O	O
upload	O	O
a	O	O
file	O	O
to	O	O
Microsoft	O	B-Application
Azure	O	I-Application
Blob	O	I-Application
Storage	O	I-Application
via	O	O
their	O	O
REST	O	B-Library
api	O	I-Library
in	O	O
Xamarin.iOS	O	B-Application
.	O	O

It	O	O
's	O	O
been	O	O
going	O	O
alright	O	O
until	O	O
now	O	O
.	O	O

Every	O	O
time	O	O
I	O	O
try	O	O
to	O	O
add	O	O
Content-Length	O	B-Variable
header	O	O
to	O	O
the	O	O
client	O	B-Variable
I	O	O
get	O	O
this	O	O
error	O	O
:	O	O

This	O	O
is	O	O
my	O	O
code	O	O
for	O	O
creating	O	O
the	O	O
HttpClient	O	B-Class

I	O	O
tried	O	O
using	O	O
TryAddWithoutValidation	O	B-Function
instead	O	O
of	O	O
Add	O	B-Function
:	O	O

The	O	O
error	O	O
does	O	O
n't	O	O
get	O	O
thrown	O	O
but	O	O
the	O	O
header	O	O
still	O	O
does	O	O
n't	O	O
get	O	O
added	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
great	O	O
.	O	O

Here	O	O
's	O	O
the	O	O
inner	O	O
workings	O	O
of	O	O
CheckName()	O	B-Function
,	O	O
which	O	O
is	O	O
throwing	O	O
the	O	O
exception	O	B-Class
.	O	O

You	O	O
can	O	O
find	O	O
the	O	O
source	O	O
here	O	O
:	O	O
https://github.com/mono/mono/blob/master/mcs/class/System.Net.Http/System.Net.Http.Headers/HttpHeaders.cs	O	O

After	O	O
looking	O	O
at	O	O
the	O	O
full	O	O
source	O	O
file	O	O
:	O	O

It	O	O
looks	O	O
like	O	O
Content-Length	B-Code_Block	B-Variable
is	O	O
in	O	O
the	O	O
collection	O	O
of	O	O
known_headers	B-Code_Block	B-Variable
.	O	O

Also	O	O
looks	O	O
like	O	O
the	O	O
internal	O	O
type	O	O
of	O	O
the	O	O
Content-Length	B-Code_Block	B-Variable
header	O	O
value	O	O
is	O	O
a	O	O
long	O	B-Data_Type
.	O	O

But	O	O
the	O	O
Add()	O	B-Function
method	O	O
only	O	O
take	O	O
a	O	O
string	O	B-Data_Type
for	O	O
the	O	O
value	O	O
,	O	O
which	O	O
get	O	O
's	O	O
parsed	O	O
to	O	O
a	O	O
long	O	B-Data_Type
.	O	O

Is	O	O
the	O	O
string	O	B-Data_Type
value	O	O
that	O	O
you	O	O
're	O	O
passing	O	O
for	O	O
the	O	O
Content-Length	B-Code_Block	B-Variable
value	O	O
a	O	O
valid	O	O
long	O	B-Data_Type
?	O	O

I	O	O
have	O	O
a	O	O
problem	O	O
with	O	O
content	O	O
from	O	O
a	O	O
div	O	B-HTML_XML_Tag
,	O	O
for	O	O
example	O	O
if	O	O
I	O	O
put	O	O
a	O	O
table	O	B-User_Interface_Element
inside	O	O
of	O	O
a	O	O
div	O	B-HTML_XML_Tag
and	O	O
set	O	O
a	O	O
width	O	B-Variable
(	B-Code_Block	O
width:200px	I-Code_Block	B-Code_Block
!	I-Code_Block	O
important	I-Code_Block	O
)	I-Code_Block	O
for	O	O
that	O	O
div	O	B-HTML_XML_Tag
the	O	O
table	O	B-User_Interface_Element
it	O	O
will	O	O
overwrite	O	O
that	O	O
div	O	B-HTML_XML_Tag
.	O	O

So	O	O
how	O	O
is	O	O
possible	O	O
to	O	O
keep	O	O
all	O	O
content	O	O
inside	O	O
that	O	O
div	O	B-HTML_XML_Tag
?	O	O

fiddle	O	B-Application
example	O	O
:	O	O
http://jsfiddle.net/ebG9N/45/	O	O

You	O	O
set	O	O
the	O	O
header	O	B-User_Interface_Element
to	O	O
white-space	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
nowrap	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
therefore	O	O
,	O	O
the	O	O
browser	O	B-Application
is	O	O
unable	O	O
to	O	O
break	O	O
the	O	O
headers	O	B-User_Interface_Element
,	O	O
so	O	O
the	O	O
width	O	B-Variable
of	O	O
the	O	O
table	O	B-User_Interface_Element
will	O	O
be	O	O
bigger	O	O
than	O	O
the	O	O
container	O	O
div	O	B-HTML_XML_Tag
.	O	O

You	O	O
can	O	O
set	O	O
,	O	O
overflow	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
hidden	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
to	O	O
cut	O	O
the	O	O
overflowing	O	O
parts	O	O
,	O	O
or	O	O
overflow	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
auto	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
to	O	O
create	O	O
a	O	O
scrollbar	O	B-User_Interface_Element
,	O	O
but	O	O
without	O	O
them	O	O
it	O	O
's	O	O
the	O	O
correct	O	O
rendering	O	O
.	O	O

There	O	O
are	O	O
two	O	O
solutions	O	O
.	O	O

i)	O	O
IF	O	O
you	O	O
want	O	O
to	O	O
STRICTLY	O	O
contain	O	O
table	O	B-User_Interface_Element
WITHIN	O	O
div	O	B-HTML_XML_Tag
then	O	O
overflow:auto	O	B-Code_Block
;	O	I-Code_Block
is	O	O
the	O	O
way	O	O
to	O	O
go	O	O
.	O	O

ii)	O	O
BUT	O	O
if	O	O
you	O	O
change	O	O
your	O	O
mind	O	O
and	O	O
want	O	O
to	O	O
WRAP	O	O
div	O	B-HTML_XML_Tag
to	O	O
the	O	O
width	O	B-Variable
of	O	O
table	O	B-User_Interface_Element
then	O	O
.	O	O

display:table	O	B-Code_Block
;	O	I-Code_Block
is	O	O
the	O	O
way	O	O
to	O	O
go	O	O
.	O	O

Generally	O	O
its	O	O
bad	O	O
idea	O	O
to	O	O
contain	O	O
wider	O	O
element	O	O
within	O	O
explicitly	O	O
known	O	O
less	O	O
wider	O	O
element	O	O
.	O	O

I	O	O
have	O	O
come	O	O
across	O	O
a	O	O
situation	O	O
where	O	O
I	O	O
am	O	O
reading	O	O
a	O	O
some	O	O
log	O	B-File_Type
file	O	O
and	O	O
then	O	O
counting	O	O
the	O	O
number	O	O
of	O	O
lines	O	O
I	O	O
encountered	O	O
via	O	O
the	O	O
following	O	O
code	O	O
snippet	O	O
.	O	O

My	O	O
problem	O	O
is	O	O
that	O	O
when	O	O
I	O	O
try	O	O
to	O	O
read	O	O
a	O	O
file	O	O
(	O	O
CSV	O	B-File_Type
,	O	O
Syslog	O	B-File_Type
,	O	O
or	O	O
any	O	O
other	O	O
wild	O	O
format	O	O
)	O	O
,	O	O
it	O	O
runs	O	O
just	O	O
fine	O	O
and	O	O
gives	O	O
me	O	O
the	O	O
right	O	O
result	O	O
.	O	O

But	O	O
when	O	O
I	O	O
try	O	O
to	O	O
run	O	O
a	O	O
file	O	O
that	O	O
was	O	O
generated	O	O
via	O	O
a	O	O
mac	O	B-Device
,	O	O
it	O	O
goes	O	O
hay-wire	O	O
and	O	O
simply	O	O
reports	O	O
back	O	O
that	O	O
a	O	O
single	O	O
line	O	O
was	O	O
read	O	O
.	O	O

Now	O	O
my	O	O
log	O	B-File_Type
file	O	O
is	O	O
large	O	O
,	O	O
I	O	O
know	O	O
that	O	O
it	O	O
has	O	O
quite	O	O
a	O	O
few	O	O
thousand	O	O
lines	O	O
of	O	O
logs	O	O
,	O	O
but	O	O
it	O	O
just	O	O
read	O	O
a	O	O
single	O	O
line	O	O
.	O	O

I	O	O
opened	O	O
this	O	O
file	O	O
in	O	O
Sublime	O	B-Application
and	O	O
I	O	O
could	O	O
see	O	O
all	O	O
the	O	O
separate	O	O
lines	O	O
,	O	O
however	O	O
when	O	O
I	O	O
viewed	O	O
this	O	O
file	O	O
via	O	O
VIM	O	B-Application
,	O	O
It	O	O
displayed	O	O
only	O	O
a	O	O
single	O	O
a	O	O
file	O	O
with	O	O
a	O	O
character	O	O
'	O	B-Value
^M	O	I-Value
'	O	B-Value
at	O	O
the	O	O
end	O	O
of	O	O
each	O	O
line	O	O
(	O	O
My	O	O
guess	O	O
it	O	O
that	O	O
it	O	O
is	O	O
using	O	O
this	O	O
as	O	O
the	O	O
line	O	O
terminator	O	O
)	O	O
.	O	O

A	O	O
sample	O	O
of	O	O
two	O	O
lines	O	O
is	O	O
below	O	O
.	O	O

You	O	O
can	O	O
see	O	O
that	O	O
vim	O	B-Application
is	O	O
displaying	O	O
the	O	O
^M	O	B-Value
character	O	O
where	O	O
it	O	O
should	O	O
have	O	O
been	O	O
a	O	O
new	O	O
line	O	O

Any	O	O
suggestion	O	O
as	O	O
to	O	O
how	O	O
to	O	O
tackle	O	O
this	O	O
problem	O	O
?	O	O

Both	O	O
line	O	O
feed	O	O
(	O	O
^J	B-Code_Block	B-Value
,	O	O
0x0a	O	B-Value
)	O	O
and	O	O
carriage	O	O
return	O	O
(	O	O
^M	B-Code_Block	B-Value
,	O	O
0x0d	O	B-Value
)	O	O
are	O	O
used	O	O
as	O	O
line	O	O
separators	O	O
;	O	O
Unix	O	B-Operating_System
uses	O	O
the	O	O
first	O	O
,	O	O
(	O	O
old	O	O
)	O	O
Mac	O	B-Device
the	O	O
latter	O	O
,	O	O
Windows	O	B-Operating_System
both	O	O
in	O	O
combination	O	O
(	O	O
CR-LF	O	B-Value
)	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
a	O	O
file	O	O
input	O	O
library	O	O
that	O	O
abstracts	O	O
this	O	O
(	O	O
and	O	O
if	O	O
you	O	O
absolutely	O	O
have	O	O
to	O	O
support	O	O
the	O	O
old	O	O
Mac	O	B-Device
format	O	O
(	O	O
as	O	O
the	O	O
new	O	O
MacOS	O	B-Operating_System
,	O	O
because	O	O
the	O	O
kernel	O	B-Application
is	O	O
Unix-based	O	B-Operating_System
,	O	O
also	O	O
uses	O	O
LF	O	B-Value
)	O	O
)	O	O
,	O	O
treat	O	O
both	O	O
LF	O	B-Value
and	O	O
CR	O	B-Value
as	O	O
a	O	O
line	O	O
separator	O	O
,	O	O
and	O	O
do	O	O
n't	O	O
count	O	O
the	O	O
CR-LF	O	B-Value
used	O	O
by	O	O
Windows	O	B-Operating_System
twice	O	O
.	O	O

Vim	O	B-Application

What	O	O
Vim	O	B-Application
detects	O	O
is	O	O
determined	O	O
by	O	O
the	O	O
'	B-Code_Block	B-Variable
fileformats	I-Code_Block	I-Variable
'	B-Code_Block	B-Variable
option	O	O
.	O	O

You	O	O
can	O	O
make	O	O
it	O	O
detect	O	O
Mac	O	B-Device
as	O	O
well	O	O
via	O	O

The	O	O
first	O	O
problem	O	O
even	O	O
before	O	O
you	O	O
get	O	O
to	O	O
line	O	O
breaks	O	O
is	O	O
that	O	O
you	O	O
're	O	O
reading	O	O
bytes	O	B-Data_Type
and	O	O
then	O	O
treating	O	O
those	O	O
as	O	O
characters	O	B-Data_Type
.	O	O

You	O	O
're	O	O
effectively	O	O
assuming	O	O
an	O	O
encoding	O	O
of	O	O
ISO-8859-1	O	O
which	O	O
may	O	O
well	O	O
not	O	O
be	O	O
correct	O	O
.	O	O

You	O	O
should	O	O
be	O	O
using	O	O
an	O	O
InputStreamReader	B-Code_Block	B-Class
instead	O	O
.	O	O

Then	O	O
there	O	O
's	O	O
the	O	O
issue	O	O
of	O	O
operating	O	O
systems	O	O
having	O	O
different	O	O
line	O	O
breaks.	O	O
.	O	O
use	O	O
BufferedReader.readLine()	B-Code_Block	B-Function
to	O	O
read	O	O
a	O	O
line	O	O
in	O	O
a	O	O
way	O	O
that	O	O
handles	O	O
line	O	O
breaks	O	O
of	O	O
\n	B-Code_Block	B-Value
,	O	O
\r	B-Code_Block	B-Value
or	O	O
\r\n	B-Code_Block	B-Value
.	O	O

So	O	O
your	O	O
code	O	O
would	O	O
become	O	O
:	O	O

So	O	O
,	O	O
I	O	O
implemented	O	O
a	O	O
protected	O	O
area	O	O
on	O	O
my	O	O
Website	O	O
(	O	O
with	O	O
umbraco	O	B-Application
)	O	O
which	O	O
has	O	O
a	O	O
Login	O	O
when	O	O
you	O	O
want	O	O
to	O	O
access	O	O
a	O	O
page	O	B-User_Interface_Element
that	O	O
normal	O	O
users	O	O
do	O	O
n't	O	O
have	O	O
access	O	O
to	O	O
.	O	O

I	O	O
am	O	O
using	O	O
the	O	O
Login	O	B-Application
Snippet	O	I-Application
and	O	O
the	O	O
Login	O	B-Application
Status	O	I-Application
Snippet	O	I-Application
Macro	O	O
that	O	O
umbraco	O	B-Application
provides	O	O
.	O	O

Like	O	O
this	O	O
:	O	O

I	O	O
am	O	O
showing	O	O
it	O	O
on	O	O
the	O	O
footer	O	B-User_Interface_Element
but	O	O
right	O	O
now	O	O
it	O	O
is	O	O
always	O	O
visible	O	O
but	O	O
I	O	O
only	O	O
want	O	O
it	O	O
to	O	O
be	O	O
visible	O	O
when	O	O
you	O	O
are	O	O
on	O	O
a	O	O
page	O	B-User_Interface_Element
that	O	O
is	O	O
protected	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
do	O	O
it	O	O
?	O	O

Thank	O	O
you	O	O
in	O	O
advance	O	O
!	O	O

I	O	O
simply	O	O
verified	O	O
if	O	O
he	O	O
is	O	O
Logged	O	O
in	O	O
or	O	O
not	O	O
.	O	O

Using	O	O
the	O	O
Umbraco	O	B-Application
Macro	O	I-Application
Snippet	O	I-Application
it	O	O
is	O	O
quite	O	O
easy	O	O
to	O	O
find	O	O
out	O	O
.	O	O

I	O	O
am	O	O
able	O	O
to	O	O
create	O	O
a	O	O
case	O	O
successfully	O	O
on	O	O
an	O	O
inbound	O	O
email	O	O
for	O	O
a	O	O
group	O	O
account	O	O
by	O	O
enable	O	O
Enable	O	O
"	O	O
Create	O	O
Case	O	O
from	O	O
Email	O	O
"	O	O
in	O	O
advance	O	O
set	O	O
up	O	O
,	O	O

Instead	O	O
of	O	O
create	O	O
a	O	O
case	O	O
,	O	O
i	O	O
want	O	O
to	O	O
create	O	O
a	O	O
record	O	O
in	O	O
custom	O	O
module	O	O
for	O	O
this	O	O
where	O	O
can	O	O
i	O	O
write	O	O
code	O	O
?	O	O

I	O	O
am	O	O
using	O	O
CE	O	B-Application
6.5.17	O	B-Version

The	O	O
easiest	O	O
way	O	O
to	O	O
do	O	O
this	O	O
is	O	O
to	O	O
create	O	O
an	O	O
after	O	O
save	O	O
logic	O	B-Library
hook	O	I-Library
on	O	O
the	O	O
Email	O	B-Class
module	O	O
where	O	O
the	O	O
other	O	O
record	O	O
can	O	O
be	O	O
created	O	O
.	O	O

Then	O	O
the	O	O
function	O	O
for	O	O
"	O	O
Create	O	O
Case	O	O
from	O	O
Email	O	O
"	O	O
can	O	O
be	O	O
left	O	O
unchecked	O	O
.	O	O

So	O	O
I	O	O
have	O	O
a	O	O
nested	O	O
div	O	B-HTML_XML_Tag
structure	O	O
and	O	O
I	O	O
would	O	O
like	O	O
to	O	O
get	O	O
the	O	O
content	O	O
of	O	O
the	O	O
second	O	O
level	O	O
.	O	O

How	O	O
should	O	O
i	O	O
do	O	O
it	O	O
with	O	O
jQuery	O	B-Library
.load	O	O
?	O	O

The	O	O
following	O	O
works	O	O
only	O	O
with	O	O
simple	O	O
divs(non-nested)..	O	B-HTML_XML_Tag
.	O	O

Ok	O	O
,	O	O
the	O	O
whole	O	O
stuff	O	O
is	O	O
:	O	O

Assuming	O	O
the	O	O
2nd	O	O
level	O	O
div	O	B-HTML_XML_Tag
has	O	O
and	O	O
id	O	B-HTML_XML_Tag

Else	O	O
change	O	O
selector	O	O
accordingly	O	O
like	O	O
you	O	O
would	O	O
normally	O	O
(	O	O
e.g	O	O
.	O	O
first	O	O
child	O	O
div	O	B-HTML_XML_Tag
of	O	O
#div_1	B-Code_Block	B-Code_Block
)	O	O

BTW	O	O
.	O	O

:	O	O
Note	O	O
this	O	O
will	O	O
only	O	O
work	O	O
for	O	O
your	O	O
own	O	O
page	O	B-User_Interface_Element
(	O	O
cross-domain	O	O
requests	O	O
are	O	O
not	O	O
supported	O	O
with	O	O
ajax	O	B-Library

Firstly	O	O
,	O	O
loading	O	O
data	O	O
with	O	O
AJAX	O	B-Function
will	O	O
only	O	O
work	O	O
if	O	O
the	O	O
page	O	O
is	O	O
on	O	O
the	O	O
same	O	O
domain	O	O
.	O	O

"	O	O
remote	O	O
site	O	O
"	O	O
indicates	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
get	O	O
stuff	O	O
from	O	O
a	O	O
different	O	O
domain	O	O
.	O	O

What	O	O
you	O	O
can	O	O
do	O	O
to	O	O
get	O	O
round	O	O
this	O	O
is	O	O
have	O	O
a	O	O
server-side	O	O
script	O	O
that	O	O
fetches	O	O
the	O	O
content	O	O
and	O	O
returns	O	O
it	O	O
.	O	O

In	O	O
PHP	O	B-Language
you	O	O
'd	O	O
want	O	O
to	O	O
use	O	O
the	O	O
cURL	O	B-Library
functions	O	O
(	O	O
there	O	O
are	O	O
plenty	O	O
of	O	O
questions	O	O
here	O	O
about	O	O
that	O	O
sort	O	O
of	O	O
thing	O	O
,	O	O
just	O	O
do	O	O
a	O	O
search	O	O
with	O	O
your	O	O
chosen	O	O
language	O	O
)	O	O
.	O	O

i	O	O
seen	O	O
some	O	O
tools	O	O
on	O	O
github	O	B-Website
and	O	O
now	O	O
vector	O	B-Class
drawables	O	I-Class
in	O	O
Lolipop	O	B-Version
allow	O	O
you	O	O
use	O	O
svg	O	B-File_Type
files	O	O
.	O	O

One	O	O
major	O	O
advantage	O	O
i	O	O
find	O	O
is	O	O
that	O	O
svg	O	B-File_Type
files	O	O
should	O	O
stretch	O	O
and	O	O
keep	O	O
proper	O	O
scaling	O	O
thus	O	O
looking	O	O
sharp	O	O
after	O	O
stretching	O	O
.	O	O

Now	O	O
with	O	O
svg	O	B-File_Type
files	O	O
i	O	O
can	O	O
keep	O	O
all	O	O
my	O	O
images	O	B-User_Interface_Element
in	O	O
the	O	O
drawable	O	O
folder	O	O
instead	O	O
of	O	O
filtering	O	O
them	O	O
out	O	O
by	O	O
density	O	O
.	O	O

This	O	O
makes	O	O
the	O	O
apk	O	B-File_Type
file	O	O
smaller	O	O
which	O	O
is	O	O
desirable	O	O
.	O	O

Question	O	O
:	O	O
Would	O	O
there	O	O
be	O	O
any	O	O
reason	O	O
i	O	O
would	O	O
not	O	O
want	O	O
to	O	O
take	O	O
my	O	O
current	O	O
PNG	O	B-File_Type
images	O	B-User_Interface_Element
in	O	O
native	O	O
android	O	B-Operating_System
project	O	O
and	O	O
convert	O	O
them	O	O
to	O	O
svg	O	B-File_Type
files	O	O
with	O	O
for	O	O
example	O	O
an	O	O
online	O	O
converter	O	O
tool	O	O
like	O	O
vector	O	B-Application
magic	O	I-Application
?	O	O

There	O	O
are	O	O
several	O	O
reasons	O	O
that	O	O
you	O	O
would	O	O
not	O	O
want	O	O
to	O	O
do	O	O
this	O	O
.	O	O

First	O	O
,	O	O
vector	O	B-Class
drawables	O	I-Class
are	O	O
only	O	O
supported	O	O
on	O	O
Android	O	B-Operating_System
5.0	O	B-Version
+	O	O
.	O	O

If	O	O
you	O	O
are	O	O
only	O	O
targeting	O	O
Lollipop	O	B-Version
and	O	O
above	O	O
,	O	O
this	O	O
wo	O	O
n't	O	O
be	O	O
an	O	O
issue	O	O
,	O	O
but	O	O
you	O	O
will	O	O
still	O	O
need	O	O
PNGs	O	B-File_Type
for	O	O
older	O	O
versions	O	O
of	O	O
Android	O	B-Operating_System
.	O	O

Second	O	O
,	O	O
converting	O	O
raster	O	O
to	O	O
vector	O	O
will	O	O
in	O	O
most	O	O
cases	O	O
yield	O	O
poor	O	O
results	O	O
.	O	O

Instead	O	O
,	O	O
you	O	O
should	O	O
start	O	O
by	O	O
creating	O	O
the	O	O
original	O	O
assets	O	O
as	O	O
vector	O	O
images	O	B-User_Interface_Element
in	O	O
a	O	O
program	O	O
like	O	O
Illustrator	O	B-Application
.	O	O

Then	O	O
export	O	O
to	O	O
SVG	O	B-File_Type
for	O	O
conversion	O	O
to	O	O
VectorDrawable	O	B-Class
format	O	O
and	O	O
export	O	O
to	O	O
PNG	O	B-File_Type
for	O	O
the	O	O
DPI	O	O
buckets	O	O
you	O	O
'd	O	O
like	O	O
to	O	O
support	O	O
on	O	O
pre-5.0	O	B-Version
devices	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
do	O	O
comparison	O	O
operators	O	O
on	O	O
my	O	O
postgresql	O	B-Library
data	O	O
.	O	O

I	O	O
have	O	O
a	O	O
range	O	O
of	O	O
data	O	O
like	O	O
this	O	O

MockTable	O	B-Variable

Each	O	O
of	O	O
the	O	O
fields	O	O
on	O	O
the	O	O
top	O	O
are	O	O
labeled	O	O
in	O	O
the	O	O
SQL	O	B-Language
server	O	B-Application
as	O	O
text	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
pull	O	O
information	O	O
like	O	O
this	O	O
.	O	O

Thus	O	O
recieving	O	O
the	O	O
1st	O	O
and	O	O
3rd	O	O
column	O	B-Data_Structure
back	O	O
.	O	O

However	O	O
I	O	O
am	O	O
not	O	O
getting	O	O
this	O	O
results	O	O
.	O	O

Input	O	O
?	O	O

If	O	O
your	O	O
column	O	B-Data_Structure
names	O	O
are	O	O
not	O	O
all-lowercase	O	O
,	O	O
you	O	O
must	O	O
specify	O	O
them	O	O
in	O	O
double	O	O
quotes	O	O
and	O	O
with	O	O
the	O	O
exact	O	O
same	O	O
capitalization	O	O
as	O	O
they	O	O
are	O	O
in	O	O
the	O	O
table	O	B-Data_Structure
:	O	O

SELECT	B-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
FROM	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
MockTable	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
WHERE	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Hours	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
>	I-Code_Block	I-Code_Block
25	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

Note	O	O
this	O	O
says	O	O
"	B-Code_Block	B-Code_Block
Hours	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
instead	O	O
of	O	O
"	B-Code_Block	B-Code_Block
HOURS	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
.	O	O

For	O	O
this	O	O
reason	O	O
,	O	O
it	O	O
's	O	O
best	O	O
to	O	O
use	O	O
all-lowercase	O	O
for	O	O
your	O	O
column	O	B-Data_Structure
and	O	O
table	O	B-Data_Structure
names	O	O
.	O	O

In	O	O
addition	O	O
,	O	O
when	O	O
using	O	O
lowercase	O	O
you	O	O
wo	O	O
n't	O	O
need	O	O
to	O	O
put	O	O
the	O	O
double-quotes	O	B-Value
around	O	O
the	O	O
column	O	B-Data_Structure
names	O	O
unless	O	O
they	O	O
are	O	O
a	O	O
reserved	O	O
word	O	O
that	O	O
might	O	O
mean	O	O
something	O	O
else	O	O
in	O	O
that	O	O
context	O	O
.	O	O

When	O	O
you	O	O
compare	O	O
numbers	O	O
as	O	O
strings	O	B-Data_Type
,	O	O
you	O	O
have	O	O
to	O	O
think	O	O
about	O	O
alphabetical	O	O
order	O	O
.	O	O

The	O	O
magnitude	O	O
of	O	O
the	O	O
number	O	O
is	O	O
meaningless	O	O
,	O	O
at	O	O
this	O	O
point	O	O
is	O	O
merely	O	O
a	O	O
word	O	O
.	O	O

So	O	O
"	O	B-Value
25	O	I-Value
"	O	I-Value
is	O	O
greater	O	O
than	O	O
"	O	B-Value
100	O	I-Value
"	O	I-Value
because	O	O
the	O	O
"	O	B-Value
2	O	I-Value
"	O	I-Value
comes	O	O
after	O	O
the	O	O
"	O	B-Value
1	O	I-Value
"	O	I-Value
in	O	O
an	O	O
alphabetical	O	O
sense	O	O
.	O	O

What	O	O
you	O	O
need	O	O
to	O	O
do	O	O
is	O	O
either	O	O
cast	O	O
your	O	O
"	O	O
Hours	O	B-Code_Block
"	O	O
field	O	O
as	O	O
integer	O	B-Data_Type
(	O	O
or	O	O
fix	O	O
that	O	O
damned	O	O
table	O	B-Data_Structure
because	O	O
numbers	O	O
in	O	O
string	O	B-Data_Type
fields	O	O
is	O	O
nasty	O	O
)	O	O
.	O	O

Obviously	O	O
,	O	O
you	O	O
are	O	O
going	O	O
to	O	O
run	O	O
into	O	O
some	O	O
difficult	O	O
problems	O	O
if	O	O
there	O	O
are	O	O
records	O	O
where	O	O
the	O	O
"	B-Code_Block	O
Hours	I-Code_Block	B-Code_Block
"	I-Code_Block	O
field	O	O
contains	O	O
non-numeric	O	O
characters	O	O
,	O	O
so	O	O
you	O	O
'll	O	O
have	O	O
to	O	O
deal	O	O
with	O	O
that	O	O
if	O	O
and	O	O
when	O	O
it	O	O
arises	O	O
.	O	O

in	O	O
my	O	O
routing.yml	O	B-File_Name

page	O	B-Variable
is	O	O
supposed	O	O
to	O	O
have	O	O
integer	O	B-Data_Type
value	O	O
.	O	O

However	O	O
,	O	O
if	O	O
you	O	O
put	O	O

it	O	O
works	O	O
.	O	O

It	O	O
's	O	O
not	O	O
big	O	O
problem	O	O
though	O	O
,	O	O
if	O	O
you	O	O
put	O	O

it	O	O
works	O	O
and	O	O
it	O	O
's	O	O
not	O	O
good	O	O
thing	O	O
for	O	O
search	O	O
crawler	O	O
.	O	O

How	O	O
can	O	O
I	O	O
set	O	O
the	O	O
{	O	O
page	O	B-Variable
}	O	O
value	O	O
restrict	O	O
to	O	O
integer	O	B-Data_Type
or	O	O
numbers	O	O
?	O	O

?	O	O

Do	O	O
it	O	O
like	O	O
this	O	O
:	O	O

I	O	O
have	O	O
the	O	O
following	O	O
toy	O	O
graph	O	B-Data_Structure
that	O	O
represents	O	O
,	O	O
for	O	O
instance	O	O
,	O	O
a	O	O
forum	O	O
thread	O	O
:	O	O

However	O	O
,	O	O
there	O	O
seems	O	O
to	O	O
be	O	O
no	O	O
layout	O	O
that	O	O
places	O	O
the	O	O
root	O	O
vertex	O	B-Data_Structure
(	O	O
id	O	B-Variable
0	O	O
,	O	B-Value
label	O	B-Variable
A	O	B-Value
)	O	O
into	O	O
the	O	O
top	O	O
and	O	O
grows	O	O
downwards	O	O
.	O	O

Am	O	O
I	O	O
missing	O	O
something	O	O
?	O	O

OK	O	O
,	O	O
I	O	O
'll	O	O
just	O	O
add	O	O
this	O	O
as	O	O
an	O	O
answer	O	O
,	O	O
for	O	O
the	O	O
comments	O	O
.	O	O

So	O	O
the	O	O
Reingold-Tilford	O	O
layout	O	O
works	O	O
:	O	O
http://igraph.sourceforge.net/doc/python/igraph.Graph-class.html#layout_reingold_tilford	O	O

I	O	O
am	O	O
writing	O	O
a	O	O
native	O	O
module	O	O
,	O	O
and	O	O
i	O	O
would	O	O
to	O	O
get	O	O
a	O	O
color	O	O
from	O	O
a	O	O
<Text	B-Code_Block	B-Code_Block
style={{color:	I-Code_Block	I-Code_Block
'blue'}}	I-Code_Block	I-Code_Block
/>	I-Code_Block	I-Code_Block
child	O	O
component	O	O
.	O	O

I	O	O
've	O	O
successfully	O	O
get	O	O
the	O	O
getHighlightColor	B-Code_Block	B-Function
that	O	O
match	O	O
with	O	O
the	O	O
<Text	B-Code_Block	B-Code_Block
selectionColor='red'></Text>,	I-Code_Block	I-Code_Block
but	O	O
i	O	O
don't	O	O
know	O	O
how	O	O
to	O	O
get	O	O
a	O	O
color	O	O
from	O	O
a	O	O
style	O	O
prop	O	O
<Text	B-Code_Block	B-Code_Block
style={{color:	I-Code_Block	I-Code_Block
'blue'}}></Text>	I-Code_Block	I-Code_Block
,	O	O
i	O	O
believe	O	O
that	O	O
it	O	O
supposed	O	O
to	O	O
be	O	O
on	O	O
getCurrentTextColor	B-Code_Block	B-Function
,	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
.	O	O

I	O	O
am	O	O
also	O	O
not	O	O
be	O	O
able	O	O
to	O	O
setTextColor	B-Code_Block	B-Function
that	O	O
has	O	O
a	O	O
fixed	O	O
style	O	O
color	O	O
prop	O	O
on	O	O
react	O	O
.	O	O

Let	O	O
me	O	O
post	O	O
some	O	O
snippets	O	O
to	O	O
give	O	O
a	O	O
better	O	O
understand	O	O
of	O	O
what	O	O
i	O	O
am	O	O
talking	O	O
about	O	O
.	O	O

SomeComponent.js	O	B-File_Name

How	O	O
to	O	O
get	O	O
those	O	O
styles	O	O
properties	O	O
on	O	O
the	O	O
native	O	O
side	O	O
?	O	O

How	O	O
exactly	O	O
react-native	O	B-Library
deals	O	O
with	O	O
TextView	O	B-Class
and	O	O
StyleSheets	O	B-Class
?	O	O

I	O	O
have	O	O
made	O	O
a	O	O
dmg	O	B-File_Type
file	O	O
for	O	O
my	O	O
uploader	O	O
desktop	O	B-Device
application	O	O
.	O	O

This	O	O
dmg	O	B-File_Type
is	O	O
ported	O	O
on	O	O
my	O	O
website	O	O
from	O	O
where	O	O
i	O	O
download	O	O
the	O	O
same	O	O
using	O	O
the	O	O
Safari	O	B-Application
Browser	O	I-Application
.	O	O

However	O	O
,	O	O
when	O	O
i	O	O
try	O	O
to	O	O
execute	O	O
it	O	O
from	O	O
the	O	O
downloads	O	B-File_Name
folder	O	O
,	O	O
the	O	O
system	O	O
does	O	O
not	O	O
execute	O	O
it	O	O
and	O	O
throws	O	O
a	O	O
message	O	O
stating	O	O
its	O	O
from	O	O
an	O	O
unidentified	O	O
developer	O	O
.	O	O

Hence	O	O
,	O	O
in	O	O
Security	O	O
&	O	O
Privacy	O	O
settings	O	O
,	O	O
i	O	O
opted	O	O
to	O	O
allow	O	O
download	O	O
.	O	O

I	O	O
cannot	O	O
expect	O	O
all	O	O
the	O	O
users	O	O
to	O	O
do	O	O
this	O	O
setting	O	O
.	O	O

What	O	O
modifications	O	O
do	O	O
i	O	O
need	O	O
to	O	O
do	O	O
inorder	O	O
to	O	O
make	O	O
the	O	O
dmg	O	B-File_Type
to	O	O
run	O	O
without	O	O
any	O	O
such	O	O
errors/warnings	O	O
.	O	O

I	O	O
am	O	O
a	O	O
novice	O	O
at	O	O
this	O	O
,	O	O
kindly	O	O
requesting	O	O
for	O	O
some	O	O
help	O	O
.	O	O

Thanks	O	O
.	O	O

You	O	O
can	O	O
install	O	O
an	O	O
unverified	O	O
app	O	O
on	O	O
mac	O	B-Device
by	O	O
right-clicking	O	O
the	O	O
DMG	O	B-File_Type
and	O	O
selecting	O	O
open	O	O
,	O	O
this	O	O
will	O	O
pop	O	O
up	O	O
a	O	O
warning	O	O
but	O	O
as	O	O
opposed	O	O
to	O	O
doubled	O	O
clicking	O	O
,	O	O
there	O	O
is	O	O
an	O	O
option	O	O
to	O	O
continue	O	O
.	O	O

See	O	O
this	O	O
article	O	O
for	O	O
screenshots	O	O
-	O	O
http://osxdaily.com/2012/07/27/app-cant-be-opened-because-it-is-from-an-unidentified-developer/	O	O

The	O	O
only	O	O
other	O	O
option	O	O
is	O	O
to	O	O
pay	O	O
Apple	O	B-Website
to	O	O
become	O	O
a	O	O
verified	O	O
developer	O	O
,	O	O
and	O	O
then	O	O
have	O	O
your	O	O
app	O	O
reviewed	O	O
and	O	O
added	O	O
to	O	O
the	O	O
Mac	O	B-Device
app	O	O
store	O	O
.	O	O

When	O	O
I	O	O
send	O	O
a	O	O
GET	O	O
request	O	O
in	O	O
POSTMAN	O	B-Application
to	O	O
get	O	O
all	O	O
my	O	O
child	O	O
entity	O	O
(	O	O
Town	O	B-Class
)	O	O
the	O	O
parent	O	O
entity	O	O
(	O	O
Province	O	B-Class
)	O	O
is	O	O
not	O	O
shown	O	O
in	O	O
the	O	O
JSON	O	B-Data_Type
response	O	O
.	O	O

This	O	O
is	O	O
my	O	O
controller	O	O
.	O	O

And	O	O
these	O	O
are	O	O
my	O	O
entities	O	O
.	O	O

Parent	O	O
Class	O	O

Child	O	O
Class	O	O

The	O	O
response	O	O
that	O	O
I	O	O
'm	O	O
getting	O	O
is	O	O
like	O	O
this	O	O

What	O	O
I	O	O
'm	O	O
expecting	O	O
is	O	O

I	O	O
was	O	O
able	O	O
to	O	O
show	O	O
something	O	O
like	O	O
this	O	O
,	O	O
but	O	O
the	O	O
Objects	O	O
that	O	O
I	O	O
used	O	O
are	O	O
not	O	O
Spring-data-jpa	O	B-Library
entities	O	O
,	O	O
just	O	O
simple	O	O
POJOs	O	B-Data_Type
.	O	O

Is	O	O
there	O	O
any	O	O
problem	O	O
with	O	O
my	O	O
Entities	O	O
?	O	O

Or	O	O
is	O	O
there	O	O
anything	O	O
else	O	O
?	O	O

Swap	O	O
@JsonBackReference	B-Code_Block	B-Class
and	O	O
@JsonManagedReference	B-Code_Block	B-Class
.	O	O

Basically	O	O
:	O	O

I	O	O
want	O	O
to	O	O
create	O	O
256	O	O
functions	O	O
that	O	O
do	O	O
the	O	O
same	O	O
thing	O	O

Basically	O	O
I	O	O
want	O	O
a	O	O
function	O	O
that	O	O
is	O	O
able	O	O
to	O	O
be	O	O
called	O	O
case-insensitively	O	O
.	O	O

Example	O	O
:	O	O
I	O	O
want	O	O
applepie()	B-Code_Block	B-Function
to	O	O
be	O	O
able	O	O
to	O	O
called	O	O
case-insensitively	O	O
:	O	O

The	O	O
most	O	O
straightforward	O	O
approach	O	O
is	O	O
to	O	O
declare	O	O
another	O	O
255	O	O
functions	O	O
with	O	O
some	O	O
letter	O	O
in	O	O
caps	O	O
:	O	O

and	O	O

.	O	O
.	O	O

all	O	O
the	O	O
way	O	O
to	O	O

There	O	O
are	O	O
in	O	O
total	O	O
256	O	O
(	O	O
2	O	O
to	O	O
the	O	O
power	O	O
of	O	O
8	O	O
)	O	O
of	O	O
them	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
do	O	O
it	O	O
quickly	O	O
?	O	O

Or	O	O
is	O	O
there	O	O
a	O	O
more	O	O
"	O	O
built-in	O	O
"	O	O
approach	O	O
like	O	O

or	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
do	O	O
it	O	O
like	O	O

that	O	O
can	O	O
passes	O	O
all	O	O
the	O	O
parameters	O	O
to	O	O
applepie	O	B-Function
instead	O	O
of	O	O
using	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
for	B-Code_Block	B-Code_Block
B	I-Code_Block	I-Code_Block
in	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
$@	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
?	O	O

You	O	O
can	O	O
fake	O	O
a	O	O
case-insensitive	O	O
function	O	O
name	O	O
by	O	O
defining	O	O
all-lowercase	O	O
function	O	O
names	O	O
and	O	O
using	O	O
bash	B-Code_Block	B-Language
's	O	O
trap	O	O
for	O	O
missing	O	O
command	O	O
names	O	O
(	O	O
requires	O	O
bash	B-Code_Block	B-Language
4	O	B-Version
,	O	O
which	O	O
you	O	O
would	O	O
need	O	O
to	O	O
install	O	O
yourself	O	O
on	O	O
OS	O	B-Operating_System
X	O	I-Operating_System
)	O	O
:	O	O

So	O	O
if	O	O
apple	B-Code_Block	B-Function
is	O	O
a	O	O
function	O	O
,	O	O
but	O	O
you	O	O
try	O	O
to	O	O
call	O	O
it	O	O
as	O	O
ApPlE	B-Code_Block	B-Code_Block
,	O	O
command_not_found_handle	B-Code_Block	B-Function
is	O	O
called	O	O
with	O	O
the	O	O
command	O	O
as	O	O
the	O	O
arguments	O	O
.	O	O

The	O	O
first	O	O
line	O	O
takes	O	O
the	O	O
first	O	O
argument	O	O
(	O	O
ApPlE	B-Code_Block	B-Code_Block
)	O	O
and	O	O
lower-cases	O	O
it	O	O
.	O	O

Then	O	O
it	O	O
attempts	O	O
to	O	O
run	O	O
apple	B-Code_Block	B-Code_Block
with	O	O
the	O	O
original	O	O
arguments	O	O
.	O	O

This	O	O
is	O	O
a	O	O
pretty	O	O
obtuse	O	O
answer	O	O
,	O	O
and	O	O
definitely	O	O
not	O	O
a	O	O
one-liner	O	O
,	O	O
but	O	O
here	O	O
is	O	O
how	O	O
it	O	O
can	O	O
be	O	O
done	O	O
in	O	O
bash	O	B-Language
,	O	O
with	O	O
a	O	O
little	O	O
help	O	O
from	O	O
bc	B-Code_Block	B-Code_Block
and	O	O
tr	B-Code_Block	B-Code_Block
(	O	O
works	O	O
on	O	O
osx	O	B-Operating_System
)	O	O
:	O	O

This	O	O
does	O	O
the	O	O
following	O	O
;	O	O

gets	O	O
the	O	O
length	O	O
of	O	O
the	O	O
function	O	O
name	O	O

figures	O	O
out	O	O
number	O	O
of	O	O
case	O	O
combinations	O	O
(	O	O
2^n	O	O
)	O	O

loops	O	O
over	O	O
each	O	O
combination	O	O

turns	O	O
the	O	O
combination	O	O
number	O	O
into	O	O
a	O	O
string	O	B-Data_Type
of	O	O
binary	O	O
digits	O	O

Fiddles	O	O
the	O	O
string	O	B-Data_Type
of	O	O
binary	O	O
digits	O	O
so	O	O
it	O	O
is	O	O
the	O	O
same	O	O
length	O	O
as	O	O
the	O	O
function	O	O
name	O	O

indexes	O	O
through	O	O
each	O	O
char	O	B-Data_Type
of	O	O
the	O	O
function	O	O
name	O	O
and	O	O
string	O	B-Data_Type
of	O	O
binary	O	O
digits	O	O
and	O	O
does	O	O
a	O	O
toupper()	O	B-Function
case	O	O
change	O	O
only	O	O
if	O	O
the	O	O
corresponding	O	O
binary	O	O
digit	O	O
is	O	O
1	O	B-Value

reassembles	O	O
the	O	O
chars	O	B-Data_Type
to	O	O
a	O	O
string	O	B-Data_Type

does	O	O
a	O	O
bash	O	B-Language
alias	O	O
from	O	O
each	O	O
combination	O	O
to	O	O
the	O	O
function	O	O
name	O	O

Assumes	O	O
the	O	O
function	O	O
is	O	O
defined	O	O
,	O	O
and	O	O
has	O	O
an	O	O
all-lowercase	O	O
name	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
invoke	O	O
the	O	O
Restful	O	B-Library
Web	O	I-Library
services	O	O
using	O	O
Spring	O	B-Library
.	O	O

I	O	O
searched	O	O
a	O	O
lot	O	O
and	O	O
was	O	O
able	O	O
to	O	O
make	O	O
a	O	O
restful	O	O
service	O	O
using	O	O
different	O	O
annotations	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
piece	O	O
of	O	O
code	O	O
:	O	O
-	O	O

I	O	O
had	O	O
a	O	O
web.xml	O	B-File_Name
+	O	O
(	O	B-File_Name
name	O	I-File_Name
)	O	I-File_Name
-servlet.xml	O	B-File_Name

Above	O	O
example	O	O
has	O	O
just	O	O
one	O	O
method	O	O
and	O	O
that	O	O
method	O	O
is	O	O
mapped	O	O
to	O	O
a	O	O
url	O	O
.	O	O

Now	O	O
what	O	O
I	O	O
want	O	O
is	O	O
not	O	O
to	O	O
use	O	O
annotations	O	O
at	O	O
all	O	O
in	O	O
a	O	O
java	O	B-Language
class	O	O
.	O	O

So	O	O
,	O	O
is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
make	O	O
rest	O	O
services	O	O
without	O	O
using	O	O
annotations	O	O
?	O	O

How	O	O
can	O	O
I	O	O
configure	O	O
all	O	O
the	O	O
annotations	O	O
in	O	O
an	O	O
XML	O	B-File_Type
file	O	O
and	O	O
their	O	O
(	O	O
all	O	O
methods	O	O
in	O	O
a	O	O
java	O	B-Language
class	O	O
)	O	O
corresponding	O	O
URL	O	O
's	O	O
?	O	O

I	O	O
am	O	O
new	O	O
to	O	O
spring	O	B-Library
mvc	O	I-Library
and	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
display	O	O
an	O	O
image	O	B-User_Interface_Element
on	O	O
JSP	O	B-Library
.	O	O

My	O	O
image	O	B-User_Interface_Element
file	O	O
is	O	O
located	O	O
at	O	O

MyApp/WebContent/images/logo.jpg	O	B-File_Name

And	O	O
my	O	O
JSP	O	B-Library
pages	O	O
are	O	O
located	O	O
at	O	O

MyApp/WebContent/WEB-INF/view/home.jsp	O	B-File_Name

I	O	O
have	O	O
already	O	O
tried	O	O
to	O	O
use	O	O

<'img	O	B-Code_Block
src="<%=request.getContextPath()%>	O	I-Code_Block
/images/logo.jpg	O	I-Code_Block
"	O	I-Code_Block
/	O	I-Code_Block
>and	O	I-Code_Block

<'img	O	B-Code_Block
src="<'c:url	O	I-Code_Block
value='<%=request.getContextPath()%>/images/logo.jpg'>	O	I-Code_Block

Is	O	O
it	O	O
because	O	O
my	O	O
webapp	O	B-Application
hierarchy	O	O
is	O	O
not	O	O
like	O	O

MyApp	O	B-File_Name
\src\main\webapp\images\logo.jpg	O	I-File_Name

MyApp	O	B-File_Name
\src\main\webapp\web-inf\views\home.jsp	O	I-File_Name
??	O	O
?	O	O

Really	O	O
appreciate	O	O
your	O	O
help	O	O
.	O	O

Thank	O	O
you	O	O
.	O	O

UPDATE	O	O
:	O	O
I	O	O
've	O	O
found	O	O
the	O	O
solution	O	O
to	O	O
my	O	O
problem	O	O
.	O	O

http://www.tutorialspoint.com/spring/spring_static_pages_example.htm	O	O

I	O	O
just	O	O
have	O	O
to	O	O
use	O	O
resource	O	O
mapping	O	O
in	O	O
my	O	O
servlet.xml	O	B-File_Name
.	O	O

I	O	O
really	O	O
appreciate	O	O
all	O	O
of	O	O
your	O	O
kind	O	O
answers	O	O
.	O	O

:)	O	O

try	O	O

Even	O	O
though	O	O
it	O	O
is	O	O
a	O	O
Spring	O	B-Library
MVC	O	I-Library
app	O	O
,	O	O
it	O	O
should	O	O
still	O	O
deploy	O	O
as	O	O
a	O	O
normal	O	O
webapp	O	B-Application
.	O	O

Check	O	O
your	O	O
deployment	O	O
to	O	O
make	O	O
sure	O	O
,	O	O
and	O	O
also	O	O
use	O	O
the	O	O
browser	O	B-Application
to	O	O
test	O	O
loading	O	O
.	O	O

Any	O	O
static	O	O
resource	O	O
is	O	O
also	O	O
look	O	O
for	O	O
a	O	O
URL	O	O
Mapping	O	O
in	O	O
spring	O	B-Library
mvc	O	I-Library
,	O	O
so	O	O
static	O	O
resources	O	O
should	O	O
be	O	O
defined	O	O
in	O	O
the	O	O
springmvc-servlet.xml	B-Code_Block	B-File_Name
.	O	O

Add	O	O
the	O	O
following	O	O
entry	O	O
to	O	O
your	O	O
MVC	O	B-Algorithm
configuration	O	O
.	O	O

I	O	O
assume	O	O
that	O	O
your	O	O
static	O	O
files	O	O
in	O	O
resources	B-Code_Block	B-File_Name
folder	O	O
.	O	O

then	O	O
static	O	O
files	O	O
can	O	O
be	O	O
accessible	O	O
from	O	O
the	O	O
page	O	O
.	O	O

I	O	O
am	O	O
using	O	O
a	O	O
for	O	O
statement	O	O
to	O	O
enumerate	O	O
all	O	O
objects	O	O
in	O	O
the	O	O
array	O	B-Data_Structure
.	O	O

For	O	O
each	O	O
object	O	O
in	O	O
the	O	O
array	O	B-Data_Structure
I	O	O
want	O	O
to	O	O
make	O	O
it	O	O
so	O	O
that	O	O
it	O	O
creates	O	O
a	O	O
different	O	O
object	O	O
each	O	O
time	O	O
so	O	O
i	O	O
can	O	O
refer	O	O
to	O	O
different	O	O
ones	O	O
e.g	O	O
.	O	O
there	O	O
are	O	O
5	O	O
string	O	B-Data_Type
objects	O	O
in	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

I	O	O
use	O	O
the	O	O
for	O	O
statement	O	O
to	O	O
enumerate	O	O
each	O	O
object	O	O
and	O	O
each	O	O
time	O	O
i	O	O
want	O	O
to	O	O
create	O	O
an	O	O
nsmutablestring	O	B-Class
that	O	O
contains	O	O
the	O	O
text	O	O
@	O	O
"	O	O
hello	O	O
"	O	O

In	O	O
case	O	O
you	O	O
did	O	O
not	O	O
understand	O	O
here	O	O
is	O	O
it	O	O
briefly	O	O
...	O	O
.	O	O

In	O	O
an	O	O
array	O	B-Data_Structure
-	O	O
5	O	O
objects	O	O

enumerate	O	O
the	O	O
array	O	B-Data_Structure
and	O	O
create	O	O
a	O	O
new	O	O
object	O	O
each	O	O
time	O	O
with	O	O
a	O	O
separate	O	O
name	O	O
so	O	O
i	O	O
can	O	O
refer	O	O
to	O	O
it	O	O
:	O	O
object1	O	B-Variable
object2	O	I-Variable
object3	O	I-Variable
object4	O	I-Variable
object5	O	I-Variable

Update	O	O
:	O	O

By	O	O
array	O	O
i	O	O
mean	O	O
NSArray	O	B-Class

my	O	O
problem	O	O
is	O	O
that	O	O
it	O	O
I	O	O
'm	O	O
adding	O	O
uiimageview	O	B-Class
..	O	O
.	O	O

Do	O	O
n't	O	O
use	O	O
a	O	O
for	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
..	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
in	I-Code_Block	I-Code_Block
..	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
,	O	O
use	O	O
just	O	O
a	O	O
standard	O	O
for	O	O
:	O	O

EDIT	O	O
:	O	O
Updated	O	O
for	O	O
comment	O	O
below	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
to	O	O
get	O	O
your	O	O
question	O	O
..	O	O
.	O	O

Array	O	B-Data_Structure
objects	O	O
are	O	O
already	O	O
uniquely	O	O
identified	O	O
by	O	O
their	O	O
index	O	O
.	O	O

Why	O	O
do	O	O
you	O	O
need	O	O
different	O	O
names	O	O
(	O	O
NSString	O	B-Class
*	O	B-Data_Type
pointers	O	I-Data_Type
)	O	O
??	O	O
?	O	O

This	O	O
could	O	O
be	O	O
relevant	O	O
in	O	O
the	O	O
case	O	O
when	O	O
you	O	O
already	O	O
know	O	O
how	O	O
many	O	O
strings	O	B-Data_Type
there	O	O
are	O	O
in	O	O
this	O	O
array	O	B-Data_Structure
,	O	O
and	O	O
what	O	O
each	O	O
of	O	O
them	O	O
represent	O	O
.	O	O

(	O	O
for	O	O
example	O	O
,	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
strings	O	B-Data_Type
representing	O	O
some	O	O
configuration	O	O
parameters	O	O
for	O	O
a	O	O
programm	O	O
..	O	O
.	O	O
if	O	O
anyone	O	O
thinks	O	O
of	O	O
a	O	O
better	O	O
example	O	O
:)	O	O

In	O	O
this	O	O
case	O	O
,	O	O
if	O	O
you	O	O
want	O	O
to	O	O
have	O	O
a	O	O
clear	O	O
and	O	O
distinct	O	O
way	O	O
to	O	O
access	O	O
each	O	O
member	O	O
of	O	O
an	O	O
array	O	B-Data_Structure
,	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
different	O	O
pointer	O	B-Data_Type
names	O	O
,	O	O
just	O	O
use	O	O
int	O	O
constants	O	O
for	O	O
indexes	O	O
of	O	O
the	O	O
array	O	B-Data_Structure
-	O	O
(	O	O
declared	O	O
in	O	O
C	O	B-Language
macros	O	O
,	O	O
or	O	O
in	O	O
an	O	O
enum	O	O
for	O	O
example	O	O
)	O	O

I	O	O
've	O	O
UICollectionView	O	B-Class
inside	O	O
UITableView	O	B-Class
that	O	O
only	O	O
present	O	O
photos	O	B-User_Interface_Element
.	O	O

it	O	O
works	O	O
fine	O	O
on	O	O
iOS	O	B-Operating_System
9	O	B-Version

But	O	O
in	O	O
iOS	O	B-Operating_System
10	O	B-Version
,	O	O
photos	O	B-User_Interface_Element
not	O	O
appearing	O	O
until	O	O
I	O	O
tap	O	O
on	O	O
cell	O	B-User_Interface_Element
that	O	O
holds	O	O
collection	O	B-Class
view	O	I-Class
.	O	O

I	O	O
tried	O	O
setPrefetchingEnabled	O	B-Code_Block
=	O	I-Code_Block
NO	O	I-Code_Block
but	O	O
still	O	O
not	O	O
appearing	O	O

any	O	O
suggestion	O	O
?	O	O

Thank	O	O
you	O	O

I	O	O
have	O	O
2	O	O
labels	O	B-User_Interface_Element
with	O	O
text	O	B-User_Interface_Element
as	O	O

How	O	O
can	O	O
I	O	O
vertically	O	O
align	O	O
two	O	O
UILabels	B-Code_Block	B-Class
text	O	O
to	O	O
achieve	O	O
like	O	O
below	O	O
(	O	O
i.e	O	O
to	O	O
make	O	O
the	O	O
labels	O	B-User_Interface_Element
text	O	I-User_Interface_Element
align	O	O
vertically	O	O
at	O	O
colon	O	B-Value
)	O	O
.	O	O

I	O	O
know	O	O
that	O	O
it	O	O
is	O	O
possible	O	O
with	O	O
4	O	O
different	O	O
labels	O	B-User_Interface_Element
.	O	O

First	O	O
Label1	O	B-Variable
:	O	O
amount	O	O
label1	O	B-Variable

Second	O	O
Label2	O	B-Variable
:	O	O
amount	O	O
Label2	O	B-Variable

But	O	O
,	O	O
what	O	O
i	O	O
need	O	O
is	O	O
to	O	O
achieve	O	O
them	O	O
in	O	O
2	O	O
labels	O	B-User_Interface_Element
only	O	O

and	O	O
align	O	O
vertically	O	O
at	O	O
colon	O	B-Value

This	O	O
can	O	O
be	O	O
accomplished	O	O
by	O	O
using	O	O
AutoLayout	O	B-Class
.	O	O

You	O	O
will	O	O
need	O	O
4	O	O
labels	O	B-Variable
:	O	O

Title	O	B-Variable
Labels	O	I-Variable

'	O	O
First	O	B-Output_Block
Value	O	I-Output_Block
'	O	B-Output_Block
(	O	O
Right	O	O
Aligned	O	O
)	O	O

'	O	B-Output_Block
Second	O	I-Output_Block
Value	O	I-Output_Block
'	O	O
(	O	O
Right	O	O
Aligned	O	O
)	O	O

Value	O	B-Variable
Labels	O	I-Variable

'	O	O
:1	O	B-Output_Block
,	O	I-Output_Block
000	O	I-Output_Block
'	O	B-Output_Block
(	O	O
Left	O	O
Aligned	O	O
)	O	O

'	O	B-Output_Block
:100	O	I-Output_Block
'	O	I-Output_Block
(	O	O
Left	O	O
Aligned	O	O
)	O	O

You	O	O
will	O	O
need	O	O
to	O	O
pin	O	O
both	O	O
title	O	O
labels	O	B-User_Interface_Element
to	O	O
have	O	O
equal	O	O
widths	O	B-Variable
and	O	O
you	O	O
will	O	O
need	O	O
to	O	O
pin	O	O
both	O	O
value	O	B-Variable
labels	O	B-User_Interface_Element
to	O	O
have	O	O
equal	O	O
widths	O	B-Variable
.	O	O

You	O	O
will	O	O
also	O	O
need	O	O
to	O	O
set	O	O
constraints	O	O
for	O	O
horizontal	O	O
spacing	O	O
between	O	O
both	O	O
title	O	B-Variable
and	O	O
value	O	B-Variable
.	O	O

To	O	O
ensure	O	O
that	O	O
the	O	O
spacing	O	O
is	O	O
always	O	O
equal	O	O
between	O	O
rows	O	B-User_Interface_Element
.	O	O

In	O	O
code	O	O
when	O	O
you	O	O
set	O	O
the	O	O
value	O	O
of	O	O
your	O	O
label	O	B-User_Interface_Element
,	O	O
you	O	O
will	O	O
need	O	O
to	O	O
make	O	O
sure	O	O
that	O	O
the	O	O
colon	O	B-Value
symbol	O	O
is	O	O
part	O	O
of	O	O
the	O	O
value	O	B-Variable
.	O	O

E.g	O	O
.	O	O

[	B-Code_Block	B-Code_Block
NSString	I-Code_Block	I-Code_Block
stringwithFormat	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
@	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
:%d	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
value	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
;	B-Code_Block	B-Code_Block

This	O	O
image	O	B-User_Interface_Element
illustrates	O	O
the	O	O
constraints	O	O
required	O	O
:	O	O

Using	O	O
Autolayout	O	O
place	O	O
the	O	O
two	O	O
labels	O	B-User_Interface_Element
in	O	O
the	O	O
UIView	O	B-Class
and	O	O
then	O	O
align	O	O
the	O	O
view	O	O
to	O	O
align	O	O
centre	O	O
in	O	O
the	O	O
horizontal	O	O
and	O	O
use	O	O
vertical	O	O
spacing	O	O
between	O	O
the	O	O
views	O	O
..	O	O
.	O	O
as	O	O

The	O	O
correct	O	O
approach	O	O
is	O	O
to	O	O
use	O	O
a	O	O
container	O	B-User_Interface_Element
view	O	O
,	O	O
which	O	O
derives	O	O
its	O	O
height	O	O
from	O	O
its	O	O
subviews	O	O
.	O	O

The	O	O
container	O	B-User_Interface_Element
view	O	O
is	O	O
then	O	O
pinned	O	O
to	O	O
the	O	O
centre	O	O
of	O	O
the	O	O
cell	O	B-User_Interface_Element
-	O	O
you	O	O
would	O	O
n't	O	O
have	O	O
any	O	O
constraints	O	O
linking	O	O
the	O	O
container	O	B-User_Interface_Element
to	O	O
the	O	O
top	O	O
and	O	O
bottom	O	O
edges	O	O
of	O	O
the	O	O
cell	O	B-User_Interface_Element
.	O	O

Within	O	O
the	O	O
container	O	B-User_Interface_Element
,	O	O
the	O	O
vertical	O	O
constraints	O	O
would	O	O
be	O	O
|[label1]-[label2]|	O	B-Variable
,	O	O
which	O	O
would	O	O
make	O	O
the	O	O
container	O	B-User_Interface_Element
the	O	O
height	O	O
of	O	O
the	O	O
two	O	O
labels	O	B-User_Interface_Element
plus	O	O
the	O	O
space	O	O
,	O	O
and	O	O
the	O	O
centre	O	O
of	O	O
the	O	O
container	O	B-User_Interface_Element
view	O	O
would	O	O
be	O	O
between	O	O
the	O	O
two	O	O
labels	O	B-User_Interface_Element
.	O	O

I	O	O
have	O	O
a	O	O
"	O	O
hard	O	O
to	O	O
read	O	O
"	O	O
crashlytics	O	B-Application
log	O	O
in	O	O
a	O	O
live	O	O
Xamarin	O	B-Application
iOS	O	I-Application
app	O	O
.	O	O

This	O	O
issue	O	O
affects	O	O
almost	O	O
80%	O	O
of	O	O
the	O	O
users	O	O
and	O	O
I	O	O
am	O	O
struggling	O	O
to	O	O
decipher	O	O
it	O	O
.	O	O

Please	O	O
have	O	O
a	O	O
look	O	O
at	O	O
the	O	O
log	O	B-File_Type
in	O	O
this	O	O
gist	O	B-Website

I	O	O
have	O	O
uploaded	O	O
the	O	O
dSYM	O	B-File_Type
file	O	O
in	O	O
the	O	O
Crashlytics	O	B-Application
dashboard	O	B-User_Interface_Element
but	O	O
the	O	O
log	O	B-File_Type
remains	O	O
the	O	O
same	O	O
.	O	O

Is	O	O
it	O	O
normal	O	O
for	O	O
a	O	O
Xamarin	O	B-Application
App	O	O
this	O	O
type	O	O
of	O	O
log	O	B-File_Type
?	O	O

I	O	O
do	O	O
not	O	O
even	O	O
know	O	O
what	O	O
source	O	O
file	O	O
of	O	O
the	O	O
app	O	O
causes	O	O
the	O	O
crash	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
code	O	O
in	O	O
AppDelegate.cs	O	B-File_Name
:	O	O

and	O	O
the	O	O
following	O	O
methods	O	O
:	O	O

Am	O	O
I	O	O
missing	O	O
something	O	O
on	O	O
Fabric	O	B-Application
configuration	O	O
here	O	O
?	O	O

Please	O	O
i	O	O
need	O	O
some	O	O
help	O	O
,	O	O
i	O	O
use	O	O
Amazon	O	B-Application
S3	O	I-Application
Bucket	O	O
to	O	O
store	O	O
our	O	O
video	O	O
and	O	O
use	O	O
Amazon	O	B-Application
CloudFront	O	I-Application
to	O	O
stream	O	O
the	O	O
video	O	B-User_Interface_Element
files	O	O
,	O	O
but	O	O
i	O	O
want	O	O
a	O	O
way	O	O
to	O	O
be	O	O
able	O	O
to	O	O
schedule	O	O
different	O	O
video	O	B-User_Interface_Element
to	O	O
play	O	O
based	O	O
on	O	O
specific	O	O
time	O	O
of	O	O
the	O	O
day	O	O
and	O	O
end	O	O
at	O	O
a	O	O
specific	O	O
time	O	O
of	O	O
the	O	O
day	O	O
.	O	O

We	O	O
just	O	O
want	O	O
to	O	O
schedule	O	O
video	O	B-User_Interface_Element
play	O	O
on	O	O
cloudfront	O	B-Application
stream	O	O
,	O	O
and	O	O
play	O	O
multiple	O	O
and	O	O
different	O	O
videos	O	B-User_Interface_Element
at	O	O
different	O	O
time	O	O
based	O	O
on	O	O
our	O	O
time	O	O
zone	O	O
.	O	O

So	O	O
far	O	O
we	O	O
have	O	O
set	O	O
up	O	O
Amazon	O	B-Application
S3	O	I-Application
bucket	O	O
,	O	O
Amazon	O	B-Application
EC2	O	I-Application
instance	O	O
and	O	O
Amazon	O	B-Application
CloudFront	O	I-Application
for	O	O
video	O	B-User_Interface_Element
streaming	O	O
.	O	O

We	O	O
need	O	O
solution	O	O
on	O	O
how	O	O
we	O	O
can	O	O
schedule	O	O
videos	O	B-User_Interface_Element
that	O	O
play	O	O
through	O	O
CloudFront	O	B-Application
RTMP	O	O
or	O	O
http	O	O
.	O	O

Thanks	O	O
in	O	O
Advance	O	O

I	O	O
've	O	O
defined	O	O
some	O	O
properties	O	O
in	O	O
a	O	O
controller	O	B-Class
for	O	O
a	O	O
pagination	O	O
:	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
access	O	O
limit	B-Code_Block	B-Code_Block
in	O	O
the	O	O
Route	O	B-Class
's	O	O
model-function	B-Code_Block	B-Function
but	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
.	O	O

Maybe	O	O
you	O	O
should	O	O
take	O	O
a	O	O
look	O	O
at	O	O
the	O	O
queryParams	O	B-Variable
option	O	O
(	O	O
http://emberjs.com/guides/routing/query-params/	O	O
)	O	O
.	O	O

With	O	O
query	O	B-Variable
params	O	I-Variable
you	O	O
can	O	O
set	O	O
the	O	O
limit	O	B-Code_Block
to	O	O
be	O	O
a	O	O
query	O	B-Variable
param	O	I-Variable
in	O	O
your	O	O
URL	O	O
like	O	O
http://yourdomain.com/someroute?limit=15	B-Code_Block	B-Code_Block
.	O	O

Your	O	O
controller	O	B-Class
will	O	O
become	O	O
:	O	O

You	O	O
route	O	B-Class
will	O	O
become	O	O
:	O	O

Alternative	O	O
:	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
use	O	O
query	O	B-Variable
params	O	I-Variable
,	O	O
another	O	O
solution	O	O
might	O	O
be	O	O
to	O	O
define	O	O
the	O	O
limit	O	O
property	O	O
in	O	O
one	O	O
of	O	O
the	O	O
parent	O	O
route	O	B-Class
's	O	O
controller	O	I-Class
.	O	O

By	O	O
doing	O	O
so	O	O
you	O	O
can	O	O
access	O	O
the	O	O
property	O	O
in	O	O
the	O	O
model	O	B-Function
hook	O	O
by	O	O
doing	O	O
:	O	O

My	O	O
main	O	O
concern	O	O
is	O	O
to	O	O
check	O	O
the	O	O
available	O	O
quantity	O	O
of	O	O
a	O	O
particular	O	O
product	O	O
from	O	O
database	O	O
and	O	O
compare	O	O
that	O	O
with	O	O
the	O	O
Cart	O	B-Class
item	O	O
which	O	O
saved	O	O
in	O	O
session	O	O
I	O	O
guess	O	O
.	O	O

I	O	O
am	O	O
getting	O	O
the	O	O
"	O	O
$id	O	B-Variable
"	O	O
from	O	O
a	O	O
DB	O	O
product	O	O
and	O	O
adding	O	O
it	O	O
to	O	O
Cart	O	B-Class
.	O	O

But	O	O
I	O	O
also	O	O
need	O	O
to	O	O
check	O	O
the	O	O
available	O	O
quantity	O	O
to	O	O
control	O	O
the	O	O
increase	O	O
of	O	O
"	O	O
qty	O	B-Variable
"	O	O
from	O	O
Cart	O	B-Class
.	O	O

So	O	O
far	O	O
I	O	O
managed	O	O
to	O	O
do	O	O
this	O	O
but	O	O
failed	O	O
to	O	O
get	O	O
the	O	O
result	O	O
yet	O	O
.	O	O

I	O	O
have	O	O
to	O	O
match	O	O
the	O	O
requested	O	O
$id	O	B-Variable
with	O	O
the	O	O
Cart	O	B-Class
items	O	O
'	O	O
id	O	B-Variable
'	O	O
not	O	O
with	O	O
the	O	O
rowId	O	B-Variable
from	O	O
Cart	O	B-Library
package	O	O
.	O	O

Try	O	O
using	O	O
the	O	O
Cart::search()	O	B-Function
to	O	O
compare	O	O
against	O	O
the	O	O
provided	O	O
id	O	B-Variable
and	O	O
get	O	O
the	O	O
collection	O	O
of	O	O
$cartItem	O	B-Variable
which	O	O
matches	O	O
.	O	O

If	O	O
you	O	O
for	O	O
instance	O	O
want	O	O
to	O	O
find	O	O
all	O	O
items	O	O
with	O	O
an	O	O
id	O	B-Variable
of	O	O
1	O	B-Value
:	O	O

Check	O	O
documentation	O	O
for	O	O
more	O	O
detail	O	O
:	O	O
https://github.com/Crinsane/LaravelShoppingcart	O	O

A	O	O
CaseMilestone	O	B-Class
record	O	O
can	O	O
have	O	O
one	O	O
Case	O	B-Class
record	O	O
and	O	O
one	O	O
Case	O	B-Class
record	O	O
can	O	O
have	O	O
many	O	O
CaseMilestone	O	B-Class
records	O	O
.	O	O

So	O	O
this	O	O
works	O	O
:	O	O

Similarly	O	O
,	O	O
a	O	O
CaseMilestone	O	B-Class
record	O	O
can	O	O
have	O	O
one	O	O
MilestoneType	O	B-Class
record	O	O
and	O	O
one	O	O
MilestoneType	O	B-Class
record	O	O
can	O	O
have	O	O
many	O	O
CaseMilestone	O	B-Class
records	O	O
,	O	O
but	O	O
the	O	O
following	O	O
does	O	O
n't	O	O
work	O	O
:	O	O

How	O	O
come	O	O
?	O	O

If	O	O
it	O	O
is	O	O
because	O	O
not	O	O
all	O	O
CaseMilestones	O	B-Class
are	O	O
required	O	O
to	O	O
have	O	O
an	O	O
associated	O	O
MilestoneType	O	B-Class
,	O	O
which	O	O
query	O	O
will	O	O
get	O	O
me	O	O
what	O	O
I	O	O
'm	O	O
looking	O	O
for	O	O
?	O	O

Check	O	O
"	O	B-Value
Child	O	I-Value
Relationship	O	I-Value
Name	O	I-Value
"	O	I-Value
in	O	O
Lookup	O	O
from	O	O
CaseMilestones	O	B-Class
to	O	O
MilestoneType	O	B-Class

and	O	O
change	O	O
to	O	O
SELECT	B-Code_Block	B-Code_Block
Id	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
SELECT	I-Code_Block	I-Code_Block
Id	I-Code_Block	I-Code_Block
FROM	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Child	I-Code_Block	I-Code_Block
Relationship	I-Code_Block	I-Code_Block
Name	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
FROM	I-Code_Block	I-Code_Block
MilestoneType	I-Code_Block	I-Code_Block

Ok	O	O
,	O	O
I	O	O
need	O	O
my	O	O
program	O	O
to	O	O
validate	O	O
user	O	O
entered	O	O
data	O	O
.	O	O

If	O	O
that	O	O
data	O	O
is	O	O
invalid	O	O
,	O	O
the	O	O
program	O	O
needs	O	O
to	O	O
skip	O	O
almost	O	O
all	O	O
of	O	O
my	O	O
code	O	O
and	O	O
get	O	O
to	O	O
the	O	O
end	O	O
of	O	O
my	O	O
while	O	O
loop	O	O
to	O	O
ask	O	O
if	O	O
the	O	O
user	O	O
would	O	O
like	O	O
to	O	O
proceed	O	O
with	O	O
calculating	O	O
another	O	O
loan	O	O
.	O	O

My	O	O
professor	O	O
has	O	O
not	O	O
provided	O	O
us	O	O
with	O	O
a	O	O
method	O	O
of	O	O
doing	O	O
this	O	O
and	O	O
all	O	O
the	O	O
information	O	O
ive	O	O
found	O	O
on	O	O
the	O	O
internet	O	O
is	O	O
not	O	O
specific	O	O
enough	O	O
to	O	O
help	O	O
me	O	O
.	O	O

Once	O	O
again	O	O
,	O	O
I	O	O
need	O	O
the	O	O
code	O	O
after	O	O
the	O	O
validation	O	O
to	O	O
be	O	O
skipped	O	O
without	O	O
exiting	O	O
the	O	O
program	O	O
and	O	O
go	O	O
to	O	O
the	O	O
end	O	O
of	O	O
the	O	O
loop	O	O
where	O	O
I	O	O
ask	O	O
the	O	O
user	O	O
if	O	O
they	O	O
want	O	O
to	O	O
calculate	O	O
another	O	O
loan	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
thus	O	O
far	O	O
.	O	O

continue	O	B-Code_Block
is	O	O
maybe	O	O
one	O	O
of	O	O
the	O	O
worse	O	O
feature	O	O
of	O	O
java	O	B-Language
,	O	O
with	O	O
the	O	O
break	O	B-Code_Block
keyword	O	O
(	O	O
except	O	O
in	O	O
switch	O	B-Code_Block
statements	O	O
)	O	O
.	O	O

It	O	O
leads	O	O
to	O	O
jigsaw	O	O
code	O	O
where	O	O
you	O	O
have	O	O
to	O	O
find	O	O
out	O	O
where	O	O
the	O	O
code	O	O
jumps	O	O
.	O	O

One	O	O
continue	O	B-Code_Block
may	O	O
be	O	O
practical	O	O
but	O	O
it	O	O
gets	O	O
very	O	O
hard	O	O
to	O	O
change	O	O
the	O	O
code	O	O
it	O	O
produces	O	O
(	O	O
think	O	O
about	O	O
adding	O	O
an	O	O
inner	O	O
loop.	O	O
.	O	O
)	O	O
,	O	O
and	O	O
2	O	O
continues	O	B-Code_Block
will	O	O
make	O	O
you	O	O
crazy	O	O
.	O	O

You	O	O
can	O	O
always	O	O
avoid	O	O
using	O	O
continue	O	B-Code_Block
,	O	O
there	O	O
is	O	O
always	O	O
another	O	O
solution	O	O
.	O	O

Same	O	O
for	O	O
break	O	B-Code_Block
.	O	O

Here	O	O
,	O	O
why	O	O
do	O	O
n't	O	O
you	O	O
just	O	O
use	O	O
some	O	O
kind	O	O
of	O	O

That	O	O
's	O	O
easy	O	O
,	O	O
simple	O	O
,	O	O
clear	O	O
and	O	O
even	O	O
better	O	O
when	O	O
you	O	O
have	O	O
a	O	O
separate	O	O
method	O	O
that	O	O
contains	O	O
processing	O	O
.	O	O

Also	O	O
,	O	O
in	O	O
your	O	O
case	O	O
,	O	O
that	O	O
is	O	O
tied	O	O
to	O	O
robustness	O	O
,	O	O
you	O	O
could	O	O
provide	O	O
a	O	O
process()	O	B-Function
method	O	O
that	O	O
throws	O	O
an	O	O
exception	O	B-Class
if	O	O
the	O	O
data	O	O
entered	O	O
is	O	O
not	O	O
valid	O	O
.	O	O

This	O	O
makes	O	O
it	O	O
even	O	O
more	O	O
clear	O	O
that	O	O
there	O	O
is	O	O
a	O	O
"	O	O
normal	O	O
"	O	O
program	O	O
behavior	O	O
and	O	O
a	O	O
bunch	O	O
of	O	O
strange	O	O
cases	O	O
you	O	O
handle	O	O
as	O	O
errors	O	O
.	O	O

then	O	O
your	O	O
main	O	O
loop	O	O
becomes	O	O

Break	O	B-Code_Block
is	O	O
very	O	O
useful	O	O
for	O	O
stopping	O	O
loops	O	O
as	O	O
you	O	O
said	O	O
you	O	O
wanted	O	O
.	O	O

Essentially	O	O
it	O	O
has	O	O
the	O	O
effect	O	O
of	O	O
setting	O	O
the	O	O
boolean	O	B-Data_Type
parameter	O	O
of	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
to	O	O
true	O	B-Value
.	O	O

You	O	O
can	O	O
of	O	O
course	O	O
,	O	O
use	O	O
what	O	O
in	O	O
CMD	O	B-Application
is	O	O
referred	O	O
to	O	O
a	O	O
GOTO	O	O
.	O	O

you	O	O
can	O	O
create	O	O
something	O	O
like	O	O
:	O	O

I	O	O
need	O	O
to	O	O
read	O	O
some	O	O
XML	O	B-File_Type
files	O	O
that	O	O
follow	O	O
the	O	O
ONIX	O	B-File_Type
standard	O	O

See	O	O
:	O	O
http://www.editeur.org/93/Release-3.0-Downloads/	O	O

To	O	O
do	O	O
this	O	O
i	O	O
downloaded	O	O
the	O	O
ONIX	O	B-File_Type
3.0	O	B-Version
XSD	O	B-File_Type
:	O	O

http://www.editeur.org/files/ONIX%203/ONIX_BookProduct_XSD_schema+codes_Issue_25.zip	O	O

Using	O	O
the	O	O
downloaded	O	O
XSD	O	B-File_Type
and	O	O
this	O	O
command	O	O
"	O	O
xsd	O	B-Code_Block
your.xsd	O	I-Code_Block
/classes	O	I-Code_Block
"	O	O
i	O	O
created	O	O
classes	O	O
that	O	O
i	O	O
want	O	O
to	O	O
use	O	O
.	O	O

When	O	O
trying	O	O
to	O	O
create	O	O
a	O	O
new	O	O
Xml	O	B-Class
Serializer	O	I-Class
like	O	O
so	O	O
:	O	O

I	O	O
get	O	O
and	O	O
exception	O	B-Class

When	O	O
i	O	O
drill	O	O
down	O	O
through	O	O
the	O	O
inner	O	O
exceptions	O	B-Class
i	O	O
end	O	O
up	O	O
with	O	O
this	O	O
message	O	O
:	O	O

I	O	O
am	O	O
not	O	O
sure	O	O
what	O	O
to	O	O
do	O	O
,	O	O
is	O	O
something	O	O
wrong	O	O
with	O	O
the	O	O
XSD	O	B-File_Type
?	O	O

Any	O	O
suggestions	O	O
?	O	O
!	O	O

Edit	O	O

i	O	O
am	O	O
beginner	O	O
in	O	O
QT	O	B-Application

i	O	O
try	O	O
to	O	O
open	O	O
binary	O	B-File_Type
file	O	O
and	O	O
draw	O	O
it	O	O
pixel	O	O
by	O	O
pixel	O	O

i	O	O
got	O	O
this	O	O
warning	O	O
when	O	O
i	O	O
was	O	O
debugging	O	O

and	O	O
this	O	O
is	O	O
the	O	O
code	O	O

thanks	O	O
in	O	O
advance	O	O
:)	O	O

You	O	O
incorrectly	O	O
calculate	O	O
x	O	B-Variable
and	O	O
y	O	B-Variable
coordinate	O	O
on	O	O
this	O	O
line	O	O
:	O	O

x	O	B-Variable
should	O	O
be	O	O
instead	O	O
:	O	O

y	O	B-Variable
should	O	O
be	O	O

or	O	O
maybe	O	O
it	O	O
is	O	O
better	O	O
to	O	O
use	O	O
another	O	O
variable	O	O
for	O	O
x	O	B-Variable
to	O	O
avoid	O	O
division	O	O
:	O	O

Suggestions	O	O
:	O	O
it	O	O
is	O	O
better	O	O
to	O	O
define	O	O
variable	O	O
right	O	O
before	O	O
it	O	O
is	O	O
used	O	O
:	O	O

or	O	O
even	O	O
better	O	O

I	O	O
Have	O	O
A	O	O
table	O	B-Data_Structure
that	O	O
shows	O	O
each	O	O
course	O	O
a	O	O
student	O	O
is	O	O
regisered	O	O
in	O	O
.	O	O

How	O	O
will	O	O
I	O	O
select	O	O
the	O	O
number	O	O
of	O	O
courses	O	O
that	O	O
a	O	O
student	O	O
doing	O	O
PSY1	O	B-Variable
also	O	O
does	O	O
that	O	O
fufills	O	O
BOTH	O	O
Cond1	O	B-Variable
and	O	O
Cond	O	B-Variable
2	O	I-Variable
?	O	O

i.e	O	O
1004	O	B-Variable
does	O	O
1	O	O
course	O	O
that	O	O
passes	O	O
both	O	O
criteria	O	O
and	O	O
also	O	O
does	O	O
psy1	O	B-Variable

Doesnt	O	O
work	O	O
.	O	O

Thank	O	O
you	O	O

ED	O	O
:	O	O
I	O	O
need	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
all	O	O
students	O	O
doing	O	O
PSY1	O	B-Variable
,	O	O
Along	O	O
with	O	O
teh	O	O
ammount	O	O
of	O	O
OTHER	O	O
courses	O	O
they	O	O
do	O	O
which	O	O
fufill	O	O
bot	O	O
cond1	O	B-Variable
and	O	O
cond2	O	B-Variable
.	O	O

Untested	O	O
,	O	O
but	O	O
should	O	O
give	O	O
you	O	O
a	O	O
starter	O	O
:	O	O

E.g	O	O
.	O	O
:	O	O

If	O	O
you	O	O
want	O	O
to	O	O
include	O	O
students	O	O
with	O	O
a	O	O
score	O	O
of	O	O
zero	O	B-Value
,	O	O
change	O	O
the	O	O
[	O	B-Function
INNER	O	I-Function
]	O	I-Function
JOIN	O	B-Function
to	O	O
a	O	O
LEFT	O	B-Function
JOIN	O	I-Function
and	O	O
COUNT	O	B-Function
(	O	O
or	O	O
COALESCE(COUNT))	O	B-Function
something	O	O
on	O	O
the	O	O
right	O	O
.	O	O

This	O	O
is	O	O
the	O	O
structure	O	O
of	O	O
my	O	O
Rails	O	O
project	O	O

I	O	O
want	O	O
to	O	O
access	O	O
images	O	B-User_Interface_Element
in	O	O
the	O	O
directory	O	O
of	O	O
"	O	O
Root/uploads/images	O	B-File_Name
"	O	O

I	O	O
tried	O	O
lots	O	O
by	O	O
googling	O	O
,	O	O
nothing	O	O
got	O	O
helpfull	O	O
,	O	O
i	O	O
am	O	O
stuch	O	O
on	O	O
this	O	O
.	O	O

Please	O	O
try	O	O
to	O	O
give	O	O
a	O	O
solution	O	O
.	O	O

It	O	O
will	O	O
be	O	O
very	O	O
thankful	O	O
.	O	O

You	O	O
could	O	O
try	O	O
something	O	O
along	O	O
the	O	O
lines	O	O
:	O	O

In	O	O
routes.rb	O	B-File_Name
:	O	O

If	O	O
security	O	O
is	O	O
your	O	O
concern	O	O
,	O	O
you	O	O
can	O	O
add	O	O
permission	O	O
checks	O	O
to	O	O
the	O	O
controller	O	O
.	O	O

I	O	O
have	O	O
a	O	O
WebView	O	B-Class
into	O	O
which	O	O
I	O	O
'm	O	O
loading	O	O
a	O	O
local	O	O
HTML	O	B-Language
page	O	O
with	O	O
some	O	O
embedded	O	O
images	O	B-User_Interface_Element
.	O	O

I	O	O
want	O	O
to	O	O
allow	O	O
the	O	O
user	O	O
to	O	O
zoom	O	O
in	O	O
on	O	O
the	O	O
text	O	B-User_Interface_Element
and	O	O
image	O	B-User_Interface_Element
in	O	O
a	O	O
similar	O	O
fashion	O	O
as	O	O
they	O	O
would	O	O
with	O	O
the	O	O
web	O	B-Application
browser	O	I-Application
.	O	O

Any	O	O
ideas	O	O
how	O	O
to	O	O
enable	O	O
this	O	O
?	O	O

Thanks	O	O

I	O	O
used	O	O
scalesPageToFit	O	B-Variable
to	O	O
YES	O	O
...	O	O
.	O	O
it	O	O
allows	O	O
it	O	O
to	O	O
zoom	O	O
in	O	O
some	O	O
..	O	O
.	O	O
but	O	O
not	O	O
a	O	O
true	O	O
zoom	O	O
like	O	O
safari	O	B-Application
has	O	O
.	O	O

For	O	O
completeness	O	O
.	O	O

You	O	O
must	O	O
enable	O	O
multitouch	O	B-Variable
,	O	O
scalesPagesToFit	O	B-Variable
to	O	O
get	O	O
it	O	O
to	O	O
work	O	O
(	O	O
there	O	O
are	O	O
some	O	O
conditions	O	O
if	O	O
its	O	O
within	O	O
certain	O	O
other	O	O
views	O	B-User_Interface_Element
)	O	O
.	O	O

But	O	O
then	O	O
to	O	O
prevent	O	O
it	O	O
scaling	O	O
your	O	O
webpage	O	O
(	O	O
especially	O	O
if	O	O
using	O	O
local	O	O
files	O	O
)	O	O
.	O	O

You	O	O
will	O	O
need	O	O
to	O	O
add	O	O
the	O	O
following	O	O
snippet	O	O
to	O	O
your	O	O
HTML	O	B-Language

For	O	O
more	O	O
info	O	O
so	O	O
:	O	O
http://iphoneincubator.com/blog/windows-views/right-scale-for-a-uiwebview	O	O

On	O	O
Android	O	B-Operating_System
6.0	O	B-Version
Marshmallow	O	I-Version
the	O	O
positioning	O	O
of	O	O
an	O	O
EditText	O	B-Class
in	O	O
relation	O	O
to	O	O
an	O	O
ImageView	O	B-Class
in	O	O
a	O	O
RelativeLayout	O	B-Class
with	O	O
the	O	O
attributes	O	O
baseline	O	B-Variable
and	O	O
layout_alignBaseline	O	B-Variable
does	O	O
not	O	O
work	O	O
anymore	O	O
.	O	O

The	O	O
behaviour	O	O
can	O	O
even	O	O
be	O	O
observed	O	O
in	O	O
the	O	O
layout	O	O
editor	O	O
in	O	O
Android	O	B-Application
studio	O	I-Application
.	O	O

On	O	O
a	O	O
real	O	O
Android	O	B-Operating_System
Marshmallow	O	B-Version
device	O	O
or	O	O
emulatr	O	B-Application
the	O	O
EditText	O	B-Class
in	O	O
my	O	O
case	O	O
is	O	O
shift	O	O
outside	O	O
the	O	O
screen	O	O
and	O	O
not	O	O
visible	O	O
.	O	O

Do	O	O
I	O	O
miss	O	O
some	O	O
changes	O	O
,	O	O
is	O	O
it	O	O
a	O	O
bug	O	O
?	O	O

I	O	O
have	O	O
created	O	O
screenshots	O	O
of	O	O
the	O	O
Layout	O	B-Application
Editor	O	I-Application
of	O	O
Android	O	B-Application
Studio	O	I-Application
.	O	O

The	O	O
difference	O	O
between	O	O
these	O	O
two	O	O
screenshots	O	O
is	O	O
solely	O	O
the	O	O
change	O	O
of	O	O
the	O	O
API	O	B-Library
level	O	O
.	O	O

I	O	O
have	O	O
created	O	O
a	O	O
sample	O	O
project	O	O
https://github.com/mikegr/baseline	O	O

This	O	O
is	O	O
bug	O	O
reported	O	O
on	O	O
https://code.google.com/p/android/issues/detail?id=73697&thanks=73697	O	O

Since	O	O
API11	O	B-Library
you	O	O
can	O	O
simply	O	O
use	O	O
android:baselineAlignBottom	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block

Below	O	O
API11	O	B-Library
you	O	O
can	O	O
overwrite	O	O
getBaseLine()	B-Code_Block	B-Function
.	O	O

Update	O	O
to	O	O
Android	O	B-Library
Support	O	I-Library
Library	O	I-Library
23.2.1	O	B-Version
,	O	O
this	O	O
may	O	O
solve	O	O
your	O	O
problem	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
read	O	O
a	O	O
huge	O	O
file	O	O
with	O	O
fread	O	B-Function
,	O	O
but	O	O
i	O	O
guess	O	O
something	O	O
is	O	O
messed	O	O
with	O	O
the	O	O
layout	O	O
of	O	O
the	O	O
file	O	O
.	O	O

If	O	O
i	O	O
try	O	O
to	O	O
read	O	O
the	O	O
file	O	O
with	O	O

on	O	O
this	O	O
file	O	O
(	O	O
i	O	O
just	O	O
took	O	O
the	O	O
line	O	O
with	O	O
the	O	O
error	O	O
and	O	O
few	O	O
before	O	O
and	O	O
after	O	O
)	O	O
:	O	O

I	O	O
get	O	O
this	O	O
error	O	O
:	O	O

How	O	O
can	O	O
i	O	O
solve	O	O
it	O	O
?	O	O

I	O	O
'm	O	O
not	O	O
100%	O	O
sure	O	O
what	O	O
the	O	O
error	O	O
is	O	O
in	O	O
your	O	O
data	O	O
,	O	O
here	O	O
,	O	O
but	O	O
try	O	O
running	O	O
the	O	O
code	O	O
with	O	O

in	O	O
the	O	O
fread	O	B-Function
options	O	O
.	O	O

I	O	O
had	O	O
a	O	O
similar	O	O
error	O	O
,	O	O
and	O	O
it	O	O
seemed	O	O
that	O	O
fread	O	B-Function
was	O	O
having	O	O
trouble	O	O
identifying	O	O
my	O	O
column	O	B-Data_Structure
separation	O	O
.	O	O

Setting	O	O
fill	O	B-Variable
to	O	O
true	O	O
allows	O	O
fread	O	B-Function
to	O	O
fill	O	O
in	O	O
any	O	O
missing	O	O
data	O	O
-	O	O
at	O	O
least	O	O
then	O	O
you	O	O
can	O	O
check	O	O
the	O	O
resulting	O	O
data	O	O
frame	O	O
and	O	O
find	O	O
out	O	O
where	O	O
the	O	O
weirdness	O	O
is	O	O
.	O	O

We	O	O
have	O	O
recently	O	O
started	O	O
a	O	O
project	O	O
to	O	O
store	O	O
a	O	O
load	O	O
of	O	O
data	O	O
on	O	O
a	O	O
Hadoop	O	B-Application
/	O	O
HBase	O	B-Application
cluster	O	O
.	O	O

I	O	O
have	O	O
followed	O	O
the	O	O
tutorial	O	O
in	O	O
the	O	O
Apache	O	B-Application
'	O	O
Quick	O	O
Start	O	O
'	O	O
guide	O	O
,	O	O
and	O	O
have	O	O
got	O	O
a	O	O
small	O	O
standalone	O	O
HBase	O	B-Application
instance	O	O
running	O	O
successfully	O	O
on	O	O
one	O	O
of	O	O
our	O	O
servers	O	B-Application
.	O	O

I	O	O
am	O	O
able	O	O
to	O	O
use	O	O
HBase	O	B-Application
shell	O	I-Application
to	O	O
create	O	O
tables	O	B-Data_Structure
,	O	O
put	O	O
data	O	O
,	O	O
get	O	O
,	O	O
scan	O	O
etc	O	O
-	O	O
looks	O	O
good	O	O
!	O	O

Now	O	O
my	O	O
problem	O	O
:	O	O
our	O	O
servers	O	B-Application
where	O	O
HBase	O	B-Application
will	O	O
be	O	O
installed	O	O
are	O	O
all	O	O
linux	O	B-Operating_System
,	O	O
but	O	O
all	O	O
the	O	O
developers	O	O
in	O	O
my	O	O
company	O	O
use	O	O
Windows	O	B-Operating_System
machines	O	O
-	O	O
it	O	O
would	O	O
be	O	O
nice	O	O
if	O	O
we	O	O
did	O	O
n't	O	O
have	O	O
to	O	O
make	O	O
everyone	O	O
in	O	O
the	O	O
company	O	O
install	O	O
Cygwin	O	B-Application
just	O	O
to	O	O
use	O	O
the	O	O
Java	O	B-Application
API	O	I-Application
.	O	O

Currently	O	O
,	O	O
when	O	O
I	O	O
try	O	O
to	O	O
connect	O	O
running	O	O
from	O	O
inside	O	O
Eclipse	O	B-Application
with	O	O
the	O	O
Java	O	B-Application
API	O	I-Application
,	O	O
I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O

Followed	O	O
eventually	O	O
by	O	O
:	O	O

My	O	O
question	O	O
is	O	O
:	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
use	O	O
the	O	O
Java	O	B-Library
API	O	I-Library
for	O	O
HBase	O	B-Application
on	O	O
Windows	O	B-Operating_System
,	O	O
connecting	O	O
to	O	O
a	O	O
server	O	B-Application
running	O	O
on	O	O
Linux	O	B-Operating_System
,	O	O
without	O	O
installing	O	O
Cygwin	O	B-Application
,	O	O
Hadoop	O	B-Application
and	O	O
HBase	O	B-Application
on	O	O
every	O	O
developer	O	O
's	O	O
machine	O	O
?	O	O

Alternatively	O	O
,	O	O
would	O	O
another	O	O
package	O	O
such	O	O
as	O	O
Kundera	O	B-Application
be	O	O
able	O	O
to	O	O
connect	O	O
without	O	O
Cygwin	O	B-Application
?	O	O

If	O	O
not	O	O
,	O	O
how	O	O
does	O	O
the	O	O
REST	O	B-Library
API	O	I-Library
compare	O	O
in	O	O
performance	O	O
to	O	O
the	O	O
native	O	O
Java	O	B-Application
API	O	I-Application
?	O	O

I	O	O
could	O	O
always	O	O
write	O	O
my	O	O
own	O	O
wrapper	O	O
for	O	O
that	O	O
and	O	O
distribute	O	O
it	O	O
to	O	O
our	O	O
developers	O	O
(	O	O
although	O	O
no	O	O
doubt	O	O
something	O	O
like	O	O
that	O	O
may	O	O
already	O	O
exist	O	O
)	O	O
.	O	O

Any	O	O
help	O	O
on	O	O
this	O	O
would	O	O
be	O	O
much	O	O
appreciated	O	O
as	O	O
I	O	O
'm	O	O
having	O	O
trouble	O	O
finding	O	O
a	O	O
definitive	O	O
answer	O	O
on	O	O
Google	O	B-Website
!	O	O

I	O	O
am	O	O
currently	O	O
using	O	O
analog	B-Code_Block	O
pin	I-Code_Block	B-Device
3	I-Code_Block	B-Value
on	O	O
my	O	O
Arduino	O	B-Device
Uno	O	I-Device
to	O	O
send	O	O
out	O	O
voltage	O	O
from	O	O
0	O	B-Value
to	O	O
5V	O	B-Value
.	O	O

I	O	O
am	O	O
using	O	O
that	O	O
voltage	O	O
to	O	O
control	O	O
the	O	O
motor	O	B-Device
and	O	O
currently	O	O
I	O	O
am	O	O
using	O	O
the	O	O
function	O	O
:	O	O

I	O	O
am	O	O
using	O	O
255	B-Code_Block	B-Value
pwm	I-Code_Block	I-Value
for	O	O
5V	O	B-Value
and	O	O
127	B-Code_Block	B-Value
for	O	I-Value
2.5V	O	I-Value
.	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
PWM	O	O
is	O	O
sending	O	O
full	O	O
cycle	O	O
at	O	O
255pwm(5V)	O	B-Value
,	O	O
but	O	O
on	O	O
127V	O	B-Value
the	O	O
cycle	O	O
is	O	O
at	O	O
50%	O	B-Value
which	O	O
causes	O	O
my	O	O
motor	O	B-Device
to	O	O
twitch	O	O
a	O	O
little	O	O
bit	O	O
.	O	O

How	O	O
can	O	O
I	O	O
solve	O	O
this	O	O
?	O	O

I	O	O
am	O	O
searching	O	O
for	O	O
a	O	O
way	O	O
to	O	O
send	O	O
full	O	O
PWM	O	O
cycle	O	O
even	O	O
at	O	O
lower	O	O
volts	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
?	O	O

First	O	O
I	O	O
believe	O	O
you	O	O
mean	O	O
D3	O	B-Value
not	O	O
A3	O	B-Value
,	O	O
since	O	O
PWM	O	O
does	O	O
not	O	O
exist	O	O
on	O	O
A3	O	B-Value
.	O	O

Assuming	O	O
you	O	O
are	O	O
driving	O	O
a	O	O
DC	O	B-Device
motor	O	I-Device
,	O	O
and	O	O
not	O	O
something	O	O
like	O	O
a	O	O
servo	O	B-Device
or	O	O
stepper	O	B-Device

You	O	O
have	O	O
two	O	O
problems	O	O
.	O	O

1st	O	O
.	O	O

you	O	O
may	O	O
need	O	O
a	O	O
smoothing	O	O
capacitor	O	O
.	O	O

Where	O	O
your	O	O
formula	O	O
would	O	O
be	O	O
F	O	B-Code_Block
=	O	I-Code_Block
L*C	O	I-Code_Block
Noting	O	O
that	O	O
analogWrite	O	B-Function
uses	O	O
a	O	O
F	O	B-Code_Block
=	O	I-Code_Block
490Hz	O	I-Code_Block
.	O	O

The	O	O
concept	O	O
is	O	O
simple	O	O
,	O	O
in	O	O
short	O	O
the	O	O
cap	O	O
average	O	O
out	O	O
the	O	O
high	O	O
and	O	O
lows	O	O
of	O	O
the	O	O
PWM	O	O
,	O	O
based	O	O
on	O	O
the	O	O
duty	O	O
cycle	O	O
.	O	O

And	O	O
the	O	O
capacitance	O	O
needed	O	O
is	O	O
based	O	O
on	O	O
the	O	O
frequency	O	O
and	O	O
impedance	O	O
.	O	O

This	O	O
will	O	O
provide	O	O
the	O	O
analog	O	O
voltage	O	O
.	O	O

2nd	O	O
.	O	O

And	O	O
bigger	O	O
problem	O	O
is	O	O
the	O	O
output	O	O
of	O	O
the	O	O
Arduino	O	B-Device
can	O	O
not	O	O
supply	O	O
sufficient	O	O
current	O	O
to	O	O
drive	O	O
the	O	O
motor	O	B-Device
correctly	O	O
.	O	O

It	O	O
will	O	O
max	O	O
out	O	O
at	O	O
about	O	O
20ma	O	B-Value
,	O	O
and	O	O
the	O	O
motor	O	B-Device
likely	O	O
needs	O	O
more	O	O
.	O	O

So	O	O
at	O	O
low	O	O
speeds	O	O
the	O	O
pulses	O	O
which	O	O
were	O	O
week	O	O
,	O	O
stall	O	O
out	O	O
during	O	O
their	O	O
low	O	O
periods	O	O
.	O	O

You	O	O
should	O	O
have	O	O
your	O	O
PWM	O	O
output	O	O
drive	O	O
a	O	O
transistor	O	B-Device
,	O	O
which	O	O
in	O	O
turn	O	O
will	O	O
ON-OFF	O	O
the	O	O
motor	O	B-Device
directly	O	O
from	O	O
the	O	O
power	O	O
supply	O	O
.	O	O

Now	O	O
your	O	O
motor	O	O
may	O	O
have	O	O
enough	O	O
inertia	O	O
as	O	O
not	O	O
to	O	O
need	O	O
the	O	O
cap	O	O
.	O	O

see	O	O
adafruit-arduino-lesson-13-dc-motors/breadboard	O	O
-layout	O	O

and	O	O
here	O	O
for	O	O
a	O	O
discussion	O	O
about	O	O
the	O	O
smoothing	O	O
cap	O	O

I	O	O
have	O	O
a	O	O
menu-bar	O	B-User_Interface_Element
based	O	O
application	O	O
,	O	O
which	O	O
displays	O	O
a	O	O
window	O	B-User_Interface_Element
,	O	O
when	O	O
the	O	O
icon	O	B-User_Interface_Element
is	O	O
clicked	O	O
.	O	O

It	O	O
all	O	O
works	O	O
fine	O	O
on	O	O
Mac	O	B-Operating_System
OS	O	I-Operating_System
X	O	I-Operating_System
Lion	O	B-Version
,	O	O
but	O	O
for	O	O
some	O	O
reason	O	O
,	O	O
an	O	O
error	O	O
occurs	O	O
on	O	O
Snow	O	B-Version
Leopard	O	I-Version
an	O	O
sooner	O	O
versions	O	O
of	O	O
Mac	O	B-Operating_System
OS	O	I-Operating_System
X	O	I-Operating_System
.	O	O

Anytime	O	O
[	B-Code_Block	B-Code_Block
TheWindowController	I-Code_Block	I-Code_Block
window	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
is	O	O
called	O	O
the	O	O
method	O	O
stops	O	O
,	O	O
but	O	O
the	O	O
app	O	O
keeps	O	O
running	O	O
.	O	O

Because	O	O
of	O	O
this	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
think	O	O
that	O	O
the	O	O
window	O	O
is	O	O
just	O	O
nil	O	O
,	O	O
it	O	O
's	O	O
corrupt	O	O
,	O	O
in	O	O
some	O	O
way	O	O
.	O	O

I	O	O
have	O	O
no	O	O
Idea	O	O
why	O	O
this	O	O
happens	O	O
,	O	O
and	O	O
like	O	O
I	O	O
said	O	O
,	O	O
it	O	O
only	O	O
happens	O	O
in	O	O
Mac	O	B-Operating_System
OS	O	I-Operating_System
X	O	I-Operating_System
Snow	O	B-Version
Leopard	O	I-Version
.	O	O

Btw	O	O
.	O	O

I	O	O
use	O	O
ARC	O	O
,	O	O
if	O	O
that	O	O
matters	O	O
at	O	O
all	O	O
.	O	O

You	O	O
're	O	O
loading	O	O
a	O	O
NIB	O	B-File_Type
that	O	O
uses	O	O
a	O	O
10.7-specific	O	B-Version
feature	O	O
,	O	O
Cocoa	O	O
Autolayout	O	O
,	O	O
on	O	O
10.6	O	B-Version
,	O	O
which	O	O
does	O	O
n't	O	O
understand	O	O
it	O	O
.	O	O

If	O	O
you	O	O
wish	O	O
to	O	O
support	O	O
running	O	O
on	O	O
10.6	O	B-Version
,	O	O
you	O	O
need	O	O
to	O	O
avoid	O	O
using	O	O
such	O	O
features	O	O
.	O	O

You	O	O
should	O	O
be	O	O
able	O	O
to	O	O
set	O	O
the	O	O
deployment	O	O
target	O	O
on	O	O
the	O	O
NIB	O	B-File_Type
,	O	O
which	O	O
will	O	O
then	O	O
cause	O	O
warnings	O	O
to	O	O
show	O	O
up	O	O
for	O	O
features	O	O
which	O	O
are	O	O
n't	O	O
supported	O	O
by	O	O
that	O	O
deployment	O	O
target	O	O
.	O	O

Also	O	O
,	O	O
if	O	O
you	O	O
have	O	O
n't	O	O
already	O	O
done	O	O
so	O	O
,	O	O
you	O	O
need	O	O
to	O	O
do	O	O
something	O	O
similar	O	O
for	O	O
your	O	O
target	O	O
's	O	O
build	O	O
settings	O	O
.	O	O

Set	O	O
the	O	O
deployment	O	O
target	O	O
.	O	O

Unfortunately	O	O
,	O	O
that	O	O
wo	O	O
n't	O	O
necessarily	O	O
cause	O	O
warnings	O	O
for	O	O
code	O	O
which	O	O
uses	O	O
features	O	O
that	O	O
were	O	O
introduced	O	O
in	O	O
10.7	O	B-Version
.	O	O

You	O	O
can	O	O
set	O	O
up	O	O
an	O	O
alternative	O	O
build	O	O
configuration	O	O
which	O	O
builds	O	O
against	O	O
the	O	O
10.6	O	B-Version
SDK	O	B-Library
and	O	O
compile	O	O
against	O	O
that	O	O
to	O	O
learn	O	O
where	O	O
you	O	O
're	O	O
using	O	O
post-10.6	O	B-Version
features	O	O
.	O	O

See	O	O
Apple	O	B-Library
's	O	O
SDK	O	I-Library
Compatibility	O	O
Guide	O	O
for	O	O
more	O	O
info	O	O
.	O	O

I	O	O
was	O	O
referring	O	O
to	O	O
how	O	O
angular	O	B-Library
js	O	I-Library
connects	O	O
to	O	O
mongo	O	B-Application
db	O	I-Application
.	O	O

So	O	O
while	O	O
setting	O	O
the	O	O
url	O	B-Variable
and	O	O
port	O	B-Variable
for	O	O
the	O	O
'	O	O
db	O	B-Variable
'	O	O
object	O	O
,	O	O
I	O	O
found	O	O
code	O	O
like	O	O
below	O	O
:	O	O

Will	O	O
someone	O	O
please	O	O
let	O	O
me	O	O
know	O	O
what	O	O
is	O	O
this	O	O
path	O	O
here	O	O
for	O	O
?	O	O

And	O	O
also	O	O
,	O	O
what	O	O
is	O	O
the	O	O
default	O	O
value	O	O
of	O	O
MONGOHQ_URL	O	B-Variable
here	O	O
?	O	O

From	O	O
the	O	O
link	O	O
http://docs.mongohq.com/languages/nodejs.html	O	O
,	O	O
I	O	O
came	O	O
to	O	O
know	O	O
mongo	O	B-Application
url	O	O
can	O	O
be	O	O
set	O	O
to	O	O
:	O	O

Am	O	O
I	O	O
right	O	O
?	O	O

Thanks	O	O
,	O	O

Sabari	O	B-User_Name

The	O	O
MONGOHQ_URL	B-Code_Block	B-Variable
in	O	O
your	O	O
code	O	O
snippet	O	O
comes	O	O
from	O	O
the	O	O
shell	O	B-Application
environment	O	O
.	O	O

For	O	O
example	O	O
,	O	O
in	O	O
bash	B-Code_Block	B-Language
you	O	O
would	O	O
add	O	O
that	O	O
to	O	O
your	O	O
~	B-Code_Block	B-File_Name
/.bash_profile	I-Code_Block	I-File_Name
:	O	O

.	O	O
.	O	O
or	O	O
include	O	O
on	O	O
your	O	O
command	O	B-Application
line	O	I-Application
when	O	O
starting	O	O
the	O	O
node	O	B-Application
app	O	O
:	O	O

Another	O	O
common	O	O
approach	O	O
with	O	O
Node.js	O	B-Library
is	O	O
to	O	O
use	O	O
something	O	O
like	O	O
dotenv	B-Code_Block	B-Code_Block
,	O	O
which	O	O
will	O	O
load	O	O
environment	O	O
variables	O	O
from	O	O
a	O	O
.env	B-Code_Block	B-File_Type
directory	O	O
in	O	O
your	O	O
project	O	O
.	O	O

There	O	O
is	O	O
no	O	O
default	O	O
;	O	O
you	O	O
need	O	O
to	O	O
define	O	O
this	O	O
if	O	O
you	O	O
want	O	O
to	O	O
connect	O	O
to	O	O
a	O	O
MongoHQ	O	B-Library
instance	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
use	O	O
mootools	O	B-Library
ajax	O	B-Function
requests	O	O
to	O	O
record	O	O
clicks	O	O
on	O	O
outgoing	O	O
links	O	O
.	O	O

So	O	O
far	O	O
here	O	O
is	O	O
what	O	O
I	O	O
'm	O	O
doing	O	O
.	O	O

Each	O	O
link	O	O
looks	O	O
like	O	O
follows	O	O
:	O	O

The	O	O
javascript	O	B-Language
function	O	O
clickRecord(id)	O	B-Function
is	O	O
defined	O	O
as	O	O
follows	O	O
:	O	O

The	O	O
problem	O	O
I	O	O
have	O	O
is	O	O
this	O	O
.	O	O

If	O	O
I	O	O
add	O	O
a	O	O
return	O	O
false	O	B-Value
;	O	O
to	O	O
the	O	O
onclick	O	B-Code_Block
=""	O	I-Code_Block
declaration	O	O
,	O	O
everything	O	O
works	O	O
fine	O	O
,	O	O
of	O	O
course	O	O
the	O	O
problem	O	O
there	O	O
is	O	O
that	O	O
click	O	O
does	O	O
not	O	O
take	O	O
the	O	O
user	O	O
to	O	O
the	O	O
intended	O	O
page	O	O
.	O	O

If	O	O
I	O	O
do	O	O
not	O	O
have	O	O
the	O	O
return	O	O
false	O	B-Value
;	O	O
then	O	O
it	O	O
seems	O	O
like	O	O
the	O	O
ajax	O	B-Library
call	O	O
is	O	O
never	O	O
executed	O	O
.	O	O

I	O	O
thought	O	O
the	O	O
onclick	O	B-Function
event	O	O
should	O	O
execute	O	O
first	O	O
and	O	O
then	O	O
only	O	O
the	O	O
default	O	O
action	O	O
should	O	O
execute	O	O
.	O	O

Is	O	O
this	O	O
not	O	O
the	O	O
case	O	O
?	O	O

There	O	O
is	O	O
an	O	O
even	O	O
stranger	O	O
scenario	O	O
if	O	O
you	O	O
use	O	O
onmousedown	O	B-Function
event	O	O
instead	O	O
.	O	O

It	O	O
seems	O	O
like	O	O
on	O	O
Firefox	O	B-Application
,	O	O
if	O	O
you	O	O
use	O	O
the	O	O
onmousedown	O	B-Function
event	O	O
,	O	O
once	O	O
you	O	O
go	O	O
to	O	O
the	O	O
new	O	O
page	O	O
,	O	O
you	O	O
cant	O	O
simply	O	O
navigate	O	O
back	O	O
to	O	O
the	O	O
old	O	O
page	O	O
,	O	O
you	O	O
have	O	O
to	O	O
refresh	O	O
the	O	O
old	O	O
page	O	O
.	O	O

Else	O	O
the	O	O
call	O	O
is	O	O
not	O	O
executed	O	O
.	O	O

This	O	O
does	O	O
not	O	O
happen	O	O
on	O	O
IE	O	B-Application
.	O	O

OK	O	O
.	O	O
Found	O	O
an	O	O
answer	O	O
to	O	O
one	O	O
of	O	O
the	O	O
questions	O	O
:	O	O

The	O	O
inline	O	O
mootools	O	B-Library
request	O	O
did	O	O
not	O	O
execute	O	O
when	O	O
declared	O	O
through	O	O
the	O	O
onclick()	O	B-Function
.	O	O

It	O	O
seems	O	O
this	O	O
was	O	O
caused	O	O
by	O	O
the	O	O
script	O	O
not	O	O
being	O	O
synchronous	O	O
.	O	O

So	O	O
probably	O	O
it	O	O
returns	O	O
without	O	O
actually	O	O
fully	O	O
committing	O	O
the	O	O
request	O	O
,	O	O
and	O	O
the	O	O
browser	O	B-Application
then	O	O
moves	O	O
to	O	O
another	O	O
page	O	O
breaking	O	O
the	O	O
execution	O	O
.	O	O

Adding	O	O
a	O	O
synchronous	O	O
call	O	O
to	O	O
the	O	O
script	O	O
fixes	O	O
the	O	O
problem	O	O
:	O	O

The	O	O
second	O	O
problem	O	O
that	O	O
was	O	O
mentioned	O	O
on	O	O
the	O	O
onmousedownevent	O	B-Function
,	O	O
i.e	O	O
.	O	O
firefox	O	B-Application
not	O	O
executing	O	O
the	O	O
ajax	O	B-Library
call	O	O
if	O	O
the	O	O
browser	O	B-Application
navigates	O	O
back	O	O
is	O	O
still	O	O
unsolved	O	O
.	O	O

However	O	O
I	O	O
am	O	O
leaving	O	O
that	O	O
to	O	O
be	O	O
as	O	O
that	O	O
was	O	O
n't	O	O
the	O	O
main	O	O
question	O	O
raised	O	O
.	O	O

Do	O	O
n't	O	O
use	O	O
onclick	B-Code_Block	B-Function
-	O	O
very	O	O
1995	O	O
.	O	O

Instead	O	O
attach	O	O
an	O	O
event	O	O
to	O	O
the	O	O
element	O	O
and	O	O
use	O	O
event.stop()	B-Code_Block	B-Function
,	O	O
ie	O	O
:	O	O

JS	O	B-Language
:	O	O

Btw	O	O
.	O	O

<div	B-Code_Block	B-Code_Block
id="1">	I-Code_Block	I-Code_Block
this	O	O
is	O	O
not	O	O
valid	O	O
in	O	O
HTML	O	B-Language
,	O	O
an	O	O
ID	O	B-Variable
'd	O	O
needs	O	O
to	O	O
start	O	O
with	O	O
a	O	O
letter	O	O
.	O	O

How	O	O
do	O	O
I	O	O
stop	O	O
MetaTrader	B-Keyboard_IP	B-Application
Terminal	I-Keyboard_IP	I-Application
4	I-Keyboard_IP	B-Version
offline	O	O
chart	O	O
from	O	O
updating	O	O
the	O	O
price	O	O
on	O	O
its	O	O
own	O	O
?	O	O

I	O	O
want	O	O
to	O	O
update	O	O
the	O	O
price	O	O
on	O	O
my	O	O
own	O	O
because	O	O
of	O	O
the	O	O
difference	O	O
in	O	O
timezone	O	O
with	O	O
my	O	O
broker	O	O
.	O	O

I	O	O
have	O	O
checked	O	O
all	O	O
the	O	O
properties	O	O
and	O	O
the	O	O
MQL4	B-Code_Block	B-Language
forum	O	O
.	O	O

No	O	O
luck	O	O
.	O	O

For	O	O
trully	O	O
offline-charts	O	O
,	O	O
there	O	O
is	O	O
a	O	O
way	O	O

While	O	O
regular	O	O
charts	O	O
process	O	O
an	O	O
independent	O	O
event-flow	O	O
,	O	O
received	O	O
from	O	O
MT4-Server	O	B-Application
,	O	O
there	O	O
is	O	O
a	O	O
change	O	O
for	O	O
retaining	O	O
your	O	O
own	O	O
control	O	O
over	O	O
TOHLCV-data	B-Code_Block	B-Code_Block
records	O	O
-	O	O
-	O	O
including	O	O
the	O	O
TimeZone	B-Code_Block	B-Code_Block
shifts	O	O
,	O	O
synthetic	O	O
Bar(s)	B-Code_Block	B-Code_Block
additions	O	O
and	O	O
other	O	O
adaptations	O	O
,	O	O
as	O	O
needed	O	O
.	O	O

You	O	O
may	O	O
create	O	O
your	O	O
own	O	O
,	O	O
transformed	O	O
,	O	O
TOHLCV-history	B-Code_Block	B-Code_Block
and	O	O
import	B-Code_Block	O
these	O	O
records	O	O
via	O	O
F2	B-Keyboard_IP	B-Keyboard_IP
facility	I-Keyboard_IP	O
,	I-Keyboard_IP	O
called	I-Keyboard_IP	O
in	I-Keyboard_IP	O
MT4	I-Keyboard_IP	B-Application
a	I-Keyboard_IP	O
History	I-Keyboard_IP	O
Centre	I-Keyboard_IP	O
.	I-Keyboard_IP	O

How	O	O
to	O	O
avoid	O	O
a	O	O
live-quote-stream	O	O
updates	O	O
in	O	O
MetaTrader	B-Keyboard_IP	B-Application
Terminal	I-Keyboard_IP	I-Application
4	I-Keyboard_IP	B-Version

The	O	O
simplest	O	O
ever	O	O
way	O	O
is	O	O
not	O	O
to	O	O
login	O	O
to	O	O
any	O	O
Trading	O	B-Application
Server	O	I-Application
.	O	O

This	O	O
will	O	O
avoid	O	O
unwanted	O	O
updates	O	O
from	O	O
reaching	O	O
your	O	O
local	O	O
anFxQuoteStreamPROCESSOR	B-Code_Block	B-Code_Block
.	O	O

There	O	O
used	O	O
to	O	O
be	O	O
a	O	O
way	O	O
,	O	O
how	O	O
to	O	O
inject	O	O
fake	O	O
QuoteStreamDATA	B-Code_Block	B-Code_Block
into	O	O
a	O	O
local	O	O
MT4	B-Code_Block	B-Application
,	O	O
however	O	O
this	O	O
enters	O	O
a	O	O
gray	O	O
,	O	O
if	O	O
not	O	O
black	O	O
zone	O	O
,	O	O
as	O	O
MetaQuotes	O	B-Website
,	O	I-Website
Inc	O	I-Website
.	O	I-Website
,	O	O
postulated	O	O
the	O	O
Server/Terminal	O	B-Application
protocol	O	O
to	O	O
be	O	O
a	O	O
protected	O	O
IP	O	O
and	O	O
any	O	O
attempt	O	O
to	O	O
reverse-engineer	O	O
they	O	O
consider	O	O
an	O	O
unlawfull	O	O
violation	O	O
of	O	O
their	O	O
rights	O	O
and	O	O
could	O	O
cause	O	O
legal	O	O
consequences	O	O
,	O	O
so	O	O
be	O	O
carefull	O	O
on	O	O
stepping	O	O
there	O	O
.	O	O

Anyway	O	O
,	O	O
a	O	O
doable	O	O
approach	O	O
with	O	O
an	O	O
explicit	O	O
risk	O	O
warning	O	O
being	O	O
presented	O	O
above	O	O
.	O	O

Ca	O	O
n't	O	O
be	O	O
done	O	O
.	O	O

Quotes	O	O
get	O	O
fed	O	O
in	O	O
from	O	O
mt4	O	B-Application
and	O	O
get	O	O
"	O	O
evented	O	O
"	O	O
into	O	O
the	O	O
metatrader	O	B-Application
.	O	O

I	O	O
want	O	O
to	O	O
change	O	O
the	O	O
compare	O	O
tool	O	O
that	O	O
AnkhSVN	O	B-Application
uses	O	O
in	O	O
VS2012	O	B-Application
but	O	O
the	O	O
"	O	O
Subversion	O	O
Environment	O	O
"	O	O
and	O	O
"	O	O
Subversion	O	O
User	O	O
Tools	O	O
"	O	O
menus	O	O
are	O	O
n't	O	O
showing	O	O
up	O	O
like	O	O
they	O	O
do	O	O
in	O	O
VS2010	O	B-Application
.	O	O

Here	O	O
's	O	O
what	O	O
I	O	O
should	O	O
see	O	O
:	O	O

But	O	O
this	O	O
is	O	O
what	O	O
I	O	O
'm	O	O
seeing	O	O
in	O	O
VS2012	O	B-Application
:	O	O

This	O	O
is	O	O
with	O	O
AnkhSVN	O	B-Application
v	O	O
2.4.11610.27	O	B-Version
(	O	O
the	O	O
latest	O	O
stable	O	O
version	O	O
as	O	O
of	O	O
this	O	O
question	O	O
being	O	O
created	O	O
)	O	O
.	O	O

I	O	O
am	O	O
using	O	O
VS2012	O	B-Application
Ultimate	O	O
but	O	O
,	O	O
presumably	O	O
,	O	O
this	O	O
problem	O	O
would	O	O
also	O	O
occur	O	O
on	O	O
any	O	O
VS2012	O	B-Application
version	O	O
which	O	O
supports	O	O
plugins	O	O
.	O	O

I	O	O
also	O	O
have	O	O
TortoiseSVN	O	B-Library
installed	O	O
on	O	O
my	O	O
computer	O	O
but	O	O
I	O	O
doubt	O	O
that	O	O
it	O	O
related	O	O
to	O	O
this	O	O
problem	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
reinstalling	O	O
the	O	O
AnkhSVN	O	B-Application
plugin	O	O
but	O	O
this	O	O
does	O	O
not	O	O
change	O	O
it	O	O
.	O	O

Other	O	O
than	O	O
this	O	O
problem	O	O
the	O	O
AnkhSVN	O	B-Application
plugin	O	O
seems	O	O
to	O	O
be	O	O
working	O	O
correctly	O	O
.	O	O

I	O	O
have	O	O
n't	O	O
been	O	O
able	O	O
to	O	O
find	O	O
any	O	O
mention	O	O
of	O	O
this	O	O
problem	O	O
on	O	O
the	O	O
CollabNet	O	B-Application
web	O	O
site	O	O
.	O	O

Do	O	O
you	O	O
know	O	O
how	O	O
to	O	O
get	O	O
these	O	O
menu	O	O
items	O	O
to	O	O
show	O	O
up	O	O
?	O	O

This	O	O
happened	O	O
to	O	O
me	O	O
because	O	O
the	O	O
AnkhSVN	O	B-Application
was	O	O
not	O	O
my	O	O
active	O	O
source	O	O
code	O	O
control	O	O
provider	O	O
.	O	O

See	O	O

tools->options->source	O	O
control	O	O
and	O	O
choose	O	O
AnkhSVN	O	B-Application
.	O	O

I	O	O
'm	O	O
sure	O	O
if	O	O
this	O	O
will	O	O
work	O	O
for	O	O
everyone	O	O
but	O	O
I	O	O
found	O	O
that	O	O
doing	O	O
a	O	O
complete	O	O
uninstall/reinstall	O	O
of	O	O
AnkhSVN	O	B-Application
solved	O	O
the	O	O
problem	O	O
for	O	O
me	O	O
and	O	O
go	O	O
into	O	O
Advanced	O	O
during	O	O
the	O	O
installation	O	O
and	O	O
ensure	O	O
that	O	O
VS2012	O	B-Application
is	O	O
selected	O	O
.	O	O

I	O	O
had	O	O
tried	O	O
a	O	O
repair	O	O
before	O	O
this	O	O
and	O	O
it	O	O
did	O	O
n't	O	O
solve	O	O
the	O	O
problem	O	O
.	O	O

It	O	O
needed	O	O
to	O	O
be	O	O
an	O	O
uninstall/reinstall	O	O
with	O	O
VS2012	O	B-Application
selected	O	O
in	O	O
Advanced	O	O
.	O	O

My	O	O
blank.ex	O	B-File_Name
is	O	O
:	O	O

and	O	O
I	O	O
type	O	O
in	O	O
iex	O	B-Application
,	O	O
the	O	O
output	O	O
is	O	O
:	O	O

So	O	O
I	O	O
'm	O	O
wondering	O	O
what	O	O
does	O	O
the	O	O
Any	B-Code_Block	B-Code_Block
means	O	O
in	O	O
this	O	O
context	O	O
?	O	O

and	O	O
I	O	O
got	O	O
something	O	O
interesting	O	O
,	O	O
weather	O	O
or	O	O
not	O	O
I	O	O
use	O	O
the	O	O
implemented	O	O
like	O	O
this	O	O

and	O	O
the	O	O
output	O	O
in	O	O
the	O	O
iex	O	B-Application
before	O	O
it	O	O
's	O	O
the	O	O
same	O	O
.	O	O

Does	O	O
that	O	O
means	O	O
this	O	O
implemented	O	O
does	O	O
nothing	O	O
?	O	O

Or	O	O
I	O	O
have	O	O
missed	O	O
something	O	O
?	O	O

I	O	O
know	O	O
what	O	O
's	O	O
my	O	O
confusing	O	O
.	O	O

I	O	O
also	O	O
get	O	O
started	O	O
with	O	O
example	O	O
this	O	O
site	O	O
.	O	O

Firstly	O	O
my	O	O
blank.ex	O	B-File_Name
is	O	O

and	O	O
after	O	O
I	O	O
compile	O	O
it	O	O
elixirc	B-Code_Block	B-Code_Block
blank.ex	I-Code_Block	I-Code_Block
,	O	O
it	O	O
will	O	O
create	O	O
these	O	O
beam	O	B-File_Type
files	O	O
:	O	O

and	O	O
secondly	O	O
my	O	O
blank.ex	O	B-File_Name
is	O	O

and	O	O
I	O	O
compile	O	O
it	O	O
again	O	O
,	O	O
I	O	O
got	O	O
these	O	O
beam	O	B-File_Type
files	O	O
:	O	O

It	O	O
does	O	O
n't	O	O
delete	O	O
the	O	O
Elixir.Blank.Integer.beam	B-Code_Block	B-File_Name
Elixir.Blank.List.beam	I-Code_Block	I-File_Name
files	O	I-File_Name
,	O	O
and	O	O
when	O	O
I	O	O
run	O	O
in	O	O
iex	O	B-Application
:	O	O

So	O	O
this	O	O
is	O	O
just	O	O
because	O	O
my	O	O
missing	O	O
of	O	O
deleting	O	O
the	O	O
older	O	O
beam	O	B-File_Type
files	O	O
manually	O	O
.	O	O

Any	B-Code_Block	B-Code_Block
clause	O	O
should	O	O
be	O	O
called	O	O
if	O	O
an	O	O
implementation	O	O
is	O	O
not	O	O
provided	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
why	O	O
you	O	O
're	O	O
getting	O	O
these	O	O
weird	O	O
results	O	O
,	O	O
but	O	O
I	O	O
suspect	O	O
you	O	O
have	O	O
some	O	O
incorrect	O	O
definitions	O	O
in	O	O
the	O	O
shell	O	B-Application
session	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
with	O	O
the	O	O
example	O	O
from	O	O
the	O	O
site	O	O
:	O	O

And	O	O
got	O	O
expected	O	O
results	O	O
:	O	O

The	O	O
last	O	O
example	O	O
is	O	O
a	O	O
fallback	O	O
to	O	O
Any	B-Code_Block	B-Code_Block
,	O	O
since	O	O
the	O	O
protocol	O	O
is	O	O
not	O	O
defined	O	O
for	O	O
a	O	O
tuple	O	O
.	O	O

If	O	O
you	O	O
remove	O	O
the	O	O
Any	B-Code_Block	B-Code_Block
implementation	O	O
,	O	O
and	O	O
restart	O	O
the	O	O
shell	O	B-Application
,	O	O
you	O	O
should	O	O
get	O	O
an	O	O
error	O	O
:	O	O

My	O	O
Openfire	O	B-Application
server	O	B-Device
stopped	O	O
automatically	O	O
.	O	O

it	O	O
happens	O	O
every	O	O
2	O	O
or	O	O
3	O	O
days	O	O
.	O	O

I	O	O
have	O	O
to	O	O
restart	O	O
service	O	O
manually	O	O
what	O	O
could	O	O
be	O	O
the	O	O
issue	O	O
?	O	O

it	O	O
really	O	O
a	O	O
big	O	O
issue	O	O
and	O	O
my	O	O
application	O	O
are	O	O
live.Please	O	O
suggest	O	O
me	O	O
what	O	O
was	O	O
the	O	O
issue	O	O
and	O	O
how	O	O
I	O	O
can	O	O
be	O	O
fixed	O	O
it	O	O
.	O	O

Error	O	O
log	O	B-File_Type
:	O	O

2017.08.23	O	B-Output_Block
09:37:35	O	I-Output_Block
org.jivesoftware.openfire.plugin.rest.exceptions.RESTExceptionMapper	O	I-Output_Block
-	O	I-Output_Block
UserAlreadyExistsException	O	I-Output_Block
:	O	I-Output_Block
Could	O	I-Output_Block
not	O	I-Output_Block
create	O	I-Output_Block
new	O	I-Output_Block
user	O	I-Output_Block
with	O	I-Output_Block
ressource	O	I-Output_Block
3	O	I-Output_Block

atg	O	B-Output_Block
.	O	I-Output_Block
jivesoftware	O	I-Output_Block
.	O	I-Output_Block
openfire	O	I-Output_Block
.	O	I-Output_Block
container	O	I-Output_Block
.	O	I-Output_Block
PluginManager	O	I-Output_Block
.	O	I-Output_Block
loadPlugin(PluginManager	O	I-Output_Block
.	O	I-Output_Block
javaorg	O	I-Output_Block
.	O	I-Output_Block
jivesoftware	O	I-Output_Block
.	O	I-Output_Block
openfire	O	I-Output_Block
.	O	I-Output_Block
container	O	I-Output_Block
.	O	I-Output_Block
PluginMonitor$MonitorTask$4	O	I-Output_Block
.	O	I-Output_Block
call(PluginMonitor	O	I-Output_Block
.	O	I-Output_Block
javaorg	O	I-Output_Block
.	O	I-Output_Block
jivesoftware	O	I-Output_Block
.	O	I-Output_Block
openfire	O	I-Output_Block
.	O	I-Output_Block
container	O	I-Output_Block
.	O	I-Output_Block
PluginMonitor$MonitorTask$4	O	I-Output_Block
.	O	I-Output_Block
call(PluginMonitor	O	I-Output_Block
.	O	I-Output_Block
javaat	O	I-Output_Block
java	O	I-Output_Block
.	O	I-Output_Block
util	O	I-Output_Block
.	O	I-Output_Block
concurrent	O	I-Output_Block
.	O	I-Output_Block
FutureTask	O	I-Output_Block
.	O	I-Output_Block
run(FutureTask	O	I-Output_Block
.	O	I-Output_Block
java	O	I-Output_Block
:	O	I-Output_Block
262	O	I-Output_Block
)	O	I-Output_Block

java	O	B-Output_Block
.	O	I-Output_Block
util	O	I-Output_Block
.	O	I-Output_Block
concurrent	O	I-Output_Block
.	O	I-Output_Block
ThreadPoolExecutor	O	I-Output_Block
.	O	I-Output_Block
runWorker(ThreadPoolExecutor	O	I-Output_Block
.	O	I-Output_Block
java	O	I-Output_Block
:	O	I-Output_Block
java	O	I-Output_Block
.	O	I-Output_Block
util	O	I-Output_Block
.	O	I-Output_Block
concurrent	O	I-Output_Block
.	O	I-Output_Block
ThreadPoolExecutor$Worker	O	I-Output_Block
.	O	I-Output_Block
run(ThreadPoolExecutor	O	I-Output_Block
.	O	I-Output_Block
java	O	I-Output_Block
at	O	I-Output_Block
java	O	I-Output_Block
.	O	I-Output_Block
lang	O	I-Output_Block
.	O	I-Output_Block
Thread	O	I-Output_Block
.	O	I-Output_Block
run	O	I-Output_Block

In	O	O
controller	O	O
I	O	O
have	O	O
written	O	O
code	O	O
that	O	O
convert	O	O
rank	O	B-Variable
into	O	O
Float	O	B-Data_Type

but	O	O
here	O	O
I	O	O
am	O	O
getting	O	O
error	O	O
that	O	O
ReferenceError	O	B-Error_Name
:	O	O
details	O	O
is	O	O
not	O	O
defined	O	O

I	O	O
have	O	O
json	O	B-File_Type
like	O	O
this	O	O
:	O	O

In	O	O
html	O	B-File_Type
if	O	O
I	O	O
click	O	O
header	O	B-User_Interface_Element
of	O	O
table	O	B-User_Interface_Element
then	O	O
it	O	O
will	O	O
sort	O	O
the	O	O
table	O	B-User_Interface_Element
both	O	O
ascending	O	O
and	O	O
descending	O	O
order	O	O
but	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
do	O	O
this	O	O
.	O	O

You	O	O
can	O	O
make	O	O
a	O	O
dynamic	O	O
sorting	O	O
by	O	O
clicking	O	O
on	O	O
the	O	O
header	O	B-User_Interface_Element
divs	O	B-HTML_XML_Tag
doing	O	O
like	O	O
that	O	O
:	O	O

And	O	O
in	O	O
your	O	O
controller	O	O

Doing	O	O
so	O	O
it	O	O
will	O	O
revert	O	O
the	O	O
sort	O	O
when	O	O
re-clicking	O	O
on	O	O
the	O	O
header	O	B-User_Interface_Element
of	O	O
a	O	O
column	O	B-User_Interface_Element
.	O	O

PS	O	O
:	O	O
do	O	O
n't	O	O
forget	O	O
to	O	O
dynamically	O	O
name	O	O
your	O	O
IDs	O	B-HTML_XML_Tag
in	O	O
the	O	O
ng-repeat	O	B-Function
directive	O	O
to	O	O
avoid	O	O
errors	O	O
and	O	O
have	O	O
a	O	O
valid	O	O
HTML	O	B-Language
code	O	O
.	O	O

I	O	O
am	O	O
using	O	O
Retrofit	O	B-Class
in	O	O
my	O	O
project	O	O
and	O	O
I	O	O
build	O	O
it	O	O
like	O	O
this	O	O
:	O	O

And	O	O
I	O	O
have	O	O
model	O	O
like	O	O
this	O	O
:	O	O

I	O	O
know	O	O
how	O	O
@Expose	O	B-Code_Block
works	O	O
.	O	O

There	O	O
is	O	O
the	O	O
problem	O	O
,	O	O
that	O	O
I	O	O
need	O	O
to	O	O
serialize	O	B-Function
teacherServiceId	O	B-Variable
in	O	O
one	O	O
request	O	O
.	O	O

In	O	O
other	O	O
ones	O	O
I	O	O
do	O	O
n't	O	O
need	O	O
it	O	O
.	O	O

How	O	O
to	O	O
do	O	O
this	O	O
without	O	O
creating	O	O
new	O	O
model	O	O
class	O	O
and	O	O
Retrofit	O	B-Class
instance	O	O
?	O	O

I	O	O
've	O	O
made	O	O
an	O	O
application	O	O
with	O	O
C#	O	B-Language
,	O	O
in	O	O
this	O	O
application	O	O
I	O	O
have	O	O
to	O	O
read	O	O
every	O	O
20	O	O
second	O	O
840	O	O
registers	O	B-Device
of	O	O
PLC	O	B-Device
via	O	O
Modbus	O	B-Class
TCP	O	I-Class
.	O	O

I	O	O
use	O	O
this	O	O
library	O	O
http://www.codeproject.com/Tips/16260/Modbus-TCP-class	O	O
.	O	O

When	O	O
I	O	O
use	O	O
the	O	O
method	O	O

Master.ReadHoldingRegister(ushortid,byteunit,ushortstartAddress,ushortnumInputs)	B-Code_Block	B-Function

It	O	O
return	O	O
a	O	O
bytes	O	B-Data_Type
array	O	B-Data_Structure
of	O	O
lenght	O	O
144	O	O
and	O	O
not	O	O
1680	O	O
,	O	O
do	O	O
you	O	O
have	O	O
any	O	O
idea	O	O
?	O	O

Modbus	O	B-Class
allows	O	O
up	O	O
to	O	O
125	O	O
holding	O	O
registers	O	B-Device
to	O	O
be	O	O
read	O	O
in	O	O
a	O	O
single	O	O
Read	O	B-Function
Holding	O	I-Function
Registers	O	I-Function
function	O	O
call	O	O
.	O	O

If	O	O
the	O	O
library	O	O
does	O	O
not	O	O
throw	O	O
an	O	O
error	O	O
on	O	O
a	O	O
call	O	O
to	O	O
840	O	O
registers	O	B-Device
,	O	O
then	O	O
it	O	O
is	O	O
probably	O	O
taking	O	O
this	O	O
limit	O	O
into	O	O
account	O	O
by	O	O
spliting	O	O
your	O	O
call	O	O
in	O	O
several	O	O
Read	O	B-Function
Holding	O	I-Function
Registers	O	I-Function
requests	O	O
.	O	O

I	O	O
would	O	O
study	O	O
the	O	O
source	O	O
code	O	O
to	O	O
be	O	O
sure	O	O
that	O	O
you	O	O
can	O	O
do	O	O
that	O	O
reliably	O	O
.	O	O

As	O	O
suggested	O	O
add	O	O
a	O	O
bit	O	O
of	O	O
delay	O	O
between	O	O
the	O	O
calls	O	O
.	O	O

This	O	O
is	O	O
part	O	O
of	O	O
my	O	O
build.xml	O	B-File_Name
.	O	O

I	O	O
am	O	O
triggering	O	O
mvn	O	B-Application
build	O	O
from	O	O
ant	O	O
script	O	O
and	O	O
then	O	O
renaming	O	O
the	O	O
build	O	O
and	O	O
copying	O	O
it	O	O
to	O	O
specific	O	O
location	O	O
.	O	O

There	O	O
is	O	O
a	O	O
concept	O	O
of	O	O
profile	O	O
in	O	O
maven	O	B-Application
.	O	O

Can	O	O
you	O	O
help	O	O
me	O	O
out	O	O
how	O	O
to	O	O
provide	O	O
maven	O	B-Application
profile	O	O
in	O	O
the	O	O
below	O	O
snapshot	O	O
.	O	O

Ant	O	O
is	O	O
actually	O	O
creating	O	O
the	O	O
command	O	O
with	O	O
the	O	O
arguments	O	O
passed	O	O
by	O	O
you	O	O
.	O	O

Just	O	O
add	O	O
your	O	O
profile	O	O
entry	O	O
as	O	O
an	O	O
argument	O	O
.	O	O

like	O	O
this	O	O
.	O	O

private	O	B-Code_Block
void	O	I-Code_Block
XButtonExit_Click	O	I-Code_Block
(	O	I-Code_Block
object	O	I-Code_Block
sender	O	I-Code_Block
,	O	I-Code_Block
EventArgs	O	I-Code_Block
e	O	I-Code_Block
)	O	I-Code_Block
{	O	I-Code_Block
//This	O	I-Code_Block
will	O	I-Code_Block
close	O	I-Code_Block
the	O	I-Code_Block
program	O	I-Code_Block
Close()	O	I-Code_Block
;}	O	I-Code_Block

This	O	O
is	O	O
my	O	O
current	O	O
code	O	O
and	O	O
it	O	O
does	O	O
work	O	O
great	O	O
.	O	O

The	O	O
issue	O	O
is	O	O
,	O	O
I	O	O
need	O	O
to	O	O
make	O	O
all	O	O
of	O	O
the	O	O
TextBoxes	O	B-Class
into	O	O
a	O	O
currency	O	B-Data_Type
format	O	O
.	O	O

When	O	O
I	O	O
try	O	O
the	O	O
math	O	O
no	O	O
longer	O	O
works	O	O
.	O	O

Any	O	O
ideas	O	O
will	O	O
help	O	O
.	O	O

The	O	O
biggest	O	O
problem	O	O
Im	O	O
'	O	O
having	O	O
is	O	O
with	O	O
the	O	O
sales	O	B-Variable
tax	O	I-Variable
when	O	O
converting	O	O
it	O	O
to	O	O
currency	O	B-Data_Type
.	O	O

I	O	O
am	O	O
unable	O	O
to	O	O
make	O	O
the	O	O
math	O	O
work	O	O
if	O	O
subtotal	O	O
is	O	O
in	O	O
the	O	O
currency	O	B-Data_Type
format	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
convert	O	O
it	O	O
back	O	O
to	O	O
decimal	O	B-Data_Type
,	O	O
but	O	O
when	O	O
I	O	O
do	O	O
I	O	O
ca	O	O
n't	O	O
run	O	O
the	O	O
command	O	O
Subtotal	O	B-Code_Block
*	O	I-Code_Block
1.0	O	I-Code_Block

This	O	O
is	O	O
what	O	O
I	O	O
changed	O	O
:	O	O

//Take	O	O
value	O	O
from	O	O
xTextBoxTotal	O	B-Variable
and	O	O
store	O	O
it	O	O

My	O	O
error	O	O
is	O	O
FormatException	O	B-Error_Name
was	O	O
unhandled	O	O
on	O	O
the	O	O
Convert.toInt16(xtextboxTotal.text)	O	B-Function

When	O	O
formating	O	O
a	O	O
numeric	O	O
string	O	B-Data_Type
as	O	O
currency	O	B-Data_Type
,	O	O
you	O	O
have	O	O
to	O	O
parse	O	O
it	O	O
back	O	O
before	O	O
you	O	O
can	O	O
re-convert	O	O
it	O	O
back	O	O
to	O	O
a	O	O
numeric	O	B-Data_Type
form	O	O
,	O	O
this	O	O
depends	O	O
on	O	O
the	O	O
curency	O	B-Data_Type
formatting	O	O
rules	O	O
you	O	O
used	O	O
to	O	O
create	O	O
the	O	O
number	O	O
in	O	O
the	O	O
first	O	O
place	O	O
.	O	O

See	O	O
:	O	O
http://msdn.microsoft.com/en-us/library/3s27fasw.aspx	O	O

the	O	O
following	O	O
question	O	O
may	O	O
seem	O	O
stupid	O	O
to	O	O
many	O	O
,	O	O
since	O	O
it	O	O
should	O	O
have	O	O
a	O	O
simple	O	O
solution	O	O
,	O	O
but	O	O
I	O	O
am	O	O
a	O	O
beginner	O	O
in	O	O
the	O	O
Spring	O	B-Library
framework	O	O
,	O	O
and	O	O
I	O	O
have	O	O
been	O	O
searching	O	O
and	O	O
testing	O	O
many	O	O
methods	O	O
with	O	O
no	O	O
success	O	O
.	O	O

So	O	O
,	O	O
I	O	O
need	O	O
to	O	O
implement	O	O
logging	O	O
for	O	O
a	O	O
Web	O	O
Service	O	O
based	O	O
on	O	O
Spring	O	B-Library
.	O	O

Maven	O	B-Library
is	O	O
used	O	O
for	O	O
dependencies	O	O
,	O	O
with	O	O
the	O	O
spring-boot-starter-ws	B-Code_Block	B-Library
dependency	O	O
,	O	O
and	O	O
not	O	O
the	O	O
whole	O	O
starter-web	O	O
starter	O	O
.	O	O

I	O	O
tried	O	O
with	O	O
log4j	O	B-Library
,	O	O
by	O	O
adding	O	O
a	O	O
dependency	O	O
and	O	O
config	O	B-File_Type
file	O	O
,	O	O
and	O	O
it	O	O
does	O	O
produce	O	O
a	O	O
log	O	B-File_Type
file	O	O
,	O	O
but	O	O
only	O	O
for	O	O
the	O	O
initialization	O	O
of	O	O
the	O	O
logger	O	B-Class
itself	O	O
,	O	O
and	O	O
no	O	O
logging	O	O
about	O	O
when	O	O
the	O	O
service	O	O
is	O	O
used	O	O
,	O	O
although	O	O
log4j	O	B-Library
is	O	O
in	O	O
TRACE	O	O
level	O	O
.	O	O

I	O	O
also	O	O
tried	O	O
with	O	O
logback	O	B-Library
,	O	O
by	O	O
adding	O	O
the	O	O
logback.xml	O	B-File_Name
file	O	O
,	O	O
and	O	O
adding	O	O
the	O	O
starter-logging	O	O
dependency	O	O
,	O	O
but	O	O
that	O	O
also	O	O
creates	O	O
empty	O	O
log	O	B-File_Type
files	O	O
with	O	O
nothing	O	O
on	O	O
them	O	O
.	O	O

In	O	O
the	O	O
Spring	O	B-Library
boot	O	I-Library
documentation	O	O
,	O	O
the	O	O
application.properties	B-Code_Block	B-File_Name
file	O	O
is	O	O
mentioned	O	O
.	O	O

So	O	O
I	O	O
created	O	O
this	O	O
in	O	O
WEB-INF	O	O
,	O	O
and	O	O
put	O	O
the	O	O
logging.level.org.springframework	B-Code_Block	B-Class
and	O	O
the	O	O
logging.path	B-Code_Block	B-Variable
entries	O	O
.	O	O

But	O	O
still	O	O
no	O	O
log	O	B-File_Type
file	O	O
created	O	O
at	O	O
all	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
log	O	O
my	O	O
own	O	O
messages	O	O
,	O	O
I	O	O
just	O	O
want	O	O
to	O	O
log	O	O
the	O	O
events	O	O
generated	O	O
by	O	O
Spring	O	B-Library
itself	O	O
.	O	O

And	O	O
I	O	O
also	O	O
do	O	O
n't	O	O
have	O	O
a	O	O
main	O	B-Function
method	O	O
,	O	O
only	O	O
an	O	O
Endpoint	O	B-Class
for	O	O
the	O	O
web	O	O
service	O	O
,	O	O
if	O	O
any	O	O
of	O	O
these	O	O
might	O	O
be	O	O
relevant	O	O
.	O	O

So	O	O
what	O	O
I	O	O
need	O	O
is	O	O
the	O	O
simplest	O	O
possible	O	O
logging	O	O
,	O	O
possibly	O	O
without	O	O
adding	O	O
too	O	O
many	O	O
dependencies	O	O
or	O	O
so	O	O
,	O	O
and	O	O
retrieve	O	O
the	O	O
Spring	O	B-Library
messages	O	O
into	O	O
the	O	O
log	O	B-File_Type
.	O	O

Can	O	O
someone	O	O
tell	O	O
me	O	O
what	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
?	O	O

logback	O	B-Library
is	O	O
the	O	O
default	O	O
logging	O	O
implementation	O	O
used	O	O
by	O	O
Spring	O	B-Library
Boot	O	I-Library
(	O	O
I	O	O
assume	O	O
you	O	O
are	O	O
using	O	O
spring	O	B-Library
boot	O	I-Library
to	O	O
create	O	O
a	O	O
jar	O	B-File_Type
and	O	O
run	O	O
that	O	O
!	O	O
)	O	O
.	O	O

Basicly	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
do	O	O
anything	O	O
logging	O	O
is	O	O
already	O	O
handled	O	O
by	O	O
the	O	O
starter	O	O
you	O	O
included	O	O
.	O	O

There	O	O
is	O	O
a	O	O
default	O	O
logback.xml	O	B-File_Name
shipped	O	O
with	O	O
Spring	O	B-Library
which	O	O
turns	O	O
on	O	O
logging	O	O
,	O	O
for	O	O
the	O	O
spring	O	B-Library
framework	O	O
this	O	O
is	O	O
on	O	O
INFO	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
override	O	O
this	O	O
simply	O	O
create	O	O
a	O	O
logback.xml	B-Code_Block	B-File_Name
file	O	O
with	O	O
the	O	O
same	O	O
content	O	O
as	O	O
the	O	O
default	O	O
one	O	O
and	O	O
put	O	O
the	O	O
logger	O	B-Class
for	O	O
spring	O	B-Library
on	O	O
DEBUG	O	O
or	O	O
TRACE	O	O
.	O	O

Not	O	O
sure	O	O
if	O	O
you	O	O
really	O	O
want	O	O
to	O	O
put	O	O
everything	O	O
on	O	O
trace	O	O
unless	O	O
you	O	O
want	O	O
a	O	O
less	O	O
performant	O	O
application	O	O
.	O	O

As	O	O
to	O	O
what	O	O
you	O	O
are	O	O
doing	O	O
wrong	O	O
is	O	O
that	O	O
you	O	O
are	O	O
probably	O	O
doing	O	O
to	O	O
much	O	O
and	O	O
thinking	O	O
to	O	O
complex	O	O
.	O	O

dont	O	O
know	O	O
if	O	O
logging.level.org.springframework	B-Code_Block	B-Class
and	I-Code_Block	O
the	I-Code_Block	O
logging.path	I-Code_Block	B-Variable
works	O	O
with	O	O
spring	O	B-Library
boot	O	I-Library
.	O	O

You	O	O
can	O	O
try	O	O
to	O	O
move	O	O
your	O	O
logback.xml	O	B-File_Name
file	O	O
and	O	O
application.properties	O	B-File_Name
directly	O	O
to	O	O
resources	B-Code_Block	O
dir	O	O
+	O	O
paste	O	O
this	O	O
to	O	O
logback.xml	O	B-File_Name

this	O	O
should	O	O
log	O	O
on	O	O
console	O	B-Application
and	O	O
your	O	O
/tmp	O	B-File_Name
(	O	O
if	O	O
linux	O	B-Operating_System
)	O	O
dir	O	O
.	O	O

//Update	O	O
:	O	O

to	O	O
manually	O	O
set	O	O
where	O	O
to	O	O
write	O	O
logs	O	B-File_Type
you	O	O
can	O	O
do	O	O
something	O	O
like	O	O
(	O	O
i	O	O
basically	O	O
reduced	O	O
whats	O	O
inside	O	O
of	O	O
base.xml	O	B-File_Name
which	O	O
is	O	O
imported	O	O
)	O	O
:	O	O

and	O	O
then	O	O
change	O	O

to	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
run	O	O
"	O	O
line	O	O
program	O	O
"	O	O
in	O	O
graphics	O	O
using	O	O
C++	O	B-Language
in	O	O
Code	O	B-Application
Blocks	O	I-Application
.	O	O

I	O	O
had	O	O
already	O	O
done	O	O
setting	O	O
up	O	O
the	O	O
environment	O	O
in	O	O
code	O	B-Application
blocks	O	I-Application
for	O	O
graphics	O	O
.	O	O

Still	O	O
I	O	O
am	O	O
getting	O	O
the	O	O
problem	O	O
in	O	O
this	O	O
program	O	O
.	O	O

The	O	O
program	O	O
shows	O	O
no	O	O
error	O	O
,	O	O
but	O	O
when	O	O
I	O	O
run	O	O
it	O	O
,	O	O
it	O	O
does	O	O
n't	O	O
show	O	O
any	O	O
line	O	O
in	O	O
output	O	O
.	O	O

Output	O	O
my	O	O
program	O	O
is	O	O
showing	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
:	O	O

on	O	O
this	O	O
webpage	O	O
if	O	O
you	O	O
scroll	O	O
down	O	O
to	O	O
the	O	O
first	O	O
inline	O	O
image	O	B-User_Interface_Element
,	O	O
i	O	O
have	O	O
a	O	O
before/after	O	O
javascript	O	B-Language
slider	O	B-User_Interface_Element
happening	O	O
.	O	O

however	O	O
,	O	O
the	O	O
normal	O	O
centering	O	O
options	O	O
do	O	O
n't	O	O
seem	O	O
to	O	O
be	O	O
working	O	O
for	O	O
me	O	O
and	O	O
end	O	O
up	O	O
breaking	O	O
the	O	O
slider	O	B-User_Interface_Element
.	O	O

any	O	O
help	O	O
would	O	O
be	O	O
appreciate	O	O
.	O	O

HTML	O	B-Language
:	O	O

CSS	O	B-Language
:	O	O

There	O	O
are	O	O
many	O	O
problems	O	O
with	O	O
this	O	O
.	O	O

Like	O	O
the	O	O
outer	O	O
containers	O	O
have	O	O
a	O	O
width	O	O
less	O	O
than	O	O
the	O	O
inner	O	O
elements	O	O
.	O	O

But	O	O
for	O	O
now	O	O
you	O	O
can	O	O
try	O	O
this	O	O
.	O	O

same	O	O
as	O	O
your	O	O
images	O	B-User_Interface_Element

I	O	O
am	O	O
new	O	O
to	O	O
webpack	O	B-Library
and	O	O
going	O	O
through	O	O
webpack	O	B-Library
documentation	O	O
here	O	O
https://webpack.js.org/loaders/	O	O
:	O	O

And	O	O
I	O	O
happened	O	O
to	O	O
find	O	O
this	O	O
:	O	O

test	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
/	I-Code_Block	I-Code_Block
\.css$/	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block

Just	O	O
wondering	O	O
what	O	O
are	O	O
those	O	O
front/back	O	B-Value
slashes	O	I-Value
and	O	O
$	O	B-Value
symbol	O	O
meant	O	O
for	O	O
?	O	O

What	O	O
i	O	O
want	O	O
to	O	O
do	O	O
is	O	O
to	O	O
install	O	O
on	O	O
my	O	O
computer	O	B-Device
opencv	O	B-Library
with	O	O
a	O	O
very	O	O
specific	O	O
version	O	O
(	O	O
2.4.10	O	B-Version
)	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
switch	O	O
the	O	O
branch	O	O
on	O	O
github	O	B-Website
but	O	O
it	O	O
does	O	O
not	O	O
give	O	O
me	O	O
what	O	O
i	O	O
need	O	O
.	O	O

I	O	O
only	O	O
need	O	O
opencv	O	B-Library
core	O	O
package	O	O
.	O	O

Do	O	O
you	O	O
know	O	O
where	O	O
i	O	O
can	O	O
download	O	O
this	O	O
version	O	O
on	O	O
officials	O	O
repositories	O	O
?	O	O

Thanks	O	O

Below	O	O
is	O	O
the	O	O
method	O	O
to	O	O
clone	O	O
OpenCV	B-Code_Block	B-Library
2.4.10	I-Code_Block	B-Version
through	O	O
TortoiseGit	B-Code_Block	B-Application
2.4.0.3	I-Code_Block	B-Version
.	O	O

Clone	O	O
OpenCV	B-Code_Block	B-Library
HEAD	I-Code_Block	B-Code_Block
from	O	O
https://github.com/opencv/opencv.git	B-Code_Block	O
.	O	O

In	O	O
the	O	O
cloned	O	O
directory	O	O
,	O	O
right	O	O
click	O	O
and	O	O
select	O	O
TortoiseGit	B-Code_Block	B-Application
from	O	O
the	O	O
popup	O	O
menu	O	B-User_Interface_Element
.	O	O

From	O	O
the	O	O
sub	O	O
menu	O	B-User_Interface_Element
,	O	O
select	O	O
Switch/Checkout	B-Code_Block	B-Code_Block
.	O	O

In	O	O
Switch/Checkout	B-Code_Block	B-Code_Block
menu	O	B-User_Interface_Element
,	O	O
select	O	O
OpenCV-2.4.10	B-Code_Block	B-Library
from	O	O
Branch	B-Code_Block	B-Code_Block
or	O	O
2.4.10	B-Code_Block	B-Version
from	O	O
Tag	B-Code_Block	B-Code_Block
.	O	O

See	O	O
show	B-Code_Block	B-Code_Block
log	I-Code_Block	I-Code_Block
to	O	O
verify	O	O
if	O	O
the	O	O
right	O	O
version	O	O
is	O	O
cloned	O	O
or	O	O
not	O	O
.	O	O

Hope	O	O
this	O	O
help	O	O
.	O	O

EDIT	O	O
:	O	O

The	O	O
image	O	B-User_Interface_Element
below	O	O
shows	O	O
the	O	O
subfolder	O	O
with	O	O
the	O	O
opencv-2.4.10	B-Code_Block	B-Library
core	I-Code_Block	O
package	O	O
from	O	O
the	O	O
GitHub	O	B-Website
clone	O	O
.	O	O

I	O	O
am	O	O
starting	O	O
a	O	O
project	O	O
where	O	O
I	O	O
need	O	O
to	O	O
make	O	O
some	O	O
not	O	O
equality	O	O
Join	O	O
.	O	O

Now	O	O
,	O	O
I	O	O
've	O	O
read	O	O
that	O	O
neither	O	O
Pig	O	B-Application
nor	O	O
Hive	O	B-Application
support	O	O
inequality	O	O
Join	O	O
.	O	O

I	O	O
have	O	O
also	O	O
read	O	O
that	O	O
Pig	O	B-Application
can	O	O
support	O	O
that	O	O
by	O	O
using	O	O
CROSS	O	B-Code_Block
and	O	O
FILTER	O	B-Code_Block
.	O	O

Could	O	O
I	O	O
do	O	O
that	O	O
also	O	O
in	O	O
Hive	O	B-Application
using	O	O
WHERE	O	B-Code_Block
clause	O	O
?	O	O
Are	O	O
there	O	O
any	O	O
cases	O	O
where	O	O
it	O	O
is	O	O
not	O	O
possible	O	O
?	O	O

Finally	O	O
,	O	O
supposed	O	O
that	O	O
I	O	O
can	O	O
do	O	O
that	O	O
both	O	O
in	O	O
Pig	O	B-Application
and	O	O
in	O	O
Hive	O	B-Application
,	O	O
which	O	O
would	O	O
be	O	O
better	O	O
about	O	O
performance	O	O
?	O	O

I	O	O
remember	O	O
Hive	O	B-Application
can	O	O
only	O	O
use	O	O
one	O	O
reducer	O	O
to	O	O
do	O	O
"	O	O
CROSS	O	B-Code_Block
"	O	O
.	O	O

Pig	O	B-Application
uses	O	O
a	O	O
smart	O	O
approach	O	O
to	O	O
implement	O	O
"	O	O
CROSS	O	B-Code_Block
"	O	O
and	O	O
run	O	O
it	O	O
in	O	O
parallel	O	O
and	O	O
it	O	O
usually	O	O
has	O	O
better	O	O
performance	O	O
than	O	O
Hive	O	B-Application
.	O	O

BTW	O	O
,	O	O
I	O	O
have	O	O
not	O	O
updated	O	O
my	O	O
knowledge	O	O
about	O	O
Hive	O	B-Application
and	O	O
Pig	O	B-Application
for	O	O
one	O	O
year	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
if	O	O
Hive	O	B-Application
improved	O	O
"	O	O
CROSS	O	B-Code_Block
"	O	O
in	O	O
the	O	O
past	O	O
year	O	O
.	O	O

Problem	O	O
:	O	O

I	O	O
want	O	O
to	O	O
use	O	O
a	O	O
different	O	O
size	O	O
scale	O	O
for	O	O
edges	O	B-User_Interface_Element
and	O	O
nodes	O	B-User_Interface_Element
in	O	O
a	O	O
network	O	B-Library
created	O	O
with	O	O
the	O	O
ggnetwork	O	B-Library
package	O	O
.	O	O

If	O	O
you	O	O
look	O	O
at	O	O
the	O	O
image	O	B-User_Interface_Element
below	O	O
you	O	O
may	O	O
think	O	O
I	O	O
already	O	O
did	O	O
that	O	O
since	O	O
they	O	O
all	O	O
have	O	O
different	O	O
sizes	O	O
but	O	O
in	O	O
fact	O	O
edge	O	B-User_Interface_Element
and	O	O
node	O	B-User_Interface_Element
size	O	O
are	O	O
not	O	O
scaled	O	O
independently	O	O
in	O	O
this	O	O
plot	O	B-User_Interface_Element
.	O	O

They	O	O
are	O	O
both	O	O
scaled	O	O
by	O	O
the	O	O
scale_size_area()	B-Code_Block	B-Function
function	O	O
towards	O	O
the	O	O
same	O	O
maximum	O	O
(	O	O
30	O	B-Value
)	O	O
.	O	O

If	O	O
I	O	O
get	O	O
larger	O	O
nodes	O	O
my	O	O
edges	O	O
will	O	O
shrink	O	O
.	O	O

I	O	O
guess	O	O
my	O	O
problem	O	O
boils	O	O
down	O	O
to	O	O
scaling	O	O
the	O	O
size	O	O
of	O	O
different	O	O
geoms	O	O
with	O	O
different	O	O
functions	O	O
.	O	O

So	O	O
for	O	O
example	O	O
how	O	O
can	O	O
I	O	O
scale	O	O
the	O	O
size	O	O
of	O	O
the	O	O
nodes	O	O
with	O	O
scale_size_area	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
max_size	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
30	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
and	O	O
the	O	O
size	O	O
of	O	O
the	O	O
edges	O	O
with	O	O
scale_size_continuous	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
range	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
c(1,6))	I-Code_Block	I-Code_Block
?	O	O

Example	O	O
code	O	O
:	O	O

Example	O	O
plot	O	B-User_Interface_Element
:	O	O

Almost	O	O
a	O	O
duplicate	O	O
of	O	O
this	O	O
question	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
a	O	O
ggplot2	O	B-Library
expert	O	O
,	O	O
but	O	O
as	O	O
far	O	O
I	O	O
understand	O	O
,	O	O
dual-scaling	O	O
(	O	O
e.g	O	O
.	O	O
having	O	O
two	O	O
y-axes	O	O
or	O	O
two	O	O
color	O	O
scales	O	O
)	O	O
contradicts	O	O
the	O	O
grammar	O	O
of	O	O
graphics	O	O
.	O	O

The	O	O
solution	O	O
to	O	O
the	O	O
aforementioned	O	O
question	O	O
might	O	O
work	O	O
,	O	O
but	O	O
it	O	O
's	O	O
a	O	O
hack	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
SVG	O	B-File_Type
images	O	B-User_Interface_Element
in	O	O
CKEDITOR	O	B-Application
.	O	O

To	O	O
accomplish	O	O
this	O	O
I	O	O
base64_encode	O	B-Function
the	O	O
image	O	B-User_Interface_Element
and	O	O
using	O	O
them	O	O
in	O	O
the	O	O
image	O	B-User_Interface_Element
source	O	O
,	O	O
so	O	O
the	O	O
image	O	B-User_Interface_Element
becomes	O	O
:	O	O

This	O	O
almost	O	O
works	O	O
.	O	O

In	O	O
the	O	O
preview	O	B-Application
I	O	O
see	O	O
the	O	O
image	O	B-User_Interface_Element
.	O	O

The	O	O
problem	O	O
is	O	O
,	O	O
the	O	O
moment	O	O
I	O	O
save	O	O
the	O	O
image	O	O
the	O	O
"	O	B-Value
+	O	I-Value
"	O	I-Value
-signs	O	O
become	O	O
replaces	O	O
by	O	O
whitespaces	O	B-Value
.	O	O

It	O	O
seems	O	O
to	O	O
be	O	O
an	O	O
CKEditor	O	B-Application
setting	O	O
.	O	O

I	O	O
var_dumped	O	B-Function
the	O	O
variable	O	O
the	O	O
moment	O	O
it	O	O
came	O	O
to	O	O
the	O	O
server	O	B-Application
,	O	O
and	O	O
the	O	O
spaces	O	B-Value
where	O	O
already	O	O
there	O	O
.	O	O

Does	O	O
anyone	O	O
have	O	O
a	O	O
clue	O	O
how	O	O
this	O	O
is	O	O
happening	O	O
?	O	O

I	O	O
testing	O	O
an	O	O
implementation	O	O
of	O	O
the	O	O
singleton	O	B-Class
pattern	O	O
and	O	O
I	O	O
feel	O	O
like	O	O
I	O	O
ca	O	O
n't	O	O
figure	O	O
out	O	O
why	O	O
IntelliJ	O	B-Application
is	O	O
throwing	O	O
me	O	O
an	O	O
error	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
.	O	O

And	O	O
here	O	O
is	O	O
where	O	O
how	O	O
I	O	O
'm	O	O
calling	O	O
it	O	O
:	O	O

The	O	O
error	O	O
I	O	O
'm	O	O
getting	O	O
:	O	O

You	O	O
are	O	O
calling	O	O
static	B-Code_Block	B-Data_Type
method	O	O
which	O	O
can	O	O
be	O	O
called	O	O
by	O	O
the	O	O
Class	O	O
so	O	O
remove	O	O
the	O	O
new	B-Code_Block	B-Code_Block
keyword	O	O
and	O	O
update	O	O
the	O	O
code	O	O
as	O	O
below	O	O
:	O	O

The	O	O
other	O	O
answers	O	O
are	O	O
correct	O	O
-	O	O
however	O	O
this	O	O
implementation	O	O
of	O	O
the	O	O
Singleton	O	B-Class
pattern	O	O
is	O	O
horribly	O	O
flawed	O	O
and	O	O
will	O	O
break	O	O
in	O	O
unexpected	O	O
ways	O	O
in	O	O
a	O	O
multi-threading	O	O
environment	O	O
.	O	O

The	O	O
easiest	O	O
way	O	O
is	O	O
not	O	O
to	O	O
have	O	O
lazy	O	O
initialization	O	O
of	O	O
the	O	O
singleton	O	B-Class
,	O	O
if	O	O
you	O	O
really	O	O
must	O	O
have	O	O
lazy	O	O
initialization	O	O
then	O	O
do	O	O
it	O	O
using	O	O
a	O	O
static	O	B-Data_Type
holder	O	O
:	O	O

This	O	O
uses	O	O
the	O	O
class	O	O
loader	O	O
to	O	O
handle	O	O
all	O	O
the	O	O
lazy	O	O
initialization	O	O
,	O	O
thread	O	O
safety	O	O
,	O	O
etc	O	O
for	O	O
you	O	O
.	O	O

It	O	O
's	O	O
completely	O	O
thread	O	O
safe	O	O
and	O	O
fast	O	O
due	O	O
to	O	O
the	O	O
fact	O	O
that	O	O
it	O	O
does	O	O
n't	O	O
need	O	O
synchronization	O	O
or	O	O
null	O	B-Value
checks	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
implement	O	O
an	O	O
algorithm	O	O
for	O	O
process	O	O
histograms	O	O
images	O	B-User_Interface_Element
using	O	O
multiple	O	O
threads	O	O
.	O	O

One	O	O
of	O	O
the	O	O
most	O	O
common	O	O
approach	O	O
is	O	O
to	O	O
split	O	O
multiple	O	O
thread	O	O
create	O	O
a	O	O
cache	O	O
buffer	O	B-Data_Structure
on	O	O
each	O	O
one	O	O
,	O	O
do	O	O
the	O	O
histogram	O	O
on	O	O
the	O	O
cache	O	O
buffer	O	B-Data_Structure
and	O	O
then	O	O
lock	O	O
a	O	O
mutex	O	O
addition	O	O
the	O	O
values	O	O
on	O	O
the	O	O
local	O	O
to	O	O
the	O	O
output	O	O
vector	O	B-Data_Structure
,	O	O
and	O	O
unlock	O	O
the	O	O
buffer	O	B-Data_Structure
.	O	O

This	O	O
approach	O	O
is	O	O
very	O	O
efficient	O	O
but	O	O
can	O	O
introduce	O	O
a	O	O
'	O	O
jam	O	O
'	O	O
.	O	O

I	O	O
mean	O	O
the	O	O
additions	O	O
of	O	O
the	O	O
datas	O	O
cannot	O	O
be	O	O
realized	O	O
concurently	O	O
.	O	O

In	O	O
most	O	O
of	O	O
the	O	O
case	O	O
when	O	O
the	O	O
range	O	O
of	O	O
the	O	O
values	O	O
is	O	O
quite	O	O
short	O	O
(	O	O
e.g	O	O
.	O	O
0-255	O	B-Value
)	O	O
it	O	O
's	O	O
the	O	O
time	O	O
needed	O	O
to	O	O
proceed	O	O
the	O	O
addition	O	O
is	O	O
very	O	O
fast	O	O
and	O	O
can	O	O
be	O	O
neglect	O	O
.	O	O

If	O	O
the	O	O
range	O	O
of	O	O
datas	O	O
is	O	O
higher	O	O
like	O	O
for	O	O
example	O	O
on	O	O
thermal	O	O
images	O	B-User_Interface_Element
this	O	O
time	O	O
can	O	O
become	O	O
more	O	O
significant	O	O
.	O	O

Thermal	O	O
images	O	B-User_Interface_Element
are	O	O
often	O	O
matrix	O	B-Data_Structure
of	O	O
unsigned	O	B-Data_Type
short	O	I-Data_Type
,	O	O
even	O	O
if	O	O
the	O	O
values	O	O
does	O	O
n't	O	O
use	O	O
the	O	O
full	O	O
range	O	O
(	O	O
0-65535	O	B-Value
)	O	O
the	O	O
algorithm	O	O
must	O	O
process	O	O
all	O	O
the	O	O
range	O	O
.	O	O

In	O	O
order	O	O
to	O	O
speed	O	O
up	O	O
a	O	O
little	O	O
bit	O	O
hte	O	O
processing	O	O
I	O	O
thought	O	O
to	O	O
launch	O	O
a	O	O
background	O	O
thread	O	O
to	O	O
do	O	O
the	O	O
addition	O	O
while	O	O
the	O	O
"	O	O
foreground	O	O
"	O	O
thread	O	O
would	O	O
only	O	O
write	O	O
the	O	O
datas	O	O
into	O	O
a	O	O
preallocated	O	O
buffer	O	B-Data_Structure
.	O	O

So	O	O
basically	O	O
the	O	O
work	O	O
of	O	O
a	O	O
"	O	O
foreground	O	O
"	O	O
thread	O	O
used	O	O
to	O	O
be	O	O
that	O	O
:	O	O

get	O	O
a	O	O
buffer	O	O
from	O	O
a	O	O
circular	O	O
buffer	O	O
.	O	O

process	O	O
the	O	O
histogram	O	O
for	O	O
a	O	O
specified	O	O
set	O	O
of	O	O
data	O	O
(	O	O
e.g	O	O
.	O	O
from	O	O
line	O	O
n	O	B-Variable
to	O	O
line	O	O
m	O	B-Variable
)	O	O
.	O	O

-notify	O	O
the	O	O
background	O	O
buffer	O	B-Data_Structure
the	O	O
operations	O	O
are	O	O
finished	O	O
.	O	O

The	O	O
background	O	O
thread	O	O
used	O	O
to	O	O
do	O	O
:	O	O

wait	O	O
until	O	O
a	O	O
notification	O	O
arrive	O	O
and	O	O
check	O	O
if	O	O
the	O	O
number	O	O
of	O	O
available	O	O
buffer	O	B-Data_Structure
is	O	O
lower	O	O
than	O	O
the	O	O
number	O	O
of	O	O
buffers	O	B-Data_Structure
.	O	O

If	O	O
the	O	O
conditions	O	O
are	O	O
true	O	B-Value
then	O	O
look	O	O
for	O	O
the	O	O
buffer	O	B-Data_Structure
to	O	O
be	O	O
processed	O	O
from	O	O
the	O	O
buffers	O	B-Data_Structure
available	O	O
.	O	O

Do	O	O
the	O	O
addition	O	O
with	O	O
the	O	O
output	O	O
buffer	O	O
.	O	O

make	O	O
the	O	O
processed	O	O
buffer	O	O
reusable	O	O
.	O	O

I	O	O
am	O	O
not	O	O
very	O	O
familiar	O	O
with	O	O
condition	O	O
variables	O	O
.	O	O

So	O	O
in	O	O
order	O	O
to	O	O
check	O	O
communication	O	O
between	O	O
the	O	O
threads	O	O
using	O	O
conditions	O	O
variable	O	O
I	O	O
wrote	O	O
the	O	O
following	O	O
toy	O	B-Class
sample	O	O
:	O	O

toy.h	O	B-File_Name

main	O	B-File_Name
.cpp	O	I-File_Name

This	O	O
code	O	O
as	O	O
is	O	O
use	O	O
to	O	O
work	O	O
without	O	O
difficulties	O	O
.	O	O

The	O	O
unwanted	O	O
aspect	O	O
of	O	O
the	O	O
code	O	O
is	O	O
written	O	O
on	O	O
the	O	O
method	O	O
background	O	O
:	O	O

I	O	O
must	O	O
check	O	O
the	O	O
position	O	O
of	O	O
the	O	O
variable	O	O
"	O	O
it	O	B-Variable
"	O	O
otherwise	O	O
it	O	O
can	O	O
take	O	O
a	O	O
position	O	O
outside	O	O
of	O	O
the	O	O
buffer	O	O
size	O	O
.	O	O

The	O	O
way	O	O
I	O	O
thought	O	O
was	O	O
:	O	O

-	O	O
At	O	O
the	O	O
end	O	O
of	O	O
the	O	O
foreground	O	O
thread	O	O
a	O	O
notification	O	O
is	O	O
send	O	O
to	O	O
the	O	O
background	O	O
thread	O	O
.	O	O

-	O	O
Then	O	O
the	O	O
background	O	O
thread	O	O
process	O	O
the	O	O
buffers	O	B-Data_Structure
(	O	O
or	O	O
the	O	O
buffers	O	B-Data_Structure
depending	O	O
how	O	O
fast	O	O
the	O	O
threads	O	O
are	O	O
ending	O	O
)	O	O
.	O	O

-	O	O
At	O	O
the	O	O
end	O	O
the	O	O
background	O	O
thread	O	O
notify	O	O
to	O	O
the	O	O
next	O	O
foreground	O	O
thread	O	O
(	O	O
in	O	O
the	O	O
method	O	O
get_buffer())	O	B-Function
it	O	O
has	O	O
finish	O	O
to	O	O
process	O	O
the	O	O
buffer	O	B-Data_Structure
and	O	O
has	O	O
made	O	O
it	O	O
reusable	O	O
.	O	O

Following	O	O
these	O	O
statement	O	O
when	O	O
the	O	O
background	O	O
thread	O	O
is	O	O
looking	O	O
for	O	O
a	O	O
thread	O	O
it	O	O
use	O	O
to	O	O
find	O	O
it	O	O
between	O	O
Buf_start	O	B-Variable
and	O	O
_Buf_end	O	B-Variable
.	O	O

So	O	O
the	O	O
seeking	O	O
of	O	O
the	O	O
buffer	O	O
in	O	O
the	O	O
method	O	O
background	O	O
use	O	O
to	O	O
be	O	O
:	O	O

After	O	O
several	O	O
hours	O	O
of	O	O
tests	O	O
I	O	O
have	O	O
no	O	O
idea	O	O
what	O	O
's	O	O
wrong	O	O
.	O	O

I	O	O
am	O	O
also	O	O
interested	O	O
to	O	O
know	O	O
if	O	O
this	O	O
algorithm	O	O
really	O	O
work	O	O
like	O	O
I	O	O
think	O	O
it	O	O
do	O	O
?	O	O

Is	O	O
there	O	O
any	O	O
more	O	O
efficient	O	O
,	O	O
less	O	O
processing	O	O
way	O	O
to	O	O
communicate	O	O
between	O	O
threads	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

I	O	O
fix	O	O
it	O	O
!	O	O

:)	O	O
.	O	O

I	O	O
identify	O	O
several	O	O
issues	O	O
from	O	O
the	O	O
class	O	O
"	O	O
toy	O	B-Class
"	O	O
.	O	O

In	O	O
the	O	O
overload	O	O
of	O	O
the	O	O
operator	B-Code_Block	O
()	I-Code_Block	B-Code_Block
I	O	O
copy	O	O
past	O	O
the	O	O
code	O	O
of	O	O
the	O	O
method	O	O
get	B-Code_Block	B-Function
buffer()	I-Code_Block	I-Function
.	O	O

I	O	O
did	O	O
a	O	O
block	O	O
function	O	O
around	O	O
the	O	O
wait	O	O
condition	O	O
in	O	O
order	O	O
to	O	O
not	O	O
to	O	O
be	O	O
sequential	O	O
over	O	O
thread	O	O
.	O	O

The	O	O
unique_lock	B-Code_Block	B-Code_Block
needed	O	O
by	O	O
the	O	O
condition	O	O
variable	O	O
exist	O	O
only	O	O
between	O	O
the	O	O
brackets	O	O
of	O	O
the	O	O
block	O	O
function	O	O
,	O	O
like	O	O
this	O	O
when	O	O
the	O	O
wait	O	O
condition	O	O
has	O	O
been	O	O
evaluated	O	O
the	O	O
mutex	O	O
_mtx_foreground	B-Code_Block	B-Code_Block
is	O	O
unlock	O	O
.	O	O

Then	O	O
in	O	O
order	O	O
to	O	O
prevent	O	O
an	O	O
outbound	O	O
during	O	O
the	O	O
search	O	O
of	O	O
the	O	O
available	O	O
buffer	O	O
the	O	O
while	B-Code_Block	O
loop	O	O
has	O	O
been	O	O
replaced	O	O
by	O	O
a	O	O
for	B-Code_Block	B-Code_Block
loop	O	O
.	O	O

The	O	O
issue	O	O
was	O	O
on	O	O
the	O	O
condition	O	O
to	O	O
satisfy	O	O
for	O	O
increment	O	O
the	O	O
pointer	O	B-Data_Type
.	O	O

On	O	O
the	O	O
"	O	O
background	O	O
"	O	O
thread	O	O
I	O	O
add	O	O
a	O	O
loop	O	O
.	O	O

The	O	O
idea	O	O
is	O	O
that	O	O
:	O	O

The	O	O
background	O	O
thread	O	O
must	O	O
run	O	O
until	O	O
the	O	O
end	O	O
of	O	O
the	O	O
end	O	O
of	O	O
the	O	O
algorithm	O	O
.	O	O

The	O	O
background	O	O
thread	O	O
is	O	O
waiting	O	O
for	O	O
a	O	O
notification	O	O

from	O	O
one	O	O
of	O	O
the	O	O
foreground	O	O
thread	O	O
.	O	O

Look	O	O
for	O	O
a	O	O
buffer	O	B-Data_Structure
to	O	O
process	O	O
,	O	O

process	O	O
it	O	O
,	O	O
remake	O	O
it	O	O
available	O	O
and	O	O
notify	O	O
it	O	O
to	O	O
the	O	O
foreground	O	O
thread	O	O
.	O	O

redo	O	O
until	O	O
all	O	O
the	O	O
buffers	O	B-Data_Structure
are	O	O
processed	O	O
then	O	O
go	O	O
back	O	O
to	O	O
2)	O	O
.	O	O

Here	O	O
some	O	O
part	O	O
have	O	O
been	O	O
"	O	O
deeply	O	O
"	O	O
modified	O	O
.	O	O

The	O	O
up	O	O
to	O	O
date	O	O
implementation	O	O
of	O	O
the	O	O
class	B-Code_Block	O
toy	I-Code_Block	B-Class
called	O	O
toy2	O	B-Class
is	O	O
this	O	O
one	O	O
:	O	O

I	O	O
have	O	O
a	O	O
few	O	O
entities	O	O
:	O	O

A	O	O
User	B-Code_Block	B-Variable
can	O	O
have	O	O
Jobs	B-Code_Block	B-Variable
assigned	O	O
to	O	O
them	O	O
.	O	O

A	O	O
Job	B-Code_Block	B-Variable
can	O	O
contain	O	O
Tasks	B-Code_Block	B-Variable
.	O	O

I	O	O
can	O	O
get	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
users	O	B-Variable
easily	O	O
enough	O	O
.	O	O

For	O	O
some	O	O
reason	O	O
,	O	O
the	O	O
Job	B-Code_Block	B-Variable
was	O	O
n't	O	O
given	O	O
a	O	O
User	B-Code_Block	B-Variable
record	O	O
,	O	O
just	O	O
a	O	O
copy	O	O
of	O	O
their	O	O
ID	O	B-Variable
so	O	O
I	O	O
'd	O	O
need	O	O
to	O	O
link	O	O
them	O	O
together	O	O
like	O	O
this	O	O
(	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
if	O	O
that	O	O
's	O	O
important	O	O
information	O	O
)	O	O
.	O	O

My	O	O
question	O	O
is	O	O
:	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
get	O	O
a	O	O
count	O	B-Variable
of	O	O
tasks	O	O
assigned	O	O
to	O	O
the	O	O
user	O	B-Variable
?	O	O

I	O	O
'd	O	O
essentially	O	O
like	O	O
something	O	O
like	O	O
this	O	O
,	O	O
although	O	O
this	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

That	O	O
sort	O	O
of	O	O
thing	O	O
would	O	O
allow	O	O
me	O	O
to	O	O
access	O	O
tasksCount	B-Code_Block	B-Variable
as	O	O
a	O	O
property	O	O
of	O	O
the	O	O
user	B-Code_Block	B-Variable
:	O	O

Something	O	O
I	O	O
tried	O	O
was	O	O
this	O	O
.	O	O

That	O	O
can	O	O
get	O	O
scores	O	B-Variable
,	O	O
but	O	O
it	O	O
breaks	O	O
the	O	O
results	O	O
and	O	O
means	O	O
I	O	O
'd	O	O
have	O	O
to	O	O
pull	O	O
some	O	O
clever	O	O
tricks	O	O
in	O	O
the	O	O
twig	O	B-File_Type
file	O	O
to	O	O
make	O	O
it	O	O
work	O	O
.	O	O

The	O	O
results	O	O
are	O	O
passed	O	O
to	O	O
the	O	O
twig	O	B-File_Type
file	O	O
as	O	O
the	O	O
parameter	O	O
users	B-Code_Block	B-Variable
,	O	O
but	O	O
the	O	O
code	O	O
above	O	O
gives	O	O
me	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
user	O	B-Variable
,	O	O
count	O	B-Variable
,	O	O
user	O	B-Variable
,	O	O
count	O	B-Variable
.	O	O
.	O	O

I	O	O
'd	O	O
prefer	O	O
to	O	O
keep	O	O
the	O	O
count	O	B-Variable
as	O	O
part	O	O
of	O	O
the	O	O
user	O	B-Variable
as	O	O
I	O	O
'd	O	O
prefer	O	O
to	O	O
keep	O	O
that	O	O
logic	O	O
away	O	O
from	O	O
the	O	O
twig	O	B-File_Type
file	O	O
.	O	O

I	O	O
'd	O	O
also	O	O
prefer	O	O
not	O	O
to	O	O
hydrate	O	O
the	O	O
results	O	O
as	O	O
an	O	O
array	O	B-Data_Structure
because	O	O
I	O	O
've	O	O
got	O	O
a	O	O
function	O	O
on	O	O
the	O	O
User	B-Code_Block	B-Variable
entity	O	O
that	O	O
generates	O	O
a	O	O
Gravatar	O	B-Application
image	O	B-User_Interface_Element
.	O	O

This	O	O
allows	O	O
me	O	O
to	O	O
generate	O	O
the	O	O
Gravatar	O	B-Application
image	O	O
in	O	O
the	O	O
twig	O	B-File_Type
file	O	O
.	O	O

Is	O	O
what	O	O
I	O	O
want	O	O
possible	O	O
?	O	O

i	O	O
am	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
difference	O	O
between	O	O
class	O	O
RSAPKCS1Signatureformatter	O	B-Class
and	O	O
RSACryptoServiceProvider	O	B-Class

as	O	O
when	O	O
i	O	O
sign	O	O
data	O	O
using	O	O
RSAPKCS1Signatureformatter	O	B-Class
it	O	O
returns	O	O
different	O	O
signature	O	O
value	O	O
than	O	O
signing	O	O
using	O	O
RSACryptoServiceProvider	O	B-Class
.	O	O

RSAPKCS1SignatureFormatter	B-Code_Block	B-Class
just	O	O
calls	O	O
RSACryptoServiceProvider.SignHash	B-Code_Block	B-Function
.	O	O

Since	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
a	O	O
code	O	O
sample	O	O
it	O	O
's	O	O
not	O	O
easy	O	O
to	O	O
say	O	O
what	O	O
the	O	O
problem	O	O
is	O	O
.	O	O

Psychic	O	O
debugging	O	O
says	O	O
that	O	O
you	O	O
're	O	O
calling	O	O
SignData	O	B-Function
when	O	O
using	O	O
the	O	O
RSA	O	B-Class
object	O	O
directly	O	O
,	O	O
which	O	O
results	O	O
in	O	O
it	O	O
getting	O	O
hashed	O	O
again	O	O
,	O	O
and	O	O
that	O	O
what	O	O
you	O	O
really	O	O
want	O	O
is	O	O
SignHash	O	B-Function
(	O	O
for	O	O
pre-digested	O	O
values	O	O
)	O	O
.	O	O

Trying	O	O
to	O	O
determine	O	O
how	O	O
to	O	O
take	O	O
advantage	O	O
of	O	O
Angular	O	B-Library
's	O	O
toolset	O	O
for	O	O
a	O	O
problem	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
solve	O	O
.	O	O

My	O	O
application	O	O
will	O	O
be	O	O
a	O	O
single	O	O
page	O	O
application	O	O
,	O	O
but	O	O
it	O	O
will	O	O
also	O	O
only	O	O
have	O	O
one	O	O
route	O	B-Class
.	O	O

There	O	O
is	O	O
no	O	O
other	O	O
"	O	O
state	O	O
"	O	O
as	O	O
in	O	O
URL	O	O
state	O	O
at	O	O
all	O	O
.	O	O

As	O	O
far	O	O
as	O	O
I	O	O
can	O	O
tell	O	O
,	O	O
you	O	O
can	O	O
take	O	O
advantage	O	O
of	O	O
controllers	O	O
and	O	O
views	O	O
in	O	O
a	O	O
1:1	O	O
relationship	O	O
with	O	O
a	O	O
route	O	B-Class
.	O	O

What	O	O
I	O	O
would	O	O
like	O	O
is	O	O
to	O	O
have	O	O
Controller+View	O	O
combinations	O	O
for	O	O
components	O	O
on	O	O
the	O	O
page	O	B-User_Interface_Element
.	O	O

(	O	O
A	O	O
component	O	O
could	O	O
be	O	O
a	O	O
widget	O	B-User_Interface_Element
,	O	O
modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
,	O	O
etc	O	O
.	O	O
)	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
leverage	O	O
Angular	O	B-Library
in	O	O
this	O	O
situation	O	O
?	O	O

Note	O	O
:	O	O
I	O	O
have	O	O
seen	O	O
https://github.com/angular-ui/ui-router	O	O
,	O	O
but	O	O
this	O	O
still	O	O
relies	O	O
heavily	O	O
on	O	O
creating	O	O
"	O	O
states	O	O
"	O	O
of	O	O
the	O	O
application	O	O
and	O	O
tying	O	O
it	O	O
to	O	O
a	O	O
URL	O	O
.	O	O

To	O	O
include	O	O
HTML	O	B-Language
partials	O	O
,	O	O
you	O	O
can	O	O
use	O	O
the	O	O
ng-include	B-Code_Block	B-HTML_XML_Tag
directive	O	O
.	O	O

This	O	O
can	O	O
be	O	O
coupled	O	O
with	O	O
the	O	O
ng-controller	B-Code_Block	B-HTML_XML_Tag
directive	O	O
in	O	O
a	O	O
few	O	O
different	O	O
ways	O	O
:	O	O

You	O	O
can	O	O
nest	O	O
an	O	O
element	O	O
with	O	O
ng-include	B-Code_Block	B-HTML_XML_Tag
inside	O	O
an	O	O
ng-controller	B-Code_Block	B-HTML_XML_Tag
:	O	O

You	O	O
can	O	O
include	O	O
an	O	O
ng-controller	B-Code_Block	B-HTML_XML_Tag
directive	O	O
inside	O	O
an	O	O
included	O	O
partial	O	O
:	O	O

You	O	O
can	O	O
also	O	O
combine	O	O
ng-include	B-Code_Block	B-HTML_XML_Tag
and	O	O
ng-controller	B-Code_Block	B-HTML_XML_Tag
directives	O	O
on	O	O
the	O	O
same	O	O
element	O	O
:	O	O

Please	O	O
note	O	O
that	O	O
in	O	O
each	O	O
of	O	O
the	O	O
examples	O	O
above	O	O
,	O	O
the	O	O
string	O	B-Data_Type
literal	O	O
in	O	O
the	O	O
ng-include	B-Code_Block	B-HTML_XML_Tag
directive	O	O
is	O	O
wrapped	O	O
in	O	O
single	O	O
quotes	O	O
-	O	O
this	O	O
is	O	O
because	O	O
the	O	O
directive	O	O
expects	O	O
an	O	O
expression	O	O
.	O	O

Depending	O	O
on	O	O
what	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
accomplish	O	O
,	O	O
you	O	O
may	O	O
need	O	O
to	O	O
utilize	O	O
one	O	O
or	O	O
more	O	O
of	O	O
these	O	O
techniques	O	O
.	O	O

I	O	O
also	O	O
expect	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
work	O	O
heavily	O	O
with	O	O
directives	O	O
(	O	O
for	O	O
example	O	O
,	O	O
you	O	O
can	O	O
use	O	O
the	O	O
UI	O	B-Class
Bootstrap	O	I-Class
modal	O	I-Class
)	O	O
,	O	O
which	O	O
can	O	O
have	O	O
their	O	O
own	O	O
controller	O	O
as	O	O
well	O	O
.	O	O

I	O	O
set	O	O
up	O	O
a	O	O
Plunker	O	B-Application
here	O	O
with	O	O
a	O	O
couple	O	O
working	O	O
examples	O	O
of	O	O
the	O	O
ng-include	B-Code_Block	B-HTML_XML_Tag
options	O	O
listed	O	O
above	O	O
,	O	O
including	O	O
swapping	O	O
the	O	O
included	O	O
template	O	O
dynamically	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
speak	O	O
to	O	O
the	O	O
feasibility	O	O
of	O	O
actually	O	O
building	O	O
a	O	O
production	O	O
application	O	O
like	O	O
this	O	O
,	O	O
but	O	O
it	O	O
appears	O	O
to	O	O
be	O	O
possible	O	O
,	O	O
at	O	O
least	O	O
on	O	O
first	O	O
glance	O	O
.	O	O

I	O	O
'm	O	O
basically	O	O
asking	O	O
which	O	O
is	O	O
more	O	O
costly	O	O
on	O	O
the	O	O
CPU	O	B-Device
.	O	O

The	O	O
situation	O	O
is	O	O
that	O	O
I	O	O
have	O	O
about	O	O
40-400	O	O
particles	O	B-Class
on	O	O
the	O	O
screen	O	B-User_Interface_Element
at	O	O
any	O	O
one	O	O
given	O	O
time	O	O
.	O	O

Each	O	O
particle	O	B-Class
has	O	O
a	O	O
List	O	B-Data_Structure
of	O	O
ParticleAI	O	B-Class
which	O	O
have	O	O
an	O	O
Update()	O	B-Function
method	O	O
that	O	O
returns	O	O
a	O	O
List	O	B-Data_Structure
of	O	O
newly	O	O
created	O	O
Particle	O	B-Class
objects	O	O
,	O	O
if	O	O
any	O	O
.	O	O

Now	O	O
,	O	O
since	O	O
this	O	O
game	O	O
is	O	O
being	O	O
made	O	O
for	O	O
mobile	O	B-Device
,	O	O
efficiency	O	O
on	O	O
the	O	O
processor	O	B-Device
is	O	O
key	O	O
.	O	O

I	O	O
was	O	O
wondering	O	O
if	O	O
it	O	O
is	O	O
more	O	O
costly	O	O
to	O	O
create	O	O
something	O	O
between	O	O
100-2000	O	B-Value
Lists	O	B-Data_Structure
every	O	O
frame	O	O
(	O	O
at	O	O
60FPS	O	O
)	O	O
which	O	O
may	O	O
be	O	O
empty	O	O
,	O	O
which	O	O
is	O	O
the	O	O
way	O	O
I	O	O
have	O	O
it	O	O
now	O	O
,	O	O
or	O	O
to	O	O
return	O	O
nulls	O	B-Value
and	O	O
do	O	O
a	O	O
null	O	B-Value
check	O	O
for	O	O
each	O	O
AI	O	B-Class
.	O	O

For	O	O
some	O	O
reason	O	O
,	O	O
in	O	O
my	O	O
brain	O	O
it	O	O
seems	O	O
constructing	O	O
a	O	O
List	O	B-Data_Structure
object	O	O
would	O	O
take	O	O
more	O	O
processor	O	B-Device
time	O	O
than	O	O
simply	O	O
returning	O	O
a	O	O
null	O	O
and	O	O
then	O	O
doing	O	O
a	O	O
boolean	O	B-Data_Type
check	O	O
for	O	O
it	O	O
.	O	O

Am	O	O
I	O	O
wrong	O	O
in	O	O
my	O	O
assumption	O	O
?	O	O

I	O	O
have	O	O
looked	O	O
at	O	O
other	O	O
similar	O	O
questions	O	O
,	O	O
such	O	O
as	O	O
this	O	O
one	O	O
,	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
seem	O	O
to	O	O
answer	O	O
my	O	O
question	O	O
.	O	O

I	O	O
get	O	O
that	O	O
best	O	O
practice	O	O
is	O	O
to	O	O
return	O	O
empty	O	O
,	O	O
but	O	O
I	O	O
am	O	O
not	O	O
making	O	O
this	O	O
game	O	O
for	O	O
anyone	O	O
else	O	O
to	O	O
edit	O	O
,	O	O
and	O	O
so	O	O
I	O	O
know	O	O
that	O	O
a	O	O
null	O	B-Value
will	O	O
never	O	O
be	O	O
received	O	O
unexpectedly	O	O
.	O	O

I	O	O
need	O	O
to	O	O
know	O	O
in	O	O
pure	O	O
processing	O	O
terms	O	O
which	O	O
is	O	O
better	O	O
,	O	O
simply	O	O
because	O	O
of	O	O
the	O	O
sheer	O	O
number	O	O
of	O	O
particle	O	B-Class
objects	O	O
being	O	O
created	O	O
at	O	O
once	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
!	O	O

EDIT	O	O
:	O	O

Just	O	O
realized	O	O
something	O	O
which	O	O
may	O	O
work	O	O
better	O	O
.	O	O

Would	O	O
it	O	O
be	O	O
a	O	O
better	O	O
idea	O	O
to	O	O
(	O	O
instead	O	O
of	O	O
creating	O	O
a	O	O
new	O	O
list	O	B-Data_Structure
and	O	O
returning	O	O
it	O	O
for	O	O
every	O	O
particleAI	O	B-Class
every	O	O
frame	O	O
)	O	O
create	O	O
each	O	O
particleAI	O	B-Class
's	O	O
return	O	O
list	O	B-Data_Structure
at	O	O
construction	O	O
and	O	O
then	O	O
clear	O	O
it	O	O
at	O	O
the	O	O
beginning	O	O
of	O	O
each	O	O
Update()	O	B-Function
phase	O	O
?	O	O

That	O	O
almost	O	O
seems	O	O
like	O	O
it	O	O
would	O	O
be	O	O
the	O	O
best	O	O
option	O	O
.	O	O

As	O	O
objects	O	O
are	O	O
shared	O	O
,	O	O
reusing	O	O
the	O	O
same	O	O
list	O	B-Data_Structure
object	O	O
will	O	O
not	O	O
do	O	O
.	O	O

Would	O	O
involve	O	O
copying	O	O
.	O	O

Null	O	B-Value
or	O	O
empty	O	O
list	O	B-Data_Structure
?	O	O

Assuming	O	O
you	O	O
want	O	O
to	O	O
read	O	O
from	O	O
and	O	O
write	O	O
to	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
null	O	B-Value
seems	O	O
ugly	O	O
.	O	O

In	O	O
java	O	B-Language
a	O	O
LinkedList	O	B-Class
would	O	O
be	O	O
lighter	O	O
that	O	O
an	O	O
ArrayList	O	B-Class
,	O	O
so	O	O
pick	O	O
a	O	O
linked	O	B-Class
list	O	I-Class
.	O	O

Null	O	B-Value
would	O	O
be	O	O
faster	O	O
.	O	O

A	O	O
read-only	O	O
,	O	O
to-be-replaced	O	O
Collections.emptyList()	B-Code_Block	B-Function
would	O	O
be	O	O
a	O	O
bit	O	O
safer	O	O
.	O	O

Instead	O	O
of	O	O
the	O	O
data	O	O
structure	O	O
of	O	O
one	O	O
aspect	O	O
it	O	O
might	O	O
be	O	O
worthwile	O	O
considering	O	O
the	O	O
algorithmic	O	O
approach	O	O
.	O	O

Spending	O	O
time	O	O
on	O	O
the	O	O
right	O	O
relevant	O	O
things	O	O
.	O	O

Queues	O	B-Data_Structure
.	O	O

Priorities	O	O
.	O	O

I	O	O
dont	O	O
know	O	O
how	O	O
to	O	O
express	O	O
myself	O	O
very	O	O
well	O	O
about	O	O
this	O	O
doubt	O	O
,	O	O
but	O	O
i	O	O
will	O	O
try	O	O
best	O	O
.	O	O

My	O	O
app	O	O
will	O	O
have	O	O
various	O	O
quests	O	O
(	O	O
hosted	O	O
on	O	O
a	O	O
database	O	O
)	O	O
that	O	O
the	O	O
user	O	O
must	O	O
try	O	O
to	O	O
make	O	O
them	O	O
.	O	O

I	O	O
want	O	O
the	O	O
app	O	O
to	O	O
update	O	O
the	O	O
quest	O	O
with	O	O
a	O	O
random	O	O
quest	O	O
from	O	O
the	O	O
database	O	O
and	O	O
display	O	O
it	O	O
on	O	O
the	O	O
app	O	O
during	O	O
24	O	O
hours	O	O
,	O	O
and	O	O
the	O	O
after	O	O
that	O	O
24	O	O
hours	O	O
display	O	O
another	O	O
one	O	O
,	O	O
etc	O	O
,	O	O
i	O	O
think	O	O
you	O	O
understood	O	O
it	O	O
now	O	O
.	O	O

How	O	O
can	O	O
i	O	O
achieve	O	O
that	O	O
?	O	O

I	O	O
searched	O	O
the	O	O
web	O	O
and	O	O
i	O	O
cant	O	O
find	O	O
anything	O	O
that	O	O
suits	O	O
my	O	O
needs	O	O
.	O	O

You	O	O
store	O	O
a	O	O
timestamp	O	B-Class
on	O	O
the	O	O
users	O	O
phone	O	O
.	O	O

When	O	O
he	O	O
logs	O	O
in	O	O
you	O	O
compare	O	O
the	O	O
timestamp	O	B-Class
with	O	O
the	O	O
current	O	O
time	O	O
.	O	O

If	O	O
there	O	O
are	O	O
24	O	O
hours	O	O
passed	O	O
you	O	O
update	O	O
the	O	O
quest	O	O
and	O	O
the	O	O
stored	O	O
timestamp	O	B-Class
.	O	O

use	O	O
this	O	O

I	O	O
would	O	O
like	O	O
a	O	O
notepad++	O	B-Application
regex	O	O
to	O	O
replace	O	O

into	O	O

There	O	O
may	O	O
also	O	O
be	O	O
three	O	O
or	O	O
for	O	O
Brackets	O	O
in	O	O
each	O	O
line	O	O
that	O	O
this	O	O
would	O	O
need	O	O
to	O	O
work	O	O
on	O	O
.	O	O

Should	O	O
become	O	O

What	O	O
i	O	O
have	O	O
so	O	O
far	O	O
is	O	O

Do	O	O
a	O	O
regular	O	O
expression	O	O
find/replace	O	O
like	O	O
this	O	O
:	O	O

Open	O	O
Replace	O	O
Dialog	O	B-User_Interface_Element

Find	O	O
What	O	O
:	O	O
[	B-Code_Block	B-Value
^	I-Code_Block	I-Value
\[\]]*\[([^\]]+)\]	I-Code_Block	I-Value

Replace	O	O
With	O	O
:	O	O
\1\n	B-Code_Block	B-Value

Check	O	O
regular	O	O
expression	O	O

Click	O	O
Replace	O	O
or	O	O
Replace	O	O
All	O	O

Explanation	O	O

one	O	O
problem	O	O
is	O	O
that	O	O
brackets	O	O
are	O	O
RE	O	O
metacharacters	O	O
,	O	O
that	O	O
means	O	O
we	O	O
have	O	O
to	O	O
escape	O	O
each	O	O
bracket	O	O
,	O	O
when	O	O
we	O	O
need	O	O
a	O	O
literal	O	O
bracket	O	O
,	O	O
i.e	O	O
.	O	O

a	O	O
literal	O	O
bracket	O	O
becomes	O	O
\	B-Code_Block	B-Value
[	I-Code_Block	I-Value
or	O	O
\	B-Code_Block	B-Value
]	I-Code_Block	I-Value
in	O	O
the	O	O
RE	O	O

here	O	O
in	O	O
the	O	O
RE	O	O
we	O	O
look	O	O
for	O	O
an	O	O
optional	O	O
part	O	O
that	O	O
may	O	O
consist	O	O
of	O	O
everything	O	O
not	O	O
brackets	O	O
(	O	O
[	B-Code_Block	B-Value
\	I-Code_Block	I-Value
[	I-Code_Block	I-Value
\	I-Code_Block	I-Value
]	I-Code_Block	I-Value
]	B-Code_Block	B-Value
*)	I-Code_Block	I-Value

followed	O	O
by	O	O
an	O	O
opening	O	O
bracket	O	O
,	O	O
followed	O	O
by	O	O
somthing	O	O
not	O	O
a	O	O
closing	O	O
bracket	O	O
((	B-Code_Block	B-Value
[	I-Code_Block	I-Value
^\	I-Code_Block	I-Value
]	I-Code_Block	I-Value
]	B-Code_Block	B-Value
+))	I-Code_Block	I-Value
which	O	O
is	O	O
also	O	O
captured	O	O
into	O	O
\1	B-Code_Block	B-Value
due	O	O
to	O	O
the	O	O
parentheses	O	O
,	O	O
for	O	O
reuse	O	O
in	O	O
the	O	O
substitution	O	O

whatever	O	O
is	O	O
matched	O	O
above	O	O
is	O	O
completely	O	O
replaced	O	O
by	O	O
whatever	O	O
was	O	O
captured	O	O
into	O	O
\1	B-Code_Block	B-Value
followed	O	O
by	O	O
a	O	O
newline	O	O
(	O	O
\n	B-Code_Block	B-Value
)	O	O
,	O	O
when	O	O
you	O	O
need	O	O
windows-style	O	O
lineendings	O	O
,	O	O
you	O	O
might	O	O
want	O	O
to	O	O
use	O	O
\r\n	B-Code_Block	B-Value
instead	O	O

I	O	O
recently	O	O
found	O	O
out	O	O
that	O	O
there	O	O
are	O	O
two	O	O
types	O	O
of	O	O
LayoutManager	O	B-Function
you	O	O
can	O	O
use	O	O
in	O	O
working	O	O
with	O	O
RecyclerView	O	B-Class
,	O	O
one	O	O
from	O	O
native	O	O
Android	O	B-Operating_System
and	O	O
one	O	O
from	O	O
Leanback	O	B-Library
library	O	O
.	O	O

I	O	O
need	O	O
to	O	O
use	O	O
the	O	O
one	O	O
from	O	O
leanback	O	B-Library
in	O	O
order	O	O
to	O	O
be	O	O
able	O	O
to	O	O
maintain	O	O
the	O	O
position	O	O
of	O	O
the	O	O
focused	O	O
element	O	O
fixed	O	O
in	O	O
the	O	O
middle	O	O
of	O	O
the	O	O
screen	O	B-Device
.	O	O

The	O	O
problem	O	O
is	O	O
I	O	O
need	O	O
to	O	O
set	O	O
this	O	O
layout	O	O
to	O	O
stack	O	O
from	O	O
end	O	O
so	O	O
the	O	O
direction	O	O
would	O	O
be	O	O
to	O	O
scroll	O	O
to	O	O
left	O	O
,	O	O
not	O	O
the	O	O
default	O	O
right	O	O
scrolling	O	O
.	O	O

In	O	O
the	O	O
native	O	O
library	O	O
,	O	O
there	O	O
are	O	O
two	O	O
methods	O	O
I	O	O
can	O	O
use	O	O
to	O	O
achieve	O	O
this	O	O
,	O	O
setStackFromEnd(true)	O	B-Function
or	O	O
setReverseLayout(true)	O	B-Function
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
I	O	O
can	O	O
achieve	O	O
this	O	O
from	O	O
Leanback	O	B-Library
LayoutManager	O	B-Function
?	O	O

Thanks	O	O
You	O	O

I	O	O
was	O	O
reading	O	O
an	O	O
article	O	O
linked	O	O
from	O	O
a	O	O
slashdot	O	B-Website
story	O	O
,	O	O
and	O	O
came	O	O
across	O	O
this	O	O
little	O	O
tidbit	O	O
:	O	O

I	O	O
've	O	O
scoured	O	O
the	O	O
internet	O	O
(	O	O
okay	O	O
,	O	O
I	O	O
spent	O	O
at	O	O
least	O	O
15	O	O
minutes	O	O
googling	O	O
variations	O	O
on	O	O
"	O	O
java	O	B-Language
question	O	O
mark	O	O
"	O	O
)	O	O
and	O	O
got	O	O
nothing	O	O
.	O	O

So	O	O
,	O	O
my	O	O
question	O	O
:	O	O
is	O	O
there	O	O
any	O	O
official	O	O
documentation	O	O
on	O	O
this	O	O
?	O	O

I	O	O
found	O	O
that	O	O
C#	O	B-Language
has	O	O
a	O	O
similar	O	O
operator	O	O
(	O	O
the	O	O
"	O	O
?	O	B-Code_Block
?	O	I-Code_Block
"	O	O
operator	O	O
)	O	O
,	O	O
but	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
get	O	O
the	O	O
documentation	O	O
for	O	O
the	O	O
language	O	O
I	O	O
'm	O	O
working	O	O
in	O	O
.	O	O

Or	O	O
,	O	O
is	O	O
this	O	O
just	O	O
a	O	O
use	O	O
of	O	O
the	O	O
ternary	O	O
operator	O	O
that	O	O
I	O	O
've	O	O
never	O	O
seen	O	O
before	O	O
.	O	O

Thanks	O	O
!	O	O

EDIT	O	O
:	O	O
Link	O	O
to	O	O
the	O	O
article	O	O
:	O	O
http://infoworld.com/d/developer-world/12-programming-mistakes-avoid-292	O	O

The	O	O
original	O	O
idea	O	O
comes	O	O
from	O	O
groovy	O	B-Language
.	O	O

It	O	O
was	O	O
proposed	O	O
for	O	O
Java	O	B-Language
7	O	B-Version
as	O	O
part	O	O
of	O	O
Project	O	O
Coin	O	O
:	O	O
https://wiki.openjdk.java.net/display/Coin/2009+Proposals+TOC	O	O
(	O	O
Elvis	O	O
and	O	O
Other	O	O
Null-Safe	O	O
Operators	O	O
)	O	O
,	O	O
but	O	O
has	O	O
n't	O	O
been	O	O
accepted	O	O
yet	O	O
.	O	O

The	O	O
related	O	O
Elvis	O	O
operator	O	O
?	O	B-Code_Block
:	O	I-Code_Block
was	O	O
proposed	O	O
to	O	O
make	O	O
x	O	B-Code_Block
?	B-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
y	I-Code_Block	I-Code_Block
shorthand	O	O
for	O	O
x	O	B-Code_Block
!=	B-Code_Block	I-Code_Block
null	I-Code_Block	I-Code_Block
?	I-Code_Block	I-Code_Block
x	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
y	I-Code_Block	I-Code_Block
,	I-Code_Block	O
especially	O	O
useful	O	O
when	O	O
x	O	B-Variable
is	O	O
a	O	O
complex	O	O
expression	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
this	O	O
would	O	O
even	O	O
work	O	O
;	O	O
if	O	O
,	O	O
say	O	O
,	O	O
the	O	O
person	O	O
reference	O	O
was	O	O
null	O	B-Value
,	O	O
what	O	O
would	O	O
the	O	O
runtime	O	O
replace	O	O
it	O	O
with	O	O
?	O	O

A	O	O
new	O	O
Person	O	B-Class
?	O	O

That	O	O
would	O	O
require	O	O
the	O	O
Person	O	B-Class
to	O	O
have	O	O
some	O	O
default	O	O
initialization	O	O
that	O	O
you	O	O
'd	O	O
expect	O	O
in	O	O
this	O	O
case	O	O
.	O	O

You	O	O
may	O	O
avoid	O	O
null	O	B-Error_Name
reference	O	I-Error_Name
exceptions	O	I-Error_Name
but	O	O
you	O	O
'd	O	O
still	O	O
get	O	O
unpredictable	O	O
behavior	O	O
if	O	O
you	O	O
did	O	O
n't	O	O
plan	O	O
for	O	O
these	O	O
types	O	O
of	O	O
setups	O	O
.	O	O

The	O	O
?	O	B-Code_Block
?	O	I-Code_Block

operator	O	O
in	O	O
C#	O	B-Language
might	O	O
be	O	O
best	O	O
termed	O	O
the	O	O
"	O	O
coalesce	O	O
"	O	O
operator	O	O
;	O	O
you	O	O
can	O	O
chain	O	O
several	O	O
expressions	O	O
and	O	O
it	O	O
will	O	O
return	O	O
the	O	O
first	O	O
that	O	O
is	O	O
n't	O	O
null	O	B-Value
.	O	O

Unfortunately	O	O
,	O	O
Java	O	B-Language
does	O	O
n't	O	O
have	O	O
it	O	O
.	O	O

I	O	O
think	O	O
the	O	O
best	O	O
you	O	O
could	O	O
do	O	O
is	O	O
use	O	O
the	O	O
ternary	O	O
operator	O	O
to	O	O
perform	O	O
null	O	B-Value
checks	O	O
and	O	O
evaluate	O	O
an	O	O
alternative	O	O
to	O	O
the	O	O
entire	O	O
expression	O	O
if	O	O
any	O	O
member	O	O
in	O	O
the	O	O
chain	O	O
is	O	O
null	O	B-Value
:	O	O

You	O	O
could	O	O
also	O	O
use	O	O
try-catch	O	B-Code_Block
:	O	O

please	O	O
help	O	O
solve	O	O
the	O	O
problem	O	O
.	O	O

i	O	O
made	O	O
on	O	O
localhost	O	O
rails4-application	O	O
and	O	O
push	O	O
him	O	O
on	O	O
github	O	B-Website
.	O	O

after	O	O
i	O	O
create	O	O
account	O	O
on	O	O
heroku	O	B-Application
and	O	O
connected	O	O
to	O	O
my	O	O
github-repository	O	O
and	O	O
starting	O	O
manual	O	O
deploy	O	O
.	O	O

in	O	O
result	O	O
i	O	O
get	O	O
follow	O	O
error	O	O
messages	O	O
:	O	O

I	O	O
tried	O	O
all	O	O
the	O	O
solutions	O	O
to	O	O
this	O	O
topic	O	O
:	O	O
heroku	O	B-Application
push	O	O
rejected	O	O
,	O	O
failed	O	O
to	O	O
compile	O	O
Ruby/rails	O	B-Language
app	O	O

but	O	O
they	O	O
did	O	O
not	O	O
help	O	O
me	O	O

You	O	O
ca	O	O
n't	O	O
install	O	O
the	O	O
debugger	O	B-Application
gem	O	B-File_Type
on	O	O
Heroku	O	B-Application
and	O	O
you	O	O
probably	O	O
do	O	O
n't	O	O
want	O	O
it	O	O
there	O	O
.	O	O

Put	O	O
it	O	O
into	O	O
a	O	O
development	B-Code_Block	B-Value
group	O	O
in	O	O
your	O	O
gem	O	B-File_Type
file	O	O
so	O	O
that	O	O
it	O	O
is	O	O
available	O	O
in	O	O
your	O	O
local	O	O
development	O	O
environment	O	O
but	O	O
not	O	O
deployed	O	O
in	O	O
production	O	O
,	O	O
e.g	O	O
.	O	O

See	O	O
https://devcenter.heroku.com/articles/ruby-support#debugger-gems-fail-to-install	O	O
for	O	O
further	O	O
explanation	O	O
.	O	O

I	O	O
have	O	O
a	O	O
project	O	O
working	O	O
with	O	O
CodeIgniter	O	B-Library
and	O	O
sqlserver	O	B-Application
2008	O	B-Version
I	O	O
updated	O	O
my	O	O
pc	O	B-Device
to	O	O
windows	O	B-Operating_System
10	O	B-Version
then	O	O
stopped	O	O
working	O	O
,	O	O
the	O	O
sqlserver	O	B-Application
driver	O	I-Application
for	O	O
php	O	B-Language
is	O	O
configured	O	O
and	O	O
my	O	O
php	O	B-Language
ini	O	B-File_Type
shows	O	O
it	O	O
,	O	O
also	O	O
the	O	O
code	O	O
connects	O	O
to	O	O
sql	O	B-Application
server	O	I-Application
but	O	O
now	O	O
when	O	O
im	O	O
triying	O	O
to	O	O
do	O	O
a	O	O
query	O	O
it	O	O
givme	O	O
false	O	O

so	O	O
this	O	O
code	O	O
:	O	O

Always	O	O
its	O	O
like	O	O
sqlserver	O	B-Application
not	O	O
working	O	O
anymore	O	O
but	O	O
cannot	O	O
fix	O	O
it	O	O
.	O	O

Php	O	B-Language
info	O	O
shows	O	O

EDIT	O	O
:	O	O

its	O	O
my	O	O
mistake	O	O
cannot	O	O
conect	O	O

the	O	O
database	O	O
config	O	B-File_Type
its	O	O
okay	O	O
:S	O	O

The	O	O
error	O	O
wasnt	O	O
on	O	O
the	O	O
config	O	B-File_Type
,	O	O
was	O	O
on	O	O
the	O	O
password	O	O
that	O	O
was	O	O
expired	O	O
but	O	O
the	O	O
code	O	B-Library
igniter	O	I-Library
was	O	O
n't	O	O
showing	O	O
the	O	O
error	O	O
becouse	O	O
i	O	O
have	O	O
to	O	O
active	O	O
this	O	O
config	O	B-File_Type
:	O	O

database.php	O	B-File_Name

Solved	O	O
;)	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
learn	O	O
git	O	B-Application
using	O	O
a	O	O
tutorial	O	O
(	O	O
https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-clone	O	O
)	O	O
.	O	O

git	O	B-Code_Block
config	O	I-Code_Block
--global	O	I-Code_Block
alias	O	I-Code_Block
.	O	O

From	O	O
the	O	O
tutorial	O	O
i	O	O
came	O	O
to	O	O
know	O	O
that	O	O
to	O	O
create	O	O
a	O	O
shortcut	O	O
for	O	O
a	O	O
Git	O	B-Application
command	O	O
,	O	O
the	O	O
above	O	O
syntax	O	O
can	O	O
be	O	O
used	O	O
.	O	O

Can	O	O
anyone	O	O
provide	O	O
me	O	O
a	O	O
working	O	O
example	O	O
for	O	O
creating	O	O
a	O	O
shortcut	O	O
for	O	O
a	O	O
git	O	B-Application
command	O	O
without	O	O
using	O	O
the	O	O
equal	O	O
synatax	O	O
as	O	O
the	O	O
above	O	O
syntax	O	O
didnt	O	O
work	O	O
for	O	O
me	O	O
.	O	O

The	O	O
aliases	O	O
you	O	O
see	O	O
in	O	O
the	O	O
article	O	O
are	O	O
:	O	O

They	O	O
can	O	O
be	O	O
set	O	O
with	O	O
:	O	O

It	O	O
works	O	O
fine	O	O
for	O	O
me	O	O
.	O	O

I	O	O
think	O	O
part	O	O
of	O	O
the	O	O
problem	O	O
is	O	O
that	O	O
your	O	O
reading	O	O
it	O	O
too	O	O
literally	O	O
.	O	O

That	O	O
's	O	O
not	O	O
your	O	O
fault	O	O
;	O	O
the	O	O
instructions	O	O
do	O	O
n't	O	O
explain	O	O
its	O	O
own	O	O
syntax	O	O
very	O	O
well	O	O
.	O	O

Here	O	O
's	O	O
what	O	O
I	O	O
did	O	O
:	O	O

Notice	O	O
how	O	O
I	O	O
did	O	O
n't	O	O
just	O	O
write	O	O
"	O	O
alias.<alias>	B-Code_Block	B-Code_Block
"	O	O
or	O	O
the	O	O
like	O	O
.	O	O

The	O	O
whole	O	O
purpose	O	O
of	O	O
the	O	O
config	O	B-Code_Block
command	O	O
is	O	O
to	O	O
actually	O	O
configure	O	O
how	O	O
git	O	B-Application
works	O	O
.	O	O

The	O	O
point	O	O
of	O	O
alias	O	O
is	O	O
to	O	O
give	O	O
all	O	O
your	O	O
commands	O	O
like	O	O
config	O	B-Code_Block
,	O	O
help	O	B-Code_Block
,	O	O
init	O	B-Code_Block
,	O	O
etc	O	O
.	O	O
new	O	O
ways	O	O
to	O	O
be	O	O
called	O	O
upon	O	O
.	O	O

In	O	O
the	O	O
above	O	O
example	O	O
,	O	O
I	O	O
typed	O	O
right	O	O
next	O	O
to	O	O
"	O	O
alias	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
"	O	O
what	O	O
I	O	O
wanted	O	O
the	O	O
NEW	O	O
command	O	O
to	O	O
be	O	O
,	O	O
and	O	O
a	O	O
space	O	O
away	O	O
on	O	O
the	O	O
right	O	O
where	O	O
it	O	O
says	O	O
"	O	O
help	B-Code_Block	B-Code_Block
"	O	O
I	O	O
refer	O	O
to	O	O
the	O	O
command	O	O
I	O	O
want	O	O
to	O	O
make	O	O
an	O	O
alias	O	O
for	O	O
.	O	O

I	O	O
'm	O	O
basically	O	O
changing	O	O
the	O	O
"	O	O
help	B-Code_Block	B-Code_Block
"	O	O
command	O	O
so	O	O
I	O	O
can	O	O
use	O	O
it	O	O
just	O	O
by	O	O
typing	O	O
"	O	O
hp	B-Code_Block	B-Code_Block
"	O	O
.	O	O

You	O	O
can	O	O
literally	O	O
make	O	O
it	O	O
anything	O	O
you	O	O
want	O	O
.	O	O

I	O	O
could	O	O
use	O	O
code	O	O
like	O	O
this	O	O
:	O	O

and	O	O
I	O	O
can	O	O
write	O	O
IMABigBaboon	O	O
instead	O	O
of	O	O
init	O	B-Code_Block
and	O	O
it	O	O
will	O	O
work	O	O
.	O	O

Try	O	O
it	O	O
!	O	O

Just	O	O
be	O	O
careful	O	O
you	O	O
do	O	O
n't	O	O
name	O	O
two	O	O
commands	O	O
the	O	O
same	O	O
thing	O	O
.	O	O

Otherwise	O	O
you	O	O
wind	O	O
up	O	O
changing	O	O
the	O	O
name	O	O
of	O	O
the	O	O
previous	O	O
alias	O	O
.	O	O

Remember	O	O
;	O	O
you	O	O
can	O	O
only	O	O
have	O	O
one	O	O
alias	O	O
for	O	O
one	O	O
command	O	O
!	O	O

My	O	O
question	O	O
is	O	O
:	O	O
Which	O	O
is	O	O
better	O	O
between	O	O
using	O	O
NotificationCenter	B-Code_Block	B-Class
and	O	O
using	O	O
Closures	B-Code_Block	O
to	O	O
communicate	O	O
between	O	O
two	O	O
instances	O	O
?	O	O

If	O	O
they	O	O
are	O	O
similar	O	O
,	O	O
what	O	O
should	O	O
I	O	O
use	O	O
?	O	O

Hopefully	O	O
,	O	O
this	O	O
example	O	O
helps	O	O
you	O	O
to	O	O
understand	O	O
better	O	O
:	O	O
-	O	O

If	O	O
we	O	O
take	O	O
URLSession	B-Code_Block	B-Class
class	O	O
as	O	O
an	O	O
example	O	O
.	O	O

Why	O	O
do	O	O
most	O	O
of	O	O
its	O	O
methods	O	O
have	O	O
a	O	O
closure	O	O
?	O	O

Why	O	O
do	O	O
not	O	O
they	O	O
send	O	O
a	O	O
notification	O	O
with	O	O
Data	B-Code_Block	B-Class
,	I-Code_Block	O
Response	I-Code_Block	B-Class
,	I-Code_Block	O
and	I-Code_Block	O
Error	I-Code_Block	B-Class
inside	O	O
it	O	O
?	O	O

I	O	O
know	O	O
the	O	O
difference	O	O
between	O	O
them	O	O
,	O	O
I	O	O
just	O	O
do	O	O
n't	O	O
know	O	O
in	O	O
what	O	O
situations	O	O
should	O	O
I	O	O
use	O	O
each	O	O
one	O	O
.	O	O

In	O	O
some	O	O
cases	O	O
the	O	O
patterns	O	O
are	O	O
interchangeable	O	O
,	O	O
however	O	O
:	O	O

Using	O	O
a	O	O
closure	O	O
is	O	O
the	O	O
simplest	O	O
solution	O	O
for	O	O
simple	O	O
cases	O	O

Using	O	O
a	O	O
delegate	O	O
is	O	O
common	O	O
when	O	O
there	O	O
is	O	O
complex	O	O
communication	O	O
between	O	O
two	O	O
objects	O	O
.	O	O

One	O	O
delegate	O	O
can	O	O
be	O	O
better	O	O
than	O	O
many	O	O
closures	O	O
.	O	O

You	O	O
have	O	O
to	O	O
use	O	O
notifications	O	O
when	O	O
you	O	O
have	O	O
multiple	O	O
observers	O	O
or	O	O
when	O	O
you	O	O
are	O	O
not	O	O
sure	O	O
what	O	O
objects	O	O
will	O	O
be	O	O
observing	O	O
.	O	O

You	O	O
might	O	O
be	O	O
asking	O	O
yourself	O	O
why	O	O
we	O	O
are	O	O
using	O	O
closures	O	O
for	O	O
simple	O	O
cases	O	O
and	O	O
not	O	O
delegates	O	O
or	O	O
notifications	O	O
.	O	O

The	O	O
answer	O	O
is	O	O
that	O	O
closures	O	O
are	O	O
the	O	O
most	O	O
lightweight	O	O
.	O	O

They	O	O
are	O	O
easy	O	O
to	O	O
create	O	O
and	O	O
they	O	O
positively	O	O
affect	O	O
your	O	O
code	O	O
quality	O	O
.	O	O

Let	O	O
's	O	O
consider	O	O
a	O	O
completion	O	O
callback	O	O
.	O	O

If	O	O
you	O	O
decide	O	O
to	O	O
use	O	O
a	O	O
notification	O	O
,	O	O
you	O	O
need	O	O
another	O	O
method	O	O
that	O	O
will	O	O
handle	O	O
that	O	O
notification	O	O
.	O	O

The	O	O
same	O	O
is	O	O
valid	O	O
for	O	O
delegates	O	O
.	O	O

If	O	O
you	O	O
need	O	O
some	O	O
context	O	O
(	O	O
e.g	O	O
.	O	O
the	O	O
parameters	O	O
that	O	O
triggered	O	O
the	O	O
actions	O	O
)	O	O
,	O	O
you	O	O
will	O	O
need	O	O
to	O	O
save	O	O
it	O	O
into	O	O
a	O	O
property	O	O
.	O	O

On	O	O
the	O	O
other	O	O
hand	O	O
,	O	O
a	O	O
closure	O	O
can	O	O
be	O	O
created	O	O
inline	O	O
.	O	O

That	O	O
means	O	O
that	O	O
the	O	O
code	O	O
that	O	O
triggers	O	O
the	O	O
action	O	O
and	O	O
handles	O	O
its	O	O
result	O	O
is	O	O
at	O	O
one	O	O
place	O	O
.	O	O

This	O	O
really	O	O
simplifies	O	O
the	O	O
structure	O	O
of	O	O
your	O	O
code	O	O
.	O	O

Also	O	O
note	O	O
that	O	O
if	O	O
the	O	O
closure	O	O
needs	O	O
some	O	O
context	O	O
,	O	O
it	O	O
can	O	O
capture	O	O
it	O	O
,	O	O
without	O	O
the	O	O
need	O	O
to	O	O
create	O	O
an	O	O
additional	O	O
property	O	O
.	O	O

Here	O	O
I	O	O
want	O	O
to	O	O
pass	O	O
the	O	O
value	O	O
which	O	O
am	O	O
getting	O	O
in	O	O
data	O	B-Variable
to	O	O
the	O	O
controller	O	O
so	O	O
I	O	O
gave	O	O
my	O	O
code	O	O
like	O	O
this	O	O
.	O	O

My	O	O
controller	O	O
looks	O	O
like	O	O
this	O	O
.	O	O

But	O	O
when	O	O
I	O	O
pass	O	O
into	O	O
the	O	O
controller	O	O
am	O	O
getting	O	O
error	O	O
like	O	O
undefined	B-Code_Block	B-Error_Name
index	I-Code_Block	I-Error_Name
data	I-Code_Block	I-Error_Name
in	O	O
console	O	B-Application

My	O	O
toPost	B-Code_Block	B-Variable
variable	O	O
contains	O	O
value	O	O
like	O	O
this	O	O

If	O	O
submit_data	O	B-Variable
referred	O	O
here	O	O
is	O	O
a	O	O
form	O	O
field	O	O

Try	O	O
to	O	O
get	O	O
data	O	B-Variable
by	O	O

Serialization	O	O
basically	O	O
does	O	O
this	O	O
:	O	O

and	O	O
this	O	O
:	O	O
field_name_1	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
field_value_1&field_name_2	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
field_value_2	I-Code_Block	I-Code_Block

Instead	O	O
of	O	O
you	O	O
having	O	O
to	O	O
manually	O	O
build	O	O
that	O	O
^	O	B-Code_Block
it	O	O
does	O	O
it	O	O
for	O	O
you	O	O
.	O	O

So	O	O
the	O	O
only	O	O
variables	O	O
that	O	O
exist	O	O
via	O	O
post	O	O
become	O	O
$_POST['field_name_1']	B-Code_Block	B-Code_Block
and	O	O
$_POST['field_name_2']	B-Code_Block	B-Code_Block
.	O	O

You	O	O
can	O	O
confirm	O	O
via	O	O
print_r($_POST)	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block
to	O	O
see	O	O
what	O	O
post	O	O
keys	O	O
exist	O	O
.	O	O

You	O	O
need	O	O
to	O	O
get	O	O
your	O	O
row_selected	B-Code_Block	B-Variable
into	O	O
an	O	O
object	O	O
that	O	O
we	O	O
can	O	O
turn	O	O
into	O	O
an	O	O
array	O	B-Data_Structure
in	O	O
php	O	B-Language
:	O	O

Controller	O	O
:	O	O

Here	O	O
is	O	O
a	O	O
sample	O	O
of	O	O
some	O	O
directory	O	O
paths	O	O

I	O	O
want	O	O
to	O	O
remove	O	O
all	O	O
.svn	B-Code_Block	B-File_Type
folders	O	O
from	O	O
all	O	O
this	O	O
directories	O	O
at	O	O
once	O	O
from	O	O
the	O	O
current	O	O
root	O	O
directory	O	O
I	O	O
'm	O	O
in	O	O
.	O	O

Any	O	O
deas	O	O
?	O	O

You	O	O
can	O	O
do	O	O
(	O	O
added	O	O
-type	B-Code_Block	B-Code_Block
d	I-Code_Block	I-Code_Block
to	O	O
your	O	O
find	O	O
command	O	O
to	O	O
get	O	O
folders	O	O
only	O	O
)	O	O

rm	B-Code_Block	B-Code_Block
-rf	I-Code_Block	I-Code_Block
`find	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
-type	I-Code_Block	I-Code_Block
d	I-Code_Block	I-Code_Block
-name	I-Code_Block	I-Code_Block
.svn	I-Code_Block	I-Code_Block
`	I-Code_Block	I-Code_Block

I	O	O
'm	O	O
using	O	O
Django	O	B-Library
to	O	O
create	O	O
an	O	O
application	O	O
(	O	O
using	O	O
PostgreSQL	O	B-Application
)	O	O
that	O	O
needs	O	O
a	O	O
column	O	B-Data_Structure
numeric(15,6)	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
finding	O	O
a	O	O
method	O	O
to	O	O
do	O	O
this	O	O
.	O	O

From	O	O
PostgreSQL	O	B-Application
docs	O	O
:	O	O

So	O	O
you	O	O
can	O	O
use	O	O
Django	O	B-Library
's	O	O
DecimalField	B-Code_Block	B-Class

Some	O	O
docs	O	O
:	O	O

http://www.postgresql.org/docs/current/interactive/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL	O	O

https://docs.djangoproject.com/en/1.8/ref/forms/fields/#decimalfield	O	O

I	O	O
have	O	O
looked	O	O
at	O	O
similar	O	O
problems	O	O
but	O	O
could	O	O
n't	O	O
find	O	O
any	O	O
solutions.MY	O	O
problem	O	O
is	O	O
when	O	O
i	O	O
click	O	O
signup	O	O
button	O	B-User_Interface_Element
,	O	O
the	O	O
information	O	O
is	O	O
saved	O	O
and	O	O
it	O	O
is	O	O
visible	O	O
in	O	O
django	O	B-Library
administration.But	O	O
when	O	O
i	O	O
hit	O	O
the	O	O
signup	O	O
button	O	B-User_Interface_Element
in	O	O
the	O	O
redirected	O	O
url	O	O
I	O	O
get	O	O
this	O	O
error	O	O
.	O	O

My	O	O
forms.py	O	B-File_Name
is	O	O

and	O	O
my	O	O
views.py	O	B-File_Name
is	O	O

and	O	O
models.py	O	B-File_Name
is	O	O

and	O	O
i	O	O
get	O	O
the	O	O
error	O	O
at	O	O
"mail_base,provider=email.split("@")"	O	B-Code_Block
in	O	O
forms.py.Please	O	B-File_Name
help	O	O
me.	O	O
.	O	O

If	O	O
someone	O	O
leaves	O	O
email	B-Code_Block	B-Class
field	O	I-Class
blank	O	O
(	O	O
this	O	O
is	O	O
allowed	O	O
because	O	O
of	O	O
SignUp	O	O
model	O	O
email	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
EmailField(blank=True))	I-Code_Block	I-Code_Block
,	O	O
then	O	O
self.cleaned_data.get('email')	B-Code_Block	B-Code_Block
will	O	O
return	O	O
''	B-Code_Block	B-Value
(	O	O
empty	O	O
string	O	B-Data_Type
)	O	O
.	O	O

mail_base	B-Code_Block	B-Code_Block
,	I-Code_Block	I-Code_Block
provider	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
email.split('@')	I-Code_Block	I-Code_Block
will	O	O
raise	O	O
that	O	O
exception	O	B-Class
in	O	O
this	O	O
case	O	O
.	O	O

The	O	O
reason	O	O
this	O	O
would	O	O
happen	O	O
is	O	O
that	O	O
your	O	O
email	B-Code_Block	B-Variable
string	O	B-Data_Type
,	O	O
for	O	O
some	O	O
reason	O	O
,	O	O
did	O	O
not	O	O
have	O	O
an	O	O
'	O	B-Value
@	O	I-Value
'	O	B-Value
symbol	O	O
in	O	O
it	O	O
.	O	O

This	O	O
leads	O	O
email.split("@")	B-Code_Block	B-Code_Block
to	O	O
result	O	O
in	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
length	O	O
1	O	O
,	O	O
rather	O	O
than	O	O
a	O	O
list	O	O
of	O	O
length	O	O
2	O	O
,	O	O
as	O	O
you	O	O
were	O	O
expecting	O	O
.	O	O

My	O	O
guess	O	O
is	O	O
that	O	O
you	O	O
have	O	O
a	O	O
blank	O	O
email	O	B-Variable
somewhere	O	O
,	O	O
but	O	O
any	O	O
email	B-Code_Block	B-Class
field	O	I-Class
that	O	O
does	O	O
n't	O	O
have	O	O
an	O	O
'	O	B-Value
@	O	I-Value
'	O	B-Value
symbol	O	O
will	O	O
cause	O	O
this	O	O
exception	O	B-Class
to	O	O
be	O	O
raised	O	O
.	O	O

is	O	O
it	O	O
possible	O	O
to	O	O
do	O	O
multiple	O	O
joins	O	O
:	O	O

in	O	O
the	O	O
sample	O	O
above	O	O
all	O	O
is	O	O
fine	O	O
until	O	O
i	O	O
press	O	O
"	O	B-Value
.	O	I-Value
"	O	I-Value

in	O	O
the	O	O
end	O	O
of	O	O
the	O	O
3rd	O	O
line	O	O
.	O	O

there	O	O
i	O	O
expect	O	O
to	O	O
get	O	O
intellisense	O	O
and	O	O
write	O	O
u.Id	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
ug.UserId	I-Code_Block	I-Code_Block
but	O	O
it	O	O
does	O	O
n't	O	O
appear	O	O
.	O	O

and	O	O
of	O	O
course	O	O
this	O	O
code	O	O
does	O	O
n't	O	O
compile	O	O
after	O	O
.	O	O

what	O	O
did	O	O
i	O	O
wrong	O	O
?	O	O

ANSWER	O	O
:	O	O
the	O	O
order	O	O
of	O	O
aliases	O	O
is	O	O
important	O	O
.	O	O

so	O	O
i	O	O
've	O	O
used	O	O
ug.UserId	B-Code_Block	B-Code_Block
equals	I-Code_Block	I-Code_Block
u.Id	I-Code_Block	I-Code_Block

The	O	O
following	O	O
code	O	O
works	O	O
for	O	O
me	O	O
in	O	O
LINQ	O	B-Library
to	O	O
SQL	O	B-Language
(	O	O
Northwind	O	B-Application
database	O	I-Application
)	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
execute	O	O
a	O	O
query	O	O
on	O	O
a	O	O
.sql	O	B-File_Type
dump	O	O
file	O	O
without	O	O
importing	O	O
it	O	O
into	O	O
a	O	O
database	O	O
?	O	O

Example	O	O
:	O	O
stuff.sql	O	B-File_Name
:	O	O

Then	O	O
execute	O	O
some	O	O
SELECT	B-Code_Block	B-Code_Block
Statement	O	O
to	O	O
get	O	O
the	O	O
options	O	O
data	O	O
.	O	O

Sure	O	O
,	O	O
I	O	O
could	O	O
import	O	O
the	O	O
dump	O	O
in	O	O
a	O	O
local	O	O
DB	O	O
,	O	O
execute	O	O
what	O	O
I	O	O
want	O	O
,	O	O
dump	O	O
it	O	O
again	O	O
and	O	O
delete	O	O
the	O	O
DB	O	O
again	O	O
,	O	O
but	O	O
is	O	O
there	O	O
a	O	O
way	O	O
with	O	O
less	O	O
overhead	O	O
?	O	O

Are	O	O
you	O	O
looking	O	O
for	O	O
this	O	O
?	O	O

Not	O	O
without	O	O
importing	O	O
at	O	O
all	O	O
,	O	O
I	O	O
dont	O	O
think	O	O
so	O	O
.	O	O

However	O	O
you	O	O
have	O	O
other	O	O
options	O	O
.	O	O

You	O	O
could	O	O
import	O	O
your	O	O
SQL	O	B-File_Type
dump	O	O
into	O	O
a	O	O
temporary	O	O
memory-only	O	O
database	O	O
,	O	O
then	O	O
query	O	O
that	O	O
database	O	O
.	O	O

For	O	O
instance	O	O
this	O	O
could	O	O
be	O	O
an	O	O
SQLite	O	B-Library
:MEMORY	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
database	O	O
if	O	O
your	O	O
sql	O	B-Language
is	O	O
compatible	O	O
,	O	O
or	O	O
you	O	O
could	O	O
use	O	O
Engine	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
MEMORY	I-Code_Block	I-Code_Block
(	O	O
or	O	O
Engine	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
HEAP	I-Code_Block	I-Code_Block
for	O	O
older	O	O
versions	O	O
)	O	O
with	O	O
MySQL	O	B-Application
"	O	O
create	B-Code_Block	B-Code_Block
table	I-Code_Block	I-Code_Block
"	O	O
DDL	O	O
to	O	O
create	O	O
a	O	O
memory	O	O
table	O	B-Data_Structure
,	O	O
and	O	O
then	O	O
query	O	O
that	O	O
db	O	O
(	O	O
You	O	O
would	O	O
have	O	O
to	O	O
replace	O	O
Engine	O	B-Code_Block
=	O	I-Code_Block
INNODB	O	I-Code_Block
or	O	O
Engine	O	B-Code_Block
=	O	I-Code_Block
MyISAM	O	I-Code_Block
with	O	O
MEMORY	O	B-Code_Block
in	O	O
your	O	O
dump	O	O
file	O	O
to	O	O
import	O	O
it	O	O
)	O	O
.	O	O

Same	O	O
idea	O	O
.	O	O

Obviously	O	O
,	O	O
this	O	O
depends	O	O
on	O	O
size	O	O
of	O	O
your	O	O
data	O	O
you	O	O
want	O	O
to	O	O
query	O	O
.	O	O

a	O	O
1TB	O	O
Database	O	O
would	O	O
probably	O	O
prove	O	O
impractical	O	O
to	O	O
import	O	O
into	O	O
RAM	O	B-Device
.	O	O

Edit	O	O
(	O	O
solution	O	O
?	O	O

)	O	O
:	O	O
I	O	O
was	O	O
able	O	O
to	O	O
achieve	O	O
this	O	O
by	O	O
converting	O	O
my	O	O
arrays	O	B-Data_Structure
into	O	O
a	O	O
string	O	B-Data_Type
and	O	O
parsing	O	O
through	O	O
and	O	O
recreating	O	O
them	O	O
on	O	O
the	O	O
other	O	O
end	O	O
.	O	O

If	O	O
anyone	O	O
has	O	O
a	O	O
better	O	O
way	O	O
I	O	O
would	O	O
appreciate	O	O
it	O	O
.	O	O

Original	O	O
:	O	O

I	O	O
created	O	O
a	O	O
class	O	O
that	O	O
extends	O	O
MPxCommand	B-Code_Block	B-Class
to	O	O
create	O	O
a	O	O
plug-in	O	B-Application
and	O	O
have	O	O
been	O	O
trying	O	O
to	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
parse	O	O
the	O	O
MArgList	B-Code_Block	B-Class
in	O	O
the	O	O
doIt()	B-Code_Block	B-Function
function	O	O
to	O	O
pull	O	O
a	O	O
couple	O	O
of	O	O
lists	O	B-Data_Structure
from	O	O
from	O	O
the	O	O
args	O	B-Variable
variable	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
pull	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
strings	O	B-Data_Type
and	O	O
a	O	O
list	O	B-Data_Structure
ints	O	B-Data_Type
that	O	O
will	O	O
have	O	O
an	O	O
inconsistent	O	O
length	O	O
so	O	O
I	O	O
wo	O	O
n't	O	O
be	O	O
able	O	O
to	O	O
(	O	O
I	O	O
think	O	O
)	O	O
fill	O	O
the	O	O
flag	O	O
multiple	O	O
times	O	O
when	O	O
I	O	O
call	O	O
the	O	O
command	O	O
.	O	O

I	O	O
've	O	O
had	O	O
success	O	O
pulling	O	O
individual	O	O
variables	O	O
with	O	O
MArgParser	B-Code_Block	B-Function
but	O	O
have	O	O
not	O	O
found	O	O
a	O	O
way	O	O
to	O	O
pull	O	O
a	O	O
full	O	O
list	O	B-Data_Structure
.	O	O

MArgList	B-Code_Block	B-Class
appears	O	O
to	O	O
have	O	O
what	O	O
I	O	O
want	O	O
with	O	O
the	O	O
function	O	O
asStringArray(index)	B-Code_Block	B-Function
and	O	O
asIntArray(index)	B-Code_Block	B-Function
but	O	O
when	O	O
I	O	O
use	O	O
try	O	O
using	O	O
them	O	O
I	O	O
get	O	O
the	O	O
error	O	O
:	O	O

Edit	O	O
:	O	O

This	O	O
code	O	O
will	O	O
put	O	O
"	O	B-Value
hello	O	I-Value
"	O	I-Value
from	O	O
the	O	O
args	B-Code_Block	B-Variable
into	O	O
self.myStr	B-Code_Block	B-Variable
if	O	O
I	O	O
run	O	O
cmds.myCommand	B-Code_Block	B-Code_Block
(	B-Code_Block	B-Code_Block
s	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
hello	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
,	O	O
but	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
be	O	O
able	O	O
to	O	O
be	O	O
able	O	O
to	O	O
run	O	O
cmds.myCommand	B-Code_Block	B-Code_Block
(	B-Code_Block	B-Code_Block
s	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
[	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
hello	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
world	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
and	O	O
be	O	O
able	O	O
to	O	O
get	O	O
the	O	O
array	O	O
from	O	O
the	O	O
args	B-Code_Block	B-Variable
variable	O	O
and	O	O
put	O	O
it	O	O
into	O	O
self.myStr	B-Code_Block	B-Variable
.	O	O

I	O	O
hope	O	O
that	O	O
clears	O	O
up	O	O
what	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
do	O	O
.	O	O

I	O	O
think	O	O
your	O	O
problem	O	O
is	O	O
in	O	O
the	O	O
declaration	O	O
of	O	O
that	O	O
function	O	O
:	O	O

int	B-Code_Block	B-Data_Type
&	I-Code_Block	I-Data_Type
is	O	O
a	O	O
reference	O	O
to	O	O
an	O	O
int	O	B-Data_Type
,	O	O
i.e	O	O
.	O	O
an	O	O
int	O	B-Data_Type
you	O	O
give	O	O
to	O	O
the	O	O
function	O	O
,	O	O
the	O	O
function	O	O
will	O	O
change	O	O
it	O	O
,	O	O
and	O	O
your	O	O
variable	O	O
will	O	O
reflect	O	O
the	O	O
changes	O	O
.	O	O

So	O	O
maybe	O	O
you	O	O
already	O	O
see	O	O
it	O	O
:	O	O
passing	O	O
a	O	O
constant	O	O
is	O	O
not	O	O
possible	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
into	O	O
python	O	B-Language
at	O	O
all	O	O
,	O	O
so	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
if	O	O
it	O	O
would	O	O
be	O	O
sufficient	O	O
to	O	O
simply	O	O
declare	O	O
an	O	O
int	O	B-Data_Type
,	O	O
initialize	O	O
it	O	O
and	O	O
then	O	O
pass	O	O
it	O	O
as	O	O
argument	O	O
2	O	O
to	O	O
the	O	O
function	O	O
.	O	O

I	O	O
have	O	O
implemented	O	O
an	O	O
OpenID	O	O
IdP	O	O
and	O	O
an	O	O
RP	O	O
.	O	O

They	O	O
seem	O	O
to	O	O
be	O	O
working-	O	O
-	O	O
the	O	O
RP	O	O
is	O	O
contacting	O	O
the	O	O
IdP	O	O
and	O	O
is	O	O
redirecting	O	O
to	O	O
the	O	O
IdP	O	O
for	O	O
authentication	O	O
.	O	O

The	O	O
only	O	O
problem	O	O
is	O	O
when	O	O
I	O	O
am	O	O
on	O	O
the	O	O
authenticate/authorize	O	O
page	O	B-User_Interface_Element
it	O	O
says	O	O
"	O	B-Output_Block
This	O	I-Output_Block
site	O	I-Output_Block
failed	O	I-Output_Block
verification	O	I-Output_Block
.	O	I-Output_Block
"	O	I-Output_Block

I	O	O
dug	O	O
around	O	O
in	O	O
the	O	O
code	O	O
a	O	O
little	O	O
and	O	O
saw	O	O
a	O	O
few	O	O
things	O	O
that	O	O
it	O	O
was	O	O
doing	O	O
.	O	O

I	O	O
have	O	O
a	O	O
hunch	O	O
that	O	O
it	O	O
has	O	O
something	O	O
to	O	O
do	O	O
with	O	O
the	O	O
Yadis	O	B-Library
document	O	O
not	O	O
being	O	O
found	O	O
.	O	O

My	O	O
site	O	O
's	O	O
realm	O	O
shoots	O	O
off	O	O
a	O	O
302	O	B-Error_Name
Found	O	O
status	O	O
code	O	O
,	O	O
so	O	O
I	O	O
thought	O	O
this	O	O
might	O	O
be	O	O
the	O	O
problem	O	O
and	O	O
set	O	O
it	O	O
up	O	O
to	O	O
have	O	O
an	O	O
"	O	O
Accept	O	O
"	O	O
request	O	O
header	O	O
which	O	O
can	O	O
be	O	O
fed	O	O
the	O	O
Yadis	O	B-Library
document	O	O
type	O	O
(	O	O
"	O	B-Value
application/xrds	O	I-Value
+xml	O	I-Value
"	O	I-Value
)	O	O
.	O	O

Then	O	O
instead	O	O
of	O	O
issuing	O	O
the	O	O
302	O	B-Function
Found	O	I-Function
redirect	O	O
,	O	O
it	O	O
returns	O	O
the	O	O
document	O	O
.	O	O

I	O	O
also	O	O
tried	O	O
placing	O	O
the	O	O
X-XRDS-Location	O	O
header	O	O
..	O	O
.	O	O
no	O	O
go	O	O
.	O	O

Any	O	O
other	O	O
suggestions	O	O
?	O	O

It	O	O
took	O	O
a	O	O
nice	O	O
rework	O	O
,	O	O
but	O	O
once	O	O
I	O	O
fixed	O	O
the	O	O
302	O	B-Error_Name
Found	O	I-Error_Name
to	O	O
a	O	O
200	O	B-Error_Name
OK	O	I-Error_Name
response	O	O
,	O	O
I	O	O
was	O	O
golden	O	O
.	O	O

http://blog.nerdbank.net/2008/06/why-yahoo-says-your-openid-site.html	O	O

So	O	O
I	O	O
have	O	O
been	O	O
stuck	O	O
on	O	O
this	O	O
for	O	O
a	O	O
week	O	O
or	O	O
so	O	O
,	O	O
but	O	O
how	O	O
does	O	O
one	O	O
pass	O	O
the	O	O
specific	O	O
row	O	B-Data_Structure
selected	O	O
on	O	O
a	O	O
UIPickerView	O	B-Class
from	O	O
the	O	O
secondviewcontroller	O	B-Variable
to	O	O
the	O	O
first	O	O
?	O	O

I	O	O
need	O	O
it	O	O
for	O	O
a	O	O
series	O	O
of	O	O
if	O	O
statements	O	O
in	O	O
the	O	O
firstviewcontroller	O	B-Variable
,	O	O
so	O	O
I	O	O
am	O	O
thinking	O	O
segues	O	B-Library
are	O	O
not	O	O
the	O	O
way	O	O
to	O	O
go	O	O
?	O	O

Sorry	O	O
if	O	O
this	O	O
seems	O	O
a	O	O
bit	O	O
rudimentary	O	O
,	O	O
I	O	O
am	O	O
brand	O	O
new	O	O
to	O	O
Xcode	O	B-Application
and	O	O
objective	O	O
c	O	B-Language
in	O	O
general	O	O
.	O	O

is	O	O
there	O	O
is	O	O
any	O	O
way	O	O
to	O	O
Unlock	O	O
Screen	O	B-User_Interface_Element
by	O	O
clicking	O	O
home	O	B-User_Interface_Element
button	O	I-User_Interface_Element
.	O	O

I	O	O
just	O	O
did	O	O
lock	O	O
screen	O	B-User_Interface_Element
dynamically	O	O
by	O	O
using	O	O
DeviceAdminReceiver	O	B-Library
API	O	I-Library
.	O	O

as	O	O
the	O	O
same	O	O
way	O	O
I	O	O
need	O	O
to	O	O
unlock	O	O
the	O	O
screen	O	B-User_Interface_Element
by	O	O
clicking	O	O
the	O	O
home	O	B-User_Interface_Element
button	O	I-User_Interface_Element
or	O	O
some	O	O
other	O	O
keys	O	B-User_Interface_Element
.	O	O

kindly	O	O
some	O	O
one	O	O
suggest	O	O
me	O	O
some	O	O
ideas	O	O
about	O	O
this	O	O
please	O	O
.	O	O

I	O	O
have	O	O
set	O	O
up	O	O
a	O	O
basic	O	O
CSS3	O	B-Language
animation	O	O
test	O	O
which	O	O
increases	O	O
and	O	O
decreases	O	O
the	O	O
background-size	O	O
of	O	O
the	O	O
element	O	O
,	O	O
when	O	O
you	O	O
click	O	O
one	O	O
of	O	O
the	O	O
elements	O	O
then	O	O
the	O	O
class	O	O
active	O	O
is	O	O
toggled	O	O
and	O	O
a	O	O
transition	O	O
occurs	O	O
.	O	O

My	O	O
problem	O	O
is	O	O
though	O	O
that	O	O
when	O	O
the	O	O
.active	O	B-Class
class	O	O
is	O	O
removed	O	O
the	O	O
animation	O	O
doesnt	O	O
occur	O	O
anymore	O	O
since	O	O
I	O	O
have	O	O
reset	O	O
animation	O	O
to	O	O
none	O	O
.	O	O

Can	O	O
anyone	O	O
advise	O	O
how	O	O
I	O	O
can	O	O
fix	O	O
this	O	O
problem	O	O
?	O	O

CSS	O	B-Language

JS	O	B-Language

Fiddle	O	B-Application
here	O	O
:	O	O
http://jsfiddle.net/VQaGh/22/	O	O

as	O	O
my	O	O
understanding	O	O
you	O	O
want	O	O
effects	O	O
something	O	O
like	O	O
this	O	O

try	O	O
this	O	O
one	O	O
http://jsfiddle.net/Sk2sX/	O	O

I	O	O
have	O	O
modify	O	O
both	O	O
css	O	B-Language
and	O	O
js	O	B-Language
hope	O	O
it	O	O
will	O	O
help	O	O
you	O	O

for	O	O
any	O	O
query	O	O
regarding	O	O
code	O	O
post	O	O
a	O	O
comment	O	O

Im	O	O
using	O	O
this	O	O
code	O	O
but	O	O
it	O	O
doesnt	O	O
display	O	O
anything	O	O

I	O	O
am	O	O
sorry	O	O
because	O	O
this	O	O
look	O	O
like	O	O
a	O	O
doubled	O	O
post	O	O
,	O	O
but	O	O
i	O	O
saw	O	O
a	O	O
lot	O	O
of	O	O
other	O	O
threads	O	O
and	O	O
i	O	O
cant	O	O
understand	O	O
anything	O	O
that	O	O
i	O	O
am	O	O
doing	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
make	O	O
an	O	O
has_and_belongs_to_many	O	B-Function
but	O	O
i	O	O
am	O	O
stuck	O	O
.	O	O

I	O	O
managed	O	O
to	O	O
make	O	O
the	O	O
form	O	O
display	O	O
the	O	O
right	O	O
information	O	O
,	O	O
but	O	O
i	O	O
dont	O	O
know	O	O
how	O	O
to	O	O
save	O	O
it	O	O
.	O	O

I	O	O
got	O	O
:	O	O

Orb	O	B-Class
class	O	O
:	O	O

Book	O	B-Class
class	O	O
:	O	O

A	O	B-Class
_form	O	I-Class
:	O	O

And	O	O
the	O	O
controller	O	O
:	O	O

With	O	O
this	O	O
,	O	O
the	O	O
form	O	O
has	O	O
a	O	O
checkbox	O	B-User_Interface_Element
with	O	O
the	O	O
right	O	O
values	O	O
,	O	O
but	O	O
it	O	O
wont	O	O
be	O	O
save	O	O
anywere	O	O
.	O	O

I	O	O
dont	O	O
know	O	O
what	O	O
i	O	O
am	O	O
doing	O	O
,	O	O
can	O	O
some	O	O
one	O	O
me	O	O
explain	O	O
what	O	O
i	O	O
have	O	O
to	O	O
do	O	O
?	O	O

You	O	O
need	O	O
a	O	O
join	O	O
table	O	B-Data_Structure
to	O	O
use	O	O
has_and_belongs_to_many	O	B-Function

see	O	O
here	O	O
my	O	O
working	O	O
version	O	O
:	O	O
https://github.com/senayar/books	O	O

i	O	O
have	O	O
a	O	O
form	O	O
which	O	O
fills	O	O
a	O	O
database	O	O
with	O	O
an	O	O
issue	O	O
,	O	O
the	O	O
issue	O	O
is	O	O
either	O	O
'	O	O
resolved	O	O
'	O	O
or	O	O
'	O	O
notresolved	O	O
'	O	O
.	O	O

I	O	O
have	O	O
to	O	O
make	O	O
a	O	O
counter	O	O
which	O	O
starts	O	O
as	O	O
soon	O	O
as	O	O
the	O	O
form	O	O
is	O	O
submitted	O	O
in	O	O
the	O	O
database	O	O
and	O	O
the	O	O
issue	O	O
status	O	O
is	O	O
'	O	O
notresolved	O	O
'	O	O
yet	O	O
and	O	O
when	O	O
i	O	O
resolve	O	O
the	O	O
issue	O	O
,	O	O
i	O	O
can	O	O
check	O	O
the	O	O
time	O	O
taken	O	O
to	O	O
solve	O	O
the	O	O
issue	O	O
.	O	O

how	O	O
can	O	O
i	O	O
implement	O	O
it	O	O
?	O	O

here	O	O
is	O	O
my	O	O
code	O	O
for	O	O
the	O	O
form	O	O

You	O	O
can	O	O
have	O	O
a	O	O
column	O	B-Data_Structure
of	O	O
type	O	O
TIMESTAMP	B-Code_Block	B-Data_Type
in	O	O
your	O	O
database	O	O
table	O	B-Data_Structure
and	O	O
have	O	O
its	O	O
default	O	O
value	O	O
set	O	O
as	O	O
CURRENT_TIMESTAMP	B-Code_Block	B-Variable
.	O	O

See	O	O
the	O	O
following	O	O
thread	O	O
on	O	O
Stackoverflow	O	B-Website
:	O	O

How	O	O
do	O	O
you	O	O
set	O	O
a	O	O
default	O	O
value	O	O
for	O	O
a	O	O
MySQL	O	B-Application
Datetime	O	B-Data_Type
column	O	B-Data_Structure
?	O	O

You	O	O
should	O	O
also	O	O
go	O	O
through	O	O
Timestamp	O	O
properties	O	O
in	O	O
MySQL	O	B-Application
.	O	O

Well	O	O
,	O	O
thinking	O	O
fast	O	O
,	O	O
that	O	O
is	O	O
what	O	O
came	O	O
to	O	O
my	O	O
mind	O	O
:	O	O

Is	O	O
that	O	O
what	O	O
you	O	O
need	O	O
?	O	O

You	O	O
can	O	O
also	O	O
do	O	O
this	O	O
:	O	O

http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_datediff	O	O
on	O	O
your	O	O
MySQL	O	B-Application
dates	O	O
,	O	O
following	O	O
Rufinus	O	B-User_Name
solution	O	O
.	O	O

How	O	O
can	O	O
I	O	O
convert	O	O
the	O	O
duplicate	O	O
elements	O	O
in	O	O
a	O	O
array	O	B-Data_Structure
'	O	O
data	O	B-Variable
'	O	O
into	O	O
0	O	B-Value
?	O	O

It	O	O
has	O	O
to	O	O
be	O	O
done	O	O
row-wise	O	B-User_Interface_Element
.	O	O

The	O	O
answer	O	O
should	O	O
be	O	O
as	O	O
follows	O	O
:	O	O

Approach	O	O
#1	O	O

One	O	O
approach	O	O
with	O	O
np.unique	B-Code_Block	B-Function
-	O	O

Sample	O	O
run	O	O
-	O	O

Approach	O	O
#2	O	O

You	O	O
can	O	O
also	O	O
use	O	O
sorting	B-Code_Block	O
and	O	O
differentiation	B-Code_Block	O
as	O	O
a	O	O
faster	O	O
approach	O	O
-	O	O

Runtime	O	O
tests	O	O
-	O	O

Extending	O	O
to	O	O
a	O	O
2D	O	O
case	O	O
:	O	O

Approach	O	O
#2	O	O
could	O	O
be	O	O
extended	O	O
to	O	O
work	O	O
for	O	O
a	O	O
2D	O	O
array	O	B-Data_Structure
case	O	O
,	O	O
avoiding	O	O
any	O	O
loop	O	O
like	O	O
so	O	O
-	O	O

Sample	O	O
run	O	O
-	O	O

Here	O	O
's	O	O
a	O	O
simple	O	O
pure-Python	O	B-Language
way	O	O
to	O	O
do	O	O
it	O	O
:	O	O

I	O	O
have	O	O
implemented	O	O
an	O	O
invitation	O	O
system	O	O
in	O	O
my	O	O
application	O	O
,	O	O
that	O	O
generates	O	O
an	O	O
ical	O	B-File_Type
attachment	O	O
that	O	O
is	O	O
sent	O	O
to	O	O
the	O	O
appropriate	O	O
users	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
add	O	O
a	O	O
link	O	O
in	O	O
the	O	O
email	O	O
body	O	O
that	O	O
would	O	O
trigger	O	O
the	O	O
processing	O	O
of	O	O
the	O	O
invitation	O	O
?	O	O

(	O	O
in	O	O
addition	O	O
to	O	O
the	O	O
extra	O	O
buttons	O	B-User_Interface_Element
provided	O	O
by	O	O
some	O	O
email	O	B-Application
clients	O	I-Application
)	O	O

This	O	O
question	O	O
mentions	O	O
that	O	O
for	O	O
email	O	O
attachments	O	O
in	O	O
the	O	O
general	O	O
case	O	O
it	O	O
's	O	O
not	O	O
possible	O	O
.	O	O

Is	O	O
it	O	O
still	O	O
the	O	O
case	O	O
for	O	O
icalendar	O	B-Application
attachments	O	O
?	O	O

Other	O	O
questions	O	O
suggest	O	O
using	O	O
a	O	O
service	O	O
like	O	O
https://www.addevent.com/	O	O
,	O	O
but	O	O
this	O	O
seems	O	O
to	O	O
be	O	O
more	O	O
oriented	O	O
toward	O	O
"	O	O
public	O	O
events	O	O
"	O	O
,	O	O
whereas	O	O
in	O	O
my	O	O
case	O	O
I	O	O
would	O	O
need	O	O
something	O	O
quite	O	O
private	O	O
(	O	O
only	O	O
invitations	O	O
between	O	O
2	O	O
people	O	O
)	O	O
,	O	O
that	O	O
are	O	O
expected	O	O
to	O	O
be	O	O
generates	O	O
quite	O	O
often	O	O
(	O	O
should	O	O
be	O	O
able	O	O
to	O	O
scale	O	O
up	O	O
to	O	O
100/day	O	B-Value
without	O	O
problem	O	O
)	O	O
,	O	O
or	O	O
it	O	O
it	O	O
just	O	O
me	O	O
getting	O	O
a	O	O
bad	O	O
impression	O	O
?	O	O

Dealt	O	O
with	O	O
this	O	O
problem	O	O
several	O	O
years	O	O
ago	O	O
and	O	O
there	O	O
was	O	O
no	O	O
way	O	O
you	O	O
could	O	O
force	O	O
most	O	O
email	O	B-Application
client	O	I-Application
to	O	O
"	O	O
process	O	O
"	O	O
(	O	O
trigger	O	O
"	O	O
Add	O	O
to	O	O
calendar	O	O
"	O	O
menu	O	B-User_Interface_Element
)	O	O
.	O	O

However	O	O
,	O	O
what	O	O
you	O	O
want	O	O
is	O	O
just	O	O
make	O	O
some	O	O
element	O	O
in	O	O
your	O	O
email	O	O
trigger	O	O
that	O	O
.	O	O

You	O	O
can	O	O
do	O	O
this	O	O
by	O	O
simply	O	O
linking	O	O
that	O	O
element	O	O
to	O	O
.ical	B-Code_Block	B-File_Type
file	O	O
on	O	O
your	O	O
server	O	B-Device
.	O	O

The	O	O
advantage	O	O
is	O	O
that	O	O
you	O	O
can	O	O
attache	O	O
some	O	O
parameters	O	O
to	O	O
your	O	O
link	O	O
and	O	O
generate	O	O
that	O	O
event	O	O
file	O	O
dynamically	O	O
.	O	O

Also	O	O
,	O	O
it	O	O
scales	O	O
pretty	O	O
well	O	O
.	O	O

I	O	O
am	O	O
using	O	O
standard	O	O
GWT	O	B-Application
(	O	O
2.0.1	O	B-Version
)	O	O
to	O	O
make	O	O
an	O	O
internet	O	O
app	O	O
and	O	O
i	O	O
have	O	O
this	O	O
wierd	O	O
issue	O	O
with	O	O
huge	O	B-Value
fonts	O	O
(	O	O
edit	O	O
:	O	O
well	O	O
,	O	O
larger	O	O
than	O	O
normal	O	O
)	O	O
with	O	O
the	O	O
default	O	O
style	O	O
in	O	O
IE	O	B-Application
7	O	B-Version
&	O	O
8	O	B-Version
,	O	O
while	O	O
FF	O	B-Application
,	O	O
Chrome	O	B-Application
and	O	O
Safari	O	B-Application
are	O	O
displaying	O	O
fonts	O	O
correctly	O	O
.	O	O

At	O	O
first	O	O
i	O	O
thought	O	O
it	O	O
must	O	O
be	O	O
on	O	O
error	O	O
on	O	O
my	O	O
side	O	O
(	O	O
i	O	O
use	O	O
UiBinder	O	B-Class
with	O	O
some	O	O
custom	O	O
css	O	B-Language
)	O	O
but	O	O
then	O	O
I	O	O
noticed	O	O
that	O	O
on	O	O
the	O	O
GWT	O	B-Application
showcases	O	O
site	O	O
the	O	O
various	O	O
widget	O	B-User_Interface_Element
fonts	O	O
are	O	O
also	O	O
too	O	O
big	O	O
.	O	O

Any	O	O
ideas	O	O
?	O	O

This	O	O
is	O	O
due	O	O
to	O	O
IE	O	B-Application
default	O	O
font	O	O
size	O	O
rendering	O	O
and	O	O
has	O	O
nothing	O	O
to	O	O
do	O	O
with	O	O
GWT	O	B-Application
but	O	O
rather	O	O
with	O	O
CSS	O	B-Language
styling	O	O
.	O	O

You	O	O
can	O	O
ensure	O	O
that	O	O
fonts	O	O
are	O	O
consistent	O	O
over	O	O
multiple	O	O
browser	O	B-Application
with	O	O
a	O	O
CSS	O	B-Language
like	O	O
that	O	O
(	O	O
for	O	O
instance	O	O
)	O	O
:	O	O

EDIT	O	O
:	O	O

To	O	O
ensure	O	O
all	O	O
widgets	O	B-User_Interface_Element
"	O	O
get	O	O
"	O	O
this	O	O
new	O	O
style	O	O
you	O	O
need	O	O
to	O	O
put	O	O
your	O	O
CSS	O	B-File_Type
file	O	O
in	O	O
the	O	O
*	O	O
.gwt.xml	O	B-File_Type
file	O	O
in	O	O
the	O	O
following	O	O
way	O	O
(	O	O
the	O	O
order	O	O
of	O	O
lines	O	O
is	O	O
important	O	O
)	O	O
:	O	O

do	O	O
n't	O	O
put	O	O
it	O	O
in	O	O
the	O	O
HTML	O	B-Language
page	O	O
!	O	O

This	O	O
will	O	O
ensure	O	O
that	O	O
your	O	O
style	O	O
override	O	O
the	O	O
widget	O	B-User_Interface_Element
styles	O	O
.	O	O

PS	O	O
:	O	O
You	O	O
might	O	O
override	O	O
some	O	O
widget	O	B-User_Interface_Element
styles	O	O
by	O	O
hand	O	O
(	O	O
I	O	O
have	O	O
a	O	O
GwtOverride.css	O	B-File_Name
for	O	O
that	O	O
purpose	O	O
)	O	O
..	O	O
.	O	O
see	O	O
snippet	O	O
:	O	O

A	O	O
quick	O	O
comparison	O	O
between	O	O
Opera	O	B-Application
10.10	O	B-Version
,	O	O
IE	O	B-Application
6	O	B-Version
and	O	O
FF	O	B-Application
3.6	O	B-Version
(	O	O
all	O	O
on	O	O
WinXP	O	B-Operating_System
SP	O	B-Version
3)	O	I-Version
-	O	O
Opera	O	B-Application
and	O	O
IE	O	B-Application
show	O	O
slightly	O	O
larger	O	O
fonts	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
if	O	O
that	O	O
's	O	O
GWT	O	B-Application
's	O	O
fault	O	O
-	O	O
every	O	O
browser	O	B-Application
has	O	O
some	O	O
core	O	O
CSS	O	B-Language
rules	O	O
defining	O	O
the	O	O
default	O	O
look	O	O
,	O	O
if	O	O
no	O	O
additional	O	O
CSS	O	B-Language
styles	O	O
are	O	O
applied	O	O
(	O	O
like	O	O
that	O	O
annoying	O	O
blue	O	O
border	O	B-User_Interface_Element
on	O	O
all	O	O
images	O	B-User_Interface_Element
in	O	O
FF	O	B-Application
)	O	O
,	O	O
so	O	O
just	O	O
make	O	O
sure	O	O
you	O	O
set	O	O
explicitly	O	O
your	O	O
font	O	O
size	O	O
,	O	O
etc	O	O
to	O	O
nullify	O	O
these	O	O
differences	O	O
.	O	O

That	O	O
is	O	O
,	O	O
unless	O	O
you	O	O
are	O	O
seeing	O	O
fonts	O	O
way	O	O
larger	O	O
than	O	O
they	O	O
should	O	O
be	O	O
-	O	O
then	O	O
it	O	O
might	O	O
be	O	O
a	O	O
bug	O	O
.	O	O

Update	O	O
:	O	O
under	O	O
Linux	O	B-Operating_System
(	O	O
Gentoo	O	B-Version
amd6	O	I-Version
4)	O	I-Version
it	O	O
's	O	O
the	O	O
same	O	O
-	O	O
Opera	O	B-Application
reneders	O	O
slightly	O	O
larger	O	O
fonts	O	O
than	O	O
Firefox	O	B-Application
,	O	O
but	O	O
nothing	O	O
that	O	O
looks	O	O
odd	O	O
.	O	O

So	O	O
I	O	O
have	O	O
my	O	O
main	O	O
dialog	O	B-Class
that	O	O
calls	O	O
modeless	O	O
dialogs	O	B-Class
through	O	O
this	O	O
function	O	O
(	O	O
this	O	O
is	O	O
the	O	O
legacy	O	O
code	O	O
on	O	O
the	O	O
project	O	O
)	O	O
:	O	O

Problem	O	O
:	O	O
all	O	O
sub	O	O
dialogs	O	B-User_Interface_Element
stay	O	O
on	O	O
top	O	O
of	O	O
my	O	O
main	O	O
dialog	O	B-User_Interface_Element
.	O	O

Desired	O	O
behavior	O	O
:	O	O
whichever	O	O
's	O	O
focused	O	O
(	O	O
they	O	O
are	O	O
all	O	O
modeless	O	O
)	O	O
,	O	O
be	O	O
it	O	O
the	O	O
main	O	O
dialog	O	B-User_Interface_Element
,	O	O
or	O	O
sub	O	O
dialogs	O	B-User_Interface_Element
,	O	O
I	O	O
want	O	O
it	O	O
to	O	O
be	O	O
the	O	O
topmost	O	O
dialog	O	B-User_Interface_Element
.	O	O

Thank	O	O
you	O	O
!	O	O

Note	O	O
:	O	O
I	O	O
already	O	O
tried	O	O
on	O	O
my	O	O
main	O	O
dialog	O	B-Class
's	O	O
OnInitDialog()	B-Code_Block	B-Function
these	O	O
but	O	O
did	O	O
n't	O	O
work	O	O
:	O	O

1	O	O
.	O	O
SetWindowPos(&this->wndTop,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE)	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block

2	O	O
.	O	O
SetWindowPos(&this->wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE)	B-Code_Block	B-Code_Block
;	I-Code_Block	O

EDIT	O	O

Also	O	O
,	O	O
sub	O	O
dialogs	O	B-Class
are	O	O
created	O	O
this	O	O
way	O	O
:	O	O

m_subDlg1->Create	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
SubDlg1::IDD	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
this	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

As	O	O
long	O	O
as	O	O
there	O	O
is	O	O
an	O	O
owner	O	O
relation	O	O
between	O	O
two	O	O
windows	O	B-User_Interface_Element
.	O	O

the	O	O
owner	O	O
of	O	O
a	O	O
window	O	B-User_Interface_Element
can	O	O
never	O	O
be	O	O
on	O	O
top	O	O
of	O	O
the	O	O
owned	O	O
window	O	B-User_Interface_Element
.	O	O

Windows	O	B-User_Interface_Element
in	O	O
an	O	O
owner	O	O
,	O	O
parent	O	O
,	O	O
child	O	O
relation	O	O
always	O	O
behave	O	O
the	O	O
same	O	O
.	O	O

The	O	O
owned/child	O	O
window	O	B-User_Interface_Element
is	O	O
always	O	O
on	O	O
top	O	O
of	O	O
the	O	O
parent/owner	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
break	O	O
this	O	O
,	O	O
you	O	O
have	O	O
to	O	O
break	O	O
the	O	O
owner/child	O	O
relation	O	O
.	O	O

Let	O	O
all	O	O
dialog	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
have	O	O
no	O	O
owner	O	O
..	O	O
.	O	O
than	O	O
they	O	O
may	O	O
float	O	O
freely	O	O
.	O	O

But	O	O
:	O	O
I	O	O
will	O	O
expect	O	O
the	O	O
you	O	O
program	O	O
does	O	O
n't	O	O
behave	O	O
better	O	O
.	O	O

Even	O	O
worse	O	O
.	O	O

User	O	O
might	O	O
search	O	O
windows	O	B-User_Interface_Element
that	O	O
are	O	O
deep	O	O
below	O	O
covered	O	O
under	O	O
other	O	O
windows	O	B-User_Interface_Element
.	O	O

And	O	O
they	O	O
will	O	O
never	O	O
get	O	O
in	O	O
front	O	O
,	O	O
when	O	O
your	O	O
program	O	O
gets	O	O
active	O	O
.	O	O

See	O	O
the	O	O
description	O	O
about	O	O
parent/child/owned	O	O
windows	O	B-User_Interface_Element
here	O	O
.	O	O

Also	O	O
this	O	O
article	O	O
might	O	O
be	O	O
helpful	O	O
.	O	O

Edit	O	O
:	O	O
The	O	O
problem	O	O
is	O	O
that	O	O
internally	O	O
the	O	O
MFC	O	B-Library
sets	O	O
the	O	O
main	O	O
window	O	B-User_Interface_Element
as	O	O
an	O	O
owner	O	O
if	O	O
no	O	O
parent	O	O
is	O	O
given	O	O
.	O	O

Only	O	O
the	O	O
call	O	O
to	O	O
BOOL	B-Code_Block	B-Code_Block
Wnd	I-Code_Block	I-Code_Block
::	I-Code_Block	I-Code_Block
CreateDlgIndirect(LPCDLGTEMPLATE	I-Code_Block	I-Code_Block
lpDialogTemplate	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
CWnd	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
pParentWnd	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
HINSTANCE	I-Code_Block	I-Code_Block
hInst	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
allows	O	O
to	O	O
leave	O	O
pParentWnd	O	B-Variable
NULL	O	B-Value
.	O	O

So	O	O
you	O	O
may	O	O
create	O	O
the	O	O
window	O	B-User_Interface_Element
as	O	O
normal	O	O
,	O	O
but	O	O
use	O	O
SetParent(NULL)	O	B-Function
after	O	O
it	O	O
was	O	O
created	O	O
.	O	O

Again	O	O
the	O	O
MFC	O	B-Library
ASSERTs	O	O
this	O	O
.	O	O

SO	O	O
you	O	O
may	O	O
use	O	O
the	O	O
API	O	B-Library
function	O	O
and	O	O
the	O	O
handle	O	O
of	O	O
your	O	O
dialog	O	B-Class
.	O	O

i	O	O
have	O	O
some	O	O
CheckBoxes	O	B-Class
wich	O	O
are	O	O
made	O	O
of	O	O
my	O	O
database	O	O
table	O	B-Data_Structure
names	O	O

now	O	O
lets	O	O
say	O	O
i	O	O
get	O	O
10	O	O
checkboxes	O	B-Class
(	O	O
with	O	O
different	O	O
names	O	O
ofc	O	O
.	O	O
)	O	O

how	O	O
do	O	O
i	O	O
know	O	O
wich	O	O
of	O	O
them	O	O
was	O	O
checked	O	O
?	O	O

e.g	O	O
.	O	O
I	O	O
check	O	O
box	O	O
nr	O	O
1.5.7	O	B-Value
and	O	O
click	O	O
on	O	O
a	O	O
button	O	B-User_Interface_Element
"	O	B-Value
Print	O	I-Value
"	O	I-Value
how	O	O
do	O	O
i	O	O
print	O	O
them	O	O
out	O	O
?	O	O

System.out.println	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Checked	I-Code_Block	I-Code_Block
items	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
+check	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
;	B-Code_Block	B-Code_Block
?	O	O

You	O	O
need	O	O
a	O	O
data	O	O
structure	O	O
like	O	O
a	O	O
Map	O	B-Class
to	O	O
map	O	O
between	O	O
your	O	O
checkboxes	O	B-Class
and	O	O
the	O	O
tables	O	B-Data_Structure
..	O	O
.	O	O

I	O	O
usually	O	O
work	O	O
with	O	O
SWT	O	B-Application
and	O	O
you	O	O
have	O	O
a	O	O
map	O	O
in	O	O
each	O	O
GUI	O	O
component	O	O
to	O	O
store	O	O
whatever	O	O
you	O	O
want	O	O
,	O	O
but	O	O
as	O	O
far	O	O
as	O	O
I	O	O
know	O	O
,	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
this	O	O
in	O	O
awt	O	B-Application
,	O	O
so	O	O
you	O	O
need	O	O
to	O	O
do	O	O
this	O	O
manually	O	O
..	O	O
.	O	O
(	O	O
I	O	O
assume	O	O
you	O	O
are	O	O
using	O	O
awt	O	B-Application
,	O	O
although	O	O
CheckBox	O	B-Class
class	O	O
in	O	O
awt	O	B-Application
is	O	O
actually	O	O
Checkbox	O	B-Class
not	O	O
CheckBox	O	B-Class
!!	O	O
!	O	O
)	O	O

Bottom	O	O
line	O	O
is	O	O
,	O	O
you	O	O
need	O	O
to	O	O
bind	O	O
some	O	O
data	O	O
to	O	O
your	O	O
GUI	O	O
components	O	O
so	O	O
you	O	O
can	O	O
recognize	O	O
them	O	O
later	O	O
in	O	O
your	O	O
code	O	O
..	O	O
.	O	O

I	O	O
would	O	O
use	O	O
a	O	O
map	O	B-Class
:	O	O

And	O	O
build	O	O
them	O	O
up	O	O
as	O	O
you	O	O
create	O	O
the	O	O
checks	O	O
..	O	O
.	O	O

Use	O	O
CheckboxGroup	B-Code_Block	B-Class
.	O	O

add	O	O
a	O	O
CheckboxGroup	B-Code_Block	B-Class
as	O	O
follows	O	O
:	O	O

and	O	O
you	O	O
get	O	O
the	O	O
selected	O	O
value	O	O
.	O	O

For	O	O
my	O	O
experiment	O	O
I	O	O
need	O	O
to	O	O
define	O	O
specific	O	O
similarity	O	O
metrics	O	O
for	O	O
each	O	O
field	O	O
of	O	O
my	O	O
collection	O	O
documents	O	O
.	O	O

For	O	O
example	O	O
,	O	O
I	O	O
need	O	O
to	O	O
measure	O	O
the	O	O
Description	O	B-Variable
field	O	O
similarity	O	O
with	O	O
tf.idf	O	B-Algorithm
,	O	O
and	O	O
Geolocation	O	B-Variable
fields	O	O
with	O	O
Harvesine	O	B-Algorithm
distance.	O	I-Algorithm
.	O	O
etc	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
now	O	O
studying	O	O
the	O	O
Similarity	O	B-Class
class	O	O
.	O	O

I	O	O
was	O	O
wondering	O	O
if	O	O
there	O	O
is	O	O
any	O	O
good	O	O
tutorial	O	O
or	O	O
example	O	O
about	O	O
this	O	O
to	O	O
procede	O	O
faster	O	O
..	O	O
.	O	O

thanks	O	O

EDIT	O	O
:	O	O

IIUC	O	O
,	O	O
you	O	O
have	O	O
a	O	O
similarity	O	O
formula	O	O
per	O	O
field	O	O
,	O	O
and	O	O
you	O	O
want	O	O
to	O	O
use	O	O
it	O	O
per	O	O
document	O	O
,	O	O
running	O	O
against	O	O
all	O	O
other	O	O
documents	O	O
.	O	O

You	O	O
can	O	O
use	O	O
several	O	O
options	O	O
,	O	O
all	O	O
at	O	O
indexing	O	O
time	O	O
:	O	O

Extend	O	O
the	O	O
DefaultSimilarity	O	B-Class
class	O	O
.	O	O

Extend	O	O
the	O	O
SimilarityDelegator	O	B-Class
class	O	O
,	O	O
if	O	O
you	O	O
only	O	O
need	O	O
to	O	O
modify	O	O
part	O	O
of	O	O
the	O	O
methods	O	O
.	O	O

In	O	O
both	O	O
methods	O	O
,	O	O
you	O	O
may	O	O
make	O	O
use	O	O
of	O	O
payloads	O	O
to	O	O
store	O	O
term-specific	O	O
information	O	O
(	O	O
could	O	O
be	O	O
useful	O	O
for	O	O
the	O	O
lat-long	O	O
data	O	O
)	O	O
.	O	O

After	O	O
implementing	O	O
a	O	O
Similarity	O	B-Class
class	O	O
using	O	O
one	O	O
of	O	O
these	O	O
methods	O	O
,	O	O
use	O	O
Similarity.setDefault(mySimilarity)	O	B-Function
to	O	O
set	O	O
this	O	O
as	O	O
the	O	O
Similarity	O	B-Class
instance	O	O
for	O	O
indexing	O	O
and	O	O
searching	O	O
.	O	O

Only	O	O
then	O	O
index	O	O
your	O	O
text	O	O
corpus	O	O
,	O	O
which	O	O
you	O	O
can	O	O
search	O	O
later	O	O
-	O	O
you	O	O
will	O	O
probably	O	O
have	O	O
to	O	O
extend	O	O
the	O	O
Searcher	O	B-Class
class	O	O
as	O	O
well	O	O
to	O	O
get	O	O
the	O	O
raw	O	O
similarity	O	O
.	O	O

Having	O	O
said	O	O
that	O	O
,	O	O
I	O	O
believe	O	O
this	O	O
approach	O	O
is	O	O
wrong	O	O
for	O	O
your	O	O
use	O	O
case	O	O
-	O	O
Lucene	O	B-Library
is	O	O
optimized	O	O
to	O	O
get	O	O
a	O	O
few	O	O
similar	O	O
documents	O	O
,	O	O
not	O	O
a	O	O
score	O	O
for	O	O
every	O	O
one	O	O
,	O	O
so	O	O
I	O	O
predict	O	O
the	O	O
runtime	O	O
will	O	O
be	O	O
prohibitive	O	O
-	O	O
Hope	O	O
I	O	O
am	O	O
wrong	O	O
,	O	O
but	O	O
nevertheless	O	O
I	O	O
suggest	O	O
you	O	O
read	O	O
Mining	O	O
of	O	O
Massive	O	O
Datasets	O	O
for	O	O
a	O	O
better	O	O
approach	O	O
-	O	O
min	O	B-Algorithm
hashes	O	I-Algorithm
and	O	O
shingling	O	B-Algorithm
.	O	O

Good	O	O
luck	O	O
.	O	O

Patrick	O	B-User_Name
,	O	O
I	O	O
will	O	O
first	O	O
quote	O	O
Grant	O	B-User_Name
Ingersoll	O	I-User_Name
about	O	O
modifying	O	O
the	O	O
Similarity	O	B-Class
class	O	O
:	O	O
"	O	O
Here	O	O
be	O	O
Dragons	O	O
"	O	O
.	O	O

Customizing	O	O
Lucene	O	B-Class
's	O	O
Similarity	O	I-Class
class	O	O
is	O	O
hard	O	O
.	O	O

I	O	O
have	O	O
done	O	O
this	O	O
.	O	O

It	O	O
is	O	O
not	O	O
fun	O	O
.	O	O

Only	O	O
do	O	O
this	O	O
if	O	O
you	O	O
absolutely	O	O
have	O	O
to	O	O
.	O	O

I	O	O
suggest	O	O
you	O	O
should	O	O
first	O	O
read	O	O
Grant	O	B-User_Name
's	O	O
spatial	O	O
search	O	O
paper	O	O
,	O	O
his	O	O
findability	O	O
paper	O	O
and	O	O
his	O	O
'	O	O
debugging	O	O
relevance	O	O
'	O	O
paper	O	O
.	O	O

These	O	O
show	O	O
other	O	O
ways	O	O
to	O	O
get	O	O
hits	O	O
as	O	O
needed	O	O
.	O	O

I	O	O
have	O	O
.svc	B-Code_Block	B-File_Type
webservice	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
add	O	O
to	O	O
my	O	O
Webservice	O	O
certficiate	O	O
and	O	O
to	O	O
browse	O	O
with	O	O
HTTPS	O	O
instead	O	O
HTTP	O	O
.	O	O

After	O	O
I	O	O
was	O	O
added	O	O
the	O	O
certificate	O	O
I	O	O
got	O	O
the	O	O
following	O	O
error	O	O
:	O	O

And	O	O
when	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
access	O	O
to	O	O
my	O	O
WS	O	O
without	O	O
HTTPS	O	O
its	O	O
work	O	O
fine	O	O
.	O	O

http://localhost/myws.svc/	O	O
-	O	O
Works	O	O

https://localhost/myws.svc/	O	O
-	O	O
Error	O	O

How	O	O
can	O	O
I	O	O
solve	O	O
it	O	O
?	O	O

Thanks	O	O
!	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
create	O	O
an	O	O
add-in	O	O
by	O	O
using	O	O
the	O	O
article	O	O
below	O	O

http://blogs.microsoft.co.il/blogs/shair/archive/2008/07/28/how-to-create-sql-server-management-studio-addin.aspx	O	O

I	O	O
know	O	O
this	O	O
article	O	O
is	O	O
a	O	O
bit	O	O
outdated	O	O
but	O	O
i	O	O
managed	O	O
to	O	O
get	O	O
as	O	O
far	O	O
as	O	O
this	O	O
article	O	O
again	O	O

http://jcooney.net/post/2007/11/26/The-Black-Art-of-Writing-a-SQL-Server-Management-Studio-2005-Add-In.aspx	O	O

here	O	O
once	O	O
i	O	O
reached	O	O
when	O	O
the	O	O
part	O	O
adding	O	O
the	O	O
external	O	O
program	O	O
to	O	O
run	O	O
upon	O	O
debug	O	O
i	O	O
was	O	O
met	O	O
with	O	O
this	O	O
nasty	O	O
error	O	O

is	O	O
there	O	O
any	O	O
good	O	O
article	O	O
to	O	O
show	O	O
how	O	O
to	O	O
do	O	O
the	O	O
add-in	O	O
using	O	O
the	O	O
VS2010	O	B-Application
for	O	O
the	O	O
SMSS2008r2	O	B-Application
?	O	O

Do	O	O
you	O	O
have	O	O
a	O	O
problem	O	O
starting	O	O
the	O	O
debug	O	O
?	O	O

You	O	O
have	O	O
to	O	O
specify	O	O
SSMS	O	B-Application
without	O	O
any	O	O
parameters	O	O
-	O	O
it	O	O
must	O	O
be	O	O
enough	O	O
.	O	O

But	O	O
I	O	O
have	O	O
"	O	O
bad	O	O
news	O	O
"	O	O
for	O	O
you	O	O
:	O	O
I	O	O
have	O	O
also	O	O
developed	O	O
an	O	O
add-in	O	O
and	O	O
during	O	O
development	O	O
the	O	O
problem	O	O
that	O	O
I	O	O
have	O	O
faced	O	O
was	O	O
:	O	O

you	O	O
can	O	O
debug	O	O
SSMS2008	O	B-Application
Add-In	O	O
only	O	O
from	O	O
VS2008	O	B-Application
(	O	O
full	O	O
or	O	O
express	O	O
)	O	O
and	O	O
you	O	O
can	O	O
defbug	O	O
SSMS2012	O	B-Application
add-in	O	O
only	O	O
from	O	O
VS2010	O	B-Application

If	O	O
you	O	O
"	O	O
cross	O	O
"	O	O
versions	O	O
,	O	O
you	O	O
have	O	O
to	O	O
put	O	O
a	O	O
message	O	B-User_Interface_Element
box	O	I-User_Interface_Element
in	O	O
your	O	O
add-in	O	O
and	O	O
then	O	O
attach	O	O
to	O	O
process	O	O
.	O	O

Check	O	O
my	O	O
add-in	O	O
-	O	O
ssmsboost	O	B-Application
-	O	O
maybe	O	O
you	O	O
will	O	O
not	O	O
need	O	O
to	O	O
write	O	O
your	O	O
own	O	O
:)	O	O
New	O	O
feature	O	O
requests	O	O
are	O	O
welcome	O	O
.	O	O

Also	O	O
check	O	O
ssms	O	B-Application
tools	O	O
pack	O	O
-	O	O
it	O	O
is	O	O
also	O	O
very	O	O
popular	O	O
one	O	O
.	O	O

I	O	O
am	O	O
doing	O	O
some	O	O
research	O	O
into	O	O
the	O	O
Memento	O	B-Algorithm
Pattern	O	I-Algorithm
and	O	O
I	O	O
am	O	O
generally	O	O
new	O	O
to	O	O
behavioural	O	O
patterns	O	O
and	O	O
with	O	O
my	O	O
research	O	O
I	O	O
have	O	O
been	O	O
getting	O	O
pretty	O	O
confused	O	O
.	O	O

One	O	O
of	O	O
the	O	O
main	O	O
things	O	O
I	O	O
have	O	O
been	O	O
getting	O	O
confused	O	O
on	O	O
is	O	O
the	O	O
differences	O	O
between	O	O
the	O	O
Memento	O	B-Algorithm
Pattern	O	I-Algorithm
and	O	O
Serialization	O	O
.	O	O

From	O	O
what	O	O
I	O	O
can	O	O
gather	O	O
both	O	O
can	O	O
be	O	O
used	O	O
to	O	O
store	O	O
objects	O	O
and	O	O
have	O	O
them	O	O
brought	O	O
back	O	O
at	O	O
a	O	O
later	O	O
date	O	O
but	O	O
I	O	O
have	O	O
not	O	O
been	O	O
able	O	O
to	O	O
find	O	O
a	O	O
clear	O	O
cut	O	O
answer	O	O
on	O	O
what	O	O
the	O	O
key	O	O
differences	O	O
between	O	O
them	O	O
are	O	O
,	O	O
maybe	O	O
I	O	O
have	O	O
missed	O	O
something	O	O
in	O	O
my	O	O
research	O	O
but	O	O
I	O	O
was	O	O
wondering	O	O
if	O	O
anyone	O	O
could	O	O
shed	O	O
some	O	O
light	O	O
on	O	O
what	O	O
the	O	O
differences	O	O
are	O	O
between	O	O
the	O	O
two	O	O
.	O	O

Thanks	O	O

Typically	O	O
the	O	O
Memento	O	B-Algorithm
pattern	O	I-Algorithm
is	O	O
used	O	O
to	O	O
implement	O	O
roll-back/save	O	O
point	O	O
support	O	O
.	O	O

For	O	O
example	O	O
I	O	O
might	O	O
want	O	O
to	O	O
mark	O	O
the	O	O
state	O	O
of	O	O
an	O	O
object	O	O
at	O	O
a	O	O
point	O	O
in	O	O
time	O	O
,	O	O
do	O	O
some	O	O
work	O	O
and	O	O
then	O	O
decide	O	O
to	O	O
revert	O	O
that	O	O
object	O	O
back	O	O
to	O	O
the	O	O
point	O	O
at	O	O
which	O	O
is	O	O
was	O	O
marked	O	O
.	O	O

The	O	O
implementation	O	O
of	O	O
a	O	O
Memento	O	B-Algorithm
pattern	O	I-Algorithm
could	O	O
use	O	O
serialisation	O	O
,	O	O
which	O	O
would	O	O
involve	O	O
saving	O	O
the	O	O
contents	O	O
of	O	O
the	O	O
object	O	O
into	O	O
a	O	O
byte[]	O	B-Data_Structure
and	O	O
keeping	O	O
in	O	O
memory	O	O
or	O	O
writing	O	O
to	O	O
disk	O	B-Device
.	O	O

When	O	O
reverting	O	O
the	O	O
content	O	O
of	O	O
the	O	O
object	O	O
would	O	O
be	O	O
rebuilt	O	O
from	O	O
the	O	O
serialised	O	O
copy	O	O
.	O	O

Conversely	O	O
I	O	O
could	O	O
implement	O	O
a	O	O
Memento	O	B-Algorithm
pattern	O	I-Algorithm
by	O	O
cloning	O	O
the	O	O
object	O	O
in	O	O
memory	O	O
and	O	O
keeping	O	O
a	O	O
reference	O	O
to	O	O
the	O	O
copy	O	O
and	O	O
then	O	O
copying	O	O
the	O	O
state	O	O
back	O	O
if	O	O
the	O	O
object	O	O
needs	O	O
reverting	O	O
.	O	O

This	O	O
method	O	O
does	O	O
n't	O	O
use	O	O
serialisation	O	O
.	O	O

The	O	O
Memento	O	B-Algorithm
pattern	O	I-Algorithm
is	O	O
an	O	O
OO	O	B-Algorithm
design	O	I-Algorithm
pattern	O	I-Algorithm
used	O	O
to	O	O
keep	O	O
previous	O	O
states	O	O
of	O	O
an	O	O
object	O	O
in	O	O
memory	O	O
.	O	O

It	O	O
's	O	O
useful	O	O
to	O	O
implement	O	O
an	O	O
"	O	O
Undo	O	O
"	O	O
operation	O	O
,	O	O
for	O	O
example	O	O
.	O	O

Serialization	O	O
is	O	O
the	O	O
process	O	O
of	O	O
transforming	O	O
a	O	O
graph	O	B-Data_Structure
of	O	O
objects	O	O
to	O	O
a	O	O
byte	O	B-Data_Structure
array	O	I-Data_Structure
,	O	O
in	O	O
order	O	O
to	O	O
save	O	O
it	O	O
on	O	O
disk	O	B-Device
,	O	O
or	O	O
send	O	O
it	O	O
to	O	O
another	O	O
JVM	O	B-Application
over	O	O
the	O	O
network	O	O
,	O	O
for	O	O
example	O	O
.	O	O

They	O	O
do	O	O
n't	O	O
have	O	O
much	O	O
in	O	O
common	O	O
.	O	O

I	O	O
have	O	O
different	O	O
<select>	B-Code_Block	B-HTML_XML_Tag
in	O	O
a	O	O
ng-repeat	O	B-HTML_XML_Tag
div	O	I-HTML_XML_Tag
.	O	O

What	O	O
I	O	O
want	O	O
is	O	O
to	O	O
avoid	O	O
users	O	O
select	O	O
several	O	O
times	O	O
a	O	O
same	O	O
option	O	O
.	O	O

I	O	O
used	O	O
the	O	O
filter	O	O
like	O	O
this	O	O
:	O	O

The	O	O
filter	O	O
works	O	O
like	O	O
I	O	O
want	O	O
(	O	O
I	O	O
tested	O	O
it	O	O
separately	O	O
)	O	O
.	O	O

But	O	O
the	O	O
result	O	O
is	O	O
not	O	O
good	O	O
.	O	O

When	O	O
the	O	O
filter	O	O
is	O	O
active	O	O
,	O	O
options	O	O
in	O	O
different	O	O
select	O	O
have	O	O
to	O	O
show	O	O
only	O	O
"	O	O
free	O	O
"	O	O
attributes	O	O
(	O	O
it	O	O
means	O	O
,	O	O
attributes	O	O
which	O	O
are	O	O
not	O	O
yet	O	O
selected	O	O
)	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
Demo	O	O
which	O	O
is	O	O
more	O	O
explicit	O	O
I	O	O
suppose	O	O
.	O	O

I	O	O
found	O	O
that	O	O
std::condition_variable	B-Code_Block	B-Class
is	O	O
very	O	O
difficult	O	O
to	O	O
use	O	O
due	O	O
to	O	O
spurious	O	O
wakeups	O	O
.	O	O

So	O	O
sometimes	O	O
I	O	O
need	O	O
to	O	O
set	O	O
a	O	O
flags	O	O
such	O	O
as	O	O
:	O	O

I	O	O
set	O	O
is_ready	B-Code_Block	B-Variable
to	O	O
true	B-Code_Block	O
before	O	O
I	O	O
call	O	O
notify	O	B-Function
(	O	O
notify_one()	B-Code_Block	B-Function
or	O	O
notify_all())	B-Code_Block	B-Function
,	O	O
and	O	O
then	O	O
I	O	O
wait	O	O
:	O	O

Is	O	O
there	O	O
any	O	O
reason	O	O
that	O	O
I	O	O
should	O	O
n't	O	O
just	O	O
do	O	O
this	O	O
:	O	O
(	O	O
Edit	O	O
:	O	O
Ok	O	O
,	O	O
this	O	O
is	O	O
really	O	O
a	O	O
bad	O	O
idea	O	O
.	O	O
)	O	O

And	O	O
if	O	O
condition_variable	B-Code_Block	B-Class
had	O	O
chosen	O	O
a	O	O
waiting	O	O
duration	O	O
(	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
whether	O	O
this	O	O
is	O	O
true	O	O
or	O	O
not	O	O
)	O	O
,	O	O
I	O	O
prefer	O	O
choose	O	O
it	O	O
myself	O	O
.	O	O

The	O	O
purpose	O	O
of	O	O
std::condition_variable	B-Code_Block	B-Class
is	O	O
to	O	O
wait	O	O
for	O	O
some	O	O
condition	O	O
to	O	O
become	O	O
true	O	B-Value
.	O	O

It	O	O
is	O	O
not	O	O
designed	O	O
to	O	O
be	O	O
just	O	O
a	O	O
receiver	O	O
of	O	O
a	O	O
notify	O	B-Function
.	O	O

You	O	O
might	O	O
use	O	O
it	O	O
,	O	O
for	O	O
example	O	O
,	O	O
when	O	O
a	O	O
consumer	O	O
thread	O	O
needs	O	O
to	O	O
wait	O	O
for	O	O
a	O	O
queue	O	B-Data_Structure
to	O	O
become	O	O
non-empty	O	O
.	O	O

The	O	O
consumer	O	O
(	O	O
get_from_queue	B-Code_Block	B-Function
)	O	O
is	O	O
not	O	O
waiting	O	O
for	O	O
the	O	O
condition	O	B-Class
variable	O	I-Class
,	O	O
they	O	O
are	O	O
waiting	O	O
for	O	O
the	O	O
condition	O	O
the_queue.empty()	B-Code_Block	B-Function
.	O	O

The	O	O
condition	O	B-Class
variable	O	I-Class
gives	O	O
you	O	O
the	O	O
way	O	O
to	O	O
put	O	O
them	O	O
to	O	O
sleep	O	O
while	O	O
they	O	O
are	O	O
waiting	O	O
,	O	O
simultaneously	O	O
releasing	O	O
the	O	O
mutex	O	B-Class
and	O	O
doing	O	O
so	O	O
in	O	O
a	O	O
way	O	O
that	O	O
avoids	O	O
race	O	O
conditions	O	O
where	O	O
you	O	O
miss	O	O
wake	O	O
ups	O	O
.	O	O

The	O	O
condition	O	O
you	O	O
are	O	O
waiting	O	O
on	O	O
should	O	O
be	O	O
protected	O	O
by	O	O
a	O	O
mutex	O	B-Class
(	O	O
the	O	O
one	O	O
you	O	O
release	O	O
when	O	O
you	O	O
wait	O	O
on	O	O
the	O	O
condition	O	B-Class
variable	O	I-Class
.	O	O
)	O	O

This	O	O
means	O	O
that	O	O
the	O	O
condition	O	O
rarely	O	O
(	O	O
if	O	O
ever	O	O
)	O	O
needs	O	O
to	O	O
be	O	O
an	O	O
atomic	B-Code_Block	B-Data_Type
.	O	O

You	O	O
are	O	O
always	O	O
accessing	O	O
it	O	O
from	O	O
within	O	O
a	O	O
mutex	O	B-Class
.	O	O

You	O	O
can	O	O
code	O	O
this	O	O
either	O	O
way	O	O
:	O	O

Using	O	O
atomics	O	B-Data_Type
and	O	O
a	O	O
polling	O	O
loop	O	O
.	O	O

Using	O	O
a	O	O
condition_variable	B-Code_Block	B-Class
.	O	O

I	O	O
've	O	O
coded	O	O
it	O	O
both	O	O
ways	O	O
for	O	O
you	O	O
below	O	O
.	O	O

On	O	O
my	O	O
system	O	O
I	O	O
can	O	O
monitor	O	O
in	O	O
real	O	O
time	O	O
how	O	O
much	O	O
cpu	O	B-Device
any	O	O
given	O	O
process	O	O
is	O	O
using	O	O
.	O	O

First	O	O
with	O	O
the	O	O
polling	O	O
loop	O	O
:	O	O

For	O	O
me	O	O
this	O	O
takes	O	O
30	O	O
seconds	O	O
to	O	O
execute	O	O
,	O	O
and	O	O
while	O	O
executing	O	O
the	O	O
process	O	O
takes	O	O
about	O	O
99.6	O	O
%	O	O
of	O	O
a	O	O
cpu	O	B-Device
.	O	O

Alternatively	O	O
with	O	O
a	O	O
condition_variable	B-Code_Block	B-Class
:	O	O

This	O	O
has	O	O
the	O	O
exact	O	O
same	O	O
behavior	O	O
except	O	O
that	O	O
during	O	O
the	O	O
30	O	O
second	O	O
execution	O	O
,	O	O
the	O	O
process	O	O
is	O	O
taking	O	O
0.0	O	O
%	O	O
cpu	O	B-Device
.	O	O

If	O	O
you	O	O
're	O	O
writing	O	O
an	O	O
app	O	O
that	O	O
might	O	O
execute	O	O
on	O	O
a	O	O
battery	O	B-Device
powered	O	O
device	O	O
,	O	O
the	O	O
latter	O	O
is	O	O
nearly	O	O
infinitely	O	O
easier	O	O
on	O	O
the	O	O
battery	O	B-Device
.	O	O

Now	O	O
admittedly	O	O
,	O	O
if	O	O
you	O	O
had	O	O
a	O	O
very	O	O
poor	O	O
implementation	O	O
of	O	O
std::condition_variable	B-Code_Block	B-Class
,	O	O
it	O	O
could	O	O
have	O	O
the	O	O
same	O	O
inefficiency	O	O
as	O	O
the	O	O
polling	O	O
loop	O	O
.	O	O

However	O	O
in	O	O
practice	O	O
such	O	O
a	O	O
vendor	O	O
ought	O	O
to	O	O
go	O	O
out	O	O
of	O	O
business	O	O
fairly	O	O
quickly	O	O
.	O	O

Update	O	O

For	O	O
grins	O	O
I	O	O
augmented	O	O
my	O	O
condition_variable	O	B-Class
wait	O	O
loop	O	O
with	O	O
a	O	O
spurious	O	O
wakeup	O	O
detector	O	O
.	O	O

I	O	O
ran	O	O
it	O	O
again	O	O
,	O	O
and	O	O
it	O	O
did	O	O
not	O	O
print	O	O
out	O	O
anything	O	O
.	O	O

Not	O	O
one	O	O
spurious	O	O
wakeup	O	O
.	O	O

That	O	O
is	O	O
of	O	O
course	O	O
not	O	O
guaranteed	O	O
.	O	O

But	O	O
it	O	O
does	O	O
demonstrate	O	O
what	O	O
a	O	O
quality	O	O
implementation	O	O
can	O	O
achieve	O	O
.	O	O

I	O	O
have	O	O
5000	O	O
data	O	O
in	O	O
DB	O	O
table	O	B-Data_Structure
,	O	O
and	O	O
I	O	O
want	O	O
to	O	O
apply	O	O
jQuery	O	B-Library
Autosuggestion	O	O
Filter	O	O
on	O	O
frontend	O	O
and	O	O
for	O	O
this	O	O
requirement	O	O
implemented	O	O
js	O	B-Language
&	O	O
CSS	O	B-Language

select2.css	O	B-File_Name
and	O	O
select2.js	O	B-File_Name
with	O	O
jquery-2.1.1.js	O	B-File_Name
.	O	O

But	O	O
unfortunately	O	O
after	O	O
implementing	O	O
and	O	O
when	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
access	O	O
Autosuggestion	O	B-User_Interface_Element
Filter	O	I-User_Interface_Element
from	O	O
front-end	O	O
,	O	O
here	O	O
I	O	O
found	O	O
delay	O	O
is	O	O
more	O	O
so	O	O
can	O	O
anyone	O	O
suggest	O	O
me	O	O
so	O	O
that	O	O
it	O	O
will	O	O
load	O	O
very	O	O
fast	O	O
and	O	O
no	O	O
delay	O	O
.	O	O

Thanks	O	O
!	O	O

Are	O	O
you	O	O
limiting	O	O
the	O	O
number	O	O
of	O	O
records	O	O
that	O	O
are	O	O
going	O	O
to	O	O
the	O	O
front-end	O	O
?	O	O

Query	O	O
your	O	O
database	O	O
only	O	O
for	O	O
the	O	O
top	O	O
10	O	O
records	O	O
and	O	O
send	O	O
only	O	O
these	O	O
records	O	O
to	O	O
the	O	O
Front-End	O	O
.	O	O

Break	O	O
down	O	O
your	O	O
result	O	O
from	O	O
DB	O	O
in	O	O
to	O	O
separate	O	O
lists	O	B-Data_Structure
like	O	O
i	O	O
will	O	O
say	O	O
in	O	O
alphabetical	O	O
order	O	O
.	O	O

And	O	O
if	O	O
you	O	O
are	O	O
sure	O	O
that	O	O
5000	O	O
record	O	O
are	O	O
only	O	O
going	O	O
to	O	O
be	O	O
used	O	O
for	O	O
corresponding	O	O
request	O	O
then	O	O
cache	O	O
it	O	O
.	O	O

So	O	O
now	O	O
challenge	O	O
is	O	O
to	O	O
see	O	O
the	O	O
search	O	O
string	O	B-Data_Type
and	O	O
fetch	O	O
the	O	O
result	O	O
from	O	O
the	O	O
corresponding	O	O
list	O	B-Data_Structure
.	O	O

Hope	O	O
it	O	O
can	O	O
help	O	O
you	O	O
.	O	O

I	O	O
'm	O	O
really	O	O
bad	O	O
with	O	O
html/css	O	B-Language
,	O	O
so	O	O
I	O	O
'm	O	O
just	O	O
wondering	O	O
if	O	O
I	O	O
can	O	O
get	O	O
your	O	O
help	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
fiddle	O	B-Application
of	O	O
this	O	O
table	O	B-User_Interface_Element
fiddle	O	B-Application
.	O	O

You	O	O
can	O	O
see	O	O
that	O	O
each	O	O
of	O	O
the	O	O
td	O	B-HTML_XML_Tag
rows	O	B-User_Interface_Element
are	O	O
the	O	O
same	O	O
width	O	B-Variable
.	O	O

However	O	O
,	O	O
I	O	O
want	O	O
,	O	O
for	O	O
example	O	O
,	O	O
to	O	O
have	O	O
the	O	O
column	O	B-User_Interface_Element
on	O	O
the	O	O
left	O	O
200	O	B-Value
px	O	I-Value
,	O	O
and	O	O
the	O	O
column	O	B-User_Interface_Element
on	O	O
the	O	O
right	O	O
50	O	B-Value
px	O	I-Value
.	O	O

What	O	O
's	O	O
the	O	O
most	O	O
efficient	O	O
way	O	O
to	O	O
achieve	O	O
that	O	O
if	O	O
I	O	O
'm	O	O
going	O	O
to	O	O
have	O	O
a	O	O
lot	O	O
of	O	O
rows	O	B-User_Interface_Element
?	O	O

CSS	O	B-Language

You	O	O
can	O	O
do	O	O
this	O	O
by	O	O
writing	O	O
an	O	O
inline	O	O
style	O	B-HTML_XML_Tag
into	O	O
your	O	O
HTML	O	B-Language
markup	O	O
.	O	O

Keep	O	O
in	O	O
mind	O	O
that	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
set	O	O
the	O	O
style	O	O
on	O	O
every	O	O
<td>,	B-Code_Block	B-HTML_XML_Tag
just	O	O
on	O	O
the	O	O
<th>	B-Code_Block	B-HTML_XML_Tag
.	O	O

All	O	O
of	O	O
the	O	O
above	O	O
answers	O	O
would	O	O
work	O	O
,	O	O
but	O	O
I	O	O
would	O	O
prefer	O	O
to	O	O
set	O	O
a	O	O
class	O	O
on	O	O
the	O	O
<th>	B-Code_Block	B-HTML_XML_Tag
and	O	O
apply	O	O
the	O	O
width	O	B-Variable
styles	O	O
that	O	O
way	O	O
.	O	O

And	O	O
CSS	O	B-Language
:	O	O

Just	O	O
my	O	O
style	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
a	O	O
fan	O	O
of	O	O
inline	O	O
styles	O	O
,	O	O
just	O	O
for	O	O
the	O	O
simple	O	O
fact	O	O
you	O	O
MAY	O	O
want	O	O
to	O	O
style	O	O
the	O	O
headers	O	O
differently	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
that	O	O
,	O	O
inline	O	O
would	O	O
work	O	O
fine	O	O
.	O	O

How	O	O
to	O	O
refresh	O	O
laravel	O	B-Library
session	O	O
variable	O	O
sent	O	O
by	O	O
controller	O	O
,	O	O
my	O	O
controller	O	O
is	O	O
:	O	O

and	O	O
I	O	O
am	O	O
showing	O	O
this	O	O
data	O	O
in	O	O
view	O	O
as	O	O
:	O	O

i	O	O
want	O	O
to	O	O
refresh	O	O
this	O	O
data	O	O
(	O	O
tables	O	B-User_Interface_Element
)	O	O
every	O	O
2	O	O
seconds	O	O
,	O	O
how	O	O
can	O	O
i	O	O
do	O	O
that	O	O
?	O	O

I	O	O
have	O	O
written	O	O
a	O	O
C#	O	B-Language
powershell	O	B-Application
cmdlet	O	O
that	O	O
fills	O	O
up	O	O
custom	O	O
objects	O	O
from	O	O
json	O	B-File_Type
file	O	O
.	O	O

Now	O	O
I	O	O
need	O	O
to	O	O
pass	O	O
the	O	O
object	O	O
to	O	O
other	O	O
C#	O	B-Language
cmdlets	O	O
that	O	O
follow	O	O

Thanks	O	O

Can	O	O
it	O	O
be	O	O
blocked	O	O
with	O	O
an	O	O
adblock	O	O
like	O	O
Adblock	O	B-Application
Plus	O	I-Application
or	O	O
others	O	O
..	O	O
.	O	O

It	O	O
can	O	O
be	O	O
blocked	O	O
the	O	O
same	O	O
way	O	O
as	O	O
a	O	O
banner	O	O
if	O	O
it	O	O
's	O	O
URL	O	O
matches	O	O
the	O	O
black	O	O
list	O	O
e.g	O	O
.	O	O
http://domain.com/ads/	B-Code_Block	B-Code_Block
...	I-Code_Block	I-Code_Block
.	O	O

Some	O	O
versions	O	O
of	O	O
AdBlock	O	B-Application
allows	O	O
to	O	O
block	O	O
Flash	O	B-Application
embeds	O	O
from	O	O
roll-over	O	O
menu	O	B-User_Interface_Element
.	O	O

Some	O	O
browsers	O	B-Application
,	O	O
expecially	O	O
mobile	O	B-Device
ones	O	O
,	O	O
can	O	O
disable	O	O
all	O	O
Flash	O	B-Application
embeds	O	O
until	O	O
user	O	O
manually	O	O
clicks	O	O
on	O	O
particular	O	O
embed	O	O
to	O	O
download	O	O
and	O	O
start	O	O
it	O	O
.	O	O

Microsoft	O	B-Website
announced	O	O
the	O	O
availability	O	O
of	O	O
Azure	O	B-Application
DocumentDB	O	I-Application
as	O	O
follows	O	O
..	O	O
.	O	O

I	O	O
really	O	O
like	O	O
the	O	O
"	O	O
transactional	O	O
execution	O	O
of	O	O
JavaScript	O	B-Language
logic	O	O
"	O	O
.	O	O

Sounds	O	O
like	O	O
an	O	O
approach	O	O
similar	O	O
to	O	O
that	O	O
of	O	O
PostgreSQL	O	B-Application
NoSQL	O	I-Application
.	O	O

Anyone	O	O
know	O	O
what	O	O
is	O	O
the	O	O
technological	O	O
basis	O	O
for	O	O
the	O	O
Azure	O	B-Application
DocumentDB	O	I-Application
service	O	O
?	O	O

SQL	O	B-Language
Server	O	B-Application
?	O	O

DocumentDB	O	B-Application
has	O	O
been	O	O
built	O	O
from	O	O
the	O	O
ground	O	O
up	O	O
as	O	O
an	O	O
entirely	O	O
new	O	O
database	O	O
specifically	O	O
designed	O	O
for	O	O
JSON	O	B-File_Type
and	O	O
one	O	O
that	O	O
has	O	O
deep	O	O
integration	O	O
with	O	O
JavaScript	O	B-Language
.	O	O

It	O	O
does	O	O
not	O	O
share	O	O
anything	O	O
with	O	O
SQL	O	B-Language
Server	O	B-Application
.	O	O

Using	O	O
a	O	O
KnockBack	O	B-Class
ViewModel	O	I-Class
,	O	O
is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
create	O	O
a	O	O
computed	O	O
observable	O	O
from	O	O
the	O	O
underlying	O	O
Backbone	O	B-Library
model	O	O
's	O	O
methods	O	O
?	O	O

As	O	O
an	O	O
example	O	O
,	O	O
in	O	O
javascript	O	B-Language
:	O	O

and	O	O
in	O	O
the	O	O
Knockout	O	B-Library
markup	O	O
:	O	O

When	O	O
I	O	O
try	O	O
to	O	O
run	O	O
this	O	O
,	O	O
I	O	O
get	O	O
the	O	O
error	O	O
:	O	O

Am	O	O
I	O	O
doing	O	O
something	O	O
wrong	O	O
,	O	O
or	O	O
do	O	O
I	O	O
need	O	O
to	O	O
create	O	O
the	O	O
observable	O	O
in	O	O
the	O	O
ViewModel	O	B-Class
manually	O	O
?	O	O

jsfiddles	O	B-Application
:	O	O
without	O	O
observable	O	O
,	O	O
with	O	O
observable	O	O

A	O	O
little	O	O
preamble	O	O
:	O	O
Knockback	O	B-Library
puts	O	O
the	O	O
model	O	O
in	O	O
MVVM	O	B-Algorithm
,	O	O
where	O	O
Knockout	O	B-Library
is	O	O
really	O	O
just	O	O
VVM	O	B-Algorithm
.	O	O

Knockback	O	B-Library
also	O	O
gives	O	O
you	O	O
some	O	O
automatic	O	O
synchronization	O	O
between	O	O
them	O	O
,	O	O
which	O	O
is	O	O
nice	O	O
.	O	O

But	O	O
you	O	O
still	O	O
need	O	O
to	O	O
keep	O	O
in	O	O
mind	O	O
that	O	O
the	O	O
model	O	O
and	O	O
the	O	O
viewmodel	O	B-Class
are	O	O
two	O	O
different	O	O
pieces	O	O
of	O	O
your	O	O
app	O	O
.	O	O

The	O	O
viewmodel	O	B-Class
is	O	O
n't	O	O
just	O	O
a	O	O
Knockout	O	B-Library
copy	O	O
of	O	O
the	O	O
Bootstrap	O	B-Library
model	O	O
.	O	O

Do	O	O
n't	O	O
put	O	O
viewmodel	O	B-Class
pieces	O	O
in	O	O
the	O	O
model	O	O
.	O	O

So	O	O
you	O	O
need	O	O
to	O	O
decide	O	O
whether	O	O
validation	O	O
is	O	O
a	O	O
viewmodel	O	B-Class
behavior	O	O
or	O	O
a	O	O
model	O	O
behavior	O	O
.	O	O

I	O	O
say	O	O
viewmodel	O	B-Class
,	O	O
because	O	O
you	O	O
want	O	O
to	O	O
use	O	O
it	O	O
in	O	O
the	O	O
view	O	O
.	O	O

So	O	O
remove	O	O
it	O	O
from	O	O
the	O	O
model	O	O
and	O	O
define	O	O
a	O	O
computed	O	O
.	O	O

However	O	O
,	O	O
if	O	O
you	O	O
wanted	O	O
it	O	O
to	O	O
be	O	O
part	O	O
of	O	O
the	O	O
model	O	O
,	O	O
you	O	O
would	O	O
want	O	O
to	O	O
define	O	O
an	O	O
attribute	O	O
,	O	O
not	O	O
just	O	O
a	O	O
method	O	O
,	O	O
and	O	O
a	O	O
model	O	O
event	O	O
handler	O	O
that	O	O
would	O	O
update	O	O
the	O	O
attribute	O	O
on	O	O
change	O	O
.	O	O

Knockback	O	B-Library
will	O	O
dutifully	O	O
copy	O	O
the	O	O
attribute	O	O
into	O	O
the	O	O
viewmodel	O	B-Class
,	O	O
and	O	O
you	O	O
can	O	O
use	O	O
it	O	O
there	O	O
.	O	O

How	O	O
can	O	O
I	O	O
use	O	O
TCP	O	O
Keep	O	O
Alive	O	O
connection	O	O
options	O	O
on	O	O
psql.exe	O	B-File_Name
running	O	O
on	O	O
Windows	O	B-Operating_System
connecting	O	O
to	O	O
AWS	O	B-Application
Redshift	O	I-Application
?	O	O

I	O	O
tried	O	O
using	O	O
this	O	O
:	O	O
set	O	B-Code_Block
PGOPTIONS='-c	O	I-Code_Block
tcp_keepalives_idle	O	I-Code_Block
=	O	I-Code_Block
30	O	I-Code_Block
-c	O	I-Code_Block
tcp_keepalives_interval	O	I-Code_Block
=	O	I-Code_Block
1	O	I-Code_Block
-c	O	I-Code_Block
tcp_keepalives_count=10	O	I-Code_Block
'	O	B-Code_Block

I	O	O
get	O	O
errors	O	O
from	O	O
Redshift	O	B-Application
-	O	O
unknown	O	B-Error_Name
parameters	O	I-Error_Name
.	O	O

I	O	O
tried	O	O
Windows	O	B-Application
Registry	O	I-Application
Editor	O	I-Application
to	O	O
change	O	O
TCP	O	O
Keep	O	O
Alive	O	O
parameters	O	O
,	O	O
with	O	O
reboot	O	O
,	O	O
no	O	O
effect	O	O
.	O	O

I	O	O
am	O	O
not	O	O
able	O	O
to	O	O
run	O	O
via	O	O
psql	O	B-Library
any	O	O
moderately	O	O
long	O	O
SQL	O	B-Language
statement	O	O
such	O	O
as	O	O
Vacuum	O	B-Function
,	O	O
Copy	O	B-Function
,	O	O
etc	O	O
.	O	O

I	O	O
can	O	O
do	O	O
it	O	O
via	O	O
JDBC	O	B-Library
,	O	O
ODBC	O	B-Library
and	O	O
NpgSQL	O	B-Library
but	O	O
I	O	O
prefer	O	O
not	O	O
to	O	O
write	O	O
a	O	O
program	O	O
every	O	O
time	O	O
I	O	O
want	O	O
to	O	O
submit	O	O
a	O	O
command	O	O
to	O	O
Redshift	O	B-Application
.	O	O

So	O	O
psql.exe	O	B-File_Name
seems	O	O
to	O	O
be	O	O
the	O	O
easiest	O	O
option	O	O
,	O	O
except	O	O
that	O	O
it	O	O
only	O	O
works	O	O
on	O	O
short	O	O
queries	O	O
.	O	O

thanks	O	O
!	O	O
!	O	O

I	O	O
am	O	O
new	O	O
on	O	O
Draft-JS	O	B-Library
and	O	O
able	O	O
to	O	O
create	O	O
a	O	O
decent	O	O
enough	O	O
text	O	B-Application
editor	O	I-Application
for	O	O
my	O	O
consumption	O	O
,	O	O
But	O	O
I	O	O
need	O	O
to	O	O
add	O	O
a	O	O
UL	O	B-HTML_XML_Tag
list	O	B-Data_Structure
with	O	O
LI	O	B-HTML_XML_Tag
items	O	O
at	O	O
the	O	O
bottom	O	O
of	O	O
my	O	O
Textarea	O	B-HTML_XML_Tag
by	O	O
coding	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
using	O	O
Import	O	O
HTML	O	B-Language
and	O	O
then	O	O
adding	O	O
my	O	O
HTML	O	B-Language
into	O	O
it	O	O
and	O	O
then	O	O
Exporting	O	O
it	O	O
back	O	O
to	O	O
the	O	O
editor	O	B-Variable
state	O	I-Variable
,	O	O
But	O	O
Undo	O	O
and	O	O
Redo	O	O
are	O	O
not	O	O
working	O	O
like	O	O
this	O	O
.	O	O

I	O	O
may	O	O
sound	O	O
strange	O	O
but	O	O
your	O	O
help	O	O
will	O	O
be	O	O
highly	O	O
appreciated	O	O
as	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
find	O	O
good	O	O
resources	O	O
of	O	O
Draft-JS	O	B-Library

My	O	O
Code	O	O
for	O	O
adding	O	O
html	O	B-Language
which	O	O
I	O	O
am	O	O
currently	O	O
using	O	O
is	O	O
:	O	O

In	O	O
the	O	O
above	O	O
code	O	O
I	O	O
am	O	O
taking	O	O
html	O	B-Language
from	O	O
the	O	O
editor	O	B-Variable
state	O	I-Variable
and	O	O
then	O	O
append	O	O
the	O	O
desired	O	O
html	O	B-Language
string	O	B-Data_Type
and	O	O
regenerate	O	O
the	O	O
content	O	B-Variable
state	O	I-Variable
from	O	O
html	O	B-Language
and	O	O
edit	O	O
the	O	O
editor	O	B-Variable
state	O	I-Variable
.	O	O

Thank	O	O
You.	O	O
.	O	O

I	O	O
have	O	O
below	O	O
query	O	O
in	O	O
mysql	O	B-Application
where	O	O
I	O	O
want	O	O
to	O	O
check	O	O
if	O	O
branch	O	B-Variable
id	O	I-Variable
and	O	O
year	O	B-Variable
of	O	O
finance	O	B-Variable
type	O	I-Variable
from	O	O
branch_master	O	B-Variable
are	O	O
equal	O	O
with	O	O
branch	O	B-Variable
id	O	I-Variable
and	O	O
year	O	B-Variable
of	O	O
manager	O	B-Variable
then	O	O
update	O	O
status	O	B-Variable
in	O	O
manager	O	B-Variable
table	O	B-Data_Structure
against	O	O
branch	O	B-Variable
id	O	I-Variable
in	O	O
manager	O	B-Variable

but	O	O
getting	O	O
error	O	O

This	O	O
is	O	O
a	O	O
typical	O	O
MySQL	O	B-Application
thing	O	O
and	O	O
can	O	O
usually	O	O
be	O	O
circumvented	O	O
by	O	O
selecting	O	O
from	O	O
the	O	O
table	O	B-Data_Structure
derived	O	O
,	O	O
i.e	O	O
.	O	O
instead	O	O
of	O	O

use	O	O

The	O	O
complete	O	O
statement	O	O
:	O	O

Try	O	O
to	O	O
use	O	O
the	O	O
EXISTS	B-Code_Block	B-Code_Block
operator	O	O
:	O	O

Note	O	O
:	O	O
The	O	O
query	O	O
uses	O	O
an	O	O
additional	O	O
nesting	O	O
level	O	O
,	O	O
as	O	O
proposed	O	O
by	O	O
@Thorsten	O	B-User_Name
,	O	O
as	O	O
a	O	O
means	O	O
to	O	O
circumvent	O	O
the	O	O
Table	O	B-Data_Structure
is	O	O
specified	O	O
twice	O	O
error	O	O
.	O	O

Demo	O	O
here	O	O

Overview	O	O
:	O	O

I	O	O
have	O	O
written	O	O
an	O	O
application	O	O
that	O	O
allows	O	O
a	O	O
user	O	O
to	O	O
define	O	O
a	O	O
query	O	O
,	O	O
submit	O	O
it	O	O
to	O	O
a	O	O
server	O	B-Device
and	O	O
view	O	O
the	O	O
results	O	O
.	O	O

The	O	O
software	O	O
can	O	O
run	O	O
on	O	O
DB2	O	B-Application
or	O	O
MySQL	O	B-Application
.	O	O

Problem	O	O
:	O	O

We	O	O
've	O	O
had	O	O
issues	O	O
in	O	O
the	O	O
DB2	O	B-Application
version	O	O
where	O	O
a	O	O
user	O	O
has	O	O
tried	O	O
to	O	O
run	O	O
a	O	O
query	O	O
,	O	O
and	O	O
found	O	O
that	O	O
it	O	O
has	O	O
failed	O	O
because	O	O
their	O	O
user	O	O
profile	O	O
has	O	O
been	O	O
disabled	O	O
.	O	O

In	O	O
order	O	O
to	O	O
run	O	O
a	O	O
query	O	O
on	O	O
DB2	O	B-Application
(	O	O
on	O	O
an	O	O
IBM	O	B-Operating_System
i)	O	I-Operating_System
,	O	O
the	O	O
user	O	O
's	O	O
profile	O	O
name	O	O
and	O	O
password	O	O
are	O	O
provided	O	O
in	O	O
the	O	O
connection	O	O
string	O	B-Data_Type
.	O	O

Security	O	O
on	O	O
the	O	O
server	O	O
can	O	O
specify	O	O
that	O	O
a	O	O
user	O	O
's	O	O
profile	O	O
is	O	O
disabled	O	O
after	O	O
two	O	O
or	O	O
three	O	O
incorrect	O	O
logins	O	O
.	O	O

Question	O	O
:	O	O

I	O	O
've	O	O
debugged	O	O
the	O	O
application	O	O
and	O	O
found	O	O
that	O	O
the	O	O
problem	O	O
is	O	O
down	O	O
to	O	O
the	O	O
query	O	O
being	O	O
submitted	O	O
twice	O	O
.	O	O

If	O	O
the	O	O
user	O	O
's	O	O
password	O	O
is	O	O
wrong	O	O
,	O	O
then	O	O
of	O	O
course	O	O
,	O	O
this	O	O
is	O	O
having	O	O
the	O	O
knock-on	O	O
effect	O	O
of	O	O
disabling	O	O
their	O	O
profile	O	O
.	O	O

On	O	O
further	O	O
inspection	O	O
,	O	O
when	O	O
I	O	O
've	O	O
inspected	O	O
the	O	O
logs	O	B-File_Type
on	O	O
the	O	O
server	O	B-Device
(	O	O
while	O	O
debugging	O	O
line	O	O
by	O	O
line	O	O
)	O	O
,	O	O
I	O	O
've	O	O
found	O	O
that	O	O
the	O	O
query	O	O
is	O	O
submitted	O	O
to	O	O
the	O	O
server	O	O
when	O	O
you	O	O
call	O	O
TADOQuery.sql.add()	O	B-Function
,	O	O
and	O	O
again	O	O
when	O	O
the	O	O
TADOQuery	O	B-Class
's	O	O
active	O	B-Variable
propery	O	O
is	O	O
set	O	O
to	O	O
true	O	B-Value
(	O	O
which	O	O
is	O	O
the	O	O
point	O	O
at	O	O
which	O	O
I	O	O
would	O	O
expect	O	O
the	O	O
query	O	O
to	O	O
be	O	O
submitted	O	O
to	O	O
the	O	O
server	O	B-Device
)	O	O
.	O	O

Here	O	O
's	O	O
an	O	O
example	O	O
of	O	O
the	O	O
code	O	O
that	O	O
I	O	O
'm	O	O
using	O	O
to	O	O
run	O	O
the	O	O
query	O	O
:	O	O

My	O	O
question	O	O
is	O	O
therefore	O	O
quite	O	O
simple	O	O
:	O	O

1	O	O
.	O	O
Why	O	O
does	O	O
the	O	O
TADOQuery.sql.add()	O	B-Function
method	O	O
submit	O	O
the	O	O
query	O	O
(	O	O
when	O	O
it	O	O
should	O	O
just	O	O
be	O	O
adding	O	O
the	O	O
sql	O	B-Language
to	O	O
the	O	O
TADOQuery	O	B-Class
's	O	O
sql	O	B-Variable
property	O	O
)	O	O
?	O	O

2	O	O
.	O	O
What	O	O
can	O	O
I	O	O
do	O	O
to	O	O
prevent	O	O
this	O	O
?	O	O

i.e	O	O
.	O	O
is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
prevent	O	O
the	O	O
sql	O	B-Language
being	O	O
submitted	O	O
when	O	O
I	O	O
call	O	O
the	O	O
add()	O	B-Function
method	O	O
?	O	O

For	O	O
those	O	O
of	O	O
you	O	O
that	O	O
would	O	O
like	O	O
extra	O	O
information	O	O
about	O	O
the	O	O
logs	O	B-File_Type
,	O	O
the	O	O
exit	O	O
point	O	O
logs	O	O
on	O	O
the	O	O
IBM	O	B-Operating_System
i	O	I-Operating_System
show	O	O
that	O	O
when	O	O
I	O	O
call	O	O
adoqry.sql.add	O	B-Function
in	O	O
the	O	O
above	O	O
example	O	O
,	O	O
the	O	O
query	O	O
is	O	O
run	O	O
through	O	O
the	O	O
"	O	O
Database	O	O
Server-SQL	O	O
Requests	O	O
"	O	O
exit	O	O
point	O	O
application	O	O
,	O	O
via	O	O
function	O	O
"	O	O
Prepare	O	O
and	O	O
Describe	O	O
"	O	O
.	O	O

When	O	O
I	O	O
call	O	O
adoqry.active	O	B-Code_Block
:=	O	I-Code_Block
true	O	I-Code_Block
in	O	O
the	O	O
above	O	O
example	O	O
,	O	O
the	O	O
same	O	O
query	O	O
goes	O	O
through	O	O
the	O	O
same	O	O
exit	O	O
point	O	O
application	O	O
,	O	O
but	O	O
via	O	O
the	O	O
"	O	O
Open/Describe	O	O
"	O	O
function	O	O
.	O	O

If	O	O
you	O	O
're	O	O
not	O	O
familiar	O	O
with	O	O
the	O	O
IBM	O	B-Operating_System
i	O	I-Operating_System
,	O	O
do	O	O
n't	O	O
worry	O	O
about	O	O
it	O	O
-	O	O
I	O	O
'm	O	O
just	O	O
including	O	O
that	O	O
information	O	O
as	O	O
proof	O	O
that	O	O
I	O	O
have	O	O
traced	O	O
the	O	O
query	O	O
being	O	O
submitted	O	O
twice	O	O
.	O	O

The	O	O
real	O	O
issue	O	O
is	O	O
with	O	O
the	O	O
TADOQuery	O	B-Library
's	O	O
sql.add()	O	B-Function
processing	O	O
.	O	O

From	O	O
your	O	O
description	O	O
of	O	O
your	O	O
problem	O	O
,	O	O
I	O	O
assume	O	O
you	O	O
specify	O	O
the	O	O
ConnectionString	O	B-Variable
of	O	O
the	O	O
ADOQuery	O	B-Class
.	O	O

Doing	O	O
this	O	O
combines	O	O
the	O	O
database	O	O
login	O	O
with	O	O
the	O	O
running	O	O
of	O	O
the	O	O
query	O	O
.	O	O

You	O	O
have	O	O
found	O	O
that	O	O
this	O	O
has	O	O
undesirable	O	O
side	O	O
effects	O	O
when	O	O
the	O	O
user	O	O
's	O	O
credentials	O	O
are	O	O
invalid	O	O
.	O	O

Separate	O	O
the	O	O
database	O	O
login	O	O
from	O	O
the	O	O
query	O	O
by	O	O
using	O	O
an	O	O
ADOConnection	O	B-Class
.	O	O

Specify	O	O
the	O	O
ConnectionString	O	B-Variable
of	O	O
the	O	O
ADOConnection	O	B-Class
and	O	O
assign	O	O
the	O	O
ADOConnection	O	B-Class
to	O	O
the	O	O
ADOQuery.Connection	O	B-Variable
property	O	O
.	O	O

This	O	O
way	O	O
,	O	O
you	O	O
control	O	O
the	O	O
database	O	O
login	O	O
and	O	O
can	O	O
catch	O	O
logins	O	O
with	O	O
bad	O	O
credentials	O	O
.	O	O

Additionally	O	O
the	O	O
ADOConnection.Open	O	B-Function
method	O	O
allows	O	O
you	O	O
to	O	O
specify	O	O
the	O	O
username	O	O
and	O	O
password	O	O
so	O	O
you	O	O
do	O	O
not	O	O
have	O	O
to	O	O
put	O	O
them	O	O
in	O	O
the	O	O
ConnectionString	O	B-Variable
.	O	O

While	O	O
this	O	O
does	O	O
not	O	O
answer	O	O
you	O	O
specific	O	O
questions	O	O
,	O	O
this	O	O
approach	O	O
will	O	O
help	O	O
you	O	O
solve	O	O
the	O	O
problem	O	O
of	O	O
the	O	O
user	O	O
's	O	O
profile	O	O
being	O	O
disabled	O	O
by	O	O
separating	O	O
the	O	O
login	O	O
from	O	O
the	O	O
running	O	O
of	O	O
the	O	O
query	O	O
.	O	O

I	O	O
have	O	O
deployed	O	O
my	O	O
web	O	O
application	O	O
on	O	O
Tomcat	O	B-Application
server	O	I-Application
(	O	O
i.e	O	O
on	O	O
cloud	O	O
)	O	O
.	O	O

For	O	O
two	O	O
days	O	O
it	O	O
worked	O	O
fine	O	O
.	O	O

Today	O	O
I	O	O
am	O	O
getting	O	O
this	O	O
error	O	O
.	O	O

How	O	O
can	O	O
I	O	O
solve	O	O
it	O	O
?	O	O

On	O	O
the	O	O
page	O	O
87	O	O
of	O	O
the	O	O
Game	O	B-Device
Boy	O	I-Device
CPU	O	I-Device
Manual	O	O
it	O	O
is	O	O
claimed	O	O
that	O	O
the	O	O
CP	B-Code_Block	B-Code_Block
n	I-Code_Block	I-Code_Block
instruction	O	O
sets	O	O
the	O	O
carry	O	B-Variable
flag	O	O
when	O	O
there	O	O
was	O	O
no	O	O
borrow	O	O
and	O	O
that	O	O
it	O	O
means	O	O
that	O	O
A	B-Code_Block	B-Code_Block
<	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
.	O	O

This	O	O
seems	O	O
to	O	O
conflict	O	O
itself	O	O
,	O	O
because	O	O
the	O	O
carry	O	B-Variable
flag	O	O
is	O	O
set	O	O
when	O	O
A	B-Code_Block	B-Code_Block
>	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
.	O	O

An	O	O
example	O	O
:	O	O
If	O	O
A	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
and	O	O
B	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
,	O	O
CP	B-Code_Block	B-Code_Block
B	I-Code_Block	I-Code_Block
sets	O	O
the	O	O
flags	O	O
like	O	O
SUB	B-Code_Block	B-Code_Block
A	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
B	I-Code_Block	I-Code_Block
,	O	O
which	O	O
is	O	O
0	O	B-Value
-	O	I-Value
1	O	I-Value
.	O	O

This	O	O
becomes	O	O
0	O	B-Value
+	O	I-Value
255	O	I-Value
=	O	I-Value
255	O	I-Value
and	O	O
the	O	O
carry	O	O
flag	O	O
is	O	O
not	O	O
set	O	O
,	O	O
even	O	O
though	O	O
A	B-Code_Block	B-Code_Block
<	I-Code_Block	I-Code_Block
B	I-Code_Block	I-Code_Block
.	O	O

I	O	O
came	O	O
across	O	O
this	O	O
same	O	O
issue	O	O
in	O	O
other	O	O
Z80	O	B-Device
documents	O	O
as	O	O
well	O	O
,	O	O
so	O	O
I	O	O
do	O	O
n't	O	O
believe	O	O
this	O	O
is	O	O
a	O	O
typo	O	O
.	O	O

Am	O	O
I	O	O
misunderstanding	O	O
how	O	O
borrow	O	O
and	O	O
SUB	B-Code_Block	B-Code_Block
work	O	O
or	O	O
is	O	O
there	O	O
something	O	O
else	O	O
going	O	O
on	O	O
?	O	O

Is	O	O
SUB	B-Code_Block	B-Code_Block
not	O	O
equal	O	O
to	O	O
ADD	B-Code_Block	B-Code_Block
with	O	O
two	O	O
's	O	O
complement	O	O
in	O	O
terms	O	O
of	O	O
flags	O	O
?	O	O

The	O	O
GameBoy	O	B-Device
CPU	O	I-Device
manual	O	O
has	O	O
it	O	O
backwards	O	O
.	O	O

SUB	B-Code_Block	B-Code_Block
,	O	O
SBC	B-Code_Block	B-Code_Block
and	O	O
CP	B-Code_Block	B-Code_Block
all	O	O
set	O	O
the	O	O
carry	O	O
flag	O	O
when	O	O
there	O	O
is	O	O
borrow	O	O
.	O	O

If	O	O
SUB/SBC/CP	B-Code_Block	B-Code_Block
A	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
is	O	O
executed	O	O
then	O	O
carry	O	O
is	O	O
set	O	O
if	O	O
n	B-Code_Block	B-Code_Block
>	I-Code_Block	I-Code_Block
A	I-Code_Block	I-Code_Block
otherwise	O	O
it	O	O
is	O	O
clear	O	O
.	O	O

This	O	O
is	O	O
consistent	O	O
with	O	O
Z-80	O	B-Device
(	O	O
and	O	O
8080	O	B-Device
)	O	O
operation	O	O
.	O	O

As	O	O
well	O	O
MAME	O	B-Application
and	O	O
MESS	O	B-Application
implement	O	O
carry	O	B-Variable
the	O	O
same	O	O
way	O	O
.	O	O

I	O	O
'm	O	O
developing	O	O
ecommerece	O	O
site	O	O
using	O	O
magento	O	B-Application
.	O	O

My	O	O
problem	O	O
is	O	O
,	O	O

Show	O	O
all	O	O
countries	O	O
dropdown	O	B-User_Interface_Element
box	O	I-User_Interface_Element
in	O	O
user	O	O
register	O	O
page	O	B-User_Interface_Element
.	O	O

But	O	O
show	O	O
only	O	O
india	O	O
,	O	O
singapore	O	O
,	O	O
usa	O	O
in	O	O
dropdown	O	B-User_Interface_Element
box	O	I-User_Interface_Element
in	O	O
product	O	O
shipping	O	O
address	O	O
for	O	O
registerd	O	O
user	O	O
and	O	O
guest	O	O
.	O	O

Anybody	O	O
help	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
.	O	O

Thanx	O	O
in	O	O
advance	O	O
..	O	O
.	O	O

Shipping	O	O
can	O	O
be	O	O
allowed	O	O
only	O	O
to	O	O
defined	O	O
countries	O	O
.	O	O

It	O	O
can	O	O
be	O	O
set	O	O
in	O	O
shipping	O	O
method	O	O
settings	O	O
(	O	O
system->configuration->shipping	O	O
methods->your	O	O
shipping	O	O
method->Ship	O	O
to	O	O
Applicable	O	O
Countries	O	O
)	O	O
.	O	O

There	O	O
are	O	O
couple	O	O
of	O	O
values	O	O
:	O	O
"	O	B-Value
Ship	O	I-Value
to	O	I-Value
Applicable	O	I-Value
Countries	O	I-Value
"	O	I-Value
and	O	O
"	O	B-Value
Specific	O	I-Value
Countries	O	I-Value
"	O	I-Value
.	O	O

If	O	O
you	O	O
set	O	O
up	O	O
second	O	O
value	O	O
,	O	O
shipping	O	O
will	O	O
be	O	O
aviable	O	O
only	O	O
to	O	O
that	O	O
countries	O	O
,	O	O
that	O	O
you	O	O
will	O	O
select	O	O
in	O	O
the	O	O
feald	O	O
below	O	O
.	O	O

I	O	O
've	O	O
a	O	O
JsonResult	B-Code_Block	B-Class
object	O	O
to	O	O
return	O	O
from	O	O
a	O	O
MVC	O	B-Algorithm
method	O	O
,	O	O
but	O	O
I	O	O
need	O	O
to	O	O
remove	O	O
one	O	O
element	O	O
from	O	O
it	O	O
before	O	O
send	O	O
it	O	O
.	O	O

UPDATE	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
do	O	O
it	O	O
without	O	O
mapping	O	O
it	O	O
because	O	O
the	O	O
object	O	O
is	O	O
huge	O	O
and	O	O
very	O	O
complex	O	O
.	O	O

How	O	O
can	O	O
I	O	O
achieve	O	O
this	O	O
?	O	O

For	O	O
eg	O	O
.	O	O
:	O	O

and	O	O

and	O	O
then	O	O
REMOVE	O	B-Function
PropertyToNOTExpose	O	B-Variable
from	O	O
the	O	O
result	O	O
.	O	O

UPDATE	O	O
from	O	O
real	O	O
code	O	O
:	O	O

You	O	O
can	O	O
create	O	O
a	O	O
new	O	O
object	O	O
,	O	O
excluding	O	O
the	O	O
properties	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
sent	O	O
in	O	O
the	O	O
result	O	O
..	O	O
.	O	O

Another	O	O
options	O	O
could	O	O
be	O	O
to	O	O
convert	O	O
the	O	O
object	O	O
to	O	O
a	O	O
Newtonsoft.Json.Linq.JObject	O	B-Class
and	O	O
remove	O	O
the	O	O
property	O	O
using	O	O
JObject.Remove	O	B-Function
Method	O	O
(	O	O
String	O	B-Data_Type
)	O	O

You	O	O
could	O	O
try	O	O
using	O	O
the	O	O
[	B-Code_Block	B-Code_Block
ScriptIgnore	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
attribute	O	O
on	O	O
your	O	O
property	O	O
.	O	O

This	O	O
will	O	O
cause	O	O
the	O	O
JavaScriptSerializer	B-Code_Block	B-Class
to	O	O
ignore	O	O
it	O	O
.	O	O

However	O	O
,	O	O
this	O	O
means	O	O
that	O	O
it	O	O
will	O	O
be	O	O
ignored	O	O
on	O	O
deserialization	O	O
as	O	O
well	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
whether	O	O
that	O	O
is	O	O
an	O	O
issue	O	O
for	O	O
your	O	O
situation	O	O
or	O	O
not	O	O
.	O	O

Given	O	O
HTML	O	B-Language
that	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

I	O	O
would	O	O
like	O	O
,	O	O
using	O	O
only	O	O
CSS	O	B-Language
(	O	O
without	O	O
having	O	O
to	O	O
use	O	O
,	O	O
say	O	O
,	O	O
a	O	O
<span>	B-Code_Block	B-HTML_XML_Tag
element	O	O
in	O	O
the	O	O
HTML	O	B-Language
)	O	O
,	O	O
to	O	O
format	O	O
the	O	O
number	O	O
with	O	O
the	O	O
last	O	O
two	O	O
digits	O	O
(	O	O
or	O	O
,	O	O
in	O	O
general	O	O
,	O	O
characters	O	O
)	O	O
diminished	O	O
in	O	O
size	O	O
.	O	O

My	O	O
goal	O	O
is	O	O
to	O	O
write	O	O
a	O	O
CSS	O	B-Language
stylesheet	O	O
rule	O	O
for	O	O
the	O	O
unadorned	O	O
HTML	O	B-Language
above	O	O
that	O	O
behaves	O	O
as	O	O
if	O	O
I	O	O
had	O	O
this	O	O
:	O	O

That	O	O
is	O	O
not	O	O
possible	O	O
with	O	O
pure	O	O
CSS	O	B-Language
.	O	O

Only	O	O
html	O	B-Language
as	O	O
you	O	O
pointed	O	O
out	O	O
or	O	O
Javascript	O	B-Language
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
android	O	B-Operating_System
.	O	O

My	O	O
project	O	O
is	O	O
having	O	O
one	O	O
activity	O	B-Class
and	O	O
one	O	O
service	O	B-Class
.	O	O

My	O	O
service	O	B-Class
is	O	O
having	O	O
one	O	O
broadcast	O	B-Class
receiver	O	I-Class
and	O	O
activity	O	B-Class
is	O	O
having	O	O
broadcast	O	B-Class
sender	O	I-Class
which	O	O
is	O	O
in	O	O
PeriodSender	O	B-Function
method	O	O
.Dynamically	O	O
when	O	O
i	O	O
am	O	O
registering	O	O
the	O	O
receiver	O	B-Class
then	O	O
at	O	O
the	O	O
start	O	O
of	O	O
the	O	O
service	O	B-Class
it	O	O
is	O	O
not	O	O
invoking	O	O
but	O	O
if	O	O
i	O	O
send	O	O
some	O	O
thing	O	O
after	O	O
few	O	O
moment	O	O
then	O	O
it	O	O
invokes	O	O
.	O	O

But	O	O
I	O	O
want	O	O
to	O	O
register	O	O
it	O	O
in	O	O
Manifest	O	B-File_Name
,	O	O
I	O	O
have	O	O
included	O	O
the	O	O
receiver	O	O
details	O	O
in	O	O
Manifest	O	B-File_Name
but	O	O
the	O	O
receiver	O	B-Class
is	O	O
not	O	O
invoking	O	O
.	O	O

My	O	O
receiver	O	B-Class
class	O	O
name	O	O
is	O	O
MyReceiver21	O	B-Class
and	O	O
the	O	O
intent	O	B-Class
action	O	O
is	O	O
MY_ACTION1	O	B-Variable
.	O	O

actually	O	O
I	O	O
want	O	O
my	O	O
broadcast	O	B-Class
receiver	O	I-Class
to	O	O
be	O	O
registered	O	O
at	O	O
the	O	O
starting	O	O
it	O	O
self	O	O
.	O	O

You	O	O
do	O	O
n't	O	O
have	O	O
to	O	O
add	O	O
the	O	O
intent	O	B-HTML_XML_Tag
filter	O	I-HTML_XML_Tag
for	O	O
your	O	O
own	O	O
broadcasts	O	B-Class
.	O	O

Just	O	O
register	O	O
the	O	O
service	O	B-Class
for	O	O
that	O	O
broadcasts	O	B-Class
with	O	O
registerReceiver()	B-Code_Block	B-Function
when	O	O
the	O	O
service	O	B-Class
is	O	O
started	O	O
.	O	O

Note	O	O
,	O	O
that	O	O
you	O	O
have	O	O
to	O	O
start	O	O
the	O	O
service	O	B-Class
manually	O	O
when	O	O
your	O	O
App	O	O
starts	O	O
,	O	O
for	O	O
instance	O	O
in	O	O
the	O	O
MainActivity.onCreate()	B-Code_Block	B-Function
:	I-Code_Block	I-Function

When	O	O
the	O	O
MainActivity	O	B-Class
has	O	O
been	O	O
created	O	O
,	O	O
it	O	O
will	O	O
start	O	O
the	O	O
service	O	B-Class
,	O	O
which	O	O
itself	O	O
registers	O	O
for	O	O
BroadcastIntents	O	B-Class
and	O	O
starts	O	O
listening	O	O
for	O	O
them	O	O
.	O	O

This	O	O
should	O	O
work	O	O
.	O	O

I	O	O
am	O	O
making	O	O
a	O	O
game	O	O
with	O	O
Kivy	O	B-Library
where	O	O
you	O	O
can	O	O
move	O	O
a	O	O
character	O	B-User_Interface_Element
around	O	O
the	O	O
screen	O	B-User_Interface_Element
.	O	O

Earlier	O	O
,	O	O
I	O	O
had	O	O
it	O	O
working	O	O
where	O	O
when	O	O
you	O	O
move	O	O
the	O	O
character	O	B-User_Interface_Element
right	O	O
,	O	O
the	O	O
background	O	O
image	O	B-User_Interface_Element
would	O	O
scroll	O	O
to	O	O
the	O	O
left	O	O
,	O	O
and	O	O
same	O	O
with	O	O
the	O	O
right	O	O
.	O	O

Recently	O	O
,	O	O
what	O	O
I	O	O
tried	O	O
to	O	O
do	O	O
was	O	O
add	O	O
the	O	O
background	O	O
image	O	B-User_Interface_Element
to	O	O
a	O	O
widget	O	B-Class
along	O	O
with	O	O
another	O	O
image	O	O
,	O	O
with	O	O
the	O	O
intention	O	O
that	O	O
i	O	O
could	O	O
control	O	O
multiple	O	O
image	O	B-User_Interface_Element
locations	O	O
with	O	O
'	O	O
widget.pos	O	B-Variable
'	O	O
,	O	O
but	O	O
as	O	O
soon	O	O
as	O	O
I	O	O
did	O	O
this	O	O
,	O	O
not	O	O
only	O	O
does	O	O
the	O	O
second	O	O
image	O	B-User_Interface_Element
(	O	O
hero	O	B-Variable
2)	O	I-Variable
not	O	O
scroll	O	O
right	O	O
or	O	O
left	O	O
but	O	O
neither	O	O
does	O	O
the	O	O
background	O	O
image	O	B-User_Interface_Element
.	O	O

I	O	O
am	O	O
wondering	O	O
what	O	O
I	O	O
did	O	O
wrong	O	O
in	O	O
my	O	O
code	O	O
here	O	O
.	O	O

Looks	O	O
like	O	O
the	O	O
problem	O	O
here	O	O
is	O	O
that	O	O
you	O	O
are	O	O
using	O	O
a	O	O
FLoatLayout	O	B-Class
.	O	O

When	O	O
you	O	O
move	O	O
a	O	O
normal	O	O
layout	O	O
(	O	O
such	O	O
as	O	O
a	O	O
FloatLayout	O	B-Class
)	O	O
,	O	O
it	O	O
does	O	O
not	O	O
automatically	O	O
change	O	O
the	O	O
children	O	O
's	O	O
co-ordinates	O	O
.	O	O

If	O	O
you	O	O
want	O	O
that	O	O
behavior	O	O
,	O	O
try	O	O
using	O	O
a	O	O
RelativeLayout	O	B-Class
.	O	O

http://kivy.org/docs/api-kivy.uix.relativelayout.html	O	O

Peace	O	O
out	O	O

I	O	O
have	O	O
a	O	O
table	O	B-Data_Structure
with	O	O
8.2	O	O
million	O	O
entries	O	O
in	O	O
a	O	O
SQL	O	B-Application
Server	O	I-Application
2005	O	B-Version
database	O	O
.	O	O

This	O	O
table	O	B-Data_Structure
stores	O	O
basic	O	O
past	O	O
customer	O	O
details	O	O
(	O	O
referrer	O	O
,	O	O
ip	O	O
,	O	O
whether	O	O
they	O	O
entered	O	O
via	O	O
an	O	O
advertisement	O	O
,	O	O
etc	O	O
)	O	O
for	O	O
every	O	O
customer	O	O
we	O	O
have	O	O
had	O	O
come	O	O
to	O	O
the	O	O
site	O	O
.	O	O

Unfortunately	O	O
,	O	O
whoever	O	O
designed	O	O
the	O	O
table	O	B-Data_Structure
(	O	O
way	O	O
before	O	O
I	O	O
was	O	O
here	O	O
,	O	O
I	O	O
'm	O	O
a	O	O
lowly	O	O
intern	O	O
)	O	O
used	O	O
a	O	O
varchar(50)	B-Code_Block	B-Data_Type
field	O	O
for	O	O
the	O	O
ip	O	O
address	O	O
field	O	O
in	O	O
the	O	O
table	O	B-Data_Structure
.	O	O

Now	O	O
,	O	O
I	O	O
have	O	O
been	O	O
tasked	O	O
with	O	O
finding	O	O
a	O	O
way	O	O
to	O	O
run	O	O
a	O	O
query	O	O
to	O	O
see	O	O
if	O	O
we	O	O
have	O	O
an	O	O
entry	O	O
for	O	O
a	O	O
given	O	O
ip	O	O
address	O	O
.	O	O

This	O	O
is	O	O
the	O	O
first	O	O
time	O	O
I	O	O
've	O	O
had	O	O
to	O	O
deal	O	O
with	O	O
a	O	O
data	O	O
set	O	B-Data_Structure
this	O	O
large	O	O
and	O	O
no	O	O
matter	O	O
what	O	O
I	O	O
do	O	O
,	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
improve	O	O
the	O	O
result	O	O
speed	O	O
much	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
query	O	O
from	O	O
what	O	O
I	O	O
was	O	O
running	O	O
:	O	O

This	O	O
query	O	O
ran	O	O
for	O	O
over	O	O
2	O	O
min	O	O
and	O	O
31	O	O
seconds	O	O
before	O	O
I	O	O
cancelled	O	O
it	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
improve	O	O
the	O	O
speed	O	O
of	O	O
this	O	O
look	O	O
up	O	O
or	O	O
would	O	O
it	O	O
be	O	O
more	O	O
advisable	O	O
to	O	O
create	O	O
a	O	O
new	O	O
index	O	B-Variable
in	O	O
the	O	O
table	O	B-Data_Structure
that	O	O
stores	O	O
the	O	O
INET_ATON	O	B-Function
values	O	O
and	O	O
perform	O	O
the	O	O
look	O	O
up	O	O
on	O	O
that	O	O
?	O	O

Thanks	O	O
!	O	O

If	O	O
you	O	O
are	O	O
going	O	O
to	O	O
often	O	O
run	O	O
the	O	O
query	O	O
"	O	O
do	O	O
we	O	O
have	O	O
this	O	O
IP	O	O
address	O	O
"	O	O
then	O	O
you	O	O
should	O	O
definitely	O	O
add	O	O
an	O	O
index	O	B-Variable
on	O	O
IP	O	O
address	O	O
.	O	O

But	O	O
if	O	O
this	O	O
is	O	O
just	O	O
a	O	O
one-off	O	O
exercise	O	O
then	O	O
no	O	O
.	O	O

Try	O	O
creating	O	O
an	O	O
index	O	O
on	O	O
IPAddress	O	B-Variable
.	O	O

If	O	O
the	O	O
only	O	O
things	O	O
you	O	O
need	O	O
to	O	O
select	O	O
are	O	O
ID	O	B-Variable
based	O	O
on	O	O
the	O	O
IPAddress	O	B-Variable
,	O	O
and	O	O
this	O	O
is	O	O
a	O	O
frequent	O	O
way	O	O
you	O	O
search	O	O
,	O	O
then	O	O
you	O	O
should	O	O
create	O	O
an	O	O
index	O	B-Variable
like	O	O
this	O	O
:	O	O

I	O	O
am	O	O
making	O	O
a	O	O
camera	O	O
app	O	O
where	O	O
I	O	O
want	O	O
to	O	O
get	O	O
to	O	O
all	O	O
of	O	O
the	O	O
videos	O	O
users	O	O
have	O	O
created	O	O
on	O	O
their	O	O
iPhone	O	B-Device
.	O	O

Currently	O	O
the	O	O
code	O	O
I	O	O
have	O	O
gets	O	O
the	O	O
videos	O	O
from	O	O
user	O	O
Camera	O	B-Application
Roll	O	I-Application
only	O	O
.	O	O

Some	O	O
my	O	O
users	O	O
have	O	O
complained	O	O
that	O	O
they	O	O
have	O	O
multiple	O	O
custom	O	O
folders	O	O
created	O	O
under	O	O
their	O	O
Photo	O	B-Application
Album	O	I-Application
app	O	O
and	O	O
they	O	O
store	O	O
some	O	O
videos	O	O
in	O	O
there	O	O
.	O	O

Since	O	O
my	O	O
code	O	O
only	O	O
looks	O	O
at	O	O
Camera	O	B-Application
Roll	O	I-Application
,	O	O
it	O	O
does	O	O
n't	O	O
pickup	O	O
the	O	O
movies	O	O
from	O	O
their	O	O
other	O	O
folders	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
that	O	O
I	O	O
can	O	O
get	O	O
to	O	O
their	O	O
other	O	O
folders	O	O
?	O	O

This	O	O
is	O	O
what	O	O
I	O	O
have	O	O
so	O	O
far	O	O
.	O	O

To	O	O
get	O	O
media	O	O
that	O	O
was	O	O
synced	O	O
from	O	O
iTunes	O	B-Application
you	O	O
need	O	O
to	O	O
use	O	O
ALAssetsGroupLibrary	O	B-Library
.	O	O

Here	O	O
you	O	O
can	O	O
find	O	O
all	O	O
possible	O	O
variants	O	O
for	O	O
ALAssetsGroupType	O	B-Variable
.	O	O

So	O	O
just	O	O
change	O	O

to	O	O

You	O	O
got	O	O
to	O	O
create	O	O
a	O	O
filter	O	O
for	O	O
the	O	O
assets	O	O
,	O	O
something	O	O
like	O	O
this	O	O
:	O	O

Options	O	O
for	O	O
filters	O	O
are	O	O
:	O	O

-	O	O
allAssets	O	B-Variable

-	O	O
allVideos	O	B-Variable

-	O	O
allPhotos	O	B-Variable

Hope	O	O
this	O	O
helps	O	O

I	O	O
've	O	O
build	O	O
a	O	O
small	O	O
rack	O	O
aap	O	O
that	O	O
implements	O	O
a	O	O
websocket	O	B-Class
and	O	O
a	O	O
plain	O	O
http	O	B-Library
api	O	I-Library
endpoint	O	O
,	O	O
clients	O	B-Application
can	O	O
connect	O	O
to	O	O
it	O	O
and	O	O
at	O	O
a	O	O
later	O	O
point	O	O
I	O	O
can	O	O
send	O	O
a	O	O
http	O	O
post	O	O
with	O	O
a	O	O
token	O	B-Application
and	O	O
a	O	O
client	O	B-Application
connected	O	O
to	O	O
the	O	O
websocket	O	B-Class
will	O	O
no	O	O
notified	O	O
.	O	O

My	O	O
question	O	O
is	O	O
if	O	O
puma	O	B-Application
is	O	O
running	O	O
in	O	O
cluster	O	O
mode	O	O
with	O	O
4	O	O
workers	O	O
is	O	O
it	O	O
possible	O	O
that	O	O
one	O	O
worker	O	O
holds	O	O
the	O	O
websocket	O	B-Class
connection	O	O
and	O	O
another	O	O
is	O	O
parsing	O	O
the	O	O
http	O	O
request	O	O
?	O	O

Regards	O	O
,	O	O

I	O	O
've	O	O
ended	O	O
up	O	O
implementing	O	O
a	O	O
solution	O	O
based	O	O
on	O	O
redis	O	B-Data_Structure
from	O	O
https://devcenter.heroku.com/articles/ruby-websockets	O	O

I	O	O
'm	O	O
looking	O	O
to	O	O
get	O	O
help	O	O
setting	O	O
up	O	O
a	O	O
project	O	O
environment	O	O
in	O	O
SublimeREPl	O	B-Library
.	O	O

I	O	O
'm	O	O
using	O	O
Continuum	O	B-Website
Analytics	O	I-Website
Anaconda	O	B-Application
.	O	O

I	O	O
've	O	O
successfully	O	O
added	O	O
my	O	O
project	O	O
environment	O	O
's	O	O
python	O	B-Language
as	O	O
a	O	O
build	O	O
system	O	O
,	O	O
but	O	O
I	O	O
would	O	O
also	O	O
like	O	O
to	O	O
add	O	O
it	O	O
to	O	O
SublimeREPL	O	B-Library
for	O	O
an	O	O
interactive	O	O
session	O	O
.	O	O

All	O	O
help	O	O
is	O	O
appreciated	O	O
.	O	O

I	O	O
am	O	O
a	O	O
newbie	O	O
to	O	O
Objective-C	O	B-Language
and	O	O
I	O	O
am	O	O
working	O	O
on	O	O
getting	O	O
a	O	O
good	O	O
handle	O	O
in	O	O
working	O	O
with	O	O
arrays	O	B-Data_Structure
.	O	O

According	O	O
to	O	O
Apples	O	B-Website
own	O	O
documentation	O	O
NSMutableArray	B-Code_Block	B-Class
inherits	O	O
from	O	O
NSArray	B-Code_Block	B-Class
.	O	O

I	O	O
am	O	O
seeking	O	O
to	O	O
use	O	O
the	O	O
method	O	O
objectAtIndex:i	B-Code_Block	B-Function
within	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
.	O	O

Yet	O	O
Xcode	O	B-Application
is	O	O
claiming	O	O
that	O	O

Within	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
I	O	O
am	O	O
performing	O	O
(	O	O
or	O	O
seeking	O	O
to	O	O
)	O	O
the	O	O
following	O	O
test	O	O
:	O	O

I	O	O
am	O	O
certain	O	O
I	O	O
not	O	O
doing	O	O
this	O	O
right	O	O
.	O	O

It	O	O
can	O	O
be	O	O
frustrating	O	O
learning	O	O
the	O	O
idiosyncrasies	O	O
of	O	O
a	O	O
new	O	O
programming	O	O
language	O	O
.	O	O

For	O	O
me	O	O
Objective	O	B-Language
C	O	I-Language
has	O	O
,	O	O
so	O	O
far	O	O
,	O	O
borne	O	O
little	O	O
resemblance	O	O
to	O	O
C++	O	B-Language
or	O	O
C	O	B-Language
.	O	O

Any	O	O
pointer	O	O
or	O	O
assistance	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O

Walt	O	B-User_Name
Williams	O	I-User_Name

From	O	O
your	O	O
error	O	O
message	O	O
,	O	O
you	O	O
could	O	O
not	O	O
be	O	O
using	O	O
the	O	O
method	O	O
and	O	O
parameter	O	O
correctly	O	O
.	O	O

Possibly	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
use	O	O
a	O	O
dot	O	O
notation	O	O
?	O	O

Your	O	O
code	O	O
should	O	O
be	O	O
like	O	O
:	O	O

where	O	O
the	O	O
index	O	B-Variable
comes	O	O
from	O	O
your	O	O
loop	O	O
and	O	O
you	O	O
then	O	O
use	O	O
the	O	O
object	B-Code_Block	B-Variable
.	O	O

In	O	O
addition	O	O
to	O	O
Wain	O	B-User_Name
's	O	O
answer	O	O
,	O	O
which	O	O
is	O	O
correct	O	O
,	O	O
but	O	O
for	O	O
the	O	O
sake	O	O
of	O	O
completeness	O	O
,	O	O
you	O	O
are	O	O
using	O	O
the	O	O
array	O	B-Data_Structure
and	O	O
trying	O	O
to	O	O
call	O	O
the	O	O
method	O	O
this	O	O
way	O	O
:	O	O

Ex	O	O
:	O	O

which	O	O
is	O	O
the	O	O
cause	O	O
of	O	O
this	O	O
error	O	O
:	O	O

It	O	O
is	O	O
complaining	O	O
that	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
access	O	O
a	O	O
property	O	O
named	O	O
"	O	O
objectAtIndex	B-Code_Block	B-Function
"	O	O
,	O	O
which	O	O
of	O	O
course	O	O
,	O	O
does	O	O
n't	O	O
exist	O	O
.	O	O

You	O	O
mean	O	O
to	O	O
call	O	O
the	O	O
method	O	O
:	O	O

In	O	O
Objective-C	O	B-Language
,	O	O
it	O	O
is	O	O
called	O	O
"	O	O
you	O	O
are	O	O
sending	O	O
a	O	O
message	O	O
(	O	O
objectAtIndex:i	B-Code_Block	B-Function
)	O	O
to	O	O
the	O	O
array	O	B-Data_Structure
"	O	O
.	O	O

i	O	O
have	O	O
flash	O	B-Application
xml	O	B-Language
template	O	O
i	O	O
buy	O	O
from	O	O
activeden	O	B-Website
but	O	O
i	O	O
cant	O	O
show	O	O
the	O	O
arabic	O	O
text	O	O
from	O	O
right	O	O
to	O	O
left	O	O
and	O	O
after	O	O
a	O	O
lot	O	O
of	O	O
research	O	O
i	O	O
find	O	O
that	O	O
textfield	O	B-Class
do	O	O
not	O	O
support	O	O
rtl	O	O
correctly	O	O
and	O	O
i	O	O
need	O	O
to	O	O
convert	O	O
to	O	O
TLFTextfield	O	B-Class
,	O	O

My	O	O
question	O	O
here	O	O
is	O	O
how	O	O
to	O	O
convert	O	O
classic	O	O
textfield	O	O
into	O	O
TLFTextField	O	B-Class
in	O	O
as3	O	B-Language
?	O	O

please	O	O
help	O	O
me	O	O
.	O	O

Build	O	O
the	O	O
textfield	O	O
as	O	O
TLFTextField	O	B-Class
from	O	O
the	O	O
beginning	O	O
,	O	O
and	O	O
do	O	O
NOT	O	O
forget	O	O
to	O	O
include	O	O
the	O	O
TLF	O	B-Library
if	O	O
it	O	O
is	O	O
NOT	O	O
included	O	O
.	O	O

I	O	O
am	O	O
having	O	O
a	O	O
hard	O	O
time	O	O
applying	O	O
a	O	O
filter	O	O
to	O	O
an	O	O
inline	O	O
SVG	O	B-HTML_XML_Tag
symbol	O	O
.	O	O

I	O	O
can	O	O
make	O	O
it	O	O
work	O	O
fine	O	O
in	O	O
a	O	O
normal	O	O
external	O	O
SVG	O	B-File_Type
file	O	O
but	O	O
as	O	O
soon	O	O
as	O	O
I	O	O
make	O	O
it	O	O
inline	O	O
with	O	O
an	O	O
HTML	O	B-File_Type
document	O	O
,	O	O
the	O	O
filtered	O	O
objects	O	O
disappear	O	O
.	O	O

Is	O	O
there	O	O
anything	O	O
I	O	O
'm	O	O
missing	O	O
with	O	O
the	O	O
filter	B-Code_Block	B-HTML_XML_Tag
attribute	O	O
?	O	O

This	O	O
fails	O	O
for	O	O
me	O	O
in	O	O
an	O	O
up	O	O
to	O	O
date	O	O
Chrome	O	B-Application
57	O	B-Version
.	O	O

Setting	O	O
your	O	O
SVG	O	B-HTML_XML_Tag
to	O	O
display:none	O	B-Code_Block
will	O	O
make	O	O
it	O	O
non-functional	O	O
because	O	O
it	O	O
disables	O	O
all	O	O
CSS	O	B-Language
.	O	O

The	O	O
following	O	O
C++	O	B-Language
function	O	O
has	O	O
not	O	O
been	O	O
working	O	O
in	O	O
Visual	O	B-Application
Studio	O	I-Application
6	O	B-Version
(	O	O
1998	O	O
year	O	O
)	O	O
until	O	O
I	O	O
added	O	O
static	B-Code_Block	B-Data_Type
.	O	O

Why	O	O
?	O	O

It	O	O
's	O	O
dangerously	O	O
unsafe	O	O
(	O	O
undefined	O	O
behavior	O	O
)	O	O
to	O	O
return	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
a	O	O
stack	O	B-Data_Structure
variable	O	O
.	O	O

That	O	O
includes	O	O
arrays	O	B-Data_Structure
allocated	O	O
on	O	O
the	O	O
stack	O	B-Data_Structure
.	O	O

The	O	O
memory	O	O
occupied	O	O
by	O	O
a	O	O
stack	O	B-Data_Structure
variable	O	O
is	O	O
essentially	O	O
deallocated	O	O
as	O	O
soon	O	O
as	O	O
the	O	O
function	O	O
returns	O	O
.	O	O

By	O	O
making	O	O
the	O	O
array	O	B-Data_Structure
allocation	O	O
static	O	B-Data_Type
,	O	O
it	O	O
's	O	O
allocation	O	O
will	O	O
persist	O	O
and	O	O
is	O	O
safer	O	O
..	O	O
.	O	O

But	O	O
if	O	O
any	O	O
code	O	O
path	O	O
caches	O	O
the	O	O
pointer	O	B-Data_Type
returned	O	O
from	O	O
"	O	O
test	O	O
"	O	O
,	O	O
another	O	O
code	O	O
path	O	O
that	O	O
calls	O	O
this	O	O
function	O	O
could	O	O
invalidate	O	O
the	O	O
previous	O	O
result	O	O
.	O	O

For	O	O
your	O	O
example	O	O
,	O	O
you	O	O
probably	O	O
want	O	O
to	O	O
duplicate	O	O
the	O	O
string	O	B-Data_Type
before	O	O
returning	O	O
.	O	O

With	O	O
the	O	O
expectation	O	O
that	O	O
the	O	O
caller	O	O
will	O	O
"	O	O
free	O	B-Function
"	O	O
the	O	O
memory	O	O
later	O	O
:	O	O

I	O	O
want	O	O
to	O	O
iterate	O	O
through	O	O
a	O	O
java	O	B-Language
arraylist	O	B-Class
passed	O	O
as	O	O
message	O	O
header	O	O
to	O	O
a	O	O
camel	O	B-Library
route	O	B-HTML_XML_Tag
via	O	O
bean	O	B-Class
so	O	O
that	O	O
each	O	O
string	O	B-Data_Type
item	O	O
which	O	O
is	O	O
basically	O	O
an	O	O
url	O	O
can	O	O
be	O	O
passed	O	O
as	O	O
uri	O	O
argument	O	O
inside	O	O
tag	O	O
in	O	O
camel	O	B-Library
route	O	B-HTML_XML_Tag
.	O	O

I	O	O
am	O	O
passing	O	O
an	O	O
array	O	B-Class
list	O	I-Class
as	O	O
message	O	O
header	O	O
to	O	O
camel	O	B-Class
route	O	I-Class
through	O	O
java	O	B-Language
bean	O	B-Class
as	O	O
follows	O	O

and	O	O
,	O	O
inside	O	O
camel	O	B-Class
route	O	I-Class
i	O	O
want	O	O
to	O	O
iterate	O	O
through	O	O
this	O	O
list	O	B-Variable
and	O	O
retrieve	O	O
each	O	O
list	O	B-Variable
item	O	O
one	O	O
by	O	O
one	O	O
so	O	O
that	O	O
i	O	O
can	O	O
pass	O	O
these	O	O
items	O	O
in	O	O
uri	O	O
.	O	O

here	O	O
's	O	O
my	O	O
camel	O	B-Library
route	O	B-HTML_XML_Tag
:	O	O

But	O	O
i	O	O
am	O	O
not	O	O
able	O	O
to	O	O
iterate	O	O
through	O	O
each	O	O
item	O	O
in	O	O
list	O	B-Variable
recieved	O	O
as	O	O
header.endpoints	O	B-Variable
inside	O	O
camel	O	B-Library
route	O	B-HTML_XML_Tag
.	O	O

This	O	O
is	O	O
the	O	O
recipient	O	B-HTML_XML_Tag
list	O	I-HTML_XML_Tag
EIP	O	O
pattern	O	O
than	O	O
can	O	O
send	O	O
messages	O	O
to	O	O
N+	O	B-Variable
destinations	O	O
:	O	O
http://camel.apache.org/recipient-list.html	O	O

The	O	O
recipient	O	B-HTML_XML_Tag
list	O	I-HTML_XML_Tag
EIP	O	O
is	O	O
basically	O	O
a	O	O
toD	B-Code_Block	B-HTML_XML_Tag
but	O	O
it	O	O
can	O	O
do	O	O
1.N	O	B-Value
endpoints	O	O
.	O	O

Where	O	O
as	O	O
toD	B-Code_Block	B-HTML_XML_Tag
can	O	O
only	O	O
do	O	O
1	O	B-Value
.	O	O

And	O	O
it	O	O
should	O	O
be	O	O
able	O	O
to	O	O
take	O	O
your	O	O
message	O	O
header	O	B-User_Interface_Element
as-is	O	O
,	O	O
eg	O	O
a	O	O
List	B-Code_Block	B-Data_Structure
or	O	O
Collection	B-Code_Block	B-Library
and	O	O
send	O	O
to	O	O
each	O	O
destination	O	O
.	O	O

So	O	O
do	O	O

Sorry	O	O
I	O	O
will	O	O
rewrite	O	O
the	O	O
question	O	O
hoping	O	O
to	O	O
be	O	O
clear	O	O
.	O	O

In	O	O
my	O	O
.cpp	O	B-File_Type
code	O	O
I	O	O
create	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
quads	O	B-Class
,	O	O
a	O	O
few	O	O
of	O	O
them	O	O
have	O	O
a	O	O
flag	O	B-Variable
,	O	O
in	O	O
the	O	O
pixel	O	O
shader	O	O
I	O	O
check	O	O
if	O	O
this	O	O
flag	O	B-Variable
is	O	O
set	O	O
or	O	O
not	O	O
,	O	O
if	O	O
the	O	O
flag	O	B-Variable
is	O	O
not	O	O
set	O	O
,	O	O
the	O	O
quad	O	B-Class
gets	O	O
colored	O	O
in	O	O
red	O	B-Value
for	O	O
example	O	O
,	O	O
if	O	O
the	O	O
flag	O	B-Variable
is	O	O
set	O	O
,	O	O
I	O	O
want	O	O
to	O	O
decide	O	O
the	O	O
color	O	B-Variable
of	O	O
every	O	O
single	O	O
pixel	O	O
,	O	O
so	O	O
if	O	O
I	O	O
need	O	O
to	O	O
colour	O	O
half	O	O
of	O	O
the	O	O
flagged	O	O
quad	O	B-Class
in	O	O
red	O	B-Value
and	O	O
the	O	O
other	O	O
half	O	O
in	O	O
blue	O	B-Value
I	O	O
can	O	O
simply	O	O
do	O	O
something	O	O
like	O	O
:	O	O

In	O	O
this	O	O
way	O	O
I	O	O
can	O	O
get	O	O
half	O	O
of	O	O
the	O	O
quad	O	B-Class
colored	O	O
in	O	O
blue	O	B-Value
and	O	O
another	O	O
half	O	O
colored	O	O
in	O	O
red	O	B-Value
,	O	O
or	O	O
I	O	O
can	O	O
decide	O	O
where	O	O
to	O	O
put	O	O
the	O	O
red	O	B-Value
color	O	O
or	O	O
where	O	O
to	O	O
put	O	O
the	O	O
blue	O	B-Value
one	O	O
.	O	O

Imagine	O	O
I	O	O
've	O	O
got	O	O
a	O	O
quad	O	B-Class
50x50	O	O
pixels	O	O

[	O	O
frag	O	O
]	O	O

In	O	O
this	O	O
case	O	O
I	O	O
would	O	O
expect	O	O
that	O	O
a	O	O
quad	O	B-Class
with	O	O
the	O	O
flag	O	O
set	O	O
will	O	O
get	O	O
two	O	O
colors	O	O
per	O	O
face	O	O
.	O	O

I	O	O
hope	O	O
I	O	O
have	O	O
been	O	O
more	O	O
specific	O	O
now	O	O
.	O	O

thanks	O	O
.	O	O

Just	O	O
to	O	O
add	O	O
something	O	O
I	O	O
ca	O	O
n't	O	O
use	O	O
any	O	O
texture	O	B-Class
.	O	O

Ok	O	O
i	O	O
do	O	O
this	O	O
now	O	O
:	O	O

Every	O	O
quad	O	B-Class
has	O	O
4	O	O
textures	O	B-Class
coordinated	O	O
(	O	B-Value
0	O	I-Value
,	O	I-Value
0	O	I-Value
)	O	I-Value
,	O	O
(	O	B-Value
0	O	I-Value
,	O	I-Value
1)	O	I-Value
,	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
1)	O	I-Value
,	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
0	O	I-Value
)	O	I-Value
;	O	O

I	O	O
enable	O	O
the	O	O
texture	O	B-Class
coordinates	O	O
using	O	O
:	O	O

[	O	O
vert	O	O
]	O	O

[	O	O
frag	O	O
]	O	O

I	O	O
get	O	O
always	O	O
the	O	O
yellow	O	B-Value
color	O	O
so	O	O
x1	O	B-Code_Block
=	O	I-Code_Block
1	O	I-Code_Block
and	O	O
x2	O	B-Code_Block
=	O	I-Code_Block
1	O	I-Code_Block
almost	O	O
always	O	O
and	O	O
some	O	O
quad	O	O
is	O	O
yellow/green	O	B-Value
.	O	O

I	O	O
would	O	O
expect	O	O
that	O	O
the	O	O
texture	O	B-Class
coordinates	O	O
change	O	O
in	O	O
the	O	O
fragment	O	O
shader	O	O
and	O	O
so	O	O
I	O	O
should	O	O
get	O	O
a	O	O
gradient	O	O
,	O	O
am	O	O
I	O	O
wrong	O	O
?	O	O

In	O	O
addition	O	O
to	O	O
Chris	O	B-User_Name
Dodd	O	I-User_Name
's	O	O
answer	O	O
,	O	O
you	O	O
can	O	O
also	O	O
access	O	O
the	O	O
screen-space	O	O
coordinate	O	O
(	O	O
in	O	O
pixels	O	O
,	O	O
though	O	O
actually	O	O
pixel	O	O
centers	O	O
and	O	O
thus	O	O
?	B-Code_Block	B-Value
.	I-Code_Block	I-Value
5)	I-Code_Block	I-Value
of	O	O
the	O	O
currently	O	O
processed	O	O
fragment	O	O
through	O	O
the	O	O
special	O	O
fragment	O	O
shader	O	O
variable	O	O
gl_FragCoord	B-Code_Block	B-Variable
:	O	O

But	O	O
this	O	O
gives	O	O
you	O	O
the	O	O
position	O	O
of	O	O
the	O	O
fragment	O	O
in	O	O
screen-space	O	O
and	O	O
thus	O	O
relative	O	O
to	O	O
the	O	O
lower	O	O
left	O	O
corner	O	O
of	O	O
you	O	O
viewport	O	B-User_Interface_Element
.	O	O

If	O	O
you	O	O
actually	O	O
need	O	O
to	O	O
know	O	O
the	O	O
position	O	O
inside	O	O
the	O	O
individual	O	O
quad	O	O
(	O	O
which	O	O
makes	O	O
more	O	O
sense	O	O
if	O	O
you	O	O
want	O	O
to	O	O
actually	O	O
color	O	O
each	O	O
quad	O	O
half-by-half	O	O
,	O	O
since	O	O
the	O	O
"	O	O
half-cut	O	O
"	O	O
would	O	O
otherwise	O	O
vary	O	O
with	O	O
the	O	O
quad	O	O
's	O	O
position	O	O
)	O	O
,	O	O
then	O	O
Chris	O	B-User_Name
Dodd	O	I-User_Name
's	O	O
answer	O	O
is	O	O
the	O	O
correct	O	O
approach	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
know	O	O
the	O	O
coordinate	O	O
within	O	O
the	O	O
quad	O	B-Class
,	O	O
you	O	O
need	O	O
to	O	O
calculate	O	O
it	O	O
yourself	O	O
.	O	O

In	O	O
order	O	O
to	O	O
that	O	O
,	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
create	O	O
a	O	O
new	O	O
interpolant	O	O
(	O	O
call	O	O
it	O	O
something	O	O
like	O	O
vec2	B-Code_Block	B-Code_Block
quadCoord	I-Code_Block	I-Code_Block
)	O	O
,	O	O
and	O	O
set	O	O
it	O	O
appropriately	O	O
for	O	O
each	O	O
vertex	O	O
,	O	O
which	O	O
means	O	O
you	O	O
'll	O	O
likely	O	O
also	O	O
need	O	O
to	O	O
add	O	O
it	O	O
as	O	O
an	O	O
attribute	O	O
and	O	O
pass	O	O
it	O	O
through	O	O
your	O	O
vertex	O	O
shader	O	O
.	O	O

eg	O	O
:	O	O

You	O	O
'll	O	O
need	O	O
to	O	O
feed	O	O
in	O	O
this	O	O
attribute	O	O
in	O	O
your	O	O
drawing	O	O
code	O	O
when	O	O
drawing	O	O
your	O	O
quads	O	B-Class
.	O	O

For	O	O
each	O	O
quad	O	B-Class
,	O	O
the	O	O
vertexes	O	O
will	O	O
have	O	O
likely	O	O
have	O	O
quadCoordIn	B-Code_Block	B-Variable
values	O	O
of	O	O
(	O	B-Value
0	O	I-Value
,	O	I-Value
0	O	I-Value
)	O	I-Value
,	O	O
(	O	B-Value
0	O	I-Value
,	O	I-Value
1)	O	I-Value
,	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
1)	O	I-Value
and	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
0	O	I-Value
)	O	I-Value
-	O	O
-	O	O
you	O	O
could	O	O
use	O	O
some	O	O
other	O	O
coordinate	O	O
system	O	O
if	O	O
you	O	O
prefer	O	O
,	O	O
but	O	O
this	O	O
is	O	O
the	O	O
easiest	O	O
.	O	O

Then	O	O
,	O	O
in	O	O
your	O	O
fragment	O	O
program	O	O
,	O	O
you	O	O
can	O	O
access	O	O
quadCoord.xy	B-Code_Block	B-Variable
to	O	O
determine	O	O
where	O	O
in	O	O
the	O	O
quad	O	B-Class
you	O	O
are	O	O
.	O	O

i	O	O
have	O	O
a	O	O
csv	O	B-File_Type
file	O	O
with	O	O
comments	O	O
,	O	O
the	O	O
values	O	O
of	O	O
which	O	O
need	O	O
to	O	O
be	O	O
split	O	O
between	O	O
two	O	O
ArrayLists	O	B-Class
.	O	O

eg	O	O
:	O	O

what	O	O
is	O	O
the	O	O
best	O	O
way	O	O
of	O	O
achieving	O	O
this	O	O
?	O	O

should	O	O
i	O	O
use	O	O
a	O	O
counter	O	B-Data_Structure
that	O	O
is	O	O
incremented	O	O
each	O	O
time	O	O
the	O	O
state	O	O
changes	O	O
from	O	O
%	O	B-Code_Block
to	O	O
a	O	O
value	O	O
or	O	O
vice	O	O
versa	O	O
and	O	O
then	O	O
if	O	B-Code_Block
counter	O	I-Code_Block
%	O	I-Code_Block
2	O	I-Code_Block
=	O	I-Code_Block
0	O	I-Code_Block
then	O	O
add	O	O
a	O	O
new	O	O
ArrayList	O	B-Class
and	O	O
start	O	O
writing	O	O
to	O	O
that	O	O
?	O	O

thats	O	O
the	O	O
only	O	O
way	O	O
i	O	O
can	O	O
think	O	O
to	O	O
do	O	O
it	O	O
,	O	O
but	O	O
it	O	O
seems	O	O
a	O	O
little	O	O
bit	O	O
clumsy	O	O
,	O	O
does	O	O
anyone	O	O
else	O	O
have	O	O
a	O	O
better	O	O
idea	O	O
?	O	O

EDIT	O	O
:	O	O
i	O	O
have	O	O
already	O	O
written	O	O
the	O	O
code	O	O
for	O	O
actually	O	O
parsing	O	O
the	O	O
csv	O	B-File_Type
values	O	O
,	O	O
i	O	O
dont	O	O
need	O	O
help	O	O
with	O	O
that	O	O
,	O	O
just	O	O
wondering	O	O
about	O	O
how	O	O
to	O	O
split	O	O
the	O	O
values	O	O
into	O	O
two	O	O
lists.	O	B-Class
.	O	O

Your	O	O
suggestion	O	O
sounds	O	O
good	O	O
to	O	O
me	O	O
.	O	O

If	O	O
the	O	O
file	O	O
format	O	O
is	O	O
really	O	O
so	O	O
predictable	O	O
,	O	O
any	O	O
more	O	O
sophisticated	O	O
approaches	O	O
might	O	O
just	O	O
be	O	O
overkill	O	O
in	O	O
my	O	O
opinion	O	O
.	O	O

But	O	O
if	O	O
you	O	O
want	O	O
to	O	O
see	O	O
a	O	O
different	O	O
approach	O	O
,	O	O
this	O	O
is	O	O
my	O	O
idea	O	O
:	O	O
Every	O	O
line	O	O
that	O	O
does	O	O
not	O	O
start	O	O
with	O	O
an	O	O
%	B-Code_Block	B-Code_Block
is	O	O
something	O	O
we	O	O
want	O	O
to	O	O
parse	O	O
to	O	O
an	O	O
ArrayList	B-Code_Block	B-Class
.	O	O

So	O	O
,	O	O
whenever	O	O
you	O	O
come	O	O
across	O	O
a	O	O
line	O	O
that	O	O
is	O	O
not	O	O
a	O	O
comment	O	O
,	O	O
you	O	O
start	O	O
parsing	O	O
the	O	O
following	O	O
lines	O	O
to	O	O
an	O	O
ArrayList	B-Code_Block	B-Class
until	O	O
you	O	O
either	O	O
hit	O	O
another	O	O
comment	O	O
or	O	O
the	O	O
end	O	O
of	O	O
the	O	O
file	O	O
.	O	O

Both	O	O
options	O	O
mark	O	O
the	O	O
end	O	O
of	O	O
the	O	O
part	O	O
that	O	O
you	O	O
want	O	O
to	O	O
store	O	O
in	O	O
one	O	O
single	O	O
ArrayList	B-Code_Block	B-Class
.	O	O

So	O	O
,	O	O
something	O	O
like	O	O
this	O	O
:	O	O

where	O	O
lineIsComment	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
String	I-Code_Block	I-Code_Block
line	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
returns	O	O
a	O	O
boolean	O	B-Data_Type
that	O	O
indicates	O	O
whether	O	O
the	O	O
given	O	O
line	O	O
is	O	O
a	O	O
comment	O	O
,	O	O
and	O	O
addToList	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
String	I-Code_Block	I-Code_Block
line	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
ArrayList	I-Code_Block	I-Code_Block
<Integer>	I-Code_Block	I-Code_Block
list	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
uses	O	O
your	O	O
method	O	O
to	O	O
parse	O	O
a	O	O
line	O	O
of	O	O
numbers	O	O
and	O	O
stores	O	O
them	O	O
in	O	O
the	O	O
provided	O	O
list	O	O
.	O	O

My	O	O
MVC	O	B-Application
3	O	B-Version
project	O	O
is	O	O
building	O	O
successfully	O	O
in	O	O
my	O	O
development	O	O
machine	O	O
with	O	O
Visual	O	B-Application
Studio	O	I-Application
2010	O	B-Version
+	O	O
MVC	O	B-Application
3	O	B-Version
.	O	O

In	O	O
the	O	O
build	O	O
server	O	B-Application
,	O	O
VS2010	O	B-Application
is	O	O
not	O	O
used	O	O
and	O	O
I	O	O
've	O	O
installed	O	O
'	O	O
ASP.NET	O	B-Application
MVC	O	I-Application
3	O	I-Application
Tools	O	I-Application
Update	O	I-Application
'	O	O
.	O	O

I	O	O
've	O	O
also	O	O
downloaded	O	O
NAnt	O	B-Application
and	O	O
used	O	O
TortoiseSVN	O	B-Application
to	O	O
checkout	O	O
all	O	O
the	O	O
files	O	O
except	O	O
bin	O	B-File_Name
directories	O	O
.	O	O

But	O	O
while	O	O
building	O	O
using	O	O
Nant	B-Code_Block	B-Code_Block
default.build	I-Code_Block	I-Code_Block
,	O	O
I	O	O
'm	O	O
getting	O	O
build	O	B-Error_Name
error	O	I-Error_Name

(	O	O
are	O	O
you	O	O
missing	O	O
an	O	O
assembly	O	O
reference	O	O
?	O	O
)	O	O
.	O	O

Same	O	O
with	O	O
'	O	O
Controller	O	B-Application
'	O	O
,	O	O
'	O	O
ActionResult	O	B-Application
'	O	O
,	O	O
'	O	O
GlobalFilterCollection	O	B-Application
'	O	O
etc	O	O
(	O	O
type	O	B-Error_Name
or	O	I-Error_Name
namespace	O	I-Error_Name
could	O	I-Error_Name
not	O	I-Error_Name
be	O	I-Error_Name
found	O	I-Error_Name
)	O	O
.	O	O

I	O	O
can	O	O
see	O	O
System.Web.Mvc.dll	B-Code_Block	B-File_Name
in	O	O

.	O	O

What	O	O
am	O	O
I	O	O
missing	O	O
here	O	O
?	O	O

Why	O	O
NAnt	O	B-Application
ca	O	O
n't	O	O
find	O	O
this	O	O
file	O	O
?	O	O

Is	O	O
there	O	O
no	O	O
other	O	O
way	O	O
than	O	O
copying	O	O
the	O	O
assembly	O	B-File_Type
files	O	O
into	O	O
local	O	O
bin	O	B-File_Name
?	O	O

I	O	O
had	O	O
the	O	O
same	O	O
issue	O	O
and	O	O
was	O	O
n't	O	O
able	O	O
to	O	O
locate	O	O
the	O	O
System.Web.MVC	O	B-Class
reference	O	O
assembly	O	O
.	O	O

Finally	O	O
found	O	O
out	O	O
and	O	O
it	O	O
was	O	O
located	O	O
inside	O	O
the	O	O
following	O	O
location	O	O
.	O	O

Note	O	O
if	O	O
your	O	O
VS	O	B-Application
was	O	O
installed	O	O
in	O	O
C	O	B-File_Name
:	O	I-File_Name
(	O	O
Sometimes	O	O
the	O	O
MVC	O	B-Application
is	O	O
not	O	O
in	O	O
the	O	O
defaul	O	O
location	O	O
which	O	O
everybody	O	O
talk	O	O
about	O	O
,	O	O
i	O	O
mean	O	O
the	O	O
"	O	O
Reference	O	B-File_Name
Assemblies	O	I-File_Name
"	O	O
folder	O	O
located	O	O
in	O	O
the	O	O
C	O	B-File_Name
:	O	I-File_Name
drive	O	O
.	O	O

if	O	O
its	O	O
not	O	O
there	O	O
,	O	O
it	O	O
should	O	O
definitely	O	O
be	O	O
in	O	O
here	O	O
:	O	O

Program	O	B-File_Name
files(x86)	O	I-File_Name
-->	O	I-File_Name
Microsoft	O	I-File_Name
ASP.NET	O	I-File_Name
-->	O	I-File_Name
ASP.NET	O	I-File_Name
MVC	O	I-File_Name
2	O	I-File_Name
-->	O	I-File_Name
Assemblies	O	I-File_Name
System.Web.Mvc.dll	O	I-File_Name

Hope	O	O
this	O	O
one	O	O
is	O	O
helpful	O	O
.	O	O

Which	O	O
version	O	O
of	O	O
msbuild	O	B-Application
are	O	O
you	O	O
using	O	O
to	O	O
build	O	O
the	O	O
web	O	O
project	O	O
?	O	O

Is	O	O
the	O	O
web	O	O
project	O	O
referencing	O	O
a	O	O
specific	O	O
version	O	O
of	O	O
or	O	O
file	O	O
path	O	O
to	O	O
System.Web.Mvc.dll	O	B-File_Name
?	O	O

Download	O	O
and	O	O
install	O	O
ASP.NET	O	B-Application
MVC	O	I-Application
3	O	O
:	O	B-Version

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=4211	O	O

According	O	O
to	O	O
:	O	O
http://weblogs.asp.net/scottgu/archive/2011/05/03/asp-net-mvc-3-tools-update.aspx	O	O

"	O	O
The	O	O
ASP.NET	O	B-Application
MVC	O	I-Application
3	O	I-Application
Tools	O	I-Application
update	O	O
only	O	O
includes	O	O
Visual	O	B-Application
Studio	O	I-Application
tooling	O	O
improvements	O	O
and	O	O
default	O	O
project	O	O
template	O	O
changes	O	O
–	O	O
it	O	O
does	O	O
not	O	O
include	O	O
any	O	O
changes	O	O
to	O	O
the	O	O
ASP.NET	O	B-Application
MVC	O	I-Application
3	O	B-Version
runtime	O	O
binaries	O	O
.	O	O
"	O	O

I	O	O
did	O	O
a	O	O
bunch	O	O
of	O	O
research	O	O
on	O	O
this	O	O
and	O	O
could	O	O
not	O	O
find	O	O
an	O	O
answer	O	O
to	O	O
my	O	O
specific	O	O
problem	O	O
,	O	O
although	O	O
it	O	O
seems	O	O
allot	O	O
of	O	O
people	O	O
have	O	O
been	O	O
plagued	O	O
with	O	O
similar	O	O
problems	O	O
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
Google	O	B-Application
App	O	I-Application
Engine	O	I-Application
and	O	O
just	O	O
created	O	O
an	O	O
account	O	O
.	O	O

I	O	O
downloaded	O	O
the	O	O
SDK	O	B-Library
for	O	O
Python	O	B-Language
2.7	O	B-Version
.	O	O

I	O	O
deployed	O	O
the	O	O
Hello	O	B-Value
,	O	I-Value
World	O	I-Value
!	O	I-Value

to	O	O
the	O	O
supplied	O	O
appspot.com	O	O
address	O	O
and	O	O
it	O	O
prints	O	O
hello	O	B-Value
world	O	I-Value
just	O	O
fine	O	O
.	O	O

When	O	O
I	O	O
try	O	O
to	O	O
run	O	O
it	O	O
in	O	O
my	O	O
localhost	O	O
it	O	O
gives	O	O
a	O	O
500	O	B-Error_Name
server	O	O
error	O	O
.	O	O

I	O	O
tried	O	O
creating	O	O
a	O	O
few	O	O
different	O	O
applications	O	O
and	O	O
messing	O	O
with	O	O
the	O	O
port	O	O
settings	O	O
,	O	O
the	O	O
app.yaml	O	B-File_Name
file	O	O
,	O	O
and	O	O
the	O	O
main.py	O	B-File_Name
file	O	O
.	O	O

Still	O	O
cant	O	O
get	O	O
it	O	O
to	O	O
work	O	O
.	O	O

Im	O	O
running	O	O
on	O	O
an	O	O
Mac	O	B-Device
and	O	O
I	O	O
did	O	O
download	O	O
and	O	O
install	O	O
Python	O	B-Language
2.7	O	B-Version
to	O	O
ensure	O	O
I	O	O
have	O	O
the	O	O
latest	O	O
version	O	O
.	O	O

Im	O	O
also	O	O
new	O	O
to	O	O
Python	O	B-Language
and	O	O
App	O	B-Application
Engine	O	I-Application
.	O	O

I	O	O
come	O	O
from	O	O
the	O	O
world	O	O
of	O	O
PHP	O	B-Language
and	O	O
XAMPP	O	B-Application
.	O	O

Does	O	O
anybody	O	O
have	O	O
any	O	O
ideas	O	O
?	O	O

You	O	O
should	O	O
try	O	O
Python	O	B-Language
2.7.4	O	B-Version
which	O	O
is	O	O
the	O	O
version	O	O
Google	O	B-Website
links	O	O
to	O	O
and	O	O
run	O	O
a	O	O
PHP	O	B-Language
version	O	O
compiled	O	O
with	O	O
the	O	O
same	O	O
modules	O	O
and	O	O
option	O	O
that	O	O
GAE	O	B-Library
as	O	O
well	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
video	O	B-File_Type
with	O	O
the	O	O
steps	O	O

http://www.youtube.com/watch?v=IFuNNddWQIo	O	O

Here	O	O
is	O	O
my	O	O
XML	O	B-Language
:	O	O

I	O	O
want	O	O
to	O	O
change	O	O
value	O	O
of	O	O
tag	O	O
"	O	O
status	O	B-HTML_XML_Tag
"	O	O
to	O	O
"	O	B-Value
NEW	O	I-Value
"	O	I-Value
.	O	O

Below	O	O
is	O	O
my	O	O
java	O	B-Language
code	O	O
:	O	O

The	O	O
value	O	O
of	O	O
status	O	B-HTML_XML_Tag
tag	O	O
is	O	O
not	O	O
getting	O	O
changed	O	O
in	O	O
XML	O	B-Language
.	O	O

Please	O	O
help	O	O
.	O	O

The	O	O
piece	O	O
of	O	O
code	O	O
which	O	O
you	O	O
have	O	O
written	O	O
is	O	O
working	O	O
.	O	O

May	O	O
be	O	O
the	O	O
way	O	O
you	O	O
are	O	O
checking	O	O
weather	O	O
its	O	O
working	O	O
or	O	O
not	O	O
is	O	O
wrong	O	O
.	O	O

I	O	O
have	O	O
gone	O	O
through	O	O
this	O	O
for	O	O
checking	O	O
the	O	O
update	O	O
on	O	O
the	O	O
XML	O	B-Language
what	O	O
you	O	O
have	O	O
done	O	O
.	O	O

You	O	O
still	O	O
have	O	O
any	O	O
doubts	O	O
on	O	O
what	O	O
you	O	O
did	O	O
?	O	O

I	O	O
cannot	O	O
post	O	O
images	O	B-User_Interface_Element
because	O	O
of	O	O
my	O	O
reputation	O	O
score	O	O
otherwise	O	O
I	O	O
would	O	O
have	O	O
shown	O	O
the	O	O
output	O	O
what	O	O
I	O	O
got	O	O
from	O	O
eclipse	O	B-Application
.	O	O

Try	O	O
this	O	O
.	O	O

if("status".equalsIgnoreCase((nNode.getNodeName())))	B-Code_Block	B-Code_Block
{	I-Code_Block	I-Code_Block
nNode.setTextContent("2000000")	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block

I	O	O
have	O	O
a	O	O
use	O	O
case	O	O
where	O	O
I	O	O
need	O	O
to	O	O
preppend	O	O
<span>word</span>	B-Code_Block	B-Code_Block
tags	O	O
before	O	O
the	O	O
tree	O	B-Data_Structure
leaf	O	O
nodes	O	B-Class
.	O	O

The	O	O
tree	O	B-Data_Structure
node	O	B-Class
is	O	O
loaded	O	O
asynchronously	O	O
and	O	O
it	O	O
becomes	O	O
impossible	O	O
to	O	O
check	O	O
on	O	O
load	O	B-Class
event	O	I-Class
.	O	O

I	O	O
have	O	O
tried	O	O
node.rendered	B-Code_Block	B-Function
and	O	O
node.childrenrendered	B-Code_Block	B-Function
but	O	O
not	O	O
all	O	O
the	O	O
elements	O	O
are	O	O
loaded	O	O
at	O	O
same	O	O
time	O	O
.	O	O

I	O	O
am	O	O
keeping	O	O
an	O	O
approx	O	O
timeout	O	O
such	O	O
as	O	O

Even	O	O
though	O	O
this	O	O
solution	O	O
works	O	O
for	O	O
me	O	O
.	O	O

But	O	O
I	O	O
am	O	O
not	O	O
satisfied	O	O
with	O	O
it	O	O
.	O	O

I	O	O
want	O	O
to	O	O
know	O	O
if	O	O
their	O	O
is	O	O
an	O	O
event	B-Code_Block	B-Class
which	O	O
is	O	O
fired	O	O
when	O	O
the	O	O
node	O	O
is	O	O
rendered	O	O
in	O	O
UI	O	O
.	O	O

(	O	O
like	O	O
the	O	O
load	B-Code_Block	B-Class
event	O	I-Class
for	O	O
loading	O	O
)	O	O
.	O	O

PS	O	O
:	O	O
I	O	O
have	O	O
tried	O	O
the	O	O
load	O	B-Class
event	O	I-Class
already	O	O
but	O	O
I	O	O
does	O	O
not	O	O
work	O	O
.	O	O

Pretty	O	O
much	O	O
seems	O	O
to	O	O
be	O	O
that	O	O
load	O	O
happens	O	O
before	O	O
the	O	O
node	O	O
is	O	O
rendered	O	O
in	O	O
UI	O	O
.	O	O

Any	O	O
better	O	O
solution	O	O
or	O	O
suggestions	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

Thank	O	O
you	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
build	O	O
a	O	O
Query	O	B-Class
that	O	O
excludes	O	O
results	O	O
from	O	O
an	O	O
Array	O	B-Data_Structure
when	O	O
it	O	O
only	O	O
contains	O	O
the	O	O
String	O	B-Data_Type
sent	O	O
in	O	O
the	O	O
Query	O	B-Class
.	O	O

I	O	O
have	O	O
these	O	O
two	O	O
Arrays	O	B-Data_Structure

Array	O	B-Variable
1	O	I-Variable

Array	O	B-Variable
2	O	I-Variable

I	O	O
want	O	O
to	O	O
exclude	O	O
JUST	O	O
the	O	O
second	O	O
one	O	O
,	O	O
so	O	O
I	O	O
ca	O	O
n't	O	O
use	O	O

I	O	O
tried	O	O
this	O	O
,	O	O
but	O	O
it	O	O
did	O	O
n't	O	O
work	O	O
either	O	O
:	O	O

Thank	O	O
you	O	O
for	O	O
your	O	O
time	O	O
!	O	O

!	O	O

Ok	O	O
,	O	O
I	O	O
solved	O	O
it	O	O
.	O	O

I	O	O
want	O	O
a	O	O
explosion	O	B-User_Interface_Element
to	O	O
play	O	O
when	O	O
a	O	O
object	O	O
hits	O	O
another	O	O
object	O	O
.	O	O

I	O	O
do	O	O
this	O	O
so	O	O
that	O	O
when	O	O
hitTestObject	O	B-Variable
is	O	O
true	O	O
,	O	O
I	O	O
run	O	O
this	O	O
function	O	O

Explosion	O	B-Class
class	O	O
only	O	O
consists	O	O
of	O	O
setting	O	O
the	O	O
input	O	O
to	O	O
it	O	O
's	O	O
x	O	B-Variable
and	O	O
y	O	B-Variable
values	O	O
.	O	O

Then	O	O
in	O	O
explosion	O	B-Variable
movieclip	O	O
I	O	O
have	O	O
a	O	O
few	O	O
frames	O	O
of	O	O
a	O	O
animation	O	O
.	O	O

It	O	O
ends	O	O
in	O	O
a	O	O
keyframe	O	O
(	O	O
i.e	O	O
.	O	O
,	O	O
as	O	O
an	O	O
action	O	O
in	O	O
that	O	O
frame	O	O
)	O	O
with	O	O
the	O	O
following	O	O
code	O	O
:	O	O

My	O	O
question	O	O
is	O	O
.	O	O

Is	O	O
it	O	O
really	O	O
gone	O	O
now	O	O
?	O	O

I	O	O
had	O	O
to	O	O
add	O	O
stop()	O	B-Function
to	O	O
not	O	O
get	O	O
error	O	O
1009	O	B-Error_Name
.	O	O

That	O	O
makes	O	O
me	O	O
suspect	O	O
some	O	O
event	O	O
timer	O	O
is	O	O
still	O	O
running	O	O
around	O	O
?	O	O

Removing	O	O
a	O	O
display	O	O
object	O	O
from	O	O
the	O	O
display	O	O
list	O	B-Data_Structure
,	O	O
does	O	O
n't	O	O
stop	O	O
the	O	O
animation	O	O
or	O	O
remove	O	O
it	O	O
from	O	O
memory	O	O
.	O	O

It	O	O
just	O	O
removes	O	O
it	O	O
from	O	O
the	O	O
display	O	O
list	O	B-Data_Structure
.	O	O

Yes	O	O
,	O	O
you	O	O
need	O	O
to	O	O
stop	O	O
the	O	O
animation	O	O
and	O	O
remove	O	O
any	O	O
event	O	B-Class
listeners	O	O
that	O	O
might	O	O
be	O	O
active	O	O
for	O	O
that	O	O
object	O	O
.	O	O

A	O	O
display	O	O
object	O	O
is	O	O
never	O	O
truly	O	O
gone	O	O
until	O	O
it	O	O
is	O	O
garbage	O	O
collected	O	O
.	O	O

But	O	O
that	O	O
will	O	O
not	O	O
happen	O	O
until	O	O
no	O	O
references	O	O
to	O	O
that	O	O
object	O	O
remain	O	O
.	O	O

So	O	O
if	O	O
you	O	O
have	O	O
a	O	O
variable	O	O
called	O	O
explosion	O	B-Variable
that	O	O
references	O	O
your	O	O
display	O	O
object	O	O
,	O	O
you	O	O
need	O	O
to	O	O
set	O	O
it	O	O
to	O	O
null	O	B-Value
after	O	O
removing	O	O
it	O	O
from	O	O
the	O	O
display	O	O
list	O	B-Data_Structure
:	O	O

Keep	O	O
in	O	O
mind	O	O
that	O	O
this	O	O
does	O	O
n't	O	O
immediately	O	O
remove	O	O
the	O	O
object	O	O
from	O	O
memory	O	O
,	O	O
it	O	O
just	O	O
makes	O	O
it	O	O
fair	O	O
game	O	O
for	O	O
the	O	O
garbage	O	O
collector	O	O
.	O	O

You	O	O
can	O	O
google	O	O
"	O	O
AS3	O	B-Language
Garbage	O	O
Collection	O	O
"	O	O
to	O	O
get	O	O
more	O	O
information	O	O
on	O	O
that	O	O
process	O	O
.	O	O

How	O	O
can	O	O
i	O	O
change	O	O
ionic	O	B-User_Interface_Element
tabs	O	I-User_Interface_Element
root	O	I-User_Interface_Element
page	O	I-User_Interface_Element
when	O	O
i	O	O
click	O	O
dash	O	B-User_Interface_Element
board	O	I-User_Interface_Element
?	O	O

This	O	O
my	O	O
Tabs.ts	O	B-File_Name

tabs.html	O	B-File_Name

This	O	O
my	O	O
home.ts	O	B-File_Name
file	O	O

This	O	O
is	O	O
my	O	O
home.html	O	B-File_Name

I	O	O
want	O	O
to	O	O
change	O	O
tab	O	B-User_Interface_Element
root	O	O
when	O	O
i	O	O
click	O	O
dashboard	O	B-User_Interface_Element
from	O	O
my	O	O
home.html	O	B-File_Name
it	O	O
will	O	O
change	O	O
the	O	O
tab	O	B-User_Interface_Element
root	O	O
to	O	O
dashboard	O	B-User_Interface_Element
page	O	I-User_Interface_Element
and	O	O
select	O	O
dashboard	O	B-User_Interface_Element
.	O	O

if	O	O
press	O	O
press	O	O
training	O	O
it	O	O
will	O	O
change	O	O
to	O	O
training	O	O
page	O	B-User_Interface_Element
and	O	O
also	O	O
change	O	O
the	O	O
tab	O	B-User_Interface_Element
root	O	O
to	O	O
trainning	O	O
page	O	B-User_Interface_Element
ans	O	O
select	O	O
.	O	O

yea	O	O
you	O	O
can	O	O
inside	O	O
your	O	O
tabs.html	O	B-File_Name

inside	O	O
your	O	O
tabs.ts	O	B-File_Name
file	O	O

in	O	O
other	O	O
way	O	O
instead	O	O
of	O	O
using	O	O
this.navCtrl.push(TrainingPage,this.token)	B-Code_Block	B-Function
;	I-Code_Block	I-Function
use	O	O
this.navCtrl.select	B-Code_Block	B-Function
(	I-Code_Block	I-Function
"	I-Code_Block	I-Function
1	I-Code_Block	I-Function
"	I-Code_Block	I-Function
,	I-Code_Block	I-Function
this.token	I-Code_Block	I-Function
)	I-Code_Block	I-Function
;	I-Code_Block	I-Function

I	O	O
can	O	O
only	O	O
see	O	O
one	O	O
way	O	O
to	O	O
to	O	O
this	O	O
&	O	O
it	O	O
's	O	O
by	O	O
setting	O	O
the	O	O
root	O	O
to	O	O
the	O	O
page	O	B-User_Interface_Element
you	O	O
want	O	O
.	O	O

We	O	O
develop	O	O
with	O	O
Xamarin.iOS	O	B-Application
and	O	O
are	O	O
trying	O	O
to	O	O
search/highlight	O	O
in	O	O
a	O	O
PDF	O	B-File_Type
.	O	O

There	O	O
is	O	O
an	O	O
iOS	O	B-Operating_System
class	O	O
for	O	O
searching	O	O
,	O	O
CGPDFScanner	O	B-Class
,	O	O
but	O	O
unfortunately	O	O
no	O	O
bindings	O	O
are	O	O
offered	O	O
by	O	O
Xamarin	O	B-Application
.	O	O

Is	O	O
there	O	O
a	O	O
solution	O	O
or	O	O
we	O	O
should	O	O
forget	O	O
about	O	O
it	O	O
?	O	O

We	O	O
believe	O	O
that	O	O
there	O	O
is	O	O
a	O	O
way	O	O
to	O	O
make	O	O
bindings	O	O
for	O	O
existing	O	O
iOS	O	B-Operating_System
classes	O	O
.	O	O

Or	O	O
we	O	O
could	O	O
probably	O	O
use	O	O
an	O	O
existing	O	O
project	O	O
,	O	O
like	O	O
PDFKitten	O	B-Library
,	O	O
and	O	O
make	O	O
Xamarin	O	B-Application
bindings	O	O
.	O	O

Any	O	O
hints	O	O
?	O	O

Xamarin	O	B-Application
offers	O	O
way	O	O
for	O	O
creating	O	O
binding	O	O
library	O	O
.	O	O

If	O	O
you	O	O
have	O	O
some	O	O
working	O	O
and	O	O
tested	O	O
solution	O	O
available	O	O
in	O	O
Objective	O	B-Language
C	O	I-Language
,	O	O
create	O	O
Binding	O	O
library	O	O
in	O	O
tamarin	O	B-Application
and	O	O
use	O	O
that	O	O
.	O	O

You	O	O
can	O	O
check	O	O
detailed	O	O
document	O	O
of	O	O
it	O	O
from	O	O
here	O	O

I	O	O
have	O	O
created	O	O
binding	O	O
library	O	O
for	O	O
one	O	O
of	O	O
my	O	O
project	O	O
where	O	O
i	O	O
had	O	O
to	O	O
integrate	O	O
third	O	O
party	O	O
sdk	O	B-Application
which	O	O
was	O	O
only	O	O
in	O	O
objective	O	B-Language
C	O	I-Language
.	O	O
I	O	O
followed	O	O
step	O	O
given	O	O
here	O	O
and	O	O
it	O	O
worked	O	O
.	O	O

In	O	O
CakePHP	O	B-Library
2.x	O	B-Version
,	O	O
I	O	O
can	O	O
use	O	O
the	O	O
below	O	O
code	O	O
to	O	O
output	O	O
pagination	O	O
in	O	O
Bootstrap	O	B-Library
3	O	B-Version
perfectly	O	O
:	O	O

The	O	O
output	O	O
is	O	O
:	O	O

But	O	O
now	O	O
the	O	O
Bootstrap	O	B-Library
4	O	B-Version
Beta	O	O
is	O	O
changed	O	O
the	O	O
structure	O	O
with	O	O
class	O	O
inside	O	O
each	O	O
element	O	O
like	O	O
this	O	O
:	O	O

Please	O	O
help	O	O
to	O	O
set	O	O
options	O	O
of	O	O
Paginator	O	B-Library
in	O	O
CakePHP	O	B-Library
2.x	O	B-Version
for	O	O
the	O	O
above	O	O
output	O	O
.	O	O

I	O	O
am	O	O
facing	O	O
this	O	O
issue	O	O
in	O	O
my	O	O
asp.net	O	B-Library
application	O	O
when	O	O
using	O	O
update	O	B-Class
panel	O	I-Class
.	O	O

The	O	O
error	O	O
only	O	O
with	O	O
IE9	O	B-Application
and	O	O
for	O	O
other	O	O
browser	O	B-Application
application	O	O
works	O	O
fine	O	O
.	O	O

For	O	O
debuging	O	O
purpose	O	O
and	O	O
to	O	O
conclude	O	O
the	O	O
issue	O	O
only	O	O
when	O	O
using	O	O
update	O	B-Class
panel	O	I-Class
I	O	O
created	O	O
a	O	O
sample	O	O
asp.net	O	B-Library
web	O	O
site	O	O
.	O	O

ASPX	O	B-File_Type

When	O	O
I	O	O
click	O	O
on	O	O
the	O	O
button	O	O
,	O	O
I	O	O
get	O	O
the	O	O
following	O	O
JS	O	B-Language
error	O	O
.	O	O

The	O	O
JS	O	B-Language
error	O	O
is	O	O

From	O	O
IE	O	B-Application
's	O	O
F12	O	B-Application
developer	O	I-Application
tool	O	I-Application
,	O	O

From	O	O
Visual	O	B-Application
Studio	O	I-Application
2012	O	B-Version
,	O	O

But	O	O
when	O	O
I	O	O
remove	O	O
the	O	O
update	O	B-Class
panel	O	I-Class
,	O	O
the	O	O
JS	O	B-Language
error	O	O
is	O	O
no	O	O
longer	O	O
.	O	O

Any	O	O
idea	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
?	O	O

Add	O	O
following	O	O
line	O	O
in	O	O
<head>	B-Code_Block	B-HTML_XML_Tag

OR	O	O

OR	O	O

I	O	O
need	O	O
to	O	O
download	O	O
20	O	O
images	O	B-User_Interface_Element
from	O	O
remote	O	O
server	O	B-Application
and	O	O
store	O	O
in	O	O
Android	O	B-File_Name
folder	O	O
.	O	O

Here	O	O
my	O	O
code	O	O
:	O	O

Interface	O	O
:	O	O

In	O	O
fragment	O	O
:	O	O

As	O	O
you	O	O
can	O	O
see	O	O
I	O	O
iterate	O	O
loop	O	O
and	O	O
call	O	O
call.enqueue()	B-Code_Block	B-Function
for	O	O
every	O	O
image	O	B-User_Interface_Element
.	O	O

Is	O	O
it	O	O
good	O	O
solution	O	O
?	O	O

Is	O	O
this	O	O
can	O	O
perform	O	O
my	O	O
android	O	B-Operating_System
app	O	O
?	O	O

You	O	O
can	O	O
use	O	O
dependencies	O	O
like	O	O
Glide	O	B-Class
,	O	O
Pissaco	O	B-Class
etc	O	O
for	O	O
downloading	O	O
images	O	B-User_Interface_Element
from	O	O
remote	O	O
server	O	B-Application
.	O	O

Because	O	O
these	O	O
provide	O	O
better	O	O
caching	O	O
and	O	O
error	O	O
handling	O	O
.	O	O

Have	O	O
a	O	O
look	O	O
at	O	O
the	O	O
code	O	O
below	O	O
.	O	O

It	O	O
is	O	O
using	O	O
Pissaco	O	B-Class
to	O	O
load	O	O
the	O	O
image	O	B-User_Interface_Element

First	O	O
add	O	O
the	O	O
Pissaco	O	B-Class
dependency	O	O
in	O	O
your	O	O
build.gradle	B-Code_Block	B-Function

I	O	O
have	O	O
a	O	O
small	O	O
questuion	O	O
.	O	O

I	O	O
have	O	O
a	O	O
article	O	B-Class
with	O	O
repeatable	O	O
property	O	O
tags	O	B-Variable
.	O	O

When	O	O
i	O	O
editing	O	O
exist	O	O
article	O	B-Class
and	O	O
add	O	O
new	O	O
tags	O	B-Variable
all	O	O
is	O	O
ok	O	O
.	O	O

But	O	O
if	O	O
a	O	O
remove	O	O
tag	O	B-Variable
from	O	O
form	O	B-Variable
in	O	O
article	O	B-Class
this	O	O
tag	O	B-Variable
still	O	O
exists	O	O
.	O	O

As	O	O
i	O	O
understand	O	O
post	O	O
data	O	O
binding	O	O
to	O	O
the	O	O
form	O	B-Variable
and	O	O
to	O	O
the	O	O
entity	O	O
.	O	O

Thats	O	O
way	O	O
new	O	O
tags	O	B-Variable
appear	O	O
in	O	O
the	O	O
material	O	O
.	O	O

But	O	O
why	O	O
did	O	O
they	O	O
not	O	O
disappear	O	O
after	O	O
binding	O	O
new	O	O
post	O	O
data	O	O
?	O	O

UPDATE	O	O

Here	O	O
is	O	O
my	O	O
Article	O	B-Class
entity	O	O

And	O	O
ArticleType	O	B-Class

Try	O	O
to	O	O
modify	O	O
add	O	B-Function
tag	O	I-Function
and	O	O
remove	O	B-Function
tag	O	I-Function
function	O	O
in	O	O
Article	O	B-Class
entity	O	O
to	O	O
something	O	O
like	O	O
this	O	O

If	O	O
I	O	O
use	O	O
a	O	O
try	O	B-Code_Block
catch	O	I-Code_Block
block	O	O
such	O	O
as	O	O
:	O	O

how	O	O
can	O	O
I	O	O
find	O	O
out	O	O
which	O	O
exception	O	B-Class
type	O	O
it	O	O
is	O	O
if	O	O
the	O	O
method	O	O
may	O	O
throw	O	O
multiple	O	O
exception	O	B-Class
types	O	O
?	O	O

Thanks	O	O
.	O	O

Is	O	O
it	O	O
a	O	O
good	O	O
idea	O	O
to	O	O
create	O	O
a	O	O
lighter	O	O
version	O	O
of	O	O
an	O	O
Entity	O	O
in	O	O
some	O	O
cases	O	O
just	O	O
for	O	O
performance	O	O
reason	O	O
pointing	O	O
to	O	O
same	O	O
table	O	B-Data_Structure
but	O	O
with	O	O
fewer	O	O
columns	O	B-Data_Structure
mapped	O	O
.	O	O

E.g	O	O
If	O	O
I	O	O
have	O	O
a	O	O
Contact	O	O
Table	O	B-Data_Structure
which	O	O
has	O	O
50	O	O
Columns	O	B-Data_Structure
and	O	O
in	O	O
few	O	O
of	O	O
the	O	O
related	O	O
entities	O	O
I	O	O
might	O	O
be	O	O
interested	O	O
in	O	O
FirstName	O	B-Variable
and	O	O
LastName	O	B-Variable
property	O	O
is	O	O
it	O	O
a	O	O
good	O	O
idea	O	O
to	O	O
create	O	O
a	O	O
lightweight	O	O
version	O	O
of	O	O
Contact	O	O
table	O	B-Data_Structure
.	O	O

E.g	O	O
.	O	O

Also	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
map	O	O
multiple	O	O
classes	O	O
to	O	O
same	O	O
table	O	B-Data_Structure
?	O	O

Do	O	O
n't	O	O
map	O	O
multiple	O	O
classes	O	O
to	O	O
the	O	O
same	O	O
table	O	B-Data_Structure
.	O	O

I	O	O
tried	O	O
this	O	O
once	O	O
and	O	O
though	O	O
it	O	O
worked	O	O
for	O	O
what	O	O
I	O	O
was	O	O
doing	O	O
,	O	O
I	O	O
'm	O	O
sure	O	O
it	O	O
would	O	O
have	O	O
bitten	O	O
me	O	O
later	O	O
.	O	O

It	O	O
's	O	O
better	O	O
to	O	O
use	O	O
projections	O	O
to	O	O
populate	O	O
the	O	O
"	O	O
light	O	O
"	O	O
classes	O	O
.	O	O

It	O	O
's	O	O
not	O	O
a	O	O
good	O	O
idea	O	O
.	O	O

Instead	O	O
,	O	O
always	O	O
map	O	O
the	O	O
full	O	O
class	O	O
and	O	O
create	O	O
smaller	O	O
ones	O	O
that	O	O
you	O	O
can	O	O
project	O	O
on	O	O
using	O	O
Transformers.AliasToBean	B-Code_Block	B-Function
or	O	O
LINQ	O	B-Language
.	O	O

An	O	O
example	O	O
of	O	O
the	O	O
latter	O	O
:	O	O

This	O	O
will	O	O
only	O	O
select	O	O
those	O	O
three	O	O
fields	O	O
from	O	O
the	O	O
DB	O	O
,	O	O
even	O	O
when	O	O
filtering	O	O
by	O	O
a	O	O
different	O	O
one	O	O
.	O	O

It	O	O
's	O	O
worth	O	O
noting	O	O
that	O	O
,	O	O
with	O	O
LINQ	O	B-Language
,	O	O
you	O	O
could	O	O
also	O	O
use	O	O
an	O	O
anonymous	O	O
type	O	O
to	O	O
select	O	O
any	O	O
projection	O	O
you	O	O
want	O	O
without	O	O
creating	O	O
additional	O	O
types	O	O
or	O	O
mappings	O	O
.	O	O

I	O	O
'm	O	O
attempting	O	O
to	O	O
use	O	O
Google	O	B-Language
Script	O	I-Language
to	O	O
send	O	O
user	O	O
information	O	O
from	O	O
an	O	O
HTML	O	B-File_Type
form	O	O
to	O	O
Google	O	B-Application
Drive	O	I-Application
.	O	O

I	O	O
had	O	O
a	O	O
version	O	O
that	O	O
worked	O	O
well	O	O
enough	O	O
,	O	O
using	O	O
the	O	O
onclick	O	O
event	O	O
,	O	O
but	O	O
I	O	O
wanted	O	O
to	O	O
add	O	O
functionality	O	O
that	O	O
ensured	O	O
all	O	O
required	O	O
fields	O	O
were	O	O
filled	O	O
in	O	O
before	O	O
submission	O	O
.	O	O

Research	O	O
on	O	O
this	O	O
site	O	O
suggested	O	O
onsubmit	O	O
within	O	O
the	O	O
form	O	O
tag	O	O
,	O	O
so	O	O
I	O	O
modified	O	O
my	O	O
code	O	O
to	O	O
use	O	O
onsubmit	O	O
.	O	O

That	O	O
's	O	O
the	O	O
version	O	O
that	O	O
appears	O	O
below	O	O
.	O	O

What	O	O
happens	O	O
is	O	O
that	O	O
on	O	O
submission	O	O
,	O	O
the	O	O
form	O	O
completely	O	O
disappears	O	O
and	O	O
no	O	O
files	O	O
are	O	O
sent	O	O
to	O	O
Drive	O	B-Application
.	O	O

I	O	O
understand	O	O
that	O	O
onsubmit	O	O
refreshes	O	O
the	O	O
page	O	O
...	O	O
but	O	O
I	O	O
'd	O	O
like	O	O
it	O	O
to	O	O
also	O	O
recreate	O	O
the	O	O
previous	O	O
page	O	O
minus	O	O
the	O	O
form	O	O
,	O	O
and	O	O
add	O	O
some	O	O
message	O	O
about	O	O
successful	O	O
upload	O	O
.	O	O

File	O	O
submission	O	O
also	O	O
needs	O	O
to	O	O
work	O	O
,	O	O
of	O	O
course	O	O
.	O	O

I	O	O
'd	O	O
appreciate	O	O
any	O	O
thoughts	O	O
about	O	O
this	O	O
.	O	O

I	O	O
have	O	O
looked	O	O
at	O	O
posts	O	O
related	O	O
to	O	O
very	O	O
similar	O	O
questions	O	O
and	O	O
tried	O	O
to	O	O
implement	O	O
some	O	O
of	O	O
the	O	O
code	O	O
from	O	O
them	O	O
,	O	O
but	O	O
no	O	O
luck	O	O
yet	O	O
.	O	O

Thanks	O	O
!	O	O

Here	O	O
's	O	O
the	O	O
JavaScript	O	B-Language
:	O	O

Another	O	O
note	O	O
,	O	O
some	O	O
of	O	O
your	O	O
inputs	O	O
share	O	O
the	O	O
same	O	O
ID	O	B-Variable
.	O	O

If	O	O
you	O	O
're	O	O
going	O	O
to	O	O
use	O	O
ID	O	B-Variable
and	O	O
name	O	O
,	O	O
I	O	O
would	O	O
make	O	O
them	O	O
match	O	O
.	O	O

I	O	O
would	O	O
also	O	O
give	O	O
the	O	O
submit	O	O
button	O	O
an	O	O
ID	O	O
.	O	O

You	O	O
may	O	O
want	O	O
to	O	O
also	O	O
look	O	O
into	O	O
HTML5	O	B-Language
form	O	O
input	O	O
validation	O	O
,	O	O
which	O	O
is	O	O
mostly	O	O
supported	O	O
by	O	O
browsers	O	B-Application
,	O	O
but	O	O
ultimately	O	O
,	O	O
you	O	O
want	O	O
the	O	O
javascript	O	B-Language
(	O	O
client-side	O	B-Application
)	O	O
and	O	O
server	O	B-Application
side	O	O
code	O	O
to	O	O
validate	O	O
your	O	O
input	O	O
.	O	O

With	O	O
the	O	O
following	O	O
script	O	O
,	O	O
I	O	O
split	O	O
text	O	O
into	O	O
sentences	O	O
,	O	O
and	O	O
create	O	O
images	O	B-User_Interface_Element
dynamically	O	O
from	O	O
each	O	O
sentence	O	O
.	O	O

My	O	O
for	O	O
loop	O	O
is	O	O
not	O	O
executing	O	O
properly	O	O
.	O	O

I	O	O
do	O	O
not	O	O
understand	O	O
,	O	O
why	O	O
?	O	O

The	O	O
image	O	B-User_Interface_Element
creation	O	O
function	O	O
is	O	O
being	O	O
called	O	O
only	O	O
once	O	O
,	O	O
creating	O	O
just	O	O
one	O	O
image	O	B-User_Interface_Element
,	O	O
despite	O	O
the	O	O
text	O	O
contains	O	O
4	O	O
distinct	O	O
sentences	O	O
.	O	O

The	O	O
purpose	O	O
of	O	O
the	O	O
script	O	O
is	O	O
creating	O	O
four	O	O
images	O	B-User_Interface_Element
and	O	O
saving	O	O
them	O	O
into	O	O
the	O	O
hard	O	B-Device
drive	O	I-Device
.	O	O

I	O	O
need	O	O
your	O	O
suggestions	O	O
.	O	O

All	O	O
the	O	O
images	O	B-User_Interface_Element
are	O	O
getting	O	O
the	O	O
same	O	O
filename	O	O
because	O	O
the	O	O
code	O	O
runs	O	O
fast	O	O
enough	O	O
such	O	O
that	O	O
the	O	O
time()	B-Code_Block	B-Function
function	O	O
(	O	O
which	O	O
returns	O	O
the	O	O
time	O	O
in	O	O
seconds	O	O
)	O	O
is	O	O
giving	O	O
you	O	O
the	O	O
same	O	O
value	O	O
4	O	O
times	O	O
.	O	O

So	O	O
you	O	O
're	O	O
overwriting	O	O
the	O	O
same	O	O
file	O	O
4	O	O
times	O	O
in	O	O
this	O	O
line	O	O
:	O	O

As	O	O
a	O	O
workaround	O	O
,	O	O
you	O	O
can	O	O
append	O	O
a	O	O
random	O	O
number	O	O
for	O	O
uniqueness	O	O
using	O	O
the	O	O
rand()	B-Code_Block	B-Function
function	O	O
.	O	O

Better	O	O
yet	O	O
,	O	O
use	O	O
php	O	B-Language
's	O	O
built-in	O	O
tempnam()	B-Code_Block	B-Function
function	O	O
to	O	O
generate	O	O
a	O	O
unique	O	O
filename	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
jQuery	O	B-Library
validation	O	O
in	O	O
order	O	O
to	O	O
sort	O	O
banners	O	B-User_Interface_Element
on	O	O
a	O	O
website	O	O
.	O	O

I	O	O
have	O	O
three	O	O
types	O	O
of	O	O
banners	O	B-User_Interface_Element
:	O	O

Default	O	B-Variable
Banner	O	I-Variable
(	O	O
set	O	O
by	O	O
the	O	O
company	O	O
,	O	O
existing	O	O
rule	O	O
cannot	O	O
be	O	O
removed	O	O
but	O	O
can	O	O
be	O	O
sorted	O	O
)	O	O

Selectable	O	B-Variable
Banner	O	I-Variable
(	O	O
selectable	O	B-User_Interface_Element
banner	O	I-User_Interface_Element
form	O	O
a	O	O
list	O	O
of	O	O
many	O	O
)	O	O

Special	O	B-Variable
Banner	O	I-Variable
(	O	O
special	O	B-User_Interface_Element
banner	O	I-User_Interface_Element
,	O	O
set	O	O
by	O	O
the	O	O
company	O	O
difference	O	O
between	O	O
this	O	O
and	O	O
default	O	O
is	O	O
that	O	O
they	O	O
can	O	O
be	O	O
removed	O	O
from	O	O
the	O	O
carousel	O	O
)	O	O

The	O	O
banners	O	O
carousel	O	O
has	O	O
a	O	O
few	O	O
rules	O	O
no	O	O
more	O	O
than	O	O
7	O	O
banners	O	B-User_Interface_Element
are	O	O
allowed	O	O
into	O	O
the	O	O
carousel	O	O
and	O	O
four	O	O
of	O	O
these	O	O
can	O	O
be	O	O
custom	O	O
,	O	O
with	O	O
the	O	O
four	O	O
of	O	O
these	O	O
being	O	O
selectablebanners	O	B-Variable
.	O	O

I	O	O
've	O	O
got	O	O
the	O	O
logic	O	O
for	O	O
this	O	O
as	O	O
follows	O	O
:	O	O

Another	O	O
rule	O	O
I	O	O
have	O	O
in	O	O
place	O	O
is	O	O
that	O	O
a	O	O
default	O	B-Variable
banner	O	I-Variable
cannot	O	O
be	O	O
removed	O	O
but	O	O
it	O	O
can	O	O
be	O	O
sorted	O	O
.	O	O

I	O	O
've	O	O
implemented	O	O
this	O	O
as	O	O
so	O	O
:	O	O

}	O	B-Code_Block
)	O	I-Code_Block
;	O	B-Code_Block

However	O	O
I	O	O
would	O	O
like	O	O
to	O	O
amend	O	O
this	O	O
slightly	O	O
but	O	O
have	O	O
no	O	O
idea	O	O
how	O	O
to	O	O
begin	O	O
with	O	O
this	O	O
logic	O	O
as	O	O
it	O	O
is	O	O
slightly	O	O
more	O	O
advanced	O	O
.	O	O

The	O	O
rule	O	O
I	O	O
want	O	O
to	O	O
implement	O	O
is	O	O
that	O	O
if	O	O
there	O	O
are	O	O
2	O	O
or	O	O
more	O	O
"	O	O
selectedbanners	O	B-Variable
"	O	O
in	O	O
ul	O	O
#sortable1	O	B-Class
then	O	O
the	O	O
default	O	O
banners	O	O
can	O	O
be	O	O
removed	O	O
.	O	O

However	O	O
if	O	O
only	O	O
for	O	O
example	O	O
there	O	O
is	O	O
a	O	O
single	O	O
defaultbanner	O	B-Variable
and	O	O
a	O	O
single	O	O
selectablebanner	O	B-Class
.	O	O

Then	O	O
I	O	O
would	O	O
like	O	O
my	O	O
previous	O	O
validation	O	O
to	O	O
apply	O	O
which	O	O
is	O	O
that	O	O
a	O	O
default	O	B-Variable
banner	O	I-Variable
cannot	O	O
be	O	O
removed	O	O
.	O	O

Can	O	O
someone	O	O
please	O	O
help	O	O
me	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
.	O	O

I	O	O
've	O	O
created	O	O
a	O	O
jsFiddle	O	B-Application
which	O	O
has	O	O
my	O	O
full	O	O
code	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

It	O	O
's	O	O
not	O	O
completely	O	O
clear	O	O
to	O	O
me	O	O
,	O	O
however	O	O
this	O	O
is	O	O
my	O	O
best	O	O
guess	O	O
as	O	O
to	O	O
what	O	O
you	O	O
might	O	O
be	O	O
looking	O	O
for	O	O
.	O	O

Fiddle	O	B-Application

I	O	O
'm	O	O
currently	O	O
developing	O	O
a	O	O
win32	O	B-Operating_System
console	O	B-Application
application	O	O
,	O	O
and	O	O
wondering	O	O
if	O	O
there	O	O
is	O	O
any	O	O
way	O	O
to	O	O
make	O	O
visual	O	B-Application
studio	O	I-Application
open	O	O
it	O	O
in	O	O
powershell	O	B-Application
instead	O	O
of	O	O
cmd.exe	O	B-File_Name
when	O	O
I	O	O
'm	O	O
debugging	O	O
it	O	O
.	O	O

All	O	O
I	O	O
really	O	O
want	O	O
is	O	O
a	O	O
better	O	O
shell	O	B-Application
,	O	O
where	O	O
I	O	O
can	O	O
copy/paste	O	O
etc	O	O
.	O	O

without	O	O
clicking	O	O
.	O	O

Thanks	O	O

In	O	O
Visual	O	B-Application
Studio	O	I-Application
goto	O	O
Tools	O	O
>	O	O
External	O	O
Tools	O	O
..	O	O
.	O	O

In	O	O
this	O	O
window	O	B-User_Interface_Element
you	O	O
can	O	O
change	O	O
the	O	O
Title	O	O
to	O	O
Powershell	O	B-Application
.	O	O

Set	O	O
the	O	O
Powershell	O	B-Application
Startup	O	O
to	O	O
execute	O	O
and	O	O
the	O	O
check	O	O
the	O	O
output	O	O
window	O	B-User_Interface_Element
box	O	I-User_Interface_Element
and	O	O
it	O	O
will	O	O
dump	O	O
all	O	O
the	O	O
output	O	O
that	O	O
would	O	O
typically	O	O
goto	O	O
cmd	O	B-Application
into	O	O
Powershell	O	B-Application
.	O	O

This	O	O
link	O	O
will	O	O
explain	O	O
it	O	O
a	O	O
little	O	O
bit	O	O
more	O	O
for	O	O
you	O	O
.	O	O

I	O	O
think	O	O
you	O	O
're	O	O
mixing	O	O
up	O	O
the	O	O
NT	O	B-Library
console	O	I-Library
subsystem	O	I-Library
(	O	O
an	O	O
app	O	O
framework	O	O
offerring	O	O
common	O	O
services	O	O
)	O	O
with	O	O
cmd.exe	O	B-File_Name
(	O	O
an	O	O
application	O	O
consuming	O	O
those	O	O
services	O	O
.	O	O
)	O	O

When	O	O
visuals	O	B-Application
studio	O	I-Application
runs	O	O
a	O	O
console	O	O
application	O	O
,	O	O
it	O	O
's	O	O
not	O	O
actually	O	O
running	O	O
CMD	O	B-Application
.	O	O

CMD	O	B-Application
is	O	O
a	O	O
console	O	B-Application
application	O	O
itself	O	O
,	O	O
no	O	O
different	O	O
than	O	O
the	O	O
app	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
debug	O	O
,	O	O
therefore	O	O
running	O	O
your	O	O
application	O	O
"	O	O
in	O	O
powershell	O	B-Application
"	O	O
is	O	O
equally	O	O
as	O	O
mistaken	O	O
a	O	O
concept	O	O
.	O	O

If	O	O
you	O	O
mean	O	O
trying	O	O
to	O	O
run	O	O
it	O	O
in	O	O
PowerShell	O	B-Application
ISE	O	I-Application
,	O	I-Application
this	O	O
is	O	O
impossible	O	O
.	O	O

ISE	O	B-Application
is	O	O
a	O	O
Windows	O	B-Operating_System
Application	O	O
(	O	O
NT	O	B-Library
GUI	O	I-Library
subsystem	O	I-Library
)	O	O
,	O	O
which	O	O
is	O	O
an	O	O
entirely	O	O
different	O	O
subsystem	O	O
than	O	O
that	O	O
of	O	O
the	O	O
console	O	B-Application
.	O	O

-Oisin	O	B-User_Name

I	O	O
have	O	O
3	O	O
cassandra	O	B-Application
nodes	O	O
,	O	O
when	O	O
I	O	O
execute	O	O
a	O	O
query	B-Code_Block	O
,	O	O
2	O	O
nodes	O	B-Data_Structure
are	O	O
giving	O	O
same	O	O
response	O	O
but	O	O
1	O	O
node	O	B-Data_Structure
is	O	O
giving	O	O
different	O	O
response	O	O

Suppose	O	O
I	O	O
executed	O	O
following	O	O
query	B-Code_Block	O

Node1	O	B-Variable
and	O	O
Node2	O	B-Variable
are	O	O
giving	O	O
2	B-Code_Block	O
rows	I-Code_Block	B-Data_Structure
but	O	O
Node3	O	B-Variable
is	O	O
giving	O	O
0	B-Code_Block	O
rows	I-Code_Block	B-Data_Structure
(	I-Code_Block	O
empty	I-Code_Block	O
response	I-Code_Block	O
)	I-Code_Block	O

How	O	O
to	O	O
solve	O	O
this	O	O
issue	O	O

I	O	O
did	O	O
the	O	O
following	O	O
steps	O	O
,	O	O
then	O	O
problem	O	O
was	O	O
solved	O	O
and	O	O
now	O	O
the	O	O
data	O	O
is	O	O
in	O	O
sync	O	O
in	O	O
all	O	O
the	O	O
3	O	O
nodes	O	B-Data_Structure

run	O	O
the	O	O
command	O	O
nodetool	B-Code_Block	B-Function
rebuild	I-Code_Block	I-Function
on	O	O
the	O	O
instances	O	O
and	O	O
also	O	O

update	O	O
'	B-Code_Block	B-Code_Block
replication_factor	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block
to	O	O
'	B-Code_Block	B-Code_Block
replication_factor	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
3	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block

1.You	O	O
are	O	O
not	O	O
using	O	O
Network	O	O
topology	O	O
.	O	O

2.Your	O	O
replication	O	B-Variable
factor	O	I-Variable
is	O	O
2	O	O
.	O	O

Simple	O	O
strategy	O	O
:	O	O
Use	O	O
only	O	O
for	O	O
a	O	O
single	O	O
datacenter	O	O
and	O	O
one	O	O
rack	O	O
.	O	O

SimpleStrategy	O	O
places	O	O
the	O	O
first	O	O
replica	O	O
on	O	O
a	O	O
node	O	B-Data_Structure
determined	O	O
by	O	O
the	O	O
partitioner	O	O
.	O	O

Additional	O	O
replicas	O	O
are	O	O
placed	O	O
on	O	O
the	O	O
next	O	O
nodes	O	B-Data_Structure
clockwise	O	O
in	O	O
the	O	O
ring	O	O
without	O	O
considering	O	O
topology	O	O
(	O	O
rack	O	O
or	O	O
datacenter	O	O
location	O	O
)	O	O
.	O	O

Go	O	O
to	O	O
this	O	O
link	O	O
:	O	O

https://docs.datastax.com/en/cassandra/3.0/cassandra/architecture/archDataDistributeReplication.html	O	O

This	O	O
function	O	O
retrieves	O	O
the	O	O
array	O	B-Data_Structure
of	O	O
item	O	O
representation	O	O
from	O	O
disk	O	O
,	O	O
converts	O	O
it	O	O
to	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
TodoItem	O	B-Variable
instances	O	O
using	O	O
an	O	O
unnamed	O	O
closure	O	O
we	O	O
pass	O	O
to	O	O
map	O	O
,	O	O
and	O	O
sorts	O	O
that	O	O
array	O	B-Data_Structure
chronologically	O	O
.	O	O

Sorted	O	O
does	O	O
n't	O	O
work	O	O
anymore	O	O
,	O	O
I	O	O
get	O	O
an	O	O
error	O	O
to	O	O
switch	O	O
to	O	O
sort	O	B-Function
.	O	O

But	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
get	O	O
it	O	O
right	O	O
.	O	O

Whatever	O	O
I	O	O
do	O	O
results	O	O
in	O	O
various	O	O
errors	O	O
.	O	O

Just	O	O
replace	O	O
sorted	B-Code_Block	B-Function
by	O	O
sort	B-Code_Block	B-Function
,	O	O
it	O	O
looks	O	O
like	O	O
you	O	O
've	O	O
already	O	O
done	O	O
the	O	O
rest	O	O
of	O	O
the	O	O
translation	O	O
(	O	O
I	O	O
ca	O	O
n't	O	O
check	O	O
,	O	O
not	O	O
knowing	O	O
how	O	O
it	O	O
was	O	O
before	O	O
)	O	O
:	O	O

Reminder	O	O
:	O	O
sorted	B-Code_Block	B-Function
has	O	O
become	O	O
sort	B-Code_Block	B-Function
and	O	O
the	O	O
old	O	O
sort	B-Code_Block	B-Function
is	O	O
now	O	O
sortInPlace	B-Code_Block	B-Function
.	O	O

I	O	O
am	O	O
developing	O	O
a	O	O
c#	O	B-Language
.net	O	B-Library
app	O	O
in	O	O
which	O	O
I	O	O
need	O	O
to	O	O
subtract	O	O
two	O	O
time	O	O
periods	O	O
.	O	O

I	O	O
have	O	O
taken	O	O
two	O	O
date	O	B-Class
objects	O	O
and	O	O
subtracted	O	O
them	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

Subtracting	O	O
one	O	O
DateTime	O	B-Class
from	O	O
another	O	O
returns	O	O
a	O	O
Timespan	O	B-Class
object	O	O
.	O	O

which	O	O
basically	O	O
tells	O	O
you	O	O
how	O	O
many	O	O
days/hours/mins/secs/milliseconds/ticks	O	O
that	O	O
occured	O	O
between	O	O
the	O	O
2	O	O
DateTimes	O	B-Class
.	O	O

Check	O	O
the	O	O
TimeSpan	O	B-Class
struct	O	B-Data_Structure
.	O	O

Also	O	O
,	O	O
for	O	O
DateTime	O	B-Class
,	O	O
you	O	O
have	O	O
handy	O	O
procedures	O	O
such	O	O
as	O	O
AddDays	B-Code_Block	B-Function
:	O	O

Similarlly	O	O
,	O	O
there	O	O
are	O	O
AddHours	B-Code_Block	B-Function
,	O	O
AddMonths	B-Code_Block	B-Function
and	O	O
even	O	O
AddMilliseconds	B-Code_Block	B-Function
:	O	O

http://msdn.microsoft.com/en-us/library/system.datetime_members.aspx	O	O

Imagine	O	O
a	O	O
plane	O	O
with	O	O
a	O	O
number	O	O
of	O	O
points	O	O
at	O	O
known	O	O
locations	O	O
.	O	O

Most	O	O
are	O	O
clustered	O	O
close	O	O
together	O	O
,	O	O
but	O	O
some	O	O
are	O	O
outliers	O	O
,	O	O
and	O	O
there	O	O
are	O	O
large	O	O
areas	O	O
where	O	O
there	O	O
are	O	O
no	O	O
points	O	O
at	O	O
all	O	O
.	O	O

I	O	O
have	O	O
multiple	O	O
clients	O	O
who	O	O
can	O	O
view	O	O
the	O	O
plane	O	O
through	O	O
rectangular	O	O
viewports	O	O
.	O	O

Each	O	O
client	O	O
's	O	O
viewport	O	O
may	O	O
be	O	O
of	O	O
different	O	O
dimensions	O	O
,	O	O
and	O	O
can	O	O
be	O	O
moved	O	O
instantly	O	O
to	O	O
any	O	O
location	O	O
on	O	O
the	O	O
plane	O	O
.	O	O

The	O	O
clients	O	O
do	O	O
not	O	O
know	O	O
the	O	O
locations	O	O
of	O	O
the	O	O
points	O	O
;	O	O
only	O	O
the	O	O
server	O	O
does	O	O
.	O	O

When	O	O
a	O	O
client	O	O
connects	O	O
,	O	O
it	O	O
will	O	O
communicate	O	O
the	O	O
size	O	O
of	O	O
its	O	O
viewport	O	O
to	O	O
the	O	O
server	O	O
,	O	O
and	O	O
the	O	O
server	O	O
should	O	O
respond	O	O
with	O	O
a	O	O
location	O	O
where	O	O
one	O	O
or	O	O
more	O	O
points	O	O
will	O	O
be	O	O
visible	O	O
to	O	O
that	O	O
client	O	O
's	O	O
viewport	O	O
.	O	O

The	O	O
client	O	O
visits	O	O
that	O	O
location	O	O
,	O	O
collects	O	O
data	O	O
from	O	O
visiting	O	O
those	O	O
points	O	O
,	O	O
sends	O	O
that	O	O
data	O	O
back	O	O
to	O	O
the	O	O
server	O	O
,	O	O
then	O	O
requests	O	O
the	O	O
next	O	O
location	O	O
to	O	O
visit	O	O
.	O	O

This	O	O
continues	O	O
until	O	O
all	O	O
points	O	O
have	O	O
been	O	O
visited	O	O
by	O	O
at	O	O
least	O	O
one	O	O
client	O	O
.	O	O

I	O	O
need	O	O
an	O	O
efficient	O	O
algorithm	O	O
that	O	O
will	O	O
choose	O	O
the	O	O
locations	O	O
to	O	O
visit	O	O
.	O	O

An	O	O
ideal	O	O
solution	O	O
will	O	O
minimize	O	O
the	O	O
number	O	O
of	O	O
locations	O	O
that	O	O
clients	O	O
need	O	O
to	O	O
visit	O	O
by	O	O
including	O	O
as	O	O
many	O	O
unvisited	O	O
points	O	O
as	O	O
possible	O	O
within	O	O
a	O	O
viewport	O	O
location	O	O
,	O	O
minimizing	O	O
duplicate	O	O
visits	O	O
on	O	O
points	O	O
,	O	O
and	O	O
not	O	O
visiting	O	O
locations	O	O
with	O	O
no	O	O
unvisited	O	O
points	O	O
.	O	O

Can	O	O
you	O	O
recommend	O	O
an	O	O
algorithm	O	O
?	O	O

To	O	O
do	O	O
this	O	O
:	O	O

I	O	O
have	O	O
2	O	O
FileHandlers	O	B-Class
that	O	O
write	O	O
out	O	O
to	O	O
two	O	O
separate	O	O
files	O	O
,	O	O
and	O	O
the	O	O
amount	O	O
of	O	O
I/O	O	O
occurring	O	O
is	O	O
slowing	O	O
down	O	O
my	O	O
application	O	O
quite	O	O
a	O	O
bit	O	O
:	O	O

I	O	O
've	O	O
decided	O	O
to	O	O
have	O	O
the	O	O
FileHandlers	O	B-Class
run	O	O
on	O	O
separate	O	O
threads	O	O
.	O	O

As	O	O
they	O	O
are	O	O
on	O	O
separate	O	O
threads	O	O
,	O	O
I	O	O
needed	O	O
a	O	O
concept	O	O
of	O	O
a	O	O
"	O	O
queue	O	B-Data_Structure
"	O	O
,	O	O
so	O	O
that	O	O
these	O	O
separate	O	O
threads	O	O
can	O	O
poll	O	O
this	O	O
queue	O	O
and	O	O
print	O	O
out	O	O
any	O	O
incoming	O	O
messages	O	O
.	O	O

I	O	O
've	O	O
preformatted	O	O
messages	O	O
so	O	O
that	O	O
any	O	O
arguments	O	O
used	O	O
do	O	O
not	O	O
change	O	O
before	O	O
they	O	O
actually	O	O
reach	O	O
the	O	O
print	O	O
out	O	O
in	O	O
the	O	O
FileHandler	O	B-Class
.	O	O

Now	O	O
I	O	O
've	O	O
realised	O	O
that	O	O
I	O	O
ca	O	O
n't	O	O
use	O	O
the	O	O
"	O	O
log	O	B-File_Type
"	O	O
methods	O	O
provided	O	O
by	O	O
the	O	O
logger	O	O
,	O	O
as	O	O
that	O	O
attempts	O	O
to	O	O
invoke	O	O
methods	O	O
on	O	O
the	O	O
current	O	O
thread	O	O
to	O	O
format	O	O
and	O	O
print	O	O
out	O	O
the	O	O
messages	O	O
.	O	O

So	O	O
I	O	O
simply	O	O
call	O	O
a	O	O
method	O	O
that	O	O
adds	O	O
my	O	O
trace	O	O
message	O	O
to	O	O
the	O	O
queue	O	O
.	O	O

I	O	O
then	O	O
use	O	O
run()	O	B-Function
method	O	O
of	O	O
the	O	O
FileHandlers	O	B-Class
to	O	O
print	O	O
out	O	O
the	O	O
messages	O	O
using	O	O
publish()	O	B-Function
.	O	O

I	O	O
now	O	O
realise	O	O
publish()	O	B-Function
only	O	O
takes	O	O
in	O	O
a	O	O
LogRecord	O	B-Class
,	O	O
which	O	O
is	O	O
just	O	O
a	O	O
level	O	O
+	O	O
message	O	O
.	O	O

My	O	O
traces	O	O
have	O	O
much	O	O
more	O	O
,	O	O
which	O	O
ca	O	O
n't	O	O
simply	O	O
be	O	O
placed	O	O
in	O	O
an	O	O
overall	O	O
message	O	O
,	O	O
I	O	O
want	O	O
to	O	O
be	O	O
able	O	O
to	O	O
use	O	O
the	O	O
"	O	O
Formatter	O	B-Class
"	O	O
that	O	O
I	O	O
've	O	O
set	O	O
to	O	O
the	O	O
FileHandler	O	B-Class
.	O	O

So	O	O
I	O	O
create	O	O
an	O	O
instance	O	O
of	O	O
the	O	O
logger	O	O
in	O	O
the	O	O
FileHandler	O	B-Class
,	O	O
so	O	O
I	O	O
can	O	O
use	O	O
the	O	O
log	O	O
method	O	O
and	O	O
format	O	O
the	O	O
string	O	O
as	O	O
designed	O	O
in	O	O
the	O	O
Formatter	O	B-Class
.	O	O

Which	O	O
works	O	O
,	O	O
kinda	O	O
.	O	O

..	O	O
.	O	O

This	O	O
is	O	O
getting	O	O
a	O	O
bit	O	O
silly	O	O
,	O	O
is	O	O
it	O	O
worth	O	O
continuing	O	O
on	O	O
like	O	O
this	O	O
,	O	O
working	O	O
AROUND	O	O
the	O	O
java.util.Logger	O	B-Class
rather	O	O
than	O	O
working	O	O
with	O	O
it	O	O
?	O	O

One	O	O
of	O	O
the	O	O
useful	O	O
parts	O	O
of	O	O
the	O	O
java.util.Logger	O	B-Value
is	O	O
having	O	O
a	O	O
separate	O	O
logger	O	O
instance	O	O
for	O	O
each	O	O
class	O	O
and	O	O
being	O	O
able	O	O
to	O	O
have	O	O
more	O	O
control	O	O
over	O	O
the	O	O
messages	O	O
..	O	O
.	O	O

Any	O	O
suggestions	O	O
?	O	O

The	O	O
code	O	O
is	O	O
quite	O	O
long	O	O
,	O	O
but	O	O
I	O	O
think	O	O
it	O	O
's	O	O
easily	O	O
understood	O	O
from	O	O
the	O	O
description	O	O
above	O	O
,	O	O
if	O	O
not	O	O
let	O	O
me	O	O
know	O	O
and	O	O
I	O	O
'll	O	O
upload	O	O
somewhere	O	O
.	O	O

You	O	O
can	O	O
use	O	O
log4j	O	B-Application
2	O	B-Version
JDK	O	O
Logging	O	O
Adapter	O	O
to	O	O
enable	O	O
logging	O	O
with	O	O
log4j	O	B-Application
,	O	O
And	O	O
log4j	O	B-Application
2	O	B-Version
provide	O	O
remarkable	O	O
asynchronous	O	O
Logging	O	O
mechanism	O	O
with	O	O
lot	O	O
of	O	O
configuration	O	O
options	O	O
.	O	O

Necessary	O	O
VM	O	O
arguments	O	O

You	O	O
can	O	O
find	O	O
more	O	O
information	O	O
about	O	O
log4j	O	B-Application
2	O	B-Version
async	O	O
logging	O	O
here	O	O
and	O	O
tomcat	O	B-Application
configuration	O	O
details	O	O
here	O	O

sample	O	O
Log4j2.xml	O	B-File_Name
for	O	O
async	O	O
loggign	O	O

You	O	O
should	O	O
really	O	O
consider	O	O
using	O	O
SLF4J	O	B-Library
.	O	O

These	O	O
issues	O	O
you	O	O
are	O	O
describing	O	O
come	O	O
along	O	O
with	O	O
rolling	O	O
your	O	O
own	O	O
logger	O	B-Application
.	O	O

SLF4J	O	B-Library
is	O	O
really	O	O
commonly	O	O
used	O	O
because	O	O
it	O	O
is	O	O
not	O	O
very	O	O
intrusive	O	O
,	O	O
should	O	O
you	O	O
decide	O	O
that	O	O
you	O	O
need	O	O
something	O	O
different	O	O
you	O	O
can	O	O
swap	O	O
it	O	O
out	O	O
for	O	O
a	O	O
different	O	O
framework	O	O
.	O	O

http://saltnlight5.blogspot.ca/2013/08/how-to-configure-slf4j-with-different.html	O	O

http://www.slf4j.org/manual.html	O	O

If	O	O
you	O	O
do	O	O
decide	O	O
to	O	O
stick	O	O
with	O	O
your	O	O
own	O	O
logger	O	B-Application
I	O	O
would	O	O
say	O	O
that	O	O
you	O	O
should	O	O
start	O	O
by	O	O
making	O	O
it	O	O
a	O	O
singleton	O	O
with	O	O
several	O	O
logwriters	O	O
attached	O	O
to	O	O
log	O	O
levels	O	O
,	O	O
you	O	O
then	O	O
setup	O	O
a	O	O
non-blocking	O	O
queue	O	B-Data_Structure
for	O	O
each	O	O
logger	O	B-Application
(	O	O
there	O	O
are	O	O
tons	O	O
of	O	O
examples	O	O
of	O	O
this	O	O
out	O	O
there	O	O
)	O	O
and	O	O
simply	O	O
call	O	O
log(logLevel,	O	B-Function
logOrigin,	O	I-Function
logMessage)	O	I-Function
and	O	O
under	O	O
the	O	O
hood	O	O
send	O	O
this	O	O
to	O	O
each	O	O
logwriter	O	B-Class
,	O	O
which	O	O
would	O	O
be	O	O
a	O	O
non-blocking	O	O
queue	O	B-Data_Structure
that	O	O
runs	O	O
on	O	O
a	O	O
thread	O	O
for	O	O
each	O	O
logwriter	O	B-Class
.	O	O

Each	O	O
logwriter	O	B-Class
should	O	O
be	O	O
it	O	O
's	O	O
own	O	O
thread	O	O
,	O	O
not	O	O
each	O	O
log	O	B-File_Type
,	O	O
and	O	O
you	O	O
only	O	O
need	O	O
one	O	O
logger	O	B-Application
as	O	O
all	O	O
it	O	O
is	O	O
is	O	O
a	O	O
short	O	O
hand	O	O
to	O	O
place	O	O
things	O	O
in	O	O
your	O	O
logwriter	O	B-Class
's	O	O
queues	O	B-Data_Structure
from	O	O
anywhere	O	O
in	O	O
your	O	O
app	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
an	O	O
AVAssetReaderOutput	B-Code_Block	B-Class
to	O	O
read	O	O
samples	O	O
from	O	O
an	O	O
AVAsset	B-Code_Block	B-Class
,	O	O
do	O	O
some	O	O
processing	O	O
on	O	O
them	O	O
,	O	O
and	O	O
play	O	O
the	O	O
result	O	O
using	O	O
a	O	O
RemoteIO	O	B-Device
AU	O	I-Device
.	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
after	O	O
calling	O	O
AudioOutputUnitStop	B-Code_Block	B-Function
to	O	O
pause	O	O
the	O	O
playback	O	O
,	O	O
then	O	O
after	O	O
going	O	O
to	O	O
the	O	O
background	O	O
and	O	O
back	O	O
to	O	O
the	O	O
foreground	O	O
the	O	O
audio	O	O
wo	O	O
n't	O	O
start	O	O
again	O	O
after	O	O
calling	O	O
AudioOutputUnitStart	B-Code_Block	B-Function
.	O	O

This	O	O
is	O	O
due	O	O
to	O	O
an	O	O
error	O	O
returned	O	O
from	O	O
the	O	O
copyNextSampleBuffer	B-Code_Block	B-Function
method	O	O
of	O	O
AVAssetReaderOutput	B-Code_Block	B-Class
,	O	O
which	O	O
is	O	O
called	O	O
as	O	O
part	O	O
of	O	O
the	O	O
rendering	O	O
pipeline	O	O
.	O	O

The	O	O
status	B-Code_Block	B-Variable
property	O	O
of	O	O
AVAssetReader	B-Code_Block	B-Class
after	O	O
calling	O	O
copyNextSampleBuffer	B-Code_Block	B-Function
is	O	O
AVAssetReaderStatusFailed	B-Code_Block	B-Error_Name
,	O	O
and	O	O
its	O	O
error	B-Code_Block	B-Variable
property	O	O
is	O	O
Error	O	B-Output_Block
Domain	O	I-Output_Block
=	O	I-Output_Block
AVFoundationErrorDomain	O	I-Output_Block
Code	O	I-Output_Block
=	O	I-Output_Block
-11847	O	I-Output_Block
"	O	I-Output_Block
Operation	O	I-Output_Block
Interrupted	O	I-Output_Block
"	O	I-Output_Block
UserInfo	O	I-Output_Block
=	O	I-Output_Block
0x1d8b6100	O	I-Output_Block
{	O	I-Output_Block
NSLocalizedRecoverySuggestion	O	I-Output_Block
=	O	I-Output_Block
Stop	O	I-Output_Block
other	O	I-Output_Block
operations	O	I-Output_Block
and	O	I-Output_Block
try	O	I-Output_Block
again	O	I-Output_Block
.	O	I-Output_Block
,	O	I-Output_Block
NSLocalizedDescription	O	I-Output_Block
=	O	I-Output_Block
Operation	O	I-Output_Block
Interrupted}	O	I-Output_Block

I	O	O
'm	O	O
looking	O	O
for	O	O
a	O	O
solution	O	O
which	O	O
wo	O	O
n't	O	O
force	O	O
me	O	O
to	O	O
reinitialize	O	O
the	O	O
entire	O	O
pipeline	O	O
after	O	O
coming	O	O
back	O	O
to	O	O
the	O	O
foreground	O	O
-	O	O
Hoping	O	O
there	O	O
is	O	O
such	O	O
a	O	O
solution	O	O
,	O	O
that	O	O
AVAssetReaders	B-Code_Block	B-Class
can	O	O
survive	O	O
the	O	O
app	O	O
going	O	O
to	O	O
background	O	O
and	O	O
back.	O	O
.	O	O

Notes	O	O

The	O	O
app	O	O
is	O	O
entitled	O	O
to	O	O
play	O	O
audio	O	O
in	O	O
the	O	O
background	O	O
.	O	O

I	O	O
'm	O	O
handling	O	O
audio	O	O
interruptions	O	O
-	O	O
Setting	O	O
my	O	O
AVAudioSession	B-Code_Block	B-Class
as	O	O
the	O	O
active	O	O
one	O	O
both	O	O
on	O	O
AVAudioSessionDelegates	B-Code_Block	B-Variable
endInterruptionWithFlags	I-Code_Block	B-Function
:	I-Code_Block	I-Function
event	O	O
and	O	O
whenever	O	O
the	O	O
app	O	O
becomes	O	O
active	O	O
.	O	O

Does	O	O
n't	O	O
make	O	O
a	O	O
difference	O	O
whether	O	O
I	O	O
do	O	O
this	O	O
or	O	O
not	O	O
,	O	O
getting	O	O
the	O	O
same	O	O
error	O	O
.	O	O

Some	O	O
code	O	O
:	O	O

AudioPlayer	O	B-Class

AudioReader	O	B-Class
Setup	O	O

AudioReader	O	B-Class
Render	O	B-Function
Method	O	O
,	O	O
called	O	O
eventually	O	O
by	O	O
the	O	O
RenderCallback	O	B-Function
function	O	O

The	O	O
graph	O	B-User_Interface_Element
and	O	O
AVReader	O	B-Class
underpinnings	O	O
are	O	O
not	O	O
connected/linked	O	O
whatsoever	O	O
.	O	O

The	O	O
confusion	O	O
perhaps	O	O
comes	O	O
from	O	O
that	O	O
iOS	O	B-Operating_System
wo	O	O
n't	O	O
"	O	O
background	O	O
"	O	O
(	O	O
hibernate	O	O
)	O	O
a	O	O
process	O	O
if	O	O
it	O	O
sees	O	O
the	O	O
audio	O	B-User_Interface_Element
graph	O	I-User_Interface_Element
running	O	O
(	O	O
because	O	O
then	O	O
audio	O	O
data	O	O
would	O	O
be	O	O
unable	O	O
to	O	O
be	O	O
generated	O	O
)	O	O
.	O	O

That	O	O
's	O	O
why	O	O
when	O	O
you	O	O
stop	O	O
the	O	O
audio	O	B-User_Interface_Element
graph	O	I-User_Interface_Element
,	O	O
2-3	O	O
minutes	O	O
later	O	O
,	O	O
iOS	O	B-Operating_System
will	O	O
background	O	O
your	O	O
process	O	O
(	O	O
as	O	O
of	O	O
iOS	O	B-Operating_System
9	O	B-Version
)	O	O
.	O	O

Presumably	O	O
,	O	O
iOS	O	B-Operating_System
looks	O	O
at	O	O
what	O	O
's	O	O
going	O	O
on	O	O
in	O	O
your	O	O
process	O	O
and	O	O
decides	O	O
when	O	O
your	O	O
process	O	O
should	O	O
be	O	O
forced	O	O
to	O	O
background	O	O
(	O	O
via	O	O
beginBackgroundTaskWithName:expirationHandler	B-Code_Block	B-Code_Block
)	O	O
.	O	O

Apple	O	B-Website
devs	O	O
decided	O	O
for	O	O
whatever	O	O
reason	O	O
to	O	O
make	O	O
AVReader	O	B-Class
stop	O	O
when	O	O
put	O	O
into	O	O
background	O	O
mode	O	O
(	O	O
my	O	O
best	O	O
guess	O	O
is	O	O
QA	O	O
)	O	O
.	O	O

The	O	O
good	O	O
news	O	O
is	O	O
that	O	O
you	O	O
can	O	O
detect	O	O
it	O	O
and	O	O
recover	O	O
when	O	O
your	O	O
process	O	O
exits	O	O
background	O	O
mode	O	O
,	O	O
but	O	O
you	O	O
WILL	O	O
need	O	O
to	O	O
restart	O	O
your	O	O
reader	O	B-Variable
and	O	O
readerOutput	O	B-Variable
again	O	O
.	O	O

First	O	O
,	O	O
when	O	O
AVAssetReaderOutput	O	B-Class
's	O	O
copyNextSampleBuffer	B-Code_Block	B-Function
returns	O	O
NULL	O	B-Value
,	O	O
check	O	O
AVAssetReader.error.code	B-Code_Block	B-Variable
for	O	O
AVErrorOperationInterrupted	B-Code_Block	B-Variable
.	O	O

The	O	O
way	O	O
we	O	O
pull	O	O
off	O	O
a	O	O
gapless	O	O
recovery	O	O
here	O	O
is	O	O
when	O	O
we	O	O
get	O	O
to	O	O
that	O	O
point	O	O
,	O	O
we	O	O
first	O	O
calculate	O	O
the	O	O
exact	O	O
time	O	O
we	O	O
left	O	O
off	O	O
at	O	O
(	O	O
easy	O	O
to	O	O
do	O	O
-	O	O
-	O	O
just	O	O
maintain	O	O
a	O	O
counter	O	O
of	O	O
the	O	O
total	O	O
samples	O	O
already	O	O
output	O	O
)	O	O
.	O	O

Then	O	O
,	O	O
you	O	O
WILL	O	O
need	O	O
to	O	O
restart	O	O
your	O	O
AVAssetReader	B-Code_Block	B-Class
and	O	O
AVAssetReaderOutput	B-Code_Block	B-Class
flow	O	O
.	O	O

But	O	O
that	O	O
's	O	O
no	O	O
problem	O	O
since	O	O
your	O	O
good	O	O
development	O	O
practices	O	O
would	O	O
have	O	O
encapsulated	O	O
that	O	O
in	O	O
a	O	O
single	O	O
function	O	O
that	O	O
has	O	O
a	O	O
seek	O	O
time	O	O
as	O	O
an	O	O
argument	O	O
.	O	O

In	O	O
that	O	O
function	O	O
,	O	O
use	O	O
AVAssetReader.timeRange	B-Code_Block	B-Variable
to	O	O
seek	O	O
to	O	O
that	O	O
time	O	O
you	O	O
need	O	O
to	O	O
resume	O	O
at	O	O
and	O	O
presto	O	O
!	O	O

There	O	O
first	O	O
thing	O	O
I	O	O
would	O	O
try	O	O
is	O	O
:	O	O

Not	O	O
calling	O	O
AudioOutputUnitStop	B-Code_Block	B-Function
?	O	O

Why	O	O
do	O	O
n't	O	O
you	O	O
leave	O	O
the	O	O
graph	O	B-User_Interface_Element
running	O	O
and	O	O
when	O	O
the	O	O
audio	O	O
is	O	O
paused	O	O
simply	O	O
not	O	O
call	O	O

Instead	O	O
just	O	O
fill	O	O
the	O	O
buffer	O	B-Data_Structure
with	O	O
0	O	B-Value
's	O	O
and/or	O	O
use	O	O
a	O	O
render	O	O
action	O	O
of	O	O
kAudioUnitRenderAction_OutputIsSilence	O	B-Variable
for	O	O
the	O	O
buffers	O	B-Data_Structure
.	O	O

Starting	O	O
and	O	O
stopping	O	O
the	O	O
graph	O	B-User_Interface_Element
takes	O	O
time	O	O
and	O	O
leads	O	O
to	O	O
an	O	O
unresponsive	O	O
graph	O	B-User_Interface_Element
.	O	O

I	O	O
never	O	O
stop	O	O
the	O	O
graph	O	B-User_Interface_Element
while	O	O
my	O	O
apps	O	O
are	O	O
running	O	O
.	O	O

(	O	O
Unless	O	O
some	O	O
serious	O	O
interruption	O	O
happens	O	O
)	O	O
This	O	O
may	O	O
keep	O	O
the	O	O
asset	O	O
reader	O	O
around	O	O
and	O	O
happy	O	O
.	O	O

But	O	O
I	O	O
have	O	O
a	O	O
hunch	O	O
that	O	O
as	O	O
the	O	O
AVAssetReader	B-Code_Block	B-Class
is	O	O
not	O	O
directly	O	O
connected	O	O
to	O	O
the	O	O
audio	O	B-User_Interface_Element
graph	O	I-User_Interface_Element
(	O	O
you	O	O
just	O	O
happen	O	O
to	O	O
request	O	O
samples	O	O
and	O	O
place	O	O
them	O	O
in	O	O
the	O	O
buffer	O	B-Data_Structure
supplied	O	O
by	O	O
the	O	O
render	O	O
callback	O	O
)	O	O
the	O	O
problem	O	O
does	O	O
not	O	O
lie	O	O
with	O	O
the	O	O
audio	O	B-User_Interface_Element
graph	O	I-User_Interface_Element
being	O	O
stopped	O	O
and	O	O
restarted	O	O
at	O	O
all	O	O
.	O	O

So	O	O
the	O	O
next	O	O
line	O	O
of	O	O
attack	O	O
I	O	O
would	O	O
try	O	O
is	O	O
to	O	O
request	O	O
samples	O	O
from	O	O
an	O	O
AVAsset	O	B-Class
,	O	O
put	O	O
the	O	O
app	O	O
into	O	O
the	O	O
background	O	O
and	O	O
bring	O	O
it	O	O
back	O	O
to	O	O
the	O	O
foreground	O	O
without	O	O
using	O	O
an	O	O
AUGraph	O	B-Variable
at	O	O
all	O	O
.	O	O

This	O	O
will	O	O
determine	O	O
if	O	O
the	O	O
problem	O	O
is	O	O
related	O	O
to	O	O
the	O	O
AUGraph	B-Code_Block	B-Variable
or	O	O
the	O	O
app	O	O
entering	O	O
a	O	O
background	O	O
state	O	O
.	O	O

If	O	O
something	O	O
happens	O	O
that	O	O
forces	O	O
you	O	O
to	O	O
tear	O	O
down	O	O
your	O	O
AVAssetReader	B-Code_Block	B-Class
you	O	O
will	O	O
have	O	O
to	O	O
reconnect	O	O
to	O	O
the	O	O
asset	O	O
.	O	O

So	O	O
as	O	O
you	O	O
have	O	O
to	O	O
write	O	O
that	O	O
code	O	O
another	O	O
the	O	O
option	O	O
I	O	O
would	O	O
look	O	O
at	O	O
is	O	O
the	O	O
one	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
do	O	O
.	O	O

Reconnect	O	O
to	O	O
the	O	O
AVAssetReader	B-Code_Block	B-Class
,	O	O
seek	O	O
to	O	O
the	O	O
position	O	O
you	O	O
left	O	O
off	O	O
at	O	O
and	O	O
keep	O	O
going	O	O
.	O	O

I	O	O
am	O	O
struggling	O	O
to	O	O
get	O	O
the	O	O
login	O	O
code	O	O
to	O	O
run	O	O
successfully	O	O
.	O	O

It	O	O
keeps	O	O
on	O	O
echoing	O	O
the	O	O
"	O	B-Output_Block
Username	O	I-Output_Block
or	O	I-Output_Block
Password	O	I-Output_Block
incorrect.	O	I-Output_Block
.	O	I-Output_Block
"	O	I-Output_Block
section	O	O
,	O	O
though	O	O
the	O	O
correct	O	O
username	O	B-Variable
and	O	O
password	O	B-Variable
in	O	O
entered	O	O
.	O	O

Am	O	O
I	O	O
missing	O	O
something	O	O
somewhere	O	O
,	O	O
please	O	O
help	O	O
.	O	O

The	O	O
following	O	O
worked	O	O
in	O	O
test	O	O
(	O	O
up	O	O
to	O	O
the	O	O
password_verify	B-Code_Block	B-Function
where	O	O
I	O	O
used	O	O
a	O	O
different	O	O
test	O	O
as	O	O
I	O	O
have	O	O
PHP	O	B-Language
5.3.2	O	B-Version
and	O	O
hence	O	O
no	O	O
password_verify	O	B-Function
)	O	O
~	O	O
hopefully	O	O
it	O	O
might	O	O
prove	O	O
of	O	O
benefit	O	O
.	O	O

/	O	O
**	O	O

*	O	O
You	O	O
might	O	O
need	O	O
to	O	O
save	O	O
a	O	O
hashed	O	O
copy	O	O
of	O	O
the	O	O
password	O	B-Variable
at	O	O
the	O	O
point	O	O
of	O	O

*	O	O
user	O	O
creation	O	O
,	O	O
so	O	O
that	O	O
you	O	O
can	O	O
password_verify	O	B-Function
the	O	O
input	O	O
password	O	B-Variable
against	O	O
the	O	O
hashed	O	O

*	O	O
copy	O	O
returned	O	O
from	O	O
the	O	O
DB	O	O
.	O	O

*	O	O
something	O	O
like	O	O
this	O	O
:	O	O

*	O	O
$hashed	O	B-Code_Block
=	O	I-Code_Block
password_hash	O	I-Code_Block
(	O	I-Code_Block
$password	O	I-Code_Block
,	O	I-Code_Block
PASSWORD_BCRYPT	O	I-Code_Block
)	O	I-Code_Block
;	O	B-Code_Block

*	O	O
NOTE	O	O
:	O	O
I	O	O
've	O	O
changed	O	O
you	O	O
code	O	O
to	O	O
an	O	O
extent	O	O
,	O	O
pls	O	O
adapt	O	O
.	O	O

*	O	O
/	O	O

I	O	O
'm	O	O
studying	O	O
the	O	O
Clojure	O	B-Language
Koans	O	O
:	O	O

https://github.com/functional-koans/clojure-koans/blob/master/src/koans/10_lazy_sequences.clj	O	O

I	O	O
am	O	O
stuck	O	O
on	O	O
this	O	O
one	O	O
:	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
the	O	O
exact	O	O
builtin	O	O
function	O	O
to	O	O
fill	O	O
in	O	O
the	O	O
_	O	B-Value
blanks	O	O
with	O	O
,	O	O
so	O	O
I	O	O
tried	O	O
writing	O	O
my	O	O
own	O	O
.	O	O

I	O	O
wrote	O	O
it	O	O
as	O	O
a	O	O
separate	O	O
function	O	O
as	O	O
a	O	O
test	O	O
.	O	O

I	O	O
intend	O	O
this	O	O
one	O	O
to	O	O
be	O	O
:	O	O
if	O	O
x	O	B-Variable
is	O	O
a	O	O
seq	O	B-Data_Structure
,	O	O
then	O	O
just	O	O
repeat	O	O
its	O	O
first	O	O
element	O	O
.	O	O

Otherwise	O	O
,	O	O
make	O	O
it	O	O
a	O	O
seq	O	B-Data_Structure
.	O	O

When	O	O
I	O	O
run	O	O
it	O	O
explicitly	O	O
,	O	O
it	O	O
looks	O	O
fine	O	O
:	O	O

But	O	O
using	O	O
iterate	B-Code_Block	B-Code_Block
adds	O	O
an	O	O
extra	O	O
parenthesis	O	B-Value
:	O	O

Re-read	O	O
the	O	O
documentation	O	O
for	O	O
iterate	B-Code_Block	B-Code_Block
:	O	O

Use	O	O
nth	B-Code_Block	B-Code_Block
instead	O	O
of	O	O
take	B-Code_Block	B-Code_Block
if	O	O
you	O	O
want	O	O
the	O	O
results	O	O
of	O	O
a	O	O
particular	O	O
iteration	O	O
:	O	O

solves	O	O
this	O	O
particular	O	O
koan	O	O

(	O	O
Asking	O	O
on	O	O
behalf	O	O
of	O	O
a	O	O
friend	O	O
employed	O	O
in	O	O
a	O	O
local	O	O
bank	O	O
)	O	O

Since	O	O
he	O	O
's	O	O
no	O	O
programming	O	O
experience	O	O
(	O	O
neither	O	O
do	O	O
I	O	O
with	O	O
SQL	O	B-Application
Server	O	I-Application
)	O	O
,	O	O
he	O	O
's	O	O
looking	O	O
for	O	O
a	O	O
tool	O	O
which	O	O
can	O	O
show	O	O
all	O	O
the	O	O
jpg	O	B-File_Type
images	O	B-User_Interface_Element
stored	O	O
in	O	O
a	O	O
windows	O	O
SQL	O	B-Application
Server	O	I-Application
database	O	O
.	O	O

Google	O	B-Website
did	O	O
n't	O	O
give	O	O
any	O	O
satisfactory	O	O
result	O	O
.	O	O

SQL	O	B-Application
Image	O	I-Application
Viewer	O	I-Application

Does	O	O
anyone	O	O
have	O	O
any	O	O
tips	O	O
for	O	O
calculating	O	O
percentages	O	O
in	O	O
Linq	O	B-Language
to	O	O
Entities	O	O
?	O	O

I	O	O
'm	O	O
guessing	O	O
that	O	O
there	O	O
must	O	O
be	O	O
a	O	O
more	O	O
efficient	O	O
way	O	O
than	O	O
returning	O	O
2	O	O
results	O	O
and	O	O
calculating	O	O
in	O	O
memory	O	O
.	O	O

Perhaps	O	O
an	O	O
inventive	O	O
use	O	O
of	O	O
let	O	O
or	O	O
into	O	O
?	O	O

EDIT	O	O

Thanks	O	O
Mark	O	B-User_Name
for	O	O
your	O	O
comment	O	O
,	O	O
here	O	O
is	O	O
a	O	O
code	O	O
snippet	O	O
,	O	O
but	O	O
I	O	O
think	O	O
this	O	O
will	O	O
result	O	O
in	O	O
2	O	O
database	O	O
hits	O	O
:	O	O

If	O	O
you	O	O
use	O	O
LINQ	O	B-Library
to	O	O
Entities	O	O
and	O	O
write	O	O
something	O	O
along	O	O
the	O	O
lines	O	O
of	O	O
select	B-Code_Block	B-Code_Block
x	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
100.0	I-Code_Block	I-Code_Block
/	I-Code_Block	I-Code_Block
y	I-Code_Block	I-Code_Block
in	O	O
your	O	O
query	O	O
then	O	O
this	O	O
expression	O	O
will	O	O
be	O	O
converted	O	O
to	O	O
SQL	O	B-Language
and	O	O
run	O	O
in	O	O
the	O	O
database	O	O
.	O	O

It	O	O
will	O	O
be	O	O
efficient	O	O
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
Java	O	B-Language
and	O	O
I	O	O
have	O	O
a	O	O
problem	O	O
with	O	O
drawing	O	O
an	O	O
oval	O	B-User_Interface_Element
using	O	O
paintComponent	O	B-Function
method	O	O
.	O	O

I	O	O
found	O	O
many	O	O
similar	O	O
threads	O	O
,	O	O
but	O	O
none	O	O
of	O	O
the	O	O
soultions	O	O
worked	O	O
.	O	O

My	O	O
code	O	O
:	O	O

RacerMain.java	O	B-File_Name

Dot.java	O	B-File_Name

Why	O	O
it	O	O
does	O	O
not	O	O
work	O	O
and	O	O
how	O	O
to	O	O
get	O	O
this	O	O
code	O	O
working	O	O
?	O	O

Or	O	O
you	O	O
can	O	O
set	O	B-Function
preferred	O	I-Function
size	O	I-Function
in	O	O
constructor	O	O
:	O	O

JPanel	B-Code_Block	B-Class
uses	O	O
FlowLayout	B-Code_Block	B-Class
which	O	O
respects	O	O
preferred	O	O
sizes	O	O
but	O	O
the	O	O
default	O	O
size	O	O
of	O	O
the	O	O
Dot	B-Code_Block	B-Class
component	O	O
is	O	O
too	O	O
small	O	O
to	O	O
be	O	O
seen	O	O
.	O	O

You	O	O
need	O	O
to	O	O
use	O	O
a	O	O
layout	O	O
manager	O	O
that	O	O
uses	O	O
the	O	O
maximum	O	O
area	O	O
available	O	O
or	O	O
override	O	O
getPreferredSize	B-Code_Block	B-Function
.	O	O

Remember	O	O
to	O	O
call	O	O
pack	B-Code_Block	B-Function
before	O	O
calling	O	O
JFrame	B-Code_Block	B-Function
#setVisible	I-Code_Block	I-Function

how	O	O
can	O	O
i	O	O
save	O	O
my	O	O
bash	O	B-File_Name
profile	O	I-File_Name
/	O	O
do	O	O
a	O	O
clean	O	O
install	O	O
of	O	O
my	O	O
mac	O	B-Device
/	O	O
then	O	O
import	O	O
the	O	O
bash	O	B-File_Name
profile	O	I-File_Name
?	O	O

TYIA	O	O

Before	O	O
doing	O	O
a	O	O
clean	O	O
install	O	O
,	O	O
you	O	O
should	O	O
of	O	O
course	O	O
back	O	O
up	O	O
.	O	O

You	O	O
can	O	O
restore	O	O
your	O	O
bash	O	B-File_Name
profile	O	I-File_Name
(	O	I-File_Name
or	O	O
anything	O	O
else	O	O
you	O	O
need	O	O
)	O	O
from	O	O
the	O	O
backup	O	O
.	O	O

Your	O	O
"	O	O
bash	O	B-File_Name
profile	O	I-File_Name
"	O	O
is	O	O
the	O	O
first	O	O
of	O	O
~	B-Code_Block	B-File_Name
/bash_login	I-Code_Block	I-File_Name
,	O	O
or	O	O
~	B-Code_Block	B-File_Name
/.bash_profile	I-Code_Block	I-File_Name
,	O	O
or	O	O
~	B-Code_Block	B-File_Name
/.profile	I-Code_Block	I-File_Name
that	O	O
exists	O	O
,	O	O
plus	O	O
~	B-Code_Block	B-File_Name
/.bashrc	I-Code_Block	I-File_Name
if	O	O
it	O	O
exists	O	O
,	O	O
plus	O	O
any	O	O
files	O	O
that	O	O
these	O	O
files	O	O
import	O	O
.	O	O

All	O	O
of	O	O
these	O	O
are	O	O
plain	O	O
text	O	O
files	O	O
,	O	O
and	O	O
can	O	O
be	O	O
copied	O	O
with	O	O
/bin/cat	B-Code_Block	B-File_Name
.	O	O

Your	O	O
Terminal	O	B-Application
preferences	O	O
are	O	O
not	O	O
properly-speaking	O	O
anything	O	O
to	O	O
do	O	O
with	O	O
bash	O	B-Language
,	O	O
but	O	O
you	O	O
might	O	O
consider	O	O
them	O	O
part	O	O
of	O	O
"	O	O
your	O	O
profile	O	O
"	O	O
.	O	O

You	O	O
can	O	O
make	O	O
a	O	O
copy	O	O
with	O	O
defaults	B-Code_Block	B-Code_Block
export	I-Code_Block	I-Code_Block
com.apple.Terminal	I-Code_Block	I-Code_Block
path/to/saved.plist	I-Code_Block	I-Code_Block
and	O	O
restore	O	O
it	O	O
later	O	O
with	O	O
defaults	B-Code_Block	B-Code_Block
import	I-Code_Block	I-Code_Block
com.apple.Terminal	I-Code_Block	I-Code_Block
path/to/saved.plist	I-Code_Block	I-Code_Block
.	O	O

I	O	O
have	O	O
added	O	O
php	O	B-Language
script	O	O
to	O	O
run	O	O
my	O	O
ruby	O	B-Language
file	O	O
but	O	O
to	O	O
no	O	O
success	O	O
.	O	O

I	O	O
run	O	O
my	O	O
php	O	B-Language
script	O	O
in	O	O
its	O	O
php	O	B-Language
directory	O	O
.	O	O

It	O	O
does	O	O
not	O	O
display	O	O
the	O	O
results	O	O
of	O	O
the	O	O
ruby	O	B-Language
file	O	O
.	O	O

But	O	O
when	O	O
I	O	O
run	O	O
the	O	O
command	O	O
outside	O	O
php	O	B-Language
it	O	O
works	O	O
.	O	O

Expected	O	O
result	O	O
is	O	O
to	O	O
display	O	O
information	O	O
in	O	O
the	O	O
terminal	O	B-Application
and	O	O
write	O	O
the	O	O
results	O	O
to	O	O
a	O	O
file	O	O
.	O	O

i	O	O
want	O	O
to	O	O
get	O	O
SharePoint	O	B-Application
login	O	O
user	O	O
roleDefinitionBindings	O	B-Class
using	O	O
javascript	O	B-Language
.	O	O

but	O	O
when	O	O
i	O	O
call	O	O
rest	O	B-Library
api	O	I-Library
call	O	O
for	O	O
roleDefinitionBindings	O	B-Class
i	O	O
got	O	O
this	O	O
error	O	O
message	O	O
in	O	O
response	O	O
:	O	O

{	O	B-Output_Block
"	O	I-Output_Block
error	O	I-Output_Block
"	O	I-Output_Block
:{	O	I-Output_Block
"	O	I-Output_Block
code	O	I-Output_Block
"	O	I-Output_Block
:	O	I-Output_Block
"	O	I-Output_Block
-2147024891	O	I-Output_Block
,	O	I-Output_Block
System.UnauthorizedAccessException	O	I-Output_Block
"	O	I-Output_Block
,	O	I-Output_Block

"	O	B-Output_Block
message	O	I-Output_Block
"	O	I-Output_Block
:{	O	I-Output_Block
"	O	I-Output_Block
lang	O	I-Output_Block
"	O	I-Output_Block
:	O	I-Output_Block
"	O	I-Output_Block
en-US	O	I-Output_Block
"	O	I-Output_Block
,	O	I-Output_Block
"	O	I-Output_Block
value	O	I-Output_Block
"	O	I-Output_Block
:	O	I-Output_Block
"	O	I-Output_Block
Access	O	I-Output_Block
denied	O	I-Output_Block
.	O	I-Output_Block

You	O	B-Output_Block
do	O	I-Output_Block
not	O	I-Output_Block
have	O	I-Output_Block
permission	O	I-Output_Block
to	O	I-Output_Block
perform	O	I-Output_Block
this	O	I-Output_Block
action	O	I-Output_Block
or	O	I-Output_Block
access	O	I-Output_Block
this	O	I-Output_Block
resource	O	I-Output_Block
.	O	I-Output_Block
"	O	I-Output_Block
}}}	O	I-Output_Block

My	O	O
rest	O	B-Library
api	O	I-Library
call	O	O
is	O	O
:	O	O

[	O	B-Code_Block
function	O	I-Code_Block
getUserRole(appWeburl,	O	I-Code_Block
principalid,success,failed)	O	I-Code_Block
{	O	I-Code_Block

$	O	B-Code_Block
.ajax	O	I-Code_Block
(	O	B-Code_Block
{	O	I-Code_Block

url	O	B-Code_Block
:	O	I-Code_Block
appWeburl+	O	I-Code_Block
"	O	I-Code_Block
/_api/web/RoleAssignments	O	I-Code_Block
('	O	I-Code_Block
"	O	B-Code_Block
+	O	I-Code_Block
principalid	O	I-Code_Block
+	O	I-Code_Block
"	O	I-Code_Block
'	O	B-Code_Block
)	O	I-Code_Block
/roleDefinitionBindings	O	I-Code_Block
"	O	I-Code_Block
,	O	I-Code_Block

method	O	B-Code_Block
:	O	I-Code_Block
"	O	I-Code_Block
GET	O	I-Code_Block
"	O	I-Code_Block
,	O	I-Code_Block

headers	O	B-Code_Block
:	O	I-Code_Block
{	O	I-Code_Block
"	O	I-Code_Block
Accept	O	I-Code_Block
"	O	I-Code_Block
:	O	I-Code_Block
"	O	I-Code_Block
application/json	O	I-Code_Block
;	O	I-Code_Block
odata	O	I-Code_Block
=	O	I-Code_Block
verbose	O	I-Code_Block
"	O	I-Code_Block
}	O	I-Code_Block
,	O	O

success	O	B-Code_Block
:	O	I-Code_Block
function(data)	O	I-Code_Block
{	O	I-Code_Block
console.log	O	I-Code_Block
(	O	I-Code_Block
"	O	I-Code_Block
Success	O	I-Code_Block
Load	O	I-Code_Block
"	O	I-Code_Block
)	O	I-Code_Block
;	O	I-Code_Block
success	O	I-Code_Block
(	O	I-Code_Block
data.d.results	O	B-Code_Block
)	O	I-Code_Block
;}	O	I-Code_Block
,	O	O

error	O	B-Code_Block
:	O	I-Code_Block
function	O	I-Code_Block
(	O	I-Code_Block
data	O	I-Code_Block
)	O	I-Code_Block
{	O	B-Code_Block
console.log	O	I-Code_Block
(	O	I-Code_Block
"	O	I-Code_Block
Failed	O	I-Code_Block
to	O	I-Code_Block
Load	O	I-Code_Block
"	O	I-Code_Block
)	O	I-Code_Block
;	O	I-Code_Block
failed()	O	I-Code_Block
;	O	I-Code_Block
}	O	I-Code_Block
}	O	I-Code_Block
)	O	I-Code_Block
;	O	B-Code_Block

}	O	B-Code_Block
]	O	I-Code_Block
1	O	B-Code_Block

Install	O	O
Info	O	O
is	O	O
..	O	O
.	O	O

sonarqube-6.7.1	O	B-Application
|	O	O
sonar-scanner-3.0.3.778	O	B-Application
|	O	O
sonar-scanner-msbuild-4.0.2.892	O	B-Application
|	O	O
msbuild	O	B-Application
14	O	B-Version
|	O	O
Java	O	B-Application
SE	O	I-Application
Development	O	I-Application
Kit	O	I-Application
8	O	B-Version
|	O	O
.NET	O	B-Library
Framework	O	I-Library
4.6.2	O	B-Version

And	O	O
I	O	O
made	O	O
windows	O	O
batch	O	B-File_Type
file	O	O
to	O	O
build	O	O
and	O	O
scan(sonar)	O	O
.	O	O

but	O	O
some	O	O
projects	O	O
are	O	O
ok	O	O
.	O	O
but	O	O
some	O	O
projects	O	O
are	O	O
failed	O	O
.	O	O

batch	O	B-File_Type
file	O	O
is	O	O
..	O	O
.	O	O

Our	O	O
Build.bat	O	B-File_Name
is	O	O
customized	O	O
,	O	O
I	O	O
have	O	O
tried	O	O
only	O	O
use	O	O
Build.bat	O	B-File_Name
not	O	O
include	O	O
SonarQube	O	B-Application
,	O	O
and	O	O
it	O	O
was	O	O
working	O	O
fine	O	O
.	O	O

error	O	O
message	O	O
is	O	O
..	O	O
.	O	O

C:\Program	O	B-Output_Block
Files	O	I-Output_Block
(	O	I-Output_Block
x86	O	I-Output_Block
)	O	I-Output_Block
\Jenkins\workspace\CSS_SQ>exit	O	B-Output_Block
0	O	I-Output_Block

[	O	B-Output_Block
CSS_SQ	O	I-Output_Block
]	O	I-Output_Block
$	O	B-Output_Block
"	O	I-Output_Block
C:\Program	O	I-Output_Block
Files(x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\MSBuild.SonarQube.Runner.exe"	O	I-Output_Block
end	O	I-Output_Block
/d:sonar.login	O	I-Output_Block
=	O	I-Output_Block
******	O	I-Output_Block
********	O	I-Output_Block

SonarQube	O	B-Output_Block
Scanner	O	I-Output_Block
for	O	I-Output_Block
MSBuild	O	I-Output_Block
4.0.2	O	I-Output_Block

Default	O	B-Output_Block
properties	O	I-Output_Block
file	O	I-Output_Block
was	O	I-Output_Block
found	O	I-Output_Block
at	O	I-Output_Block
C:\Program	O	I-Output_Block
Files(x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\SonarQube.Analysis.xml	O	I-Output_Block

Loading	O	B-Output_Block
analysis	O	I-Output_Block
properties	O	I-Output_Block
from	O	I-Output_Block
C:\Program	O	I-Output_Block
Files	O	I-Output_Block
(	O	I-Output_Block
x86	O	I-Output_Block
)	O	I-Output_Block
\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\SonarQube.Analysis.xml	O	B-Output_Block

Post-processing	O	O
started	O	O
.	O	O

Generation	O	B-Output_Block
of	O	I-Output_Block
the	O	I-Output_Block
sonar-properties	O	I-Output_Block
file	O	I-Output_Block
failed	O	I-Output_Block
.	O	I-Output_Block

Unable	O	B-Output_Block
to	O	I-Output_Block
complete	O	I-Output_Block
SonarQube	O	I-Output_Block
analysis	O	I-Output_Block
.	O	O

14:36:16.988	O	B-Value
Creating	O	O
a	O	O
summary	O	O
markdown	O	B-File_Type
file	O	O
..	O	O
.	O	O

14:36:16.989	O	B-Output_Block
Post-processing	O	I-Output_Block
failed	O	I-Output_Block
.	O	I-Output_Block

Exit	O	B-Output_Block
code	O	I-Output_Block
:	O	I-Output_Block
1	O	I-Output_Block

ERROR	O	B-Output_Block
:	O	I-Output_Block
Execution	O	I-Output_Block
of	O	I-Output_Block
SonarQube	O	I-Output_Block
Scanner	O	I-Output_Block
for	O	I-Output_Block
MSBuild	O	I-Output_Block
failed	O	I-Output_Block
(	O	I-Output_Block
exit	O	I-Output_Block
code	O	I-Output_Block
1)	O	I-Output_Block

Finished	O	B-Output_Block
:	O	I-Output_Block
FAILURE	O	I-Output_Block

About	O	O
the	O	O
Possible	O	O
causes	O	O
,	O	O
I	O	O
have	O	O
checked	O	O
1	O	O
and	O	O
2	O	O
,	O	O
it	O	O
's	O	O
correct	O	O
,	O	O
but	O	O
I	O	O
am	O	O
not	O	O
sure	O	O
for	O	O
3	O	O
.	O	O

I	O	O
am	O	O
guessing	O	O
the	O	O
.sonarqube	O	B-File_Type
file	O	O
should	O	O
be	O	O
in	O	O
the	O	O
same	O	O
folder	O	O
with	O	O
.sln	O	B-File_Type
file	O	O
,	O	O
then	O	O
when	O	O
I	O	O
set	O	O
the	O	O
batch	O	B-File_Type
files	O	O
I	O	O
need	O	O
to	O	O
set	O	O
the	O	O
path	O	B-Variable
in	O	O
Additional	O	O
arguments	O	O
column	O	O
.	O	O

But	O	O
I	O	O
ca	O	O
n't	O	O
find	O	O
any	O	O
clue	O	O
to	O	O
set	O	O
that	O	O
yet	O	O
.	O	O

What	O	O
makes	O	O
this	O	O
error	O	O
message	O	O
?	O	O

and	O	O
How	O	O
should	O	O
I	O	O
do	O	O
?	O	O

The	O	O
third	O	O
option	O	O
means	O	O
that	O	O
the	O	O
"	O	O
begin	O	O
"	O	O
and	O	O
"	O	O
end	O	O
"	O	O
commands	O	O
must	O	O
be	O	O
run	O	O
from	O	O
the	O	O
same	O	O
folder	O	O
,	O	O
e.g	O	O
.	O	O
the	O	O
current	O	O
folder	O	O
should	O	O
be	O	O
the	O	O
same	O	O
when	O	O
running	O	O
the	O	O
commands	O	O
(	O	O
if	O	O
you	O	O
execute	O	O
cd	B-Code_Block	B-Code_Block
before	O	O
the	O	O
scanner	O	O
commands	O	O
the	O	O
printed	O	O
paths	O	O
should	O	O
be	O	O
the	O	O
same	O	O
)	O	O
.	O	O

Edit	O	O
:	O	O

This	O	O
particular	O	O
problem	O	O
seems	O	O
to	O	O
be	O	O
caused	O	O
because	O	O
the	O	O
build	O	O
is	O	O
executing	O	O
older	O	O
version	O	O
of	O	O
MSBuild	O	B-Application
.	O	O

Please	O	O
,	O	O
make	O	O
sure	O	O
that	O	O
you	O	O
run	O	O
MSBuild	O	B-Application
14	O	B-Version
or	O	O
15	O	B-Version
in	O	O
your	O	O
analysis	O	O
builds	O	O
.	O	O

Older	O	O
suggestion	O	O
(	O	O
still	O	O
generally	O	O
valid	O	O
)	O	O

We	O	O
just	O	O
investigated	O	O
similar	O	O
problem	O	O
which	O	O
is	O	O
caused	O	O
by	O	O
the	O	O
user	O	O
the	O	O
Slave	O	B-Application
Agent	O	I-Application
service	O	O
is	O	O
authenticated	O	O
with	O	O
.	O	O

To	O	O
check	O	O
if	O	O
yours	O	O
is	O	O
the	O	O
same	O	O
,	O	O
run	O	O
the	O	O
begin	B-Code_Block	B-Code_Block
step	O	O
of	O	O
the	O	O
scanner	O	O
with	O	O
/d:sonar.verbose	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
and	O	O
in	O	O
the	O	O
output	O	O
you	O	O
should	O	O
see	O	O
lines	O	O
like	O	O
these	O	O
:	O	O

If	O	O
the	O	O
paths	O	O
at	O	O
the	O	O
end	O	O
are	O	O
subfolders	O	O
of	O	O
C:\Windows	B-Code_Block	B-File_Name
then	O	O
you	O	O
need	O	O
to	O	O
change	O	O
the	O	O
Jenkins	O	B-Application
slave	O	I-Application
agent	O	I-Application
's	O	O
Windows	O	B-Application
Service	O	I-Application
user	O	O
with	O	O
a	O	O
domain	O	O
user	O	O
(	O	O
and	O	O
not	O	O
Local	O	O
System	O	O
)	O	O
:	O	O

I	O	O
am	O	O
a	O	O
beginner	O	O
in	O	O
Java	O	B-Language
and	O	O
I	O	O
need	O	O
to	O	O
print	O	O
the	O	O
DFS	O	B-Algorithm
of	O	O
a	O	O
graph	O	B-Data_Structure
using	O	O
it	O	O
's	O	O
arraylists	O	B-Class
to	O	O
store	O	O
the	O	O
adjacency	O	B-Data_Structure
list	O	I-Data_Structure
.	O	O

When	O	O
I	O	O
try	O	O
to	O	O
compile	O	O
I	O	O
am	O	O
getting	O	O
the	O	O
following	O	O
errors	O	O
:	O	O

The	O	O
code	O	O
is	O	O
the	O	O
following	O	O
:	O	O

The	O	O
Graph.txt	O	B-File_Name
contains	O	O
the	O	O
following	O	O

viz	B-Code_Block	B-Variable
is	O	O
a	O	O
Stack	O	B-Class
,	O	O
not	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

You	O	O
ca	O	O
n't	O	O
use	O	O
the	O	O
array	O	B-Data_Structure
notation	O	O
-	O	O
viz[node]	B-Code_Block	B-Variable
-	O	O
on	O	O
it	O	O
.	O	O

this	O	O
is	O	O
also	O	O
an	O	O
error	O	O
,	O	O
since	O	O
your	O	O
Stack	B-Code_Block	B-Class
is	O	O
not	O	O
generic	O	O
,	O	O
so	O	O
you	O	O
must	O	O
cast	O	O
the	O	O
result	O	O
of	O	O
pop()	B-Code_Block	B-Function
to	O	O
Integer	B-Code_Block	B-Data_Type
:	O	O

An	O	O
alternative	O	O
would	O	O
be	O	O
to	O	O
change	O	O
the	O	O
type	O	O
of	O	O
stack	O	B-Class
:	O	O

You	O	O
ca	O	O
n't	O	O
use	O	O
array	O	B-Data_Structure
syntax	O	O
(array	B-Code_Block	B-Code_Block
[	I-Code_Block	I-Code_Block
index	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
)	O	O
for	O	O
stacks	O	B-Class
,	O	O
you	O	O
have	O	O
to	O	O
use	O	O
push()	B-Code_Block	B-Function
,	O	O
pop()	B-Code_Block	B-Function
,	O	O
and	O	O
peek()	B-Code_Block	B-Function

Stacks	O	B-Class
work	O	O
on	O	O
a	O	O
first-in	O	O
,	O	O
last-out	O	O
basis	O	O
.	O	O

So	O	O
,	O	O
the	O	O
only	O	O
element	O	O
in	O	O
the	O	O
stack	O	B-Class
that	O	O
is	O	O
accessible	O	O
is	O	O
the	O	O
top	O	O
one	O	O
.	O	O

When	O	O
you	O	O
use	O	O
pop()	B-Code_Block	B-Function
,	O	O
you	O	O
remove	O	O
the	O	O
top	O	O
item	O	O
so	O	O
that	O	O
the	O	O
next	O	O
can	O	O
be	O	O
accessed	O	O
.	O	O

push()	B-Code_Block	B-Function
is	O	O
used	O	O
to	O	O
put	O	O
a	O	O
value	O	O
on	O	O
the	O	O
top	O	O
and	O	O
peek()	B-Code_Block	B-Function
is	O	O
used	O	O
to	O	O
check	O	O
the	O	O
top	O	O
item	O	O
without	O	O
popping	O	O
it	O	O
.	O	O

If	O	O
I	O	O
have	O	O
the	O	O
following	O	O
stack	O	B-Class

Using	O	O
pop()	B-Code_Block	B-Function
,	O	O
will	O	O
return	O	O
"	O	B-Value
Sam	O	I-Value
"	O	I-Value
and	O	O
remove	O	O
it	O	O
from	O	O
the	O	O
stack	O	B-Data_Structure
,	O	O
so	O	O
it	O	O
will	O	O
look	O	O
like	O	O
this	O	O
.	O	O

Pushing	O	O
"	O	B-Value
Charlie	O	I-Value
"	O	I-Value
will	O	O
make	O	O
the	O	O
stack	O	O
look	O	O
this	O	O
this	O	O
.	O	O

I	O	O
would	O	O
have	O	O
to	O	O
pop	O	B-Function
twice	O	O
in	O	O
order	O	O
to	O	O
access	O	O
"	O	B-Value
Adam	O	I-Value
"	O	I-Value

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
a	O	O
sqlite3	O	B-Library
in	O	O
Intel-PIN	O	B-Application
but	O	O
I	O	O
failed	O	O
.	O	O

So	O	O
I	O	O
searched	O	O
a	O	O
lot	O	O
and	O	O
found	O	O
a	O	O
way	O	O
to	O	O
use	O	O
a	O	O
PinCRT	O	B-Application
to	O	O
create	O	O
a	O	O
socket	O	O
and	O	O
send	O	O
a	O	O
data	O	O
to	O	O
other	O	O
process	O	O
.	O	O

But	O	O
in	O	O
my	O	O
case	O	O
,	O	O
I	O	O
seems	O	O
does	O	O
n't	O	O
work	O	O
as	O	O
well	O	O
I	O	O
guess	O	O
.	O	O

I	O	O
have	O	O
these	O	O
codes	O	O
and	O	O
a	O	O
server	O	B-Application
cannot	O	O
get	O	O
the	O	O
data	O	O
from	O	O
the	O	O
Pin	O	B-Application
process	O	O
.	O	O

Server	O	B-Application
code	O	O
:	O	O

Pin	O	B-Application
code	O	O
:	O	O

I	O	O
guess	O	O
there	O	O
's	O	O
an	O	O
error	O	O
while	O	O
using	O	O
PinCRT	O	B-Application
APIs	O	I-Application
but	O	O
I	O	O
cannot	O	O
find	O	O
a	O	O
way	O	O
how	O	O
to	O	O
check	O	O
a	O	O
_OS_RETURN_CODE	O	B-Class
.	O	O

_OS_RETURN_CODE	O	B-Class
does	O	O
n't	O	O
have	O	O
a	O	O
==	O	B-Code_Block
or	O	O
!=	O	B-Code_Block
operators	O	O
and	O	O
I	O	O
tried	O	O
to	O	O
cast	O	O
a	O	O
_OS_RETURN_CODE	O	B-Class
type	O	O
to	O	O
int	O	B-Data_Type
but	O	O
failed	O	O
again	O	O
.	O	O

I	O	O
cannot	O	O
find	O	O
the	O	O
problem	O	O
.	O	O

Please	O	O
somebody	O	O
help	O	O
me	O	O
.	O	O

I	O	O
need	O	O
to	O	O
handle	O	O
tens	O	O
of	O	O
Gigabytes	O	O
data	O	O
in	O	O
one	O	O
binary	O	B-File_Type
file	O	O
.	O	O

Each	O	O
record	O	O
in	O	O
the	O	O
data	O	O
file	O	O
is	O	O
variable	O	O
length	O	O
.	O	O

So	O	O
the	O	O
file	O	O
is	O	O
like	O	O
:	O	O

The	O	O
data	O	O
contains	O	O
integer	O	B-Data_Type
,	O	O
pointer	O	B-Data_Type
,	O	O
double	O	B-Data_Type
value	O	O
and	O	O
so	O	O
on	O	O
.	O	O

I	O	O
found	O	O
python	O	B-Language
can	O	O
not	O	O
even	O	O
handle	O	O
this	O	O
situation	O	O
.	O	O

There	O	O
is	O	O
no	O	O
problem	O	O
if	O	O
I	O	O
read	O	O
the	O	O
whole	O	O
file	O	O
in	O	O
memory	O	O
.	O	O

It	O	O
's	O	O
fast	O	O
.	O	O

But	O	O
it	O	O
seems	O	O
the	O	O
struct	B-Code_Block	B-Library
package	O	O
is	O	O
not	O	O
good	O	O
at	O	O
performance	O	O
.	O	O

It	O	O
almost	O	O
stuck	O	O
on	O	O
unpack	O	O
the	O	O
bytes	O	O
.	O	O

Any	O	O
help	O	O
is	O	O
appreciated	O	O
.	O	O

Thanks	O	O
.	O	O

struct	B-Code_Block	B-Library
and	O	O
array	B-Code_Block	B-Library
,	O	O
which	O	O
other	O	O
answers	O	O
recommend	O	O
,	O	O
are	O	O
fine	O	O
for	O	O
the	O	O
details	O	O
of	O	O
the	O	O
implementation	O	O
,	O	O
and	O	O
might	O	O
be	O	O
all	O	O
you	O	O
need	O	O
if	O	O
your	O	O
needs	O	O
are	O	O
always	O	O
to	O	O
sequentially	O	O
read	O	O
all	O	O
of	O	O
the	O	O
file	O	O
or	O	O
a	O	O
prefix	O	O
of	O	O
it	O	O
.	O	O

Other	O	O
options	O	O
include	O	O
buffer	O	B-Library
,	O	O
mmap	O	B-Library
,	O	O
even	O	O
ctypes	O	B-Library
,	O	O
depending	O	O
on	O	O
many	O	O
details	O	O
you	O	O
do	O	O
n't	O	O
mention	O	O
regarding	O	O
your	O	O
exact	O	O
needs	O	O
.	O	O

Maybe	O	O
a	O	O
little	O	O
specialized	O	O
Cython-coded	O	B-Language
helper	O	O
can	O	O
offer	O	O
all	O	O
the	O	O
extra	O	O
performance	O	O
you	O	O
need	O	O
,	O	O
if	O	O
no	O	O
suitable	O	O
and	O	O
accessible	O	O
library	O	O
(	O	O
in	O	O
C	O	B-Language
,	O	O
C++	O	B-Language
,	O	O
Fortran	O	B-Language
,	O	O
..	O	O
.	O	O
)	O	O
already	O	O
exists	O	O
that	O	O
can	O	O
be	O	O
interfaced	O	O
for	O	O
the	O	O
purpose	O	O
of	O	O
handling	O	O
this	O	O
humongous	O	O
file	O	O
as	O	O
you	O	O
need	O	O
to	O	O
.	O	O

But	O	O
clearly	O	O
there	O	O
are	O	O
peculiar	O	O
issues	O	O
here	O	O
-	O	O
-	O	O
how	O	O
can	O	O
a	O	O
data	O	O
file	O	O
contain	O	O
pointers	O	B-Data_Type
,	O	O
for	O	O
example	O	O
,	O	O
which	O	O
are	O	O
intrinsically	O	O
a	O	O
concept	O	O
related	O	O
to	O	O
addressing	O	O
memory	O	O
?	O	O

Are	O	O
they	O	O
maybe	O	O
"	O	O
offsets	O	O
"	O	O
instead	O	O
,	O	O
and	O	O
,	O	O
if	O	O
so	O	O
,	O	O
how	O	O
exactly	O	O
are	O	O
they	O	O
based	O	O
and	O	O
coded	O	O
?	O	O

Are	O	O
your	O	O
needs	O	O
at	O	O
all	O	O
more	O	O
advanced	O	O
than	O	O
simply	O	O
sequential	O	O
reading	O	O
(	O	O
e.g	O	O
.	O	O
,	O	O
random	O	O
access	O	O
)	O	O
,	O	O
and	O	O
if	O	O
so	O	O
,	O	O
can	O	O
you	O	O
do	O	O
a	O	O
first	O	O
"	O	O
indexing	O	O
"	O	O
pass	O	O
to	O	O
get	O	O
all	O	O
the	O	O
offsets	O	O
from	O	O
start	O	O
of	O	O
file	O	O
to	O	O
start	O	O
of	O	O
record	O	O
into	O	O
a	O	O
more	O	O
usable	O	O
,	O	O
compact	O	O
,	O	O
handily-formatted	O	O
auxiliary	O	B-File_Type
file	O	O
?	O	O

(	O	O
That	O	O
binary	O	B-File_Type
file	O	O
of	O	O
offsets	O	O
would	O	O
be	O	O
a	O	O
natural	O	O
for	O	O
array	B-Code_Block	B-Library
-	O	O
-	O	O
unless	O	O
the	O	O
offsets	O	O
need	O	O
to	O	O
be	O	O
longer	O	O
than	O	O
array	B-Code_Block	B-Library
supports	O	O
on	O	O
your	O	O
machine	O	O
!	O	O
)	O	O
.	O	O

What	O	O
is	O	O
the	O	O
distribution	O	O
of	O	O
record	O	O
lengths	O	O
and	O	O
compositions	O	O
and	O	O
number	O	O
of	O	O
records	O	O
to	O	O
make	O	O
up	O	O
the	O	O
"	O	O
tens	O	O
of	O	O
gigabytes	O	O
"	O	O
?	O	O

Etc	O	O
,	O	O
etc	O	O
.	O	O

You	O	O
have	O	O
a	O	O
very	O	O
large	O	O
scale	O	O
problem	O	O
(	O	O
and	O	O
no	O	O
doubt	O	O
very	O	O
large	O	O
scale	O	O
hardware	O	O
to	O	O
support	O	O
it	O	O
,	O	O
since	O	O
you	O	O
mention	O	O
that	O	O
you	O	O
can	O	O
easily	O	O
read	O	O
all	O	O
of	O	O
the	O	O
file	O	O
into	O	O
memory	O	O
that	O	O
means	O	O
a	O	O
64bit	O	O
box	O	O
with	O	O
many	O	O
tens	O	O
of	O	O
GB	O	O
of	O	O
RAM	O	B-Device
-	O	O
-	O	O
wow	O	O
!	O	O

)	O	O
,	O	O
so	O	O
it	O	O
's	O	O
well	O	O
worth	O	O
the	O	O
detailed	O	O
care	O	O
to	O	O
optimize	O	O
the	O	O
handling	O	O
thereof	O	O
-	O	O
-	O	O
but	O	O
we	O	O
ca	O	O
n't	O	O
help	O	O
much	O	O
with	O	O
such	O	O
detailed	O	O
care	O	O
unless	O	O
we	O	O
know	O	O
enough	O	O
detail	O	O
to	O	O
do	O	O
so	O	O
!	O	O
-	O	O
)	O	O
.	O	O

What	O	O
if	O	O
you	O	O
use	O	O
dump	O	O
the	O	O
data	O	O
file	O	O
into	O	O
sqlite3	O	B-Library
in	O	O
memory	O	O
.	O	O

You	O	O
can	O	O
then	O	O
use	O	O
sql	O	B-Language
to	O	O
process	O	O
the	O	O
data	O	O
.	O	O

Besides	O	O
,	O	O
you	O	O
might	O	O
want	O	O
to	O	O
look	O	O
at	O	O
generators	O	O
(	O	O
or	O	O
here	O	O
)	O	O
and	O	O
iterators	O	O
(	O	O
or	O	O
here	O	O
and	O	O
here	O	O
)	O	O
.	O	O

What	O	O
command	O	O
could	O	O
I	O	O
write	O	O
in	O	O
one	O	O
line	O	O
that	O	O
would	O	O
turn	O	O
this	O	O
text	O	O
:	O	O

into	O	O
this	O	O
:	O	O

let	O	O
your	O	O
source	O	O
file	O	O
be	O	O
input.txt	O	B-File_Name

we	O	O
can	O	O
use	O	O
below	O	O
code	O	O
to	O	O
add	O	O
a	O	O
tab	O	O
at	O	O
starting	O	O
of	O	O
each	O	O
line	O	O
which	O	O
contain	O	O
the	O	O
string	O	B-Data_Type
berry	O	B-Value

optionally	O	O
,	O	O
use	O	O
-i	O	B-Code_Block
option	O	O
to	O	O
change	O	O
the	O	O
source	O	O
file	O	O
itself	O	O
,	O	O

Then	O	O
to	O	O
add	O	O
heading	O	O
berries	O	B-Value
:	O	O
we	O	O
can	O	O
use	O	O
below	O	O
,	O	O

Note	O	O
:	O	O
assuming	O	O
the	O	O
input	O	O
file	O	O
is	O	O
sorted	O	O
so	O	O
all	O	O
berries	O	B-Value
are	O	O
in	O	O
adjacent	O	O
lines	O	O
.	O	O

At	O	O
a	O	O
simplistic	O	O
level	O	O
,	O	O
this	O	O
does	O	O
more	O	O
or	O	O
less	O	O
what	O	O
you	O	O
ask	O	O
:	O	O

Sample	O	O
Output	O	O

That	O	O
says.	O	O
.	O	O
find	O	O
all	O	O
the	O	O
lines	O	O
NOT	O	O
containing	O	O
"	O	B-Value
berry	O	I-Value
"	O	I-Value
in	O	O
original.txt	B-Code_Block	B-File_Name
because	O	O
grep	B-Code_Block	B-Code_Block
-v	I-Code_Block	I-Code_Block
is	O	O
a	O	O
negative	O	O
search	O	O
.	O	O

Then	O	O
it	O	O
prints	O	O
the	O	O
title	O	O
"	O	B-Value
berries	O	I-Value
"	O	I-Value
.	O	O

Then	O	O
it	O	O
starts	O	O
a	O	O
new	O	O
sed	B-Code_Block	B-Code_Block
with	O	O
-n	B-Code_Block	B-Code_Block
so	O	O
that	O	O
,	O	O
by	O	O
default	O	O
,	O	O
it	O	O
prints	O	O
nothing	O	O
.	O	O

On	O	O
lines	O	O
matching	O	O
"	O	B-Value
berry	O	I-Value
"	O	I-Value
,	O	O
it	O	O
replaces	O	O
the	O	O
start	O	O
of	O	O
line	O	O
with	O	O
3	O	O
spaces	O	O
and	O	O
then	O	O
prints	O	O
the	O	O
line	O	O
with	O	O
p	B-Code_Block	B-Code_Block
.	O	O

It	O	O
will	O	O
find	O	O
"	O	B-Value
loganberry	O	I-Value
"	O	I-Value
,	O	O
but	O	O
it	O	O
wo	O	O
n't	O	O
work	O	O
as	O	O
expected	O	O
if	O	O
"	O	B-Value
strawberries	O	I-Value
"	O	I-Value
appears	O	O
in	O	O
the	O	O
original	O	O
.	O	O

It	O	O
will	O	O
also	O	O
print	O	O
the	O	O
"	O	B-Value
berries	O	I-Value
:	O	I-Value
"	O	I-Value
title	O	O
even	O	O
if	O	O
there	O	O
are	O	O
no	O	O
berries	O	B-Value
in	O	O
the	O	O
file	O	O
..	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
use	O	O
the	O	O
Slider	O	B-Library
in	O	O
my	O	O
project	O	O
.	O	O

When	O	O
I	O	O
tried	O	O
to	O	O
drag	O	O
it	O	O
using	O	O
Chrome	O	B-Application
developer	O	I-Application
environment	O	O
with	O	O
device	O	O
emulation	O	O
turned	O	O
on	O	O
the	O	O
tool-tips	O	O
showing	O	O
the	O	O
current	O	O
value	O	O
are	O	O
visible	O	O
,	O	O
but	O	O
I	O	O
cannot	O	O
drag	O	O
it	O	O
.	O	O

When	O	O
I	O	O
tried	O	O
the	O	O
very	O	O
same	O	O
project	O	O
on	O	O
my	O	O
IPhone	O	B-Device
,	O	O
I	O	O
can	O	O
drag	O	O
it	O	O
perfectly	O	O
but	O	O
the	O	O
tool-tips	O	B-User_Interface_Element
do	O	O
n't	O	O
show	O	O
up	O	O
,	O	O
so	O	O
I	O	O
ca	O	O
n't	O	O
see	O	O
the	O	O
value	O	O
.	O	O

Any	O	O
help	O	O
will	O	O
be	O	O
very	O	O
much	O	O
appreciated	O	O
.	O	O

I	O	O
found	O	O
out	O	O
that	O	O
using	O	O
the	O	O
attribute	O	O
does	O	O
the	O	O
trick	O	O
and	O	O
it	O	O
actually	O	O
works	O	O
on	O	O
touch	O	O
devices	O	O
like	O	O
my	O	O
IPhone	O	B-Device
6s	O	B-Version
.	O	O

This	O	O
is	O	O
remarable	O	O
because	O	O
tooltips	O	B-User_Interface_Element
do	O	O
n't	O	O
work	O	O
on	O	O
buttons	O	B-User_Interface_Element
using	O	O
gwtbootstrap3	O	B-Library
.	O	O

Actually	O	O
they	O	O
work	O	O
but	O	O
they	O	O
take	O	O
the	O	O
first	O	O
tip	O	O
to	O	O
show	O	O
up	O	O
.	O	O

So	O	O
you	O	O
need	O	O
to	O	O
tip	O	O
twice	O	O
on	O	O
a	O	O
button	O	B-User_Interface_Element
which	O	O
is	O	O
not	O	O
good	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
create	O	O
thread	O	O
library.For	O	O
this	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
implement	O	O
queue	O	B-Data_Structure
to	O	O
store	O	O
the	O	O
pending	O	O
threads	O	O
to	O	O
be	O	O
executed	O	O
.	O	O

The	O	O
reason	O	O
I	O	O
mentioned	O	O
the	O	O
queue	O	B-Data_Structure
because	O	O
i	O	O
tried	O	O
experimenting	O	O
by	O	O
removing	O	O
below	O	O
code	O	O
from	O	O
'	O	O
MyThreadYield	O	B-Function
'	O	O
function	O	O
and	O	O
it	O	O
workes	O	O
fine	O	O
but	O	O
doesnt	O	O
do	O	O
the	O	O
intended	O	O
functionality	O	O
.	O	O

getcontext(&(save.context))	O	B-Function
;	O	I-Function

addToQueue(save)	O	B-Function
;	O	I-Function

For	O	O
one	O	O
,	O	O
your	O	O
queue	O	B-Data_Structure
implementation	O	O
is	O	O
not	O	O
thread-safe	O	O
at	O	O
this	O	O
point	O	O
.	O	O

Your	O	O
question	O	O
strongly	O	O
suggests	O	O
that	O	O
this	O	O
code	O	O
will	O	O
be	O	O
used	O	O
in	O	O
a	O	O
multi-threaded	O	O
environment	O	O
.	O	O

Having	O	O
a	O	O
non	O	O
thread-safe	O	O
queue	O	B-Data_Structure
will	O	O
give	O	O
you	O	O
wrong	O	O
results	O	O
,	O	O
and	O	O
weird	O	O
things	O	O
can	O	O
happen	O	O
(	O	O
like	O	O
removeFromQueue()	B-Code_Block	B-Function
returning	O	O
the	O	O
same	O	O
thing	O	O
to	O	O
two	O	O
different	O	O
threads	O	O
,	O	O
or	O	O
addToQueue()	B-Code_Block	B-Function
inserting	O	O
two	O	O
items	O	O
in	O	O
the	O	O
same	O	O
position	O	O
)	O	O
.	O	O

Aside	O	O
from	O	O
that	O	O
,	O	O
your	O	O
queue	O	B-Data_Structure
implementation	O	O
would	O	O
never	O	O
work	O	O
.	O	O

You	O	O
are	O	O
not	O	O
using	O	O
front	B-Code_Block	B-Variable
and	O	O
rear	B-Code_Block	B-Variable
correctly	O	O
.	O	O

Look	O	O
carefully	O	O
at	O	O
the	O	O
insert	O	O
function	O	O
:	O	O

You	O	O
check	O	O
if	O	O
rear	B-Code_Block	B-Variable
is	O	O
MAX	B-Code_Block	B-Variable
,	O	O
yet	O	O
,	O	O
you	O	O
write	O	O
into	O	O
queue[front]	B-Code_Block	B-Variable
and	O	O
increment	O	O
front	B-Code_Block	B-Variable
.	O	O

What	O	O
if	O	O
I	O	O
just	O	O
keep	O	O
adding	O	O
items	O	O
to	O	O
the	O	O
queue	O	O
,	O	O
eventually	O	O
reaching	O	O
the	O	O
buffer	O	O
's	O	O
limit	O	O
?	O	O

rear	B-Code_Block	B-Variable
will	O	O
always	O	O
be	O	O
0	O	B-Value
,	O	O
front	B-Code_Block	B-Variable
will	O	O
grow	O	O
indefinitely	O	O
,	O	O
and	O	O
your	O	O
function	O	O
will	O	O
write	O	O
beyond	O	O
the	O	O
limits	O	O
of	O	O
queue	B-Code_Block	B-Data_Structure
.	O	O

That	O	O
's	O	O
probably	O	O
the	O	O
cause	O	O
of	O	O
your	O	O
segmentation	O	B-Error_Name
fault	O	I-Error_Name
errors	O	O
.	O	O

I	O	O
think	O	O
you	O	O
wanted	O	O
to	O	O
check	O	O
for	O	O
front	B-Code_Block	B-Variable
instead	O	O
:	O	O

The	O	O
code	O	O
for	O	O
removeFromQueue()	B-Code_Block	B-Function
looks	O	O
superficially	O	O
ok	O	O
,	O	O
as	O	O
long	O	O
as	O	O
queue	B-Code_Block	B-Data_Structure
is	O	O
a	O	O
global	O	B-Data_Type
array	O	B-Data_Structure
(	O	O
since	O	O
you	O	O
're	O	O
returning	O	O
a	O	O
pointer	O	B-Data_Type
,	O	O
and	O	O
ca	O	O
n't	O	O
return	O	O
pointers	O	B-Data_Type
to	O	O
local	O	O
variables	O	O
)	O	O
.	O	O

However	O	O
,	O	O
the	O	O
single	O	O
,	O	O
most	O	O
important	O	O
fact	O	O
you	O	O
have	O	O
to	O	O
take	O	O
out	O	O
of	O	O
this	O	O
answer	O	O
,	O	O
is	O	O
that	O	O
your	O	O
queue	O	B-Data_Structure
implementation	O	O
will	O	O
not	O	O
scale	O	O
in	O	O
the	O	O
long-term	O	O
.	O	O

An	O	O
array-based	O	O
queue	O	B-Data_Structure
is	O	O
a	O	O
terrible	O	O
choice	O	O
.	O	O

What	O	O
do	O	O
you	O	O
do	O	O
when	O	O
you	O	O
run	O	O
out	O	O
of	O	O
space	O	O
in	O	O
the	O	O
array	O	B-Data_Structure
?	O	O

What	O	O
if	O	O
I	O	O
insert	O	O
MAX	B-Code_Block	B-Variable
elements	O	O
,	O	O
then	O	O
remove	O	O
2	O	B-Value
or	O	O
3	O	B-Value
,	O	O
and	O	O
try	O	O
to	O	O
insert	O	O
more	O	O
?	O	O

Your	O	O
code	O	O
will	O	O
say	O	O
the	O	O
queue	O	B-Data_Structure
is	O	O
full	O	O
,	O	O
because	O	O
it	O	O
only	O	O
ever	O	O
allows	O	O
you	O	O
to	O	O
insert	O	O
MAX	B-Code_Block	B-Variable
elements	O	O
in	O	O
total	O	O
.	O	O

You	O	O
could	O	O
shift	O	O
every	O	O
element	O	O
in	O	O
the	O	O
queue	O	B-Data_Structure
to	O	O
the	O	O
left	O	O
when	O	O
an	O	O
element	O	O
is	O	O
removed	O	O
,	O	O
but	O	O
that	O	O
's	O	O
crazy	O	O
,	O	O
and	O	O
extremely	O	O
inefficient	O	O
.	O	O

Or	O	O
you	O	O
could	O	O
increment	O	O
front	B-Code_Block	B-Variable
modulo	O	O
MAX	B-Code_Block	B-Variable
,	O	O
allowing	O	O
rear	B-Code_Block	B-Variable
to	O	O
be	O	O
ahead	O	O
of	O	O
front	B-Code_Block	B-Variable
,	O	O
as	O	O
long	O	O
as	O	O
you	O	O
know	O	O
that	O	O
no	O	O
more	O	O
than	O	O
MAX	B-Code_Block	B-Variable
elements	O	O
can	O	O
be	O	O
inserted	O	O
.	O	O

That	O	O
would	O	O
be	O	O
better	O	O
,	O	O
but	O	O
it	O	O
would	O	O
break	O	O
the	O	O
logic	O	O
in	O	O
removeFromQueue()	B-Code_Block	B-Function
,	O	O
since	O	O
the	O	O
pointers	O	B-Data_Type
returned	O	O
earlier	O	O
will	O	O
possibly	O	O
point	O	O
to	O	O
a	O	O
different	O	O
thread	O	O
struct	O	B-Data_Structure
as	O	O
you	O	O
manipulate	O	O
the	O	O
queue	O	B-Data_Structure
-	O	O
total	O	O
disaster	O	O
.	O	O

Definitely	O	O
not	O	O
what	O	O
you	O	O
want	O	O
.	O	O

A	O	O
much	O	O
,	O	O
much	O	O
better	O	O
approach	O	O
would	O	O
be	O	O
to	O	O
implement	O	O
this	O	O
with	O	O
a	O	O
linked	O	B-Data_Structure
list	O	I-Data_Structure
where	O	O
you	O	O
keep	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
the	O	O
head	O	O
and	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
the	O	O
tail	O	O
.	O	O

Have	O	O
a	O	O
look	O	O
at	O	O
http://en.wikipedia.org/wiki/Queue_(abstract_data_type)#Queue_implementation	O	O

I	O	O
tried	O	O
this	O	O
code	O	O
.	O	O

It	O	O
is	O	O
not	O	O
working	O	O
.	O	O

Try	O	O
:	O	O

I	O	O
destroyed	O	O
my	O	O
subversion	O	B-Application
tree	O	B-Data_Structure
,	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
what	O	O
could	O	O
have	O	O
caused	O	O
it	O	O
.	O	O

I	O	O
used	O	O
svn	B-Code_Block	B-Code_Block
ignore	I-Code_Block	I-Code_Block
on	O	O
some	O	O
files	O	O
a	O	O
while	O	O
ago	O	O
,	O	O
but	O	O
as	O	O
the	O	O
project	O	O
is	O	O
being	O	O
revisited	O	O
,	O	O
I	O	O
decided	O	O
to	O	O
retract	O	O
the	O	O
svn	B-Code_Block	B-Code_Block
ignore	I-Code_Block	I-Code_Block
by	O	O
using	O	O
svn	B-Code_Block	B-Code_Block
propdel	I-Code_Block	I-Code_Block
svn:ignore	I-Code_Block	I-Code_Block
-R	I-Code_Block	I-Code_Block
.	O	O

This	O	O
removes	O	O
all	O	O
ingnores	O	O
I	O	O
've	O	O
made	O	O
,	O	O
but	O	O
I	O	O
did	O	O
n't	O	O
think	O	O
that	O	O
would	O	O
be	O	O
a	O	O
problem	O	O
.	O	O

However	O	O
,	O	O
when	O	O
I	O	O
now	O	O
try	O	O
to	O	O
update	O	O
,	O	O
I	O	O
get	O	O
the	O	O
following	O	O
message	O	O
:	O	O

Conflict	B-Code_Block	B-Output_Block
for	I-Code_Block	I-Output_Block
property	I-Code_Block	I-Output_Block
'	I-Code_Block	I-Output_Block
svn:ignore	I-Code_Block	I-Output_Block
'	I-Code_Block	I-Output_Block
discovered	I-Code_Block	I-Output_Block
on	I-Code_Block	I-Output_Block
''	I-Code_Block	I-Output_Block
.	I-Code_Block	I-Output_Block

What	O	O
does	O	O
the	O	O
empty	O	O
single	O	O
quotes	O	O
mean	O	O
?	O	O

Also	O	O
,	O	O
subversion	O	B-Application
seems	O	O
to	O	O
have	O	O
trouble	O	O
finding	O	O
my	O	O
working	O	O
directory	O	O
,	O	O
as	O	O
I	O	O
'm	O	O
getting	O	O
!	B-Code_Block	B-Value
M	I-Code_Block	I-Value
.	I-Code_Block	O
at	O	O
the	O	O
top	O	O
of	O	O
the	O	O
output	O	O
when	O	O
I	O	O
run	O	O
svn	O	B-Application
up	O	O
.	O	O

Finally	O	O
,	O	O
what	O	O
does	O	O
n't	O	O
make	O	O
sense	O	O
to	O	O
me	O	O
is	O	O
how	O	O
does	O	O
svn	O	B-Application
accurately	O	O
display	O	O
what	O	O
files	O	O
I	O	O
've	O	O
modified	O	O
if	O	O
it	O	O
ca	O	O
n't	O	O
find	O	O
my	O	O
directory	O	O
?	O	O

(	O	O
Maybe	O	O
I	O	O
'm	O	O
misinterpreting	O	O
the	O	O
!	B-Code_Block	B-Value
M	I-Code_Block	I-Value
message	O	O
,	O	O
does	O	O
n't	O	O
that	O	O
mean	O	O
that	O	O
the	O	O
path	O	O
is	O	O
missing	O	O
?	O	O
)	O	O

I	O	O
've	O	O
trying	O	O
to	O	O
use	O	O
Eclipse	O	B-Class
JDT	O	I-Class
AST	O	I-Class
parsing	O	O
classes	O	O
.	O	O

After	O	O
including	O	O
the	O	O
initial	O	O
JAR	O	B-File_Type
,	O	O
and	O	O
sorting	O	O
out	O	O
a	O	O
couple	O	O
more	O	O
dependencies	O	O
,	O	O
it	O	O
is	O	O
with	O	O
7+	O	O
JARs	O	B-File_Type
and	O	O
I	O	O
still	O	O
having	O	O
NoClassDefFoundError	O	B-Error_Name
exceptions	O	B-Class
.	O	O

This	O	O
situation	O	O
arises	O	O
whenever	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
test	O	O
libraries	O	O
with	O	O
little	O	O
or	O	O
no	O	O
documentation	O	O
.	O	O

Trial	O	O
and	O	O
error	O	O
seems	O	O
a	O	O
very	O	O
dumb	O	O
(	O	O
and	O	O
annoying	O	O
)	O	O
approach	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
automatically	O	O
sort	O	O
this	O	O
out	O	O
using	O	O
Eclipse	O	B-Application
?	O	O

Update	O	O
:	O	O
Later	O	O
I	O	O
found	O	O
that	O	O
adding	O	O
all	O	O
the	O	O
JARs	O	B-File_Type
you	O	O
have	O	O
,	O	O
and	O	O
using	O	O
Ctrl-T	O	B-Keyboard_IP
(	O	O
to	O	O
view/locate	O	O
types	O	O
)	O	O
,	O	O
lets	O	O
you	O	O
manually	O	O
locate	O	O
the	O	O
JAR	O	B-File_Type
.	O	O

That	O	O
was	O	O
the	O	O
solution	O	O
that	O	O
Google	O	B-Website
provided	O	O
so	O	O
far	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
better	O	O
way	O	O
?	O	O

You	O	O
could	O	O
use	O	O
a	O	O
dependency	O	O
analyzer	O	O
like	O	O
:	O	O

JarAnalyzer	O	B-Application

This	O	O
will	O	O
parse	O	O
a	O	O
directory	O	O
full	O	O
of	O	O
Jars	O	B-File_Type
and	O	O
give	O	O
you	O	O
an	O	O
XML	O	B-Language
output	O	O
dependency	O	O
map	O	O
,	O	O
for	O	O
which	O	O
there	O	O
are	O	O
several	O	O
tools	O	O
for	O	O
displaying	O	O
in	O	O
either	O	O
graphical	O	O
or	O	O
text	O	O
form	O	O
.	O	O

If	O	O
you	O	O
refer	O	O
to	O	O
this	O	O
SO	O	B-Website
question	O	O
Finding	O	O
unused	O	O
jars	O	B-File_Type
used	O	O
in	O	O
an	O	O
eclipse	O	B-Application
project	O	O
,	O	O
you	O	O
also	O	O
have	O	O
:	O	O

ClassPathHelper	O	B-Application
,	O	O
which	O	O
can	O	O
quickly	O	O
focus	O	O
on	O	O
unresolved	O	O
classes	O	O
:	O	O

It	O	O
automatically	O	O
identifies	O	O
orphan	O	O
jars	O	B-File_Type
,	O	O
blocked	O	O
(	O	O
obscured	O	O
)	O	O
classes	O	O
,	O	O
and	O	O
much	O	O
more	O	O
.	O	O

The	O	O
only	O	O
limit	O	O
is	O	O
dependencies	O	O
that	O	O
are	O	O
not	O	O
defined	O	O
in	O	O
classes	O	O
,	O	O
e.g	O	O
.	O	O
in	O	O
dependency	O	O
injection	O	O
framework	O	O
configuration	O	O
files	O	O
.	O	O

I	O	O
got	O	O
a	O	O
problem	O	O
when	O	O
positioning	O	O
three	O	O
divs	O	B-HTML_XML_Tag
side	O	O
by	O	O
side	O	O
.	O	O

Those	O	O
three	O	O
divs	O	B-HTML_XML_Tag
contain	O	O
normal	O	O
text	O	O
but	O	O
also	O	O
have	O	O
a	O	O
link	O	O
at	O	O
the	O	O
bottom	O	O
.	O	O

To	O	O
get	O	O
this	O	O
responsive	O	O
,	O	O
the	O	O
items	O	O
are	O	O
inline-block	B-Code_Block	B-Code_Block
with	O	O
a	O	O
width	O	B-Variable
of	O	O
32%	O	B-Value
.	O	O

Now	O	O
the	O	O
problem	O	O
is	O	O
,	O	O
that	O	O
when	O	O
I	O	O
change	O	O
the	O	O
window	O	B-User_Interface_Element
size	O	O
,	O	O
the	O	O
height	O	O
of	O	O
the	O	O
items	O	O
are	O	O
different	O	O
.	O	O

I	O	O
want	O	O
the	O	O
links	O	O
at	O	O
the	O	O
bottom	O	O
of	O	O
the	O	O
items	O	O
to	O	O
be	O	O
at	O	O
the	O	O
same	O	O
position	O	O
,	O	O
like	O	O
this	O	O
:	O	O

But	O	O
actual	O	O
it	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

I	O	O
used	O	O
JavaScript	O	B-Language
to	O	O
set	O	O
those	O	O
items	O	O
to	O	O
the	O	O
same	O	O
height	O	O
,	O	O
but	O	O
how	O	O
can	O	O
I	O	O
get	O	O
theese	O	O
links	O	O
to	O	O
the	O	O
same	O	O
position	O	O
?	O	O

I	O	O
know	O	O
this	O	O
can	O	O
be	O	O
done	O	O
by	O	O
setting	O	O
the	O	O
item	O	O
to	O	O
position	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
relative	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
and	O	O
the	O	O
a	O	O
to	O	O
position	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
absolute	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
bottom	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
but	O	O
then	O	O
text-align	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
center	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
does	O	O
n't	O	O
work	O	O
anymore	O	O
.	O	O

I	O	O
made	O	O
a	O	O
JSFiddle	O	B-Application
for	O	O
you	O	O
to	O	O
understand	O	O
my	O	O
problem	O	O
.	O	O

Hope	O	O
you	O	O
can	O	O
help	O	O
me	O	O
.	O	O

Since	O	O
you	O	O
asked	O	O
for	O	O
a	O	O
solution	O	O
without	O	O
position	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
absolute	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
bottom	I-Code_Block	I-Code_Block
:	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
I	O	O
give	O	O
you	O	O
the	O	O
following	O	O
approach	O	O
.	O	O

What	O	O
you	O	O
can	O	O
do	O	O
is	O	O
that	O	O
you	O	O
wrap	O	O
up	O	O
your	O	O
content	O	O
containers	O	O
into	O	O
another	O	O
div-container	O	B-HTML_XML_Tag
and	O	O
insert	O	O
the	O	O
link	O	O
after	O	O
your	O	O
content	O	O
container	O	O
.	O	O

You	O	O
would	O	O
get	O	O
a	O	O
pseudo	O	O
structure	O	O
like	O	O
that	O	O
:	O	O

For	O	O
every	O	O
three	O	O
of	O	O
your	O	O
content	O	O
containers	O	O
.	O	O

Working	O	O
with	O	O
your	O	O
javascript	O	B-Language
resizeFunction	O	B-Function
the	O	O
links	O	O
are	O	O
on	O	O
the	O	O
same	O	O
height	O	O
all	O	O
the	O	O
time	O	O
.	O	O

Note	O	O
that	O	O
your	O	O
div.content-wrapper	B-Code_Block	B-Code_Block
is	O	O
display:inline-block	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block
now	O	O
,	O	O
but	O	O
your	O	O
div.content	B-Code_Block	B-Code_Block
are	O	O
not	O	O
.	O	O

Greetz	O	O

Flex	O	B-Class
can	O	O
do	O	O
this	O	O
very	O	O
easily	O	O
but	O	O
with	O	O
some	O	O
what	O	O
less	O	O
browser	O	B-Application
support	O	O
.	O	O

Another	O	O
way	O	O
is	O	O
using	O	O
display	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
table	I-Code_Block	I-Code_Block
,	O	O
which	O	O
have	O	O
very	O	O
good	O	O
support	O	O
(	O	O
down	O	O
to	O	O
IE8	O	B-Application
)	O	O
,	O	O
at	O	O
the	O	O
end	O	O
you	O	O
find	O	O
a	O	O
sample	O	O
using	O	O
that	O	O
.	O	O

One	O	O
more	O	O
way	O	O
,	O	O
thinking	O	O
in	O	O
the	O	O
terms	O	O
of	O	O
"	O	O
rows	O	B-User_Interface_Element
"	O	O
,	O	O
is	O	O
like	O	O
this	O	O
,	O	O
where	O	O
there	O	O
is	O	O
no	O	O
absolute	O	O
position	O	O
,	O	O
no	O	O
script	O	O
and	O	O
keep	O	O
your	O	O
links	O	O
at	O	O
the	O	O
bottom	O	O
,	O	O
all	O	O
centered	O	O
.	O	O

Update	O	O

As	O	O
requested	O	O
,	O	O
and	O	O
to	O	O
make	O	O
it	O	O
more	O	O
responsive	O	O
,	O	O
I	O	O
added	O	O
a	O	O
media	O	B-Class
query	O	I-Class
.	O	O

Run	O	O
the	O	O
snippet	O	B-Application
in	O	O
full	O	O
page	O	O
and	O	O
resize	O	O
the	O	O
browser	O	B-Application
to	O	O
see	O	O
it	O	O
in	O	O
action	O	O
.	O	O

To	O	O
be	O	O
noted	O	O
though	O	O
,	O	O
this	O	O
is	O	O
still	O	O
a	O	O
"	O	O
without	O	O
using	O	O
flex	O	B-Class
"	O	O
solution	O	O
.	O	O

Update	O	O
2	O	O

Added	O	O
a	O	O
display	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
table	I-Code_Block	I-Code_Block

The	O	O
table	O	B-User_Interface_Element
version	O	O

Somebody	O	O
knows	O	O
what	O	O
is	O	O
the	O	O
error	O	O
in	O	O
my	O	O
sintaxys	O	O
?	O	O

I	O	O
have	O	O
experience	O	O
with	O	O
SQL	O	B-Application
Server	O	I-Application
,	O	O
but	O	O
MySQL	O	B-Application
is	O	O
a	O	O
Headache	O	O
for	O	O
me	O	O
.	O	O

The	O	O
version	O	O
of	O	O
MySQL	O	B-Application
that	O	O
I	O	O
have	O	O
is	O	O
MySQL	O	B-Application
Database	O	I-Application
Version	O	O
5.0.51b	O	B-Version
.	O	O

Thanks	O	O
and	O	O
regards	O	O

Sorry	O	O
,	O	O
I	O	O
'm	O	O
really	O	O
sorry	O	O
for	O	O
my	O	O
mistake	O	O
,	O	O
I	O	O
made	O	O
the	O	O
change	O	O
Infinity	O	O
suggested	O	O
me	O	O
.	O	O

Error	O	O
SQL	O	B-Language
:	O	O

And	O	O
the	O	O
result	O	O
is	O	O
:	O	O

Thanks	O	O
Siride	O	B-User_Name
,	O	O
I	O	O
try	O	O
this	O	O
:	O	O

And	O	O
the	O	O
result	O	O
was	O	O
:	O	O

I	O	O
had	O	O
to	O	O
do	O	O
it	O	O
from	O	O
the	O	O
console	O	B-Application
,	O	O
and	O	O
the	O	O
final	O	O
script	O	O
is	O	O
:	O	O

You	O	O
seem	O	O
to	O	O
be	O	O
pretty	O	O
fine	O	O
with	O	O
MySQL	O	B-Application
,	O	O
you	O	O
just	O	O
try	O	O
to	O	O
find	O	O
the	O	O
TRIGGUER	B-Code_Block	B-Variable
keyboard	O	B-Device
with	O	O
TRIGGER	B-Code_Block	B-Variable
:-)	O	O

In	O	O
addition	O	O
to	O	O
the	O	O
TRIGGUER	B-Code_Block	B-Variable
problem	O	O
,	O	O
you	O	O
left	O	O
off	O	O
the	O	O
semi-colon	O	O
at	O	O
the	O	O
end	O	O
of	O	O
your	O	O
UPDATE	B-Code_Block	B-Code_Block
statement	O	O
inside	O	O
the	O	O
IF	B-Code_Block	B-Code_Block
.	O	O

This	O	O
has	O	O
been	O	O
bugging	O	O
me	O	O
,	O	O
I	O	O
'm	O	O
a	O	O
beginner	O	O
and	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
figure	O	O
this	O	O
out	O	O
.	O	O

Here	O	O
's	O	O
my	O	O
code	O	O
:	O	O

Basically	O	O
I	O	O
am	O	O
attempting	O	O
to	O	O
make	O	O
the	O	O
wordToDisplay	O	B-Variable
show	O	O
up	O	O
in	O	O
my	O	O
textView	O	B-Class
but	O	O
I	O	O
cannot	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
do	O	O
so	O	O
.	O	O

Also	O	O
,	O	O
sorry	O	O
for	O	O
asking	O	O
so	O	O
many	O	O
questions	O	O
,	O	O
i	O	O
'm	O	O
new	O	O
at	O	O
this	O	O
.	O	O

Thanks	O	O
!	O	O

To	O	O
make	O	O
your	O	O
test	O	O
appear	O	O
in	O	O
TextView	O	B-Class
you	O	O
have	O	O
to	O	O
set	O	O
it	O	O
with	O	O
setText();	B-Code_Block	B-Function
,	O	O
so	O	O
basically	O	O
you	O	O
have	O	O
to	O	O
assign	O	O
your	O	O
textview	O	B-Class
id	O	O
or	O	O
tag	O	O
(	O	O
add	O	O
android:id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
@+	I-Code_Block	I-Code_Block
id/mytextview	I-Code_Block	I-Code_Block
)	O	O
then	O	O
get	O	O
that	O	O
object	O	O
TextView	B-Code_Block	B-Code_Block
tv	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
(TextView)findViewById(R.id.mytextview)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
tv.setText("foo")	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
I	O	O
'd	O	O
also	O	O
recommend	O	O
going	O	O
through	O	O
some	O	O
tutorials	O	O
on	O	O
android	O	B-Operating_System
basics	O	O
-	O	O
will	O	O
help	O	O

For	O	O
efficiency	O	O
try	O	O
this	O	O
:	O	O

You	O	O
can	O	O
remove	O	O
the	O	O
rest	O	O
of	O	O
the	O	O
code	O	O
.	O	O

You	O	O
only	O	O
need	O	O
to	O	O
create	O	O
one	O	O
random	O	O
number	O	O
object	O	O
and	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
save	O	O
the	O	O
random	O	O
Integer	O	B-Data_Type
or	O	O
corresponding	O	O
String	O	B-Data_Type
in	O	O
local	O	O
variables	O	O
,	O	O
if	O	O
you	O	O
only	O	O
use	O	O
them	O	O
once	O	O
.	O	O

However	O	O
it	O	O
is	O	O
okay	O	O
to	O	O
save	O	O
them	O	O
in	O	O
local	O	O
variables	O	O
if	O	O
you	O	O
want	O	O
to	O	O
improve	O	O
readability	O	O
.	O	O

I	O	O
have	O	O
a	O	O
SOAP	O	O
web	O	O
service	O	O
running	O	O
on	O	O
windows	O	B-Operating_System
which	O	O
is	O	O
secured	O	O
with	O	O
NTLM	O	O
authentication	O	O
.	O	O

I	O	O
cannot	O	O
change	O	O
this	O	O
.	O	O

When	O	O
I	O	O
open	O	O
an	O	O
URL	O	O
to	O	O
the	O	O
web	O	O
service	O	O
I	O	O
get	O	O
a	O	O
password	O	O
dialog	O	B-User_Interface_Element
and	O	O
when	O	O
I	O	O
authenticate	O	O
then	O	O
I	O	O
can	O	O
see	O	O
the	O	O
WSDL	O	B-Language
,	O	O
so	O	O
I	O	O
know	O	O
it	O	O
is	O	O
working	O	O
.	O	O

Now	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
configure	O	O
Maven	O	B-Application
to	O	O
generate	O	O
Java	O	B-Language
classes	O	O
from	O	O
the	O	O
WSDL	O	B-Language
.	O	O

I	O	O
found	O	O
the	O	O
maven-jaxb2-plugin	B-Code_Block	B-Application
for	O	O
Maven	O	B-Application
and	O	O
it	O	O
should	O	O
be	O	O
suitable	O	O
for	O	O
this	O	O
task	O	O
.	O	O

My	O	O
problem	O	O
now	O	O
is	O	O
that	O	O
I	O	O
am	O	O
on	O	O
Linux	O	B-Operating_System
and	O	O
I	O	O
do	O	O
not	O	O
know	O	O
how	O	O
to	O	O
give	O	O
this	O	O
plugin	O	B-Application
or	O	O
maven	O	B-Application
the	O	O
necessary	O	O
credentials	O	O
to	O	O
connect	O	O
to	O	O
the	O	O
web	O	O
service	O	O
.	O	O

So	O	O
my	O	O
question	O	O
is	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
configure	O	O
the	O	O
above	O	O
plugin	O	O
such	O	O
that	O	O
I	O	O
can	O	O
pass	O	O
it	O	O
the	O	O
NTLM	O	O
credentials	O	O
?	O	O

Here	O	O
is	O	O
the	O	O
configuration	O	O
:	O	O

Update	O	O
:	O	O
when	O	O
I	O	O
run	O	O
the	O	O
goal	O	O
mvn	B-Code_Block	B-Code_Block
jaxb2:generate	I-Code_Block	I-Code_Block
on	O	O
windows	O	B-Operating_System
,	O	O
then	O	O
the	O	O
generation	O	O
works	O	O
automatically	O	O
without	O	O
password	O	O
.	O	O

But	O	O
this	O	O
is	O	O
not	O	O
really	O	O
a	O	O
solution	O	O
because	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
switch	O	O
to	O	O
windows	O	B-Operating_System
each	O	O
time	O	O
I	O	O
need	O	O
to	O	O
regenerate	O	O
from	O	O
the	O	O
wsdl	O	B-Language
.	O	O

while	O	O
reading	O	O
Route53	O	B-Application
i	O	O
got	O	O
to	O	O
know	O	O
about	O	O
reusable	O	O
delegation	O	O
sets.But	O	O
i	O	O
am	O	O
really	O	O
confused	O	O
about	O	O
this	O	O
topic	O	O
.	O	O

Is	O	O
it	O	O
a	O	O
good	O	O
practice	O	O
to	O	O
have	O	O
same	O	O
name	O	O
servers	O	B-Device
for	O	O
multiple	O	O
domains	O	O
.	O	O

And	O	O
can	O	O
anyone	O	O
explain	O	O
a	O	O
bit	O	O
more	O	O
about	O	O
reusable	O	O
delegation	O	O
sets	O	O
and	O	O
what	O	O
problems	O	O
it	O	O
gonna	O	O
solve	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O

I	O	O
'm	O	O
doing	O	O
a	O	O
project	O	O
using	O	O
Qt	O	B-Application
creator	O	I-Application
.	O	O

I	O	O
have	O	O
3	O	O
screen	O	B-User_Interface_Element
for	O	O
every	O	O
screen	O	B-User_Interface_Element
there	O	O
are	O	O
4	O	O
button	O	B-User_Interface_Element
.	O	O

when	O	O
clicked	O	O
on	O	O
the	O	O
first	O	O
button	O	B-User_Interface_Element
it	O	O
will	O	O
wirte	O	O
0	O	O
to	O	O
the	O	O
file	O	O
(	O	O
char	O	B-Data_Type
)	O	O
and	O	O
so	O	O
on	O	O
to	O	O
3	O	O
.	O	O

When	O	O
i	O	O
reach	O	O
the	O	O
last	O	O
screen	O	B-User_Interface_Element
(	O	O
4	O	O
.	O	O
screen	O	B-User_Interface_Element
)	O	O
where	O	O
i	O	O
will	O	O
read	O	B-Function
from	O	O
the	O	O
file	O	O
and	O	O
display	O	O
the	O	O
input	O	O
from	O	O
the	O	O
buttons	O	B-User_Interface_Element
it	O	O
doenst	O	O
show	O	O
the	O	O
3	O	O
chars	O	B-Data_Type
.	O	O

when	O	O
i	O	O
close	O	O
the	O	O
application	O	O
and	O	O
open	O	O
it	O	O
again	O	O
with	O	O
new	O	O
inputs	O	O
from	O	O
button	O	B-User_Interface_Element
it	O	O
shows	O	O
the	O	O
previous	O	O
input	O	O
in	O	O
the	O	O
last	O	O
screen	O	B-User_Interface_Element
.	O	O

Any	O	O
suggestion	O	O
or	O	O
help	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
.	O	O

There	O	O
are	O	O
multiple	O	O
issues	O	O
with	O	O
your	O	O
code	O	O
:	O	O

The	O	O
function	O	O
names	O	O
are	O	O
weird	O	O

You	O	O
are	O	O
not	O	O
checking	O	O
against	O	O
errors	O	O
after	O	O
the	O	O
write	O	B-Function
system	O	O
call	O	O
.	O	O

You	O	O
are	O	O
not	O	O
checking	O	O
against	O	O
errors	O	O
after	O	O
the	O	O
lseek	O	B-Function
system	O	O
call	O	O
.	O	O

You	O	O
are	O	O
not	O	O
checking	O	O
against	O	O
errors	O	O
after	O	O
the	O	O
close	O	B-Function
system	O	O
call	O	O
.	O	O

You	O	O
inconsistently	O	O
use	O	O
the	O	O
:	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
prefix	O	O
for	O	O
the	O	O
close	O	B-Function
system	O	O
call	O	O
,	O	O
but	O	O
not	O	O
the	O	O
rest	O	O
.	O	O

You	O	O
are	O	O
trying	O	O
to	O	O
close	O	B-Function
even	O	O
if	O	O
the	O	O
open	O	B-Function
was	O	O
unsuccessful	O	O
.	O	O

You	O	O
are	O	O
trying	O	O
to	O	O
write	O	B-Function
2	O	O
characters	O	B-Data_Type
to	O	O
the	O	O
file	O	O
,	O	O
but	O	O
then	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
read	O	B-Function
4	O	O
characters	O	B-Data_Type
back	O	O
.	O	O

You	O	O
have	O	O
a	O	O
left-over	O	O
syncfs	O	B-Function
behind	O	O
comment	O	O
.	O	O

You	O	O
hard-coded	O	O
the	O	O
home	O	O
path	O	O
instead	O	O
of	O	O
using	O	O
some	O	O
home	O	O
variable	O	O
.	O	O

You	O	O
are	O	O
trying	O	O
to	O	O
create	O	O
a	O	O
superfluous	O	O
temporary	O	O
variable	O	O
"	O	O
str	O	B-Variable
"	O	O
in	O	O
the	O	O
read	O	B-Function
.	O	O

You	O	O
are	O	O
trying	O	O
to	O	O
close	O	B-Function
after	O	O
the	O	O
return	O	O
there	O	O
.	O	O

Your	O	O
code	O	O
is	O	O
very	O	O
platform	O	O
specific	O	O
,	O	O
whereas	O	O
you	O	O
already	O	O
depend	O	O
on	O	O
Qt	O	B-Library
.	O	O

I	O	O
would	O	O
personally	O	O
throw	O	O
out	O	O
your	O	O
code	O	O
and	O	O
use	O	O
this	O	O
one	O	O
instead	O	O
:	O	O

main.cpp	O	B-File_Name

main.pro	O	B-File_Name

Build	O	O
and	O	O
Run	O	O

I	O	O
have	O	O
one	O	O
Player	O	O
Object	O	O
Array	O	B-Data_Structure
with	O	O
player	O	O
Name	O	B-Variable
and	O	O
player	O	O
Score	O	B-Variable
,	O	O
I	O	O
want	O	O
to	O	O
show	O	O
like	O	O
:	O	O

row+	O	O
1	O	O
.	O	O

Player1	O	O
____playerScore1	O	O

row+	O	O
1	O	O
.	O	O

Player2	O	O
____playerScore2	O	O

row+	O	O
1	O	O
.	O	O

Player3	O	O
____playerScore3	O	O

......	O	O
.	O	O

Thank	O	O
you	O	O
for	O	O
your	O	O
help	O	O
,	O	O

Harry	O	B-User_Name
.	O	O

Assuming	O	O
you	O	O
're	O	O
talking	O	O
about	O	O
a	O	O
UITable	O	B-Class
..	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
this	O	O
approach	O	O
in	O	O
a	O	O
current	O	O
project	O	O
.	O	O

Creating	O	O
a	O	O
grid	O	O
view	O	O
in	O	O
iOS	O	B-Operating_System

It	O	O
's	O	O
very	O	O
straightforward	O	O
,	O	O
assuming	O	O
you	O	O
know	O	O
your	O	O
way	O	O
around	O	O
table	O	O
controllers	O	O
.	O	O

The	O	O
code	O	O
on	O	O
the	O	O
blog	O	O
post	O	O
explains	O	O
how	O	O
it	O	O
's	O	O
put	O	O
together	O	O
.	O	O

For	O	O
each	O	O
row	O	B-User_Interface_Element
,	O	O
you	O	O
simply	O	O
setup	O	O
the	O	O
cells	O	B-User_Interface_Element
.	O	O

Checkout	O	O
UITableView	O	B-Class
:	O	O

http://www.littlecomputers.net/2009/?page_id=549	O	O

http://www.icodeblog.com/2008/08/08/iphone-programming-tutorial-populating-uitableview-with-an-nsarray/	O	O

And	O	O
also	O	O
customizing	O	O
the	O	O
table	O	B-Class
view	O	I-Class
cells	O	B-User_Interface_Element
:	O	O

http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html	O	O

Hope	O	O
those	O	O
helps	O	O

edit	O	O
:	O	O
I	O	O
pasted	O	O
the	O	O
wrong	O	O
link	O	O
in	O	O
my	O	O
initial	O	O
post	O	O
(	O	O
one	O	O
for	O	O
mono	O	B-Application
touch	O	I-Application
-	O	O
meant	O	O
to	O	O
include	O	O
on	O	O
for	O	O
UITableView	O	B-Class
over	O	O
array	O	B-Data_Structure
)	O	O

I	O	O
have	O	O
seen	O	O
too	O	O
much	O	O
C#	O	B-Language
and	O	O
C++	O	B-Language
code	O	O
where	O	O
the	O	O
variable	O	O
naming	O	O
convention	O	O
seems	O	O
to	O	O
ask	O	O
programmers	O	O
to	O	O
write	O	O
variable	O	O
names	O	O
using	O	O
underscore	O	O
before	O	O
the	O	O
text	O	O
of	O	O
the	O	O
variable	O	O
.	O	O

e.gr	O	O
.	O	O

What	O	O
's	O	O
the	O	O
rationale	O	O
supporting	O	O
that	O	O
convention	O	O
?	O	O

The	O	O
Microsoft	O	B-Website
Guidelines	O	O
for	O	O
member	O	O
naming	O	O
specifies	O	O
that	O	O
you	O	O
do	O	O
not	O	O
use	O	O
prefixes	O	O
for	O	O
fields	O	O
.	O	O

You	O	O
can	O	O
read	O	O
Microsoft	O	B-Website
's	O	O
guidelines	O	O
for	O	O
names	O	O
here	O	O
.	O	O

This	O	O
just	O	O
applies	O	O
to	O	O
C#	O	B-Language
,	O	O
of	O	O
course	O	O
.	O	O

In	O	O
C#	O	B-Language
I	O	O
usually	O	O
prefix	O	O
with	O	O
_	B-Code_Block	B-Value
private	O	O
fields	O	O
but	O	O
never	O	O
local	O	O
variables	O	O
.	O	O

The	O	O
rationale	O	O
behind	O	O
this	O	O
is	O	O
that	O	O
when	O	O
I	O	O
need	O	O
a	O	O
private	O	O
variable	O	O
I	O	O
type	O	O
_	B-Code_Block	B-Value
and	O	O
the	O	O
Intellisense	O	B-Application
filters	O	O
the	O	O
list	O	O
and	O	O
it	O	O
is	O	O
easier	O	O
to	O	O
find	O	O
.	O	O

This	O	O
way	O	O
I	O	O
am	O	O
also	O	O
able	O	O
to	O	O
distinguish	O	O
between	O	O
private	O	O
from	O	O
local	O	O
variables	O	O
and	O	O
I	O	O
no	O	O
longer	O	O
need	O	O
to	O	O
type	O	O
this.variablename	B-Code_Block	B-Variable
for	O	O
class	O	O
fields	O	O
but	O	O
simply	O	O
_variablename	B-Code_Block	B-Variable
.	O	O

I	O	O
want	O	O
to	O	O
show	O	O
a	O	O
note/label	O	B-User_Interface_Element
on	O	O
my	O	O
tableview	O	B-Class
background	O	B-User_Interface_Element
when/if	O	O
there	O	O
is	O	O
no	O	O
data	O	O
to	O	O
load	O	O
,	O	O
or	O	O
data	O	O
is	O	O
being	O	O
fetched	O	O
etc	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
see	O	O
what	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
here	O	O
.	O	O

Xcode	O	B-Application
is	O	O
showing	O	O
a	O	O
warning	O	O
"	O	B-Output_Block
Will	O	I-Output_Block
never	O	I-Output_Block
be	O	I-Output_Block
executed	O	I-Output_Block
"	O	I-Output_Block
on	O	O
this	O	O
line	O	O
of	O	O
code	O	O
:	O	O
if	B-Code_Block	B-Code_Block
mostUpTodateNewsItemsFromRealm	I-Code_Block	I-Code_Block
?	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
count	I-Code_Block	I-Code_Block
<	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
{	I-Code_Block	I-Code_Block

Here	O	O
is	O	O
the	O	O
method	O	O
.	O	O

Your	O	O
code	O	O
first	O	O
created	O	O
a	O	O
constant	O	O
:	O	O

And	O	O
then	O	O
you	O	O
check	O	O
whether	O	O
it	O	O
is	O	O
less	O	O
than	O	O
1	O	B-Value
:	O	O

Since	O	O
it	O	O
is	O	O
a	O	O
constant	O	O
,	O	O
it	O	O
will	O	O
never	O	O
change	O	O
.	O	O

This	O	O
means	O	O
that	O	O
the	O	O
if	O	O
clause	O	O
will	O	O
always	O	O
be	O	O
executed	O	O
.	O	O

Thus	O	O
,	O	O
the	O	O
else	B-Code_Block	B-Code_Block
clause	O	O
will	O	O
never	O	O
be	O	O
executed	O	O
.	O	O

So	O	O
first	O	O
you	O	O
need	O	O
to	O	O
make	O	O
this	O	O
constant	O	O
variable	O	O
:	O	O

Then	O	O
just	O	O
change	O	O
this	O	O
:	O	O

to	O	O
this	O	O
:	O	O

This	O	O
way	O	O
,	O	O
numberOFChannelSubscribedToIs	B-Code_Block	B-Variable
can	O	O
be	O	O
some	O	O
number	O	O
other	O	O
than	O	O
0	O	B-Value
.	O	O

And	O	O
the	O	O
else	O	O
clause	O	O
can	O	O
be	O	O
executed	O	O
.	O	O

var	B-Code_Block	B-Data_Type
and	O	O
let	B-Code_Block	B-Data_Type
are	O	O
very	O	O
different	O	O
!	O	O

Any	O	O
suggestion	O	O
please	O	O
.......	O	O
.	O	O

This	O	O
is	O	O
where	O	O
I	O	O
completely	O	O
stucked	O	O
.	O	O

I	O	O
have	O	O
no	O	O
code	O	O
to	O	O
show	O	O
what	O	O
I	O	O
have	O	O
tried	O	O
.	O	O

Cause	O	O
I	O	O
could	O	O
n't	O	O
think	O	O
of	O	O
a	O	O
way	O	O
to	O	O
figure	O	O
this	O	O
out	O	O
in	O	O
sql	O	B-Language
?	O	O

Somebody	O	O
suggested	O	O
me	O	O
to	O	O
use	O	O
pivot	O	B-Class
(	O	O
new	O	O
to	O	O
the	O	O
concept	O	O
...	O	O
couldn	O	O
'	O	O
t	O	O
figure	O	O
it	O	O
out	O	O
)	O	O
.	O	O

4	O	O
steps	O	O
of	O	O
Col5	O	B-Variable
makes	O	O
a	O	O
complete	O	O
cycle	O	O
.	O	O

I	O	O
have	O	O
multiple	O	O
steps	O	O
processed	O	O
and	O	O
need	O	O
the	O	O
timing	O	O
of	O	O
a	O	O
complete	O	O
cycle	O	O
.	O	O

1	O	O
step	O	O
of	O	O
a	O	O
cycle	O	O
may	O	O
begin	O	O
before	O	O
completion	O	O
of	O	O
other	O	O
.	O	O

Table	O	B-Variable
A	O	I-Variable

Expected	O	O
OutPut	O	O
Table	O	O
(	O	O
Result	O	O
)	O	O
:	O	O

To	O	O
me	O	O
,	O	O
it	O	O
looks	O	O
like	O	O
the	O	O
cycles	O	O
are	O	O
determined	O	O
by	O	O
combinations	O	O
of	O	O
four	O	O
"	O	O
steps	O	O
"	O	O
with	O	O
the	O	O
same	O	O
tag	O	O
in	O	O
col6	B-Code_Block	B-Variable
.	O	O

The	O	O
data	O	O
in	O	O
the	O	O
example	O	O
only	O	O
has	O	O
one	O	O
cycle	O	O
per	O	O
code	O	O
,	O	O
but	O	O
the	O	O
comments	O	O
suggest	O	O
there	O	O
might	O	O
be	O	O
more	O	O
than	O	O
one	O	O
.	O	O

How	O	O
can	O	O
we	O	O
identify	O	O
which	O	O
cycle	O	O
for	O	O
a	O	O
given	O	O
code	O	O
a	O	O
record	O	O
belongs	O	O
to	O	O
?	O	O

Well	O	O
,	O	O
one	O	O
way	O	O
is	O	O
to	O	O
assume	O	O
that	O	O
all	O	O
the	O	O
cycles	O	O
with	O	O
that	O	O
code	O	O
are	O	O
complete	O	O
and	O	O
just	O	O
enumerate	O	O
the	O	O
records	O	O
by	O	O
col6	B-Code_Block	B-Variable
,	I-Code_Block	O
col5	I-Code_Block	B-Variable
.	O	O

This	O	O
additional	O	O
cycle	O	O
sequence	O	O
number	O	O
is	O	O
then	O	O
used	O	O
for	O	O
aggregation	O	O
.	O	O

For	O	O
enumerating	O	O
the	O	O
sequences	O	O
,	O	O
I	O	O
further	O	O
assume	O	O
that	O	O
the	O	O
dates	O	O
are	O	O
increasing	O	O
over	O	O
time	O	O
.	O	O

Although	O	O
a	O	O
pivot	O	B-Class
can	O	O
be	O	O
used	O	O
in	O	O
this	O	O
case	O	O
,	O	O
I	O	O
think	O	O
the	O	O
aggregation	O	O
method	O	O
might	O	O
be	O	O
a	O	O
bit	O	O
clearer	O	O
:	O	O

The	O	O
Query	O	O
:	O	O

The	O	O
Output	O	O
:	O	O

You	O	O
can	O	O
choose	O	O
which	O	O
columns	O	B-Data_Structure
you	O	O
require	O	O
and	O	O
which	O	O
columns	O	B-Data_Structure
to	O	O
remove	O	O
in	O	O
your	O	O
final	O	O
select	O	O
.	O	O

(	O	O
regarding	O	O
col3	O	B-Variable
,	O	O
Col4	O	B-Variable
,	O	O
Col4	O	B-Variable
1)	O	I-Variable

****	O	O
Based	O	O
on	O	O
the	O	O
logic	O	O
explained	O	O
in	O	O
the	O	O
comments*******	O	O

/	O	O
*	O	O
Provided	O	O
sample	O	O
Data	O	O
*	O	O
/	O	O

/	O	O
*Query	O	O
assuming	O	O
each	O	O
Cycle	O	O
happens	O	O
in	O	O
the	O	O
same	O	O
minute	O	O
*	O	O
/	O	O

OUTPUT	O	O
:	O	O

Can	O	O
I	O	O
build	O	O
nested	O	O
conditions	O	O
using	O	O
the	O	O
SelectQuery	B-Code_Block	B-Class
object	O	O
?	O	O

I	O	O
want	O	O
to	O	O
get	O	O
:	O	O

If	O	O
you	O	O
inline	O	O
all	O	O
conditions	O	O
/	O	O
predicates.	O	O
.	O	O

.	O	O
.	O	O
then	O	O
you	O	O
can	O	O
supply	O	O
them	O	O
just	O	O
like	O	O
that	O	O
to	O	O
your	O	O
SelectQuery	B-Code_Block	B-Class
object	O	O
:	O	O

I	O	O
've	O	O
added	O	O
some	O	O
whitespace	O	O
for	O	O
improved	O	O
readability	O	O

If	O	O
you	O	O
want	O	O
to	O	O
perform	O	O
dynamic	O	O
query	O	O
building.	O	O
.	O	O

.	O	O
.	O	O
Then	O	O
you	O	O
can	O	O
create	O	O
your	O	O
predicate	O	O
in	O	O
various	O	O
steps	O	O
:	O	O

Both	O	O
approaches	O	O
are	O	O
completely	O	O
equivalent	O	O
.	O	O

I	O	O
'm	O	O
looking	O	O
at	O	O
the	O	O
documentation	O	O
now	O	O
and	O	O
it	O	O
looks	O	O
like	O	O
you	O	O
can	O	O
use	O	O
the	O	O
addConditions	O	B-Class
methods	O	O
with	O	O
an	O	O
OR	O	B-Code_Block
operator	O	O
to	O	O
accomplish	O	O
your	O	O
nested	O	O
query	O	O
.	O	O

There	O	O
are	O	O
4	O	O
different	O	O
overloaded	O	O
methods	O	O
with	O	O
addConditions	O	B-Function
but	O	O
the	O	O
last	O	O
two	O	O
allow	O	O
you	O	O
to	O	O
supply	O	O
an	O	O
operator	O	O
(	O	O
in	O	O
your	O	O
case	O	O
OR	O	B-Code_Block
)	O	O
and	O	O
one	O	O
of	O	O
those	O	O
allows	O	O
you	O	O
to	O	O
string	O	B-Data_Type
together	O	O
multiple	O	O
conditions	O	O
using	O	O
a	O	O
supplied	O	O
operator	O	O
.	O	O

So	O	O
all	O	O
you	O	O
need	O	O
to	O	O
do	O	O
is	O	O
break	O	O
apart	O	O
your	O	O
nested	O	O
statements	O	O
into	O	O
separate	O	O
conditions	O	O
and	O	O
then	O	O
link	O	O
them	O	O
together	O	O
with	O	O
your	O	O
addConditions	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
[Collection	I-Code_Block	I-Code_Block
of	I-Code_Block	I-Code_Block
Conditions	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
,	B-Code_Block	B-Code_Block
OR	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
statement	O	O
.	O	O

Here	O	O
i	O	O
am	O	O
using	O	O
function	O	O
to	O	O
print	O	O
the	O	O
values	O	O
to	O	O
div	O	B-HTML_XML_Tag
with	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
mylist	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
.i	O	O
am	O	O
using	O	O
the	O	O
loop	O	O
and	O	O
calling	O	O
the	O	O
printList()	B-Code_Block	B-Function
function	O	O
with	O	O
the	O	O
value	O	O
and	O	O
i	O	O
am	O	O
printing	O	O
the	O	O
value	O	O
in	O	O
printList()	B-Code_Block	B-Function
but	O	O
its	O	O
not	O	O
working.how	O	O
can	O	O
i	O	O
do	O	O
this	O	O
?	O	O

Javascript	O	B-Language
:	O	O

and	O	O
also	O	O
i	O	O
want	O	O
to	O	O
add	O	O
delay	O	O
for	O	O
printing	O	O
the	O	O
values	O	O
.	O	O

This	O	O
should	O	O
work	O	O
.	O	O

Basically	O	O
,	O	O
you	O	O
only	O	O
append	O	O
other	O	O
DOM	O	O
Node	O	O
(	O	O
as	O	O
child	O	O
)	O	O
to	O	O
DOM	O	O
Nodes	O	O
.	O	O

so	O	O
you	O	O
use	O	O
document.createTextNode()	B-Code_Block	B-Function
to	O	O
create	O	O
node	O	O
and	O	O
document.appendChild()	B-Code_Block	B-Function
to	O	O
add	O	O
it	O	O
as	O	O
a	O	O
child	O	O
to	O	O
existing	O	O
node	O	O
.	O	O

Problem	O	O
is	O	O
document.write	B-Code_Block	B-Function
returns	O	O
nothing	O	O
,	O	O
also	O	O
using	O	O
it	O	O
is	O	O
not	O	O
recommended	O	O
.	O	O

Secondly	O	O
dom	O	O
does	O	O
not	O	O
have	O	O
function	O	O
append	B-Code_Block	O
,	O	O
instead	O	O
it	O	O
is	O	O
appendChild	B-Code_Block	B-Function
.	O	O

Try	O	O
document.createTextNode	B-Code_Block	B-Function
and	O	O
appendChild	B-Code_Block	B-Function
:	O	O

You	O	O
may	O	O
also	O	O
try	O	O
innerHTML	B-Code_Block	B-Function
:	O	O

I	O	O
have	O	O
a	O	O
string	O	B-Data_Type
as	O	O
below	O	O
:	O	O

I	O	O
need	O	O
to	O	O
extract	O	O
the	O	O
episode	O	O
number	O	O
(	O	O
1	B-Code_Block	B-Value
5)	I-Code_Block	I-Value
from	O	O
it	O	O
using	O	O
ruby	O	B-Language
regex	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
it	O	O
?	O	O

Just	O	O
match	O	O
the	O	O
last	O	O
number	O	O
.	O	O

This	O	O
will	O	O
work	O	O
:	O	O

In	O	O
this	O	O
question	O	O
I	O	O
asked	O	O
,	O	O
how	O	O
I	O	O
can	O	O
generate	O	O
shades	O	O
of	O	O
one	O	O
color	O	O
responsive	O	O
to	O	O
the	O	O
number	O	O
of	O	O
div	O	B-HTML_XML_Tag
's	O	O
.	O	O

@DonJuwe	O	B-User_Name
came	O	O
up	O	O
with	O	O
a	O	O
perfectly	O	O
working	O	O
solution	O	O
and	O	O
demo	O	O
:	O	O
http://jsbin.com/xakifequ/1/edit	O	O

However	O	O
when	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
the	O	O
code	O	O
from	O	O
the	O	O
jsfiddle	O	B-Application
or	O	O
JSBin	O	B-Application
it	O	O
just	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

So	O	O
I	O	O
downloaded	O	O
the	O	O
source	O	O
code	O	O
from	O	O
JSBin	O	B-Application
,	O	O
opened	O	O
the	O	O
.html-file	O	B-File_Type
and	O	O
what	O	O
I	O	O
got	O	O
was	O	O
this	O	O
:	O	O

Can	O	O
someone	O	O
please	O	O
explain	O	O
me	O	O
,	O	O
why	O	O
this	O	O
happens	O	O
?	O	O

As	O	O
per	O	O
snapshot	O	O
,	O	O
You	O	O
are	O	O
using	O	O

Replace	O	O
it	O	O
with	O	O

You	O	O
are	O	O
using	O	O
protocol	O	O
less	O	O
Urls	O	O
,	O	O
i.e	O	O
.	O	O
//code.jquery.com/jquery	B-Code_Block	O
-1.9.1.js	I-Code_Block	O
,	O	O
When	O	O
you	O	O
open	O	O
a	O	O
your	O	O
html	O	B-File_Type
file	O	O
like	O	O
file://	B-Code_Block	O
then	O	O
jQuery	O	B-Library
is	O	O
not	O	O
loaded	O	O
thus	O	O
desired	O	O
result	O	O
is	O	O
not	O	O
achieved	O	O
.	O	O

However	O	O
,	O	O
if	O	O
you	O	O
test	O	O
your	O	O
html	O	B-File_Type
file	O	O
like	O	O
http://localhost/yourfile.html	B-Code_Block	O
you	O	O
will	O	O
get	O	O
the	O	O
desired	O	O
result	O	O
.	O	O

Note	O	O
:	O	O
Use	O	O
//	B-Code_Block	O
instead	O	O
of	O	O
http://	B-Code_Block	O
when	O	O
you	O	O
want	O	O
to	O	O
inherit	O	O
the	O	O
protocol	O	O
from	O	O
the	O	O
page	O	O

you	O	O
missed	O	O
http	B-Code_Block	B-Value
:	I-Code_Block	I-Value
in	O	O
the	O	O
jQuery	O	B-Library
source	O	O
link	O	O
.	O	O

if	O	O
you	O	O
using	O	O
online	B-Code_Block	O
resource	I-Code_Block	O
you	O	O
should	O	O
follow	O	O
the	O	O
url	B-Code_Block	O
's	I-Code_Block	O
protocol	I-Code_Block	O
.	O	O

Other	O	O
wise	O	O
browser	O	B-Application
will	O	O
search	O	O
it	O	O
from	O	O
local	O	O
.	O	O

in	O	O
this	O	O
way	O	O
you	O	O
just	O	O
confused	O	O
your	O	O
browser	O	B-Application
..	O	O
.	O	O

So	O	O
only	O	O
it	O	O
happens	O	O
..	O	O
.	O	O
:D	O	O

you	O	O
should	O	O
use	O	O
..	O	O
.	O	O

instead	O	O
of	O	O

I	O	O
have	O	O
a	O	O
VB.Net	O	B-Language
projects	O	O
which	O	O
calls	O	O
some	O	O
C#	O	B-Language
dll	O	B-File_Type
's	O	O
,	O	O
but	O	O
how	O	O
can	O	O
I	O	O
debug	O	O
the	O	O
C#	O	B-Language
code	O	O
?	O	O

It	O	O
must	O	O
be	O	O
possible	O	O
,	O	O
because	O	O
when	O	O
an	O	O
exception	O	B-Class
occurs	O	O
,	O	O
VB.Net	O	B-Language
opens	O	O
the	O	O
C#	O	B-Language
code	O	O
in	O	O
a	O	O
text-editor	O	B-Application
,	O	O
but	O	O
I	O	O
want	O	O
to	O	O
be	O	O
able	O	O
to	O	O
have	O	O
syntax-coloring	O	O
,	O	O
set	O	O
breakpoints	O	O
in	O	O
other	O	O
files	O	O
,	O	O
etc	O	O
.	O	O

I	O	O
feel	O	O
it	O	O
must	O	O
be	O	O
obvious	O	O
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
figure	O	O
it	O	O
out	O	O
.	O	O

Start	O	O
your	O	O
debugging	O	O
session	O	O
normally	O	O
.	O	O

Then	O	O
once	O	O
it	O	O
is	O	O
started	O	O
,	O	O
use	O	O
Visual	O	B-Application
Studio	O	I-Application
,	O	O
File/Open	O	O
menu	O	B-User_Interface_Element
to	O	O
open	O	O
the	O	O
correct	O	O
.cs	O	B-File_Type
file	O	O
.	O	O

If	O	O
you	O	O
have	O	O
a	O	O
corresponding	O	O
.pdb	O	B-File_Type
file	O	O
for	O	O
the	O	O
dll	O	B-File_Type
in	O	O
which	O	O
the	O	O
file	O	O
is	O	O
included	O	O
you	O	O
will	O	O
be	O	O
able	O	O
to	O	O
set	O	O
breakpoints	O	O
which	O	O
will	O	O
be	O	O
hit	O	O
in	O	O
your	O	O
debugging	O	O
session	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
the	O	O
pdb	O	B-File_Type
file	O	O
,	O	O
this	O	O
means	O	O
your	O	O
dll	O	B-File_Type
was	O	O
compiled	O	O
in	O	O
Release	O	O
configuration	O	O
rather	O	O
than	O	O
debug	O	O
configuration	O	O
.	O	O

During	O	O
this	O	O
session	O	O
you	O	O
may	O	O
need	O	O
to	O	O
open	O	O
other	O	O
.cs	O	B-File_Type
files	O	O
manually	O	O
as	O	O
you	O	O
step	O	O
into	O	O
statements	O	O
.	O	O

Open	O	O
the	O	O
needed	O	O
files	O	O
before	O	O
you	O	O
step	O	O
into	O	O
them	O	O
.	O	O

Prior	O	O
to	O	O
running	O	O
the	O	O
projects	O	O
(	O	O
F	O	B-Keyboard_IP
5)	O	I-Keyboard_IP
and	O	O
if	O	O
you	O	O
have	O	O
the	O	O
C#	O	B-Language
code	O	O
(	O	O
rather	O	O
than	O	O
just	O	O
the	O	O
PDB	O	B-File_Type
)	O	O
you	O	O
can	O	O
open	O	O
up	O	O
the	O	O
.cs	O	B-File_Type
file	O	O
using	O	O
File->Open	O	O
and	O	O
set	O	O
breakpoints	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
the	O	O
.cs	O	B-File_Type
then	O	O
can	O	O
use	O	O
something	O	O
like	O	O
reflector	O	O
to	O	O
generate	O	O
the	O	O
.cs	O	B-File_Type
files	O	O
for	O	O
you	O	O
.	O	O

It	O	O
should	O	O
also	O	O
be	O	O
possible	O	O
to	O	O
create	O	O
breakpoints	O	O
with	O	O
just	O	O
the	O	O
PDB	O	B-File_Type
but	O	O
I	O	O
've	O	O
only	O	O
had	O	O
success	O	O
with	O	O
that	O	O
if	O	O
I	O	O
've	O	O
already	O	O
interrupted	O	O
a	O	O
running	O	O
debug	O	O
session	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
the	O	O
static_assert	O	B-Function
:	O	O

but	O	O
I	O	O
get	O	O
an	O	O
error	O	O
on	O	O
compilation	O	O

I	O	O
do	O	O
have	O	O
an	O	O
expression	O	O
so	O	O
whats	O	O
the	O	O
problem	O	O
?	O	O

For	O	O
a	O	O
compiler	O	B-Application
without	O	O
constexpr	B-Code_Block	B-Code_Block
use	O	O
the	O	O
appropriate	O	O
C	O	B-Language
library	O	O
MAX	B-Code_Block	B-Variable
names	O	O
such	O	O
as	O	O
SIZE_MAX	B-Code_Block	B-Variable
from	O	O
<stdint.h>	B-Code_Block	B-Library
.	O	O

Alternatively	O	O
,	O	O
for	O	O
an	O	O
unsigned	O	O
type	O	O
such	O	O
as	O	O
size_t	B-Code_Block	B-Data_Type
you	O	O
can	O	O
just	O	O
use	O	O
size_t(-1)	B-Code_Block	B-Data_Type
.	O	O

See	O	O
(	O	O
http://en.cppreference.com/w/cpp/types/climits	O	O
)	O	O
for	O	O
a	O	O
list	O	O
.	O	O

Trying	O	O
out	O	O
the	O	O
Surveys	O	B-Library
API	O	I-Library
sample	O	O
Python	O	B-Language
script	O	O
,	O	O
the	O	O
"	O	O
List	O	B-Code_Block
Surveys	O	I-Code_Block
"	O	O
command	O	O
returns	O	O
only	O	O
a	O	O
request_id	O	B-Variable
and	O	O
not	O	O
a	O	O
"	O	O
resources	O	O
"	O	O
object	O	O
with	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
surveys	O	O
as	O	O
expected	O	O

Executing	O	O
the	O	O
sample	O	O
script	O	O

Results	O	O
of	O	O
"	O	B-Code_Block
list	O	I-Code_Block
"	O	I-Code_Block
command	O	O
to_json	O	B-Function
method	O	O
:	O	O

Response	O	O
from	O	O
executing	O	O
the	O	O
list	O	B-Code_Block
command	O	O
-	O	O
no	O	B-Output_Block
"	O	I-Output_Block
resources	O	I-Output_Block
"	O	I-Output_Block
object	O	I-Output_Block
as	O	I-Output_Block
advertised	O	I-Output_Block
.	O	O

I	O	O
have	O	O
some	O	O
150	O	O
surveys	O	O
in	O	O
my	O	O
account	O	O
.	O	O

This	O	O
command	O	O
works	O	O
fine	O	O
in	O	O
the	O	O
API	O	B-Application
explorer	O	I-Application
and	O	O
I	O	O
can	O	O
use	O	O
the	O	O
chain	O	O
of	O	O
next	O	O
page	O	O
tokens	O	O
to	O	O
go	O	O
through	O	O
the	O	O
list	O	B-Data_Structure
.	O	O

What	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
please	O	O
?	O	O

It	O	O
looks	O	O
like	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
list	O	B-Data_Structure
surveys	O	O
owned	O	O
by	O	O
your	O	O
account	O	O
using	O	O
a	O	O
service	O	O
account	O	O
.	O	O

In	O	O
order	O	O
to	O	O
do	O	O
this	O	O
you''ll	O	O
need	O	O
to	O	O
add	O	O
the	O	O
service	O	O
account	O	O
as	O	O
an	O	O
owner	O	O
to	O	O
the	O	O
resources	O	O
that	O	O
your	O	O
account	O	O
owns	O	O
.	O	O

There	O	O
is	O	O
some	O	O
more	O	O
information	O	O
on	O	O
this	O	O
process	O	O
found	O	O
here	O	O
:	O	O

How	O	O
can	O	O
I	O	O
allow	O	O
a	O	O
user	O	O
to	O	O
get	O	O
access	O	O
to	O	O
survey	O	O
results	O	O
using	O	O
the	O	O
Google	O	B-Library
Consumer	O	I-Library
Surveys	O	I-Library
API	O	I-Library
?	O	O

Alternatively	O	O
,	O	O
you	O	O
can	O	O
set	O	O
up	O	O
a	O	O
3	O	O
legged	O	O
OAuth	O	B-Library
client	O	B-Variable
secret	O	I-Variable
and	O	O
use	O	O
that	O	O
with	O	O
the	O	O
example	O	O
script	O	O
.	O	O

This	O	O
will	O	O
prompt	O	O
you	O	O
to	O	O
login	O	O
as	O	O
your	O	O
regular	O	O
non-service	O	O
account	O	O
and	O	O
use	O	O
those	O	O
credentials	O	O
.	O	O

See	O	O
https://developers.google.com/identity/protocols/OAuth2WebServer	O	O
to	O	O
set	O	O
this	O	O
up	O	O
.	O	O

Then	O	O
you	O	O
can	O	O
use	O	O
the	O	O
client	O	O
with	O	O
this	O	O
credential	O	O
.	O	O

./example_client.py	O	B-Code_Block
list	O	I-Code_Block
--client_secrets_file	O	I-Code_Block

Make	O	O
sure	O	O
to	O	O
configure	O	O
the	O	O
credentials	O	O
to	O	O
redirect	O	O
to	O	O
localhost:8080	O	B-Value
if	O	O
you	O	O
are	O	O
using	O	O
the	O	O
example	O	O
script	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
time	O	O
format	O	O
for	O	O
a	O	O
variable	O	O
that	O	O
is	O	O
a	O	O
factor	O	O

2004-03-01-22.58.00.912933	O	B-Value

I	O	O
am	O	O
using	O	O
R	O	B-Language
and	O	O
would	O	O
like	O	O
to	O	O
make	O	O
this	O	O
something	O	O
that	O	O
is	O	O
an	O	O
actual	O	O
time	O	O
format	O	O
.	O	O

Others	O	O
have	O	O
posted	O	O
similar	O	O
questions	O	O
but	O	O
no	O	O
one	O	O
has	O	O
dealt	O	O
with	O	O
this	O	O
time	O	O
format	O	O
specifically	O	O
.	O	O

Thank	O	O
you	O	O
.	O	O

If	O	O
your	O	O
factor	O	O
is	O	O
f1	B-Code_Block	B-Code_Block
:	O	O

If	O	O
the	O	O
fractions	O	O
do	O	O
n't	O	O
display	O	O
,	O	O
set	O	O
the	O	O
option	O	O
:	O	O

I	O	O
am	O	O
working	O	O
on	O	O
a	O	O
music	O	O
game	O	O
website	O	O
and	O	O
I	O	O
am	O	O
using	O	O
the	O	O
Spotify	O	B-Application
play	O	B-User_Interface_Element
button	O	I-User_Interface_Element
.	O	O

This	O	O
takes	O	O
spotify	O	B-Application
track	O	O
numbers/urls	O	O
and	O	O
I	O	O
am	O	O
looking	O	O
for	O	O
a	O	O
huge	O	O
list	O	B-Data_Structure
of	O	O
them	O	O
with	O	O
which	O	O
to	O	O
populate	O	O
my	O	O
database	O	O
.	O	O

Does	O	O
anyone	O	O
know	O	O
where	O	O
I	O	O
could	O	O
find	O	O
such	O	O
a	O	O
list	O	B-Data_Structure
?	O	O

Or	O	O
do	O	O
I	O	O
have	O	O
to	O	O
write	O	O
a	O	O
script	O	O
to	O	O
try	O	O
and	O	O
scrape	O	O
them	O	O
?	O	O

Well	O	O
,	O	O
there	O	O
are	O	O
many	O	O
millions	O	O
of	O	O
tracks	O	O
in	O	O
Spotify	O	B-Application
so	O	O
that	O	O
'd	O	O
be	O	O
a	O	O
pretty	O	O
unmanageable	O	O
list	O	B-Data_Structure
.	O	O

More	O	O
importantly	O	O
,	O	O
scraping	O	O
the	O	O
Spotify	O	B-Application
catalog	O	O
like	O	O
this	O	O
is	O	O
very	O	O
much	O	O
against	O	O
Spotify	O	B-Website
's	O	O
API	O	O
Terms	O	O
of	O	O
Service	O	O
,	O	O
and	O	O
if	O	O
you	O	O
try	O	O
it	O	O
you	O	O
'll	O	O
find	O	O
yourself	O	O
rate	O	O
limited	O	O
pretty	O	O
fast	O	O
.	O	O

Instead	O	O
,	O	O
consider	O	O
asking	O	O
users	O	O
of	O	O
their	O	O
game	O	O
to	O	O
search	O	O
for	O	O
something	O	O
-	O	O
searching	O	O
for	O	O
a	O	O
user-supplied	O	O
string	O	O
and	O	O
caching	O	O
the	O	O
results	O	O
of	O	O
the	O	O
search	O	O
does	O	O
n't	O	O
break	O	O
the	O	O
Terms	O	O
of	O	O
Service	O	O
.	O	O

if	O	O
you	O	O
use	O	O
an	O	O
assignment	O	O
operator	O	O
but	O	O
use	O	O
it	O	O
in	O	O
wrong	O	O
way	O	O
or	O	O
in	O	O
wrong	O	O
place	O	O
,	O	O

then	O	O
you	O	O
'll	O	O
get	O	O
this	O	O
types	O	O
of	O	O
errors	O	O
!	O	O

suppose	O	O
if	O	O
you	O	O
type	O	O
:	O	O

p+1	O	B-Code_Block
=p	O	I-Code_Block
;	O	I-Code_Block
you	O	O
will	O	O
get	O	O
the	O	O
error	O	O
!	O	O
!	O	O

you	O	O
will	O	O
get	O	O
the	O	O
same	O	O
error	O	O
for	O	O
this	O	O
:	O	O

if	O	B-Code_Block
(	O	I-Code_Block
ch>='a'	O	I-Code_Block
&&	O	I-Code_Block
ch='z'	O	I-Code_Block
)	O	I-Code_Block

as	O	O
you	O	O
see	O	O
can	O	O
see	O	O
that	O	O
I	O	O
i	O	O
tried	O	O
to	O	O
assign	O	O
in	O	O
if()	O	B-Code_Block
statement	O	O
!!	O	O
!	O	O

how	O	O
silly	O	O
I	O	O
am	O	O
!!	O	O
!	O	O

right	O	O
?	O	O
?	O	O

ha	O	O
ha	O	O

actually	O	O
i	O	O
forgot	O	O
to	O	O
give	O	O
less	O	O
then(<)	O	B-Code_Block
sign	O	O

if	O	B-Code_Block
(	O	I-Code_Block
ch>='a'	O	I-Code_Block
&&	O	I-Code_Block
ch<='z'	O	I-Code_Block
)	O	I-Code_Block

and	O	O
got	O	O
the	O	O
error	O	O
!	O	O
!	O	O

When	O	O
you	O	O
have	O	O
an	O	O
assignment	O	O
operator	O	O
in	O	O
a	O	O
statement	O	O
,	O	O
the	O	O
LHS	O	O
of	O	O
the	O	O
operator	O	O
must	O	O
be	O	O
something	O	O
the	O	O
language	O	O
calls	O	O
an	O	O
lvalue	O	O
.	O	O

If	O	O
the	O	O
LHS	O	O
of	O	O
the	O	O
operator	O	O
does	O	O
not	O	O
evaluate	O	O
to	O	O
an	O	O
lvalue	O	O
,	O	O
the	O	O
value	O	O
from	O	O
the	O	O
RHS	O	O
cannot	O	O
be	O	O
assigned	O	O
to	O	O
the	O	O
LHS	O	O
.	O	O

You	O	O
cannot	O	O
use	O	O
:	O	O

since	O	O
10	B-Code_Block	B-Value
does	O	O
not	O	O
evaluate	O	O
to	O	O
an	O	O
lvalue	O	O
.	O	O

You	O	O
can	O	O
use	O	O
:	O	O

since	O	O
i	B-Code_Block	B-Variable
does	O	O
evaluate	O	O
to	O	O
an	O	O
lvalue	O	O
.	O	O

You	O	O
cannot	O	O
use	O	O
:	O	O

since	O	O
i	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
does	O	O
not	O	O
evaluate	O	O
to	O	O
an	O	O
lvalue	O	O
.	O	O

In	O	O
your	O	O
case	O	O
,	O	O
p	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
does	O	O
not	O	O
evaluate	O	O
to	O	O
an	O	O
lavalue	O	O
.	O	O

Hence	O	O
,	O	O
you	O	O
cannot	O	O
use	O	O

advise	O	O
appreciated	O	O
:	O	O

I	O	O
have	O	O
a	O	O
drop-down	O	B-User_Interface_Element
list	O	I-User_Interface_Element
with	O	O
"	O	B-Value
select	O	I-Value
..	O	I-Value
.	O	I-Value
"	O	I-Value
at	O	O
the	O	O
top	O	O
and	O	O
then	O	O
a	O	O
list	O	B-User_Interface_Element
of	O	O
links	O	O
which	O	O
,	O	O
when	O	O
clicked	O	O
,	O	O
each	O	O
opens	O	O
a	O	O
different	O	O
URL	O	O
in	O	O
a	O	O
new	O	O
window	O	B-User_Interface_Element
.	O	O

After	O	O
user	O	O
selection	O	O
(	O	O
"	O	O
click	O	O
"	O	O
)	O	O
I	O	O
however	O	O
need	O	O
that	O	O
the	O	O
drop-down	O	B-User_Interface_Element
always	O	O
keeps	O	O
showing	O	O
"	O	B-Value
select	O	I-Value
..	O	I-Value
.	O	I-Value
"	O	I-Value
and	O	O
does	O	O
NOT	O	O
show	O	O
what	O	O
the	O	O
user	O	O
previously	O	O
selected/clicked	O	O
on	O	O
.	O	O

I	O	O
thought	O	O
that	O	O
this	O	O
would	O	O
do	O	O
the	O	O
job	O	O
,	O	O
but	O	O
does	O	O
not	O	O
,	O	O
it	O	O
still	O	O
shows	O	O
whatever	O	O
the	O	O
user	O	O
selected/clicked	O	O
on	O	O
in	O	O
that	O	O
drop-down	O	B-User_Interface_Element
,	O	O
rather	O	O
than	O	O
always	O	O
showing	O	O
"	O	B-Value
select	O	I-Value
..	O	I-Value
.	O	I-Value
"	O	I-Value
.	O	O

Any	O	O
suggestion	O	O
how	O	O
to	O	O
fix	O	O
greatly	O	O
appreciated	O	O
!	O	O

THANKS	O	O

try	O	O
this	O	O
:	O	O

or	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
append	O	O
one	O	O
string	O	B-Data_Type
to	O	O
another	O	O
.	O	O

I	O	O
declare	O	O
two	O	O
global	O	B-Data_Type
string	O	I-Data_Type
variables	O	O
-	O	O

Then	O	O
I	O	O
have	O	O
a	O	O
function	O	O
for	O	O
getting	O	O
command	O	O
line	O	O
arguments	O	O
.	O	O

Whenever	O	O
a	O	O
user	O	O
enters	O	O
a	O	O
filename	O	O
in	O	O
a	O	O
command	O	B-Application
line	O	I-Application
argument	O	O
,	O	O
it	O	O
should	O	O
be	O	O
stored	O	O
in	O	O
rest	O	B-Variable
and	O	O
then	O	O
rest	O	B-Variable
is	O	O
appended	O	O
to	O	O
grid_filename	O	B-Variable
.	O	O

Now	O	O
whenever	O	O
I	O	O
run	O	O
my	O	O
code	O	O
,	O	O
valgrind	O	B-Application
gives	O	O
me	O	O
this	O	O
error	O	O
-	O	O

I	O	O
print	O	O
out	O	O
the	O	O
two	O	O
addresses	O	O
of	O	O
the	O	O
strings	O	B-Data_Type
and	O	O
neither	O	O
of	O	O
them	O	O
match	O	O
the	O	O
one	O	O
valgrind	O	B-Application
is	O	O
saying	O	O
is	O	O
0	O	O
bytes	O	O
.	O	O

What	O	O
am	O	O
I	O	O
missing	O	O
here	O	O
?	O	O

I	O	O
believe	O	O
this	O	O
leads	O	O
to	O	O
my	O	O
second	O	O
error	O	O
because	O	O
I	O	O
pass	O	O
grid_filename	O	B-Variable
to	O	O
another	O	O
function	O	O
that	O	O
sends	O	O
the	O	O
string	O	B-Data_Type
over	O	O
a	O	O
tcp	O	O
connection	O	O
.	O	O

Valgrind	O	B-Application
tells	O	O
me	O	O

Can	O	O
anyone	O	O
explain	O	O
to	O	O
me	O	O
what	O	O
the	O	O
problem	O	O
is	O	O
?	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

I	O	O
can	O	O
supply	O	O
more	O	O
about	O	O
the	O	O
code	O	O
if	O	O
needed	O	O
.	O	O

About	O	O
your	O	O
first	O	O
error	O	O
:	O	O
we	O	O
had	O	O
false	O	O
positives	O	O
in	O	O
valgrind	O	B-Application
.	O	O

Check	O	O
the	O	O
documentation	O	O
to	O	O
suppress	O	O
these	O	O
,	O	O
especially	O	O
if	O	O
they	O	O
are	O	O
not	O	O
pointing	O	O
to	O	O
your	O	O
code	O	O
(	O	O
and	O	O
you	O	O
have	O	O
checked	O	O
that	O	O
they	O	O
do	O	O
n't	O	O
actually	O	O
cause	O	O
problems	O	O
)	O	O

Note	O	O
:	O	O
this	O	O
is	O	O
not	O	O
a	O	O
response	O	O
,	O	O
this	O	O
is	O	O
not	O	O
a	O	O
code	O	O
review	O	O
site	O	O
..	O	O
.	O	O
but	O	O
really	O	O
I	O	O
ca	O	O
n't	O	O
stare	O	O
at	O	O
this	O	O
and	O	O
walk	O	O
away	O	O
.	O	O

First	O	O
,	O	O
some	O	O
functions	O	O
that	O	O
really	O	O
help	O	O
in	O	O
a	O	O
toolbox	O	B-User_Interface_Element
:	O	O

And	O	O
then	O	O
you	O	O
can	O	O
rewrite	O	O
the	O	O
code	O	O
quite	O	O
efficiently	O	O
(	O	O
no	O	O
extra	O	O
memory	O	O
allocation	O	O
)	O	O
and	O	O
with	O	O
more	O	O
readability	O	O
too	O	O
:	O	O

Which	O	O
wo	O	O
n't	O	O
help	O	O
much	O	O
for	O	O
the	O	O
actual	O	O
question	O	O
since	O	O
you	O	O
're	O	O
not	O	O
showing	O	O
the	O	O
code	O	O
producing	O	O
the	O	O
error	O	O
.	O	O

I	O	O
have	O	O
to	O	O
do	O	O
a	O	O
website	O	O
with	O	O
.cgi	B-Code_Block	B-File_Type
files	O	O
,	O	O
so	O	O
i	O	O
have	O	O
my	O	O
index.cgi	O	B-File_Name
:	O	O

evrything	O	O
is	O	O
displaying	O	O
corectly	O	O
etc	O	O
.	O	O
but	O	O
i	O	O
do	O	O
n't	O	O
understand	O	O
anything	O	O
about	O	O
login	O	O
form	O	O
:/	O	O

here	O	O
is	O	O
my	O	O
login	O	O
form	O	O
input	O	O
:	O	O

and	O	O
my	O	O
JS	O	B-Language
login	O	O
script	O	O
(	O	O
he	O	O
is	O	O
include	O	O
in	O	O
header	O	O
)	O	O
:	O	O

So	O	O
,	O	O
my	O	O
question	O	O
is	O	O
,	O	O
how	O	O
can	O	O
i	O	O
make	O	O
my	O	O
website	O	O
verify	O	O
if	O	O
user	O	O
is	O	O
logged	O	O
on	O	O
every	O	O
page	O	O
?	O	O

and	O	O
change	O	O
few	O	O
things	O	O
like	O	O
display	O	O
disconnect	O	O
button	O	B-User_Interface_Element
etc	O	O
..	O	O
.	O	O

I	O	O
hope	O	O
someone	O	O
nice	O	O
is	O	O
going	O	O
to	O	O
help	O	O
me	O	O
<3	O	O
i	O	O
'm	O	O
on	O	O
this	O	O
since	O	O
1	O	O
week	O	O
ago	O	O
:')	O	O

First	O	O
your	O	O
method	O	O
is	O	O
very	O	O
insecure	O	O
.	O	O

I	O	O
found	O	O
this	O	O
link	O	O
that	O	O
should	O	O
put	O	O
you	O	O
on	O	O
the	O	O
right	O	O
track	O	O
,	O	O
it	O	O
does	O	O
not	O	O
use	B-Code_Block	B-Code_Block
HTML::Template	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
but	O	O
you	O	O
can	O	O
add	O	O
that	O	O
in	O	O
for	O	O
your	O	O
code	O	O
.	O	O

login	O	O
and	O	O
logout	O	O
of	O	O
sessions	O	O
in	O	O
2	O	O
cgi	O	B-File_Type
scripts	O	O

I	O	O
'm	O	O
using	O	O
a	O	O
the	O	O
below	O	O
given	O	O
step	O	O
to	O	O
find	O	O
the	O	O
position	O	O
of	O	O
<	B-Code_Block	B-HTML_XML_Tag
heading	I-Code_Block	I-HTML_XML_Tag
tag	O	O
which	O	O
is	O	O
occurring	O	O
more	O	O
than	O	O
once	O	O
.	O	O

But	O	O
I	O	O
need	O	O
the	O	O
position	O	O
of	O	O
the	O	O
first	O	O
occurrence	O	O
only	O	O
.	O	O

I	O	O
'm	O	O
doing	O	O
this	O	O
shell	O	B-Application
script	O	O
in	O	O
Windows	O	B-Operating_System
using	O	O
cygwin	O	B-Application
tool	O	O

this	O	O
will	O	O
give	O	O
an	O	O
output	O	O
like	O	O
:	O	O
17	B-Code_Block	B-Value
24	I-Code_Block	I-Value
46	I-Code_Block	I-Value

From	O	O
this	O	O
,	O	O
how	O	O
can	O	O
I	O	O
retrieve	O	O
17	B-Code_Block	B-Value
only	O	O
?	O	O

One	O	O
way	O	O
is	O	O
to	O	O
pipe	O	O
it	O	O
through	O	O
head	B-Code_Block	B-Code_Block
:	O	O

I	O	O
was	O	O
looking	O	O
for	O	O
the	O	O
solution	O	O
on	O	O
the	O	O
internet	O	O
but	O	O
was	O	O
not	O	O
able	O	O
to	O	O
find	O	O
it	O	O
within	O	O
my	O	O
sample	O	O
.	O	O

I	O	O
need	O	O
to	O	O
add	O	O
a	O	O
separator	O	O
between	O	O
Context	O	B-User_Interface_Element
menu	O	I-User_Interface_Element
item	O	O
that	O	O
are	O	O
generated	O	O
from	O	O
code	O	O
behind	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
add	O	O
it	O	O
with	O	O
such	O	O
code	O	O
lines	O	O
like	O	O
below	O	O
but	O	O
without	O	O
success	O	O
.	O	O

I	O	O
am	O	O
wondering	O	O
if	O	O
someone	O	O
can	O	O
help	O	O
.	O	O

Thank	O	O
you	O	O
in	O	O
advance	O	O
.	O	O

Context	O	B-HTML_XML_Tag
Menu	O	I-HTML_XML_Tag
XAML	O	B-Language
:	O	O

C#	O	B-Language
that	O	O
added	O	O
in	O	O
the	O	O
method	O	O
:	O	O

I	O	O
did	O	O
this	O	O
once	O	O
and	O	O
used	O	O
a	O	O
null	B-Code_Block	B-Value
as	O	O
my	O	O
separator	O	B-HTML_XML_Tag
.	O	O

From	O	O
the	O	O
XAML	O	B-Language
,	O	O
I	O	O
then	O	O
styled	O	O
the	O	O
template	O	O
to	O	O
use	O	O
a	O	O
separator	O	B-HTML_XML_Tag
if	O	O
the	O	O
datacontext	O	B-Variable
was	O	O
null	O	B-Value

Code	O	O
behind	O	O
:	O	O

XAML	O	B-Language
was	O	O
something	O	O
like	O	O
this	O	O
:	O	O

Hope	O	O
I	O	O
got	O	O
the	O	O
syntax	O	O
right	O	O
-	O	O
I	O	O
do	O	O
n't	O	O
have	O	O
an	O	O
IDE	O	B-Application
on	O	O
this	O	O
machine	O	O
to	O	O
verify	O	O
the	O	O
code	O	O

EDIT	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
template	O	O
for	O	O
the	O	O
context	O	B-User_Interface_Element
menu	O	I-User_Interface_Element
separator	O	I-User_Interface_Element
.	O	O

I	O	O
am	O	O
putting	O	O
it	O	O
in	O	O
ContextMenu.Resources	B-Code_Block	B-HTML_XML_Tag
,	O	O
although	O	O
you	O	O
could	O	O
put	O	O
this	O	O
anywhere	O	O
you	O	O
want	O	O
in	O	O
your	O	O
application	O	O
as	O	O
long	O	O
as	O	O
the	O	O
ContextMenu	O	B-HTML_XML_Tag
can	O	O
access	O	O
it	O	O
.	O	O

I	O	O
have	O	O
modified	O	O
the	O	O
solution	O	O
provided	O	O
by	O	O
Rachel	O	B-User_Name
above	O	O
to	O	O
correct	O	O
the	O	O
Separator	O	B-HTML_XML_Tag
style	O	O
.	O	O

I	O	O
realize	O	O
this	O	O
post	O	O
is	O	O
old	O	O
,	O	O
but	O	O
still	O	O
one	O	O
of	O	O
the	O	O
top	O	O
results	O	O
on	O	O
Google	O	B-Website
.	O	O

In	O	O
my	O	O
situation	O	O
,	O	O
I	O	O
was	O	O
using	O	O
it	O	O
for	O	O
a	O	O
Menu	O	B-HTML_XML_Tag
vs	O	O
a	O	O
ContextMenu	O	B-HTML_XML_Tag
,	O	O
but	O	O
the	O	O
same	O	O
should	O	O
work	O	O
.	O	O

XAML	O	B-Language

Without	O	O
Separator	O	B-HTML_XML_Tag
Style	O	O
Change	O	O

With	O	O
Separator	O	B-HTML_XML_Tag
Style	O	O
Change	O	O

I	O	O
have	O	O
a	O	O
XML	O	B-Language
from	O	O
third-party	O	O
service	O	O
:	O	O

and	O	O
i	O	O
want	O	O
to	O	O
handle	O	O
this	O	O
in	O	O
my	O	O
code	O	O
like	O	O
single	O	O
collection	O	O
,	O	O
because	O	O
fields	O	O
of	O	O
are	O	O
the	O	O
same	O	O
,	O	O
only	O	O
name	O	O
of	O	O
part	O	O
is	O	O
differ	O	O
.	O	O

I	O	O
used	O	O
this	O	O
code	O	O
,	O	O
to	O	O
test	O	O
serialization	O	O
first	O	O
:	O	O

and	O	O
got	O	O
this	O	O
response	O	O
:	O	O

Looks	O	O
like	O	O
that	O	O
i	O	O
very	O	O
close	O	O
to	O	O
the	O	O
answer	O	O
,	O	O
but	O	O
how	O	O
to	O	O
set	O	O
the	O	O
name	O	O
of	O	O
collection	O	O
objects	O	O
?	O	O

UPD	O	O
:	O	O
what	O	O
i	O	O
want	O	O
to	O	O
get	O	O
after	O	O
serialization	O	O

So	O	O
far	O	O
,	O	O
I	O	O
have	O	O
this	O	O
code	O	O
that	O	O
parses	O	O
two	O	O
different	O	O
strings	O	B-Data_Type
operands	O	O
into	O	O
double	O	B-Data_Type
and	O	O
adds	O	O
them	O	O
together	O	O

How	O	O
can	O	O
I	O	O
modify	O	O
it	O	O
so	O	O
that	O	O
it	O	O
can	O	O
add	O	O
any	O	O
number	O	O
of	O	O
strings	O	B-Data_Type
operands	O	O
?	O	O

All	O	O
the	O	O
answers	O	O
says	O	O
the	O	O
correct	O	O
info	O	O
to	O	O
use	O	O
variable	O	O
number	O	O
of	O	O
arguement	O	O
.	O	O

But	O	O
accorind	O	O
to	O	O
your	O	O
comment	O	O
it	O	O
seems	O	O
you	O	O
want	O	O
to	O	O
have	O	O
the	O	O
parameter	O	O
in	O	O
a	O	O
single	O	O
string	O	B-Data_Type
like	O	O
1+5+	O	B-Value
10	O	I-Value
.	O	O

It	O	O
is	O	O
better	O	O
if	O	O
you	O	O
use	O	O
varargs	O	B-Data_Type
but	O	O
it	O	O
is	O	O
must	O	O
for	O	O
you	O	O
to	O	O
use	O	O
single	O	O
string	O	B-Data_Type
then	O	O
you	O	O
can	O	O
use	O	O
StringTokenizer	O	B-Function
.	O	O

For	O	O
Example	O	O

Change	O	O
the	O	O
signature	O	O
to	O	O
add	O	O
a	O	O
varargs	O	B-Data_Type
.	O	O

It	O	O
can	O	O
be	O	O
handled	O	O
in	O	O
the	O	O
method	O	O
's	O	O
body	O	O
as	O	O
a	O	O
String	O	B-Data_Type
array	O	B-Data_Structure
.	O	O

I	O	O
'm	O	O
running	O	O
the	O	O
OpenTok	O	B-Library
demo	O	O
WebRTC	O	B-Application
app	O	O
on	O	O
Chrome	O	B-Application
-	O	O
and	O	O
it	O	O
works	O	O
great	O	O
.	O	O

But	O	O
if	O	O
I	O	O
load	O	O
the	O	O
page	O	O
in	O	O
IE	O	B-Application
,	O	O
it	O	O
gives	O	O
me	O	O
an	O	O
error	O	O
message	O	O
(	O	O
about	O	O
page	O	O
compatibility	O	O
)	O	O
.	O	O

Pretty	O	O
obvious	O	O
solution	O	O
is	O	O
to	O	O
use	O	O
the	O	O
old	O	O
(	O	O
Flash-based	O	B-Application
)	O	O
OpenTok	O	B-Library
library	O	O
on	O	O
IE	O	B-Application
-	O	O
but	O	O
do	O	O
I	O	O
have	O	O
to	O	O
do	O	O
it	O	O
"	O	O
manually	O	O
"	O	O
?	O	O

Is	O	O
there	O	O
some	O	O
sort	O	O
of	O	O
an	O	O
"	O	O
automatic	O	O
switching	O	O
"	O	O
library	O	O
that	O	O
would	O	O
try	O	O
to	O	O
load	O	O
WebRTC	O	B-Application
(	O	O
2.0	O	B-Version
)	O	O
TB.min.js	O	B-File_Name
,	O	O
and	O	O
if	O	O
it	O	O
fails	O	O
fall	O	O
back	O	O
to	O	O
Flash	O	B-Application
(	O	O
0.9	O	B-Version
)	O	O
version	O	O
?	O	O

Also	O	O
a	O	O
related	O	O
question	O	O
-	O	O
will	O	O
all	O	O
these	O	O
versions	O	O
interoperate	O	O
?	O	O

I.e	O	O
.	O	O

can	O	O
Chromes	O	B-Application
(	O	O
running	O	O
2.0/WebRTC	O	B-Version
)	O	O
talk	O	O
to	O	O
IE	O	B-Application
(	O	O
running	O	O
0.9/Flash	O	B-Version
)	O	O
and	O	O
talk	O	O
to	O	O
iOS	O	B-Operating_System
(	O	O
running	O	O
native	O	O
)	O	O
?	O	O

To	O	O
have	O	O
WebRTC	O	B-Application
capabilities	O	O
on	O	O
IE	O	B-Application
,	O	O
users	O	O
could	O	O
install	O	O
Chrome	O	B-Application
Frame	O	O
(	O	O
for	O	O
IE6+	O	B-Application
)	O	O
.	O	O

It	O	O
is	O	O
a	O	O
valid	O	O
option	O	O
,	O	O
but	O	O
you	O	O
should	O	O
know	O	O
that	O	O
it	O	O
is	O	O
no	O	O
longer	O	O
being	O	O
actively	O	O
supported	O	O
by	O	O
Google	O	B-Website
.	O	O

As	O	O
far	O	O
as	O	O
I	O	O
know	O	O
,	O	O
there	O	O
is	O	O
no	O	O
automatic	O	O
switching	O	O
library	O	O
.	O	O

However	O	O
,	O	O
on	O	O
your	O	O
server	O	O
,	O	O
you	O	O
could	O	O
look	O	O
at	O	O
the	O	O
HTTP	O	O
requests	O	O
and	O	O
find	O	O
out	O	O
the	O	O
client	O	B-Application
's	O	O
browser	O	I-Application
.	O	O

From	O	O
there	O	O
,	O	O
you	O	O
could	O	O
dynamically	O	O
load	O	O
either	O	O
the	O	O
WebRTC	O	B-Application
or	O	O
Flash	O	B-Application
library	O	O
depending	O	O
on	O	O
the	O	O
browser	O	B-Application
's	O	O
support	O	O
for	O	O
WebRTC	O	B-Application
.	O	O

Currently	O	O
,	O	O
the	O	O
OpenTok	O	B-Library
WebRTC	O	B-Application
library	O	O
supports	O	O
:	O	O

Chrome	O	B-Application
23+	O	B-Version

Firefox	O	B-Application
22+	O	B-Version

Unfortunately	O	O
,	O	O
OpenTok	O	B-Library
does	O	O
not	O	O
interoperate	O	O
between	O	O
Flash	O	B-Application
and	O	O
WebRTC	O	B-Application
clients	O	I-Application
.	O	O

WebRTC	O	B-Application
clients	O	O
can	O	O
operate	O	O
with	O	O
other	O	O
WebRTC	O	B-Application
clients	O	O
(	O	O
mobile	O	O
,	O	O
web	O	O
,	O	O
etc	O	O
.	O	O
)	O	O
,	O	O
just	O	O
like	O	O
Flash	O	B-Application
can	O	O
only	O	O
operate	O	O
with	O	O
other	O	O
Flash	O	B-Application
clients	O	O
.	O	O

For	O	O
example	O	O
,	O	O
an	O	O
iOS	O	B-Operating_System
client	O	O
would	O	O
have	O	O
to	O	O
use	O	O
the	O	O
WebRTC	O	B-Application
SDK	O	I-Application
and	O	O
the	O	O
Chrome/Firefox	O	B-Application
web	O	O
app	O	O
would	O	O
have	O	O
to	O	O
include	O	O
the	O	O
WebRTC	O	B-Application
Javascript	O	B-Language
library	O	O
.	O	O

I	O	O
have	O	O
to	O	O
migrate	O	O
a	O	O
medium-sized	O	O
site	O	O
based	O	O
on	O	O
PHP	O	B-Website
Nuke	O	I-Website
(	O	O
less	O	O
than	O	O
2000	O	O
posts	O	O
)	O	O
to	O	O
a	O	O
new	O	O
WordPress	O	B-Application
installation	O	O
.	O	O

I	O	O
have	O	O
problems	O	O
writing	O	O
the	O	O
redirection	O	O
rules	O	O
.	O	O

I	O	O
tried	O	O
:	O	O

So	O	O

should	O	O
become	O	O

It	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

I	O	O
tried	O	O
the	O	O
.htaccess	O	B-File_Type
file	O	O
in	O	O
the	O	O
"	O	O
nuke	O	B-Variable
"	O	O
,	O	O
"	O	O
modules	O	B-Variable
"	O	O
and	O	O
"	O	O
News	O	B-Variable
"	O	O
folder	O	O
with	O	O
not	O	O
luck	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
very	O	O
appreciated	O	O
.	O	O

Here	O	O
's	O	O
the	O	O
working	O	O
code	O	O

If	O	O
you	O	O
place	O	O
the	O	O
htaccess	O	B-File_Type
file	O	O
in	O	O
the	O	O
"	O	O
nuke	O	B-Variable
"	O	O
folder	O	O
,	O	O
you	O	O
need	O	O
to	O	O
omit	O	O
the	O	O
nuke	B-Code_Block	B-Variable
from	O	O
the	O	O
pattern	O	O
:	O	O

And	O	O
make	O	O
sure	O	O
you	O	O
've	O	O
turned	O	O
on	O	O
the	O	O
rewrite	O	O
engine	O	O
:	O	O

I	O	O
am	O	O
writing	O	O
a	O	O
script	O	O
which	O	O
reads	O	O
values	O	O
from	O	O
a	O	O
CSV	O	B-File_Type
through	O	O
pandas	O	B-Library
into	O	O
a	O	O
DataFrame	O	B-Class
.	O	O

The	O	O
values	O	O
,	O	O
'	O	B-Value
A	O	I-Value
'	O	B-Value
and	O	O
'	O	B-Value
B	O	I-Value
'	O	B-Value
,	O	O
are	O	O
inputs	O	O
into	O	O
an	O	O
equation	O	O
.	O	O

This	O	O
equation	O	O
is	O	O
obtained	O	O
from	O	O
an	O	O
XML	O	B-File_Type
output	O	O
file	O	O
from	O	O
an	O	O
external	O	O
program	O	O
.	O	O

The	O	O
equation	O	O
provides	O	O
a	O	O
result	O	O
for	O	O
'	O	B-Value
A	O	I-Value
'	O	B-Value
and	O	O
'	O	B-Value
B	O	I-Value
'	O	B-Value
row-by-row	O	B-User_Interface_Element
of	O	O
the	O	O
DataFrame	O	B-Class
and	O	O
places	O	O
those	O	O
results	O	O
back	O	O
into	O	O
the	O	O
original	O	O
DataFrame	O	B-Class
.	O	O

If	O	O
I	O	O
make	O	O
a	O	O
function	O	O
definition	O	O
,	O	O
explicitly	O	O
write	O	O
the	O	O
equation	O	O
in	O	O
the	O	O
definition	O	O
,	O	O
and	O	O
return	O	O
that	O	O
that	O	O
equation	O	O
,	O	O
things	O	O
work	O	O
fine	O	O
.	O	O

e.g	O	O
.	O	O
,	O	O

However	O	O
,	O	O
what	O	O
I	O	O
really	O	O
want	O	O
to	O	O
do	O	O
is	O	O
"	O	O
build	O	O
"	O	O
that	O	O
same	O	O
equation	O	O
from	O	O
an	O	O
XML	O	B-File_Type
file	O	O
rather	O	O
than	O	O
entering	O	O
it	O	O
in	O	O
explicitly	O	O
.	O	O

So	O	O
,	O	O
I	O	O
basically	O	O
pull	O	O
'	O	O
terms	O	O
'	O	O
and	O	O
'	O	O
coefficients	O	O
'	O	O
from	O	O
the	O	O
xml	O	B-File_Type
file	O	O
and	O	O
result	O	O
in	O	O
a	O	O
string	O	B-Data_Type
form	O	O
of	O	O
the	O	O
equation	O	O
.	O	O

I	O	O
then	O	O
convert	O	O
the	O	O
string	O	B-Data_Type
to	O	O
an	O	O
executable	O	O
function	O	O
using	O	O
sympy.sympify()	O	B-Function
.	O	O

e.g	O	O
.	O	O
,	O	O

The	O	O
result	O	O
is	O	O
that	O	O
when	O	O
I	O	O
call	O	O
to	O	O
execute	O	O
this	O	O
equation	O	O
over	O	O
the	O	O
dataFrame	O	B-Variable
the	O	O
literal	O	O
equation	O	O
is	O	O
copied	O	O
into	O	O
the	O	O
"	O	O
outPut	O	O
"	O	O
DF	O	B-Class
rather	O	O
than	O	O
the	O	O
row	O	B-User_Interface_Element
by	O	O
row	O	B-User_Interface_Element
result	O	O
for	O	O
each	O	O
'	O	B-Value
A	O	I-Value
'	O	B-Value
and	O	O
'	O	B-Value
B	O	I-Value
'	O	B-Value
.	O	O

I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
Python	O	B-Language
sees	O	O
these	O	O
code	O	O
examples	O	O
differently	O	O
,	O	O
nor	O	O
how	O	O
to	O	O
achieve	O	O
the	O	O
result	O	O
I	O	O
want	O	O
from	O	O
the	O	O
first	O	O
example	O	O
.	O	O

For	O	O
some	O	O
reason	O	O
the	O	O
sympify()	O	B-Class
result	O	O
is	O	O
not	O	O
executable	O	O
.	O	O

The	O	O
same	O	O
seems	O	O
to	O	O
occur	O	O
when	O	O
I	O	O
use	O	O
eval()	O	B-Class
.	O	O

Elaborating	O	O
on	O	O
my	O	O
comment	O	O
,	O	O
here	O	O
's	O	O
how	O	O
to	O	O
solve	O	O
the	O	O
problem	O	O
with	O	O
lambdify	B-Code_Block	B-Function

Depending	O	O
on	O	O
the	O	O
expressions	O	O
encountered	O	O
in	O	O
your	O	O
xml	O	B-File_Type
file	O	O
,	O	O
sympy	O	B-Library
may	O	O
be	O	O
overkill	O	O
.	O	O

Here	O	O
's	O	O
how	O	O
to	O	O
use	O	O
eval	B-Code_Block	B-Function

I	O	O
am	O	O
trying	O	O
to	O	O
make	O	O
an	O	O
app	O	O
in	O	O
Rails	O	B-Library
4	O	B-Version
.	O	O

I	O	O
use	O	O
simple	O	B-HTML_XML_Tag
form	O	I-HTML_XML_Tag
for	O	O
forms	O	O
.	O	O

I	O	O
have	O	O
an	O	O
industry	O	B-Class
model	O	O
.	O	O

The	O	O
industry.rb	O	B-File_Name
has	O	O
:	O	O

The	O	O
industry	O	B-Class
controller	O	O
has	O	O
:	O	O

The	O	O
industry	O	B-Class
form	O	O
has	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
get	O	O
my	O	O
form	O	O
input	O	O
for	O	O
:sector	O	B-Class
to	O	O
use	O	O
the	O	O
collection	O	O
of	O	O
industries	O	B-Class
(	O	O
by	O	O
calling	O	O
the	O	O
scope	O	B-Function
)	O	O
.	O	O

When	O	O
I	O	O
try	O	O
this	O	O
,	O	O
I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O

Can	O	O
anyone	O	O
see	O	O
what	O	O
's	O	O
wrong	O	O
?	O	O

It	O	O
should	O	O
be	O	O
alphabetically	B-Code_Block	B-Function
instead	O	O
of	O	O
alphabetical	B-Code_Block	B-Code_Block
.	O	O

Also	O	O
,	O	O
according	O	O
to	O	O
the	O	O
options_from_collection_for_select	O	B-Function
documentation	O	O
,	O	O
you	O	O
need	O	O
to	O	O
pass	O	O
at	O	O
least	O	O
3	O	O
arguments	O	O
to	O	O
the	O	O
options_from_collection_for_select	B-Code_Block	B-Function
method	O	O
:	O	O
collection	B-Code_Block	B-Variable
,	O	O
value_method	B-Code_Block	B-Variable
and	O	O
text_method	B-Code_Block	B-Variable
.	O	O

Change	O	O
to	O	O
the	O	O
following	O	O
to	O	O
make	O	O
it	O	O
work	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
build	O	O
a	O	O
simple	O	O
video	O	O
game	O	O
for	O	O
a	O	O
university	O	O
course	O	O
using	O	O
altera	O	B-Device
DE0	O	I-Device
or	O	O
DE2	O	B-Device
or	O	O
DE1-SoC	O	B-Device
boards	O	O
,	O	O
i	O	O
looked	O	O
at	O	O
the	O	O
isa	O	O
for	O	O
the	O	O
nios	O	B-Device
II	O	I-Device
cpu	O	I-Device
there	O	O
is	O	O
no	O	O
atomic	O	O
test-and-set	O	O
instruction	O	O
in	O	O
the	O	O
ISA	O	O
.	O	O

how	O	O
would	O	O
i	O	O
build	O	O
a	O	O
simple	O	O
lock	O	O
here	O	O
,	O	O
anything	O	O
that	O	O
enforces	O	O
mutual	O	O
exclusion	O	O
for	O	O
a	O	O
tiny	O	O
period	O	O
will	O	O
work	O	O
.	O	O

we	O	O
are	O	O
gonna	O	O
have	O	O
code	O	O
that	O	O
is	O	O
gonna	O	O
run	O	O
from	O	O
main()	B-Code_Block	B-Function
and	O	O
code	O	O
that	O	O
will	O	O
run	O	O
in	O	O
the	O	O
Interrupt	O	O
Service	O	O
Routine	O	O
,	O	O
and	O	O
i	O	O
want	O	O
to	O	O
put	O	O
locks	O	O
on	O	O
some	O	O
variables	O	O
,	O	O
is	O	O
it	O	O
possible	O	O
?	O	O

It	O	O
appears	O	O
the	O	O
Nios	O	B-Device
II	O	I-Device
architecture	O	O
does	O	O
n't	O	O
have	O	O
atomic	O	O
test-and-set	O	O
instructions	O	O
.	O	O

Instead	O	O
for	O	O
synchronization	O	O
of	O	O
shared	O	O
resources	O	O
between	O	O
multiple	O	O
Nios	O	B-Device
II	O	I-Device
processors	O	O
,	O	O
the	O	O
architecture	O	O
uses	O	O
an	O	O
"	O	O
Hardware	O	O
Mutex	O	O
Core	O	O
"	O	O
.	O	O

It	O	O
works	O	O
as	O	O
a	O	O
shared	O	O
peripheral	O	O
that	O	O
provides	O	O
an	O	O
atomic	O	O
test-and-test	O	O
operation	O	O
.	O	O

You	O	O
can	O	O
read	O	O
more	O	O
about	O	O
it	O	O
in	O	O
Altera	O	B-Website
's	O	O
Creating	O	O
Multiprocessor	O	O
Nios	O	B-Device
II	O	I-Device
Systems	O	O
Tutorial	O	O
.	O	O

However	O	O
,	O	O
you	O	O
probably	O	O
do	O	O
n't	O	O
an	O	O
atomic	O	O
test-and-set	O	O
operation	O	O
.	O	O

You	O	O
can	O	O
make	O	O
any	O	O
sequence	O	O
of	O	O
instructions	O	O
atomic	O	O
with	O	O
respect	O	O
to	O	O
interrupts	O	O
on	O	O
a	O	O
single	O	O
core	O	O
system	O	O
simply	O	O
by	O	O
disabling	O	O
interrupts	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
the	O	O
following	O	O
code	O	O
:	O	O

I	O	O
have	O	O
the	O	O
java	O	B-Library
sdk	O	I-Library
in	O	O
my	O	O
pom.xml	B-Code_Block	B-File_Name
file	O	O
:	O	O

But	O	O
it	O	O
wo	O	O
n't	O	O
let	O	O
me	O	O
build	O	O
my	O	O
java	O	B-Language
application	O	O
,	O	O
and	O	O
produces	O	O
the	O	O
following	O	O
error	O	O
:	O	O

I	O	O
just	O	O
ca	O	O
n't	O	O
understand	O	O
how	O	O
it	O	O
ca	O	O
n't	O	O
find	O	O
the	O	O
class	O	O
ClientConfigurationFactory	B-Code_Block	B-Class
because	O	O
it	O	O
should	O	O
be	O	O
included	O	O
in	O	O
the	O	O
Java	O	B-Library
SDK	O	I-Library
right	O	O
?	O	O

I	O	O
appreciate	O	O
any	O	O
help	O	O
you	O	O
guys	O	O
can	O	O
give	O	O
me	O	O
to	O	O
solve	O	O
this	O	O
!	O	O

com.amazonaws.ClientConfigurationFactory	O	B-Class
is	O	O
inside	O	O
aws-java-sdk-core	O	B-Library
you	O	O
will	O	O
need	O	O
to	O	O
add	O	O
this	O	O
to	O	O
your	O	O
list	O	O
of	O	O
dependencies	O	O
in	O	O
your	O	O
pom.xml	O	B-File_Name

I	O	O
have	O	O
those	O	O
java	O	B-Language
files	O	O
:	O	O

//i2cjni.java	O	B-File_Name

//i2c.java	O	B-File_Name

}	O	O

//I2CBoard.java	O	B-File_Name

}	B-Code_Block	B-Code_Block

-I	O	O
have	O	O
set	O	O
the	O	O
native	O	O
library	O	O
path	O	O
like	O	O
this	O	O
:	O	O

-I	O	O
have	O	O
added	O	O
this	O	O
folder	O	O
to	O	O
the	O	O
project	O	O
:	O	O

-when	O	O
I	O	O
try	O	O
to	O	O
call	O	O
the	O	O
U2C_GetDeviceCount()	O	B-Function
function	O	O
and	O	O
so	O	O
on	O	O
,	O	O
I	O	O
get	O	O
this	O	O
error	O	O
.	O	O

Any	O	O
ideas	O	O
?	O	O

that	O	O
like	O	O
is	O	O
a	O	O
link	O	O
error	O	O
,	O	O
may	O	O
be	O	O
your	O	O
.c	O	B-File_Type
file	O	O
function	O	O
name	O	O
is	O	O
not	O	O
right	O	O
,	O	O
maybe	O	O
you	O	O
should	O	O
post	O	O
your	O	O
.c	O	B-File_Type

file	O	O

I	O	O
'm	O	O
using	O	O
CoffeScript	O	B-Language
to	O	O
create	O	O
an	O	O
angular	O	B-Library
application	O	O
.	O	O

I	O	O
have	O	O
a	O	O
strange	O	O
problem	O	O
with	O	O
this	O	O
code	O	O
.	O	O

webService.coffe	O	B-File_Name
(	O	O
simplificated	O	O
)	O	O

In	O	O
this	O	O
simplificated	O	O
code	O	O
,	O	O
I	O	O
get	O	O
the	O	O
error	O	O
_Class.logout	B-Code_Block	B-Output_Block
is	I-Code_Block	I-Output_Block
not	I-Code_Block	I-Output_Block
a	I-Code_Block	I-Output_Block
function	I-Code_Block	I-Output_Block
when	O	O
handleResult	B-Code_Block	B-Function
is	O	O
called	O	O
and	O	O
the	O	O
error	O	O
code	O	O
is	O	O
102	O	B-Error_Name
.	O	O

The	O	O
=>	B-Code_Block	B-Code_Block
operator	O	O
should	O	O
resolve	O	O
this	O	O
problem	O	O
but	O	O
it	O	O
's	O	O
not	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
..	O	O
.	O	O

Javascript	O	B-Language
compiled	O	O
code	O	O
of	O	O
webService.coffee	O	B-File_Name

hi	O	O
i	O	O
am	O	O
retrieving	O	O
contacts	O	O
from	O	O
address	O	O
book	O	O
but	O	O
i	O	O
am	O	O
getting	O	O
duplicates	O	O
too	O	O
for	O	O
eg	O	O
:	O	O

are	O	O
present	O	O
in	O	O
address	O	O
book	O	O
it	O	O
gets	O	O
both	O	O
,	O	O
is	O	O
there	O	O
any	O	O
property	O	O
to	O	O
avoid	O	O
this	O	O
case	O	O
.	O	O

While	O	O
it	O	O
works	O	O
if	O	O
the	O	O
number	O	O
is	O	O
different	O	O
for	O	O
same	O	O
name	O	O
.	O	O

My	O	O
code	O	O
:	O	O

the	O	O
arrayContactsFromAddressbook	B-Code_Block	B-Variable
contains	O	O
all	O	O
the	O	O
contacts	O	O
from	O	O
the	O	O
address	O	O
book	O	O
.	O	O

How	O	O
do	O	O
i	O	O
remove	O	O
duplicates	O	O
based	O	O
on	O	O
phone	O	O
number	O	O
?	O	O

I	O	O
have	O	O
a	O	O
very	O	O
strange	O	O
effect	O	O
when	O	O
adding	O	O
the	O	O
schemaLocation	B-Code_Block	B-Variable
to	O	O
my	O	O
xml-file	O	B-File_Type
.	O	O

Problem	O	O
:	O	O

What	O	O
am	O	O
I	O	O
missing	O	O
,	O	O
so	O	O
that	O	O
the	O	O
data	O	O
still	O	O
get	O	O
displayed	O	O
and	O	O
transformed	O	O
correctly	O	O
after	O	O
adding	O	O
the	O	O
xsd-File	O	B-File_Type
to	O	O
the	O	O
schemaLocation	O	B-Variable
?	O	O

Info	O	O
:	O	O
All	O	O
files	O	O
are	O	O
in	O	O
the	O	O
same	O	O
folder	O	O

XML	O	B-File_Type

XSD	O	B-File_Type

XSLT	O	B-File_Type

Does	O	O
anyone	O	O
have	O	O
an	O	O
idea	O	O
what	O	O
's	O	O
wrong	O	O
in	O	O
my	O	O
files	O	O
?	O	O

The	O	O
schemaLocation	B-Code_Block	B-Variable
does	O	O
not	O	O
matter	O	O
but	O	O
your	O	O
input	O	O
sample	O	O
has	O	O
the	O	O
default	O	O
namespace	O	O
declaration	O	O
xmlns	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
http://www.w3schools.com	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
on	O	O
the	O	O
root	O	O
element	O	O
which	O	O
puts	O	O
all	O	O
elements	O	O
in	O	O
that	O	O
namespace	O	O
.	O	O

Your	O	O
XSLT	O	B-Language
however	O	O
uses	O	O
paths	O	O
like	O	O
school/personen/person	B-Code_Block	B-File_Name
which	O	O
(	O	O
in	O	O
XSLT/XPath	O	B-Language
1.0	O	B-Version
)	O	O
select	O	O
elements	O	O
in	O	O
no	O	O
namespace	O	O
.	O	O

Either	O	O
move	O	O
to	O	O
an	O	O
XSLT	O	B-Language
2.0	O	B-Version
processor	O	O
where	O	O
you	O	O
can	O	O
then	O	O
define	O	O
xpath-default-namespace	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
http://www.w3schools.com	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
on	O	O
your	O	O
stylesheet	O	O
or	O	O
,	O	O
if	O	O
you	O	O
want	O	O
to	O	O
solve	O	O
it	O	O
with	O	O
XSLT	O	B-Language
1.0	O	B-Version
,	O	O
declare	O	O
xmlns:df	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
http://www.w3schools.com	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
in	O	O
your	O	O
stylesheet	O	O
and	O	O
adapt	O	O
your	O	O
paths	O	O
to	O	O
use	O	O
that	O	O
prefix	O	O
as	O	O
in	O	O
df:school/df:personen/df:person	B-Code_Block	B-Code_Block
and	O	O
df:name	B-Code_Block	B-Code_Block
and	O	O
so	O	O
on	O	O
.	O	O

Where	O	O
is	O	O
the	O	O
message	O	O
header	O	O
and	O	O
body	O	O
in	O	O
a	O	O
stream	O	O
definition	O	O
is	O	O
mentioned	O	O
in	O	O
a	O	O
WSO2	O	B-Application
BAM	O	I-Application
mediator	O	I-Application
?	O	O

In	O	O
the	O	O
Payload	O	O
Data	O	O
?	O	O

Or	O	O
can	O	O
it	O	O
be	O	O
changed	O	O
?	O	O

In	O	O
BAM	O	B-Application
mediator	O	I-Application
,	O	O
message	O	O
body	O	O
or	O	O
header	O	O
must	O	O
be	O	O
declared	O	O
in	O	O
the	O	O
Payload	O	O
Data	O	O
.	O	O

I	O	O
am	O	O
setting	O	O
header	O	B-User_Interface_Element
for	O	O
Angular	O	B-Library
2	O	B-Version
app	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
:	O	O

As	O	O
I	O	O
run	O	O
it	O	O
gives	O	O
error	O	O

Without	O	O
you	O	O
posting	O	O
the	O	O
error	O	O
,	O	O
it	O	O
's	O	O
just	O	O
guess	O	O
work	O	O
as	O	O
to	O	O
what	O	O
's	O	O
going	O	O
wrong	O	O
.	O	O

But	O	O
probably	O	O
you	O	O
should	O	O
add	O	O
a	O	O
super()	B-Code_Block	B-Function
call	O	O
inside	O	O
the	O	O
constructor	O	O
.	O	O

Another	O	O
point	O	O
of	O	O
interest	O	O
is	O	O
the	O	O
almost	O	O
same	O	O
name	O	O
of	O	O
the	O	O
class	O	O
,	O	O
besides	O	O
the	O	O
capital	O	O
.	O	O

It	O	O
's	O	O
common	O	O
practice	O	O
to	O	O
have	O	O
your	O	O
class	O	O
name	O	O
in	O	O
PascalCase	B-Code_Block	O
:	O	O

After	O	O
you	O	O
posted	O	O
your	O	O
error	O	O
,	O	O
it	O	O
is	O	O
obvious	O	O
what	O	O
you	O	O
have	O	O
to	O	O
do	O	O
first	O	O
.	O	O

Before	O	O
setting	O	O
the	O	O
request	O	O
headers	O	O
,	O	O
you	O	O
have	O	O
to	O	O
open	O	O
the	O	O
request	O	O
using	O	O
the	O	O
open	B-Code_Block	B-Function
method	O	O
:	O	O

After	O	O
you	O	O
call	O	O
this	O	O
method	O	O
,	O	O
you	O	O
will	O	O
be	O	O
able	O	O
to	O	O
set	O	O
your	O	O
request	O	O
headers	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
programming	O	O
and	O	O
today	O	O
I	O	O
'm	O	O
here	O	O
because	O	O
I	O	O
need	O	O
help	O	O
with	O	O
a	O	O
simple	O	O
exercise	O	O
that	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
solve	O	O
.	O	O

The	O	O
exercise	O	O
consists	O	O
of	O	O
various	O	O
small	O	O
parts	O	O
:	O	O

1)	O	O
Define	O	O
a	O	O
struct	O	B-Data_Structure
called	O	O
Point	O	B-Class
with	O	O
two	O	O
x	O	B-Variable
and	O	O
y	O	B-Variable
coordinates	O	O
(	O	O
double	O	B-Data_Type
)	O	O
.	O	O

2)	O	O
Prompt	O	O
the	O	O
user	O	O
to	O	O
enter	O	O
7	O	O
(	O	O
x	O	O
,	O	O
y	O	O
)	O	O
pairs	O	O
.	O	O

3)	O	O
As	O	O
we	O	O
read	O	O
those	O	O
pairs	O	O
we	O	O
have	O	O
to	O	O
store	O	O
them	O	O
in	O	O
a	O	O
vector	O	B-Data_Type
of	O	O
Points	O	B-Class
called	O	O
original_points	O	B-Variable
.	O	O

So	O	O
this	O	O
is	O	O
my	O	O
first	O	O
attempt	O	O
:	O	O

If	O	O
a	O	O
simple	O	O
format	O	O
error	O	O
occurs	O	O
,	O	O
I	O	O
try	O	O
to	O	O
recover	O	O
by	O	O
skipping	O	O
every	O	O
character	O	O
until	O	O
the	O	O
program	O	O
reaches	O	O
a	O	O
'	O	O
(	O	O
'	O	O
.	O	O

My	O	O
problem	O	O
is	O	O
that	O	O
if	O	O
I	O	O
try	O	O
to	O	O
enter	O	O
a	O	O
wrong	O	O
input	O	O
format	O	O
such	O	O
as	O	O
:	O	O
9	O	B-Value
,	O	I-Value
99	O	I-Value
)	O	I-Value
the	O	O
code	O	O
will	O	O
push_back()	O	B-Function
both	O	O
the	O	O
first	O	O
correct	O	O
reading	O	O
after	O	O
the	O	O
error	O	O
and	O	O
also	O	O
the	O	O
first	O	O
one	O	O
before	O	O
the	O	O
error	O	O
occurred	O	O
.	O	O

So	O	O
for	O	O
example	O	O
if	O	O
I	O	O
try	O	O
to	O	O
input	O	O
such	O	O
data	O	O
:	O	O

(	O	B-Value
1	O	I-Value
,	O	I-Value
2)	O	I-Value

9	O	B-Value
,	O	I-Value
99	O	I-Value
)	O	I-Value

(	O	B-Value
5	O	I-Value
,	O	I-Value
6	O	I-Value
)	O	I-Value

I	O	O
will	O	O
have	O	O
three	O	O
elements	O	O
in	O	O
my	O	O
vector	O	O
:	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
2)	O	I-Value
,	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
2)	O	I-Value
again	O	O
,	O	O
and	O	O
(	O	B-Value
5	O	I-Value
,	O	I-Value
6	O	I-Value
)	O	I-Value
.	O	O

It	O	O
seems	O	O
like	O	O
when	O	O
I	O	O
get	O	O
into	O	O
the	O	O
loop	O	O
after	O	O
every	O	O
condition	O	O
check	O	O
the	O	O
value	O	O
of	O	O
P	O	B-Variable
remains	O	O
the	O	O
same	O	O
instead	O	O
of	O	O
creating	O	O
a	O	O
new	O	O
Point	O	B-Class
object	O	O
for	O	O
every	O	O
iteration	O	O
.	O	O

Could	O	O
you	O	O
help	O	O
me	O	O
please	O	O
with	O	O
this	O	O
problem	O	O
?	O	O

Why	O	O
is	O	O
this	O	O
error	O	O
occurring	O	O
?	O	O

Thank	O	O
you	O	O

There	O	O
are	O	O
multiple	O	O
things	O	O
here	O	O
that	O	O
are	O	O
not	O	O
ok	O	O
.	O	O

First	O	O
of	O	O
all	O	O
,	O	O
you	O	O
do	O	O
n't	O	O
initialize	O	O
the	O	O
Point	O	B-Class
,	O	O
so	O	O
it	O	O
has	O	O
some	O	O
random	O	O
data	O	O
.	O	O

The	O	O
random	O	O
data	O	O
is	O	O
not	O	O
so	O	O
random	O	O
,	O	O
because	O	O
in	O	O
the	O	O
loop	O	O
the	O	O
memory	O	O
allocation	O	O
is	O	O
always	O	O
the	O	O
same	O	O
,	O	O
so	O	O
the	O	O
variable	O	O
will	O	O
have	O	O
the	O	O
data	O	O
of	O	O
the	O	O
last	O	O
loop	O	O
.	O	O

In	O	O
operator>>(...)	O	B-Code_Block
here	O	O
you	O	O
have	O	O
a	O	O
"	O	O
return	O	O
is	O	O
"	O	O
,	O	O
if	O	O
the	O	O
first	O	O
char	O	B-Data_Type
is	O	O
not	O	O
a	O	O
'	O	B-Value
(	O	B-Value
'	O	B-Value

so	O	O
you	O	O
jump	O	O
out	O	O
of	O	O
there	O	O
without	O	O
setting	O	O
p.x	O	B-Variable
and	O	O
p.y	O	B-Variable
.	O	O

The	O	O
function	O	O
skip_to_character(...)	O	B-Function
is	O	O
another	O	O
thing	O	O
that	O	O
is	O	O
n't	O	O
ok	O	O
,	O	O
besides	O	O
the	O	O
fact	O	O
that	O	O
it	O	O
is	O	O
hard	O	O
to	O	O
read	O	O
and	O	O
a	O	O
really	O	O
bad	O	O
way	O	O
to	O	O
use	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
,	O	O
there	O	O
wo	O	O
n't	O	O
be	O	O
a	O	O
'	O	B-Value
C	O	I-Value
'	O	B-Value
when	O	O
you	O	O
enter	O	O
"	O	B-Value
9	O	I-Value
,	O	I-Value
99	O	I-Value
)	O	I-Value
"	O	B-Value
so	O	O
i	O	O
guess	O	O
here	O	O
you	O	O
get	O	O
the	O	O
"	O	B-Value
No	O	I-Value
input	O	I-Value
"	O	I-Value
output	O	O
.	O	O

And	O	O
now	O	O
to	O	O
the	O	O
for	O	B-Code_Block
loop	O	O
in	O	O
you	O	O
main	O	O
:	O	O

Here	O	O
is	O	O
what	O	O
happens	O	O
:	O	O

you	O	O
create	O	O
a	O	O
Point	O	B-Class
p	O	B-Variable
without	O	O
initializing	O	O
it	O	O

your	O	O
read	O	O
garbage	O	O
out	O	O
of	O	O
the	O	O
stream	O	O
and	O	O
p	O	B-Variable
wo	O	O
n't	O	O
be	O	O
set	O	O

you	O	O
skip	O	O
garbage	O	O

you	O	O
push	O	O
your	O	O
uninitialized	O	O
Point	O	B-Class
p	O	B-Variable
into	O	O
the	O	O
vector	O	B-Data_Type

If	O	O
you	O	O
do	O	O
n't	O	O
believe	O	O
me	O	O
that	O	O
there	O	O
is	O	O
no	O	O
data	O	O
in	O	O
p	O	B-Variable
.	O	O

Try	O	O
to	O	O
initialize	O	O
it	O	O
with	O	O
0	O	B-Value
or	O	O
something	O	O
else	O	O
and	O	O
check	O	O
the	O	O
output	O	O
:	O	O

I	O	O
have	O	O
a	O	O
process	O	O
that	O	O
loads	O	O
a	O	O
dynamic	O	O
library	O	O
when	O	O
it	O	O
starts	O	O
(	O	O
dlopen/dlsym	O	B-Function
etc	O	O
)	O	O
,	O	O
and	O	O
I	O	O
can	O	O

send	O	O
some	O	O
message	O	O
to	O	O
it	O	O
while	O	O
it	O	O
's	O	O
running	O	O
to	O	O
let	O	O
the	O	O
process	O	O
unload	O	O
the	O	O
previous	O	O
.so(dlclose)	O	B-File_Type
and	O	O
load	O	O

a	O	O
new	O	O
one	O	O
.	O	O

Here	O	O
the	O	O
question	O	O
becomes	O	O
,	O	O
while	O	O
the	O	O
process	O	O
is	O	O
running	O	O
,	O	O
if	O	O
I	O	O
transfer	O	O
a	O	O
new	O	O
.so	O	B-File_Type
using	O	O
nc	O	B-Code_Block
like	O	O
:	O	O

If	O	O
I	O	O
give	O	O
nc	O	B-Code_Block
the	O	O
same	O	O
filename	O	O
which	O	O
has	O	O
been	O	O
loaded	O	O
by	O	O
the	O	O
process	O	O
,	O	O
then	O	O
the	O	O
process	O	O
got	O	O
segv	O	B-Error_Name

immediately	O	O
after	O	O
the	O	O
above	O	O
command	O	O
being	O	O
executed	O	O
.	O	O

Another	O	O
case	O	O
that	O	O
will	O	O
cause	O	O
process	O	O
crash	O	O
is	O	O
when	O	O
I	O	O
package	O	O
the	O	O
.so	O	B-File_Type
file	O	O
into	O	O
an	O	O
rpm	O	B-Application
package	O	O
and	O	O

the	O	O
.so	O	B-File_Type
file	O	O
in	O	O
the	O	O
rpm	O	B-Application
is	O	O
the	O	O
same	O	O
,	O	O
then	O	O
yum	O	B-Application
update	O	O
XXX	O	B-Value
will	O	O
cause	O	O
the	O	O
process	O	O
crash	O	O
too	O	O
.	O	O

I	O	O
've	O	O
been	O	O
told	O	O
that	O	O
there	O	O
's	O	O
a	O	O
way	O	O
to	O	O
load	O	O
the	O	O
.so	O	B-File_Type
file	O	O
into	O	O
memory	O	O
to	O	O
avoid	O	O
the	O	O
problem	O	O
,	O	O
but	O	O
failed	O	O

to	O	O
find	O	O
any	O	O
resource	O	O
related	O	O
to	O	O
it	O	O
.	O	O

Any	O	O
thoughts	O	O
will	O	O
be	O	O
thankful	O	O
.	O	O

I	O	O
get	O	O
this	O	O
error	O	O
when	O	O
I	O	O
try	O	O
to	O	O
import	O	O
a	O	O
file	O	O
outside	O	O
webpack	O	B-Application
root	O	B-File_Name
directory	O	O

I	O	O
have	O	O
something	O	O
like	O	O
this	O	O

in	O	O
main.js	B-Code_Block	B-File_Name
I	O	O
'm	O	O
trying	O	O
to	O	O
import	B-Code_Block	B-Code_Block
Shared	I-Code_Block	I-Code_Block
from	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
../shared/index	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block

I	O	O
tried	O	O
to	O	O
include	O	O
this	O	O
shared	O	O
directory	O	O
in	O	O
all	O	O
my	O	O
loaders	O	O
but	O	O
still	O	O
no	O	O
luck	O	O

You	O	O
need	O	O
to	O	O
install	O	O
the	O	O
plugin	O	O
"	O	O
transform-runtime	O	B-Application
"	O	O

I	O	O
need	O	O
to	O	O
get	O	O
the	O	O
14	O	O
days	O	O
average	O	O
Col	O	B-Variable
1	O	I-Variable
and	O	O
update	O	O
Col	O	B-Variable
2	O	I-Variable
of	O	O
the	O	O
same	O	O
table	O	B-Data_Structure
.	O	O

So	O	O
if	O	O
you	O	O
look	O	O
at	O	O
Col	O	B-Variable
2	O	I-Variable
,	O	O
I	O	O
need	O	O
to	O	O
get	O	O
that	O	O
18.2	O	B-Value
%	O	I-Value
average	O	O
percentage	O	O
with	O	O
Col	O	B-Variable
1	O	I-Variable
data	O	O
between	O	O
10/29	O	B-Value
and	O	O
11/15	O	B-Value
date	O	O
range	O	O
on	O	O
column	O	B-Data_Structure
today	O	B-Value
.	O	O

I	O	O
am	O	O
so	O	O
confused	O	O
as	O	O
to	O	O
how	O	O
to	O	O
group	O	O
this	O	O
kind	O	O
of	O	O
function	O	O
in	O	O
an	O	O
update	O	B-Code_Block
statement	O	O
.	O	O

Anyone	O	O
has	O	O
a	O	O
clue	O	O
?	O	O

TABLE	O	B-Variable
1	O	I-Variable

It	O	O
is	O	O
recommended	O	O
to	O	O
store	O	O
the	O	O
average	O	O
value	O	O
as	O	O
decimal	O	B-Data_Type
instead	O	O
of	O	O
varchar	O	B-Data_Type
,	O	O
as	O	O
%	O	B-Code_Block
can	O	O
be	O	O
added	O	O
in	O	O
presentation	O	O
layer	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
query	O	O
that	O	O
does	O	O
the	O	O
calculation	O	O
,	O	O
substring	O	O
and	O	O
cast	O	O
was	O	O
needed	O	O
as	O	O
average	O	O
column	O	B-Data_Structure
is	O	O
varchar	O	B-Data_Type
.	O	O

EDIT	O	O
:	O	O

removed	O	O
substring	O	O
logic	O	O
,	O	O
as	O	O
they	O	O
are	O	O
float	O	B-Data_Type
columns	O	B-Data_Structure
,	O	O
as	O	O
per	O	O
OP	O	O
comments	O	O
.	O	O

EDIT	O	O
:	O	O

As	O	O
this	O	O
needs	O	O
to	O	O
be	O	O
done	O	O
for	O	O
each	O	O
date	O	B-Data_Type
,	O	O
it	O	O
can	O	O
be	O	O
done	O	O
using	O	O
cursor	O	B-Code_Block

I	O	O
ca	O	O
n't	O	O
made	O	O
Swipe	O	O
action	O	O
work	O	O
.	O	O

I	O	O
did	O	O
browsed	O	O
through	O	O
the	O	O
web	O	O
for	O	O
a	O	O
few	O	O
days	O	O
and	O	O
found	O	O
many	O	O
similar	O	O
questions	O	O
but	O	O
there	O	O
is	O	O
no	O	O
working	O	O
answer	O	O
.	O	O

Also	O	O
I	O	O
have	O	O
tried	O	O
TouchAction	O	B-Class
class	O	O
,	O	O
does	O	O
n't	O	O
work	O	O
as	O	O
well	O	O
.	O	O

I	O	O
have	O	O
Appium	O	B-Application
Version	O	B-Version
1.4.13	O	I-Version
(	O	O
Draco	O	O
)	O	O
and	O	O
using	O	O
Java	O	B-Language
,	O	O
TestNG	O	B-Library
framework	O	O
.	O	O

btw	O	O
I	O	O
made	O	O
scrolling	O	O
work	O	O
using	O	O
(	O	O
you	O	O
can	O	O
use	O	O
the	O	O
same	O	O
logic	O	O
as	O	O
a	O	O
pull	O	O
to	O	O
refresh	O	O
)	O	O
here	O	O
is	O	O
code	O	O
sample	O	O
.	O	O

//Method	O	O
names	O	O
explain	O	O
themselves	O	O
.	O	O

I	O	O
hope	O	O
it	O	O
works	O	O
.	O	O

driver.swipe(startingXCoordinate,StartingYCoordinate,EndXCoordinate,EndYCoordinate,timeForSwipe)	O	B-Function
;	O	I-Function

here	O	O
,	O	O
you	O	O
are	O	O
swipe	O	O
from	O	O
100th	O	O
X	O	B-Variable
coordinate	O	O
to	O	O
450th	O	O
X	O	B-Variable
coordinate.that	O	O
is	O	O
why	O	O
Y	O	B-Variable
coordinates	O	O
are	O	O
same	O	O
for	O	O
starting	O	O
and	O	O
ending	O	O
points	O	O
(	O	O
200	O	O
and	O	O
200	O	O
)	O	O
.	O	O

The	O	O
last	O	O
parameter	O	O
2	O	O
indicates	O	O
,	O	O
swipe	O	O
action	O	O
will	O	O
performs	O	O
2	O	O
seconds	O	O
.	O	O

Actually	O	O
we	O	O
have	O	O
to	O	O
mention	O	O
2000	O	O
milliseconds	O	O
for	O	O
2	O	O
seconds	O	O
.	O	O

So	O	O
,	O	O
I	O	O
have	O	O
an	O	O
image	O	B-User_Interface_Element
like	O	O
this	O	O
:	O	O
http://imgur.com/qBGvP	O	O

It	O	O
always	O	O
looks	O	O
like	O	O
that	O	O
,	O	O
although	O	O
the	O	O
numbers	O	O
might	O	O
differ	O	O
.	O	O

It	O	O
's	O	O
a	O	O
gif	O	B-File_Type
,	O	O
the	O	O
background	O	B-User_Interface_Element
is	O	O
transparent	O	O
,	O	O
and	O	O
the	O	O
numbers	O	O
white	O	O
.	O	O

I	O	O
need	O	O
some	O	O
way	O	O
to	O	O
parse	O	O
it	O	O
to	O	O
numbers	O	O
to	O	O
be	O	O
used	O	O
in	O	O
a	O	O
script	O	O
.	O	O

Any	O	O
ideas	O	O
how	O	O
I	O	O
can	O	O
solve	O	O
this	O	O
?	O	O

If	O	O
the	O	O
font	O	O
is	O	O
monospace	O	O
and	O	O
the	O	O
position	O	O
of	O	O
the	O	O
number	O	O
in	O	O
the	O	O
image	O	B-User_Interface_Element
is	O	O
constant	O	O
,	O	O
it	O	O
should	O	O
be	O	O
trivial	O	O
to	O	O
break	O	O
down	O	O
the	O	O
image	O	B-User_Interface_Element
into	O	O
individual	O	O
digits	O	O
.	O	O

Then	O	O
,	O	O
output	O	O
each	O	O
image	O	B-User_Interface_Element
to	O	O
some	O	O
format	O	O
(	O	O
PNG	O	B-File_Type
is	O	O
probably	O	O
best	O	O
)	O	O
and	O	O
compare	O	O
the	O	O
files	O	O
.	O	O

This	O	O
works	O	O
best	O	O
if	O	O
you	O	O
have	O	O
the	O	O
same	O	O
script	O	O
save	O	O
known	O	O
digits	O	O
and	O	O
then	O	O
compare	O	O
them	O	O
to	O	O
the	O	O
actual	O	O
case	O	O
data	O	O
.	O	O

If	O	O
this	O	O
is	O	O
not	O	O
possible	O	O
,	O	O
you	O	O
will	O	O
have	O	O
to	O	O
do	O	O
a	O	O
pixel-for-pixel	O	O
comparison	O	O
,	O	O
which	O	O
is	O	O
n't	O	O
that	O	O
big	O	O
of	O	O
a	O	O
problem	O	O
on	O	O
such	O	O
small	O	O
images	O	B-User_Interface_Element
.	O	O

Essentially	O	O
you	O	O
're	O	O
making	O	O
an	O	O
extremely	O	O
primitive	O	O
OCR	O	O
by	O	O
having	O	O
a	O	O
program	O	O
that	O	O
's	O	O
along	O	O
the	O	O
lines	O	O
of	O	O
"	O	O
this	O	O
is	O	O
what	O	O
the	O	O
digits	O	O
look	O	O
like	O	O
,	O	O
so	O	O
what	O	O
number	O	O
is	O	O
this	O	O
?	O	O
"	O	O

I	O	O
have	O	O
a	O	O
situation	O	O
where	O	O
I	O	O
have	O	O
2	O	O
tables	O	B-Data_Structure
'	O	O
users	O	B-Variable
'	O	O
and	O	O
'	O	O
roles	O	B-Variable
'	O	O
table	O	B-Data_Structure
where	O	O
they	O	O
are	O	O
related	O	O
to	O	O
each	O	O
other	O	O
by	O	O
many	O	O
to	O	O
many	O	O
relationship	O	O
,	O	O
many	O	O
to	O	O
many	O	O
relationship	O	O
stored	O	O
in	O	O
the	O	O
3rd	O	O
table	O	B-Data_Structure
called	O	O
'	O	O
UserRoles	O	B-Variable
'	O	O
.	O	O

I	O	O
want	O	O
to	O	O
write	O	O
a	O	O
query	O	O
to	O	O
show	O	O
distinct	O	O
users	O	O
but	O	O
show	O	O
all	O	O
the	O	O
roles	O	O
associated	O	O
with	O	O
a	O	O
particular	O	O
user	O	O
in	O	O
one	O	O
single	O	O
row	O	B-Data_Structure
.	O	O

For	O	O
example	O	O
,	O	O
the	O	O
3	O	O
tables	O	B-Data_Structure
as	O	O
follows	O	O
:	O	O

so	O	O
how	O	O
can	O	O
I	O	O
write	O	O
a	O	O
query	O	O
that	O	O
displays	O	O
a	O	O
row	O	B-Data_Structure
as	O	O
below	O	O
with	O	O
roles	O	O
separated	O	O
with	O	O
semicolons	O	O
for	O	O
every	O	O
users	O	O
?	O	O

If	O	O
we	O	O
are	O	O
to	O	O
believe	O	O
your	O	O
question	O	O
exactly	O	O
and	O	O
assume	O	O
you	O	O
are	O	O
using	O	O
MySQL	O	B-Application
:	O	O

I	O	O
have	O	O
my	O	O
web	O	O
application	O	O
asp.net	O	B-Library
everything	O	O
is	O	O
working	O	O
well	O	O
but	O	O
when	O	O
i	O	O
publish	O	O
it	O	O
from	O	O
another	O	O
computer	O	B-Device
to	O	O
localhost	O	O
it	O	O
throws	O	O
an	O	O
error	O	O

and	O	O
also	O	O
Uncaught	B-Code_Block	B-Output_Block
ReferenceError	I-Code_Block	I-Output_Block
:	I-Code_Block	I-Output_Block
WebForm_FireDefaultButton	I-Code_Block	I-Output_Block
is	I-Code_Block	I-Output_Block
not	I-Code_Block	I-Output_Block
defined	I-Code_Block	I-Output_Block

in	O	O
my	O	O
code	O	O
behind	O	O
i	O	O
have	O	O
textbox1.Focus()	B-Code_Block	B-Function

so	O	O
what	O	O
's	O	O
the	O	O
problem	O	O
and	O	O
how	O	O
to	O	O
fix	O	O
it	O	O
?	O	O

This	O	O
happens	O	O
also	O	O
when	O	O
webresource.axd	O	B-File_Name
file	O	O
is	O	O
inaccessible	O	O
.	O	O

Sometimes	O	O
Firewall	O	B-Application
policy	O	O
of	O	O
Web	O	B-Application
Server	O	I-Application
can	O	O
create	O	O
this	O	O
issue	O	O
.	O	O

Please	O	O
ensure	O	O
this	O	O
file	O	O
is	O	O
accessible	O	O
.	O	O

If	O	O
this	O	O
file	O	O
is	O	O
accessible	O	O
then	O	O
look	O	O
solutions	O	O
provided	O	O
in	O	O
other	O	O
answers	O	O
of	O	O
this	O	O
question	O	O
.	O	O

Try	O	O
to	O	O
turn	O	O
off	O	O
the	O	O
ISAPI	O	B-File_Name
filters	O	I-File_Name
.	O	O

I	O	O
am	O	O
working	O	O
with	O	O
two	O	O
branches	O	O
test	O	B-Code_Block
and	O	O
main	O	B-Code_Block
.	O	O

So	O	O
,	O	O
being	O	O
on	O	O
the	O	O
main	O	B-Code_Block
branch	O	O
,	O	O
I	O	O
did	O	O
:	O	O

And	O	O
everything	O	O
went	O	O
fine	O	O
.	O	O

All	O	O
the	O	O
changes	O	O
were	O	O
merged	O	O
.	O	O

Then	O	O
to	O	O
push	O	B-Code_Block
it	O	O
to	O	O
the	O	O
remote	O	O
main	O	B-Code_Block
,	O	O
I	O	O
did	O	O
:	O	O

But	O	O
it	O	O
seems	O	O
like	O	O
that	O	O
did	O	O
nothing	O	O
,	O	O
it	O	O
said	O	O
:	O	O

I	O	O
do	O	O
n't	O	O
think	O	O
it	O	O
should	O	O
be	O	O
showing	O	O
zero	O	O
above	O	O
as	O	O
Total	O	O
if	O	O
the	O	O
push	O	B-Code_Block
did	O	O
go	O	O
through	O	O
fine	O	O
.	O	O

How	O	O
can	O	O
I	O	O
push	O	O
my	O	O
main	O	B-Code_Block
branch	O	O
?	O	O

That	O	O
just	O	O
means	O	O
git	O	B-Application
does	O	O
not	O	O
write	O	O
any	O	O
objects	O	O
.	O	O

That	O	O
happens	O	O
when	O	O
all	O	O
objects	O	O
are	O	O
already	O	O
on	O	O
remote	O	O
and	O	O
when	O	O
you	O	O
merge	O	O
you	O	O
just	O	O
move	O	O
label	O	O
'	O	O
main	O	B-Code_Block
'	O	O
to	O	O
the	O	O
latest	O	O
commit	O	B-Code_Block
.	O	O

I	O	O
just	O	O
made	O	O
a	O	O
quick	O	O
test	O	O
to	O	O
prove	O	O
that	O	O
:	O	O

I	O	O
have	O	O
implemented	O	O
the	O	O
jQuery	O	B-Library
UI	O	B-Class
Menu	O	I-Class
on	O	O
this	O	O
page	O	O
:	O	O
http://dormfair.com/about.php	O	O

As	O	O
you	O	O
can	O	O
see	O	O
,	O	O
the	O	O
border	O	B-User_Interface_Element
color	O	O
everywhere	O	O
on	O	O
the	O	O
website	O	O
is	O	O
light	O	O
blue	O	O
(	O	O
#B7DDF2	O	O
)	O	O

BUT	O	O
the	O	O
border	O	B-User_Interface_Element
color	O	O
in	O	O
the	O	O
jQuery	O	B-Library
UI	O	B-Class
menu	O	I-Class
is	O	O
grey	O	B-Value
.	O	O

I	O	O
've	O	O
been	O	O
trying	O	O
to	O	O
change	O	O
that	O	O
grey	O	O
to	O	O
color	O	O
to	O	O
#B7DDF2	O	O
for	O	O
a	O	O
long	O	O
time	O	O
to	O	O
no	O	O
avail	O	O
.	O	O

I	O	O
've	O	O
searched	O	O
the	O	O
web	O	O
and	O	O
StackOverflow	O	B-Website
as	O	O
well	O	O
.	O	O

Hope	O	O
someone	O	O
can	O	O
help	O	O
!	O	O

Your	O	O
menu	O	B-User_Interface_Element
's	O	O
border	O	B-User_Interface_Element
color	O	O
is	O	O
being	O	O
called	O	O
from	O	O
the	O	O
.ui-widget-content	O	B-Class
class	O	O
on	O	O
line	O	O
800	O	O
in	O	O
jquery-ui.css	O	B-File_Name
.	O	O

You	O	O
can	O	O
modify	O	O
it	O	O
from	O	O
there	O	O
.	O	O

I	O	O
was	O	O
able	O	O
to	O	O
fix	O	O
it	O	O
by	O	O
adding	O	O
border	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
1px	I-Code_Block	I-Code_Block
solid	I-Code_Block	I-Code_Block
#B7DDF2	I-Code_Block	I-Code_Block
to	O	O
the	O	O
CSS	O	B-Language
of	O	O
nav	B-Code_Block	B-Code_Block
(	O	O
or	O	O
.ui-menu	O	B-Code_Block
ui-widget	O	I-Code_Block
ui-widget-content	O	I-Code_Block
ui-corner-all	O	I-Code_Block
)	O	O
:	O	O

(	O	O
CSS	O	B-Language
)	O	O

or	O	O

I	O	O
have	O	O
a	O	O
date	O	O
input	O	O
box	O	B-User_Interface_Element
with	O	O
a	O	O
pop-up	O	B-User_Interface_Element
calendar	O	I-User_Interface_Element
date	O	I-User_Interface_Element
selector	O	I-User_Interface_Element
.	O	O

When	O	O
I	O	O
click	O	O
on	O	O
the	O	O
date	O	O
box	O	B-User_Interface_Element
the	O	O
popup	O	B-User_Interface_Element
calendar	O	I-User_Interface_Element
appears	O	O
.	O	O

Then	O	O
I	O	O
can	O	O
either	O	O

Select	O	O
a	O	O
date	O	O
.	O	O

The	O	O
date	O	O
appears	O	O
in	O	O
the	O	O
date	O	O
box	O	B-User_Interface_Element
and	O	O
the	O	O
calendar	O	B-User_Interface_Element
appears	O	O

Click	O	O
outside	O	O
the	O	O
calendar	O	B-User_Interface_Element
.	O	O

The	O	O
calendar	O	B-User_Interface_Element
disappears	O	O
.	O	O

This	O	O
is	O	O
via	O	O
a	O	O
mouseup	O	B-Class
event	O	I-Class
that	O	O
checks	O	O
what	O	O
was	O	O
clicked	O	O
.	O	O

Type	O	O
a	O	O
date	O	O
in	O	O
the	O	O
date	O	O
box	O	B-User_Interface_Element
.	O	O

What	O	O
I	O	O
want	O	O
:	O	O
When	O	O
I	O	O
type	O	O
a	O	O
date	O	O
in	O	O
the	O	O
date	O	O
box	O	B-User_Interface_Element
and	O	O
tab	O	B-User_Interface_Element
away	O	O
,	O	O
then	O	O
I	O	O
want	O	O
the	O	O
calendar	O	B-User_Interface_Element
to	O	O
disappear	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
this	O	O
by	O	O
adding	O	O
an	O	O
onBlur	O	B-Class
event	O	I-Class
to	O	O
the	O	O
date	O	O
box	O	B-User_Interface_Element
.	O	O

This	O	O
event	O	B-Class
made	O	O
the	O	O
calendar	O	B-User_Interface_Element
go	O	O
away	O	O
.	O	O

However	O	O
,	O	O
this	O	O
means	O	O
that	O	O
the	O	O
calendar	O	B-User_Interface_Element
disappears	O	O
when	O	O
I	O	O
click	O	O
inside	O	O
the	O	O
calendar	O	B-User_Interface_Element
,	O	O
which	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
.	O	O

So	O	O
I	O	O
need	O	O
some	O	O
kind	O	O
of	O	O
date	O	O
box	O	B-User_Interface_Element
onBlur	O	B-Class
event	O	I-Class
that	O	O
checks	O	O
whether	O	O
the	O	O
calendar	O	B-User_Interface_Element
was	O	O
clicked/has	O	O
focus	O	O
.	O	O

Or	O	O
something	O	O
else	O	O
altogether	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
check	O	O
whether	O	O
the	O	O
calendar	O	B-User_Interface_Element
has	O	O
focus	O	O
.	O	O

Using	O	O
jquery	O	B-Library
I	O	O
did	O	O
:	O	O

This	O	O
did	O	O
nothing	O	O
useful	O	O
.	O	O

Normally	O	O
I	O	O
'd	O	O
use	O	O
an	O	O
onCLick	O	B-Class
event	O	I-Class
to	O	O
see	O	O
what	O	O
was	O	O
clicked	O	O
,	O	O
but	O	O
then	O	O
I	O	O
'd	O	O
need	O	O
an	O	O
OnClick	O	B-Class
and	O	O
an	O	O
OnBlur	O	B-Class
event	O	I-Class
and	O	O
the	O	O
OnBlur	O	B-Class
event	O	I-Class
would	O	O
need	O	O
the	O	O
result	O	O
of	O	O
the	O	O
onClick	O	B-Class
event	O	I-Class
.	O	O

However	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
seem	O	O
to	O	O
be	O	O
able	O	O
to	O	O
control	O	O
what	O	O
gets	O	O
called	O	O
first	O	O
.	O	O

I	O	O
tried	O	O
using	O	O
the	O	O
Chrome	O	B-Application
and	O	O
IE	O	B-Application
JS	O	B-Language
debuggers	O	O
to	O	O
see	O	O
what	O	O
is	O	O
going	O	O
on	O	O
,	O	O
but	O	O
adding	O	O
breakpoints	O	O
seem	O	O
to	O	O
change	O	O
what	O	O
functions	O	O
are	O	O
called	O	O
,	O	O
which	O	O
makes	O	O
no	O	O
sense	O	O
.	O	O

Adding	O	O
a	O	O
breakpoint	O	O
in	O	O
the	O	O
onBlur	O	B-Class
event	O	I-Class
:	O	O
it	O	O
stops	O	O
there	O	O
.	O	O

Adding	O	O
a	O	O
breakpoint	O	O
in	O	O
the	O	O
mouseUp	O	B-Class
event	O	I-Class
:	O	O
it	O	O
stops	O	O
there	O	O
.	O	O

Adding	O	O
a	O	O
breakpoint	O	O
in	O	O
both	O	O
events	O	B-Class
:	O	O
it	O	O
only	O	O
stops	O	O
in	O	O
the	O	O
onBlur	O	B-Class
event	O	I-Class
even	O	O
though	O	O
I	O	O
do	O	O
continue	O	O
.	O	O

I	O	O
have	O	O
to	O	O
click	O	O
a	O	O
second	O	O
time	O	O
to	O	O
trigger	O	O
the	O	O
mouseUp	O	B-Class
event	O	I-Class
.	O	O

http://jsfiddle.net/alaa13212/Gs5Y2/	O	O

to	O	O
use	O	O
blur	B-Code_Block	O
focusout	O	B-Function
in	O	O
jQuery	O	B-Library
.	O	O

must	O	O
focus	O	O
on	O	O
element	O	O
(	O	O
use	O	O
tabindex	B-Code_Block	B-Variable
attribute	O	O
for	O	O
focusable	O	O
)	O	O

I	O	O
have	O	O
two	O	O
divs	O	B-HTML_XML_Tag
in	O	O
my	O	O
HTML	O	B-Language
one	O	O
will	O	O
show	O	O
embedded	O	O
video	O	B-User_Interface_Element
from	O	O
youtube	O	B-Website
and	O	O
other	O	O
will	O	O
show	O	O
contact-us	O	O
input	O	O
form	O	B-User_Interface_Element
.	O	O

There	O	O
is	O	O
also	O	O
a	O	O
link	O	O
"	O	O
Contact	O	O
Us	O	O
"	O	O
above	O	O
the	O	O
video	O	B-User_Interface_Element
.	O	O

Initially	O	O
when	O	O
page	O	O
is	O	O
loaded	O	O
video	O	B-User_Interface_Element
is	O	O
displayed	O	O
but	O	O
when	O	O
user	O	O
clicks	O	O
on	O	O
the	O	O
"	O	O
Contact	O	O
Us	O	O
"	O	O
link	O	B-User_Interface_Element
the	O	O
video	O	B-User_Interface_Element
should	O	O
get	O	O
hidden	O	O
and	O	O
contact-us	O	O
input	O	O
form	O	B-User_Interface_Element
should	O	O
be	O	O
displayed	O	O
in	O	O
its	O	O
place	O	O
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
do	O	O
this	O	O
using	O	O
jQuery	O	B-Library
.	O	O

Use	O	O
jQuery	O	B-Library
's	O	O
toggle()	B-Code_Block	B-Function
or	O	O
any	O	O
of	O	O
the	O	O
other	O	O
methods	O	O
to	O	O
show	O	O
and	O	O
hide	O	O
your	O	O
<	B-Code_Block	B-HTML_XML_Tag
div>s	I-Code_Block	I-HTML_XML_Tag
.	O	O

Here	O	O
's	O	O
a	O	O
simple	O	O
example	O	O
(	O	O
http://jsfiddle.net/8wbXV/	O	O
)	O	O
:	O	O

This	O	O
is	O	O
just	O	O
a	O	O
simple	O	O
example	O	O
.	O	O

The	O	O
selector	O	O
on	O	O
the	O	O
link	O	O
$('a')	B-Code_Block	B-Code_Block
is	O	O
not	O	O
what	O	O
you	O	O
'd	O	O
normally	O	O
use	O	O
,	O	O
but	O	O
I	O	O
use	O	O
it	O	O
here	O	O
just	O	O
for	O	O
illustration	O	O
.	O	O

Have	O	O
a	O	O
look	O	O
at	O	O
the	O	O
jQuery	O	B-Library
API	O	I-Library
for	O	O
more	O	O
details	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
use	O	O
a	O	O
jQuery	O	B-Library
rich	O	B-Application
text	O	I-Application
editor	O	I-Application
on	O	O
my	O	O
website	O	O
.	O	O

I	O	O
decided	O	O
to	O	O
use	O	O
Ueditor	O	B-Application
.	O	O

I	O	O
used	O	O
the	O	O
code	O	O
exactly	O	O
as	O	O
shown	O	O
in	O	O
the	O	O
demo	O	O
to	O	O
try	O	O
it	O	O
out	O	O
.	O	O

Problem	O	O
is	O	O
that	O	O
when	O	O
I	O	O
try	O	O
and	O	O
type	O	O
multiple	O	O
paragraphs	O	O
into	O	O
the	O	O
form	O	O
,	O	O
it	O	O
will	O	O
flip	O	O
the	O	O
order	O	O
.	O	O

Example	O	O

I	O	O
type	O	O
-->	O	O

Line	O	O
1	O	O

Line	O	O
2	O	O

On	O	O
submit	O	O
-->	O	O

Line	O	O
2	O	O

Line	O	O
1	O	O

I	O	O
do	O	O
not	O	O
understand	O	O
why	O	O
it	O	O
is	O	O
doing	O	O
this	O	O
.	O	O

Can	O	O
anybody	O	O
help	O	O
me	O	O
?	O	O

Is	O	O
there	O	O
a	O	O
better	O	O
jQuery	O	B-Library
text	O	B-Application
editor	O	I-Application
that	O	O
I	O	O
should	O	O
be	O	O
using	O	O
?	O	O

UPDATE	O	O
:	O	O
for	O	O
the	O	O
people	O	O
that	O	O
run	O	O
into	O	O
this	O	O
problem	O	O
in	O	O
the	O	O
future	O	O
!	O	O

I	O	O
decided	O	O
to	O	O
go	O	O
with	O	O
jWysiwyg	O	B-Application
Text	O	I-Application
editor	O	I-Application
.	O	O

I	O	O
have	O	O
played	O	O
around	O	O
with	O	O
probably	O	O
every	O	O
single	O	O
one	O	O
by	O	O
now	O	O
and	O	O
it	O	O
is	O	O
the	O	O
best	O	O
,	O	O
in	O	O
my	O	O
opinion	O	O
at	O	O
least	O	O
.	O	O

It	O	O
seems	O	O
that	O	O
for	O	O
every	O	O
one	O	O
of	O	O
these	O	O
rich	O	B-Application
text	O	I-Application
editors	O	I-Application
you	O	O
need	O	O
to	O	O
have	O	O
a	O	O
message	O	O
from	O	O
the	O	O
beginning	O	O
in	O	O
the	O	O
box	O	O
inside	O	O
p	O	B-HTML_XML_Tag
tags	O	O
for	O	O
it	O	O
to	O	O
work	O	O
properly	O	O
in	O	O
Chrome	O	B-Application
and	O	O
safari	O	B-Application
.	O	O

Weird	O	O
wish	O	O
I	O	O
knew	O	O
why	O	O
?	O	O

I	O	O
am	O	O
just	O	O
getting	O	O
to	O	O
grips	O	O
with	O	O
Autofac	O	B-Library
,	O	O
and	O	O
have	O	O
the	O	O
following	O	O
questions	O	O
:	O	O

Guice	O	B-Library
,	O	O
for	O	O
example	O	O
,	O	O
has	O	O
its	O	O
own	O	O
annotations/ways	O	O
when	O	O
you	O	O
pass	O	O
parameters	O	O
into	O	O
constructors	O	O
(	O	O
they	O	O
are	O	O
handled	O	O
by	O	O
Guice	O	B-Library
)	O	O
.	O	O

Does	O	O
autofac	O	B-Library
do	O	O
anything	O	O
similar	O	O
?	O	O

This	O	O
is	O	O
in	O	O
th	O	O
class	O	O
definition	O	O
,	O	O
not	O	O
when	O	O
I	O	O
instantiate	O	O
the	O	O
class	O	O
.	O	O

When	O	O
I	O	O
am	O	O
using	O	O
classes	O	O
and	O	O
want	O	O
to	O	O
get	O	O
other	O	O
types	O	O
,	O	O
do	O	O
I	O	O
setup	O	O
the	O	O
container	O	B-Variable
each	O	O
time	O	O
(	O	O
I	O	O
am	O	O
assuming	O	O
this	O	O
should	O	O
be	O	O
a	O	O
static	O	B-Data_Type
member	O	O
?	O	O
)	O	O
?	O	O

I	O	O
am	O	O
currently	O	O
developing	O	O
an	O	O
application	O	O
in	O	O
C#	O	B-Language
where	O	O
I	O	O
display	O	O
a	O	O
MessageBox	O	B-Class
.	O	O

How	O	O
can	O	O
I	O	O
automatically	O	O
close	O	O
the	O	O
message	O	B-User_Interface_Element
box	O	I-User_Interface_Element
after	O	O
a	O	O
couple	O	O
of	O	O
seconds	O	O
?	O	O

You	O	O
will	O	O
need	O	O
to	O	O
create	O	O
your	O	O
own	O	O
Window	O	B-User_Interface_Element
,	O	O
with	O	O
the	O	O
code-behind	O	O
containing	O	O
a	O	O
loaded	O	O
handler	O	O
and	O	O
a	O	O
timer	O	B-Class
handler	O	O
as	O	O
follows	O	O
:	O	O

You	O	O
can	O	O
then	O	O
make	O	O
your	O	O
custom	O	O
message	O	B-User_Interface_Element
box	O	I-User_Interface_Element
appear	O	O
by	O	O
calling	O	O
ShowDialog()	O	B-Function
:	O	O

The	O	O
System.Windows.MessageBox.Show()	O	B-Function
method	O	O
has	O	O
an	O	O
overload	O	O
which	O	O
takes	O	O
an	O	O
owner	O	O
Window	O	B-User_Interface_Element
as	O	O
the	O	O
first	O	O
parameter	O	O
.	O	O

If	O	O
we	O	O
create	O	O
an	O	O
invisible	O	O
owner	O	O
Window	O	B-User_Interface_Element
which	O	O
we	O	O
then	O	O
close	O	O
after	O	O
a	O	O
specified	O	O
time	O	O
,	O	O
it	O	O
's	O	O
child	O	O
message	O	B-User_Interface_Element
box	O	I-User_Interface_Element
would	O	O
close	O	O
as	O	O
well	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
complete	O	O
answer	O	O
:	O	O
https://stackoverflow.com/a/20098381/2190520	O	O

I	O	O
've	O	O
been	O	O
using	O	O
AsyncTask	O	B-Class
for	O	O
some	O	O
time	O	O
already	O	O
and	O	O
it	O	O
never	O	O
stopped	O	O
working	O	O
after	O	O
some	O	O
time	O	O
like	O	O
in	O	O
this	O	O
case	O	O
.	O	O

After	O	O
I	O	O
open	O	O
my	O	O
app	O	O
for	O	O
the	O	O
first	O	O
time	O	O
everything	O	O
works	O	O
fine	O	O
and	O	O
I	O	O
can	O	O
execute	O	O
AsyncTask	O	B-Class
many	O	O
times	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
after	O	O
I	O	O
close	O	O
my	O	O
app	O	O
and	O	O
put	O	O
device	O	O
to	O	O
stand	O	O
still	O	O
for	O	O
a	O	O
couple	O	O
of	O	O
minutes	O	O
,	O	O
AsyncTask	O	B-Class
becomes	O	O
impossible	O	O
to	O	O
execute	O	O
.	O	O

Usually	O	O
it	O	O
takes	O	O
for	O	O
1-2	O	O
seconds	O	O
to	O	O
load	O	O
data	O	O
,	O	O
but	O	O
in	O	O
this	O	O
case	O	O
it	O	O
takes	O	O
for	O	O
a	O	O
couple	O	O
of	O	O
minutes	O	O
.	O	O

This	O	O
is	O	O
my	O	O
AsyncTask	O	B-Class
:	O	O

One	O	O
more	O	O
thing	O	O
I	O	O
've	O	O
noticed	O	O
is	O	O
that	O	O
when	O	O
I	O	O
press	O	O
back	B-Code_Block	B-Keyboard_IP
or	O	O
home	B-Code_Block	B-Keyboard_IP
buttons	O	B-User_Interface_Element
on	O	O
my	O	O
device	O	O
and	O	O
go	O	O
back	O	O
on	O	O
home	O	O
screen	O	O
,	O	O
in	O	O
LogCat	O	B-Application
I	O	O
see	O	O
this	O	O
warning	O	O
:	O	O

I	O	O
thought	O	O
that	O	O
this	O	O
warning	O	O
only	O	O
appears	O	O
if	O	O
I	O	O
do	O	O
n't	O	O
close	O	O
my	O	O
connection	O	O
but	O	O
connection.disconnect()	B-Code_Block	B-Function
;	I-Code_Block	I-Function
is	O	O
always	O	O
called	O	O
inside	O	O
finally	O	O
block	O	O
.	O	O

This	O	O
could	O	O
maybe	O	O
be	O	O
a	O	O
part	O	O
of	O	O
the	O	O
problem	O	O
.	O	O

What	O	O
do	O	O
you	O	O
think	O	O
could	O	O
be	O	O
a	O	O
problem	O	O
?	O	O

UPDATE1	O	O

Now	O	O
I	O	O
noticed	O	O
that	O	O
after	O	O
a	O	O
couple	O	O
of	O	O
minutes	O	O
I	O	O
receive	O	O
the	O	O
following	O	O
exception	O	B-Class
:	O	O

i	O	O
have	O	O
this	O	O
file	O	O
and	O	O
on	O	O
a	O	O
click	O	O
event	O	O
it	O	O
calls	O	O
a	O	O
php	O	B-Language
function	O	O
through	O	O
$.post{}	B-Code_Block	B-Function

i	O	O
have	O	O
used	O	O
alert(data)	B-Code_Block	B-Function
to	O	O
recognized	O	O
errors	O	O
.	O	O

,	O	O
but	O	O
shows	O	O
a	O	O
blank	O	O
page	O	O
.	O	O

I	O	O
'm	O	O
lost	O	O
here	O	O
no	O	O
idea	O	O
how	O	O
to	O	O
solve	O	O
this	O	O
without	O	O
any	O	O
errors	O	O
displaying.	O	O
.	O	O
Help	O	O
much	O	O
appreciated	O	O
.	O	O

p.s	O	O
in	O	O
php	O	B-Language
info	O	O
error	O	O
reporting	O	O
is	O	O
off	O	O
.	O	O

i	O	O
tried	O	O
htaccess	O	B-File_Type
on	O	O
my	O	O
subfolder	O	O
without	O	O
no	O	O
luck	O	O
either	O	O
.	O	O

Make	O	O
sure	O	O
of	O	O
the	O	O
following	O	O
:	O	O

error_reporting(E_ALL)	B-Code_Block	B-Function
is	O	O
right	O	O
after	O	O
<	B-Code_Block	B-HTML_XML_Tag
?	I-Code_Block	I-HTML_XML_Tag
php	I-Code_Block	I-HTML_XML_Tag
tag	O	O

There	O	O
is	O	O
indeed	O	O
a	O	O
PHP	O	B-Language
error	O	O
-	O	O
try	O	O
to	O	O
deliberately	O	O
make	O	O
one	O	O
.	O	O

Maybe	O	O
the	O	O
error	O	O
is	O	O
elsewhere	O	O
,	O	O
not	O	O
your	O	O
PHP	O	B-Language
but	O	O
the	O	O
.htaccess	O	B-File_Type
file	O	O
(	O	O
since	O	O
you	O	O
're	O	O
getting	O	O
500	O	B-Error_Name
)	O	O
,	O	O
or	O	O
maybe	O	O
it	O	O
's	O	O
a	O	O
logical	O	O
error	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
find	O	O
the	O	O
upcoming	O	O
birthdays	O	O
in	O	O
a	O	O
week	O	O
on	O	O
iOS	O	B-Operating_System
.	O	O

I	O	O
pulled	O	O
the	O	O
birthday	O	O
data	O	O
from	O	O
Facebook	O	B-Website
and	O	O
trimmed	O	O
the	O	O
year	O	O
part	O	O
(	O	O
since	O	O
it	O	O
may	O	O
not	O	O
be	O	O
available	O	O
for	O	O
some	O	O
users	O	O
depending	O	O
on	O	O
user	O	O
's	O	O
privacy	O	O
settings	O	O
)	O	O
hence	O	O
the	O	O
birthday	O	O
data	O	O
is	O	O
an	O	O
NSString	B-Code_Block	B-Class
with	O	O
date	O	O
format	O	O
@	B-Code_Block	B-Code_Block
"	I-Code_Block	I-Code_Block
MM/dd	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block

where	O	O
dateFormatterWithFormat	B-Code_Block	B-Class
:	I-Code_Block	I-Class
is	O	O
a	O	O
category	O	O
on	O	O
NSDateFormatter	B-Code_Block	B-Class
:	O	O

2	O	O
questions	O	O
here	O	O
:	O	O

1	O	O
-	O	O
I	O	O
have	O	O
a	O	O
bug	O	O
in	O	O
this	O	O
code	O	O
,	O	O
if	O	O
there	O	O
is	O	O
less	O	O
than	O	O
a	O	O
week	O	O
to	O	O
the	O	O
new	O	O
year	O	O
,	O	O
I	O	O
wo	O	O
n't	O	O
be	O	O
able	O	O
to	O	O
display	O	O
birthdays	O	B-Variable
in	O	O
the	O	O
new	O	O
year	O	O
since	O	O
I	O	O
'm	O	O
setting	O	O
the	O	O
year	O	O
of	O	O
the	O	O
birthday	O	B-Variable
to	O	O
the	O	O
current	O	O
year	O	O
and	O	O
difference.day	B-Code_Block	B-Variable
will	O	O
be	O	O
way	O	O
less	O	O
than	O	O
0	O	B-Value
for	O	O
the	O	O
birthdays	O	B-Variable
in	O	O
the	O	O
new	O	O
year	O	O
.	O	O

How	O	O
do	O	O
I	O	O
go	O	O
about	O	O
fixing	O	O
that	O	O
?	O	O

2	O	O
-	O	O
As	O	O
you	O	O
can	O	O
see	O	O
from	O	O
the	O	O
above	O	O
snippet	O	O
I	O	O
'm	O	O
doing	O	O
a	O	O
lot	O	O
of	O	O
dancing	O	O
:	O	O
first	O	O
I	O	O
get	O	O
today	O	O
's	O	O
date	O	O
and	O	O
time	O	O
with	O	O
[	B-Code_Block	B-Class
NSDate	I-Code_Block	I-Class
date	I-Code_Block	I-Class
]	I-Code_Block	I-Class
,	O	O
then	O	O
I	O	O
rip	O	O
it	O	O
to	O	O
its	O	O
components	O	O
and	O	O
assemble	O	O
it	O	O
back	O	O
to	O	O
an	O	O
NSDate	B-Code_Block	B-Class
with	O	O
a	O	O
time	O	O
at	O	O
noon	O	O
rather	O	O
than	O	O
the	O	O
current	O	O
time	O	O
.	O	O

The	O	O
reason	O	O
I	O	O
'm	O	O
doing	O	O
this	O	O
is	O	O
that	O	O
if	O	O
[	B-Code_Block	B-Class
NSDate	I-Code_Block	I-Class
date	I-Code_Block	I-Class
]	I-Code_Block	I-Class
returns	O	O
a	O	O
date	O	O
whose	O	O
time	O	O
is	O	O
say	O	O
23:00:00	O	B-Value
,	O	O
and	O	O
if	O	O
the	O	O
birthday	O	O
time	O	O
is	O	O
00:00:00	O	B-Value
(	O	O
1	O	O
hour	O	O
later	O	O
,	O	O
meaning	O	O
the	O	O
birthday	O	O
is	O	O
tomorrow	O	O
)	O	O
,	O	O
then	O	O
difference.day	B-Code_Block	B-Class
equals	O	O
0	B-Code_Block	B-Value
instead	O	O
of	O	O
the	O	O
desired	O	O
1	B-Code_Block	B-Value
.	O	O

Is	O	O
what	O	O
I	O	O
did	O	O
in	O	O
the	O	O
above	O	O
snippet	O	O
the	O	O
proper	O	O
way	O	O
of	O	O
doing	O	O
this	O	O
?	O	O

I	O	O
think	O	O
I	O	O
might	O	O
be	O	O
doing	O	O
too	O	O
much	O	O
work	O	O
for	O	O
something	O	O
seemingly	O	O
so	O	O
simple	O	O
,	O	O
how	O	O
would	O	O
you	O	O
fix	O	O
this	O	O
arrangement	O	O
so	O	O
that	O	O
I	O	O
do	O	O
n't	O	O
have	O	O
to	O	O
slice	O	O
today	B-Code_Block	B-Variable
and	O	O
birthday	B-Code_Block	B-Variable
into	O	O
components	O	O
and	O	O
put	O	O
them	O	O
back	O	O
into	O	O
an	O	O
NSDate	B-Code_Block	B-Class
?	O	O

Set	O	O
the	O	O
right	O	O
year	O	O
for	O	O
each	O	O
birthdayComponents	O	B-Variable
object	O	O
:	O	O

How	O	O
do	O	O
I	O	O
refactor	O	O
a	O	O
class	O	O
expression	O	O
with	O	O
ES5	O	B-Language
prototype	O	O
syntax	O	O
?	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
extend	O	O
a	O	O
native	O	O
class	O	O
using	O	O
a	O	O
class	O	O
expression	O	O
.	O	O

This	O	O
code	O	O
works	O	O
fine	O	O
but	O	O
extending	O	O
native	O	O
classes	O	O
is	O	O
not	O	O
supported	O	O
by	O	O
babel	O	O
and	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
transpile	O	O
my	O	O
code	O	O
to	O	O
ES5	O	B-Language
in	O	O
the	O	O
future	O	O
.	O	O

This	O	O
is	O	O
code	O	O
taken	O	O
off	O	O
of	O	O
google	O	B-Website
's	O	O
custom	O	O
elements	O	O
primer	O	O
.	O	O

So	O	O
the	O	O
question	O	O
is	O	O
simple	O	O
:	O	O

how	O	O
do	O	O
I	O	O
refactor	O	O
an	O	O
ES2015	O	B-Language
class	O	O
expression	O	O
with	O	O
something	O	O
ES5	O	B-Language
compatible	O	O
(	O	O
or	O	O
just	O	O
babel	O	B-Library
compatible	O	O
really	O	O
but	O	O
this	O	O
question	O	O
is	O	O
n't	O	O
really	O	O
related	O	O
to	O	O
babel	O	B-Library
)	O	O
.	O	O

Can	O	O
you	O	O
briefly	O	O
explain	O	O
or	O	O
point	O	O
me	O	O
to	O	O
reference	O	O
that	O	O
explains	O	O
how	O	O
ES6	O	B-Language
classes	O	O
work	O	O
with	O	O
the	O	O
prototypes	O	O
?	O	O

I	O	O
have	O	O
4	O	O
images	O	B-User_Interface_Element
on	O	O
a	O	O
page	O	O
.	O	O

I	O	O
want	O	O
to	O	O
trigger	O	O
a	O	O
JS	O	B-Class
event	O	I-Class
once	O	O
all	O	O
4	O	O
images	O	B-User_Interface_Element
are	O	O
loaded	O	O
.	O	O

I	O	O
of	O	O
course	O	O
ca	O	O
n't	O	O
be	O	O
sure	O	O
which	O	O
order	O	O
the	O	O
images	O	B-User_Interface_Element
will	O	O
be	O	O
loaded	O	O
in	O	O
,	O	O
so	O	O
I	O	O
ca	O	O
n't	O	O
trigger	O	O
the	O	O
event	O	B-Class
on	O	O
the	O	O
last	O	O
image	O	B-User_Interface_Element
.	O	O

One	O	O
thought	O	O
was	O	O
to	O	O
have	O	O
a	O	O
counter	O	B-Variable
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
think	O	O
of	O	O
the	O	O
best	O	O
way	O	O
to	O	O
check	O	O
when	O	O
that	O	O
counter	O	B-Variable
is	O	O
equal	O	O
to	O	O
4	O	B-Value
as	O	O
I	O	O
do	O	O
n't	O	O
like	O	O
the	O	O
idea	O	O
of	O	O
a	O	O
setTimeout()	O	B-Function
checking	O	O
every	O	O
200ms	O	O
.	O	O

Any	O	O
other	O	O
ideas	O	O
?	O	O

I	O	O
'm	O	O
using	O	O
jQuery	O	B-Library
on	O	O
the	O	O
site	O	O
,	O	O
so	O	O
I	O	O
'm	O	O
thinking	O	O
that	O	O
might	O	O
be	O	O
some	O	O
help	O	O
.	O	O

This	O	O
is	O	O
the	O	O
image	O	O
HTML	O	B-Language
code	O	O
:	O	O

As	O	O
regards	O	O
Salty	O	B-User_Name
's	O	O
example	O	O
,	O	O
it	O	O
's	O	O
best	O	O
to	O	O
use	O	O
a	O	O
closure	O	O
to	O	O
avoid	O	O
global	O	B-Data_Type
variables	O	O
,	O	O
like	O	O
such	O	O
:	O	O

[	O	O
Edit	O	O
]	O	O

As	O	O
per	O	O
jeroen	O	B-User_Name
's	O	O
comment	O	O
,	O	O
I	O	O
replaced	O	O
the	O	O
hardcoded	O	O
value	O	O
of	O	O
4	O	B-Variable
(	O	O
count	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
4)	I-Code_Block	I-Code_Block
with	O	O
the	O	O
jQuery	O	B-Library
size	B-Code_Block	B-Function
function	O	O
as	O	O
to	O	O
allow	O	O
for	O	O
more	O	O
flexibility	O	O
within	O	O
the	O	O
function	O	O
.	O	O

I	O	O
currently	O	O
have	O	O
a	O	O
wysiwyg	O	O
iframe	O	B-HTML_XML_Tag
where	O	O
the	O	O
user	O	O
can	O	O
submit	O	O
input	O	O
to	O	O
another	O	O
area	O	O
on	O	O
the	O	O
page	O	B-User_Interface_Element
.	O	O

Once	O	O
the	O	O
iframe	O	B-HTML_XML_Tag
input	O	O
is	O	O
submitted	O	O
,	O	O
I	O	O
set	O	O
it	O	O
to	O	O
clear	O	O
the	O	O
content	O	O
.	O	O

I	O	O
want	O	O
to	O	O
also	O	O
automatically	O	O
focus	O	O
back	O	O
into	O	O
the	O	O
iframe	O	B-HTML_XML_Tag
.	O	O

This	O	O
is	O	O
the	O	O
code	O	O
I	O	O
currently	O	O
have	O	O
:	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
I	O	O
understand	O	O
what	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
do	O	O
,	O	O
but	O	O
postContentClr	B-Code_Block	B-Variable
is	O	O
a	O	O
jQuery	O	B-Library
object	O	O
,	O	O
so	O	O
calling	O	O
html()	B-Code_Block	B-Function
requires	O	O
that	O	O
you	O	O
access	O	O
it	O	O
via	O	O
jQuery	O	B-Library
like	O	O
so	O	O
:	O	O

Figured	O	O
it	O	O
out	O	O
.	O	O

I	O	O
had	O	O
to	O	O
simply	O	O
focus	O	O
on	O	O
the	O	O
parent	O	O
.	O	O

And	O	O
Jitter	O	B-User_Name
is	O	O
correct	O	O
,	O	O
since	O	O
I	O	O
already	O	O
declared	O	O
it	O	O
as	O	O
a	O	O
jQuery	O	B-Library
object	O	O
,	O	O
it	O	O
need	O	O
n't	O	O
be	O	O
wrapped	O	O
.	O	O

Working	O	O
code	O	O
:	O	O

I	O	O
understand	O	O
preloading	O	O
the	O	O
url	O	O
but	O	O
I	O	O
do	O	O
not	O	O
understand	O	O
the	O	O
purpose	O	O
of	O	O
cache	O	B-Variable
and	O	O
hash	O	B-Variable
in	O	O
this	O	O
snippet	O	O
.	O	O

I	O	O
know	O	O
the	O	O
answer	O	O
is	O	O
probably	O	O
simple	O	O
and	O	O
I	O	O
'm	O	O
overlooking	O	O
it	O	O
but	O	O
I	O	O
just	O	O
want	O	O
some	O	O
direction	O	O
.	O	O

In	O	O
this	O	O
example	O	O
,	O	O
cache	B-Code_Block	B-Variable
is	O	O
actually	O	O
useless	O	O
.	O	O

You	O	O
only	O	O
write	O	O
to	O	O
it	O	O
and	O	O
never	O	O
read	O	O
from	O	O
it	O	O
.	O	O

hash	B-Code_Block	B-Variable
is	O	O
being	O	O
used	O	O
as	O	O
the	O	O
actual	O	O
cache	O	O
here	O	O
.	O	O

If	O	O
an	O	O
image	O	B-User_Interface_Element
with	O	O
the	O	O
same	O	O
URL	O	O
already	O	O
exists	O	O
,	O	O
it	O	O
will	O	O
be	O	O
returned	O	O
from	O	O
the	O	O
hash	B-Code_Block	B-Variable
object	O	O
,	O	O
and	O	O
not	O	O
created	O	O
again	O	O
.	O	O

I	O	O
have	O	O
two	O	O
database	O	O
systems	O	O
currently	O	O
in	O	O
use	O	O
in	O	O
production	O	O
:	O	O
the	O	O
main	O	O
PostgreSQL	O	B-Application
database	O	O
,	O	O
and	O	O
another	O	O
database	O	O
(	O	O
MemSQL	O	B-Application
)	O	O
used	O	O
primarily	O	O
for	O	O
analytical	O	O
purposes	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
setup	O	O
streaming	O	O
replication	O	O
of	O	O
some	O	O
of	O	O
the	O	O
tables	O	O
in	O	O
PostgreSQL	O	B-Application
to	O	O
MemSQL	O	B-Application
(	O	O
a	O	O
MySQL-compatible	O	B-Application
database	O	O
)	O	O
rowstores	O	O
,	O	O
assuming	O	O
the	O	O
tables	O	B-Data_Structure
on	O	O
both	O	O
databases	O	O
have	O	O
the	O	O
same	O	O
schema	O	O
?	O	O

I	O	O
do	O	O
not	O	O
think	O	O
that	O	O
there	O	O
is	O	O
a	O	O
tool	O	O
for	O	O
that	O	O
(	O	O
yet	O	O
)	O	O
but	O	O
there	O	O
is	O	O
one	O	O
for	O	O
limited	O	O
MySQL	O	B-Application
to	O	O
Postgres	O	B-Application
replication	O	O
:	O	O

https://github.com/the4thdoctor/pg_chameleon	O	O

Maybe	O	O
this	O	O
can	O	O
be	O	O
adapted	O	O
to	O	O
work	O	O
the	O	O
other	O	O
way	O	O
.	O	O

And	O	O
you	O	O
could	O	O
always	O	O
build	O	O
your	O	O
own	O	O
little	O	O
data	O	O
shovel	O	O
by	O	O
using	O	O
the	O	O
NOTIFY/LISTEN	O	O
feature	O	O
of	O	O
Postgres	O	B-Application
.	O	O

Which	O	O
is	O	O
probably	O	O
only	O	O
an	O	O
option	O	O
if	O	O
you	O	O
only	O	O
have	O	O
to	O	O
copy	O	O
a	O	O
very	O	O
simple	O	O
set	O	O
of	O	O
data	O	O
.	O	O

I	O	O
have	O	O
come	O	O
across	O	O
WinSCP	O	B-Application
(	O	O
http://winscp.net/eng/index.php	O	O
)	O	O
which	O	O
I	O	O
think	O	O
is	O	O
a	O	O
fantastic	O	O
client	O	B-Application
to	O	O
work	O	O
with	O	O
my	O	O
EC2	O	B-Application
ubuntu	O	B-Operating_System
instance	O	O
as	O	O
a	O	O
graphical	O	O
alternative	O	O
to	O	O
putty	O	B-Application
.	O	O

One	O	O
problem	O	O
though	O	O
is	O	O
that	O	O
every	O	O
time	O	O
I	O	O
want	O	O
to	O	O
modify	O	O
or	O	O
create	O	O
a	O	O
file	O	O
I	O	O
have	O	O
to	O	O
drop	O	O
into	O	O
a	O	O
shell	O	B-Application
and	O	O
run	O	O
the	O	O
appropriate	O	O
sudo	O	B-Code_Block
command	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
login	O	O
with	O	O
winscp	O	B-Application
as	O	O
a	O	O
superuser	O	O
to	O	O
avoid	O	O
this	O	O
?	O	O

is	O	O
it	O	O
possible	O	O
to	O	O
add	O	O
to	O	O
my	O	O
apk	O	B-File_Type
file	O	O
some	O	O
XML	O	B-File_Type
file	O	O
storing	O	O
program	O	O
version	O	O
,	O	O
update	O	O
path	O	O
and	O	O
other	O	O
useful	O	O
data	O	O
(	O	O
note	O	O
:	O	O
I	O	O
do	O	O
n't	O	O
mean	O	O
Android	O	B-Operating_System
XML	O	B-File_Type
file	O	O
)	O	O
.	O	O

All	O	O
I	O	O
want	O	O
to	O	O
is	O	O
this	O	O
file	O	O
to	O	O
be	O	O
unpacked	O	O
somewhere	O	O
to	O	O
local	O	O
data	O	O
folder	O	O
and	O	O
I	O	O
will	O	O
use	O	O
it	O	O
for	O	O
comparing	O	O
version	O	O
info	O	O
installed	O	O
locally	O	O
and	O	O
on	O	O
the	O	O
server	O	B-Application
in	O	O
case	O	O
of	O	O
updates	O	O
.	O	O

I	O	O
am	O	O
asking	O	O
-	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
add	O	O
to	O	O
apk	O	B-File_Type
some	O	O
other	O	O
file	O	O
?	O	O

Thanks	O	O

If	O	O
you	O	O
only	O	O
want	O	O
to	O	O
know	O	O
the	O	O
version	O	O
info	O	O
of	O	O
the	O	O
app	O	O
then	O	O
there	O	O
is	O	O
a	O	O
much	O	O
easier	O	O
way	O	O
to	O	O
identify	O	O
it	O	O
.	O	O

You	O	O
can	O	O
use	O	O

getPackageManager().getPackageInfo(getPackageName(),PackageManager.COMPONENT_ENABLED_STATE_DEFAULT).versionCode	B-Code_Block	B-Code_Block

to	O	O
get	O	O
the	O	O
version	O	O
code	O	O
and	O	O

getPackageManager().getPackageInfo(getPackageName(),PackageManager.COMPONENT_ENABLED_STATE_DEFAULT).versionName	B-Code_Block	B-Code_Block

to	O	O
get	O	O
app	O	O
's	O	O
version	O	O
name	O	O

The	O	O
assets/	B-Code_Block	B-File_Name
folder	O	O
in	O	O
apk	O	B-File_Type
is	O	O
intended	O	O
to	O	O
store	O	O
any	O	O
extra	O	O
user	O	O
files	O	O
in	O	O
any	O	O
formats	O	O
.	O	O

They	O	O
will	O	O
be	O	O
included	O	O
to	O	O
apk	O	B-File_Type
automatically	O	O
on	O	O
compilation	O	O
stage	O	O
and	O	O
can	O	O
be	O	O
accessed	O	O
from	O	O
the	O	O
app	O	O
using	O	O
getAssets()	B-Code_Block	B-Function
function	O	O
.	O	O

For	O	O
example	O	O
:	O	O

It	O	O
is	O	O
even	O	O
unnecessary	O	O
to	O	O
copy	O	O
them	O	O
to	O	O
some	O	O
local	O	O
folder	O	O
to	O	O
read	O	O
them	O	O
.	O	O

I	O	O
am	O	O
currently	O	O
making	O	O
a	O	O
unity	O	B-Application
game	O	O
where	O	O
I	O	O
will	O	O
be	O	O
able	O	O
to	O	O
navigate	O	O
from	O	O
one	O	O
360	O	O
degrees	O	O
panorama	O	O
to	O	O
another	O	O
.	O	O

I	O	O
have	O	O
added	O	O
the	O	O
pictures	O	B-User_Interface_Element
and	O	O
made	O	O
the	O	O
texture	O	B-User_Interface_Element
size	O	O
as	O	O
a	O	O
cube	O	B-User_Interface_Element
and	O	O
mapped	O	O
to	O	O
the	O	O
latitude-longitude	O	O
layout	O	O
.	O	O

I	O	O
have	O	O
made	O	O
skybox	O	B-User_Interface_Element
material	O	O
and	O	O
loaded	O	O
the	O	O
image	O	B-User_Interface_Element
into	O	O
it	O	O
.	O	O

Now	O	O
the	O	O
problem	O	O
I	O	O
am	O	O
facing	O	O
here	O	O
is	O	O
-	O	O

Whenever	O	O
I	O	O
load	O	O
the	O	O
skyboxes	O	B-User_Interface_Element
,	O	O
it	O	O
looks	O	O
to	O	O
some	O	O
other	O	O
direction	O	O
instead	O	O
of	O	O
the	O	O
original	O	O
orientation	O	O
of	O	O
the	O	O
image	O	B-User_Interface_Element
.	O	O

I	O	O
could	O	O
fix	O	O
it	O	O
by	O	O
changing	O	O
the	O	O
skybox	O	B-User_Interface_Element
rotation	O	O
to	O	O
100	O	B-Value
.	O	O

Since	O	O
I	O	O
have	O	O
planned	O	O
to	O	O
add	O	O
around	O	O
100	O	O
pictures	O	B-User_Interface_Element
,	O	O
I	O	O
do	O	O
not	O	O
want	O	O
them	O	O
to	O	O
fix	O	O
each	O	O
on	O	O
of	O	O
them	O	O
manually	O	O
.	O	O

All	O	O
of	O	O
the	O	O
pictures	O	O
were	O	O
downloaded	O	O
from	O	O
google	O	B-Website
streetview	O	I-Website
.	O	O

Desperately	O	O
in	O	O
need	O	O
of	O	O
help	O	O
!	O	O
!	O	O

I	O	O
am	O	O
ashamed	O	O
to	O	O
say	O	O
I	O	O
have	O	O
spent	O	O
most	O	O
of	O	O
today	O	O
on	O	O
this	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
build	O	O
a	O	O
form	O	B-User_Interface_Element
based	O	O
on	O	O
the	O	O
contents	O	O
of	O	O
an	O	O
data	O	B-Class
store	O	I-Class
.	O	O

I	O	O
am	O	O
using	O	O
Ext.js	O	B-Library
and	O	O
the	O	O
MVC	O	B-Algorithm
architecture	O	O
.	O	O

Here	O	O
's	O	O
what	O	O
I	O	O
have	O	O
:	O	O

The	O	O
error	O	O
I	O	O
am	O	O
getting	O	O
(	O	O
I	O	O
've	O	O
had	O	O
many	O	O
throughout	O	O
the	O	O
day	O	O
)	O	O
is	O	O
"	O	O
my.items.push	O	B-Output_Block
is	O	I-Output_Block
not	O	I-Output_Block
a	O	I-Output_Block
function	O	I-Output_Block
"	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
for	O	O
any	O	O
help	O	O
you	O	O
can	O	O
offer	O	O
!	O	O

items	B-Code_Block	B-Variable
is	O	O
expected	O	O
to	O	O
be	O	O
an	O	O
array	O	B-Data_Structure
not	O	O
MixedCollection	O	B-Class
.	O	O

It	O	O
is	O	O
changed	O	O
to	O	O
MixedCollection	O	B-Class
later	O	O
on	O	O
if	O	O
I	O	O
remember	O	O
good	O	O
.	O	O

So	O	O
to	O	O
fix	O	O
your	O	O
issue	O	O
change	O	O
:	O	O

to	O	O

Consider	O	O
as	O	O
well	O	O
defining	O	O
items	B-Code_Block	B-Variable
of	O	O
form	O	O
as	O	O
an	O	O
empty	O	O
array	O	B-Data_Structure
and	O	O
then	O	O
in	O	O
initComponent	B-Code_Block	B-Variable
make	O	O
use	O	O
of	O	O
Ext.apply	B-Code_Block	B-Function
:	O	O

I	O	O
have	O	O
a	O	O
set	O	O
of	O	O
dates	O	O
which	O	O
are	O	O
in	O	O
the	O	O
current	O	O
format	O	O
:	O	O

e.g	O	O
.	O	O

I	O	O
have	O	O
put	O	O
them	O	O
into	O	O
a	O	O
SQL	O	B-Language
Server	O	B-Application
table	O	B-Data_Structure
as	O	O
nvarchar(MAX)	B-Code_Block	B-Data_Type
but	O	O
I	O	O
need	O	O
to	O	O
convert	O	O
them	O	O
to	O	O
datetime	B-Code_Block	B-Data_Type
in	O	O
a	O	O
view	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
the	O	O
following	O	O
pieces	O	O
of	O	O
code	O	O
but	O	O
neither	O	O
work	O	O
:	O	O

Return	O	O
2016-04-15	O	B-Value
13:30:00.000	O	I-Value

I	O	O
found	O	O
some	O	O
example	O	O
of	O	O
how	O	O
to	O	O
read	O	O
the	O	O
XML	O	B-Language
from	O	O
an	O	O
Excel	O	B-Application
spreadsheet	O	O
>>	O	O
HERE	O	O
<<	O	O
,	O	O
and	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
code	O	O
to	O	O
work	O	O
for	O	O
me	O	O
.	O	O

I	O	O
have	O	O
to	O	O
write	O	O
a	O	O
routine	O	O
that	O	O
takes	O	O
the	O	O
data	O	O
from	O	O
4	O	O
of	O	O
the	O	O
15	O	O
sheets	O	B-User_Interface_Element
in	O	O
the	O	O
workbook	O	B-User_Interface_Element
,	O	O
and	O	O
use	O	O
that	O	O
data	O	O
to	O	O
populate	O	O
our	O	O
database	O	O
.	O	O

Anyway	O	O
...	O	O
.	O	O

This	O	O
code	O	O
is	O	O
throwing	O	O
an	O	O
InvalidOperationException	B-Code_Block	B-Class
exception	O	I-Class
every	O	O
time	O	O
I	O	O
attempt	O	O
to	O	O
query	O	O
my	O	O
Excel	O	B-Application
spreadsheet	O	O
:	O	O

The	O	O
specific	O	O
error	O	O
is	O	O
,	O	O
"	O	O
Sequence	O	B-Error_Name
contains	O	I-Error_Name
no	O	I-Error_Name
elements	O	I-Error_Name
"	O	O

I	O	O
'm	O	O
really	O	O
not	O	O
sure	O	O
how	O	O
to	O	O
go	O	O
about	O	O
debugging	O	O
it	O	O
,	O	O
because	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
what	O	O
the	O	O
code	O	O
is	O	O
trying	O	O
to	O	O
do	O	O
.	O	O

Could	O	O
someone	O	O
help	O	O
me	O	O
write	O	O
it	O	O
in	O	O
Standard	O	O
"	O	O
C#	O	B-Language
before	O	O
I	O	O
try	O	O
to	O	O
implement	O	O
the	O	O
fancy	O	O
LINQ	O	B-Library
expression	O	O
?	O	O

(	O	O
that	O	O
is	O	O
LINQ	O	B-Library
,	O	O
right	O	O
?	O	O
)	O	O

[	O	O
Solved	O	O
]	O	O

Using	O	O
the	O	O
snippet	O	O
provided	O	O
by	O	O
JeffN825	O	B-User_Name
,	O	O
I	O	O
was	O	O
able	O	O
to	O	O
create	O	O
this	O	O
:	O	O

It	O	O
turns	O	O
out	O	O
that	O	O
even	O	O
though	O	O
my	O	O
sheet	O	O
names	O	O
in	O	O
Excel	O	B-Application
are	O	O
"	O	O
HV	O	B-Variable
"	O	O
,	O	O
"	O	O
M2	O	B-Variable
"	O	O
,	O	O
"	O	O
CB	O	B-Variable
"	O	O
and	O	O
"	O	O
CC	O	B-Variable
"	O	O
,	O	O
I	O	O
still	O	O
have	O	O
to	O	O
specify	O	O
them	O	O
as	O	O
"	O	O
sheet2	O	B-Variable
"	O	O
,	O	O
"	O	O
sheet3	O	B-Variable
"	O	O
,	O	O
"	O	O
sheet4	O	B-Variable
"	O	O
and	O	O
"	O	O
sheet5	O	B-Variable
"	O	O
.	O	O

I	O	O
had	O	O
to	O	O
step	O	O
through	O	O
161	O	O
PackagePart	B-Code_Block	B-Class
objects	O	O
to	O	O
see	O	O
this	O	O
.	O	O

LINQ	O	B-Library
is	O	O
just	O	O
so	O	O
damn	O	O
efficient	O	O
that	O	O
it	O	O
can	O	O
be	O	O
hard	O	O
to	O	O
debug	O	O
when	O	O
there	O	O
are	O	O
problems	O	O
.	O	O

The	O	O
.Single()	B-Code_Block	B-Function
is	O	O
what	O	O
's	O	O
throwing	O	O
the	O	O
exception	O	B-Class
.	O	O

Either	O	O
your	O	O
query	O	O
is	O	O
returning	O	O
no	O	O
items	O	O
or	O	O
it	O	O
's	O	O
returning	O	O
>	O	O
1	O	O
item	O	O
.	O	O

If	O	O
you	O	O
're	O	O
not	O	O
sure	O	O
of	O	O
the	O	O
number	O	O
of	O	O
items	O	O
you	O	O
're	O	O
expecting	O	O
,	O	O
you	O	O
should	O	O
be	O	O
using	O	O
FirstOrDefault()	B-Code_Block	B-Function
which	O	O
will	O	O
return	O	O
the	O	O
first	O	O
match	O	O
or	O	O
null	O	B-Value
if	O	O
no	O	O
matches	O	O
are	O	O
found	O	O
.	O	O

The	O	O
non-LINQ	O	B-Library
equivalent	O	O
is	O	O
something	O	O
like	O	O
this	O	O

It	O	O
's	O	O
basically	O	O
doing	O	O
this	O	O
.	O	O

In	O	O
your	O	O
version	O	O
,	O	O
try	O	O
replacing	O	O
.Single()	O	B-Function
with	O	O
.FirstOrDefault()	O	B-Function
.	O	O

It	O	O
's	O	O
failing	O	O
because	O	O
there	O	O
is	O	O
no	O	O
match	O	O
.	O	O

I	O	O
am	O	O
running	O	O
two	O	O
http/2	O	O
servers	O	B-Application
on	O	O
my	O	O
ubuntu	O	B-Operating_System
server	O	B-Application
.	O	O

Both	O	O
should	O	O
be	O	O
reachable	O	O
over	O	O
port	O	B-Device
443	O	B-Value
.	O	O

Is	O	O
there	O	O
a	O	O
simple	O	O
way	O	O
to	O	O
do	O	O
this	O	O
on	O	O
Ubuntu	O	B-Operating_System
?	O	O

Yes	O	O
this	O	O
is	O	O
possible	O	O
.	O	O

You	O	O
need	O	O
to	O	O
run	O	O
a	O	O
webserver	O	B-Application
or	O	O
loadbalancer	O	B-Application
listening	O	O
to	O	O
port	O	B-Device
443	O	B-Value
and	O	O
forwarding	O	O
requests	O	O
appropriately	O	O
.	O	O

In	O	O
Apache	O	B-Application
for	O	O
example	O	O
this	O	O
would	O	O
be	O	O
handled	O	O
as	O	O
follows	O	O
:	O	O

Now	O	O
while	O	O
Apache	O	B-Application
does	O	O
support	O	O
HTTP/2	O	B-Version
in	O	O
both	O	O
the	O	O
front	O	O
end	O	O
client	O	O
connections	O	O
and	O	O
the	O	O
back	O	O
end	O	O
ProxyPass	O	O
requests	O	O
(	O	O
with	O	O
mod_proxy_http	O	B-Code_Block
2)	O	I-Code_Block
,	O	O
some	O	O
other	O	O
webservers/loadbalancers	O	B-Application
do	O	O
n't	O	O
(	O	O
e.g	O	O
.	O	O
Nginx	O	B-Application
)	O	O
.	O	O

To	O	O
be	O	O
honest	O	O
most	O	O
of	O	O
the	O	O
benefits	O	O
for	O	O
HTTP/2	O	B-Version
are	O	O
in	O	O
the	O	O
client	O	O
to	O	O
edge	O	O
.	O	O

So	O	O
if	O	O
you	O	O
prefer	O	O
to	O	O
use	O	O
Nginx	O	B-Application
for	O	O
example	O	O
,	O	O
you	O	O
could	O	O
just	O	O
have	O	O
Nginx	O	B-Application
support	O	O
HTTP/2	O	O
,	O	O
and	O	O
the	O	O
connection	O	O
from	O	O
Nginx	O	B-Application
to	O	O
your	O	O
back	O	O
end	O	O
apps	O	O
be	O	O
plain	O	O
old	O	O
HTTP/1.1	O	B-Version
.	O	O

At	O	O
least	O	O
until	O	O
HTTP/2	O	B-Version
becomes	O	O
more	O	O
regularly	O	O
supported	O	O
.	O	O

See	O	O
here	O	O
for	O	O
more	O	O
discussion	O	O
on	O	O
this	O	O
:	O	O
HTTP2	O	B-Version
with	O	O
node.js	O	B-Application
behind	O	O
nginx	O	B-Application
proxy	O	O

I	O	O
am	O	O
a	O	O
new	O	O
user	O	O
of	O	O
Json.net	O	B-Library
and	O	O
I	O	O
am	O	O
stuck	O	O
because	O	O
of	O	O
an	O	O
error	O	O
message	O	O
.	O	O

I	O	O
want	O	O
to	O	O
read	O	O
a	O	O
json	O	B-File_Type
file	O	O
thanks	O	O
to	O	O
JsonTextReader	O	B-Class
using	O	O
json.net	O	B-Library

My	O	O
json	O	B-File_Type
file	O	O
is	O	O
a	O	O
list	O	O
of	O	O
my	O	O
class	O	O
Person	O	B-Class
with	O	O
some	O	O
attributes	O	O
looks	O	O
like	O	O
that	O	O
:	O	O

http://pastebin.com/DbSDVt2K	O	O

When	O	O
reading	O	O
with	O	O
the	O	O
StreamReader	O	B-Class
(	O	O
or	O	O
TextReader	O	B-Class
)	O	O
I	O	O
have	O	O
no	O	O
problem	O	O
.	O	O

What	O	O
i	O	O
want	O	O
is	O	O
to	O	O
have	O	O
the	O	O
same	O	O
result	O	O
with	O	O
an	O	O
output	O	O
of	O	O
type	O	O
JsonTextReader	O	B-Class
.	O	O

Here	O	O
is	O	O
my	O	O
piece	O	O
of	O	O
code	O	O
to	O	O
help	O	O
you	O	O
understand	O	O
:	O	O

http://pastebin.com/iwF3xuUp	O	O

My	O	O
error	O	O
is	O	O
with	O	O
:	O	O
myString	O	B-Code_Block
=	O	I-Code_Block
reader.ReadAsString()	O	I-Code_Block
;	O	I-Code_Block

"	O	O
Additional	O	O
information	O	O
:	O	O
Error	O	O
reading	O	O
string	O	O
.	O	O

Unexpected	O	B-Error_Name
token	O	I-Error_Name
:	O	O
StartArray	O	O
.	O	O

Path	O	O
''	O	O
,	O	O
line	O	O
1	O	O
,	O	O
position	O	O
1	O	O
.	O	O
"	O	O

I	O	O
have	O	O
been	O	O
looking	O	O
for	O	O
hours	O	O
to	O	O
have	O	O
more	O	O
info	O	O
but	O	O
I	O	O
found	O	O
nothing	O	O
that	O	O
could	O	O
help	O	O
me	O	O
.	O	O

If	O	O
any	O	O
of	O	O
you	O	O
can	O	O
help	O	O
me	O	O
understand	O	O
this	O	O
error	O	O
and	O	O
find	O	O
a	O	O
solution	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
extract	O	O
of	O	O
my	O	O
tr	O	B-File_Type
file	O	O
content	O	O
:	O	O

Simply	O	O
read	O	O
the	O	O
file	O	O
with	O	O
a	O	O
regular	O	O
TextReader	O	B-Class
,	O	O
then	O	O
Deserialize	O	B-Function
using	O	O
JsonConvert	O	B-Class
.	O	O

You	O	O
have	O	O
just	O	O
to	O	O
remove	O	O
this	O	O
line	O	O
from	O	O
your	O	O
code	O	O
:	O	O
string	B-Code_Block	B-Code_Block
myString	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
reader.ReadAsString()	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
The	O	O
Json	O	B-Class
Serializer	O	I-Class
tries	O	O
to	O	O
read	O	O
a	O	O
string	O	B-Data_Type
there	O	O
,	O	O
but	O	O
recognizes	O	O
that	O	O
it	O	O
is	O	O
an	O	O
Array	O	B-Data_Structure
which	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
read	O	O
.	O	O

and	O	O
if	O	O
you	O	O
want	O	O
to	O	O
have	O	O
it	O	O
directly	O	O
to	O	O
your	O	O
correct	O	O
type	O	O
you	O	O
can	O	O
also	O	O
use	O	O
the	O	O
generic	O	O
Deserialze	O	B-Function
instead	O	O
of	O	O
Deserialize	O	B-Function
.	O	O

than	O	O
you	O	O
can	O	O
specifiy	O	O
the	O	O
deserialization	O	O
as	O	O
:	O	O

Edit	O	O
for	O	O
the	O	O
comment	O	O
:	O	O

If	O	O
you	O	O
want	O	O
to	O	O
reuse	O	O
a	O	O
JsonReader	O	B-Class
you	O	O
can	O	O
create	O	O
a	O	O
reader	O	B-Variable
from	O	O
a	O	O
JObject	O	B-Class
:	O	O

Example	O	O
comes	O	O
from	O	O
Using	O	O
JToken.CreateReader	O	B-Function
from	O	O
the	O	O
Newtonsoft	O	B-Website
Help	O	O
Page	O	O

If	O	O
a	O	O
user	O	O
has	O	O
authenticated	O	O
,	O	O
should	O	O
n't	O	O
the	O	O
request	O	O
have	O	O
a	O	O
user	O	O
attached	O	O
to	O	O
it	O	O
,	O	O
as	O	O
well	O	O
as	O	O
returning	O	O
true	B-Code_Block	O
for	O	O
req.isAuthenticated()	B-Code_Block	B-Function
?	O	O

So	O	O
what	O	O
is	O	O
the	O	O
difference	O	O
between	O	O
these	O	O
two	O	O
then	O	O
?	O	O

Should	O	O
n't	O	O
I	O	O
be	O	O
fine	O	O
just	O	O
checking	O	O
if	O	O
req.user	O	B-Class
exists	O	O
,	O	O
in	O	O
terms	O	O
of	O	O
making	O	O
sure	O	O
the	O	O
user	O	O
logged	O	O
in	O	O
?	O	O

What	O	O
is	O	O
the	O	O
difference	O	O
between	O	O
inheriting	O	O
IDispatch	O	B-Class
directly	O	O
(	O	O
IMyInterface	O	B-Class
:	O	O
IDispatch	O	B-Class
)	O	O
and	O	O
declaring	O	O
interface	O	O
type	O	O
[	O	O
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)	O	B-Class
]	O	O
?	O	O

I	O	O
've	O	O
noticed	O	O
that	O	O
I	O	O
'm	O	O
unable	O	O
to	O	O
use	O	O
the	O	O
worksheet_change	O	B-Function
function	O	O
when	O	O
the	O	O
target	O	O
address	O	O
is	O	O
a	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
(	O	O
data	O	O
validation	O	O
-	O	O
pulled	O	O
from	O	O
table	O	B-Data_Structure
)	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
do	O	O
this	O	O
successfully	O	O
?	O	O

Example	O	O
(	O	O
does	O	O
not	O	O
work	O	O
)	O	O
:	O	O

Thank	O	O
you	O	O
!	O	O

I	O	O
believe	O	O
your	O	O
code	O	O
in	O	O
either	O	O
in	O	O
the	O	O
wrong	O	O
worksheet	O	B-User_Interface_Element
,	O	O
or	O	O
the	O	O
dropdown	O	B-User_Interface_Element
is	O	O
in	O	O
a	O	O
different	O	O
sheet	O	B-User_Interface_Element
than	O	O
where	O	O
your	O	O
code	O	O
is	O	O
.	O	O

Try	O	O
putting	O	O
this	O	O
in	O	O
Sheet1	O	B-File_Name
and	O	O
make	O	O
changes	O	O
to	O	O
"	O	O
G8	O	B-Variable
"	O	O
on	O	O
Sheet1	O	B-File_Name
to	O	O
see	O	O
what	O	O
happens	O	O

I	O	O
know	O	O
that	O	O
code	O	O
works	O	O
.	O	O

If	O	O
that	O	O
works	O	O
then	O	O
try	O	O
your	O	O
code	O	O
and	O	O
if	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
then	O	O
I	O	O
beleive	O	O
your	O	O
sheet4.conditions	B-Code_Block	B-Code_Block
has	O	O
issues	O	O

I	O	O
've	O	O
been	O	O
struggling	O	O
with	O	O
this	O	O
for	O	O
a	O	O
while	O	O
and	O	O
could	O	O
n't	O	O
find	O	O
the	O	O
right	O	O
solution	O	O
.	O	O

At	O	O
the	O	O
bottom	O	O
of	O	O
the	O	O
page	O	O
I	O	O
've	O	O
a	O	O
footer	O	B-User_Interface_Element
that	O	O
's	O	O
full	O	O
width	O	O
.	O	O

Inside	O	O
it	O	O
I	O	O
want	O	O
to	O	O
display	O	O
I	O	O
list	O	B-User_Interface_Element
of	O	O
messages	O	O
and	O	O
right	O	O
next	O	O
to	O	O
its	O	O
left	O	O
an	O	O
icon	O	B-User_Interface_Element
,	O	O
in	O	O
this	O	O
case	O	O
it	O	O
's	O	O
a	O	O
Font	O	B-Library
Awesome	O	I-Library
icon	O	B-User_Interface_Element
.	O	O

The	O	O
message	O	O
list	O	B-User_Interface_Element
needs	O	O
to	O	O
be	O	O
centered	O	O
both	O	O
vertically	O	O
and	O	O
horizontally	O	O
and	O	O
the	O	O
icon	O	B-User_Interface_Element
has	O	O
to	O	O
be	O	O
centered	O	O
vertically	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
doing	O	O
this	O	O
using	O	O
ul	O	B-HTML_XML_Tag
elements	O	O
with	O	O
display	O	B-Code_Block
:	O	I-Code_Block
inline-block	O	I-Code_Block
and	O	O
text-align	O	B-Code_Block
:	O	I-Code_Block
center	O	I-Code_Block
.	O	O

The	O	O
messages	O	O
displays	O	O
correctly	O	O
but	O	O
the	O	O
icon	O	B-User_Interface_Element
is	O	O
stuck	O	O
in	O	O
the	O	O
same	O	O
place	O	O
no	O	O
matter	O	O
the	O	O
size	O	O
of	O	O
its	O	O
container	O	B-User_Interface_Element
.	O	O

Here	O	O
's	O	O
what	O	O
I	O	O
've	O	O
so	O	O
far	O	O
:	O	O

and	O	O
the	O	O
css	O	B-Language
:	O	O

https://jsfiddle.net/b1rw80jz/1/	O	O

Does	O	O
anyone	O	O
know	O	O
how	O	O
can	O	O
I	O	O
accomplish	O	O
this	O	O
?	O	O

Thanks	O	O

You	O	O
could	O	O
use	O	O
flex-box	O	O
like	O	O
this	O	O
:	O	O

+CSS	O	B-Language

+HTML	O	B-Language

Demo	O	O

If	O	O
you	O	O
need	O	O
only	O	O
one	O	O
icon	O	B-User_Interface_Element
,	O	O
you	O	O
can	O	O
use	O	O
pseudo-elements::before	O	O
for	O	O
the	O	O
bell	O	O

https://jsfiddle.net/b1rw80jz/6/	O	O

Does	O	O
this	O	O
simple	O	O
walkthrough	O	O
work	O	O
for	O	O
anyone	O	O
else	O	O
?	O	O

Does	O	O
n't	O	O
for	O	O
me	O	O
.	O	O

Error	O	O
:	O	O
The	O	O
ComponentGroup	O	O
element	O	O
contains	O	O
an	O	O
unexpected	O	O
child	O	O
element	O	O
'	O	B-Value
File	O	I-Value
'	O	B-Value
.	O	O

Is	O	O
this	O	O
walkthrough	O	O
out	O	O
of	O	O
date	O	O
,	O	O
invalid	O	O
or	O	O
am	O	O
I	O	O
possibly	O	O
just	O	O
doing	O	O
something	O	O
stupid	O	O
?	O	O

The	O	O
version	O	O
of	O	O
WiX	O	B-Application
I	O	O
have	O	O
installed	O	O
is	O	O
3.10	O	B-Version
.	O	O
and	O	O
Visual	O	B-Application
Studio	O	I-Application
2015	O	B-Version
.	O	O

Thanks	O	O

Creating	O	O
a	O	O
Simple	O	O
Setup	O	O

I	O	O
think	O	O
you	O	O
missed	O	O
the	O	O
creating	O	O
the	O	O
component	O	B-HTML_XML_Tag
tag	O	O
.	O	O

The	O	O
File	O	B-HTML_XML_Tag
tag	O	O
can	O	O
only	O	O
be	O	O
added	O	O
underneath	O	O
the	O	O
Component	O	B-HTML_XML_Tag
tag	O	O
.	O	O

Think	O	O
of	O	O
Components	O	B-HTML_XML_Tag
as	O	O
containers	O	O
for	O	O
anything	O	O
that	O	O
gets	O	O
deployed	O	O
.	O	O

My	O	O
skill	O	O
level	O	O
:	O	O
Beginner	O	O

Code	O	O
:	O	O
C#	O	B-Language
(	O	O
wpf	O	B-Library
)	O	O

Hardware	O	O
:	O	O
Dell	O	B-Device
Venue	O	I-Device
11	O	B-Version
Pro	O	I-Version
tablet	O	B-Device
(	O	O
windows	O	B-Operating_System
8.1	O	B-Version
)	O	O

I	O	O
would	O	O
like	O	O
to	O	O
get	O	O
the	O	O
current	O	O
location	O	O
of	O	O
my	O	O
computer	O	B-Device
via	O	O
cellular	O	B-Device
triangulation	O	O
in	O	O
coordinates(latitude/longitude)	O	O
.	O	O

Using	O	O
the	O	O
following	O	O
link	O	O
as	O	O
a	O	O
reference	O	O
(	O	O
Getting	O	O
GPS	O	B-Device
coordinates	O	O
on	O	O
Windows	O	B-Operating_System
phone	O	B-Device
7	O	B-Version
)	O	O
,	O	O
I	O	O
have	O	O
been	O	O
attempting	O	O
to	O	O
pull	O	O
the	O	O
lat/lon	O	O
coordinates	O	O
from	O	O
Windows	O	B-Application
Location	O	I-Application
Services	O	I-Application
.	O	O

I	O	O
have	O	O
verified	O	O
that	O	O
Windows	O	B-Application
Location	O	I-Application
Services	O	I-Application
is	O	O
receiving	O	O
the	O	O
coordinates	O	O
via	O	O
cell	O	B-Device
tower	O	O
triangulation	O	O
,	O	O
but	O	O
every	O	O
time	O	O
I	O	O
run	O	O
the	O	O
following	O	O
code	O	O
the	O	O
coordinates	O	O
are	O	O
listed	O	O
as	O	O
"	O	B-Value
NaN	O	I-Value
"	O	I-Value
.	O	O

Any	O	O
help	O	O
here	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

If	O	O
you	O	O
only	O	O
need	O	O
your	O	O
current	O	O
position	O	O
once	O	O
,	O	O
and	O	O
not	O	O
continous	O	O
update	O	O
as	O	O
you	O	O
move	O	O
,	O	O
you	O	O
can	O	O
replace	O	O
Start	B-Code_Block	B-Function
with	O	O
TryStart	B-Code_Block	B-Function
:	O	O

Keep	O	O
in	O	O
mind	O	O
that	O	O
this	O	O
method	O	O
returns	O	O
synchronously	O	O
,	O	O
so	O	O
it	O	O
is	O	O
best	O	O
not	O	O
to	O	O
run	O	O
in	O	O
on	O	O
the	O	O
UI	O	O
thread	O	O
.	O	O

Is	O	O
the	O	O
isChecked()	B-Code_Block	B-Function
method	O	O
Deprecated	O	O
?	O	O

I	O	O
am	O	O
coding	O	O
for	O	O
android	O	B-Operating_System
UI	O	O
and	O	O
using	O	O
UiAutomator	O	B-Library
Framework	O	O
there	O	O
this	O	O
mathod	O	O
is	O	O
not	O	O
displayed	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
validate	O	O
one	O	O
uiobject	B-Code_Block	B-Class
through	O	O
isChecked()	B-Code_Block	B-Function
whether	O	O
it	O	O
is	O	O
clicked	O	O
or	O	O
not	O	O
.	O	O

from	O	O
the	O	O
below	O	O
link	O	O
i	O	O
came	O	O
to	O	O
know	O	O
it	O	O
is	O	O
Deprecated	O	O
and	O	O
now	O	O
we	O	O
should	O	O
use	O	O
getValue()	B-Code_Block	B-Function
.	O	O

Code	O	O
:	O	O

Here	O	O
the	O	O
problem	O	O
is	O	O
that	O	O
the	O	O
getValue	B-Code_Block	B-Function
method	O	O
is	O	O
not	O	O
displaying	O	O
i.e	O	O
notavaible	O	O
for	O	O
use	O	O
for	O	O
me	O	O
and	O	O
isChecked()	B-Code_Block	B-Function
is	O	O
always	O	O
returning	O	O
false	B-Code_Block	B-Value
to	O	O
me	O	O
.	O	O

Can	O	O
any	O	O
one	O	O
give	O	O
any	O	O
suggestion	O	O
to	O	O
me	O	O
.	O	O

I	O	O
guess	O	O
you	O	O
are	O	O
referring	O	O
to	O	O
a	O	O
wrong	O	O
documentation	O	O
.	O	O

Please	O	O
check	O	O
this	O	O
Link	O	O
for	O	O
UIObject	O	B-Class
class	O	O
documentation	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
think	O	O
isChecked()	B-Code_Block	B-Function
is	O	O
deprecated	O	O
.	O	O

It	O	O
can	O	O
be	O	O
used	O	O
only	O	O
on	O	O
an	O	O
UI	O	B-Class
Object	O	I-Class
who	O	O
's	O	O
node	O	O
detail	O	O
'	B-Code_Block	B-Code_Block
checkable'=>true	I-Code_Block	I-Code_Block

I	O	O
have	O	O
similar	O	O
problem	O	O
except	O	O
android	O	B-Application
studio	O	I-Application
wont	O	O
even	O	O
accept	O	O
the	O	O
method	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
a	O	O
CheckedTextView	O	B-Class
and	O	O
when	O	O
I	O	O
try	O	O
to	O	O
put	O	O

android	O	B-Application
studio	O	I-Application
tells	O	O
me	O	O
"	O	O
cannot	O	O
resolve	O	O
method	O	O
isChecked()"	O	B-Function
but	O	O
has	O	O
plenty	O	O
of	O	O
other	O	O
suggestions	O	O
as	O	O
expected	O	O
.	O	O

suspiciously	O	O
isChecked()	O	B-Function
is	O	O
the	O	O
only	O	O
method	O	O
in	O	O
the	O	O
documentation	O	O
that	O	O
has	O	O
no	O	O
description	O	O
besides	O	O
the	O	O
signature	O	O
.	O	O

http://developer.android.com/reference/android/widget/CheckedTextView.html#isChecked()	O	O

I	O	O
am	O	O
attempting	O	O
to	O	O
accept	O	O
a	O	O
user	O	O
name	O	O
through	O	O
an	O	O
Applescript	O	B-Language
script	O	O
:	O	O
I	O	O
have	O	O
accomplished	O	O
this	O	O
.	O	O

So	O	O
I	O	O
am	O	O
thinking	O	O
that	O	O
I	O	O
need	O	O
to	O	O
have	O	O
the	O	O
name	O	O
saved	O	O
to	O	O
a	O	O
file	O	O
because	O	O
thats	O	O
all	O	O
i	O	O
need	O	O
and	O	O
have	O	O
another	O	O
piece	O	O
of	O	O
script	O	O
activate	O	O
every	O	O
time	O	O
I	O	O
click	O	O
on	O	O
the	O	O
app	O	O
from	O	O
that	O	O
point	O	O
and	O	O
retrieve	O	O
the	O	O
name	O	O
.	O	O

My	O	O
question	O	O
is	O	O
how	O	O
would	O	O
I	O	O
get	O	O
it	O	O
to	O	O
not	O	O
accept	O	O
the	O	O
original	O	O
script	O	O
after	O	O
the	O	O
first	O	O
run	O	O
.	O	O

AppleScript	O	B-Language
Overview	O	O

|	O	O
Scripting	O	O
with	O	O
AppleScript	O	B-Language

One	O	O
way	O	O
would	O	O
be	O	O
to	O	O
use	O	O
properties	O	O
.	O	O

The	O	O
property-value	O	O
is	O	O
stored	O	O
within	O	O
the	O	O
compiled	O	O
script	O	O
.	O	O

It	O	O
also	O	O
works	O	O
when	O	O
the	O	O
script	O	O
is	O	O
saved	O	O
as	O	O
an	O	O
application	O	O
.	O	O

Opening	O	O
and	O	O
recompiling	O	O
it	O	O
in	O	O
AppleScript	O	B-Application
Editor	O	I-Application
resets	O	O
the	O	O
values	O	O
.	O	O

I	O	O
have	O	O
been	O	O
trying	O	O
to	O	O
implement	O	O
the	O	O
use	O	O
of	O	O
high	O	B-Library
chart	O	I-Library
with	O	O
codeigniter	O	B-Library
.	O	O

So	O	O
far	O	O
I	O	O
have	O	O
tried	O	O
following	O	O
the	O	O
steps	O	O
at	O	O
http://blueflame-software.com/using-highcharts-with-codeigniter/	O	O
,	O	O
but	O	O
each	O	O
time	O	O
I	O	O
preview	O	O
my	O	O
work	O	O
in	O	O
the	O	O
browser	O	B-Application
,	O	O
I	O	O
get	O	O
an	O	O
empty	O	O
screen	O	O
with	O	O
no	O	O
result	O	O
.	O	O

Please	O	O
can	O	O
some	O	O
on	O	O
help	O	O
me	O	O
to	O	O
resolve	O	O
it	O	O
.	O	O

I	O	O
have	O	O
been	O	O
on	O	O
this	O	O
for	O	O
sometime	O	O
now	O	O
,	O	O
yet	O	O
no	O	O
positive	O	O
result	O	O

Also	O	O
I	O	O
have	O	O
tried	O	O
some	O	O
of	O	O
the	O	O
steps	O	O
shown	O	O
here	O	O
on	O	O
stack	O	B-Website
overflow	O	I-Website
,	O	O
yet	O	O
nothing	O	O
still	O	O
display	O	O
on	O	O
the	O	O
browser	O	B-Application
when	O	O
I	O	O
view	O	O
it	O	O
.	O	O

Below	O	O
is	O	O
my	O	O
code	O	O
:	O	O

you	O	O
have	O	O
to	O	O
implement	O	O
it	O	O
as	O	O
a	O	O
library	O	O
.	O	O

But	O	O
the	O	O
steps	O	O
are	O	O
quite	O	O
larger	O	O
to	O	O
describe	O	O
here	O	O
.	O	O

Here	O	O
are	O	O
some	O	O
links	O	O

https://blueflame-software.com/using-highcharts-with-codeigniter/	O	O

https://blueflame-software.com/using-highcharts-with-codeigniter/	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
do	O	O
a	O	O
search	O	O
query	O	O
on	O	O
the	O	O
SoundCloud	O	B-Library
API	O	I-Library
.	O	O

Using	O	O
their	O	O
JavaScript	O	B-Library
SDK	O	I-Library
,	O	O
the	O	O
following	O	O
works	O	O
:	O	O

But	O	O
if	O	O
I	O	O
try	O	O
to	O	O
do	O	O
the	O	O
same	O	O
query	O	O
using	O	O
cURL	O	B-Library
:	O	O

It	O	O
says	O	O
<error>401	B-Code_Block	B-HTML_XML_Tag
-	I-Code_Block	B-Error_Name
Unauthorized</error>	I-Code_Block	I-Error_Name

If	O	O
I	O	O
change	O	O
the	O	O
order	O	O
of	O	O
the	O	O
query	O	O
params	O	O
http://api.soundcloud.com/tracks?client_id=xxxx&q=punk	B-Code_Block	B-Code_Block
it	O	O
will	O	O
disregard	O	O
the	O	O
q	B-Code_Block	B-Variable
param	O	O
and	O	O
respond	O	O
with	O	O
the	O	O
default	O	O
track	O	O
listing	O	O
.	O	O

What	O	O
is	O	O
the	O	O
proper	O	O
way	O	O
to	O	O
query	O	O
the	O	O
tracks	O	O
endpoint	O	O
from	O	O
cURL	O	B-Library
?	O	O

There	O	O
's	O	O
nothing	O	O
incorrect	O	O
about	O	O
the	O	O
URL	O	O
you	O	O
're	O	O
using	O	O
,	O	O
so	O	O
if	O	O
you	O	O
're	O	O
getting	O	O
a	O	O
401	O	B-Error_Name
it	O	O
is	O	O
because	O	O
you	O	O
are	O	O
using	O	O
an	O	O
invalid	O	O
client	O	B-Variable
id	O	I-Variable
.	O	O

Please	O	O
double	O	O
check	O	O
that	O	O
the	O	O
client	O	B-Variable
id	O	I-Variable
is	O	O
the	O	O
same	O	O
as	O	O
the	O	O
one	O	O
you	O	O
are	O	O
using	O	O
when	O	O
initializing	O	O
the	O	O
JavaScript	O	B-Library
SDK	O	I-Library
.	O	O

For	O	O
example	O	O
,	O	O
the	O	O
following	O	O
works	O	O
just	O	O
fine	O	O
using	O	O
a	O	O
client	O	B-Variable
id	O	I-Variable
of	O	O
one	O	O
of	O	O
my	O	O
test	O	O
apps	O	O
:	O	O

curl	B-Code_Block	B-Code_Block
"	I-Code_Block	I-Code_Block
https://api.soundcloud.com/tracks?q=track&client_id=aeb03ac55f278fc7e579c744144b1d5d	I-Code_Block	I-Code_Block

The	O	O
order	O	O
of	O	O
the	O	O
parameters	O	O
in	O	O
the	O	O
querystring	O	O
will	O	O
have	O	O
no	O	O
effect	O	O
on	O	O
the	O	O
response	O	O
.	O	O

I	O	O
am	O	O
looking	O	O
for	O	O
some	O	O
simple	O	O
sql	O	B-Language
to	O	O
convert	O	O
a	O	O
simple	O	O
sql	O	B-Language
query	O	O
which	O	O
will	O	O
return	O	O
me	O	O
some	O	O
column	O	B-Data_Structure
values	O	O
like	O	O
this	O	O

which	O	O
returns	O	O
me	O	O

what	O	O
I	O	O
actually	O	O
want	O	O
is	O	O
to	O	O
append	O	O
something	O	O
to	O	O
this	O	O
query	O	O
that	O	O
will	O	O
return	O	O
me	O	O
same	O	O
record	O	O
but	O	O
certain	O	O
number	O	O
of	O	O
times	O	O
with	O	O
one	O	O
differing	O	O
value	O	O
.	O	O

Any	O	O
help	O	O
or	O	O
guidance	O	O
is	O	O
appreciated	O	O
.	O	O

P.S	O	O
.	O	O
If	O	O
anyone	O	O
be	O	O
able	O	O
to	O	O
show	O	O
it	O	O
how	O	O
to	O	O
do	O	O
it	O	O
in	O	O
c#	O	B-Language
with	O	O
sql	O	B-Language
mapping	O	O
to	O	O
object	O	O
will	O	O
be	O	O
useful	O	O
as	O	O
well.Thanks	O	O
alot	O	O
.	O	O

You	O	O
've	O	O
not	O	O
stated	O	O
where	O	O
the	O	O
values	O	O
'	O	O
x	O	B-Variable
'	O	O
,	O	O
'	O	O
y	O	B-Variable
'	O	O
and	O	O
'	O	O
z	O	B-Variable
'	O	O
come	O	O
from	O	O
,	O	O
but	O	O
typically	O	O
this	O	O
would	O	O
be	O	O
from	O	O
another	O	O
table	O	B-Data_Structure
.	O	O

In	O	O
which	O	O
case	O	O
,	O	O
let	O	O
's	O	O
make	O	O
another	O	O
table	O	B-Data_Structure
and	O	O
join	O	O
them	O	O
in	O	O
a	O	O
way	O	O
that	O	O
every	O	O
row	O	B-Data_Structure
in	O	O
the	O	O
2nd	O	O
table	O	B-Data_Structure
joins	O	O
with	O	O
the	O	O
same	O	O
row	O	B-Data_Structure
in	O	O
the	O	O
table	O	B-Data_Structure
that	O	O
you	O	O
have	O	O
described	O	O
:	O	O

Result	O	O
:	O	O

Well	O	O
ok	O	O
,	O	O
here	O	O
's	O	O
some	O	O
SQL	O	B-Language
magic	O	O
.	O	O

This	O	O
is	O	O
just	O	O
using	O	O
an	O	O
(	O	O
implicit	O	O
)	O	O
cross	O	O
join	O	O
to	O	O
get	O	O
the	O	O
cartesian	O	O
product	O	O
of	O	O
the	O	O
single	O	O
@alphabets	B-Code_Block	O
row	O	B-Data_Structure
and	O	O
the	O	O
three	O	O
xyz	B-Code_Block	B-Variable
rows	O	B-Data_Structure
.	O	O

Project	O	O
Structure	O	O
(	O	O
src	O	O
contains	O	O
react	O	O
component	O	O
classes	O	O
using	O	O
jsx	O	B-Language
syntax	O	O
)	O	O
:	O	O

Command	O	O
I	O	O
'm	O	O
running	O	O
:	O	O
babel	B-Code_Block	B-Code_Block
src	I-Code_Block	I-Code_Block
--out-dir	I-Code_Block	I-Code_Block
lib	I-Code_Block	I-Code_Block

And	O	O
here	O	O
is	O	O
the	O	O
error	O	O

here	O	O
are	O	O
my	O	O
top	O	O
babel	O	B-Library
devDependencies	O	O
(	O	O
not	O	O
including	O	O
plugins	O	O
)	O	O

Could	O	O
this	O	O
be	O	O
a	O	O
legitimate	O	O
bug	O	O
in	O	O
babel	O	B-Library
?	O	O

Or	O	O
perhaps	O	O
I	O	O
need	O	O
a	O	O
different	O	O
node	O	B-Library
version	O	O
,	O	O
dependency	O	O
version	O	O
?	O	O

Any	O	O
thoughts	O	O
or	O	O
advice	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

Realized	O	O
that	O	O
a	O	O
copy	O	O
of	O	O
node_modules	O	O
somehow	O	O
made	O	O
it	O	O
into	O	O
my	O	O
src	O	O
folder	O	O
.	O	O

So	O	O
babel	O	B-Library
was	O	O
running	O	O
against	O	O
all	O	O
of	O	O
node_modules	O	B-Class
.	O	O

Also	O	O
simplified	O	O
my	O	O
babel.rc	O	B-File_Name
file	O	O
to	O	O
just	O	O
this	O	O
..	O	O
.	O	O

After	O	O
that	O	O
it	O	O
works	O	O
fine	O	O
.	O	O

So	O	O
the	O	O
issue	O	O
was	O	O
either	O	O
from	O	O
babel	O	B-Library
running	O	O
aginst	O	O
something	O	O
weird	O	O
in	O	O
node_modules	O	B-Class
or	O	O
one	O	O
of	O	O
the	O	O
many	O	O
plugins	O	O
I	O	O
had	O	O
manually	O	O
specified	O	O
before	O	O
.	O	O

The	O	O
error	O	O
message	O	O
is	O	O
still	O	O
really	O	O
confusing	O	O
but	O	O
at	O	O
least	O	O
I	O	O
do	O	O
n't	O	O
think	O	O
it	O	O
was	O	O
any	O	O
fault	O	O
of	O	O
babel	O	B-Library
.	O	O

I	O	O
have	O	O
a	O	O
model	O	O
that	O	O
needs	O	O
to	O	O
be	O	O
saved	O	O
in	O	O
to	O	O
a	O	O
MongoDB	O	B-Library
collection	O	O
.	O	O

To	O	O
get	O	O
the	O	O
collection	O	O
name	O	O
I	O	O
have	O	O
two	O	O
options	O	O
before	O	O
me	O	O
.	O	O

1)	O	O
Attribute	O	O

I	O	O
decorate	O	O
the	O	O
class	O	O
with	O	O
a	O	O
custom	O	O
attribute	O	O
and	O	O
use	O	O
reflection	O	O
to	O	O
access	O	O
the	O	O
value	O	O
inside	O	O
it	O	O
.	O	O

I	O	O
can	O	O
then	O	O
cache	O	O
this	O	O
with	O	O
the	O	O
type	B-Code_Block	O
to	O	O
avoid	O	O
future	O	O
lookups	O	O
.	O	O

2)	O	O
Static	O	O
Property	O	O

Here	O	O
I	O	O
have	O	O
a	O	O
static	O	B-Data_Type
property	O	O
in	O	O
the	O	O
class	O	O
that	O	O
contains	O	O
the	O	O
collection	O	O
name	O	O
.	O	O

I	O	O
find	O	O
that	O	O
I	O	O
am	O	O
inclined	O	O
to	O	O
go	O	O
with	O	O
the	O	O
former	O	O
as	O	O
it	O	O
looks	O	O
and	O	O
feels	O	O
cleaner	O	O
but	O	O
some	O	O
of	O	O
the	O	O
senior	O	O
devs	O	O
here	O	O
are	O	O
turning	O	O
their	O	O
nose	O	O
up	O	O
at	O	O
the	O	O
use	O	O
of	O	O
reflection	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
case	O	O
to	O	O
be	O	O
made	O	O
for	O	O
the	O	O
first	O	O
option	O	O
or	O	O
is	O	O
it	O	O
just	O	O
better	O	O
to	O	O
go	O	O
with	O	O
option	O	O
2	O	O
?	O	O

This	O	O
is	O	O
a	O	O
clear	O	O
case	O	O
of	O	O
metadata	O	O
vs	O	O
.	O	O
data	O	O
:	O	O

Option	O	O
1	O	O
:	O	O
Attributes	O	O
are	O	O
supposed	O	O
to	O	O
hold	O	O
metadata	O	O
about	O	O
the	O	O
entities	O	O
they	O	O
are	O	O
attached	O	O
to	O	O
.	O	O

Option	O	O
2	O	O
:	O	O
member	O	O
fields	O	O
and	O	O
properties	O	O
,	O	O
regardless	O	O
if	O	O
instance	O	O
or	O	O
static	O	B-Data_Type
,	O	O
are	O	O
supposed	O	O
to	O	O
hold	O	O
data	O	O
that	O	O
make	O	O
up	O	O
the	O	O
integral	O	O
value	O	O
of	O	O
the	O	O
class	O	O
.	O	O

Hence	O	O
,	O	O
option	O	O
1	O	O
,	O	O
attributes	O	O
,	O	O
is	O	O
the	O	O
right	O	O
approach	O	O
to	O	O
represent	O	O
metadata	O	O
.	O	O

Usage	O	O
of	O	O
reflection	O	O
is	O	O
a	O	O
mere	O	O
technicality	O	O
and	O	O
can	O	O
be	O	O
encapsulated	O	O
into	O	O
a	O	O
separate	O	O
class	O	O
,	O	O
e.g	O	O
.	O	O

an	O	O
AttributeManager	B-Code_Block	B-Class
,	O	O
that	O	O
would	O	O
ease	O	O
access	O	O
to	O	O
metadata	O	O
and	O	O
cache	O	O
them	O	O
appropriately	O	O
to	O	O
avoid	O	O
performance	O	O
overhead	O	O
(	O	O
should	O	O
that	O	O
be	O	O
an	O	O
issue	O	O
in	O	O
a	O	O
particular	O	O
case	O	O
)	O	O
.	O	O

I	O	O
'm	O	O
at	O	O
a	O	O
client	O	B-Application
site	O	O
where	O	O
they	O	O
have	O	O
an	O	O
application	O	O
which	O	O
began	O	O
in	O	O
SharePoint	O	B-Application
and	O	O
is	O	O
slowly	O	O
migrating	O	O
away	O	O
to	O	O
a	O	O
very	O	O
custom	O	O
ASP.NET	O	B-Library
application	O	O
.	O	O

Some	O	O
of	O	O
their	O	O
data	O	O
elements	O	O
are	O	O
still	O	O
hosted	O	O
within	O	O
SharePoint	O	B-Application
lists	O	O
,	O	O
two	O	O
of	O	O
which	O	O
currently	O	O
in	O	O
question	O	O
are	O	O
some	O	O
"	O	O
Notes	O	O
"	O	O
and	O	O
"	O	O
Tasks	O	O
"	O	O
(	O	O
fairly	O	O
simple	O	O
data	O	O
elements	O	O
in	O	O
their	O	O
SharePoint	O	B-Application
setup	O	O
,	O	O
nothing	O	O
special	O	O
about	O	O
them	O	O
)	O	O
.	O	O

One	O	O
of	O	O
the	O	O
things	O	O
I	O	O
need	O	O
to	O	O
be	O	O
able	O	O
to	O	O
do	O	O
from	O	O
within	O	O
ASP.NET	O	B-Library
is	O	O
to	O	O
automatically	O	O
create	O	O
some	O	O
new	O	O
items	O	O
for	O	O
these	O	O
lists	O	B-Data_Structure
and	O	O
add	O	O
them	O	O
from	O	O
code	O	O
.	O	O

So	O	O
far	O	O
it	O	O
's	O	O
pretty	O	O
easy	O	O
.	O	O

I	O	O
found	O	O
the	O	O
existing	O	O
web	O	O
part	O	O
which	O	O
handled	O	O
the	O	O
editing	O	O
for	O	O
those	O	O
items	O	O
,	O	O
attached	O	O
the	O	O
debugger	O	O
to	O	O
it	O	O
,	O	O
tracked	O	O
how	O	O
it	O	O
got	O	O
its	O	O
values	O	O
and	O	O
what	O	O
it	O	O
added	O	O
to	O	O
the	O	O
list	O	B-Data_Structure
,	O	O
etc	O	O
.	O	O

However	O	O
,	O	O
one	O	O
of	O	O
the	O	O
fields	O	O
being	O	O
added	O	O
to	O	O
the	O	O
list	O	O
item	O	O
is	O	O
n't	O	O
quite	O	O
as	O	O
obvious	O	O
.	O	O

In	O	O
the	O	O
existing	O	O
web	O	O
part	O	O
UI	O	O
,	O	O
the	O	O
field	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

Essentially	O	O
,	O	O
it	O	O
's	O	O
a	O	O
field	O	O
for	O	O
entering	O	O
a	O	O
user	O	O
from	O	O
the	O	O
current	O	O
Windows	O	B-Website
domain	O	O
.	O	O

The	O	O
book	O	O
icon	O	O
opens	O	O
a	O	O
pop-up	O	B-User_Interface_Element
which	O	O
allows	O	O
the	O	O
user	O	O
to	O	O
search	O	O
for	O	O
a	O	O
name	O	O
,	O	O
etc	O	O
.	O	O

In	O	O
my	O	O
current	O	O
testing	O	O
,	O	O
I	O	O
'm	O	O
running	O	O
as	O	O
local	O	O
Administrator	O	O
on	O	O
a	O	O
development	O	O
machine	O	O
.	O	O

So	O	O
I	O	O
just	O	O
look	O	O
for	O	O
"	O	O
admin	O	B-Value
"	O	O
in	O	O
the	O	O
pop-up	O	B-User_Interface_Element
and	O	O
it	O	O
populates	O	O
the	O	O
field	O	O
with	O	O
"	O	B-Value
[	O	I-Value
machine	O	I-Value
name	O	I-Value
]	O	I-Value
\Administrator	O	B-Value
"	O	B-Value
as	O	O
expected	O	O
.	O	O

Then	O	O
,	O	O
in	O	O
debugging	O	O
,	O	O
the	O	O
value	O	O
that	O	O
gets	O	O
pulled	O	O
from	O	O
the	O	O
field	O	O
and	O	O
entered	O	O
into	O	O
the	O	O
SharePoint	O	B-Application
list	O	O
item	O	O
is	O	O
"	O	O
1	O	B-Value
"	O	O
as	O	O
opposed	O	O
to	O	O
a	O	O
name	O	O
or	O	O
anything	O	O
like	O	O
that	O	O
.	O	O

I	O	O
assume	O	O
that	O	O
"	O	O
1	O	B-Value
"	O	O
is	O	O
an	O	O
identifier	O	O
for	O	O
the	O	O
local	O	O
admin	O	O
account	O	O
.	O	O

Makes	O	O
sense	O	O
,	O	O
after	O	O
all	O	O
.	O	O

But	O	O
my	O	O
question	O	O
is	O	O
,	O	O
how	O	O
can	O	O
I	O	O
get	O	O
that	O	O
identifier	O	O
for	O	O
the	O	O
current	O	O
logged-in	O	O
user	O	O
in	O	O
code	O	O
?	O	O

I	O	O
've	O	O
found	O	O
code	O	O
to	O	O
get	O	O
the	O	O
current	O	O
user	O	O
's	O	O
name	O	O
,	O	O
but	O	O
not	O	O
any	O	O
kind	O	O
of	O	O
numeric	O	O
(	O	O
even	O	O
though	O	O
it	O	O
's	O	O
a	O	O
string	O	B-Data_Type
)	O	O
ID	O	B-Variable
.	O	O

Additionally	O	O
,	O	O
this	O	O
would	O	O
n't	O	O
just	O	O
be	O	O
happening	O	O
inside	O	O
of	O	O
an	O	O
ASP.NET	O	B-Library
application	O	O
context	O	O
.	O	O

There	O	O
's	O	O
also	O	O
a	O	O
WPF	O	B-Library
client	O	B-Application
application	O	O
for	O	O
laptops	O	B-Device
which	O	O
would	O	O
be	O	O
generating	O	O
these	O	O
list	O	B-Data_Structure
items	O	O
and	O	O
synchronizing	O	O
them	O	O
back	O	O
to	O	O
the	O	O
server	O	B-Application
when	O	O
connected	O	O
.	O	O

I	O	O
'm	O	O
currently	O	O
operating	O	O
on	O	O
the	O	O
assumption	O	O
that	O	O
the	O	O
client	O	B-Application
user	O	O
would	O	O
be	O	O
logged	O	O
in	O	O
with	O	O
a	O	O
proper	O	O
domain	O	O
account	O	O
known	O	O
to	O	O
the	O	O
server	O	B-Application
.	O	O

I	O	O
imagine	O	O
this	O	O
is	O	O
pretty	O	O
easy	O	O
,	O	O
I	O	O
just	O	O
have	O	O
n't	O	O
stumbled	O	O
across	O	O
what	O	O
I	O	O
need	O	O
quite	O	O
yet	O	O
.	O	O

I	O	O
suppose	O	O
you	O	O
're	O	O
looking	O	O
for	O	O
this	O	O
:	O	O

By	O	O
the	O	O
way	O	O
,	O	O
this	O	O
is	O	O
the	O	O
internal	O	O
Id	O	B-Variable
assigned	O	O
by	O	O
SharePoint	O	B-Application
to	O	O
the	O	O
user	O	O
.	O	O

To	O	O
get	O	O
this	O	O
Id	O	B-Variable
from	O	O
a	O	O
WPF	O	B-Library
application	O	O
,	O	O
you	O	O
could	O	O
deploy	O	O
a	O	O
WebService	O	O
inside	O	O
SharePoint	O	B-Application
that	O	O
would	O	O
return	O	O
this	O	O
Id	O	B-Variable
.	O	O

Or	O	O
you	O	O
can	O	O
even	O	O
query	O	O
the	O	O
SharePoint	O	B-Application
database	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
if	O	O
it	O	O
's	O	O
safe	O	O
:-)	O	O

I	O	O
'm	O	O
using	O	O
Mule	O	B-Application
standalone	O	I-Application
3.1.0	O	B-Version
and	O	O
I	O	O
have	O	O
a	O	O
flow	O	O
with	O	O
a	O	O
default	O	O
exception	O	B-Class
strategy	O	O
.	O	O

My	O	O
fooImpl	B-Code_Block	B-Class
class	O	O
throws	O	O
an	O	O
exception	O	B-Class
on	O	O
purpose	O	O
and	O	O
its	O	O
stacktrace	O	O
gets	O	O
vomited	O	O
onto	O	O
the	O	O
mule	O	B-Application
stdout	O	B-Class
-	O	O
ExceptionTransformer	B-Code_Block	B-Class
is	O	O
not	O	O
triggered	O	O
and	O	O
I	O	O
get	O	O
no	O	O
email	O	O
.	O	O

If	O	O
I	O	O
remove	O	O
the	O	O
default-exception-strategy	B-Code_Block	B-Code_Block
completely	O	O
nothing	O	O
at	O	O
all	O	O
changes	O	O
.	O	O

I	O	O
want	O	O
it	O	O
to	O	O
send	O	O
an	O	O
email	O	O
and	O	O
print	O	O
the	O	O
exception	O	B-Class
with	O	O
ExceptionTransformer	B-Code_Block	B-Class
.	O	O

What	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
?	O	O

Further	O	O
on	O	O
,	O	O
I	O	O
tried	O	O
to	O	O
use	O	O
<custom-exception-strategy	B-Code_Block	B-Code_Block
class="com.arcusys.nkeservice.mule.dynasty.ExceptionTest">	I-Code_Block	I-Code_Block
instead	O	O
of	O	O
default-exception-strategy	B-Code_Block	B-Code_Block
.	O	O

Then	O	O
ExceptionTest	B-Code_Block	B-Class
gets	O	O
instantiated	O	O
during	O	O
service	O	O
startup	O	O
,	O	O
but	O	O
@override	B-Code_Block	B-Code_Block
handleException	I-Code_Block	B-Function
never	O	O
gets	O	O
called	O	O
.	O	O

My	O	O
forced	O	O
exception	O	B-Class
I	O	O
get	O	O
to	O	O
stdout	O	B-Variable
is	O	O
like	O	O
this	O	O
:	O	O

There	O	O
was	O	O
problems	O	O
with	O	O
CXF	O	B-Library
components	O	O
invoking	O	O
exception	O	B-Class
strategies	O	O
prior	O	O
to	O	O
Mule	O	B-Application
3.1.3	O	B-Version
:	O	O

http://mule.1045714.n5.nabble.com/mule-scm-mule-22344-branches-mule-3-1-x-modules-cxf-src-test-resources-EE-2273-td4557349.html	O	O

EE-2273	O	O
-	O	O
http://www.mulesoft.org/documentation/display/current/Mule+ESB+3.1.3+Release+Notes	O	O

use	O	O
below	O	O
as	O	O
part	O	O
of	O	O
choice	O	O
based	O	O
exception	O	B-Class
strategy	O	O
for	O	O
your	O	O
flow	O	B-HTML_XML_Tag

let	O	O
say	O	O
that	O	O
i	O	O
have	O	O
a	O	O
file	O	O

how	O	O
would	O	O
i	O	O
read	O	O
that	O	O
into	O	O
a	O	O
vector	O	B-Data_Structure
called	O	O
vector	B-Code_Block	B-Code_Block
<Item>	I-Code_Block	I-Code_Block
items	I-Code_Block	I-Code_Block
;	O	O
where	O	O
Item	O	B-Class
is	O	O
a	O	O
class	O	O
that	O	O
consists	O	O
of	O	O
those	O	O
names	O	O
as	O	O
listed	O	O
in	O	O
the	O	O
list	O	B-Data_Structure
.	O	O

i	O	O
have	O	O
a	O	O
set()	O	B-Function
methods	O	O
for	O	O
all	O	O
of	O	O
them	O	O
but	O	O
how	O	O
would	O	O
i	O	O
read	O	O
one	O	O
of	O	O
each	O	O
values	O	O
and	O	O
set	O	O
it	O	O
for	O	O
example	O	O
setID()	O	B-Function
and	O	O
its	O	O
value	O	O
and	O	O
if	O	O
it	O	O
is	O	O
empty	O	O
put	O	O
a	O	O
value	O	O
-1	O	B-Value
.	O	O

What	O	O
i	O	O
have	O	O
so	O	O
far	O	O
is	O	O
just	O	O
a	O	O
basic	O	O
file	O	O
open	O	O

should	O	O
i	O	O
use	O	O
a	O	O
istringstream	O	B-Class
or	O	O
what	O	O
?	O	O

UPDATE	O	O
:	O	O

BUT	O	O
I	O	O
get	O	O
an	O	O
error	O	O
:	O	O
statement	O	O
cannot	O	O
resolve	O	O
address	O	O
of	O	O
overloaded	O	O
function	O	O
at	O	O
line	O	O
:	O	O
ifstream	B-Code_Block	B-Code_Block
input(file_name)	I-Code_Block	I-Code_Block

They	O	O
way	O	O
I	O	O
would	O	O
do	O	O
is	O	O
is	O	O
to	O	O
start	O	O
writing	O	O
a	O	O
suitable	O	O
input	O	O
operator	O	B-Code_Block
:	O	O

Once	O	O
this	O	O
operator	O	B-Code_Block
is	O	O
in	O	O
place	O	O
,	O	O
you	O	O
can	O	O
read	O	O
the	O	O
file	O	O
using	O	O
something	O	O
like	O	O
this	O	O
:	O	O

I	O	O
wonder	O	O
if	O	O
it	O	O
's	O	O
possible	O	O
to	O	O
create	O	O
two	O	O
consecutive	O	O
lists	O	B-Data_Structure
in	O	O
markdown	O	O
without	O	O
them	O	O
being	O	O
merged	O	O
automatically	O	O
:	O	O

Example	O	O
:	O	O

a	O	B-Value

b	O	B-Value

x	O	B-Value

y	O	B-Value

The	O	O
following	O	O
markdown	O	B-Language
does	O	O
n't	O	O
work	O	O
since	O	O
it	O	O
puts	O	O
the	O	O
second	O	O
list	O	B-Data_Structure
inside	O	O
the	O	O
last	O	O
element	O	O
of	O	O
the	O	O
first	O	O
list	O	B-Data_Structure
:	O	O

Demo	O	O
:	O	O

a	O	B-Value

b	O	B-Value

x	O	B-Value

y	O	B-Value

While	O	O
any	O	O
solutions	O	O
are	O	O
welcome	O	O
,	O	O
I	O	O
'd	O	O
prefer	O	O
one	O	O
working	O	O
with	O	O
python-markdown	O	B-Library
.	O	O

The	O	O
easiest	O	O
and	O	O
cleanest	O	O
way	O	O
that	O	O
I	O	O
found	O	O
is	O	O
adding	O	O
a	O	O
comment	O	O
between	O	O
lists	O	B-Data_Structure
:	O	O

Here	O	O
is	O	O
a	O	O
working	O	O
example	O	O
in	O	O
stackoverflow	O	B-Website
's	O	O
markdown	O	B-Language
:	O	O

a	O	B-Value

b	O	B-Value

x	O	B-Value

y	O	B-Value

However	O	O
,	O	O
it	O	O
's	O	O
sad	O	O
that	O	O
this	O	O
bugs	O	O
occurs	O	O
:	O	O
someone	O	O
must	O	O
go	O	O
and	O	O
fill	O	O
the	O	O
bugs	O	O
for	O	O
it	O	O
for	O	O
different	O	O
markdown	O	B-Language
implementations	O	O
.	O	O

I	O	O
have	O	O
a	O	O
ListView	O	B-Class
and	O	O
I	O	O
want	O	O
the	O	O
first	O	O
two	O	O
entries	O	O
in	O	O
it	O	O
to	O	O
be	O	O
displayed	O	O
differently	O	O
than	O	O
the	O	O
rest	O	O
.	O	O

Nothing	O	O
fancy	O	O
,	O	O
I	O	O
want	O	O
them	O	O
all	O	O
to	O	O
just	O	O
be	O	O
text	O	B-Class
views	O	I-Class
.	O	O

But	O	O
the	O	O
first	O	O
two	O	O
entries	O	O
need	O	O
to	O	O
have	O	O
different	O	O
sizes	O	O
and	O	O
weights	O	O
than	O	O
the	O	O
rest	O	O
.	O	O

I	O	O
tried	O	O
modifying	O	O
the	O	O
ArrayAdapter	O	B-Class
class	O	O
like	O	O
so	O	O
:	O	O

But	O	O
this	O	O
inadvertantly	O	O
causes	O	O
some	O	O
of	O	O
the	O	O
other	O	O
textviews	O	B-Class
to	O	O
take	O	O
on	O	O
these	O	O
special	O	O
attributes	O	O
.	O	O

I	O	O
think	O	O
it	O	O
's	O	O
because	O	O
cause	O	O
textviews	O	B-Class
get	O	O
"	O	O
recycled	O	O
"	O	O
in	O	O
the	O	O
AbsListAdapter	O	B-Class
class	O	O
.	O	O

Try	O	O
like	O	O
this	O	O
:	O	O

I	O	O
have	O	O
the	O	O
following	O	O
tables	O	B-Data_Structure
with	O	O
their	O	O
columns	O	B-Data_Structure
(	O	O
only	O	O
the	O	O
relevant	O	O
columns	O	B-Data_Structure
are	O	O
listed	O	O
)	O	O
:	O	O

EDIT	O	O
:	O	O
I	O	O
had	O	O
forgotten	O	O
to	O	O
mention	O	O
that	O	O
CoreHourID	O	B-Variable
is	O	O
n't	O	O
a	O	O
unique	O	O
field	O	O
,	O	O
table	O	B-Data_Structure
can	O	O
look	O	O
like	O	O
this	O	O
:	O	O

Sorry	O	O
for	O	O
the	O	O
big	O	O
layout	O	O
,	O	O
I	O	O
really	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
to	O	O
properly	O	O
post	O	O
table	O	B-Data_Structure
information	O	O
.	O	O

Now	O	O
here	O	O
's	O	O
an	O	O
attempt	O	O
at	O	O
explaining	O	O
what	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
do	O	O
:	O	O

Every	O	O
day	O	O
,	O	O
a	O	O
row	O	B-Data_Structure
should	O	O
be	O	O
inserted	O	O
in	O	O
Entry	B-Code_Block	B-Variable
and	O	O
Hour	B-Code_Block	B-Variable
for	O	O
all	O	O
employees	O	O
who	O	O
are	O	O
WorkingFromHome	B-Code_Block	B-Variable
.	O	O

In	O	O
the	O	O
Entry	B-Code_Block	B-Variable
table	O	B-Data_Structure
it	O	O
should	O	O
place	O	O
the	O	O
corresponding	O	O
EmployeeNumber	B-Code_Block	B-Variable
,	O	O
and	O	O
for	O	O
JustifyDate	B-Code_Block	B-Variable
it	O	O
should	O	O
add	O	O
whatever	O	O
day	O	O
it	O	O
is	O	O
when	O	O
the	O	O
job	O	O
is	O	O
running	O	O
.	O	O

For	O	O
the	O	O
EntryDate	B-Code_Block	B-Variable
field	O	O
it	O	O
should	O	O
add	O	O
that	O	O
day	O	O
's	O	O
date	O	O
,	O	O
but	O	O
the	O	O
time	O	O
part	O	O
should	O	O
be	O	O
the	O	O
InHour	B-Code_Block	B-Variable
from	O	O
the	O	O
first	O	O
corresponding	O	O
CoreHour	B-Code_Block	B-Variable
row	O	B-Data_Structure
.	O	O

For	O	O
the	O	O
Hour	B-Code_Block	B-Variable
table	O	O
it	O	O
should	O	O
add	O	O
the	O	O
EntryID	B-Code_Block	B-Variable
that	O	O
just	O	O
got	O	O
inserted	O	O
in	O	O
the	O	O
Entry	B-Code_Block	B-Variable
table	O	B-Data_Structure
,	O	O
and	O	O
the	O	O
InHour	B-Code_Block	B-Variable
should	O	O
be	O	O
the	O	O
same	O	O
as	O	O
the	O	O
EntryDate	B-Code_Block	B-Variable
and	O	O
for	O	O
the	O	O
OutHour	B-Code_Block	B-Variable
field	O	O
it	O	O
should	O	O
add	O	O
a	O	O
DateTime	O	B-Data_Type
based	O	O
on	O	O
the	O	O
last	O	O
OutHour	B-Code_Block	B-Variable
corresponding	O	O
for	O	O
the	O	O
employee	O	O
's	O	O
CoreHourID	B-Code_Block	B-Variable
.	O	O

I	O	O
'm	O	O
struggling	O	O
a	O	O
lot	O	O
,	O	O
so	O	O
any	O	O
help	O	O
is	O	O
appreciated	O	O
.	O	O

PS	O	O
:	O	O
Any	O	O
comments/questions	O	O
regarding	O	O
my	O	O
explanation	O	O
are	O	O
welcome	O	O
and	O	O
I	O	O
will	O	O
gladly	O	O
respond	O	O
.	O	O

The	O	O
following	O	O
could	O	O
be	O	O
encapsulated	O	O
into	O	O
a	O	O
stored	O	O
procedure	O	O
that	O	O
can	O	O
be	O	O
executed	O	O
via	O	O
a	O	O
scheduled	O	O
job	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
exactly	O	O
sure	O	O
what	O	O
you	O	O
meant	O	O
by	O	O
for	B-Code_Block	O
JustifyDate	I-Code_Block	B-Variable
it	I-Code_Block	O
should	I-Code_Block	O
add	I-Code_Block	O
whatever	I-Code_Block	O
day	I-Code_Block	O
it	I-Code_Block	O
is	I-Code_Block	O
when	I-Code_Block	O
the	I-Code_Block	O
job	I-Code_Block	O
is	I-Code_Block	O
running	I-Code_Block	O
.	O	O

(	O	O
Revised	O	O
to	O	O
use	O	O
Output	O	O
clause	O	O
)	O	O
.	O	O

Given	O	O
this	O	O
table	O	B-Data_Structure
:	O	O

With	O	O
this	O	O
model	O	O
class	O	O
:	O	O

Is	O	O
it	O	O
possible	O	O
for	O	O
a	O	O
DataContext	O	B-Class
to	O	O
fill	O	O
the	O	O
ArbitraryText	B-Code_Block	B-Variable
property	O	O
when	O	O
using	O	O
the	O	O
ExecuteQuery	B-Code_Block	B-Function
method	O	O
:	O	O

It	O	O
seems	O	O
that	O	O
the	O	O
entity	O	O
mapping	O	O
algorithm	O	O
ignores	O	O
any	O	O
property	O	O
not	O	O
marked	O	O
with	O	O
ColumnAttribute	B-Code_Block	B-Variable
,	O	O
but	O	O
is	O	O
there	O	O
another	O	O
way	O	O
of	O	O
doing	O	O
this	O	O
?	O	O

I	O	O
'd	O	O
prefer	O	O
not	O	O
having	O	O
to	O	O
do	O	O
the	O	O
mapping	O	O
myself	O	O
,	O	O
but	O	O
this	O	O
looks	O	O
like	O	O
my	O	O
only	O	O
option	O	O
.	O	O

Edit	O	O
:	O	O
What	O	O
's	O	O
annoying	O	O
is	O	O
that	O	O
the	O	O
DataContext.ExecuteQuery	O	B-Function
function	O	O
will	O	O
fill	O	O
a	O	O
POCO	O	B-Class
object	O	O
from	O	O
a	O	O
query	O	O
:	O	O

So	O	O
my	O	O
current	O	O
solution	O	O
is	O	O
to	O	O
have	O	O
an	O	O
inner	O	O
class	O	O
on	O	O
my	O	O
LINQ-mapped	O	B-Library
object	O	O
that	O	O
holds	O	O
the	O	O
extra	O	O
data	O	O
my	O	O
aggregate	O	O
query	O	O
returns	O	O
.	O	O

This	O	O
is	O	O
sub-optimal	O	O
,	O	O
as	O	O
some	O	O
properties	O	O
are	O	O
duplicated	O	O
(	O	O
for	O	O
example	O	O
,	O	O
Id	O	B-Variable
and	O	O
Text	O	B-Variable
)	O	O
.	O	O

Not	O	O
as	O	O
far	O	O
as	O	O
I	O	O
know	O	O
.	O	O

You	O	O
could	O	O
probably	O	O
do	O	O
some	O	O
grungy	O	O
things	O	O
to	O	O
marry	O	O
data	O	O
from	O	O
a	O	O
UDF	O	O
,	O	O
perhaps	O	O
-	O	O
but	O	O
other	O	O
than	O	O
that	O	O
,	O	O
it	O	O
is	O	O
going	O	O
to	O	O
want	O	O
to	O	O
be	O	O
able	O	O
to	O	O
map	O	O
the	O	O
columns	O	B-Data_Structure
.	O	O

(	O	O
where	O	O
the	O	O
UDF	O	O
just	O	O
returns	O	O
the	O	O
arbitrary	O	O
text	O	B-Variable
and	O	O
the	O	O
comment-id	O	B-Variable
)	O	O

Alternatively	O	O
-	O	O
A	O	O
while	O	O
I	O	O
wrote	O	O
a	O	O
few	O	O
variants	O	O
on	O	O
ExecuteQuery	B-Code_Block	B-Function
that	O	O
might	O	O
be	O	O
useful	O	O
if	O	O
you	O	O
need	O	O
to	O	O
use	O	O
this	O	O
approach	O	O
for	O	O
lots	O	O
of	O	O
different	O	O
things.	O	O
.	O	O

Personally	O	O
,	O	O
I	O	O
'd	O	O
probably	O	O
try	O	O
to	O	O
side-step	O	O
the	O	O
issue	O	O
first	O	O
,	O	O
though	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
append	O	O
an	O	O
existing	O	O
line	O	O
in	O	O
a	O	O
file	O	O
(	O	O
Cent	O	B-Operating_System
OS	O	I-Operating_System
)	O	O
.	O	O

For	O	O
example	O	O
I	O	O
have	O	O
a	O	O
file	O	O
that	O	O
have	O	O
the	O	O
following	O	O

so	O	O
adding	O	O
hash	O	O
to	O	O
the	O	O
'	O	O
to	O	O
this	O	O
line	O	O
'	O	O

Using	O	O
sed	O	B-Code_Block
will	O	O
do	O	O
the	O	O
trick	O	O
?	O	O

**	O	O

Update	O	O
:	O	O

**	O	O
just	O	O
so	O	O
you	O	O
for	O	O
general	O	O
information	O	O
,	O	O
I	O	O
'm	O	O
using	O	O
this	O	O
to	O	O
edit	O	O
sudoers	O	B-File_Type
file	O	O
this	O	O
will	O	O
be	O	O
part	O	O
of	O	O
a	O	O
script	O	O
I	O	O
'm	O	O
working	O	O
on	O	O
.	O	O

While	O	O
working	O	O
with	O	O
difference	O	O
branches	O	O
in	O	O
git	O	B-Application
I	O	O
usually	O	O
prefer	O	O
to	O	O
all	O	O
branches	O	O
up	O	O
to	O	O
date	O	O
with	O	O
master	O	O
.	O	O

So	O	O
my	O	O
usual	O	O
workflow	O	O
is	O	O
as	O	O
follow	O	O

Work	O	O
on	O	O
the	O	O
branch	O	O
(	O	O
e.g	O	O
.	O	O
feature	O	B-Variable
1)	O	I-Variable

Checkout	O	O
master	O	O
and	O	O
re-base	O	O
branch	O	O

Checkout	O	O
another	O	O
branch	O	O
(	O	O
e.g	O	O
.	O	O
feature	O	B-Variable
2)	O	I-Variable

Re-base	O	O
(	O	O
feature	O	O
2)	O	O
branch	O	O
with	O	O
master	O	O
.	O	O

This	O	O
way	O	O
my	O	O
master	O	O
as	O	O
wells	O	O
as	O	O
feature2	O	B-Variable
branch	O	O
are	O	O
up	O	O
to	O	O
date	O	O
with	O	O
feature	O	B-Variable
1	O	I-Variable
.	O	O

But	O	O
I	O	O
have	O	O
to	O	O
give	O	O
two	O	O
command	O	O
checkout	O	O
then	O	O
re-base	O	O
.	O	O

Is	O	O
there	O	O
are	O	O
short	O	O
command	O	O
for	O	O
these	O	O
?	O	O

If	O	O
<branch>	B-Code_Block	O
is	O	O
specified	O	O
,	O	O
git	O	B-Code_Block
rebase	O	I-Code_Block
will	O	O
perform	O	O
an	O	O
automatic	O	O
git	O	B-Code_Block
checkout	O	I-Code_Block
before	O	O
doing	O	O
anything	O	O
else	O	O
.	O	O

Otherwise	O	O
it	O	O
remains	O	O
on	O	O
the	O	O
current	O	O
branch	O	O
.	O	O

Although	O	O
I	O	O
reserved	O	O
a	O	O
static	O	O
IP	O	O
I	O	O
got	O	O
the	O	O
following	O	O
warning	O	O
,	O	O
while	O	O
not	O	O
having	O	O
load	O	O
balancer	O	O
created	O	O
:	O	O

OK	O	O
,	O	O
it	O	O
seems	O	O
to	O	O
work	O	O
only	O	O
with	O	O
regional	O	O
IPs	O	O
..	O	O
.	O	O

I	O	O
want	O	O
to	O	O
process	O	O
.mp3	B-Code_Block	B-File_Type
files	O	O
in	O	O
DSX	O	B-Application
for	O	O
Music	O	O
Information	O	O
Retrieval	O	O
.	O	O

I	O	O
am	O	O
using	O	O
librosa	B-Code_Block	B-Library
library	O	O
in	O	O
python	O	B-Language
for	O	O
this	O	O
purpose	O	O
.	O	O

But	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
load	O	O
.mp3	B-Code_Block	B-File_Type
files	O	O
due	O	O
to	O	O
absence	O	O
of	O	O
ffmpeg	B-Code_Block	B-Library
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
install	O	O
ffmpeg	B-Code_Block	B-Library
in	O	O
DSX	O	B-Application
or	O	O
any	O	O
other	O	O
walk-around	O	O
to	O	O
load	O	O
.mp3	B-Code_Block	B-File_Type
files	O	O
in	O	O
DSX	O	B-Application
?	O	O

Any	O	O
of	O	O
the	O	O
libraries	O	O
that	O	O
need	O	O
sudo	O	O
permissions	O	O
cannot	O	O
be	O	O
installed	O	O
on	O	O
Spark	O	B-Library
service	O	O
associated	O	O
with	O	O
notebook	O	O
on	O	O
DSX	O	B-Application
by	O	O
user	O	O
.	O	O

You	O	O
can	O	O
only	O	O
install	O	O
libraries	O	O
with	O	O
--user	B-Code_Block	B-Code_Block
flag	O	O
in	O	O
pip	O	B-Code_Block
.	O	O

Only	O	O
IBM	O	B-Library
Spark	O	I-Library
service	O	O
team	O	O
can	O	O
install	O	O
this	O	O
libraries	O	O
which	O	O
need	O	O
sudo	O	B-Code_Block
permissions	O	O
.	O	O

Please	O	O
raise	O	O
a	O	O
request/idea	O	O
here	O	O
to	O	O
get	O	O
this	O	O
library	O	O
installed	O	O
:	O	O
-	O	O

https://ibmwatsondataplatform.ideas.aha.io/?category=6441922592725708622	O	O

Thanks	O	O
,	O	O

Charles	O	B-User_Name

Hi	O	O
fellow	O	O
Programmers	O	O
,	O	O

I	O	O
'm	O	O
relatively	O	O
new	O	O
to	O	O
Wordpress	O	B-Website
since	O	O
I	O	O
usually	O	O
used	O	O
Typo3	O	B-Website
,	O	O
so	O	O
I	O	O
have	O	O
a	O	O
question	O	O
regarding	O	O
the	O	O
custom	O	O
sidebars	O	B-User_Interface_Element
in	O	O
WP	O	B-Website
.	O	O

I	O	O
have	O	O
following	O	O
code	O	O
in	O	O
my	O	O
functions.php	O	B-File_Name

I	O	O
want	O	O
to	O	O
add	O	O
4	O	O
panels	O	B-User_Interface_Element
for	O	O
info	O	O
on	O	O
my	O	O
home	O	O
page	O	O
and	O	O
in	O	O
the	O	O
footer	O	B-User_Interface_Element
another	O	O
small	O	O
field	O	O
for	O	O
the	O	O
author	O	O
to	O	O
add	O	O
a	O	O
bio	O	O
or	O	O
change	O	O
it	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
from	O	O
my	O	O
index.php	O	B-File_Name

Same	O	O
implementation	O	O
is	O	O
in	O	O
footer.php	O	B-File_Name
at	O	O
a	O	O
given	O	O
position	O	O
.	O	O

My	O	O
Problems	O	O
are	O	O
:	O	O

Content	O	O
I	O	O
add	O	O
via	O	O
backend	O	O
menu	O	B-User_Interface_Element
themes	O	O
->	O	O
widgets	O	O
does	O	O
n't	O	O
show	O	O
up	O	O
and	O	O
is	O	O
deleted	O	O
next	O	O
time	O	O
I	O	O
open	O	O
the	O	O
backend	O	O
.	O	O

There	O	O
are	O	O
no	O	O
errors	O	O
in	O	O
the	O	O
wp-content/debug.log	O	B-File_Name
,	O	O
I	O	O
fixed	O	O
all	O	O
common	O	O
ones	O	O
after	O	O
activating	O	O
the	O	O
option	O	O
in	O	O
wp-config.php	O	B-File_Name

How	O	O
can	O	O
I	O	O
fix	O	O
this	O	O
,	O	O
what	O	O
are	O	O
my	O	O
basic	O	O
thinking	O	O
mistakes	O	O
?	O	O

Best	O	O
Regards	O	O
sKylo	O	B-User_Name

Your	O	O
code	O	O
is	O	O
all	O	O
good	O	O
.	O	O

Just	O	O
one	O	O
mistake	O	O
,	O	O
you	O	O
are	O	O
using	O	O
%d	B-Code_Block	B-Code_Block
to	O	O
concatenate	O	O
the	O	O
decimals	O	B-Data_Type
after	O	O
your	O	O
id	O	B-Variable
.	O	O

But	O	O
that	O	O
is	O	O
not	O	O
necessary	O	O
since	O	O
%d	O	B-Code_Block
is	O	O
automatically	O	O
added	O	O
to	O	O
the	O	O
supplied	O	O
id	O	B-Variable
.	O	O

Please	O	O
find	O	O
codex	O	B-Website
link	O	O
at	O	O
the	O	O
end	O	O
of	O	O
this	O	O
answer	O	O
.	O	O

So	O	O
,	O	O
I	O	O
removed	O	O
the	O	O
%d	O	B-Code_Block
from	O	O
the	O	O
id	O	B-Variable
section	O	O
of	O	O
your	O	O
code	O	O
and	O	O
now	O	O
it	O	O
works	O	O
.	O	O

Solution	O	O
:	O	O

and	O	O

You	O	O
do	O	O
not	O	O
need	O	O
to	O	O
add	O	O
%d	O	B-Code_Block
to	O	O
id	O	O
of	O	O
register_sidebars	O	B-Function
.	O	O

Please	O	O
read	O	O
the	O	O
codex	O	B-Website
,	O	O

it	O	O
says	O	O
:	O	O

"	O	O
%d	O	B-Code_Block
"	O	O
is	O	O
added	O	O
automatically	O	O
to	O	O
supplied	O	O
'	O	O
id	O	B-Variable
'	O	O
value	O	O
after	O	O
the	O	O
first	O	O
;	O	O
e.g	O	O
.	O	O
,	O	O
"	O	O
Sidebar-1	O	B-Variable
"	O	O
,	O	O
"	O	O
Sidebar-2	O	B-Variable
"	O	O
,	O	O
"	O	O
Sidebar-3	O	B-Variable
"	O	O
,	O	O
etc	O	O
.	O	O

the	O	O
question	O	O
i	O	O
am	O	O
asking	O	O
is	O	O
what	O	O
is	O	O
the	O	O
highest	O	O
numeric	O	O
value	O	O
X	O	B-Variable
will	O	O
hold	O	O
and	O	O
what	O	O
is	O	O
the	O	O
lowest	O	O
in	O	O
this	O	O
code	O	O
:	O	O

Random	O	B-Code_Block
rand	O	I-Code_Block
=	O	I-Code_Block
new	O	I-Code_Block
Random()	O	I-Code_Block
;	O	I-Code_Block

int	O	B-Code_Block
x	O	I-Code_Block
=	O	I-Code_Block
1	O	I-Code_Block
-	O	I-Code_Block
rand.Next()%15	O	I-Code_Block
;	O	I-Code_Block

I	O	O
have	O	O
entered	O	O
this	O	O
and	O	O
receive	O	O
a	O	O
value	O	O
of	O	O
-12	O	B-Value
as	O	O
a	O	O
result	O	O
but	O	O
cannot	O	O
get	O	O
a	O	O
range	O	O
.	O	O

rand.Next()	B-Code_Block	B-Code_Block
%	I-Code_Block	I-Code_Block
15	I-Code_Block	I-Code_Block
will	O	O
give	O	O
you	O	O
a	O	O
number	O	O
between	O	O
0	O	B-Value
and	O	O
14	O	B-Value
.	O	O

(	O	O
If	O	O
we	O	O
assume	O	O
that	O	O
it	O	O
generates	O	O
only	O	O
positive	O	O
integers	O	B-Data_Type
,	O	O
otherwise	O	O
you	O	O
can	O	O
use	O	O
do	O	O
it	O	O
with	O	O
a	O	O
negative	O	O
number	O	O
too	O	O
take	O	O
a	O	O
look	O	O
here	O	O
how	O	O
:	O	O

https://math.stackexchange.com/questions/519845/modulo-of-a-negative-number	O	O

Then	O	O
add	O	O
the	O	O
1	O	B-Code_Block
-	O	I-Code_Block
{	O	I-Code_Block
a	O	I-Code_Block
number	O	I-Code_Block
from	O	I-Code_Block
the	O	I-Code_Block
set	O	I-Code_Block
of	O	I-Code_Block
0	O	I-Code_Block
and	O	I-Code_Block
14}	O	I-Code_Block
and	O	O
you	O	O
get	O	O
your	O	O
answer	O	O
.	O	O

However	O	O
pay	O	O
attention	O	O
that	O	O
"rand.Next()	O	B-Code_Block
%	O	I-Code_Block
15	O	I-Code_Block
"	O	O
is	O	O
equal	O	O
to	O	O
"rand.Next(15)"	O	B-Function
and	O	O
also	O	O
you	O	O
can	O	O
use	O	O
this	O	O
code	O	O
:	O	O

rand.Next(minValue,maxValue)	O	B-Function
where	O	O
minValue	O	B-Variable
-	O	O
inclusive	O	O
,	O	O
maxValue	O	B-Variable
-	O	O
exclusive	O	O

I	O	O
'm	O	O
using	O	O
.NET	O	B-Library
entity	O	I-Library
framework	O	I-Library
4.1	O	B-Version
with	O	O
code-first	O	O
approach	O	O
to	O	O
effectively	O	O
solve	O	O
the	O	O
following	O	O
problem	O	O
,	O	O
here	O	O
simplified	O	O
.	O	O

There	O	O
's	O	O
a	O	O
database	O	O
table	O	B-Data_Structure
with	O	O
tens	O	O
of	O	O
thousands	O	O
of	O	O
entries	O	O
.	O	O

Several	O	O
users	O	O
of	O	O
my	O	O
program	O	O
need	O	O
to	O	O
be	O	O
able	O	O
to	O	O

View	O	O
the	O	O
(	O	O
entire	O	O
)	O	O
table	O	B-Data_Structure
in	O	O
a	O	O
GridRow	O	B-Class
,	O	O
which	O	O
implied	O	O
that	O	O
the	O	O
entire	O	O
Table	O	B-Data_Structure
has	O	O
to	O	O
be	O	O
downloaded	O	O
.	O	O

Modify	O	O
values	O	O
of	O	O
any	O	O
random	O	O
row	O	B-Data_Structure
,	O	O
changes	O	O
are	O	O
frequent	O	O
but	O	O
need	O	O
not	O	O
be	O	O
persisted	O	O
immediately	O	O
.	O	O

It	O	O
's	O	O
expected	O	O
that	O	O
different	O	O
users	O	O
will	O	O
modify	O	O
different	O	O
rows	O	B-Data_Structure
,	O	O
but	O	O
this	O	O
is	O	O
not	O	O
always	O	O
true	O	O
.	O	O

Some	O	O
loss	O	O
of	O	O
changes	O	O
is	O	O
permitted	O	O
,	O	O
as	O	O
users	O	O
will	O	O
most	O	O
likely	O	O
update	O	O
same	O	O
rows	O	B-Data_Structure
to	O	O
same	O	O
values	O	O
.	O	O

On	O	O
occasion	O	O
add	O	O
new	O	O
rows	O	B-Data_Structure
.	O	O

Sounds	O	O
simple	O	O
enough	O	O
.	O	O

My	O	O
initial	O	O
approach	O	O
was	O	O
to	O	O
use	O	O
a	O	O
long-running	O	O
DbContext	B-Code_Block	B-Class
instance	O	O
.	O	O

This	O	O
one	O	O
DbContext	B-Code_Block	B-Class
was	O	O
supposed	O	O
to	O	O
track	O	O
changes	O	O
to	O	O
the	O	O
entities	O	O
,	O	O
so	O	O
that	O	O
when	O	O
SaveChanges()	B-Code_Block	B-Function
is	O	O
called	O	O
,	O	O
most	O	O
of	O	O
the	O	O
legwork	O	O
is	O	O
done	O	O
automatically	O	O
.	O	O

However	O	O
many	O	O
have	O	O
pointed	O	O
out	O	O
that	O	O
this	O	O
is	O	O
not	O	O
an	O	O
optimal	O	O
solution	O	O
in	O	O
the	O	O
long	O	O
run	O	O
,	O	O
notably	O	O
here	O	O
.	O	O

I	O	O
'm	O	O
still	O	O
not	O	O
sure	O	O
if	O	O
I	O	O
understand	O	O
the	O	O
reasons	O	O
,	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
see	O	O
what	O	O
a	O	O
unit-of-work	O	O
is	O	O
in	O	O
my	O	O
scenario	O	O
either	O	O
.	O	O

The	O	O
user	O	O
chooses	O	O
herself	O	O
when	O	O
to	O	O
persist	O	O
changes	O	O
,	O	O
and	O	O
let	O	O
's	O	O
say	O	O
that	O	O
client	O	B-Application
always	O	O
wins	O	O
for	O	O
simplicity	O	O
.	O	O

It	O	O
's	O	O
also	O	O
important	O	O
to	O	O
note	O	O
that	O	O
objects	O	O
that	O	O
have	O	O
not	O	O
been	O	O
touched	O	O
do	O	O
n't	O	O
overwrite	O	O
any	O	O
data	O	O
in	O	O
the	O	O
database	O	O
.	O	O

Another	O	O
approach	O	O
would	O	O
be	O	O
to	O	O
track	O	O
changes	O	O
manually	O	O
or	O	O
use	O	O
objects	O	O
that	O	O
track	O	O
changes	O	O
for	O	O
me	O	O
,	O	O
however	O	O
I	O	O
'm	O	O
not	O	O
too	O	O
familiar	O	O
with	O	O
such	O	O
techniques	O	O
,	O	O
and	O	O
I	O	O
would	O	O
welcome	O	O
a	O	O
nudge	O	O
in	O	O
the	O	O
right	O	O
direction	O	O
.	O	O

What	O	O
's	O	O
the	O	O
correct	O	O
way	O	O
to	O	O
solve	O	O
this	O	O
problem	O	O
?	O	O

I	O	O
understand	O	O
that	O	O
this	O	O
question	O	O
is	O	O
a	O	O
bit	O	O
wishy-washy	O	O
,	O	O
but	O	O
think	O	O
of	O	O
it	O	O
as	O	O
more	O	O
fundamental	O	O
.	O	O

I	O	O
lack	O	O
fundamental	O	O
understanding	O	O
about	O	O
how	O	O
to	O	O
solve	O	O
this	O	O
class	O	O
of	O	O
problems	O	O
.	O	O

It	O	O
seems	O	O
to	O	O
me	O	O
that	O	O
long	O	O
living	O	O
DbContext	B-Code_Block	B-Class
is	O	O
the	O	O
right	O	O
way	O	O
,	O	O
but	O	O
knowledgeable	O	O
people	O	O
tell	O	O
me	O	O
otherwise	O	O
,	O	O
which	O	O
leads	O	O
me	O	O
to	O	O
confusion	O	O
and	O	O
imprecise	O	O
questions	O	O
.	O	O

EDIT1	O	O

Another	O	O
point	O	O
of	O	O
confusion	O	O
is	O	O
the	O	O
existance	O	O
of	O	O
Local	B-Code_Block	B-Variable
property	O	O
on	O	O
the	O	O
DbSet	B-Code_Block	B-Class
<>	I-Code_Block	I-Class
object	O	O
.	O	O

It	O	O
invites	O	O
me	O	O
to	O	O
use	O	O
a	O	O
long	O	O
running	O	O
context	O	O
,	O	O
as	O	O
another	O	O
user	O	O
has	O	O
posted	O	O
here	O	O
.	O	O

Sounds	O	O
to	O	O
me	O	O
like	O	O
your	O	O
users	O	O
could	O	O
have	O	O
a	O	O
copy	O	O
(	O	O
cached	O	O
)	O	O
of	O	O
the	O	O
data	O	O
for	O	O
an	O	O
indefinate	O	O
period	O	O
of	O	O
time	O	O
.	O	O

The	O	O
longer	O	O
the	O	O
users	O	O
are	O	O
using	O	O
cached	O	O
data	O	O
the	O	O
greater	O	O
the	O	O
odds	O	O
that	O	O
they	O	O
could	O	O
become	O	O
disconnected	O	O
from	O	O
the	O	O
database	O	O
connection	O	O
in	O	O
DbContext	O	B-Class
.	O	O

My	O	O
guess	O	O
is	O	O
EF	O	B-Library
does	O	O
n't	O	O
handle	O	O
this	O	O
well	O	O
and	O	O
you	O	O
probably	O	O
want	O	O
to	O	O
deal	O	O
with	O	O
that	O	O
.	O	O

(	O	O
e.g	O	O
.	O	O
occaisionally	O	O
connected	O	O
architecture	O	O
)	O	O
.	O	O

I	O	O
would	O	O
expect	O	O
implementing	O	O
that	O	O
may	O	O
solve	O	O
many	O	O
of	O	O
your	O	O
issues	O	O
.	O	O

Problem	O	O
with	O	O
long	O	O
running	O	O
context	O	O
is	O	O
that	O	O
it	O	O
does	O	O
n't	O	O
refresh	O	O
data	O	O
-	O	O
I	O	O
more	O	O
discussed	O	O
problems	O	O
here	O	O
.	O	O

So	O	O
if	O	O
your	O	O
user	O	O
opens	O	O
the	O	O
list	O	O
and	O	O
modify	O	O
data	O	O
half	O	O
an	O	O
hour	O	O
she	O	O
does	O	O
n't	O	O
know	O	O
about	O	O
changes	O	O
.	O	O

But	O	O
in	O	O
case	O	O
of	O	O
WPF	O	B-Library
if	O	O
your	O	O
business	O	O
action	O	O
is	O	O
:	O	O

Open	O	O
the	O	O
list	O	B-Data_Structure

Do	O	O
as	O	O
many	O	O
actions	O	O
as	O	O
you	O	O
want	O	O

Trigger	O	O
saving	O	O
changes	O	O

Then	O	O
this	O	O
whole	O	O
is	O	O
unit	O	O
of	O	O
work	O	O
and	O	O
you	O	O
can	O	O
use	O	O
single	O	O
context	O	O
instance	O	O
for	O	O
that	O	O
.	O	O

If	O	O
you	O	O
have	O	O
scenario	O	O
where	O	O
last	O	O
edit	O	O
wins	O	O
you	O	O
should	O	O
not	O	O
have	O	O
problems	O	O
with	O	O
this	O	O
until	O	O
somebody	O	O
else	O	O
deletes	O	O
record	O	O
which	O	O
current	O	O
user	O	O
edits	O	O
.	O	O

Additionally	O	O
after	O	O
saving	O	O
or	O	O
cancelling	O	O
changes	O	O
you	O	O
should	O	O
dispose	O	O
current	O	O
context	O	O
and	O	O
load	O	O
data	O	O
again	O	O
-	O	O
this	O	O
will	O	O
ensure	O	O
that	O	O
you	O	O
really	O	O
have	O	O
fresh	O	O
data	O	O
for	O	O
next	O	O
unit	O	O
of	O	O
work	O	O
.	O	O

Context	O	O
offers	O	O
some	O	O
features	O	O
to	O	O
refresh	O	O
data	O	O
but	O	O
it	O	O
only	O	O
refreshes	O	O
data	O	O
previously	O	O
loaded	O	O
(	O	O
without	O	O
relations	O	O
)	O	O
so	O	O
for	O	O
example	O	O
new	O	O
unsaved	O	O
records	O	O
will	O	O
be	O	O
still	O	O
included	O	O
.	O	O

Perhaps	O	O
you	O	O
can	O	O
also	O	O
read	O	O
about	O	O
MS	O	B-Library
Sync	O	I-Library
framework	O	O
and	O	O
local	O	O
data	O	O
cache	O	O
.	O	O

I	O	O
have	O	O
created	O	O
a	O	O
draggable	O	O
control	O	O
that	O	O
want	O	O
to	O	O
restrict	O	O
to	O	O
the	O	O
boundaries	O	O
of	O	O
it	O	O
's	O	O
containing	O	O
grid	O	B-User_Interface_Element
(	O	O
i.e	O	O
.	O	O
not	O	O
let	O	O
the	O	O
user	O	O
drag	O	O
it	O	O
outside	O	O
of	O	O
the	O	O
grid	O	B-User_Interface_Element
)	O	O
.	O	O

I	O	O
need	O	O
a	O	O
test	O	O
that	O	O
returns	O	O
true	O	B-Value
or	O	O
false	O	B-Value
so	O	O
that	O	O
I	O	O
can	O	O
cancel	O	O
the	O	O
drag	O	O
if	O	O
necessary	O	O
.	O	O

I	O	O
have	O	O
looked	O	O
at	O	O
VisualTreeHelper.FindElementsInHostCoordinates	O	B-Function
and	O	O
TransformToVisual	O	B-Function
etc	O	O
,	O	O
but	O	O
I	O	O
cannot	O	O
find	O	O
a	O	O
simple	O	O
way	O	O
of	O	O
doing	O	O
it	O	O
without	O	O
lots	O	O
of	O	O
checks	O	O
for	O	O
each	O	O
of	O	O
the	O	O
corners	O	O
of	O	O
the	O	O
control	O	O
.	O	O

e.g	O	O
.	O	O
some	O	O
code	O	O
(	O	O
Dialog	O	B-Variable
is	O	O
the	O	O
name	O	O
of	O	O
the	O	O
control	O	O
that	O	O
is	O	O
being	O	O
dragged	O	O
)	O	O
:	O	O

Thanks	O	O
.	O	O

In	O	O
the	O	O
end	O	O
I	O	O
took	O	O
another	O	O
approach	O	O
;	O	O
instead	O	O
of	O	O
trying	O	O
to	O	O
stop	O	O
the	O	O
user	O	O
from	O	O
dragging	O	O
ANY	O	O
of	O	O
the	O	O
child	O	O
control	O	B-Class
outside	O	O
of	O	O
the	O	O
boundary	O	O
of	O	O
the	O	O
container	O	O
I	O	O
have	O	O
only	O	O
stopped	O	O
them	O	O
from	O	O
dragging	O	O
the	O	O
pointer	O	B-User_Interface_Element
outside	O	O
the	O	O
boundary	O	O
,	O	O
e.g	O	O
.	O	O
in	O	O
the	O	O
mousemove	O	B-Variable
eventhandler	O	B-Class
:	O	O

The	O	O
problem	O	O
with	O	O
this	O	O
was	O	O
that	O	O
the	O	O
parts	O	O
of	O	O
the	O	O
child	O	O
control	O	B-Class
were	O	O
visible	O	O
outside	O	O
of	O	O
the	O	O
container	O	O
.	O	O

What	O	O
I	O	O
did	O	O
was	O	O
set	O	O
the	O	O
Clip	O	B-Variable
property	O	I-Variable
of	O	O
the	O	O
parent	O	O
control	O	B-Class
so	O	O
that	O	O
the	O	O
parts	O	O
of	O	O
the	O	O
child	O	O
outside	O	O
of	O	O
the	O	O
boundary	O	O
are	O	O
hidden	O	O
.	O	O

e.g	O	O
.	O	O
:	O	O

This	O	O
seems	O	O
to	O	O
work	O	O
quite	O	O
nicely	O	O
!	O	O

This	O	O
is	O	O
no	O	O
way	O	O
other	O	O
than	O	O
checking	O	O
each	O	O
corner	O	O
of	O	O
the	O	O
control	O	O
.	O	O

However	O	O
,	O	O
you	O	O
can	O	O
take	O	O
some	O	O
shortcuts	O	O
as	O	O
you	O	O
know	O	O
that	O	O
Dialog	B-Code_Block	B-Variable
and	O	O
what	O	O
you	O	O
are	O	O
dragging	O	O
it	O	O
over	O	O
wo	O	O
n't	O	O
change	O	O
shape	O	O
or	O	O
size	O	O
during	O	O
the	O	O
drag	O	O
and	O	O
that	O	O
it	O	O
's	O	O
impossible	O	O
for	O	O
the	O	O
left	O	O
hand	O	O
edge	O	O
of	O	O
Dialog	B-Code_Block	B-Variable
to	O	O
be	O	O
to	O	O
the	O	O
right	O	O
of	O	O
the	O	O
right	O	O
hand	O	O
edge	O	O
of	O	O
Grid	B-Code_Block	B-Class
without	O	O
the	O	O
right	O	O
hand	O	O
edge	O	O
of	O	O
Dialog	B-Code_Block	B-Variable
also	O	O
being	O	O
to	O	O
the	O	O
right	O	O
of	O	O
Grid	B-Code_Block	B-Class
.	O	O

This	O	O
only	O	O
applies	O	O
if	O	O
Dialog	B-Code_Block	B-Variable
is	O	O
not	O	O
rotated	O	O
.	O	O

So	O	O
,	O	O
you	O	O
'll	O	O
need	O	O
something	O	O
like	O	O
the	O	O
following	O	O
pseudo	O	O
code	O	O
:	O	O

I	O	O
'm	O	O
writing	O	O
a	O	O
program	O	O
to	O	O
save	O	O
some	O	O
webcam	O	B-Device
video	O	B-User_Interface_Element
to	O	O
a	O	O
file	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
the	O	O
x264	O	B-Library
codec	O	O
found	O	O
here	O	O
x264	O	B-Library

When	O	O
I	O	O
try	O	O
writing	O	O
frames	O	O
to	O	O
a	O	O
file	O	O
I	O	O
get	O	O
this	O	O
error	O	O
message	O	O
poping	O	O
up	O	O
.	O	O

I	O	O
found	O	O
this	O	O
VirtualDub	O	B-Application
Hack	O	O
but	O	O
then	O	O
I	O	O
'm	O	O
not	O	O
using	O	O
virtual	O	B-Application
dub	O	I-Application
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
what	O	O
the	O	O
File	O	O
output	O	O
mode	O	O
and	O	O
zero	O	O
latency	O	O
mean	O	O
.	O	O

I	O	O
think	O	O
the	O	O
problem	O	O
is	O	O
related	O	O
to	O	O
the	O	O
codec	O	B-Application
since	O	O
when	O	O
I	O	O
change	O	O
to	O	O
using	O	O
a	O	O
different	O	O
codec	O	B-Application
,	O	O
everything	O	O
works	O	O
fine	O	O
.	O	O

I	O	O
'm	O	O
using	O	O
C#	O	B-Language
and	O	O
emgu	O	B-Library
but	O	O
I	O	O
dont	O	O
think	O	O
thats	O	O
where	O	O
the	O	O
problem	O	O
lies	O	O
.	O	O

EDIT	O	O

In	O	O
case	O	O
the	O	O
code	O	O
helps	O	O

I	O	O
know	O	O
is	O	O
's	O	O
a	O	O
bit	O	O
late	O	O
but	O	O
I	O	O
figured	O	O
this	O	O
out	O	O
.	O	O

The	O	O
solution	O	O
(	O	O
on	O	O
windows	O	B-Operating_System
)	O	O
is	O	O
to	O	O
set	O	O
-1	O	B-Value
instead	O	O
of	O	O
codec	O	B-Application
's	O	O
fourcc	O	O
.	O	O

This	O	O
pops	O	O
up	O	O
a	O	O
dialog	O	B-User_Interface_Element
where	O	O
you	O	O
can	O	O
choose	O	O
a	O	O
codec	O	B-Application
and	O	O
if	O	O
you	O	O
choose	O	O
x264wfv	O	B-Library
,	O	O
there	O	O
's	O	O
a	O	O
configure	O	O
button	O	B-User_Interface_Element
which	O	O
lets	O	O
you	O	O
configure	O	O
those	O	O
options	O	O
(	O	O
zero	O	O
latency	O	O
works	O	O
for	O	O
me	O	O
)	O	O
.	O	O

Next	O	O
time	O	O
codec	O	B-Application
will	O	O
use	O	O
exact	O	O
same	O	O
settings	O	O
,	O	O
so	O	O
you	O	O
can	O	O
run	O	O
your	O	O
program	O	O
with	O	O
fourcc	O	O
code	O	O
.	O	O

I	O	O
want	O	O
to	O	O
change	O	O
the	O	O
top	B-Code_Block	B-Variable
property	O	O
of	O	O
the	O	O
object	O	O
.content	B-Code_Block	B-Variable
if	O	O
the	O	O
object	O	O
.nav-wrapper	B-Code_Block	B-Variable
has	O	O
the	O	O
property	O	O
display	B-Code_Block	B-Variable
set	O	O
to	O	O
block	B-Code_Block	B-Variable
.	O	O

This	O	O
is	O	O
my	O	O
actual	O	O
(	O	O
not	O	O
working	O	O
)	O	O
code	O	O
:	O	O

Can	O	O
someone	O	O
help	O	O
me	O	O
figuring	O	O
out	O	O
how	O	O
to	O	O
make	O	O
this	O	O
work	O	O
?	O	O

The	O	O
following	O	O
code	O	O
will	O	O
make	O	O
your	O	O
code	O	O
very	O	O
procedural	O	O
,	O	O
But	O	O
on	O	O
the	O	O
other	O	O
hand	O	O
,	O	O
The	O	O
default	O	O
positioning	O	O
static	B-Code_Block	O
do	O	O
n't	O	O
has	O	O
a	O	O
property	O	O
called	O	O
TOP	B-Code_Block	B-Variable
.	O	O

so	O	O
you	O	O
should	O	O
check	O	O
whether	O	O
it	O	O
is	O	O
having	O	O
any	O	O
positioning	O	O
rather	O	O
than	O	O
the	O	O
default	B-Code_Block	O
.	O	O

Try	O	O
,	O	O

You	O	O
need	O	O
to	O	O
check	O	O
the	O	O
condition	O	O
after	O	O
the	O	O
animation	O	O
is	O	O
done	O	O
.	O	O

Also	O	O
,	O	O
check	O	O
is	O	O
it	O	O
is	O	O
visible	O	O
instead	O	O
of	O	O
the	O	O
CSS	O	B-Language
property	O	O
display	B-Code_Block	B-Variable

I	O	O
'm	O	O
trying	O	O
to	O	O
populate	O	O
a	O	O
list	O	O
within	O	O
a	O	O
"	O	O
Controller	O	O
as	O	O
"	O	O
block	O	O
,	O	O
but	O	O
I	O	O
cannot	O	O
seem	O	O
to	O	O
get	O	O
anything	O	O
to	O	O
display	O	O
.	O	O

I	O	O
've	O	O
gotten	O	O
a	O	O
minimal	O	O
example	O	O
of	O	O
my	O	O
idea	O	O
working	O	O
with	O	O
$	B-Code_Block	B-Code_Block
scope	I-Code_Block	I-Code_Block
:	O	O

JS	O	B-Language
:	O	O

HTML	O	B-Language
:	O	O

JSFiddle	O	B-Application

But	O	O
when	O	O
I	O	O
introduce	O	O
"	O	O
Controller	O	O
as	O	O
"	O	O
,	O	O
the	O	O
list	O	O
does	O	O
not	O	O
display	O	O
:	O	O

JS	O	B-Language
:	O	O

HTML	O	B-Language
:	O	O

JSFiddle	O	B-Application

I	O	O
understand	O	O
that	O	O
$scope	B-Code_Block	B-Code_Block
and	O	O
this	B-Code_Block	O
are	O	O
different	O	O
concepts	O	O
,	O	O
but	O	O
I	O	O
cannot	O	O
seem	O	O
to	O	O
wrap	O	O
my	O	O
head	O	O
around	O	O
the	O	O
specifics	O	O
in	O	O
this	O	O
case	O	O
.	O	O

Could	O	O
this	O	O
be	O	O
a	O	O
result	O	O
of	O	O
the	O	O
scope	O	O
rules	O	O
for	O	O
ng-repeat	O	B-HTML_XML_Tag
,	O	O
or	O	O
am	O	O
I	O	O
missing	O	O
something	O	O
obvious	O	O
?	O	O

Here	O	O
you	O	O
should	O	O
not	O	O
use	O	O
arrow	B-Code_Block	B-Function
function	I-Code_Block	O
while	O	O
defining	O	O
controller	B-Code_Block	B-Function
function	I-Code_Block	O
,	O	O
this	O	O
will	O	O
lead	O	O
this	B-Code_Block	O
to	O	O
an	O	O
unexpected	O	O
context	O	O
which	O	O
not	O	O
belong	O	O
to	O	O
controller	O	O
itself	O	O
.	O	O

The	O	O
solution	O	O
is	O	O
using	O	O
normal	O	O
function	B-Code_Block	O
.	O	O

refer	O	O
the	O	O
below	O	O
example	O	O
and	O	O
fixed	O	O
jsfiddle	O	B-Application
.	O	O

You	O	O
have	O	O
used	O	O
es6	O	B-Language
arrow	O	B-Function
function	O	O
syntax	O	O
.	O	O

Since	O	O
the	O	O
browser	O	B-Application
does	O	O
n't	O	O
support	O	O
es6	O	B-Language
syntax.Either	O	O
you	O	O
have	O	O
to	O	O
use	O	O
transpiler(Babel)	O	B-Application
to	O	O
compile	O	O
es6	O	B-Language
code	O	O
to	O	O
pure	O	O
javascript	O	B-Language
.	O	O

Try	O	O
changing	O	O
this	O	O

With	O	O

JSFiddle	O	B-Application

I	O	O
am	O	O
performing	O	O
a	O	O
custom	O	O
traversal	O	O
in	O	O
Neo4J	O	B-Application
,	O	O
using	O	O
my	O	O
own	O	O
evaluator	O	O
.	O	O

In	O	O
the	O	O
traversal	O	O
are	O	O
two	O	O
nodes	O	B-Class
,	O	O
connected	O	O
by	O	O
two	O	O
different	O	O
relationships	O	O
.	O	O

What	O	O
I	O	O
'm	O	O
seeing	O	O
is	O	O
that	O	O
only	O	O
one	O	O
of	O	O
the	O	O
two	O	O
relationships	O	O
will	O	O
be	O	O
walked	O	O
during	O	O
the	O	O
traversal	O	O
.	O	O

However	O	O
,	O	O
my	O	O
custom	O	O
evaluation	O	O
changes	O	O
its	O	O
behavior	O	O
based	O	O
on	O	O
whether	O	O
both	O	O
relationships	O	O
are	O	O
present	O	O
.	O	O

It	O	O
seems	O	O
like	O	O
during	O	O
a	O	O
traversal	O	O
,	O	O
Neo4J	O	B-Application
maintains	O	O
a	O	O
set	O	O
of	O	O
visited	O	O
nodes	O	B-Class
,	O	O
and	O	O
if	O	O
a	O	O
candidate	O	O
path	O	O
ends	O	O
at	O	O
a	O	O
node	O	B-Class
that	O	O
has	O	O
already	O	O
been	O	O
visited	O	O
,	O	O
then	O	O
that	O	O
path	O	O
is	O	O
never	O	O
sent	O	O
to	O	O
my	O	O
evaluator	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
around	O	O
this	O	O
?	O	O

How	O	O
can	O	O
I	O	O
have	O	O
a	O	O
custom	O	O
evaluator	O	O
examine	O	O
every	O	O
possible	O	O
path	O	O
to	O	O
the	O	O
nodes	O	B-Class
?	O	O

Here	O	O
's	O	O
a	O	O
quick	O	O
example	O	O
:	O	O

Say	O	O
that	O	O
the	O	O
graph	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

The	O	O
traversal	O	O
begins	O	O
at	O	O
A	O	B-Variable
.	O	O

A	O	O
has	O	O
two	O	O
different	O	O
relationships	O	O
tying	O	O
it	O	O
to	O	O
B	O	B-Variable
(	O	O
of	O	O
two	O	O
different	O	O
types	O	O
)	O	O
.	O	O

All	O	O
of	O	O
the	O	O
remaining	O	O
nodes	O	B-Class
are	O	O
connected	O	O
by	O	O
only	O	O
1	O	O
relationship	O	O
.	O	O

The	O	O
goal	O	O
of	O	O
the	O	O
evaluator	O	O
is	O	O
to	O	O
return	O	O
A-D	O	B-Variable
,	O	O
A-B	O	B-Variable
,	O	O
and	O	O
B-C	O	B-Variable
,	O	O
but	O	O
not	O	O
D-E	O	B-Variable
.	O	O

The	O	O
determination	O	O
that	O	O
B-C	O	B-Variable
is	O	O
valid	O	O
comes	O	O
from	O	O
the	O	O
fact	O	O
that	O	O
there	O	O
are	O	O
two	O	O
relationships	O	O
between	O	O
A	O	B-Variable
and	O	O
B	O	B-Variable
.	O	O

How	O	O
can	O	O
this	O	O
be	O	O
solved	O	O
?	O	O

You	O	O
may	O	O
need	O	O
to	O	O
think	O	O
your	O	O
use	O	O
case	O	O
through	O	O
a	O	O
bit	O	O
more	O	O
carefully	O	O
.	O	O

One	O	O
suggestion	O	O
is	O	O
that	O	O
when	O	O
you	O	O
use	O	O
the	O	O
traversal	O	B-Library
framework	O	I-Library
in	O	O
java	O	B-Language
,	O	O
basically	O	O
you	O	O
can	O	O
build	O	O
a	O	O
TraversalDescription	B-Code_Block	B-Function
and	O	O
then	O	O
iterate	O	O
through	O	O
what	O	O
comes	O	O
back	O	O
from	O	O
it	O	O
by	O	O
relationships	O	O
,	O	O
rather	O	O
than	O	O
by	O	O
Paths	O	O
or	O	O
by	O	O
Nodes	O	O
.	O	O

If	O	O
your	O	O
primary	O	O
complaint	O	O
is	O	O
that	O	O
each	O	O
node	O	B-Class
is	O	O
visited	O	O
only	O	O
once	O	O
,	O	O
you	O	O
can	O	O
change	O	O
the	O	O
TraversalDescription	B-Code_Block	B-Function
to	O	O
specify	O	O
RELATIONSHIP_GLOBAL	O	B-Function
guaranteeing	O	O
that	O	O
all	O	O
relationships	O	O
will	O	O
be	O	O
followed	O	O
,	O	O
whether	O	O
or	O	O
not	O	O
that	O	O
causes	O	O
you	O	O
to	O	O
hit	O	O
a	O	O
node	O	O
more	O	O
than	O	O
once	O	O
.	O	O

More	O	O
broadly	O	O
,	O	O
traversers	O	O
do	O	O
n't	O	O
tend	O	O
to	O	O
go	O	O
over	O	O
the	O	O
same	O	O
material	O	O
more	O	O
than	O	O
once	O	O
because	O	O
if	O	O
they	O	O
did	O	O
,	O	O
you	O	O
'd	O	O
need	O	O
to	O	O
be	O	O
ultra	O	O
careful	O	O
about	O	O
specifying	O	O
a	O	O
termination	O	O
condition	O	O
.	O	O

If	O	O
hitting	O	O
certain	O	O
nodes	O	B-Class
or	O	O
relationships	O	O
more	O	O
than	O	O
once	O	O
is	O	O
OK	O	O
,	O	O
when	O	O
do	O	O
you	O	O
know	O	O
that	O	O
you	O	O
're	O	O
done	O	O
?	O	O

I	O	O
am	O	O
brand	O	O
new	O	O
to	O	O
PyQt	O	B-Application
so	O	O
bear	O	O
with	O	O
me	O	O
here	O	O
..	O	O
.	O	O

I	O	O
create	O	O
a	O	O
widget	O	B-User_Interface_Element
with	O	O
Qt	O	B-Application
Designer	O	I-Application
,	O	O
then	O	O
compile	O	O
it	O	O
and	O	O
save	O	O
it	O	O
as	O	O
.py	O	B-File_Type
.	O	O

I	O	O
edit	O	O
the	O	O
.py	O	B-File_Type
file	O	O
to	O	O
add	O	O
some	O	O
additional	O	O
functionality	O	O
.	O	O

But	O	O
then	O	O
say	O	O
I	O	O
need	O	O
to	O	O
go	O	O
back	O	O
to	O	O
Qt	O	B-Application
Designer	O	I-Application
and	O	O
update	O	O
the	O	O
layout	O	O
of	O	O
the	O	O
GUI	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
compile	O	O
that	O	O
and	O	O
then	O	O
update	O	O
the	O	O
original	O	O
.py	O	B-File_Type
file	O	O
with	O	O
the	O	O
changes	O	O
rather	O	O
than	O	O
having	O	O
to	O	O
manually	O	O
copy/paste	O	O
my	O	O
custom	O	O
code	O	O
?	O	O

Personally	O	O
I	O	O
hate	O	O
compiling	O	O
it	O	O
.	O	O

But	O	O
like	O	O
ekhumoro	O	B-User_Name
said	O	O
,	O	O
you	O	O
can	O	O
import	O	O
the	O	O
class	O	O
.	O	O

I	O	O
still	O	O
dislike	O	O
this	O	O
though	O	O
.	O	O

pyuic	B-Code_Block	B-Library
sometimes	O	O
imports	O	O
nasty	O	O
example_rc	B-Code_Block	B-File_Name
things	O	O
,	O	O
which	O	O
lowers	O	O
productivity	O	O
levels	O	O
again	O	O
.	O	O

If	O	O
you	O	O
absolutely	O	O
must	O	O
transform	O	O
.ui	B-Code_Block	B-File_Type
to	O	O
.py	B-Code_Block	B-File_Type
,	O	O
create	O	O
a	O	O
.bat	B-Code_Block	B-File_Type
file	O	O
to	O	O
do	O	O
it	O	O
for	O	O
you	O	O
.	O	O

Code	O	O
for	O	O
that	O	O
:	O	O

Or	O	O
whatever	O	O
you	O	O
have	O	O
for	O	O
your	O	O
OS	O	O
.	O	O

Personally	O	O
I	O	O
like	O	O
to	O	O
use	O	O
ui	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
uic.loadUi('example.ui')	I-Code_Block	I-Code_Block
and	O	O
then	O	O
ui.setupUi()	B-Code_Block	B-Function
.	O	O

It	O	O
allows	O	O
you	O	O
to	O	O
be	O	O
much	O	O
much	O	O
more	O	O
efficient	O	O
!	O	O
!	O	O

If	O	O
you	O	O
look	O	O
at	O	O
the	O	O
comments	O	O
at	O	O
the	O	O
top	O	O
of	O	O
the	O	O
generated	O	O
file	O	O
,	O	O
you	O	O
will	O	O
see	O	O
this	O	O
line	O	O
:	O	O

This	O	O
makes	O	O
it	O	O
quite	O	O
clear	O	O
that	O	O
the	O	O
file	O	O
is	O	O
not	O	O
meant	O	O
to	O	O
be	O	O
edited	O	O
.	O	O

But	O	O
this	O	O
is	O	O
not	O	O
a	O	O
problem	O	O
,	O	O
because	O	O
it	O	O
is	O	O
just	O	O
an	O	O
ordinary	O	O
python	O	B-Language
module	O	O
,	O	O
and	O	O
so	O	O
it	O	O
's	O	O
easy	O	O
enough	O	O
to	O	O
import	O	O
it	O	O
into	O	O
your	O	O
main	O	O
application	O	O
and	O	O
access	O	O
it	O	O
from	O	O
there	O	O
.	O	O

All	O	O
you	O	O
need	O	O
to	O	O
do	O	O
is	O	O
create	O	O
a	O	O
subclass	O	O
of	O	O
the	O	O
top-level	O	O
object	O	O
from	O	O
Qt	O	B-Application
Designer	O	I-Application
(	O	O
which	O	O
will	O	O
be	O	O
a	O	O
QMainWindow	B-Code_Block	B-Class
,	O	O
QDialog	B-Code_Block	B-Class
or	O	O
QWidget	B-Code_Block	B-Class
)	O	O
,	O	O
and	O	O
then	O	O
use	O	O
the	O	O
setupUi	B-Code_Block	B-Function
method	O	O
provided	O	O
by	O	O
the	O	O
generated	O	O
module	O	O
to	O	O
add	O	O
all	O	O
of	O	O
the	O	O
widgets	O	B-Class
to	O	O
an	O	O
instance	O	O
of	O	O
that	O	O
subclass	O	O
.	O	O

So	O	O
if	O	O
the	O	O
top-level	O	O
object	O	O
from	O	O
Qt	O	B-Application
Designer	O	I-Application
was	O	O
named	O	O
"	O	B-Value
MainWindow	O	I-Value
"	O	I-Value
,	O	O
pyuic	O	B-Library
will	O	O
create	O	O
a	O	O
corresponding	O	O
Ui_MainWindow	B-Code_Block	B-Class
class	O	O
that	O	O
can	O	O
be	O	O
imported	O	O
into	O	O
a	O	O
main.py	B-Code_Block	B-File_Name
script	O	O
and	O	O
used	O	O
something	O	O
like	O	O
this	O	O
:	O	O

See	O	O
Using	O	O
Qt	O	B-Application
Designer	O	I-Application
in	O	O
the	O	O
PyQt	O	B-Application
Documentation	O	O
for	O	O
more	O	O
details	O	O
.	O	O

Take	O	O
the	O	O
following	O	O
insertion	O	B-Algorithm
sort	O	I-Algorithm
algorithm	O	O
:	O	O

I	O	O
know	O	O
it	O	O
's	O	O
O(n^2)	O	O
fairly	O	O
easy	O	O
by	O	O
examining	O	O
it	O	O
.	O	O

But	O	O
as	O	O
far	O	O
as	O	O
proving	O	O
it	O	O
's	O	O
O(n^2)	O	O
,	O	O
how	O	O
would	O	O
I	O	O
go	O	O
about	O	O
doing	O	O
that	O	O
?	O	O

I	O	O
could	O	O
add	O	O
up	O	O
all	O	O
the	O	O
operations	O	O
,	O	O
but	O	O
n	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
sum	I-Code_Block	I-Code_Block
of	I-Code_Block	I-Code_Block
j	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
to	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
would	O	O
n't	O	O
really	O	O
result	O	O
in	O	O
n^2	O	B-Code_Block
as	O	O
far	O	O
as	O	O
I	O	O
know	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
really	O	O
see	O	O
how	O	O
to	O	O
prove	O	O
this	O	O
exactly	O	O
.	O	O

Could	O	O
someone	O	O
try	O	O
to	O	O
clearly	O	O
explain	O	O
how	O	O
I	O	O
would	O	O
prove	O	O
this	O	O
,	O	O
in	O	O
a	O	O
way	O	O
that	O	O
would	O	O
work	O	O
for	O	O
an	O	O
O(n^3)	O	O
algorithm	O	O
as	O	O
well	O	O
?	O	O

It	O	O
's	O	O
O(n^2)	O	O
because	O	O
you	O	O
've	O	O
got	O	O
a	O	O
multiplication	O	O
,	O	O
not	O	O
a	O	O
sum	O	O
.	O	O

Take	O	O
by	O	O
example	O	O
,	O	O
an	O	O
array	O	B-Data_Structure
sorted	O	O
in	O	O
inverse	O	O
order	O	O
:	O	O

In	O	O
these	O	O
cases	O	O
every	O	O
iteration	O	O
of	O	O
the	O	O
inner	O	O
loop	O	O
will	O	O
scan	O	O
and	O	O
shift	O	O
the	O	O
entire	O	O
sorted	O	O
subsection	O	O
of	O	O
the	O	O
array	O	B-Data_Structure
before	O	O
inserting	O	O
the	O	O
next	O	O
element	O	O
.	O	O

This	O	O
gives	O	O
insertion	O	B-Algorithm
sort	O	I-Algorithm
a	O	O
quadratic	O	O
running	O	O
time	O	O
(	O	O
i.e	O	O
.	O	O
,	O	O
O(n2))	O	O
.	O	O

More	O	O
info	O	O

The	O	O
best	O	O
way	O	O
to	O	O
understand	O	O
the	O	O
complexity	O	O
is	O	O
trying	O	O
to	O	O
find	O	O
the	O	O
worst	O	O
case	O	O
example	O	O
and	O	O
following	O	O
the	O	O
algorithm	O	O
's	O	O
steps	O	O
.	O	O

You	O	O
prove	O	O
big	O	O
O	O	O
complexity	O	O
by	O	O
considering	O	O
how	O	O
many	O	O
operations	O	O
are	O	O
performed	O	O
in	O	O
the	O	O
worst	O	O
case	O	O
.	O	O

You	O	O
've	O	O
done	O	O
the	O	O
counting	O	O
part	O	O
and	O	O
entered	O	O
the	O	O
results	O	O
in	O	O
the	O	O
right	O	O
hand	O	O
column	O	B-User_Interface_Element
of	O	O
your	O	O
image	O	B-User_Interface_Element
,	O	O
so	O	O
what	O	O
remains	O	O
to	O	O
be	O	O
proven	O	O
is	O	O
that	O	O
the	O	O
dominant	O	O
term	O	O
is	O	O
O(n^2)	B-Code_Block	B-Code_Block
.	O	O

Apart	O	O
from	O	O
the	O	O
terms	O	O
that	O	O
involve	O	O
the	O	O
sum	O	O
,	O	O
your	O	O
program	O	O
consists	O	O
of	O	O
instructions	O	O
that	O	O
get	O	O
executed	O	O
n-1	B-Code_Block	B-Code_Block
times	O	O
so	O	O
these	O	O
are	O	O
all	O	O
O(n)	B-Code_Block	B-Code_Block
terms	O	O
.	O	O

Now	O	O
for	O	O
the	O	O
terms	O	O
with	O	O
the	O	O
sum	O	O
.	O	O

In	O	O
the	O	O
worst	O	O
case	O	O
a	O	O
t_j	B-Code_Block	B-Variable
can	O	O
be	O	O
j	B-Code_Block	B-Variable
because	O	O
you	O	O
may	O	O
end	O	O
up	O	O
decrementing	O	O
i	B-Code_Block	B-Variable
which	O	O
you	O	O
set	O	O
to	O	O
j	B-Code_Block	B-Variable
all	O	O
the	O	O
way	O	O
down	O	O
to	O	O
0	O	O
.	O	O

So	O	O
in	O	O
this	O	O
worst	O	O
case	O	O
we	O	O
have	O	O
t_j	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
j	I-Code_Block	I-Code_Block
and	O	O
then	O	O
you	O	O
have	O	O
a	O	O
term	O	O
with	O	O
a	O	O
sum	B-Code_Block	B-Code_Block
from	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
to	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
of	I-Code_Block	I-Code_Block
j	I-Code_Block	I-Code_Block
which	O	O
is	O	O
O(n^2)	B-Code_Block	B-Code_Block
.	O	O

This	O	O
is	O	O
due	O	O
to	O	O
following	O	O
the	O	O
mathematical	O	O
identity	O	O
:	O	O

This	O	O
can	O	O
be	O	O
proven	O	O
by	O	O
summing	O	O
two	O	O
of	O	O
these	O	O
series	O	O
together	O	O
,	O	O
paying	O	O
attention	O	O
so	O	O
that	O	O
you	O	O
add	O	O
two	O	O
terms	O	O
that	O	O
sum	O	O
to	O	O
n+1	B-Code_Block	B-Code_Block
together	O	O
,	O	O
and	O	O
then	O	O
dividing	O	O
the	O	O
sum	O	O
by	O	O
two	O	O
.	O	O

Have	O	O
a	O	O
look	O	O
at	O	O
the	O	O
proof	O	O
in	O	O
wolfram	O	B-Application
.	O	O

Finally	O	O
,	O	O
since	O	O
O	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
(	B-Code_Block	B-Code_Block
n^2	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
/2	B-Code_Block	B-Code_Block
)	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
O(n^2)	I-Code_Block	I-Code_Block
you	O	O
get	O	O
that	O	O
the	O	O
terms	O	O
that	O	O
include	O	O
the	O	O
sum	O	O
dominate	O	O
the	O	O
runtime	O	O
and	O	O
that	O	O
is	O	O
why	O	O
the	O	O
algorithm	O	O
is	O	O
O(n^2)	B-Code_Block	B-Code_Block

in	O	O
blacberry	O	B-Device
is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
record	O	O
audio	O	O
for	O	O
VOIP	O	B-Application
application	O	O
,	O	O
i	O	O
am	O	O
able	O	O
to	O	O
do	O	O
a	O	O
simple	O	O
recording	O	O
application	O	O
and	O	O
save	O	O
it	O	O
to	O	O
a	O	O
file	O	O
in	O	O
phone	O	B-Device
(	O	O
or	O	O
how	O	O
can	O	O
i	O	O
modify	O	O
this	O	O
so	O	O
that	O	O
i	O	O
can	O	O
stream	O	O
)	O	O
,	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
capture	O	O
sound	O	O
and	O	O
at	O	O
the	O	O
same	O	O
time	O	O
delivering	O	O
it	O	O
to	O	O
a	O	O
server	O	B-Application
rather	O	O
than	O	O
recording	O	O
,	O	O
is	O	O
there	O	O
any	O	O
opensource	O	O
projects	O	O
on	O	O
this	O	O
topic	O	O
?	O	O

recording	O	O
part	O	O
is	O	O
here	O	O

currently	O	O
i	O	O
am	O	O
saving	O	O
the	O	O
recorded	O	O
details	O	O
to	O	O
a	O	O
ByteArrayOutputStream	O	B-Class
and	O	O
at	O	O
the	O	O
end	O	O
of	O	O
recording	O	O
saving	O	O
it	O	O
to	O	O
a	O	O
file	O	O
like	O	O
this	O	O

Well	O	O
I	O	O
am	O	O
not	O	O
sure	O	O
if	O	O
I	O	O
understand	O	O
your	O	O
question	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
send	O	O
the	O	O
audio	O	O
stream	O	O
directly	O	O
to	O	O
the	O	O
server	O	B-Application
while	O	O
recording	O	O
I	O	O
guess	O	O
you	O	O
could	O	O
access	O	O
your	O	O
ByteArrayOutputStream	O	B-Class
(	O	O
dataOut	O	B-Variable
)	O	O
in	O	O
a	O	O
separate	O	O
thread	O	O
,	O	O
get	O	O
the	O	O
bytes	O	B-Data_Type
from	O	O
the	O	O
stream	O	O
,	O	O
wrap	O	O
them	O	O
in	O	O
RTP	O	O
packages	O	O
and	O	O
send	O	O
them	O	O
to	O	O
the	O	O
streaming	O	O
server	O	B-Application
.	O	O

This	O	O
separate	O	O
thread	O	O
would	O	O
be	O	O
running	O	O
together	O	O
with	O	O
the	O	O
recording	O	O
process	O	O
.	O	O

In	O	O
this	O	O
way	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
save	O	O
the	O	O
audio	O	O
stream	O	O
in	O	O
any	O	O
file	O	O
.	O	O

Have	O	O
you	O	O
tried	O	O
this	O	O
approach	O	O
?	O	O

Which	O	O
streaming	O	O
server	O	B-Application
are	O	O
you	O	O
using	O	O
?	O	O

I	O	O
have	O	O
a	O	O
text	O	B-File_Type
file	O	O
like	O	O
this	O	O
:	O	O

I	O	O
want	O	O
the	O	O
output	O	O
to	O	O
be	O	O
like	O	O
this	O	O
:	O	O

I	O	O
want	O	O
to	O	O
change	O	O
the	O	O
second	O	O
field	O	O
from	O	O
lower-case	O	O
into	O	O
upper-case	O	O
and	O	O
only	O	O
the	O	O
second	O	O
field	O	O
.	O	O

Note	O	O
that	O	O
the	O	O
number	O	O
of	O	O
fields	O	O
in	O	O
a	O	O
certain	O	O
line	O	O
is	O	O
not	O	O
fixed	O	O
.	O	O

Can	O	O
I	O	O
accomplish	O	O
this	O	O
goal	O	O
using	O	O
awk	B-Code_Block	B-Language
?	O	O

You	O	O
sure	O	O
can	O	O
.	O	O

Here	O	O
's	O	O
how	O	O
:	O	O

Results	O	O
:	O	O

From	O	O
the	O	O
manual	O	O
:	O	O

I	O	O
made	O	O
the	O	O
assumption	O	O
that	O	O
given	O	O
your	O	O
sample	O	O
data	O	O
,	O	O
it	O	O
would	O	O
have	O	O
at	O	O
least	O	O
three	O	O
columns	O	B-User_Interface_Element
and	O	O
that	O	O
the	O	O
variable	O	O
component	O	O
you	O	O
discuss	O	O
applies	O	O
to	O	O
the	O	O
columns	O	B-User_Interface_Element
after	O	O
those	O	O
containing	O	O
words	O	O
.	O	O

If	O	O
I	O	O
was	O	O
wrong	O	O
,	O	O
you	O	O
can	O	O
simply	O	O
add	O	O
the	O	O
conditional	O	O
:	O	O

I	O	O
'm	O	O
writing	O	O
a	O	O
drawing	O	O
program	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
take	O	O
an	O	O
ordered	O	O
list	O	O
mouse	O	B-Device
positions	O	O
,	O	O
and	O	O
approximate	O	O
a	O	O
smooth	O	O
Quadratic	O	O
BSpline	O	O
Curve	O	O
.	O	O

Does	O	O
anyone	O	O
know	O	O
how	O	O
to	O	O
accomplish	O	O
this	O	O
?	O	O

Thanks	O	O
!	O	O

"	O	O
B-spline	O	O
curve	O	O
fitting	O	O
based	O	O
on	O	O
adaptive	O	O
curve	O	O
refinement	O	O
using	O	O
dominant	O	O
points	O	O
"	O	O
by	O	O
Park	O	B-User_Name
&	O	O
Lee	O	B-User_Name
and	O	O
"	O	O
Fair	O	O
interpolation	O	O
and	O	O
approximation	O	O
of	O	O
B-splines	O	O
by	O	O
energy	O	O
minimization	O	O
and	O	O
points	O	O
insertion	O	O
"	O	O
by	O	O
Vassilev	O	B-User_Name
seem	O	O
to	O	O
be	O	O
solving	O	O
this	O	O
problem	O	O
.	O	O

Also	O	O
there	O	O
look	O	O
like	O	O
a	O	O
few	O	O
references	O	O
on	O	O
the	O	O
first	O	O
link	O	O
that	O	O
should	O	O
help	O	O
you	O	O
.	O	O

Converting	O	O
data	O	O
points	O	O
to	O	O
control	O	O
points	O	O
in	O	O
areas	O	O
of	O	O
high	O	O
curvature	O	O
and	O	O
removing	O	O
data	O	O
points	O	O
in	O	O
areas	O	O
of	O	O
little	O	O
curvature	O	O
is	O	O
a	O	O
general	O	O
approach	O	O
.	O	O

We	O	O
have	O	O
svn	O	B-Application
1.6	O	B-Version
,	O	O
a	O	O
trunk	O	O
with	O	O
approx	O	O
30000	O	O
files	O	O
(	O	O
1	O	O
GB	O	O
)	O	O
,	O	O
and	O	O
a	O	O
"	O	O
test	O	O
"	O	O
branch	O	O
originally	O	O
copied	O	O
from	O	O
trunk	O	O
.	O	O

When	O	O
we	O	O
are	O	O
keeping	O	O
our	O	O
"	O	B-Value
test	O	I-Value
"	O	I-Value
branch	O	O
in	O	O
sync	O	B-Value
,	O	O
the	O	O
svn	B-Code_Block	B-Code_Block
merge	I-Code_Block	I-Code_Block
^	I-Code_Block	I-Code_Block
/trunk	I-Code_Block	I-Code_Block
command	O	O
takes	O	O
a	O	O
long	O	O
time	O	O
(	O	O
30	O	O
min	O	O
)	O	O
although	O	O
we	O	O
are	O	O
only	O	O
changing	O	O
a	O	O
few	O	O
files	O	O
in	O	O
a	O	O
specific	O	O
subdirectory	O	O
.	O	O

My	O	O
question	O	O
is	O	O
:	O	O
Does	O	O
anybody	O	O
know	O	O
a	O	O
way	O	O
to	O	O
make	O	O
the	O	O
merge	O	O
command	O	O
faster	O	O
?	O	O

PS	O	O
:	O	O
I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
the	O	O
command	O	O
takes	O	O
so	O	O
much	O	O
time	O	O
(	O	O
not	O	O
going	O	O
through	O	O
the	O	O
list	O	O
of	O	O
changed	O	O
files	O	O
but	O	O
apparently	O	O
going	O	O
through	O	O
the	O	O
all	O	O
repository	O	O
)	O	O
.	O	O

Does	O	O
anybody	O	O
knows	O	O
?	O	O

It	O	O
is	O	O
probably	O	O
related	O	O
to	O	O
the	O	O
number	O	O
of	O	O
sub-folders	O	O
in	O	O
your	O	O
checkout	O	O
.	O	O

Each	O	O
of	O	O
them	O	O
has	O	O
an	O	O
.svn	O	B-File_Type
folder	O	O
which	O	O
needs	O	O
to	O	O
be	O	O
checked	O	O
for	O	O
local	O	O
changes	O	O
during	O	O
the	O	O
merge	O	O
.	O	O

This	O	O
does	O	O
not	O	O
mean	O	O
that	O	O
having	O	O
one	O	O
huge	O	O
folder	O	O
with	O	O
30,000	O	O
files	O	O
would	O	O
be	O	O
any	O	O
faster	O	O
,	O	O
though	O	O
..	O	O
.	O	O

Even	O	O
in	O	O
a	O	O
smaller	O	O
project	O	O
,	O	O
there	O	O
is	O	O
a	O	O
noticeable	O	O
difference	O	O
in	O	O
time	O	O
it	O	O
takes	O	O
to	O	O
do	O	O
the	O	O
same	O	O
operation	O	O
when	O	O
running	O	O
on	O	O
a	O	O
fast	O	O
SSD	O	B-Device
drive	O	I-Device
vs	O	O
.	O	O
regular	O	B-Device
drive	O	I-Device
or	O	O
a	O	O
networked	O	O
file	O	O
system	O	O
.	O	O

I	O	O
need	O	O
to	O	O
make	O	O
a	O	O
program	O	O
at	O	O
LC3	O	B-Language
assembly	O	I-Language
that	O	O
devides	O	O
2	O	O
natural	O	B-Data_Type
numbers	O	I-Data_Type
and	O	O
stores	O	O
the	O	O
remainder	O	O
at	O	O
R0.In	O	B-Variable
case	O	O
that	O	O
R1	O	B-Variable
is	O	O
zero	O	B-Value
,	O	O
R1	O	B-Variable
must	O	O
be	O	O
0.Else	O	B-Value
R1	O	B-Variable
must	O	O
be	O	O
1	O	B-Value
.	O	O

My	O	O
code	O	O
is	O	O
:	O	O

This	O	O
is	O	O
my	O	O
first	O	O
program	O	O
at	O	O
LC3	O	B-Language
assembly	O	I-Language
...	O	O
I	O	O
am	O	O
a	O	O
total	O	O
beginner.Could	O	O
anyone	O	O
explain	O	O
to	O	O
me	O	O
why	O	O
this	O	O
does	O	O
n't	O	O
compile	O	O
?	O	O
I	O	O
always	O	O
get	O	O
a	O	O
"	O	O
Invalid	O	B-Error_Name
label	O	I-Error_Name
'	O	I-Error_Name
#25	O	I-Error_Name
"	O	O
"	O	O
error	O	O
message.Thank	O	O
you	O	O
in	O	O
advance	O	O
for	O	O
your	O	O
help	O	O
!	O	O

I	O	O
want	O	O
some	O	O
suggestion	O	O
on	O	O
how	O	O
to	O	O
do	O	O
the	O	O
following	O	O
.	O	O

In	O	O
my	O	O
ASP.Net	O	B-Library
MVC	O	B-Algorithm
application	O	O
I	O	O
have	O	O
a	O	O
view	O	O
which	O	O
can	O	O
be	O	O
accessed	O	O
unauthorized	O	O
and	O	O
this	O	O
view	O	O
have	O	O
a	O	O
registration	O	O
form	O	O
now	O	O
the	O	O
requirement	O	O
is	O	O
that	O	O
there	O	O
you	O	O
can	O	O
register	O	O
for	O	O
multiple	O	O
people	O	O
.	O	O

So	O	O
for	O	O
example	O	O
if	O	O
the	O	O
event	O	O
can	O	O
have	O	O
two	O	O
persons	O	O
registered	O	O
so	O	O
I	O	O
need	O	O
to	O	O
show	O	O
two	O	O
registration	O	O
form	O	O
and	O	O
then	O	O
the	O	O
detaisl	O	O
should	O	O
be	O	O
filled	O	O
and	O	O
press	O	O
submit	O	O
then	O	O
this	O	O
whole	O	O
data	O	O
should	O	O
be	O	O
validated	O	O
and	O	O
passed	O	O
to	O	O
Controller	O	O
.	O	O

I	O	O
do	O	O
not	O	O
understand	O	O
how	O	O
to	O	O
do	O	O
this	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
have	O	O
a	O	O
ViewModel	O	O
like	O	O
:	O	O

?	O	O

Please	O	O
suggest	O	O
.	O	O

Thanks	O	O

I	O	O
'm	O	O
in	O	O
the	O	O
process	O	O
of	O	O
building	O	O
and	O	O
designing	O	O
my	O	O
first	O	O
Javascript	O	B-Language
OOP	O	O
web	O	O
application	O	O
and	O	O
I	O	O
'm	O	O
wondering	O	O
what	O	O
kind	O	O
of	O	O
data	O	O
structure	O	O
/	O	O
management	O	O
system	O	O
would	O	O
be	O	O
best	O	O
to	O	O
use	O	O
.	O	O

I	O	O
know	O	O
the	O	O
interaction	O	O
between	O	O
Javascript	O	B-Language
and	O	O
XML	O	B-Language
is	O	O
good	O	O
and	O	O
fairly	O	O
easy	O	O
,	O	O
but	O	O
XML	O	B-Language
is	O	O
n't	O	O
meant	O	O
to	O	O
be	O	O
used	O	O
as	O	O
a	O	O
database	O	O
.	O	O

Is	O	O
it	O	O
better	O	O
to	O	O
form	O	O
a	O	O
combination	O	O
of	O	O
both	O	O
?	O	O

Have	O	O
a	O	O
server-side	O	O
language	O	O
(	O	O
PHP	O	B-Language
)	O	O
generate	O	O
XML	O	B-Language
and	O	O
have	O	O
it	O	O
then	O	O
be	O	O
read	O	O
by	O	O
JS	O	B-Language
?	O	O

Or	O	O
am	O	O
I	O	O
heading	O	O
in	O	O
the	O	O
wrong	O	O
direction	O	O
with	O	O
this	O	O
?	O	O

Javascript	O	B-Language
itself	O	O
does	O	O
n't	O	O
do	O	O
queries	O	O
....	O	O
it	O	O
needs	O	O
a	O	O
helper	O	O
like	O	O
PHP	O	B-Language
,	O	O
.net	O	B-Library
,	O	O
or	O	O
Java	O	B-Language
.	O	O

It	O	O
can	O	O
traverse	O	O
XML	O	B-Language
or	O	O
JSON	O	B-Language
just	O	O
fine	O	O
like	O	O
you	O	O
say	O	O
,	O	O
but	O	O
sending	O	O
colossal	O	O
XML	O	B-Language
documents	O	O
with	O	O
all	O	O
possible	O	O
data	O	O
when	O	O
only	O	O
small	O	O
amounts	O	O
of	O	O
the	O	O
data	O	O
is	O	O
actually	O	O
required	O	O
will	O	O
lead	O	O
to	O	O
massive	O	O
overhead	O	O
that	O	O
will	O	O
bring	O	O
your	O	O
app	O	O
to	O	O
its	O	O
knees	O	O
.	O	O

It	O	O
's	O	O
the	O	O
definition	O	O
of	O	O
lack-of-scalability	O	O
.	O	O

My	O	O
personal	O	O
preference	O	O
is	O	O
JQuery	O	B-Library
Ajax	O	B-Function
talking	O	O
to	O	O
a	O	O
PHP	O	B-Language
backend	O	O
(	O	O
transactions	O	O
via	O	O
JSON	O	B-Language
)	O	O
.	O	O

If	O	O
I	O	O
'm	O	O
dealing	O	O
with	O	O
the	O	O
presentation	O	O
of	O	O
large	O	O
datasets	O	O
I	O	O
'll	O	O
always	O	O
page	O	O
the	O	O
information	O	O
server-side	O	O
and	O	O
pipeline	O	O
it	O	O
(	O	O
load	O	O
data	O	O
ahead	O	O
of	O	O
and	O	O
behind	O	O
the	O	O
current	O	O
view	O	O
to	O	O
reduce	O	O
transactions	O	O
)	O	O
,	O	O
and	O	O
usually	O	O
present	O	O
in	O	O
via	O	O
jQuery	O	B-Library
DataTables	O	B-Function
.	O	O

Grids	O	O
are	O	O
always	O	O
your	O	O
friend	O	O
with	O	O
large	O	O
amounts	O	O
of	O	O
data	O	O
.	O	O

Again	O	O
,	O	O
personal	O	O
preference	O	O
,	O	O
but	O	O
I	O	O
make	O	O
heavy	O	O
use	O	O
of	O	O
jQuery	O	B-Library
UI	O	O
for	O	O
layout	O	O
and	O	O
presentation	O	O
,	O	O
and	O	O
I	O	O
do	O	O
write	O	O
custom	O	O
Javascript	O	B-Language
for	O	O
the	O	O
"	O	O
nifty	O	O
"	O	O
one-off	O	O
type	O	O
things	O	O
that	O	O
come	O	O
up	O	O
.	O	O

Again	O	O
,	O	O
any	O	O
server	O	O
language	O	O
you	O	O
have	O	O
access	O	O
to	O	O
and	O	O
are	O	O
comfortable	O	O
with	O	O
will	O	O
suffice	O	O
,	O	O
as	O	O
Javascript	O	B-Language
is	O	O
language	O	O
agnostic	O	O
.	O	O

Javascript	O	B-Language
can	O	O
get	O	O
out	O	O
of	O	O
hand	O	O
in	O	O
a	O	O
hurry	O	O
.	O	O

I	O	O
'd	O	O
recommend	O	O
that	O	O
unless	O	O
you	O	O
have	O	O
a	O	O
ton	O	O
of	O	O
time	O	O
on	O	O
your	O	O
hands	O	O
that	O	O
you	O	O
focus	O	O
on	O	O
clean	O	O
presentation	O	O
via	O	O
something	O	O
baseline	O	O
like	O	O
HTML	O	B-Language
with	O	O
judicious	O	O
use	O	O
of	O	O
Javascript	O	B-Language
and	O	O
CSS	O	B-Language
for	O	O
progressive	O	O
enhancement	O	O
.	O	O

Think	O	O
about	O	O
the	O	O
user	O	O
before	O	O
you	O	O
go	O	O
crazy	O	O
with	O	O
motion	O	O
,	O	O
dynamic	O	O
elements	O	O
,	O	O
etc	O	O
.	O	O

Do	O	O
n't	O	O
forget	O	O
the	O	O
old	O	O
adage	O	O
,	O	O
"	O	O
80%	O	O
of	O	O
the	O	O
people	O	O
only	O	O
use	O	O
20%	O	O
of	O	O
the	O	O
functionality	O	O
"	O	O
Nail	O	O
that	O	O
20%	O	O
cleanly	O	O
before	O	O
going	O	O
to	O	O
town	O	O
on	O	O
flashy	O	O
javascript	O	B-Language
fluff	O	O
.	O	O

Your	O	O
users	O	O
will	O	O
thank	O	O
you	O	O
!	O	O

JSON	O	B-File_Type
is	O	O
by	O	O
far	O	O
the	O	O
fastest	O	O
to	O	O
parse	O	O
,	O	O
since	O	O
it	O	O
IS	O	O
JavaScript	O	B-Language
.	O	O

Application	O	O
frameworks	O	O
like	O	O
EXT.JS	O	B-Library
are	O	O
already	O	O
doing	O	O
this	O	O
with	O	O
great	O	O
success	O	O
.	O	O

The	O	O
following	O	O
describes	O	O
what	O	O
seems	O	O
to	O	O
be	O	O
a	O	O
bug	O	O
in	O	O
Ruby	O	B-Language
1.8	O	B-Version
(	O	O
and	O	O
REE	O	B-Version
)	O	O
but	O	O
has	O	O
been	O	O
fixed	O	O
in	O	O
1.9	O	B-Version
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
know	O	O
:	O	O

Why	O	O
calling	O	O
==	B-Code_Block	B-Function
on	O	O
String	B-Code_Block	B-Data_Type
or	O	O
Fixnum	B-Code_Block	B-Data_Type
triggers	O	O
calling	O	O
==	B-Code_Block	B-Function
on	O	O
other	B-Code_Block	B-Variable
object	O	O
at	O	O
all	O	O
?	O	O

Why	O	O
calling	O	O
==	B-Code_Block	B-Function
on	O	O
String	B-Code_Block	B-Data_Type
works	O	O
differently	O	O
depending	O	O
on	O	O
the	O	O
other	B-Code_Block	B-Variable
object	O	O
class	O	O
?	O	O

Now	O	O
the	O	O
code	O	O
:	O	O

Example	O	O
1	O	O

Nothing	O	O
interesting	O	O
here	O	O
,	O	O
move	O	O
along	O	O
.	O	O

Example	O	O
2	O	O

Calling	O	O
==	B-Code_Block	B-Function
on	O	O
String	B-Code_Block	B-Data_Type
triggers	O	O
==	B-Code_Block	B-Function
on	O	O
other	B-Code_Block	B-Variable
object	O	O
of	O	O
Exception	B-Code_Block	B-Class
class	O	O
.	O	O

Example	O	O
3	O	O

Calling	O	O
==	B-Code_Block	B-Function
on	O	O
Fixnum	B-Code_Block	B-Data_Type
triggers	O	O
==	B-Code_Block	B-Function
on	O	O
other	B-Code_Block	B-Variable
object	O	O
.	O	O

Example	O	O
4	O	O

Calling	O	O
==	B-Code_Block	B-Function
on	O	O
String	B-Code_Block	B-Data_Type
triggers	O	O
==	B-Code_Block	B-Function
on	O	O
other	B-Code_Block	B-Variable
object	O	O
of	O	O
Exception	B-Code_Block	B-Class
class	O	O
.	O	O

Ruby	O	B-Language
is	O	O
an	O	O
object-oriented	O	O
language	O	O
.	O	O

In	O	O
an	O	O
object-oriented	O	O
language	O	O
,	O	O
you	O	O
send	O	O
messages	O	O
to	O	O
objects	O	O
and	O	O
those	O	O
objects	O	O
then	O	O
respond	O	O
to	O	O
those	O	O
messages	O	O
however	O	O
they	O	O
see	O	O
fit	O	O
.	O	O

This	O	O
means	O	O
that	O	O
the	O	O
receiver	O	O
of	O	O
the	O	O
message	O	O
,	O	O
and	O	O
only	O	O
the	O	O
receiver(!)	O	O

is	O	O
in	O	O
total	O	O
control	O	O
of	O	O
what	O	O
a	O	O
message	O	O
means	O	O
.	O	O

With	O	O
some	O	O
operators	O	O
,	O	O
however	O	O
,	O	O
there	O	O
are	O	O
certain	O	O
expectations	O	O
of	O	O
symmetry	O	O
:	O	O
for	O	O
example	O	O
,	O	O
a	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
b	I-Code_Block	I-Code_Block
is	O	O
expected	O	O
to	O	O
be	O	O
the	O	O
same	O	O
as	O	O
b	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
a	I-Code_Block	I-Code_Block
.	O	O

But	O	O
in	O	O
an	O	O
OO	O	O
language	O	O
that	O	O
is	O	O
impossible	O	O
!	O	O

Either	O	O
a	B-Code_Block	B-Variable
or	O	O
b	B-Code_Block	B-Variable
must	O	O
be	O	O
the	O	O
receiver	O	O
of	O	O
the	O	O
message	O	O
,	O	O
so	O	O
in	O	O
one	O	O
case	O	O
a	B-Code_Block	B-Variable
gets	O	O
to	O	O
decide	O	O
whether	O	O
a	B-Code_Block	B-Variable
and	O	O
b	B-Code_Block	B-Variable
are	O	O
equal	O	O
and	O	O
in	O	O
the	O	O
other	O	O
case	O	O
b	B-Code_Block	B-Variable
gets	O	O
to	O	O
decide	O	O
.	O	O

They	O	O
might	O	O
decide	O	O
differently	O	O
,	O	O
and	O	O
then	O	O
the	O	O
expectation	O	O
of	O	O
symmetry	O	O
would	O	O
be	O	O
broken	O	O
.	O	O

So	O	O
,	O	O
in	O	O
some	O	O
classes	O	O
equality	O	O
is	O	O
actually	O	O
implemented	O	O
something	O	O
like	O	O
this	O	O
:	O	O

Here	O	O
's	O	O
an	O	O
example	O	O
:	O	O
if	O	O
you	O	O
write	O	O
your	O	O
own	O	O
Numeric	B-Code_Block	B-Class
class	O	O
(	O	O
say	O	O
,	O	O
a	O	O
Quaternion	B-Code_Block	B-Class
class	O	O
)	O	O
,	O	O
then	O	O
the	O	O
system	O	O
builtin	O	O
Fixnum	B-Code_Block	B-Class
class	O	O
does	O	O
n't	O	O
know	O	O
anything	O	O
about	O	O
Quaternions	B-Code_Block	B-Class
.	O	O
So	O	O
,	O	O
when	O	O
you	O	O
ask	O	O
the	O	O
Fixnum	B-Code_Block	B-Class
0	I-Code_Block	O
whether	O	O
it	O	O
is	O	O
equal	O	O
to	O	O
the	O	O
Quaternion	B-Code_Block	B-Class
(	I-Code_Block	B-Value
0	I-Code_Block	I-Value
,	I-Code_Block	I-Value
0	I-Code_Block	I-Value
,	I-Code_Block	I-Value
0	I-Code_Block	I-Value
,	I-Code_Block	I-Value
0	I-Code_Block	I-Value
)	I-Code_Block	I-Value
,	O	O
it	O	O
will	O	O
responds	O	O
false	B-Code_Block	B-Value
,	O	O
even	O	O
though	O	O
that	O	O
's	O	O
wrong	O	O
.	O	O

So	O	O
,	O	O
instead	O	O
the	O	O
Fixnum	B-Code_Block	B-Class
will	O	O
first	O	O
check	O	O
:	O	O
do	O	O
I	O	O
know	O	O
how	O	O
to	O	O
compare	O	O
myself	O	O
to	O	O
a	O	O
Quaternion	B-Code_Block	B-Class
?	O	O

No	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
,	O	O
but	O	O
maybe	O	O
a	O	O
Quaternion	B-Code_Block	B-Class
knows	O	O
how	O	O
to	O	O
compare	O	O
itself	O	O
to	O	O
a	O	O
Fixnum	B-Code_Block	B-Class
!	O	O

After	O	O
all	O	O
,	O	O
the	O	O
Quaternion	B-Code_Block	B-Class
class	O	O
did	O	O
n't	O	O
exist	O	O
when	O	O
the	O	O
Fixnum	B-Code_Block	B-Class
class	O	O
was	O	O
written	O	O
,	O	O
so	O	O
the	O	O
Fixnum	B-Code_Block	B-Class
class	O	O
cannot	O	O
know	O	O
about	O	O
Quaternions	B-Code_Block	B-Class
.	O	O
But	O	O
when	O	O
the	O	O
Quaternion	B-Code_Block	B-Class
class	O	O
was	O	O
written	O	O
,	O	O
maybe	O	O
the	O	O
author	O	O
was	O	O
so	O	O
thoughtful	O	O
to	O	O
make	O	O
it	O	O
possible	O	O
to	O	O
compare	O	O
Quaternions	B-Code_Block	B-Class
with	O	O
Fixnums	B-Code_Block	B-Class
.	O	O

That	O	O
's	O	O
why	O	O
Fixnum#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
reverses	O	O
the	O	O
arguments	O	O
and	O	O
tries	O	O
again	O	O
.	O	O

With	O	O
String	B-Code_Block	B-Data_Type
,	O	O
it	O	O
's	O	O
the	O	O
same	O	O
but	O	O
somewhat	O	O
more	O	O
complicated	O	O
.	O	O

In	O	O
Ruby	O	B-Language
,	O	O
classes	O	O
are	O	O
n't	O	O
types	O	O
and	O	O
subtyping	O	O
and	O	O
subclassing	O	O
are	O	O
different	O	O
.	O	O

Ruby	O	B-Language
itself	O	O
does	O	O
n't	O	O
have	O	O
a	O	O
concept	O	O
of	O	O
type	O	O
at	O	O
all	O	O
!	O	O

The	O	O
type	O	O
of	O	O
an	O	O
object	O	O
is	O	O
its	O	O
protocol	O	O
,	O	O
i.e	O	O
.	O	O
the	O	O
messages	O	O
it	O	O
understands	O	O
and	O	O
how	O	O
it	O	O
responds	O	O
to	O	O
them	O	O
.	O	O

But	O	O
that	O	O
concept	O	O
is	O	O
not	O	O
recorded	O	O
in	O	O
Ruby	O	B-Language
(	O	O
unlike	O	O
Objective-C	O	B-Language
,	O	O
for	O	O
example	O	O
,	O	O
which	O	O
does	O	O
have	O	O
an	O	O
explicit	O	O
notion	O	O
of	O	O
protocol	O	O
)	O	O
.	O	O

There	O	O
,	O	O
however	O	O
,	O	O
some	O	O
cases	O	O
,	O	O
where	O	O
you	O	O
want	O	O
to	O	O
break	O	O
OO	O	O
encapsulation	O	O
,	O	O
and	O	O
know	O	O
the	O	O
specific	O	O
type	O	O
and	O	O
even	O	O
more	O	O
:	O	O
the	O	O
specific	O	O
representation	O	O
of	O	O
the	O	O
type	O	O
.	O	O

(	O	O
Note	O	O
:	O	O
this	O	O
violates	O	O
OO	O	O
,	O	O
but	O	O
it	O	O
is	O	O
sometimes	O	O
necessary	O	O
for	O	O
performance	O	O
.	O	O
)	O	O

In	O	O
cases	O	O
,	O	O
where	O	O
Ruby	O	B-Language
needs	O	O
an	O	O
object	O	O
to	O	O
be	O	O
of	O	O
a	O	O
specific	O	O
class	O	O
instead	O	O
of	O	O
just	O	O
responding	O	O
to	O	O
a	O	O
specific	O	O
protocol	O	O
,	O	O
you	O	O
would	O	O
lose	O	O
a	O	O
lot	O	O
of	O	O
flexibility	O	O
.	O	O

You	O	O
have	O	O
to	O	O
use	O	O
,	O	O
say	O	O
,	O	O
a	O	O
String	B-Code_Block	B-Data_Type
,	O	O
even	O	O
though	O	O
you	O	O
would	O	O
much	O	O
rather	O	O
use	O	O
a	O	O
Rope	B-Code_Block	B-Data_Type
instead	O	O
.	O	O

In	O	O
order	O	O
to	O	O
give	O	O
you	O	O
back	O	O
some	O	O
flexibility	O	O
,	O	O
Ruby	O	B-Language
allows	O	O
you	O	O
to	O	O
pass	O	O
in	O	O
something	O	O
which	O	O
is	O	O
not	O	O
exactly	O	O
a	O	O
String	B-Code_Block	B-Data_Type
but	O	O
which	O	O
is	O	O
equivalent	O	O
to	O	O
one	O	O
and	O	O
can	O	O
be	O	O
converted	O	O
to	O	O
one	O	O
with	O	O
a	O	O
to_str	B-Code_Block	B-Function
method	O	O
.	O	O

So	O	O
,	O	O
unlike	O	O
other	O	O
languages	O	O
,	O	O
where	O	O
A	B-Code_Block	B-Value
IS-A	I-Code_Block	I-Value
String	I-Code_Block	I-Value
is	O	O
represented	O	O
by	O	O
A	B-Code_Block	B-Class
being	O	O
a	O	O
subclass	O	O
of	O	O
String	B-Code_Block	B-Data_Type
,	O	O
in	O	O
Ruby	O	B-Language
,	O	O
the	O	O
relationship	O	O
A	B-Code_Block	B-Value
IS-A	I-Code_Block	I-Value
String	I-Code_Block	I-Value
is	O	O
represented	O	O
by	O	O
A	B-Code_Block	B-Class
having	O	O
a	O	O
to_str	B-Code_Block	B-Function
method	O	O
.	O	O

That	O	O
's	O	O
what	O	O
you	O	O
are	O	O
seeing	O	O
above	O	O
.	O	O

If	O	O
the	O	O
argument	O	O
to	O	O
String#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
is	O	O
n't	O	O
a	O	O
String	B-Code_Block	B-Data_Type
,	O	O
then	O	O
String#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
does	O	O
n't	O	O
know	O	O
what	O	O
to	O	O
do	O	O
with	O	O
it	O	O
.	O	O

But	O	O
if	O	O
it	O	O
is	O	O
"	O	O
string-like	O	O
"	O	O
,	O	O
i.e	O	O
.	O	O
it	O	O
implements	O	O
to_str	B-Code_Block	B-Function
,	O	O
then	O	O
maybe	O	O
it	O	O
does	O	O
know	O	O
how	O	O
to	O	O
compare	O	O
itself	O	O
to	O	O
a	O	O
String	B-Code_Block	B-Data_Type
?	O	O

Note	O	O
that	O	O
equality	O	O
is	O	O
very	O	O
hard	O	O
to	O	O
get	O	O
right	O	O
.	O	O

People	O	O
cannot	O	O
even	O	O
agree	O	O
on	O	O
what	O	O
it	O	O
means	O	O
in	O	O
a	O	O
purely	O	O
functional	O	O
language	O	O
,	O	O
and	O	O
that	O	O
's	O	O
the	O	O
easy	O	O
case	O	O
!	O	O

In	O	O
Ruby	O	B-Language
,	O	O
there	O	O
are	O	O
two	O	O
additional	O	O
complications	O	O
:	O	O
mutable	O	O
state	O	O
and	O	O
OO	O	O
.	O	O

Mutable	O	O
state	O	O
means	O	O
that	O	O
two	O	O
objects	O	O
that	O	O
were	O	O
equal	O	O
a	O	O
moment	O	O
ago	O	O
may	O	O
not	O	O
be	O	O
equal	O	O
anymore	O	O
a	O	O
couple	O	O
of	O	O
moments	O	O
later	O	O
.	O	O

Or	O	O
should	O	O
they	O	O
be	O	O
?	O	O

Or	O	O
should	O	O
n't	O	O
they	O	O
be	O	O
?	O	O

And	O	O
OO	O	O
means	O	O
that	O	O
equality	O	O
cannot	O	O
be	O	O
symmetric	O	O
.	O	O

That	O	O
's	O	O
why	O	O
the	O	O
implementations	O	O
of	O	O
==	B-Code_Block	B-Function
for	O	O
various	O	O
core	O	O
and	O	O
stdlib	O	B-Library
classes	O	O
are	O	O
constantly	O	O
improved	O	O
.	O	O

That	O	O
's	O	O
also	O	O
why	O	O
you	O	O
may	O	O
see	O	O
weird	O	O
behavior	O	O
now	O	O
and	O	O
again	O	O
.	O	O

Sometimes	O	O
it	O	O
may	O	O
just	O	O
be	O	O
an	O	O
artifact	O	O
of	O	O
trying	O	O
to	O	O
get	O	O
equality	O	O
right	O	O
,	O	O
and	O	O
sometimes	O	O
it	O	O
might	O	O
just	O	O
simply	O	O
be	O	O
a	O	O
bug	O	O
.	O	O

By	O	O
the	O	O
way	O	O
:	O	O
for	O	O
the	O	O
arithmetic	O	O
operators	O	O
,	O	O
subclasses	O	O
of	O	O
Numeric	B-Code_Block	B-Class
actually	O	O
have	O	O
a	O	O
more	O	O
formal	O	O
double-dispatch	O	O
protocol	O	O
using	O	O
the	O	O
coerce	B-Code_Block	B-Function
method	O	O
.	O	O

If	O	O
a	O	O
Numeric	B-Code_Block	B-Class
object	O	O
does	O	O
n't	O	O
know	O	O
what	O	O
to	O	O
do	O	O
with	O	O
another	O	O
Numeric	B-Code_Block	B-Class
,	O	O
it	O	O
will	O	O
ask	O	O
that	O	O
other	O	O
object	O	O
to	O	O
coerce	B-Code_Block	B-Function
the	O	O
two	O	O
objects	O	O
to	O	O
a	O	O
type	O	O
that	O	O
does	O	O
know	O	O
that	O	O
.	O	O

For	O	O
example	O	O
,	O	O
if	O	O
you	O	O
try	O	O
to	O	O
add	O	O
a	O	O
Quaternion	B-Code_Block	B-Class
to	O	O
a	O	O
Fixnum	B-Code_Block	B-Class
,	O	O
the	O	O
Fixnum	B-Code_Block	B-Class
wo	O	O
n't	O	O
know	O	O
what	O	O
to	O	O
do	O	O
:	O	O

The	O	O
+	B-Code_Block	B-Function
method	O	O
of	O	O
Fixnum	B-Code_Block	B-Class
will	O	O
then	O	O
call	O	O
:	O	O

IOW	O	O
:	O	O
it	O	O
will	O	O
call	O	O
Quaternion	B-Code_Block	B-Function
#coerce	I-Code_Block	I-Function
with	O	O
the	O	O
equivalent	O	O
of	O	O

to	O	O
which	O	O
Quaternion	B-Code_Block	B-Class
will	O	O
respond	O	O
with	O	O
an	O	O
Array	B-Code_Block	B-Data_Structure
of	O	O
[	B-Code_Block	B-Code_Block
Quaternion.new(2,0,0,0)	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
Quaternion.new(1,0,0,0)	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block

Then	O	O
,	O	O
Fixnum#+	B-Code_Block	B-Function
will	O	O
try	O	O
again	O	O
by	O	O
simply	O	O
calling	O	O

Which	O	O
will	O	O
now	O	O
work	O	O
because	O	O
a	B-Code_Block	B-Variable
is	O	O
a	O	O
Quaternion	B-Code_Block	B-Class
also	O	O
and	O	O
knows	O	O
how	O	O
to	O	O
add	O	O
two	O	O
Quaternions	B-Code_Block	B-Class
.	O	O

A	O	O
very	O	O
common	O	O
implementation	O	O
of	O	O
coerce	B-Code_Block	B-Function
is	O	O
simply	O	O
to	O	O
swap	O	O
the	O	O
arguments	O	O
,	O	O
i.e	O	O
.	O	O

That	O	O
's	O	O
equivalent	O	O
to	O	O
the	O	O
behavior	O	O
you	O	O
are	O	O
seeing	O	O
with	O	O
Fixnum#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
.	O	O

Again	O	O
:	O	O
this	O	O
kind	O	O
of	O	O
dispatch	O	O
is	O	O
hard	O	O
to	O	O
get	O	O
right	O	O
,	O	O
and	O	O
there	O	O
are	O	O
improvements	O	O
being	O	O
made	O	O
to	O	O
the	O	O
coerce	B-Code_Block	B-Function
protocol	O	O
.	O	O

Ruby	O	B-Language
has	O	O
four	O	O
levels	O	O
of	O	O
object	O	O
equivalence	O	O
:	O	O

#equal	B-Code_Block	B-Function
?	I-Code_Block	I-Function
–	O	O
same	O	O
object	O	O

#eql	B-Code_Block	B-Function
?	I-Code_Block	I-Function
–	O	O
highest	O	O
level	O	O
of	O	O
equivalence	O	O
below	O	O
same	O	O
object	O	O

#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
–	O	O
"	O	O
standard	O	O
"	O	O
equality	O	O

#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
=	I-Code_Block	I-Function
,	O	O
#	B-Code_Block	B-Function
=	I-Code_Block	I-Function
~	I-Code_Block	I-Function
,	O	O
#hash	B-Code_Block	B-Function
,	O	O
etc	O	O
.	O	O

–	O	O
loose	O	O
equivalence	O	O
,	O	O
"	O	O
same	O	O
group	O	O
"	O	O
equivalence	O	O

Mindful	O	O
programmer	O	O
equips	O	O
each	O	O
of	O	O
her	O	O
classes	O	O
with	O	O
all	O	O
of	O	O
these	O	O
methods	O	O
except	O	O
#equal	B-Code_Block	B-Function
?	I-Code_Block	I-Function
,	O	O
which	O	O
should	O	O
never	O	O
be	O	O
overriden	O	O
.	O	O

Going	O	O
back	O	O
to	O	O
the	O	O
subject	O	O
of	O	O
your	O	O
question	O	O
,	O	O
many	O	O
built-in	O	O
Ruby	O	B-Language
objects	O	O
have	O	O
their	O	O
share	O	O
of	O	O
idiosyncrasies	O	O
in	O	O
the	O	O
implementation	O	O
of	O	O
these	O	O
methods	O	O
.	O	O

Ruby	O	B-Language
core	O	O
team	O	O
constantly	O	O
works	O	O
to	O	O
improve	O	O
them	O	O
,	O	O
so	O	O
you	O	O
should	O	O
make	O	O
your	O	O
way	O	O
from	O	O
1.8	O	B-Version
to	O	O
2.0	O	B-Version
,	O	O
which	O	O
fixes	O	O
a	O	O
number	O	O
of	O	O
1.8	O	B-Version
problems	O	O
.	O	O

One	O	O
more	O	O
thing	O	O
to	O	O
mention	O	O
with	O	O
#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
method	O	O
,	O	O
is	O	O
that	O	O
for	O	O
the	O	O
classes	O	O
that	O	O
represent	O	O
elements	O	O
of	O	O
ordered	O	O
sets	O	O
,	O	O
you	O	O
do	O	O
not	O	O
implement	O	O
#	B-Code_Block	B-Function
==	I-Code_Block	I-Function
directly	O	O
,	O	O
but	O	O
instead	O	O
you	O	O
provide	O	O
#<=>	B-Code_Block	B-Function
three-way	O	O
comparison	O	O
method,	O	O
and	O	O
include	O	O
Comparable	B-Code_Block	B-Library
module,	O	O
which	O	O
gives	O	O
you	O	O
for	O	O
free	O	O
methods	O	O
such	O	O
as	O	O
#==,	B-Code_Block	B-Function
#<,	I-Code_Block	I-Function
#>	I-Code_Block	I-Function
,	O	O
#sort	B-Code_Block	B-Function
,	O	O
etc	O	O
.	O	O

Yet	O	O
one	O	O
more	O	O
thing	O	O
to	O	O
mention	O	O
with	O	O
all	O	O
of	O	O
these	O	O
operators	O	O
and	O	O
operator-like	O	O
methods	O	O
,	O	O
be	O	O
mindful	O	O
of	O	O
the	O	O
existence	O	O
of	O	O
#coerce	B-Code_Block	B-Function
method	O	O
,	O	O
which	O	O
is	O	O
currently	O	O
undergoing	O	O
improvements	O	O
in	O	O
Ruby	O	B-Language
2.0	O	B-Version
.	O	O

I	O	O
have	O	O
a	O	O
web	O	O
application	O	O
and	O	O
it	O	O
has	O	O
two	O	O
controller	O	O
classes	O	O
.	O	O

The	O	O
two	O	O
controllers	O	O
have	O	O
an	O	O
action	O	O
with	O	O
FormCollection	O	B-Class
parameter	O	O
with	O	O
HTTPPost	O	B-Variable
attribute	O	O
decorated	O	O
.	O	O

If	O	O
I	O	O
click	O	O
on	O	O
Form	O	O
submit	O	O
button	O	B-User_Interface_Element
then	O	O
which	O	O
action	O	O
will	O	O
be	O	O
triggered	O	O
to	O	O
capture	O	O
the	O	O
form	O	B-Class
's	O	O
values	O	O
within	O	O
the	O	O
controller	O	O
.	O	O

Using	O	O
the	O	O
Form	O	B-Class
Collection	O	I-Class
class	O	O
we	O	O
can	O	O
capture	O	O
the	O	O
form	O	B-Class
's	O	O
values	O	O
within	O	O
the	O	O
controller.There	O	O
are	O	O
many	O	O
ways	O	O
to	O	O
fetch	O	O
these	O	O
values	O	O
and	O	O
Form	O	B-Class
Collection	O	I-Class
is	O	O
the	O	O
one	O	O
of	O	O
them	O	O
.	O	O

http://tutorial.techaltum.com/Form-collection-in-MVC.html	O	O

http://www.c-sharpcorner.com/UploadFile/dacca2/understand-formcollection-in-mvc-controller/	O	O

Follow	O	O
above	O	O
link	O	O
It	O	O
will	O	O
help	O	O
you	O	O
to	O	O
understand	O	O
more	O	O
.	O	O

I	O	O
've	O	O
build	O	O
the	O	O
exoplayer	O	B-Class
ffmpeg	O	B-Application
extension	O	O
and	O	O
added	O	O
to	O	O
my	O	O
project	O	O
,	O	O
because	O	O
i	O	O
need	O	O
to	O	O
support	O	O
AMR	O	B-File_Type
format	O	O
,	O	O
so	O	O
:	O	O

Following	O	O
the	O	O
tutorial	O	O
:	O	O
FFmpeg	O	B-Application
Extension	O	O

After	O	O
the	O	O
compilation	O	O
step	O	O
:	O	O

I	O	O
've	O	O
generated	O	O
aar	O	B-File_Type
file	O	O
with	O	O
:	O	O

So	O	O
I	O	O
got	O	O
the	O	O
extension-ffmpeg-debug.arr	O	B-File_Name
file	O	O
generated	O	O
and	O	O
put	O	O
it	O	O
in	O	O
the	O	O
lib	O	B-File_Name
folder	O	O
of	O	O
my	O	O
project	O	O
.	O	O

My	O	O
player	O	O
implementation	O	O
:	O	O

The	O	O
error	O	O
:	O	O

What	O	O
else	O	O
should	O	O
be	O	O
configured	O	O
to	O	O
run	O	O
the	O	O
AMR	O	B-File_Type
format	O	O
,	O	O
does	O	O
anyone	O	O
have	O	O
any	O	O
suggestions	O	O
?	O	O

How	O	O
would	O	O
I	O	O
declare	O	O
an	O	O
array	O	B-Data_Structure
in	O	O
Swift	O	B-Language
which	O	O
can	O	O
hold	O	O
values	O	O
of	O	O
any	O	O
enum	B-Code_Block	B-Data_Type
String	O	I-Data_Type
type	O	O
?	O	O

Here	O	O
's	O	O
what	O	O
I	O	O
want	O	O
to	O	O
do	O	O
:	O	O

The	O	O
two	O	O
enum	O	B-Data_Type
types	O	O
are	O	O
loosely	O	O
related	O	O
but	O	O
definitely	O	O
distinct	O	O
and	O	O
I	O	O
need	O	O
to	O	O
keep	O	O
the	O	O
values	O	O
separated	O	O
in	O	O
this	O	O
instance	O	O
,	O	O
so	O	O
lumping	O	O
them	O	O
all	O	O
together	O	O
in	O	O
one	O	O
enum	O	B-Data_Type
and	O	O
declaring	O	O
the	O	O
array	O	B-Data_Structure
of	O	O
type	O	O
MyAllIncludingEnumType	O	B-Class
is	O	O
not	O	O
desirable	O	O
.	O	O

Or	O	O
should	O	O
I	O	O
just	O	O
declare	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
Strings	O	B-Data_Type
and	O	O
add	O	O
the	O	O
rawValues	O	B-Class
directly	O	O
?	O	O

I	O	O
could	O	O
declare	O	O
the	O	O
array	O	B-Data_Structure
as	O	O
[	B-Code_Block	B-Library
AnyObject	I-Code_Block	I-Library
]	I-Code_Block	I-Library
but	O	O
then	O	O
I	O	O
'd	O	O
have	O	O
to	O	O
type	O	O
check	O	O
each	O	O
element	O	O
before	O	O
attempting	O	O
to	O	O
access	O	O
the	O	O
.rawValue	B-Code_Block	B-Class
,	O	O
which	O	O
is	O	O
n't	O	O
great	O	O
either	O	O
.	O	O

Currently	O	O
I	O	O
'm	O	O
only	O	O
able	O	O
to	O	O
use	O	O
Swift	O	B-Language
1.2	O	B-Version
on	O	O
this	O	O
project	O	O
,	O	O
as	O	O
it	O	O
's	O	O
for	O	O
an	O	O
app	O	O
which	O	O
is	O	O
already	O	O
in	O	O
the	O	O
App	O	B-Application
Store	O	I-Application
and	O	O
I	O	O
need	O	O
to	O	O
be	O	O
able	O	O
to	O	O
ship	O	O
updates	O	O
before	O	O
Xcode	O	B-Application
7	O	B-Version
goes	O	O
GM	O	O
.	O	O

Or	O	O
is	O	O
there	O	O
a	O	O
cleaner	O	O
but	O	O
completely	O	O
alternate	O	O
solution	O	O
to	O	O
what	O	O
I	O	O
want	O	O
to	O	O
do	O	O
?	O	O

An	O	O
alternative	O	O
to	O	O
Kametrixom	O	B-User_Name
's	O	O
answer	O	O
is	O	O
to	O	O
make	O	O
both	O	O
enums	O	B-Data_Type
conform	O	O
to	O	O
a	O	O
common	O	O
protocol	O	O
.	O	O

Both	O	O
automatically	O	O
conform	O	O
to	O	O
RawRepresentable	B-Code_Block	B-Class
,	O	O
because	O	O
of	O	O
the	O	O
raw	O	O
value	O	O
of	O	O
String	B-Code_Block	B-Data_Type
:	O	O

However	O	O
,	O	O
you	O	O
cannot	O	O
use	O	O
this	O	O
as	O	O
the	O	O
type	O	O
stored	O	O
in	O	O
the	O	O
array	O	B-Data_Structure
since	O	O
RawRepresentable	B-Code_Block	B-Class
is	O	O
a	O	O
generic	O	O
protocol	O	O
.	O	O

Instead	O	O
you	O	O
could	O	O
do	O	O
:	O	O

Just	O	O
think	O	O
about	O	O
it	O	O
logically	O	O
:	O	O
You	O	O
want	O	O
to	O	O
store	O	O
multiple	O	O
enums	O	B-Data_Type
in	O	O
an	O	O
array	O	B-Data_Structure
,	O	O
so	O	O
it	O	O
can	O	O
be	O	O
either	O	O
this	O	O
or	O	O
that	O	O
enum	O	B-Data_Type
,	O	O
which	O	O
is	O	O
just	O	O
what	O	O
an	O	O
enum	O	B-Data_Type
is	O	O
!	O	O

You	O	O
can	O	O
declare	O	O
an	O	O
new	O	O
enum	O	B-Data_Type
that	O	O
has	O	O
associated	O	O
values	O	O
of	O	O
all	O	O
the	O	O
accepted	O	O
other	O	O
enums	O	B-Data_Type
like	O	O
so	O	O
:	O	O

Then	O	O
you	O	O
can	O	O
create	O	O
an	O	O
array	O	B-Data_Structure
like	O	O
this	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
create	O	O
an	O	O
approval	O	O
process	O	O
right	O	O
now	O	O
,	O	O
and	O	O
in	O	O
order	O	O
to	O	O
do	O	O
so	O	O
,	O	O
I	O	O
have	O	O
a	O	O
summary	O	O
sheet	O	O
,	O	O
which	O	O
current	O	O
shows	O	O
the	O	O
details	O	O
of	O	O
the	O	O
offers	O	O
and	O	O
then	O	O
a	O	O
detail	O	O
sheet	O	O
,	O	O
where	O	O
I	O	O
am	O	O
keeping	O	O
a	O	O
log	O	O
of	O	O
what	O	O
is	O	O
approved	O	O
.	O	O

Currently	O	O
you	O	O
type	O	O
the	O	O
information	O	O
of	O	O
the	O	O
offer	O	O
into	O	O
the	O	O
second	O	O
sheet	O	O
(	O	O
offer	O	O
details	O	O
)	O	O
,	O	O
and	O	O
then	O	O
the	O	O
approver	O	O
can	O	O
view	O	O
a	O	O
drop	O	B-User_Interface_Element
down	O	I-User_Interface_Element
box	O	I-User_Interface_Element
to	O	O
see	O	O
what	O	O
is	O	O
open	O	O
and	O	O
needs	O	O
to	O	O
be	O	O
approved	O	O
.	O	O

I	O	O
have	O	O
everything	O	O
working	O	O
,	O	O
except	O	O
,	O	O
I	O	O
need	O	O
the	O	O
approver	O	O
to	O	O
click	O	O
a	O	O
button	O	B-User_Interface_Element
and	O	O
it	O	O
will	O	O
send	O	O
the	O	O
username	O	O
of	O	O
the	O	O
approver	O	O
and	O	O
the	O	O
date	O	O
to	O	O
the	O	O
corresponding	O	O
cell	O	O
on	O	O
the	O	O
Offer	O	O
Detail	O	O
tab	O	B-User_Interface_Element
.	O	O

I	O	O
have	O	O
created	O	O
a	O	O
key	O	O
,	O	O
in	O	O
H1	O	O
which	O	O
will	O	O
allow	O	O
the	O	O
code	O	O
to	O	O
find	O	O
the	O	O
correct	O	O
line	O	O
what	O	O
is	O	O
column	O	B-Data_Structure
B	O	B-Variable
on	O	O
the	O	O
offer	O	O
details	O	O
page	O	O
matches	O	O
what	O	O
is	O	O
in	O	O
the	O	O
Summary	O	O
Tab	O	O
in	O	O
H1	O	O
.	O	O

I	O	O
have	O	O
this	O	O
code	O	O
that	O	O
I	O	O
wrote	O	O
below	O	O
,	O	O
but	O	O
it	O	O
is	O	O
not	O	O
working	O	O
.	O	O

The	O	O
cells	O	B-User_Interface_Element
where	O	O
the	O	O
username	O	O
needs	O	O
to	O	O
go	O	O
into	O	O
column	O	B-Data_Structure
M	O	B-Variable
on	O	O
the	O	O
offer	O	O
detail	O	O
sheet	O	O
(	O	O
once	O	O
it	O	O
finds	O	O
the	O	O
right	O	O
row	O	B-User_Interface_Element
based	O	O
on	O	O
the	O	O
key	O	O
in	O	O
the	O	O
summary	O	O
)	O	O
.	O	O

It	O	O
has	O	O
to	O	O
be	O	O
hardcoded	O	O
,	O	O
so	O	O
I	O	O
can	O	O
keep	O	O
it	O	O
for	O	O
audit	O	O
purposes	O	O
.	O	O

If	O	O
this	O	O
does	O	O
n't	O	O
make	O	O
sense	O	O
let	O	O
me	O	O
know	O	O
and	O	O
I	O	O
will	O	O
try	O	O
to	O	O
clarify	O	O
.	O	O

Thank	O	O
you	O	O
!	O	O

You	O	O
can	O	O
do	O	O
this	O	O
if	O	O
you	O	O
need	O	O
colum	O	O
"	O	O
M	O	B-Variable
"	O	O
to	O	O
be	O	O
every	O	O
time	O	O
,	O	O
base	O	O
on	O	O
your	O	O
code	O	O
:	O	O

This	O	O
question	O	O
is	O	O
related	O	O
to	O	O
another	O	O
question	O	O
I	O	O
asked	O	O

Basically	O	O
,	O	O
I	O	O
have	O	O
2	O	O
horizontally	O	O
aligned	O	O
divs	O	B-HTML_XML_Tag
.	O	O

Both	O	O
sit	O	O
inside	O	O
a	O	O
div	O	B-HTML_XML_Tag
called	O	O
"	O	O
.Parent	O	B-Class
"	O	O
,	O	O
so	O	O
the	O	O
structure	O	O
is	O	O
like	O	O
this	O	O
:	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
the	O	O
Parent	O	O
div	O	B-HTML_XML_Tag
exists	O	O
inside	O	O
a	O	O
another	O	O
div	O	B-HTML_XML_Tag
called	O	O
#main	O	O
.	O	O

#main	O	O
has	O	O
a	O	O
white	O	O
background	O	B-User_Interface_Element
that	O	O
frames	O	O
all	O	O
of	O	O
my	O	O
content	O	O
.	O	O

Before	O	O
I	O	O
added	O	O
the	O	O
floats	O	O
to	O	O
the	O	O
divs	O	B-HTML_XML_Tag
inside	O	O
.Parent	O	B-Class
,	O	O
everything	O	O
was	O	O
fine	O	O
because	O	O
the	O	O
containing	O	O
Div	O	B-HTML_XML_Tag
pushed	O	O
the	O	O
white	O	O
background	O	B-User_Interface_Element
down	O	O
to	O	O
the	O	O
right	O	O
size	O	O
.	O	O

But	O	O
now	O	O
that	O	O
the	O	O
divs	O	B-HTML_XML_Tag
are	O	O
floating	O	O
,	O	O
they	O	O
do	O	O
n't	O	O
push	O	O
#main	O	B-HTML_XML_Tag
'	O	O
s	O	O
white	O	O
background	O	B-User_Interface_Element
down	O	O
.	O	O

Can	O	O
anyone	O	O
suggest	O	O
how	O	O
to	O	O
get	O	O
the	O	O
#main	O	B-HTML_XML_Tag
to	O	O
recognise	O	O
the	O	O
size	O	B-Variable
it	O	O
's	O	O
supposed	O	O
to	O	O
strech	O	O
down	O	O
to	O	O
?	O	O

Should	O	O
I	O	O
approach	O	O
this	O	O
differently	O	O
?	O	O

Thanks	O	O

Dave	O	B-User_Name

Actually	O	O
,	O	O
they	O	O
ARE	O	O
behaving	O	O
correctly	O	O
and	O	O
parent	O	O
divs	O	B-HTML_XML_Tag
are	O	O
never	O	O
to	O	O
expand	O	O
to	O	O
contain	O	O
floated	O	O
elements	O	O
.	O	O

As	O	O
shown	O	O
by	O	O
other	O	O
answers	O	O
,	O	O
you	O	O
can	O	O
Google	O	B-Website
for	O	O
"	O	O
clear	O	O
floats	O	O
"	O	O
for	O	O
more	O	O
explanations	O	O
and	O	O
examples	O	O
of	O	O
how	O	O
to	O	O
do	O	O
this	O	O
.	O	O

Give	O	O
your	O	O
#main	O	B-HTML_XML_Tag
overflow:hidden	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block
and	O	O
optionall	O	O
clear:both	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block

I	O	O
have	O	O
an	O	O
if	O	O
else	O	O
statement	O	O
that	O	O
change	O	O
language	O	O
Capabilitie	O	B-Class
EN	O	O
to	O	O
ENGLISH	O	O
.	O	O

The	O	O
thing	O	O
is	O	O
that	O	O
its	O	O
overwriting	O	O
the	O	O
other	O	O
capabilities	O	B-Class
.	O	O

Thanks	O	O
.	O	O

I	O	O
have	O	O
a	O	O
Centos	O	B-Operating_System
server	O	B-Device
and	O	O
I	O	O
install	O	O
iptables	O	B-Application
on	O	O
this	O	O
for	O	O
firewall	O	B-Application
.	O	O

I	O	O
want	O	O
to	O	O
connect	O	O
iptables	O	B-Application
to	O	O
monitoring	O	O
system	O	O
Like	O	O
(	O	O
Prtg	O	B-Application
,	O	O
Solarwinds	O	B-Application
,	O	O
Opmanger	O	B-Application
)	O	O

Is	O	O
this	O	O
possible	O	O
?	O	O

Yes	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
what	O	O
other	O	O
monitoring	O	O
systems	O	O
,	O	O
but	O	O
you	O	O
can	O	O
do	O	O
that	O	O
with	O	O
Solarwinds	O	B-Application
Server	O	I-Application
Application	O	I-Application
Monitor	O	I-Application
,	O	O
by	O	O
creating	O	O
custom	O	O
LinuxScript	O	B-Class
component	O	O
.	O	O

You	O	O
can	O	O
find	O	O
an	O	O
example	O	O
in	O	O
thwack	O	B-Website
forum	O	O

In	O	O
my	O	O
django	O	B-Library
project	O	O
i	O	O
make	O	O
an	O	O
ajax	O	B-Function
call	O	O
for	O	O
dynamically	O	O
display	O	O
and	O	O
populate	O	O
fields	O	O
.	O	O

First	O	O
of	O	O
all	O	O
,	O	O
in	O	O
my	O	O
template	O	O
i	O	O
create	O	O
the	O	O
element	O	O
:	O	O

Template	O	O
html	O	B-Language

then	O	O
in	O	O
my	O	O
js	O	B-Language
:	O	O

start.js	O	B-File_Name

urls.py	O	B-File_Name

and	O	O
finally	O	O
my	O	O
python	O	B-Language
function	O	O
called	O	O
from	O	O
urls.py	O	B-File_Name
:	O	O

All	O	O
done	O	O
,	O	O
my	O	O
hidden	O	O
div	O	B-HTML_XML_Tag
"	O	I-HTML_XML_Tag
div_val	O	I-HTML_XML_Tag
"	O	I-HTML_XML_Tag
in	O	O
template	O	O
was	O	O
show	O	O
,	O	O
but	O	O
now	O	O
i	O	O
ca	O	O
n't	O	O
understand	O	O
how	O	O
can	O	O
i	O	O
use	O	O
the	O	O
returned	O	O
data	O	O
in	O	O
my	O	O
template	O	O
,	O	O
for	O	O
,	O	O
for	O	O
example	O	O
,	O	O
populate	O	O
the	O	O
value	O	O
of	O	O
the	O	O
element	O	O
inside	O	O
the	O	O
div	O	B-HTML_XML_Tag
(	O	O
without	O	O
using	O	O
jquery	O	B-Library
inside	O	O
my	O	O
js	O	O
func	O	O
for	O	O
do	O	O
it	O	O
)	O	O
.	O	O

How	O	O
can	O	O
i	O	O
close	O	O
the	O	O
chain	O	O
Template	O	O
->	O	O
js	O	B-Language
->	O	O
urls	O	O
->	O	O
view	O	O
method	O	O
->	O	O
Template	O	O
?	O	O

Many	O	O
Thanks	O	O
in	O	O
advance	O	O

When	O	O
you	O	O
use	O	O
server	O	B-Application
side	O	O
rendering	O	O
,	O	O
you	O	O
cannot	O	O
close	O	O
the	O	O
"	O	O
chain	O	O
"	O	O
you	O	O
are	O	O
refering	O	O
to	O	O
as	O	O
easily	O	O
.	O	O

This	O	O
is	O	O
because	O	O
what	O	O
Django	O	B-Library
does	O	O
in	O	O
this	O	O
case	O	O
is	O	O
serve	O	O
all	O	O
the	O	O
HTML	O	B-Language
and	O	O
JS	O	B-Language
(	O	O
at	O	O
leas	O	O
the	O	O
JS	O	B-Language
inside	O	O
your	O	O
HTML	O	B-Language
view	O	O
)	O	O
in	O	O
a	O	O
single	O	O
initial	O	O
response	O	O
.	O	O

The	O	O
ajax	O	B-Function
requests	O	O
you	O	O
do	O	O
after	O	O
that	O	O
will	O	O
not	O	O
be	O	O
bound	O	O
to	O	O
the	O	O
variables	O	O
you	O	O
send	O	O
initially	O	O
in	O	O
your	O	O
response	O	O
because	O	O
this	O	O
variables	O	O
are	O	O
populated	O	O
when	O	O
the	O	O
render()	O	B-Function
function	O	O
is	O	O
called	O	O
.	O	O

After	O	O
that	O	O
moment	O	O
,	O	O
you	O	O
cannot	O	O
add	O	O
or	O	O
update	O	O
the	O	O
variables	O	O
that	O	O
were	O	O
sent	O	O
to	O	O
the	O	O
HTML	O	B-Language
template	O	O
.	O	O

The	O	O
only	O	O
way	O	O
you	O	O
can	O	O
manage	O	O
rendering	O	O
small	O	O
parts	O	O
of	O	O
HTML	O	B-Language
is	O	O
using	O	O
JQuery	O	B-Library
or	O	O
making	O	O
your	O	O
backend	O	O
a	O	O
REST	O	O
API	O	O
with	O	O
Django	O	B-Library
Rest	O	O
Framework	O	O
and	O	O
moving	O	O
to	O	O
a	O	O
more	O	O
complete	O	O
frontend	O	O
framework	O	O
like	O	O
Angular	O	B-Library
or	O	O
React	O	B-Library
.	O	O

The	O	O
are	O	O
many	O	O
discussions	O	O
over	O	O
server	O	B-Application
side	O	O
rendering	O	O
vs	O	O
client	O	B-Application
side	O	O
rendering	O	O
.	O	O

You	O	O
can	O	O
read	O	O
more	O	O
about	O	O
it	O	O
here	O	O
:	O	O

https://medium.com/@adamzerner/client-side-rendering-vs-server-side-rendering-a32d2cf3bfcc	O	O

Working	O	O
on	O	O
a	O	O
custom	O	O
control	O	O
that	O	O
fetches	O	O
employee	O	B-Class
from	O	O
WCF	O	B-Library
in	O	O
json	O	B-File_Type
.	O	O

Below	O	O
is	O	O
the	O	O
code	O	O

Now	O	O
this	O	O
service	O	O

return	O	O
Employees	O	B-Class
in	O	O
following	O	O
format	O	O
(	O	O
JSON	O	B-Data_Type
Array	O	B-Data_Structure
String	O	B-Data_Type
)	O	O

Now	O	O
,	O	O
the	O	O
call	O	O
is	O	O
being	O	O
made	O	O
successfully	O	O
,	O	O
below	O	O
is	O	O
the	O	O
screenshot	O	O
that	O	O
tells	O	O
pretty	O	O
much	O	O
about	O	O
the	O	O
problem	O	O
i	O	O
am	O	O
facing	O	O
.	O	O

The	O	O
dropdown	O	B-User_Interface_Element
is	O	O
not	O	O
showing	O	O
.	O	O

Now	O	O
I	O	O
suspect	O	O
it	O	O
is	O	O
because	O	O
the	O	O
result	O	O
is	O	O
in	O	O
JSON	O	B-File_Type
instead	O	O
of	O	O
a	O	O
javascript	O	B-Language
array	O	B-Data_Structure
,	O	O
now	O	O
if	O	O
that	O	O
is	O	O
a	O	O
problem	O	O
,	O	O
can	O	O
anyone	O	O
please	O	O
suggest	O	O
where	O	O
do	O	O
I	O	O
convert	O	O
the	O	O
string	O	B-Data_Type
in	O	O
to	O	O
array	O	B-Data_Structure
in	O	O
the	O	O
code	O	O
.	O	O

WCF	O	B-Library
Code	O	O

The	O	O
plugin	O	O
actually	O	O
expects	O	O
an	O	O
Array	O	B-Data_Structure
of	O	O
objects	O	O
with	O	O
attributes	O	O
id	O	O
and	O	O
name	O	O
while	O	O
I	O	O
was	O	O
trying	O	O
to	O	O
run	O	O
it	O	O
through	O	O
a	O	O
JSON	O	B-File_Type
string	O	B-Data_Type
.	O	O

So	O	O
I	O	O
modified	O	O
the	O	O

and	O	O
added	O	O
this	O	O
just	O	O
as	O	O
the	O	O
function	O	O
starts	O	O

I	O	O
started	O	O
a	O	O
session	O	O
for	O	O
keeping	O	O
track	O	O
of	O	O
logged	O	O
in	O	O
users	O	O
.	O	O

The	O	O
same	O	O
code	O	O
I	O	O
put	O	O
into	O	O
a	O	O
profile.html	O	B-File_Name
file	O	O
and	O	O
tried	O	O
to	O	O
redirect	O	O
to	O	O
this	O	O
page	O	O
if	O	O
a	O	O
log	O	O
in	O	O
attempt	O	O
is	O	O
successful	O	O
,	O	O
but	O	O
I	O	O
could	O	O
n't	O	O
fetch	O	O
any	O	O
information	O	O
from	O	O
$_SESSION	B-Code_Block	B-Code_Block
variables	O	O
into	O	O
that	O	O
file	O	O
,	O	O
but	O	O
when	O	O
I	O	O
changed	O	O
the	O	O
file	O	O
extension	O	O
to	O	O
profile.php	O	B-File_Name
it	O	O
worked	O	O
nicely	O	O
.	O	O

You	O	O
can	O	O
write	O	O
php	O	B-Language
code	O	O
only	O	O
in	O	O
php	O	B-File_Type
file	O	O
and	O	O
html	O	B-Language
in	O	O
html	O	B-File_Type
file	O	O
or	O	O
php	O	B-File_Type
file	O	O
.	O	O

PHP	O	B-Language
scripts	O	O
are	O	O
by	O	O
default	O	O
only	O	O
interpreted	O	O
in	O	O
.php	O	B-File_Type
files	O	O
(	O	O
unless	O	O
you	O	O
tell	O	O
the	O	O
PHP	O	B-Language
interpreter	O	O
to	O	O
do	O	O
otherwise	O	O
,	O	O
e.g	O	O
.	O	O
,	O	O
using	O	O
an	O	O
.htaccess	O	B-File_Type
file	O	O
)	O	O
.	O	O

So	O	O
,	O	O
you	O	O
ca	O	O
n't	O	O
use	O	O
$_SESSION	B-Code_Block	B-Code_Block
variables	O	O
in	O	O
an	O	O
.html	O	B-File_Type
file	O	O
.	O	O

I	O	O
've	O	O
got	O	O
a	O	O
few	O	O
questions	O	O
about	O	O
throwing	O	O
exceptions	O	B-Class
in	O	O
C++	O	B-Language
.	O	O

From	O	O
what	O	O
I	O	O
know	O	O
about	O	O
them	O	O
..	O	O
.	O	O

An	O	O
exception	O	B-Class
can	O	O
be	O	O
thrown	O	O
from	O	O
within	O	O
the	O	O
main()	O	B-Function
function	O	O
.	O	O

Any	O	O
block	O	O
of	O	O
code	O	O
that	O	O
can	O	O
throw	O	O
an	O	O
exception	O	O
in	O	O
the	O	O
main()	O	B-Function
function	O	O
should	O	O
be	O	O
surrounded	O	O
by	O	O
try	O	B-Code_Block
and	O	O
catch	O	B-Code_Block
statements	O	O
as	O	O
follows	O	O

In	O	O
the	O	O
example	O	O
above	O	O
,	O	O
why	O	O
is	O	O
the	O	O
argument	O	O
to	O	O
the	O	O
catch	O	O
a	O	O
const	O	B-Data_Type
char	O	I-Data_Type
*	O	I-Data_Type
.	O	O

Does	O	O
n't	O	O
C++	O	B-Language
allow	O	O
for	O	O
strings	O	B-Data_Type
?	O	O

Also	O	O
,	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
throw	O	O
an	O	O
exception	O	B-Class
that	O	O
is	O	O
n't	O	O
a	O	O
const	O	B-Data_Type
char	O	I-Data_Type
*	O	I-Data_Type
,	O	O
like	O	O
an	O	O
int	O	B-Data_Type
?	O	O

or	O	O
a	O	O
char	O	B-Data_Type
?	O	O

Does	O	O
throwing	O	O
an	O	O
exception	O	B-Class
in	O	O
foo	O	B-Function
,	O	O
terminate	O	O
the	O	O
foo	O	B-Function
function	O	O
?	O	O

Are	O	O
there	O	O
cases	O	O
where	O	O
you	O	O
could	O	O
put	O	O
the	O	O
try	O	O
and	O	O
catch	O	O
statements	O	O
in	O	O
the	O	O
same	O	O
function	O	O
as	O	O
the	O	O
throw	O	O
?	O	O

Sorry	O	O
if	O	O
these	O	O
are	O	O
basic	O	O
questions	O	O
.	O	O

Thanks	O	O
SO	O	B-Website

Because	O	O
you	O	O
threw	O	O
string	O	B-Data_Type
literal	O	O
which	O	O
decays	O	O
to	O	O
const	B-Code_Block	B-Data_Type
char*	I-Code_Block	I-Data_Type
.	O	O

In	O	O
short	O	O
,	O	O
you	O	O
catch	O	O
what	O	O
you	O	O
throw	O	O
.	O	O

It	O	O
does	O	O
,	O	O
but	O	O
to	O	O
catch	O	O
string	O	B-Data_Type
,	O	O
you	O	O
need	O	O
to	O	O
throw	O	O
string	O	B-Data_Type
in	O	O
first	O	O
place	O	O
.	O	O

You	O	O
can	O	O
throw	O	O
literally	O	O
anything	O	O
.	O	O

It	O	O
is	O	O
a	O	O
good	O	O
idea	O	O
to	O	O
throw	O	O
special	O	O
exception	O	B-Class
classes	O	O
,	O	O
like	O	O
std::exception	B-Code_Block	B-Class
and	O	O
derived	O	O
from	O	O
it	O	O
.	O	O

Yes	O	O
,	O	O
it	O	O
does	O	O
.	O	O

If	O	O
you	O	O
want	O	O
,	O	O
you	O	O
can	O	O
do	O	O
that	O	O
.	O	O

There	O	O
are	O	O
not	O	O
much	O	O
cases	O	O
where	O	O
doing	O	O
it	O	O
is	O	O
a	O	O
good	O	O
idea	O	O
.	O	O

It	O	O
looks	O	O
like	O	O
you	O	O
need	O	O
to	O	O
get	O	O
a	O	O
good	O	O
book	O	O
and	O	O
read	O	O
chapter	O	O
about	O	O
exceptions	O	B-Class
.	O	O

In	O	O
the	O	O
meantime	O	O
this	O	O
super-FAQ	O	O
entry	O	O
might	O	O
help	O	O
you/	O	O

You	O	O
can	O	O
throw	O	O
an	O	O
object	O	O
of	O	O
any	O	O
type	O	O
.	O	O

EDIT	O	O
:	O	O
(	O	O
Hopefully	O	O
I	O	O
got	O	O
this	O	O
right	O	O
now	O	O
)	O	O

What	O	O
you	O	O
have	O	O
done	O	O
is	O	O
throw	O	O
a	O	O
C-string	O	B-Data_Structure
,	O	O
which	O	O
is	O	O
of	O	O
type	O	O
const	B-Code_Block	B-Data_Type
char[13]	I-Code_Block	I-Data_Type
in	O	O
this	O	O
case	O	O
.	O	O

C-Arrays	O	B-Data_Structure
will	O	O
decay	O	O
to	O	O
pointers	O	O
to	O	O
their	O	O
first	O	O
element	O	O
,	O	O
in	O	O
this	O	O
case	O	O
a	O	O
pointer	O	O
of	O	O
type	O	O
const	B-Code_Block	B-Data_Type
char*	I-Code_Block	I-Data_Type
.	O	O

Typically	O	O
what	O	O
you	O	O
want	O	O
to	O	O
do	O	O
is	O	O
throw	O	O
a	O	O
predefined	O	O
exception	O	B-Class
object	O	O
.	O	O

They	O	O
can	O	O
be	O	O
found	O	O
in	O	O
header	O	O
<stdexcept>	B-Code_Block	B-Class
and	O	O
are	O	O
derived	O	O
from	O	O
a	O	O
base	O	O
class	O	O
std::exception	B-Code_Block	B-Class
.	O	O

The	O	O
derived	O	O
exception	O	B-Class
classes	O	O
are	O	O
for	O	O
instance	O	O
std::logic_error	B-Code_Block	B-Class
,	O	O
std::range_error	B-Code_Block	B-Class
,	O	O
std::bad_alloc	B-Code_Block	B-Class
etc	O	O
.	O	O

Their	O	O
constructors	O	O
take	O	O
a	O	O
string	O	B-Data_Type
as	O	O
argument	O	O
,	O	O
so	O	O
you	O	O
can	O	O
for	O	O
instance	O	O

This	O	O
message	O	O
can	O	O
be	O	O
accessed	O	O
in	O	O
a	O	O
catch	O	O
statement	O	O
like	O	O
this	O	O
:	O	O

If	O	O
an	O	O
exception	O	B-Class
is	O	O
caught	O	O
,	O	O
so-called	O	O
stack	O	B-Data_Structure
unwinding	O	O
takes	O	O
place	O	O
.	O	O

You	O	O
can	O	O
then	O	O
deal	O	O
with	O	O
the	O	O
error	O	O
locally	O	O
,	O	O
or	O	O
rethrow	O	O
the	O	O
exception	O	B-Class
.	O	O

Only	O	O
when	O	O
an	O	O
exception	O	B-Class
is	O	O
thrown	O	O
and	O	O
never	O	O
caught	O	O
,	O	O
std::terminate()	O	B-Function
is	O	O
called	O	O
an	O	O
the	O	O
program	O	O
aborted	O	O
.	O	O

You	O	O
can	O	O
put	O	O
try/catch	O	O
statements	O	O
anywhere	O	O
.	O	O

However	O	O
,	O	O
remember	O	O
what	O	O
the	O	O
term	O	O
"	O	O
exception	O	B-Class
"	O	O
actually	O	O
means	O	O
.	O	O

Cases	O	O
that	O	O
can	O	O
easily	O	O
dealt	O	O
with	O	O
using	O	O
a	O	O
simple	O	O
conditional	O	O
expression	O	O
if	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
n	I-Code_Block	I-Code_Block
<	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
break	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block
or	O	O
something	O	O
like	O	O
that	O	O
,	O	O
do	O	O
n't	O	O
need	O	O
the	O	O
exception	O	B-Class
treatment	O	O
.	O	O

Especially	O	O
if	O	O
you	O	O
can	O	O
realistically	O	O
expect	O	O
this	O	O
kind	O	O
of	O	O
unwanted	O	O
condition	O	O
to	O	O
be	O	O
true	O	O
often	O	O
.	O	O

Then	O	O
it	O	O
is	O	O
not	O	O
something	O	O
"	O	O
exceptional	O	O
"	O	O
.	O	O

If	O	O
you	O	O
decide	O	O
to	O	O
deal	O	O
with	O	O
an	O	O
error	O	O
using	O	O
exceptions	O	B-Class
and	O	O
they	O	O
can	O	O
not	O	O
be	O	O
treated	O	O
locally	O	O
,	O	O
you	O	O
may	O	O
put	O	O
try/catch	O	O
clauses	O	O
around	O	O
the	O	O
beginning	O	O
and	O	O
end	O	O
of	O	O
main()	O	B-Function
.	O	O

Since	O	O
you	O	O
can	O	O
put	O	O
several	O	O
catch	O	O
statements	O	O
directly	O	O
after	O	O
a	O	O
try	O	O
statement	O	O
,	O	O
you	O	O
can	O	O
then	O	O
begin	O	O
to	O	O
deal	O	O
with	O	O
more	O	O
specific	O	O
errors	O	O
,	O	O
or	O	O
simply	O	O
catch	O	O
anything	O	O
via	O	O
catch(...)	B-Code_Block	B-Code_Block
{	I-Code_Block	I-Code_Block
//..	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
.	O	O

This	O	O
is	O	O
all	O	O
described	O	O
in	O	O
great	O	O
detail	O	O
(	O	O
including	O	O
pointers	O	B-Data_Type
on	O	O
when	O	O
and	O	O
when	O	O
not	O	O
to	O	O
use	O	O
it	O	O
,	O	O
in	O	O
the	O	O
C++	O	B-Language
FAQ	O	O
.	O	O

EDIT	O	O
:	O	O
Here	O	O
's	O	O
an	O	O
example	O	O
that	O	O
makes	O	O
use	O	O
of	O	O
try/catch	O	O
statements	O	O
.	O	O

However	O	O
,	O	O
not	O	O
an	O	O
exception	O	B-Class
object	O	O
is	O	O
caught	O	O
,	O	O
but	O	O
an	O	O
int	O	B-Data_Type
(	O	O
errno	O	B-Variable
)	O	O
.	O	O

Just	O	O
to	O	O
show	O	O
,	O	O
that	O	O
you	O	O
can	O	O
really	O	O
throw/catch	O	O
anything	O	O
you	O	O
like	O	O
.	O	O

Let	O	O
process_several_files()	B-Code_Block	B-Function
be	O	O
a	O	O
function	O	O
somewhere	O	O
nested	O	O
in	O	O
your	O	O
code	O	O
:	O	O

if	O	O
want	O	O
to	O	O
allocate	O	O
non-cacheable	O	O
physical	O	O
memory	O	O
(	O	O
DRAM	O	B-Device
)	O	O
for	O	O
usage	O	O
in	O	O
the	O	O
driver	O	B-Application
,	O	O
(	O	O
ie	O	O
.	O	O
do	O	O
n't	O	O
want	O	O
the	O	O
data	O	O
being	O	O
cached	O	O
into	O	O
the	O	O
CPU	O	B-Device
's	O	O
data	O	O
cache	O	O
when	O	O
the	O	O
data	O	O
are	O	O
accessed	O	O
)	O	O
how	O	O
could	O	O
I	O	O
do	O	O
this	O	O
?	O	O

there	O	O
are	O	O
functions	O	O
like	O	O
kmalloc()	O	B-Function
,	O	O
get_free_pages	O	B-Function
,	O	O
vmalloc	O	B-Function
,	O	O
etc	O	O
,	O	O
but	O	O
seems	O	O
like	O	O
that	O	O
I	O	O
ca	O	O
n't	O	O
specify	O	O
if	O	O
the	O	O
data	O	O
can	O	O
be	O	O
cached	O	O
or	O	O
not	O	O
using	O	O
these	O	O
functions	O	O
?	O	O

any	O	O
suggestion	O	O
on	O	O
how	O	O
to	O	O
do	O	O
it	O	O
?	O	O

thanks	O	O
!	O	O

In	O	O
short	O	O
there	O	O
is	O	O
no	O	O
easy	O	O
way	O	O
to	O	O
do	O	O
this	O	O
,	O	O
it	O	O
is	O	O
very	O	O
platform	O	O
dependent	O	O
.	O	O

If	O	O
you	O	O
want	O	O
a	O	O
go	O	O
at	O	O
it	O	O
read	O	O
drivers/char/mem.c	O	B-File_Name
and	O	O
Chapter	O	O
15	O	O
of	O	O
the	O	O
Linux	O	B-Operating_System
Device	O	O
Drivers	O	O
3rd	O	O
Edition	O	O
book	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
add	O	O
pie	O	B-User_Interface_Element
charts	O	I-User_Interface_Element
using	O	O
chart.js	O	B-File_Name
.	O	O

But	O	O
instead	O	O
of	O	O
adding	O	O
data	O	O
in	O	O
js	O	B-File_Type
file	O	O
I	O	O
need	O	O
to	O	O
generate	O	O
charts	O	B-User_Interface_Element
using	O	O
HTML	O	B-Language
data	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
HTML	O	B-Language
:	O	O

I	O	O
need	O	O
every	O	O
chart	O	B-User_Interface_Element
retrieve	O	O
it	O	O
's	O	O
sibling	O	O
chart	O	B-User_Interface_Element
data	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
js	O	B-Language
:	O	O

Ok	O	O
anyway	O	O
I	O	O
solve	O	O
it	O	O
by	O	O
myself	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
answer	O	O
for	O	O
other	O	O
if	O	O
have	O	O
the	O	O
same	O	O
problem	O	O
.	O	O

Sorry	O	O
if	O	O
there	O	O
's	O	O
bad	O	O
practices	O	O
in	O	O
my	O	O
js	O	B-Language
.	O	O

I	O	O
'm	O	O
not	O	O
a	O	O
pro	O	O
.	O	O

To	O	O
create	O	O
new	O	O
graphs	O	B-Data_Structure
to	O	O
dynamics	O	O
elements	O	O
inserted	O	O
you	O	O
can	O	O
create	O	O
a	O	O
DOM	O	B-Library
Observer	O	B-Class
.	O	O

I	O	O
create	O	O
a	O	O
fiddle	O	B-Application
with	O	O
a	O	O
example	O	O
in	O	O

I	O	O
see	O	O
a	O	O
warning	O	O
like	O	O
this	O	O
in	O	O
my	O	O
logs	O	O
:	O	O

This	O	O
message	O	O
does	O	O
not	O	O
help	O	O
very	O	O
much	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
see	O	O
the	O	O
stacktrace	O	O
where	O	O
this	O	O
happens	O	O
.	O	O

Please	O	O
do	O	O
n't	O	O
look	O	O
into	O	O
the	O	O
content	O	O
of	O	O
this	O	O
warning	O	O
.	O	O

This	O	O
question	O	O
is	O	O
not	O	O
about	O	O
Beautiful	O	B-Library
Soup	O	I-Library
:-)	O	O

An	O	O
easy	O	O
solution	O	O
would	O	O
be	O	O
to	O	O
modify	O	O
the	O	O
third	O	O
party	O	O
code	O	O
(	O	O
bs4/__init__.py	B-Code_Block	B-File_Name
at	O	O
line	O	O
219	O	O
)	O	O
and	O	O
add	O	O
something	O	O
like	O	O
this	O	O
:	O	O

But	O	O
I	O	O
would	O	O
like	O	O
to	O	O
avoid	O	O
this	O	O
.	O	O

Reasons	O	O
:	O	O

This	O	O
is	O	O
a	O	O
warning	O	O
from	O	O
a	O	O
production	O	O
system	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
change	O	O
the	O	O
source	O	O
.	O	O

The	O	O
next	O	O
time	O	O
a	O	O
warning	O	O
like	O	O
this	O	O
occurs	O	O
,	O	O
I	O	O
would	O	O
like	O	O
to	O	O
see	O	O
the	O	O
stacktrace	O	O
immediately	O	O

Is	O	O
there	O	O
a	O	O
flag	O	O
or	O	O
setting	O	O
for	O	O
python	O	B-Language
which	O	O
I	O	O
can	O	O
change	O	O
,	O	O
to	O	O
see	O	O
not	O	O
only	O	O
one	O	O
line	O	O
,	O	O
but	O	O
the	O	O
while	O	O
stacktrace	O	O
?	O	O

I	O	O
need	O	O
the	O	O
upper	O	O
frames	O	O
to	O	O
debug	O	O
this	O	O
.	O	O

In	O	O
this	O	O
environment	O	O
Python	O	B-Language
2.7	O	B-Version
gets	O	O
used	O	O
.	O	O

If	O	O
I	O	O
want	O	O
to	O	O
find	O	O
the	O	O
root	O	O
of	O	O
a	O	O
warning	O	O
I	O	O
generally	O	O
just	O	O
promote	O	O
Warnings	B-Code_Block	B-Class
to	O	O
Exceptions	B-Code_Block	B-Class
.	O	O

In	O	O
your	O	O
case	O	O
you	O	O
could	O	O
simply	O	O
use	O	O
warnings.simplefilter	B-Code_Block	B-Function
or	O	O
warnings.filterwarnings	B-Code_Block	B-Function
.	O	O

For	O	O
example	O	O
:	O	O

which	O	O
gives	O	O
a	O	O
complete	O	O
traceback	O	O
:	O	O

And	O	O
if	O	O
you	O	O
want	O	O
to	O	O
debug	O	O
this	O	O
you	O	O
could	O	O
easily	O	O
hook	O	O
Pythons	O	B-Language
pdbs	B-Code_Block	B-Application
on	O	O
the	O	O
last	O	O
encountered	O	O
exception	O	B-Class
:	O	O

resulting	O	O
in	O	O
:	O	O

This	O	O
starts	O	O
a	O	O
post-mortem	O	O
analysis	O	O
of	O	O
the	O	O
last	O	O
encountered	O	O
exception	O	B-Class
.	O	O

Which	O	O
should	O	O
enable	O	O
you	O	O
to	O	O
dig	O	O
through	O	O
the	O	O
frames	O	O
and	O	O
inspect	O	O
the	O	O
variables	O	O
,	O	O
etc	O	O
.	O	O

You	O	O
also	O	O
asked	O	O
about	O	O
a	O	O
flag	O	O
,	O	O
and	O	O
indeed	O	O
there	O	O
is	O	O
a	O	O
flag	O	O
that	O	O
enables	O	O
"	O	O
warning	O	O
handling	O	O
"	O	O
,	O	O
the	O	O
-W	B-Code_Block	B-Code_Block
flag	O	O
.	O	O

It	O	O
's	O	O
very	O	O
much	O	O
like	O	O
the	O	O
warnings.filterwarnings	B-Code_Block	B-Function
function	O	O
.	O	O

For	O	O
convenience	O	O
I	O	O
just	O	O
copied	O	O
the	O	O
documentation	O	O
of	O	O
the	O	O
-W	B-Code_Block	B-Code_Block
flag	O	O
here	O	O
:	O	O

You	O	O
would	O	O
need	O	O
to	O	O
do	O	O
the	O	O
following	O	O
:	O	O

Create	O	O
if	O	O
USER_SITE	O	B-Variable
does	O	O
not	O	O
exists	O	O
:	O	O
issue	O	O
python	B-Code_Block	B-Code_Block
-c	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
import	I-Code_Block	I-Code_Block
site	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
site._script()"	I-Code_Block	I-Code_Block
,	O	O
see	O	O
USER_SITE	O	B-Variable
variable	O	O
contents	O	O

Place	O	O
a	O	O
file	O	O
usercustomize.py	B-Code_Block	B-File_Name
in	O	O
that	O	O
directory	O	O
with	O	O
the	O	O
following	O	O
code	O	O
:	O	O

Credits	O	O
to	O	O
this	O	O
answer	O	O
for	O	O
the	O	O
code	O	O
.	O	O

Run	O	O
the	O	O
code	O	O
as	O	O
usual	O	O
.	O	O

My	O	O
test	O	O
code	O	O
:	O	O

Before	O	O
the	O	O
procedure	O	O
:	O	O

After	O	O
:	O	O

Lets	O	O
take	O	O
two	O	O
datetimes	O	B-Class
2013-07-22	O	B-Value
and	O	O
2013-07-28	O	B-Value
.	O	O

The	O	O
datetimes	O	B-Class
between	O	O
these	O	O
two	O	O
datetimes	O	B-Class
are	O	O
2013-07-23	O	B-Value
,	O	O
2013-07-24	O	B-Value
,	O	O
2013-07-25	O	B-Value
,	O	O
2013-07-26	O	B-Value
,	O	O
2013-07-27	O	B-Value
,	O	O
2013-07-28	O	B-Value
.	O	O

I	O	O
am	O	O
able	O	O
to	O	O
get	O	O
this	O	O
much	O	O
to	O	O
work	O	O
using	O	O
php	O	B-Language
datetime	O	B-Class
.	O	O

What	O	O
I	O	O
Require	O	O

I	O	O
have	O	O
another	O	O
variable	O	O
$interval	B-Code_Block	B-Variable
which	O	O
can	O	O
take	O	O
values	O	O
1	O	B-Value
,	O	O
2	O	B-Value
,	O	O
3.	O	B-Value
.	O	O

If	O	O
$interval	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
then	O	O
$period	B-Code_Block	B-Variable
will	O	O
only	O	O
contain	O	O
2013-07-24	O	B-Value
,	O	O
2013-07-26	O	B-Value
,	O	O
2013-07-28	O	B-Value
.	O	O

Likewise	O	O
$interval	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
3	I-Code_Block	I-Code_Block
then	O	O
$period	B-Code_Block	B-Variable
will	O	O
only	O	O
contain	O	O
2013-07-25	O	B-Value
,	O	O
2013-07-28	O	B-Value
.	O	O

How	O	O
can	O	O
do	O	O
this	O	O
?	O	O

You	O	O
can	O	O
create	O	O
any	O	O
interval	O	B-Variable
with	O	O
that	O	O
variable	O	O
,	O	O
just	O	O
write	O	O
:	O	O

instead	O	O
and	O	O
you	O	O
are	O	O
set	O	O
.	O	O

I	O	O
'm	O	O
having	O	O
an	O	O
issue	O	O
with	O	O
ng-repeat	B-Code_Block	B-Function
where	O	O
is	O	O
throwing	O	O
an	O	O
injection	O	B-Error_Name
error	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
an	O	O
advance	O	O
angular	O	B-Library
developer	O	O
,	O	O
a	O	O
novice	O	O
maybe	O	O
.	O	O

But	O	O
I	O	O
know	O	O
this	O	O
was	O	O
working	O	O
at	O	O
one	O	O
point	O	O
and	O	O
then	O	O
poof	O	O
.	O	O

Gone	O	O
!	O	O

What	O	O
did	O	O
I	O	O
do	O	O
different	O	O
?	O	O

I	O	O
changed	O	O
my	O	O
localhost	O	O
path	O	O
to	O	O
angular	O	B-Library
to	O	O
a	O	O
CDN	O	B-Library
instead	O	O
.	O	O

I	O	O
tested	O	O
it	O	O
in	O	O
the	O	O
template	O	O
I	O	O
copied	O	O
this	O	O
work	O	O
from	O	O
originally	O	O
and	O	O
it	O	O
works	O	O
there	O	O
.	O	O

But	O	O
not	O	O
in	O	O
my	O	O
site	O	O
.	O	O

My	O	O
HTML	O	B-Language
:	O	O

My	O	O
Controller	O	O
:	O	O

Here	O	O
is	O	O
the	O	O
error	O	O
:	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O

Here	O	O
is	O	O
a	O	O
CODEPEN	O	B-Application
if	O	O
it	O	O
helps	O	O

Remove	O	O
'	O	O
uiGmapgoogle-maps	O	B-Function
'	O	O
of	O	O
the	O	O
module	O	O
dependecies	O	O

Links	O	O
with	O	O
data-binding	O	O
,	O	O
you	O	O
must	O	O
use	O	O
use	O	O
ng-href	O	B-Function
,	O	O
replacing	O	O
href	O	B-Function

I	O	O
recommend	O	O
write	O	O
your	O	O
angular	O	B-Library
app	O	O
following	O	O
the	O	O
preparation	O	O
guide	O	O
for	O	O
angular	O	B-Library
2	O	B-Version
.	O	O
and	O	O
Jhon	O	B-User_Name
Papa	O	I-User_Name
's	O	O
angular	O	B-Library
style	O	O
guide	O	O

You	O	O
are	O	O
not	O	O
loading	O	O
uiGmapgoogle-maps	B-Code_Block	B-Function
module	O	O
files	O	O
,	O	O

Removing	O	O
uiGmapgoogle-maps	O	B-Function
from	O	O
your	O	O
angular	O	B-Library
module	O	O
dependencies	O	O
will	O	O
solve	O	O
this	O	O
issue	O	O
.	O	O

In	O	O
addition	O	O
,	O	O
you	O	O
did	O	O
n't	O	O
attach	O	O
the	O	O
filter	O	B-File_Type
file	O	O
so	O	O
you	O	O
will	O	O
need	O	O
to	O	O
remove	O	O
the	O	O
filter	O	O
from	O	O
your	O	O
ngRepeat	O	B-Function
.	O	O

See	O	O
working	O	O
sample	O	O
at	O	O
:	O	O
http://codepen.io/anon/pen/BKLdyP?editors=1011	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
learn	O	O
how	O	O
the	O	O
graphic	O	O
objects	O	O
work	O	O
in	O	O
MATLAB	O	B-Language
.	O	O

I	O	O
tried	O	O
to	O	O
create	O	O
a	O	O
plot	O	O
without	O	O
using	O	O
the	O	O
plot	O	O
function	O	O
but	O	O
I	O	O
am	O	O
confused	O	O
why	O	O
it	O	O
is	O	O
not	O	O
working	O	O
.	O	O

AFIK	O	O
,	O	O
when	O	O
I	O	O
use	O	O
the	O	O
plot	O	O
function	O	O
it	O	O
creates	O	O
figure	O	O
,	O	O
axis	O	O
,	O	O
line	O	O
objects	O	O
and	O	O
then	O	O
sets	O	O
the	O	O
property	O	O
of	O	O
each	O	O
object	O	O
accordingly	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
do	O	O
so	O	O
but	O	O
all	O	O
I	O	O
'm	O	O
getting	O	O
is	O	O
a	O	O
white/blank	O	O
figure	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
plot	O	O
a	O	O
sine	O	O
wave	O	O
so	O	O
my	O	O
X	O	B-Variable
and	O	O
Y	O	B-Variable
data	O	O
are	O	O
:	O	O

This	O	O
is	O	O
my	O	O
main	O	O
code	O	O
:	O	O

The	O	O
weird	O	O
thing	O	O
is	O	O
that	O	O
when	O	O
I	O	O
type	O	O

I	O	O
'm	O	O
not	O	O
getting	O	O
anything	O	O
back	O	O
.	O	O

I	O	O
appreciate	O	O
tips	O	O
and	O	O
comments	O	O
.	O	O

You	O	O
need	O	O
to	O	O
create	O	O
the	O	O
line	B-Code_Block	O
before	O	O
you	O	O
can	O	O
find	O	O
it	O	O
and	O	O
change	O	O
a	O	O
property	O	O
.	O	O

e.g	O	O
.	O	O

Edit	O	O
:	O	O

Its	O	O
a	O	O
good	O	O
idea	O	O
to	O	O
create	O	O
and	O	O
store	O	O
each	O	O
of	O	O
your	O	O
objects	O	O
directly	O	O
(	O	O
rather	O	O
than	O	O
allowing	O	O
the	O	O
command	O	O
to	O	O
find	O	O
the	O	O
appropriate	O	O
figure	O	O
,	O	O
axes	O	O
etc	O	O
...	O	O
.	O	O
)	O	O

Here	O	O
is	O	O
my	O	O
scenario	O	O
..	O	O
.	O	O

I	O	O
am	O	O
using	O	O
pagination	O	O
with	O	O
DataTables	O	B-Library
.	O	O

My	O	O
first	O	O
column	O	O
is	O	O
css	O	B-Language
styled	O	O
based	O	O
upon	O	O
data	O	O
that	O	O
is	O	O
passed	O	O
in	O	O
.	O	O

So	O	O
,	O	O
I	O	O
display	O	O
the	O	O
correct	O	O
colored	O	O
icon	O	B-User_Interface_Element
for	O	O
the	O	O
property	O	O
of	O	O
the	O	O
item	O	O
in	O	O
the	O	O
table	O	O
.	O	O

Everything	O	O
on	O	O
page	O	B-User_Interface_Element
1	O	O
displays	O	O
correctly	O	O
.	O	O

Just	O	O
doing	O	O
the	O	O
basics	O	O
,	O	O
everything	O	O
on	O	O
further	O	O
pages	O	B-User_Interface_Element
does	O	O
not	O	O
get	O	O
displayed	O	O
because	O	O
it	O	O
is	O	O
removed	O	O
from	O	O
the	O	O
DOM	O	B-Library
at	O	O
that	O	O
time	O	O
.	O	O

So	O	O
,	O	O
I	O	O
did	O	O
$('#my_id')	B-Code_Block	B-Code_Block
.on	I-Code_Block	I-Code_Block
(	B-Code_Block	B-Code_Block
'page	I-Code_Block	I-Code_Block
.dt	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
function()	I-Code_Block	I-Code_Block
{	I-Code_Block	I-Code_Block
perPageFunctionCall()	I-Code_Block	I-Code_Block
;})	I-Code_Block	I-Code_Block
.dataTable(soonansoforth)	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
to	O	O
call	O	O
a	O	O
function	O	O
which	O	O
selects	O	O
the	O	O
correct	O	O
colored	O	O
flag	O	O
.	O	O

When	O	O
I	O	O
click	O	O
on	O	O
page	O	B-User_Interface_Element
2	O	O
,	O	O
nothing	O	O
gets	O	O
updated	O	O
.	O	O

I	O	O
click	O	O
on	O	O
page	O	B-User_Interface_Element
1	O	O
again	O	O
and	O	O
it	O	O
redisplays	O	O
the	O	O
1st	O	O
page	O	B-User_Interface_Element
correctly	O	O
.	O	O

I	O	O
click	O	O
on	O	O
page	O	B-User_Interface_Element
2	O	O
a	O	O
second	O	O
time	O	O
now	O	O
and	O	O
it	O	O
displays	O	O
everything	O	O
correctly	O	O
this	O	O
time	O	O
.	O	O

So	O	O
what	O	O
is	O	O
causing	O	O
the	O	O
display	O	O
not	O	O
to	O	O
update	O	O
with	O	O
my	O	O
new	O	O
css	O	B-Language
the	O	O
1st	O	O
trip	O	O
but	O	O
to	O	O
display	O	O
properly	O	O
on	O	O
subsequent	O	O
trips	O	O
?	O	O

Is	O	O
there	O	O
someway	O	O
to	O	O
refresh	O	O
the	O	O
element	O	O
or	O	O
the	O	O
data	O	O
table	O	O
after	O	O
I	O	O
am	O	O
done	O	O
with	O	O
my	O	O
css	O	B-Language
manipulation	O	O
?	O	O

for	O	O
refresh	O	O
resp	O	O
.	O	O

table	O	O
:	O	O

Well	O	O
it	O	O
is	O	O
one	O	O
of	O	O
two	O	O
things	O	O
:	O	O

Either	O	O
it	O	O
is	O	O

1	O	O
:	O	O
I	O	O
added	O	O

in	O	O
addition	O	O
to	O	O
my	O	O
page	O	O
function	O	O
call	O	O
.	O	O

But	O	O
more	O	O
likely	O	O
everyone	O	O
's	O	O
favorite	O	O
reason	O	O
:	O	O

2	O	O
:	O	O
Caching	O	O

In	O	O
either	O	O
case	O	O
,	O	O
it	O	O
does	O	O
work	O	O
flawlessly	O	O
now	O	O
as	O	O
expected	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
make	O	O
it	O	O
so	O	O
users	O	O
can	O	O
subscribe	O	O
to	O	O
a	O	O
forum	O	O
and	O	O
when	O	O
a	O	O
forum	O	O
is	O	O
updated	O	O
the	O	O
user	O	O
is	O	O
alerted	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
for	O	O
the	O	O
life	O	O
of	O	O
me	O	O
figure	O	O
out	O	O
how	O	O
to	O	O
set	O	O
up	O	O
the	O	O
database	O	O
to	O	O
do	O	O
it	O	O
.	O	O

I	O	O
am	O	O
pretty	O	O
sure	O	O
you	O	O
are	O	O
supposed	O	O
to	O	O
set	O	O
up	O	O
an	O	O
associative	O	O
table	O	B-Data_Structure
with	O	O
user_id	O	B-Variable
and	O	O
forum_id	O	B-Variable
but	O	O
I	O	O
am	O	O
not	O	O
to	O	O
sure	O	O
.	O	O

If	O	O
someone	O	O
could	O	O
give	O	O
me	O	O
some	O	O
pointers	O	O
on	O	O
how	O	O
to	O	O
start	O	O
this	O	O
or	O	O
plan	O	O
it	O	O
out	O	O
or	O	O
even	O	O
point	O	O
me	O	O
to	O	O
some	O	O
resources	O	O
that	O	O
would	O	O
be	O	O
great	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

create	O	O
a	O	O
join	O	O
table	O	B-Data_Structure
called	O	O
user_forum_subscriptions	O	B-Variable

Now	O	O
,	O	O
forum.users	B-Code_Block	B-Variable
are	O	O
the	O	O
ones	O	O
you	O	O
need	O	O
to	O	O
alert	O	O
when	O	O
the	O	O
forum	O	B-Class
changes	O	O

I	O	O
suppose	O	O
you	O	O
should	O	O
start	O	O
with	O	O
generating	O	O
a	O	O
new	O	O
model	O	O
called	O	O
Subscription	O	B-Class
.	O	O

Look	O	O
at	O	O
subscriptions	O	O
as	O	O
resources	O	O
.	O	O

User	O	B-Class
should	O	O
have_many	O	O
subscriptions	O	O
which	O	O
can	O	O
be	O	O
added/removed/edited	O	O
.	O	O

I	O	O
'd	O	O
probably	O	O
start	O	O
with	O	O
Michael	O	B-User_Name
Hartl	O	I-User_Name
's	O	O
tutorial	O	O
Chapter	O	O
11	O	O
,	O	O
where	O	O
he	O	O
shows	O	O
how	O	O
to	O	O
establish	O	O
the	O	O
'	O	O
following	O	O
'	O	O
relationship	O	O
for	O	O
his	O	O
twitter-like	O	B-Application
app	O	O
.	O	O

In	O	O
many	O	O
ways	O	O
it	O	O
is	O	O
similar	O	O
to	O	O
what	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
accomplish	O	O
.	O	O

Here	O	O
's	O	O
the	O	O
link	O	O
,	O	O
read	O	O
about	O	O
the	O	O
Relationship	O	O
model	O	O
,	O	O
hope	O	O
it	O	O
's	O	O
what	O	O
you	O	O
're	O	O
looking	O	O
for	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
where	O	O
clause	O	O
for	O	O
comparing	O	O
the	O	O
values	O	O
that	O	O
has	O	O
been	O	O
passed	O	O
from	O	O
route	O	O
which	O	O
is	O	O
id	O	B-Variable
.	O	O

For	O	O
this	O	O
,	O	O
I	O	O
have	O	O
used	O	O
following	O	O
code	O	O
:	O	O

I	O	O
need	O	O
to	O	O
compare	O	O
id	O	B-Variable
with	O	O
the	O	O
column	O	B-Data_Structure
name	O	O
in	O	O
controller	O	O
which	O	O
is	O	O
grade_id	O	B-Variable
.	O	O

For	O	O
this	O	O
Following	O	O
code	O	O
has	O	O
been	O	O
used	O	O
:	O	O

But	O	O
it	O	O
is	O	O
returning	O	O
empty	O	O
values	O	O
.	O	O

If	O	O
I	O	O
pass	O	O
direct	O	O
value	O	O
1	O	B-Value
instead	O	O
of	O	O
$	O	B-Variable
data	O	I-Variable
.	O	O

It	O	O
works	O	O
perfectly	O	O
fine	O	O
.	O	O

Can	O	O
anyone	O	O
provide	O	O
me	O	O
solution	O	O
?	O	O

use	O	O
whereLoose()	B-Code_Block	B-Function
instead	O	O
of	O	O
where()	B-Code_Block	B-Function

Source	O	O

Why	O	O
this	O	O
happening	O	O
?	O	O

$data	B-Code_Block	B-Variable
have	O	O
a	O	O
String	B-Code_Block	B-Data_Type
type	O	O
and	O	O
you	O	O
are	O	O
comparing	O	O
String	O	B-Data_Type
with	O	O
Int	B-Code_Block	B-Data_Type
type	O	O
even	O	O
if	O	O
you	O	O
pass	O	O
numeric	O	O
value	O	O
$data	B-Code_Block	B-Variable
will	O	O
be	O	O
String	O	B-Data_Type
type	O	O
.	O	O

I	O	O
have	O	O
an	O	O
html	O	B-Language
document	O	O
that	O	O
has	O	O
a	O	O
form	O	O
where	O	O
selecting	O	O
the	O	O
button	O	B-User_Interface_Element
activates	O	O
a	O	O
program	O	O
that	O	O
runs	O	O
a	O	O
robotic	O	B-Device
arm	O	I-Device
,	O	O
however	O	O
,	O	O
I	O	O
also	O	O
need	O	O
to	O	O
have	O	O
this	O	O
button	O	B-User_Interface_Element
link	O	O
to	O	O
another	O	O
page	O	O
.	O	O

Based	O	O
on	O	O
the	O	O
research	O	O
I	O	O
have	O	O
done	O	O
previously	O	O
,	O	O
I	O	O
think	O	O
an	O	O
OnClick	O	B-Function
event	O	O
would	O	O
do	O	O
exactly	O	O
what	O	O
I	O	O
need	O	O
it	O	O
to	O	O
.	O	O

My	O	O
problem	O	O
is	O	O
that	O	O
I	O	O
am	O	O
not	O	O
quite	O	O
sure	O	O
how	O	O
to	O	O
reference	O	O
both	O	O
the	O	O
robot	O	O
command	O	O
and	O	O
the	O	O
link	O	O
to	O	O
another	O	O
page	O	B-User_Interface_Element
.	O	O

The	O	O
..//../Karel/RIGHT1	O	B-Value
is	O	O
the	O	O
robot	O	O
program	O	O
the	O	O
document	O	O
is	O	O
trying	O	O
to	O	O
call	O	O
and	O	O
rightmanual.stm	O	B-File_Name
is	O	O
the	O	O
page	O	B-User_Interface_Element
I	O	O
need	O	O
to	O	O
also	O	O
link	O	O
to	O	O
when	O	O
the	O	O
image/button	O	B-User_Interface_Element
onegrey.jpg	O	B-File_Name
is	O	O
selected	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
be	O	O
as	O	O
specific	O	O
as	O	O
possible	O	O
,	O	O
thanks	O	O
for	O	O
any	O	O
help	O	O
that	O	O
is	O	O
sent	O	O
my	O	O
way	O	O
.	O	O

So	O	O
you	O	O
want	O	O
to	O	O
redirect	O	O
to	O	O
another	O	O
page	O	B-User_Interface_Element
on	O	O
form	O	O
submit	O	O
?	O	O

If	O	O
this	O	O
is	O	O
the	O	O
case	O	O
,	O	O
add	O	O
an	O	O
id	O	B-HTML_XML_Tag
tag	O	O
to	O	O
the	O	O
input	O	O
,	O	O
with	O	O
a	O	O
name	O	O
eg	O	O
.	O	O
"	O	B-Value
btnRedirect	O	I-Value
"	O	I-Value
.	O	O

You	O	O
can	O	O
then	O	O
use	O	O
jQuery	O	B-Library
for	O	O
an	O	O
onclick	O	O
event	O	O
.	O	O

More	O	O
on	O	O
jQuery	O	B-Library
here	O	O
.	O	O

Or	O	O
you	O	O
can	O	O
just	O	O
add	O	O
an	O	O
onClick	O	B-HTML_XML_Tag
event	O	O
to	O	O
your	O	O
submit	O	O
button	O	B-User_Interface_Element

I	O	O
have	O	O
a	O	O
problem	O	O
(	O	O
that	O	O
's	O	O
why	O	O
I	O	O
'm	O	O
here	O	O
:P	O	O
)	O	O
:	O	O

I	O	O
am	O	O
running	O	O
a	O	O
TimerTask	O	B-Class
and/or	O	O
a	O	O
Handler	O	B-Class
.	O	O

They	O	O
should	O	O
do	O	O
something	O	O
every	O	O
second	O	O
,	O	O
no	O	O
matter	O	O
if	O	O
the	O	O
screen	O	O
is	O	O
on	O	O
or	O	O
not	O	O
(	O	O
standby	O	O
)	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
,	O	O
after	O	O
some	O	O
time	O	O
(	O	O
2	O	O
to	O	O
10	O	O
hours	O	O
)	O	O
this	O	O
process	O	O
becomes	O	O
weird	O	O
timed	O	O
.	O	O

Sometimes	O	O
it	O	O
takes	O	O
10	O	O
seconds	O	O
,	O	O
sometimes	O	O
4	O	O
hours	O	O
etc	O	O
.	O	O

Now	O	O
,	O	O
I	O	O
've	O	O
read	O	O
that	O	O
you	O	O
can	O	O
use	O	O
a	O	O
Partial	O	B-Variable
Wake	O	I-Variable
Lock	O	I-Variable
to	O	O
solve	O	O
this	O	O
issue	O	O
.	O	O

Tried	O	O
it	O	O
,	O	O
but	O	O
it	O	O
has	O	O
not	O	O
solved	O	O
my	O	O
issue	O	O
(	O	O
Maybe	O	O
you	O	O
should	O	O
know	O	O
that	O	O
another	O	O
library	O	O
is	O	O
also	O	O
using	O	O
a	O	O
WakeLock	O	B-Class
which	O	O
gets	O	O
released	O	O
after	O	O
some	O	O
time	O	O
,	O	O
but	O	O
mine	O	O
never	O	O
gets	O	O
released	O	O
by	O	O
me	O	O
)	O	O
.	O	O

Maybe	O	O
you	O	O
should	O	O
also	O	O
know	O	O
that	O	O
the	O	O
task/runnable	O	O
runs	O	O
on	O	O
an	O	O
asynctask	O	B-Class
(	O	O
so	O	O
on	O	O
it	O	O
's	O	O
own	O	O
thread	O	O
)	O	O
.	O	O

The	O	O
wakelock	O	B-Class
is	O	O
created	O	O
from	O	O
outside	O	O
.	O	O

Edit	O	O
:	O	O

Maybe	O	O
it	O	O
's	O	O
good	O	O
to	O	O
know	O	O
that	O	O
it	O	O
's	O	O
a	O	O
device	O	O
owner	O	O
app	O	O
.	O	O

Also	O	O
,	O	O
I	O	O
know	O	O
of	O	O
the	O	O
battery	O	O
drain	O	O
problem	O	O
,	O	O
but	O	O
I	O	O
still	O	O
need	O	O
it	O	O
.	O	O

The	O	O
app	O	O
really	O	O
has	O	O
to	O	O
process	O	O
this	O	O
every	O	O
second	O	O
.	O	O

I	O	O
just	O	O
need	O	O
a	O	O
solution	O	O
for	O	O
it	O	O
,	O	O
any	O	O
,	O	O
no	O	O
matter	O	O
which	O	O
.	O	O

Edit	O	O
2	O	O
:	O	O

Here	O	O
's	O	O
my	O	O
current	O	O
WakeLock	O	B-Class
code	O	O
,	O	O
which	O	O
is	O	O
started	O	O
when	O	O
my	O	O
custom	O	O
application	O	O
reaches	O	O
onCreate	O	B-Function
.	O	O

As	O	O
I	O	O
said	O	O
,	O	O
it	O	O
is	O	O
never	O	O
released	O	O
.	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
perform	O	O
an	O	O
asynchronous	O	O
unit	O	O
test	O	O
:	O	O

I	O	O
can	O	O
see	O	O
in	O	O
the	O	O
console	O	B-Application
the	O	O
line	O	O
console.log(e)	B-Code_Block	B-Code_Block
executed	O	O
,	O	O
but	O	O
the	O	O
test	O	O
result	O	O
is	O	O
:	O	O

What	O	O
am	O	O
I	O	O
missing	O	O
?	O	O

Just	O	O
move	O	O
the	O	O
done()	B-Code_Block	B-Function
call	O	O
down	O	O
after	O	O
the	O	O
assert	O	B-Code_Block
statement	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
make	O	O
a	O	O
simple	O	O
operating	O	O
system	O	O
.	O	O

However	O	O
,	O	O
I	O	O
have	O	O
run	O	O
into	O	O
a	O	O
problem	O	O
trying	O	O
to	O	O
make	O	O
the	O	O
kernel	O	B-Application
system	O	O
calls	O	O
into	O	O
extern	B-Code_Block	B-Function
functions	O	O
.	O	O

This	O	O
is	O	O
the	O	O
error	O	O
message	O	O
:	O	O

Here	O	O
is	O	O
kernel.s	B-Code_Block	B-File_Name
:	O	O

Thanks	O	O
!	O	O

I	O	O
am	O	O
using	O	O
SignalR	O	B-Library
Self	O	B-Application
Hosted	O	I-Application
Service	O	I-Application
(	O	O
V	O	O
2.2.0	O	B-Version
)	O	O
as	O	O
server	O	B-Application
and	O	O
using	O	O
Silverlight	O	B-Library
as	O	O
SignalR	O	B-Library
Client	O	B-Application
.	O	O

I	O	O
am	O	O
able	O	O
to	O	O
connect	O	O
to	O	O
the	O	O
server	O	B-Application
and	O	O
able	O	O
to	O	O
exchange	O	O
the	O	O
messages	O	O
.	O	O

I	O	O
am	O	O
having	O	O
a	O	O
button	O	B-User_Interface_Element
to	O	O
stop	O	O
connection	O	O
to	O	O
the	O	O
SignalR	O	B-Library
service	O	O
.	O	O

What	O	O
I	O	O
want	O	O
is	O	O
,	O	O
When	O	O
I	O	O
click	O	O
this	O	O
button	O	B-User_Interface_Element
,	O	O
Connection	O	O
of	O	O
that	O	O
Client	O	B-Application
should	O	O
get	O	O
disconnected	O	O
from	O	O
SignalR	O	B-Library
Hub	O	O
.	O	O

I	O	O
am	O	O
able	O	O
to	O	O
get	O	O
disconnected	O	O
from	O	O
SignalR	O	B-Library
Hub	O	O
but	O	O
it	O	O
takes	O	O
so	O	O
much	O	O
time	O	O
to	O	O
respond	O	O
and	O	O
my	O	O
Client	O	B-Application
(	O	O
Silverlight	O	B-Library
Web	O	O
Application	O	O
)	O	O
gets	O	O
into	O	O
unresponsive	O	O
state	O	O
and	O	O
comes	O	O
back	O	O
after	O	O
around	O	O
28-30	O	O
secs	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
disconnect	O	O
client	O	B-Application
immediately	O	O
once	O	O
the	O	O
button	O	B-User_Interface_Element
is	O	O
clicked	O	O
?	O	O

This	O	O
is	O	O
because	O	O
of	O	O
a	O	O
deadlock	O	O
.	O	O

SignalR	O	B-Library
client	O	B-Application
blocks	O	O
the	O	O
thread	O	O
when	O	O
sending	O	O
the	O	O
Abort	O	O
request	O	O
.	O	O

However	O	O
Silverlight	O	B-Library
wants	O	O
to	O	O
send	O	O
the	O	O
request	O	O
on	O	O
the	O	O
UI	O	O
thread	O	O
.	O	O

The	O	O
default	O	O
timeout	O	O
for	O	O
stopping	O	O
the	O	O
connection	O	O
is	O	O
30	O	O
seconds	O	O
so	O	O
after	O	O
the	O	O
timeout	O	O
the	O	O
thread	O	O
is	O	O
unblocked	O	O
and	O	O
execution	O	O
continues	O	O
.	O	O

This	O	O
can	O	O
be	O	O
worked	O	O
around	O	O
by	O	O
invoking	O	O
stop	O	O
asynchronously	O	O
(	O	O
await	B-Code_Block	B-Code_Block
Task.Factory.StartNew	I-Code_Block	I-Code_Block
(()	I-Code_Block	I-Code_Block
=>	I-Code_Block	I-Code_Block
hubConnection.Stop());)	I-Code_Block	I-Code_Block
or	O	O
making	O	O
the	O	O
timeout	O	O
smaller	O	O
.	O	O

TL	O	O
;D	O	O
R	O	O
;	O	O

https://github.com/SignalR/SignalR/issues/3102	O	O

I	O	O
resolved	O	O
my	O	O
problem	O	O
by	O	O
calling	O	O
hub	O	O
disconnect	O	O
method	O	O
in	O	O
Silverlight	O	B-Library
Threading	O	O
task	O	O
.	O	O

So	O	O
now	O	O
I	O	O
do	O	O
not	O	O
worry	O	O
about	O	O
acknowledgement	O	O
of	O	O
hub	O	O
disconnect	O	O
from	O	O
SignalR	O	B-Library
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
scroll	O	O
inside	O	O
of	O	O
a	O	O
div	O	B-HTML_XML_Tag
on	O	O
a	O	O
webpage	O	O
,	O	O
but	O	O
I	O	O
am	O	O
seeing	O	O
:	O	O

This	O	O
only	O	O
occurs	O	O
when	O	O
I	O	O
use	O	O
PhantomJS	O	B-Application
headless	O	O
browser	O	B-Application
with	O	O
Selenium	O	B-Application
Webdriver	O	I-Application
,	O	O
but	O	O
if	O	O
I	O	O
use	O	O
Safari	O	B-Application
as	O	O
the	O	O
browser	O	B-Application
with	O	O
Selenium	O	B-Application
Webdriver	O	I-Application
,	O	O
then	O	O
the	O	O
div	O	B-HTML_XML_Tag
scrolls	O	O
fine	O	O
and	O	O
there	O	O
is	O	O
no	O	O
issue	O	O
.	O	O

My	O	O
code	O	O
(	O	O
using	O	O
PhantomJS	O	B-Application
)	O	O
:	O	O

The	O	O
line	O	O
with	O	O
the	O	O
issue	O	O
,	O	O

works	O	O
when	O	O
I	O	O
use	O	O
:	O	O

I	O	O
also	O	O
know	O	O
that	O	O
this	O	O
is	O	O
the	O	O
line	O	O
causing	O	O
the	O	O
issue	O	O
because	O	O
when	O	O
it	O	O
is	O	O
commented	O	O
out	O	O
,	O	O
the	O	O
script	O	O
works	O	O
,	O	O
but	O	O
I	O	O
need	O	O
the	O	O
scroll	O	O
to	O	O
execute	O	O
in	O	O
order	O	O
to	O	O
get	O	O
data	O	O
from	O	O
some	O	O
of	O	O
the	O	O
dynamically	O	O
loaded	O	O
divs	O	B-HTML_XML_Tag
.	O	O

Any	O	O
help	O	O
is	O	O
appreciated	O	O
.	O	O

Thank	O	O
you	O	O
!	O	O

I	O	O
have	O	O
a	O	O
dropUp	O	O
menu	O	B-User_Interface_Element
with	O	O
the	O	O
following	O	O
:	O	O

So	O	O
after	O	O
clicking	O	O
on	O	O
the	O	O
menu_tab	O	B-User_Interface_Element
,	O	O
the	O	O
menu	O	B-User_Interface_Element
drops	O	O
up	O	O
and	O	O
stays	O	O
up	O	O
until	O	O
clicked	O	O
again	O	O
,	O	O
but	O	O
I	O	O
'd	O	O
like	O	O
a	O	O
timeout	O	O
so	O	O
that	O	O
after	O	O
say	O	O
2	O	O
seconds	O	O
the	O	O
menu	O	B-User_Interface_Element
drops	O	O
down	O	O
again	O	O
.	O	O

I	O	O
've	O	O
obviously	O	O
got	O	O
the	O	O
coding	O	O
wrong	O	O
because	O	O
the	O	O
timeout	O	O
is	O	O
n't	O	O
working	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
!	O	O

TIA	O	B-User_Name
.	O	O

Your	O	O
use	O	O
of	O	O
clearTimeout()	O	B-Function
here	O	O
is	O	O
wrong	O	O
.	O	O

You	O	O
need	O	O
to	O	O
pass	O	O
it	O	O
a	O	O
reference	O	O
to	O	O
the	O	O
ID	O	B-Variable
returned	O	O
when	O	O
you	O	O
created	O	O
that	O	O
timer	O	O
with	O	O
setTimeout()	O	B-Function
.	O	O

Ca	O	O
n't	O	O
say	O	O
if	O	O
that	O	O
's	O	O
causing	O	O
your	O	O
problem	O	O
though	O	O
(	O	O
it	O	O
probably	O	O
isn't	O	O
)	O	O
.	O	O

If	O	O
you	O	O
get	O	O
anything	O	O
in	O	O
the	O	O
Javascript	O	B-Language
error	O	B-Application
console	O	I-Application
that	O	O
might	O	O
help	O	O
.	O	O

I	O	O
think	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
do	O	O
something	O	O
like	O	O
this	O	O
:	O	O

Try	O	O
it	O	O
out	O	O
:	O	O
http://jsfiddle.net/YFPey/	O	O

I	O	O
want	O	O
to	O	O
change	O	O
form	O	B-User_Interface_Element
labels	O	O
in	O	O
my	O	O
Solidus	O	B-Application
ecommerce	O	O
application	O	O
.	O	O

My	O	O
particular	O	O
use	O	O
case	O	O
is	O	O
handling	O	O
UK	O	O
addresses	O	O
where	O	O
the	O	O
name	O	O
"	O	B-Value
Zip	O	I-Value
Code	O	I-Value
"	O	I-Value
should	O	O
be	O	O
changed	O	O
to	O	O
"	O	B-Value
Post	O	I-Value
Code	O	I-Value
"	O	I-Value
-	O	O
but	O	O
there	O	O
could	O	O
be	O	O
other	O	O
localization	O	O
changes	O	O
as	O	O
well	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
this	O	O
?	O	O

Solidus	O	B-Application
,	O	O
which	O	O
was	O	O
forked	O	O
from	O	O
Spree	O	B-Application
,	O	O
provides	O	O
a	O	O
number	O	O
of	O	O
ways	O	O
to	O	O
customize	O	O
the	O	O
application	O	O
.	O	O

In	O	O
this	O	O
case	O	O
you	O	O
want	O	O
to	O	O
translate	O	O
a	O	O
string	O	B-Data_Type
depending	O	O
on	O	O
the	O	O
locale	O	O
.	O	O

Solidus	O	B-Application
provides	O	O
a	O	O
internationalization	O	O
gem	O	B-Code_Block
solidus_i18n	O	I-Code_Block
for	O	O
this	O	O
issue	O	O
.	O	O

Installation	O	O
Instructions	O	O
are	O	O
currently	O	O
(	O	O
but	O	O
check	O	O
with	O	O
gem	O	B-Code_Block
readme	O	I-Code_Block
)	O	O
:	O	O

You	O	O
can	O	O
also	O	O
set	O	O
the	O	O
default	O	O
locale	O	O
within	O	O
config/initializers/spree.rb	B-Code_Block	B-File_Name

Further	O	O
Reading	O	O

Spree	O	B-Application
Documentation	O	O
on	O	O
Internationalization	O	O
-	O	O
very	O	O
similar	O	O
documenation	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
test	O	O
a	O	O
simple	O	O
call	O	O
that	O	O
goes	O	O
to	O	O
my	O	O
dialogueService	O	B-Class
and	O	O
returns	O	O
an	O	O
observable	O	O
.	O	O

When	O	O
the	O	O
method	O	O
is	O	O
fired	O	O
a	O	O
local	O	O
property	O	O
on	O	O
my	O	O
component	O	O
is	O	O
set	O	O
.	O	O

My	O	O
code	O	O
is	O	O
below	O	O
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
,	O	O
I	O	O
have	O	O
tried	O	O
everything	O	O
I	O	O
cannot	O	O
get	O	O
it	O	O
to	O	O
work	O	O
at	O	O
all	O	O
.	O	O

Dialogue.component.ts	O	B-File_Name

Dialogue.component.spec.ts	O	B-File_Name

}	O	B-Code_Block
)	O	I-Code_Block
;	O	B-Code_Block

I	O	O
want	O	O
someone	O	O
to	O	O
be	O	O
able	O	O
to	O	O
input	O	O
text	O	O
in	O	O
a	O	O
textbox	B-Code_Block	B-User_Interface_Element
and	O	O
when	O	O
they	O	O
hit	O	O
submit	O	O
it	O	O
shows	O	O
what	O	O
they	O	O
entered	O	O
underneath	O	O
it	O	O
and	O	O
also	O	O
displays	O	O
it	O	O
on	O	O
a	O	O
second	O	O
php	B-Code_Block	B-Language
page	O	B-User_Interface_Element
.	O	O

This	O	O
is	O	O
the	O	O
code	O	O
for	O	O
the	O	O
page	O	B-User_Interface_Element
where	O	O
they	O	O
enter	O	O
their	O	O
message	O	O
.	O	O

And	O	O
this	O	O
is	O	O
the	O	O
code	O	O
for	O	O
the	O	O
second	O	O
page	O	B-User_Interface_Element
where	O	O
the	O	O
message	O	O
needs	O	O
to	O	O
show	O	O
.	O	O

If	O	O
anybody	O	O
knows	O	O
how	O	O
to	O	O
fix	O	O
and/or	O	O
improve	O	O
the	O	O
code	O	O
that	O	O
would	O	O
be	O	O
awesome	O	O
.	O	O

For	O	O
learning	O	O
jQuery	O	B-Library
UI	O	I-Library
dialog	O	B-Class
,	O	O
I	O	O
have	O	O
the	O	O
code	O	O
defined	O	O
below	O	O
.	O	O

I	O	O
need	O	O
to	O	O
do	O	O
following	O	O
three	O	O
tasks	O	O

1)	O	O
Use	O	O
my	O	O
image	O	B-User_Interface_Element
as	O	O
"	O	O
OK	O	O
"	O	O
button	O	B-User_Interface_Element
and	O	O
"	O	O
Cancel	O	O
"	O	O
button	O	B-User_Interface_Element

2)	O	O
Use	O	O
my	O	O
custom	O	O
image	O	B-User_Interface_Element
as	O	O
the	O	O
close	O	O
button	O	B-User_Interface_Element
on	O	O
right	O	O
top	O	O
end	O	O
of	O	O
dialog	O	B-User_Interface_Element

3)	O	O
Background	O	O
of	O	O
the	O	O
whole	O	O
dialog	O	B-User_Interface_Element
should	O	O
be	O	O
"	O	O
gray	O	O
"	O	O
(	O	O
including	O	O
title	O	O
,	O	O
and	O	O
place	O	O
for	O	O
OK	O	O
button	O	B-User_Interface_Element
.	O	O
)	O	O

The	O	O
important	O	O
point	O	O
is	O	O
the	O	O
style	O	O
should	O	O
be	O	O
applied	O	O
only	O	O
to	O	O
my	O	O
dialog	O	B-User_Interface_Element
.	O	O

All	O	O
other	O	O
widgets	O	B-User_Interface_Element
should	O	O
have	O	O
default	O	O
behavior	O	O
.	O	O

For	O	O
content	O	O
area	O	O
,	O	O
I	O	O
could	O	O
achieve	O	O
it	O	O
using	O	O
#myDiv	O	B-Code_Block
.ui-widget-content	O	I-Code_Block
.	O	O

Can	O	O
you	O	O
please	O	O
suggest	O	O
code	O	O
for	O	O
this	O	O
?	O	O

Note	O	O
:	O	O
Please	O	O
use	O	O
the	O	O
best	O	O
practices	O	O
,	O	O
if	O	O
possible	O	O
.	O	O

(	O	O
E.g	O	O
.	O	O
1	O	O
.	O	O
use	O	O
a	O	O
variable	O	O
$myDialog	O	B-Variable
2	O	O
.	O	O
use	O	O
autoOpen	O	B-Variable
:	O	O
false	O	O
)	O	O

Also	B-Code_Block	O
,	O	O
I	O	O
made	O	O
a	O	O
css	O	B-Language
class	O	O
to	O	O
override	O	O
the	O	O
widget	O	B-User_Interface_Element
functionality	O	O
only	O	O
for	O	O
my	O	O
dialog	O	B-User_Interface_Element

For	O	O
this	O	O
you	O	O
will	O	O
have	O	O
to	O	O
over-ride	O	O
default	O	O
css	O	B-Language
provided	O	O
by	O	O
jQuery	O	B-Library
UI	O	I-Library
(	O	O
jquery.ui.theme.css	O	B-File_Name
)	O	O
.	O	O

Image	O	B-User_Interface_Element
for	O	O
Ok	O	O
button	O	B-User_Interface_Element
:	O	O
You	O	O
need	O	O
to	O	O
change	O	O
.ui-state-default	B-Code_Block	B-HTML_XML_Tag
,	I-Code_Block	O
.ui-widget-content	I-Code_Block	B-HTML_XML_Tag
.ui-state-default	I-Code_Block	I-HTML_XML_Tag
,	I-Code_Block	O
.ui-widget-header	I-Code_Block	B-HTML_XML_Tag
.ui-state-default	I-Code_Block	I-HTML_XML_Tag
background	O	O
image	O	B-User_Interface_Element
.	O	O

Close	O	O
Button	O	B-User_Interface_Element
:	O	O
Change	O	O
.ui-widget-header	B-Code_Block	B-HTML_XML_Tag
.ui-icon	I-Code_Block	I-HTML_XML_Tag

Background	O	O
of	O	O
Dialogue	O	B-User_Interface_Element
:	O	O
Change	O	O
.ui-widget-content	B-Code_Block	B-HTML_XML_Tag
background	O	O
property	O	O
.	O	O

Hope	O	O
this	O	O
works	O	O
for	O	O
you	O	O
.	O	O

I	O	O
have	O	O
upvoted	O	O
the	O	O
above	O	O
answer	O	O
.	O	O

Still	O	O
dialogClass	O	B-Variable
:	O	O
'	O	B-Variable
myDialogCSS	O	I-Variable
'	O	B-Variable
was	O	O
the	O	O
key	O	O
I	O	O
was	O	O
looking	O	O
for	O	O
.	O	O

HTML	O	B-Language
and	O	O
jQuery	O	B-Library

MyStyleSheet.css	O	B-File_Name

First	O	O
:	O	O
this	O	O
is	O	O
my	O	O
first	O	O
time	O	O
using	O	O
GSON	O	B-Library
.	O	O

Trying	O	O
to	O	O
parse	O	O
some	O	O
JSON	O	B-File_Type
,	O	O
I	O	O
got	O	O
"	O	B-Output_Block
incompatible	O	I-Output_Block
types	O	I-Output_Block
"	O	I-Output_Block
.	O	O
.	O	O

PlayerData	B-Code_Block	B-Class
is	O	O
an	O	O
inner	O	O
class	O	O
:	O	O

What	O	O
causes	O	O
it	O	O
?	O	O

and	O	O
I	O	O
am	O	O
doing	O	O
at	O	O
(	O	O
AFAIK	O	O
)	O	O
just	O	O
like	O	O
Google	O	B-Website
in	O	O
it	O	O
's	O	O
GSON	O	B-Library
User	O	O
Guide	O	O
.	O	O

Edit	O	O
:	O	O

XCode	O	B-Application
was	O	O
doing	O	O
something	O	O
strange	O	O
,	O	O
when	O	O
I	O	O
tried	O	O
to	O	O
compile	O	O
this	O	O
with	O	O
Terminal	B-Code_Block	B-Application
everything	O	O
worked	O	O
,	O	O
except	O	O
for	O	O
my	O	O
request	O	O
to	O	O
the	O	O
server	O	B-Application
,	O	O
what	O	O
resulted	O	O
in	O	O
a	O	O
couple	O	O
of	O	O
NPE	O	B-Error_Name
's	O	O
,	O	O
because	O	O
response	B-Code_Block	B-Variable
remained	O	O
empty	O	B-Value
.	O	O

Thanks	O	O
to	O	O
maaartinus	O	B-User_Name
I	O	O
learned	O	O
that	O	O
there	O	O
should	O	O
n't	O	O
be	O	O
an	O	O
compiler	O	B-Application
error	O	O
so	O	O
I	O	O
tried	O	O
to	O	O
compile	O	O
it	O	O
without	O	O
XCode	O	B-Application
.	O	O

For	O	O
me	O	O
it	O	O
compiles	O	O
,	O	O
but	O	O
I	O	O
had	O	O
to	O	O
replace	O	O
GSON	B-Code_Block	O
by	O	O
Gson	B-Code_Block	B-Library
.	O	O

Either	O	O
you	O	O
were	O	O
sloppy	O	O
when	O	O
writing	O	O
this	O	O
question	O	O
or	O	O
you	O	O
're	O	O
using	O	O
some	O	O
"	O	O
GSON	O	B-Library
"	O	O
I	O	O
've	O	O
never	O	O
heard	O	O
about	O	O
.	O	O

Is	O	O
your	O	O
response	B-Code_Block	B-Variable
a	O	O
String	B-Code_Block	B-Data_Type
??	O	O
?	O	O

Once	O	O
you	O	O
get	O	O
it	O	O
running	O	O
,	O	O
you	O	O
'll	O	O
need	O	O
the	O	O
answer	O	O
by	O	O
Vrushank	O	B-User_Name
Desai	O	I-User_Name
.	O	O

Try	O	O
making	O	O
your	O	O
inner	O	O
class	O	O
static	B-Code_Block	B-Data_Type
or	O	O
you	O	O
'll	O	O
need	O	O
a	O	O
custom	O	O
InstanceCreator	B-Code_Block	B-Class
for	O	O
it	O	O
as	O	O
stated	O	O
in	O	O
the	O	O
Gson	O	B-Library
User	O	O
Guide	O	O

I	O	O
have	O	O
a	O	O
column	O	B-Data_Structure
of	O	O
characters	O	B-Data_Type
in	O	O
a	O	O
data.frame	O	B-Data_Structure
which	O	O
I	O	O
want	O	O
to	O	O
be	O	O
recognized	O	O
as	O	O
dates	O	O
:	O	O

For	O	O
example	O	O
I	O	O
tried	O	O
:	O	O

But	O	O
this	O	O
returns	O	O
:	O	O

"	O	B-Value
 ----	O	I-Value
-	O	I-Value
"	O	I-Value
"	O	I-Value
 ----	O	I-Value
-	O	I-Value
"	O	I-Value
"	O	I-Value
 ----	O	I-Value
-	O	I-Value
"	O	I-Value
"	O	I-Value
 ----	O	I-Value
-	O	I-Value
"	O	I-Value

while	O	O
I	O	O
want	O	O

"	O	B-Value
2013-05-30	O	I-Value
"	O	I-Value
,	O	O
"	O	B-Value
2013-05-29	O	I-Value
"	O	I-Value
,	O	O
"	O	B-Value
2013-05-28	O	I-Value
"	O	I-Value
,	O	O
"	O	B-Value
2013-05-27	O	I-Value
"	O	I-Value

I	O	O
would	O	O
be	O	O
grateful	O	O
for	O	O
your	O	O
help	O	O
.	O	O

Would	O	O
n't	O	O
it	O	O
be	O	O
easier	O	O
to	O	O
simply	O	O
coerce	O	O
them	O	O
to	O	O
dates	O	O
?	O	O

The	O	O
reason	O	O
your	O	O
gsub	B-Code_Block	B-Function
does	O	O
n't	O	O
work	O	O
is	O	O
because	O	O
.	B-Code_Block	B-Value
has	O	O
a	O	O
special	O	O
meaning	O	O
in	O	O
regex	O	O
.	O	O

You	O	O
can	O	O
have	O	O
it	O	O
interpreted	O	O
literally	O	O
by	O	O
specifying	O	O
fixed	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
TRUE	I-Code_Block	I-Code_Block
.	O	O

in	O	O
your	O	O
gsub	O	B-Function
call	O	O
,	O	O
"	O	B-Value
.	O	I-Value
"	O	I-Value
is	O	O
your	O	O
pattern	O	O
.	O	O

The	O	O
"	O	B-Value
.	O	I-Value
"	O	I-Value
symbol	O	O
in	O	O
a	O	O
pattern	O	O
means	O	O
"	O	O
any	O	O
character	O	O
"	O	O
,	O	O
so	O	O
you	O	O
're	O	O
talling	O	O
gsub	O	B-Function
to	O	O
replace	O	O
every	O	O
character	O	O
with	O	O
a	O	O
dash	O	B-Value
.	O	O

The	O	O
correct	O	O
gsub	B-Code_Block	B-Function
call	O	O
requires	O	O
escaping	O	O
the	O	O
period	O	B-Value
so	O	O
R	O	B-Language
knows	O	O
this	O	O
is	O	O
a	O	O
literal	O	O
period	O	B-Value
:	O	O

This	O	O
syntax	O	O
will	O	O
have	O	O
gsub	O	B-Function
replace	O	O
all	O	O
periods	O	B-Value
with	O	O
dashes	O	B-Value
.	O	O

But	O	O
really	O	O
,	O	O
this	O	O
is	O	O
n't	O	O
what	O	O
you	O	O
want	O	O
,	O	O
you	O	O
want	O	O
dates	O	O
.	O	O

You	O	O
need	O	O
to	O	O
use	O	O
as.Date	B-Code_Block	B-Function
like	O	O
so	O	O
:	O	O

Your	O	O
intended	O	O
solution	O	O
would	O	O
only	O	O
have	O	O
converted	O	O
your	O	O
strings	O	B-Data_Type
to	O	O
a	O	O
different	O	O
string	O	B-Data_Type
format	O	O
.	O	O

Using	O	O
as.Date	O	B-Function
tells	O	O
R	O	B-Language
to	O	O
treat	O	O
the	O	O
values	O	O
as	O	O
dates	O	O
and	O	O
not	O	O
strings	O	B-Data_Type
.	O	O

will	O	O
produce	O	O
an	O	O
error	O	O
(	O	O
because	O	O
R	O	B-Language
does	O	O
n't	O	O
understand	O	O
what	O	O
you	O	O
want	O	O
when	O	O
you	O	O
ask	O	O
it	O	O
to	O	O
plot	O	O
nothing	O	O
but	O	O
strings	O	B-Data_Type
)	O	O
,	O	O
whereas	O	O
:	O	O

Produces	O	O
a	O	O
plot	O	O
of	O	O
index	O	O
vs	O	O
.	O	O
day	O	O
of	O	O
the	O	O
week	O	O
(	O	O
since	O	O
R	O	B-Language
recognizes	O	O
that	O	O
you	O	O
have	O	O
timeseries	O	O
data	O	O
)	O	O
.	O	O

Hello	O	O
the	O	O
GWT+Hibernate+Gilead	O	B-Application
is	O	O
not	O	O
working	O	O
i	O	O
have	O	O
downloaded	O	O
the	O	O
sample	O	O
code	O	O
from	O	O
this	O	O
link	O	O

https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernate	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
jar	O	B-File_Type
file	O	O
i	O	O
am	O	O
using	O	O

Please	O	O
please	O	O
help	O	O
me	O	O
out	O	O
of	O	O
this	O	O
,	O	O
inform	O	O
me	O	O
where	O	O
i	O	O
am	O	O
wrong	O	O
,	O	O

Thanks	O	O
in	O	O
advance	O	O

Well	O	O
,	O	O
with	O	O
"	O	O
newer	O	O
"	O	O
versions	O	O
of	O	O
GWT	O	B-Application
(	O	O
i.e	O	O
.	O	O
newer	O	O
than	O	O
1.7	O	B-Version
I	O	O
think	O	O
)	O	O
,	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
use	O	O
a	O	O
more	O	O
recent	O	O
version	O	O
of	O	O
Gilead	O	B-Application
.	O	O

AFAIK	O	O
,	O	O
the	O	O
problem	O	O
you	O	O
describe	O	O
has	O	O
been	O	O
solved	O	O
long	O	O
ago	O	O
.	O	O

The	O	O
last	O	O
release	O	O
was	O	O
version	O	O
1.3.2	O	B-Version
on	O	O
2010-05-22	O	O
.	O	O

Yes	O	O
,	O	O
this	O	O
release	O	O
is	O	O
old	O	O
,	O	O
and	O	O
Gilead	O	B-Application
is	O	O
n't	O	O
updated	O	O
anymore	O	O
.	O	O

However	O	O
,	O	O
it	O	O
still	O	O
works	O	O
,	O	O
even	O	O
with	O	O
the	O	O
latest	O	O
GWT	O	B-Application
versions	O	O
(	O	O
currently	O	O
2.5	O	B-Version
rc	O	O
)	O	O
,	O	O
as	O	O
long	O	O
as	O	O
you	O	O
're	O	O
using	O	O
Hibernate	O	B-Application
<=	O	O
3.5.x	O	B-Version
.	O	O

I	O	O
would	O	O
n't	O	O
really	O	O
recommend	O	O
starting	O	O
a	O	O
project	O	O
with	O	O
Gilead	O	B-Application
now	O	O
,	O	O
see	O	O
http://sourceforge.net/projects/gilead/forums/forum/868076/topic/4525959	O	O

I	O	O
am	O	O
currently	O	O
making	O	O
a	O	O
script	O	O
which	O	O
will	O	O
add	O	O
to	O	O
cart	O	O
and	O	O
checkout	O	O
items	O	O
on	O	O
e-commerce	O	O
websites	O	O
run	O	O
on	O	O
the	O	O
shopify	O	B-Application
platform	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
speed	O	O
up	O	O
the	O	O
process	O	O
by	O	O
running	O	O
the	O	O
add	O	B-Function
to	O	I-Function
cart	O	I-Function
method	O	O
on	O	O
multiple	O	O
threads	O	O
.	O	O

My	O	O
add	O	B-Function
to	O	I-Function
cart	O	I-Function
function	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

where	O	O
keywords	O	B-Variable
is	O	O
the	O	O
list	O	B-Data_Structure
of	O	O
strings	O	B-Data_Type
so	O	O
we	O	O
can	O	O
parse	O	O
and	O	O
find	O	O
the	O	O
correct	O	O
item	O	O
,	O	O
and	O	O
session	O	B-Variable
is	O	O
the	O	O
a	O	O
new	O	O
session	O	B-Class
from	O	O
the	O	O
requests	O	B-Library
module	O	O
.	O	O

The	O	O
function	O	O
first	O	O
parses	O	O
through	O	O
the	O	O
sitemap	O	O
,	O	O
finding	O	O
the	O	O
unique	O	O
product	O	O
ID	O	O
,	O	O
then	O	O
sends	O	O
a	O	O
post	O	O
request	O	O
to	O	O
the	O	O
session	O	B-Variable
variable	O	O
to	O	O
add	O	O
said	O	O
item	O	O
to	O	O
cart	O	O
.	O	O

However	O	O
,	O	O
when	O	O
I	O	O
run	O	O
the	O	O
script	O	O
using	O	O
threads	O	B-Class
to	O	O
add	O	O
multiple	O	O
items	O	O
to	O	O
cart	O	O
,	O	O
i	O	O
only	O	O
see	O	O
one	O	O
of	O	O
the	O	O
items	O	O
in	O	O
the	O	O
cart	O	O
.	O	O

Why	O	O
is	O	O
n't	O	O
this	O	O
working	O	O
?	O	O

Would	O	O
I	O	O
need	O	O
to	O	O
lock	O	O
+	O	O
unlock	O	O
the	O	O
session	O	B-Variable
variable	O	O
and	O	O
send	O	O
the	O	O
POST	O	O
request	O	O
one	O	O
by	O	O
one	O	O
?	O	O

Here	O	O
's	O	O
the	O	O
code	O	O
that	O	O
I	O	O
am	O	O
running	O	O
:	O	O

From	O	O
my	O	O
experience	O	O
,	O	O
if	O	O
you	O	O
hit	O	O
Shopify	O	B-Application
with	O	O
multiple	O	O
cart	O	O
changes	O	O
at	O	O
the	O	O
same	O	O
time	O	O
,	O	O
only	O	O
one	O	O
will	O	O
go	O	O
through	O	O
.	O	O

My	O	O
guess	O	O
is	O	O
that	O	O
Shopify	O	B-Application
handles	O	O
the	O	O
cart	O	O
something	O	O
like	O	O
this	O	O
:	O	O

At	O	O
time	O	O
0	O	B-Value
we	O	O
have	O	O
our	O	O
initial	O	O
cart	O	O
-	O	O
call	O	O
it	O	O
cart0	O	B-Variable

At	O	O
time	O	O
t	O	B-Variable
,	O	O
we	O	O
submit	O	O
n	O	B-Variable
simultaneous	O	O
requests	O	O
to	O	O
add/update/change	O	O
the	O	O
cart	O	O

Request	O	O
0	O	B-Value
:	O	O
take	O	O
cart0	O	B-Variable
and	O	O
apply	O	O
request	O	O
,	O	O
return	O	O
result	O	O

Request	O	O
1	O	B-Value
:	O	O
take	O	O
cart0	O	B-Variable
and	O	O
apply	O	O
request	O	O
,	O	O
return	O	O
result	O	O

..	O	O
.	O	O

Request	O	O
n	O	B-Variable
:	O	O
take	O	O
cart0	O	B-Variable
and	O	O
apply	O	O
request	O	O
,	O	O
return	O	O
result	O	O

This	O	O
seems	O	O
consistent	O	O
with	O	O
the	O	O
cart	O	O
return	O	O
values	O	O
that	O	O
I	O	O
got	O	O
when	O	O
I	O	O
tested	O	O
multiple	O	O
requests	O	O
at	O	O
the	O	O
same	O	O
time	O	O
-	O	O
each	O	O
callback	O	O
function	O	O
would	O	O
trigger	O	O
with	O	O
a	O	O
cart	O	O
that	O	O
had	O	O
a	O	O
single	O	O
change	O	O
applied	O	O
.	O	O

I	O	O
've	O	O
found	O	O
two	O	O
ways	O	O
to	O	O
deal	O	O
with	O	O
this	O	O
limitation	O	O
.	O	O

The	O	O
first	O	O
is	O	O
to	O	O
make	O	O
sure	O	O
the	O	O
requests	O	O
are	O	O
chained	O	O
so	O	O
that	O	O
we	O	O
wait	O	O
for	O	O
one	O	O
to	O	O
finish	O	O
before	O	O
making	O	O
the	O	O
next	O	O
-	O	O
effectively	O	O
turning	O	O
the	O	O
asynchronous	O	O
requests	O	O
into	O	O
synchronous	O	O
ones	O	O
.	O	O

Not	O	O
the	O	O
best	O	O
for	O	O
speed	O	O
.	O	O

The	O	O
other	O	O
method	O	O
only	O	O
works	O	O
if	O	O
we	O	O
do	O	O
n't	O	O
have	O	O
line	O	O
item	O	O
properties	O	O
to	O	O
worry	O	O
about	O	O
:	O	O
combining	O	O
all	O	O
the	O	O
additions/changes	O	O
into	O	O
one	O	O
call	O	O
to	O	O
/cart/update.js	B-Code_Block	B-File_Name
,	O	O
passing	O	O
the	O	O
variant	O	O
IDs	O	O
and	O	O
desired	O	O
quantities	O	O
all	O	O
at	O	O
once	O	O
-	O	O
see	O	O
https://help.shopify.com/themes/development/getting-started/using-ajax-api#update-cart	O	O
for	O	O
examples	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
line	O	O
properties	O	O
to	O	O
worry	O	O
about	O	O
,	O	O
changing	O	O
your	O	O
single-line	O	O
additions	O	O
into	O	O
one	O	O
big	O	O
update	O	O
will	O	O
be	O	O
a	O	O
significant	O	O
speed	O	O
and	O	O
reliability	O	O
increase	O	O
.	O	O

I	O	O
have	O	O
a	O	O
javafx	O	B-Library
application	O	O
with	O	O
a	O	O
TableView	B-Code_Block	B-Class
.	O	O

Only	O	O
the	O	O
first	O	O
column	O	B-User_Interface_Element
(	O	O
dataTypeColumn	B-Code_Block	B-Variable
)	O	O
is	O	O
editable	O	O
and	O	O
it	O	O
contains	O	O
a	O	O
ComboBox	B-Code_Block	B-Class
for	O	O
editing	O	O
.	O	O

Now	O	O
the	O	O
TableView	B-Code_Block	B-Class
does	O	O
what	O	O
it	O	O
is	O	O
supposed	O	O
to	O	O
do	O	O
,	O	O
however	O	O
there	O	O
is	O	O
a	O	O
combination	O	O
of	O	O
weird	O	O
bugs	O	O
when	O	O
i	O	O
start	O	O
editing	O	O
a	O	O
cell	O	B-User_Interface_Element
and	O	O
then	O	O
scroll	O	O
it	O	O
out	O	O
of	O	O
view	O	O
without	O	O
commiting	O	O
the	O	O
edit	O	O
.	O	O

I	O	O
am	O	O
pretty	O	O
sure	O	O
it	O	O
is	O	O
because	O	O
of	O	O
the	O	O
way	O	O
TableView	B-Code_Block	B-Class
reuses	O	O
the	O	O
cells	O	B-User_Interface_Element
.	O	O

However	O	O
I	O	O
have	O	O
n't	O	O
found	O	O
any	O	O
way	O	O
to	O	O
intervene	O	O
with	O	O
it	O	O
,	O	O
for	O	O
example	O	O
to	O	O
forbid	O	O
reuse	O	O
of	O	O
cells	O	B-User_Interface_Element
that	O	O
are	O	O
currently	O	O
editing	O	O
.	O	O

Can	O	O
you	O	O
help	O	O
me	O	O
with	O	O
that	O	O
.	O	O

Even	O	O
though	O	O
I	O	O
am	O	O
pretty	O	O
sure	O	O
it	O	O
is	O	O
because	O	O
of	O	O
cell	O	B-User_Interface_Element
reuse	O	O
,	O	O
I	O	O
will	O	O
write	O	O
the	O	O
whole	O	O
problem	O	O
below	O	O
,	O	O
in	O	O
case	O	O
the	O	O
source	O	O
of	O	O
the	O	O
problem	O	O
is	O	O
a	O	O
different	O	O
.	O	O

The	O	O
column	O	B-User_Interface_Element
in	O	O
question	O	O
contains	O	O
Values	O	O
of	O	O
the	O	O
enum	O	O
DataType	B-Code_Block	B-Class

I	O	O
have	O	O
a	O	O
cell	O	B-User_Interface_Element
Factory	O	O
for	O	O
that	O	O
column	O	B-User_Interface_Element
looking	O	O
like	O	O
this	O	O
:	O	O

The	O	O
values	O	O
for	O	O
the	O	O
column	O	B-User_Interface_Element
get	O	O
read	O	O
like	O	O
this	O	O
:	O	O

In	O	O
case	O	O
this	O	O
is	O	O
confusing	O	O
,	O	O
the	O	O
items	O	O
that	O	O
I	O	O
give	O	O
my	O	O
TableView	B-Code_Block	B-Class
are	O	O
Integers	B-Code_Block	B-Data_Type
(	O	O
from	O	O
0	O	B-Value
to	O	O
n-1	O	B-Value
)	O	O
,	O	O
and	O	O
in	O	O
the	O	O
different	O	O
column	O	B-User_Interface_Element
CellValueFactories	B-Code_Block	B-Variable
the	O	O
actual	O	O
values	O	O
will	O	O
be	O	O
loaded	O	O
depending	O	O
on	O	O
the	O	O
Integer	B-Code_Block	B-Data_Type
assoziated	O	O
with	O	O
the	O	O
current	O	O
column	O	B-User_Interface_Element
.	O	O

So	O	O
when	O	O
editing	O	O
it	O	O
,	O	O
it	O	O
shows	O	O
a	O	O
ComboBox	B-Code_Block	B-Class
with	O	O
all	O	O
the	O	O
Values	O	O
that	O	O
DataType	B-Code_Block	B-Class
can	O	O
have	O	O
and	O	O
let	O	O
's	O	O
the	O	O
user	O	O
select	O	O
one	O	O
.	O	O

I	O	O
have	O	O
a	O	O
callback	O	O
on	O	O
the	O	O
column	O	B-User_Interface_Element
that	O	O
reacts	O	O
to	O	O
the	O	O
Edit	O	O
commited	O	O
event	O	O
and	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

So	O	O
about	O	O
the	O	O
problems	O	O
that	O	O
occur	O	O
.	O	O

At	O	O
the	O	O
beginning	O	O
all	O	O
cells	O	B-User_Interface_Element
in	O	O
that	O	O
column	O	B-User_Interface_Element
have	O	O
the	O	O
same	O	O
value	O	O
:	O	O
"	O	B-Value
nothing	O	I-Value
selected	O	I-Value
"	O	I-Value
.	O	O

It	O	O
is	O	O
a	O	O
special	O	O
value	O	O
of	O	O
the	O	O
enum	O	O
reserved	O	O
for	O	O
this	O	O
case	O	O
,	O	O
as	O	O
I	O	O
did	O	O
n't	O	O
find	O	O
a	O	O
setPlaceholder	O	B-Function
function	O	O
on	O	O
the	O	O
ComboBoxTableCell	B-Code_Block	B-Class
class	O	O
.	O	O

When	O	O
I	O	O
know	O	O
start	O	O
editing	O	O
one	O	O
of	O	O
the	O	O
cells	O	B-User_Interface_Element
and	O	O
then	O	O
scroll	O	O
it	O	O
out	O	O
of	O	O
view	O	O
,	O	O
one	O	O
of	O	O
the	O	O
next	O	O
rows	O	B-User_Interface_Element
will	O	O
suddendly	O	O
be	O	O
in	O	O
the	O	O
editing	O	O
state	O	O
as	O	O
well	O	O
,	O	O
even	O	O
though	O	O
that	O	O
row	O	B-User_Interface_Element
has	O	O
not	O	O
been	O	O
touched	O	O
before	O	O
.	O	O

If	O	O
I	O	O
scroll	O	O
further	O	O
an	O	O
cell	O	B-User_Interface_Element
in	O	O
the	O	O
editing	O	O
state	O	O
will	O	O
appear	O	O
every	O	O
time	O	O
the	O	O
previous	O	O
one	O	O
scrolls	O	O
out	O	O
of	O	O
view	O	O
.	O	O

I	O	O
can	O	O
also	O	O
go	O	O
back	O	O
and	O	O
will	O	O
find	O	O
the	O	O
same	O	O
cells	O	B-User_Interface_Element
in	O	O
the	O	O
editing	O	O
state	O	O
.	O	O

If	O	O
I	O	O
edit	O	O
the	O	O
cell	O	B-User_Interface_Element
that	O	O
should	O	O
not	O	O
be	O	O
in	O	O
the	O	O
editing	O	O
state	O	O
,	O	O
it	O	O
will	O	O
not	O	O
change	O	O
,	O	O
but	O	O
instead	O	O
the	O	O
cell	O	B-User_Interface_Element
that	O	O
I	O	O
originally	O	O
tried	O	O
to	O	O
edit	O	O
will	O	O
change	O	O
it	O	O
's	O	O
value	O	O
.	O	O

This	O	O
might	O	O
be	O	O
due	O	O
to	O	O
the	O	O
underlying	O	O
ObservableList	B-Code_Block	B-Class
,	O	O
that	O	O
automatically	O	O
updates	O	O
the	O	O
value	O	O
in	O	O
the	O	O
column	O	B-User_Interface_Element
.	O	O

If	O	O
I	O	O
start	O	O
editing	O	O
a	O	O
cell	O	B-User_Interface_Element
that	O	O
has	O	O
a	O	O
different	O	O
value	O	O
(	O	O
from	O	O
a	O	O
previous	O	O
edit	O	O
)	O	O
,	O	O
something	O	O
even	O	O
more	O	O
weird	O	O
happens	O	O
.	O	O

When	O	O
scrolling	O	O
it	O	O
out	O	O
of	O	O
view	O	O
again	O	O
a	O	O
new	O	O
row	O	B-User_Interface_Element
will	O	O
have	O	O
a	O	O
cell	O	B-User_Interface_Element
in	O	O
the	O	O
editing	O	O
page	O	O
,	O	O
however	O	O
with	O	O
the	O	O
default	O	O
value	O	O
"	O	B-Value
nothing	O	I-Value
selected	O	I-Value
"	O	I-Value
.	O	O

If	O	O
I	O	O
scroll	O	O
backwards	O	O
the	O	O
cell	O	B-User_Interface_Element
that	O	O
i	O	O
tried	O	O
to	O	O
edit	O	O
originally	O	O
will	O	O
no	O	O
longer	O	O
be	O	O
in	O	O
the	O	O
editing	O	O
state	O	O
however	O	O
it	O	O
's	O	O
value	O	O
has	O	O
changed	O	O
to	O	O
"	O	B-Value
nothing	O	I-Value
selected	O	I-Value
"	O	I-Value
.	O	O

As	O	O
if	O	O
the	O	O
new	O	O
cell	O	B-User_Interface_Element
that	O	O
got	O	O
the	O	O
editing	O	O
state	O	O
somehow	O	O
commited	O	O
it	O	O
's	O	O
own	O	O
value	O	O
.	O	O

Please	O	O
some	O	O
help	O	O
with	O	O
this	O	O
:)	O	O

This	O	O
indeed	O	O
seems	O	O
to	O	O
be	O	O
a	O	O
bug	O	O
.	O	O

Rather	O	O
surprising	O	O
,	O	O
if	O	O
you	O	O
move	O	O
the	O	O
scroll	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
with	O	O
the	O	O
mouse	O	B-Device
,	O	O
the	O	O
edit	O	O
is	O	O
properly	O	O
canceled	O	O
,	O	O
but	O	O
not	O	O
,	O	O
if	O	O
you	O	O
use	O	O
the	O	O
mouse	O	B-Device
wheel	O	O
to	O	O
scroll	O	O
.	O	O

You	O	O
can	O	O
easily	O	O
create	O	O
a	O	O
workaround	O	O
for	O	O
this	O	O
buf	O	O
however	O	O
,	O	O
since	O	O
you	O	O
simply	O	O
have	O	O
to	O	O
cancel	O	O
the	O	O
edit	O	O
,	O	O
when	O	O
the	O	O
item	O	O
is	O	O
replaced	O	O
.	O	O

You	O	O
could	O	O
e.g	O	O
.	O	O

use	O	O
this	O	O
method	O	O
to	O	O
create	O	O
the	O	O
cellFactory	B-Code_Block	B-Code_Block
on	O	O
your	O	O
own	O	O
:	O	O

How	O	O
can	O	O
i	O	O
read	O	O
each	O	O
row	O	B-Data_Structure
in	O	O
Datagrid	O	B-Class
one	O	O
at	O	O
a	O	O
time	O	O
.	O	O

For	O	O
example	O	O
my	O	O
datagrid	O	B-Class
has	O	O
5	O	O
data	O	B-Variable
on	O	O
it	O	O
.	O	O

And	O	O
each	O	O
data	O	B-Variable
corresponds	O	O
to	O	O
a	O	O
method	O	O
/	O	O
function	O	O
in	O	O
my	O	O
C#	O	B-Language
solution	O	O
.	O	O

I	O	O
want	O	O
to	O	O
read	O	O
it	O	O
as	O	O
data	O	B-Variable
1	O	O
then	O	O
perform	O	O
the	O	O
corresponding	O	O
function	O	O
under	O	O
that	O	O
data	O	B-Variable
.	O	O

then	O	O
read	O	O
data	O	B-Variable
2	O	O
then	O	O
perform	O	O
the	O	O
corresponding	O	O
function	O	O
under	O	O
that	O	O
data	O	B-Variable
2	O	O
.	O	O
and	O	O
so	O	O
on.	O	O
.	O	O

Can	O	O
anyone	O	O
give	O	O
me	O	O
some	O	O
idea	O	O
how	O	O
?	O	O

I	O	O
assume	O	O
you	O	O
are	O	O
not	O	O
following	O	O
MVVM	O	B-Algorithm
,	O	O
Get	O	O
the	O	O
Items	O	O
From	O	O
Your	O	O
DataGrid	O	B-Class
like	O	O
this	O	O
,	O	O

Can	O	O
anyone	O	O
tell	O	O
me	O	O
what	O	O
the	O	O
gcov	O	B-Application
message	O	O
"	O	O
Merge	O	O
mismatch	O	O
for	O	O
summaries	O	O
"	O	O
means	O	O
?	O	O

I	O	O
have	O	O
found	O	O
the	O	O
message	O	O
in	O	O
the	O	O
gcc	O	B-Application
source	O	O
here	O	O
:	O	O

http://www.opensource.apple.com/source/gcc/gcc-5646/gcc/libgcov.c	O	O

It	O	O
seems	O	O
to	O	O
be	O	O
a	O	O
sanity	O	O
check	O	O
that	O	O
the	O	O
tags	O	O
in	O	O
the	O	O
.gcda	B-Code_Block	B-File_Type
files	O	O
match	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
.	O	O

Anyone	O	O
know	O	O
how	O	O
to	O	O
work	O	O
around	O	O
this	O	O
?	O	O

This	O	O
happens	O	O
when	O	O
one	O	O
of	O	O
the	O	O
objects	O	O
you	O	O
're	O	O
linking	O	O
into	O	O
an	O	O
executable	O	O
changes	O	O
significantly	O	O
.	O	O

For	O	O
example	O	O
it	O	O
gains	O	O
or	O	O
loses	O	O
some	O	O
lines	O	O
of	O	O
profilable	O	O
code	O	O
.	O	O

The	O	O
minimal	O	O
case	O	O
to	O	O
produce	O	O
the	O	O
error	O	O
is	O	O
with	O	O
2	O	O
source	O	O
files	O	O
.	O	O

Here	O	O
are	O	O
2	O	O
example	O	O
source	O	O
files	O	O
called	O	O
c	O	B-File_Name
..	O	I-File_Name
.	O	I-File_Name

and	O	O
stuff.c	O	B-File_Name

What	O	O
they	O	O
do	O	O
is	O	O
n't	O	O
important	O	O
.	O	O

To	O	O
build	O	O
them	O	O
,	O	O
here	O	O
is	O	O
a	O	O
simple	O	O
Makefile	O	B-File_Name
:	O	O

The	O	O
Makefile	O	B-File_Name
is	O	O
set	O	O
up	O	O
so	O	O
that	O	O
the	O	O
compilation	O	O
is	O	O
main.c	B-Code_Block	B-Code_Block
->	I-Code_Block	I-Code_Block
main.o	I-Code_Block	I-Code_Block
,	O	O
stuff.c	B-Code_Block	B-Code_Block
->	I-Code_Block	I-Code_Block
stuff.o	I-Code_Block	I-Code_Block
and	O	O
finally	O	O
stuff.o	B-Code_Block	B-Code_Block
+	I-Code_Block	I-Code_Block
main.o	I-Code_Block	I-Code_Block
->	I-Code_Block	I-Code_Block
testexe	I-Code_Block	I-Code_Block
.	O	O

If	O	O
we	O	O
compile	O	O
and	O	O
link	O	O
those	O	O
C	O	B-Language
files	O	O
with	O	O
the	O	O
-fprofile-arcs	B-Code_Block	B-Code_Block
-ftest-coverage	I-Code_Block	I-Code_Block
options	O	O
then	O	O
the	O	O
executable	O	O
file	O	O
has	O	O
profiling	O	O
.	O	O

Run	O	O
that	O	O
execuatable	O	O
and	O	O
you	O	O
'll	O	O
get	O	O
2	O	O
output	O	O
files	O	O
,	O	O
main.gcda	B-Code_Block	B-File_Name
and	O	O
stuff.gcda	B-Code_Block	B-File_Name
.	O	O

So	O	O
far	O	O
so	O	O
good	O	O
.	O	O

Now	O	O
change	O	O
the	O	O
line	O	O
#if	B-Code_Block	B-Code_Block
0	I-Code_Block	I-Code_Block
to	O	O
#if	B-Code_Block	B-Code_Block
1	I-Code_Block	I-Code_Block
.	O	O

The	O	O
Makefile	O	B-File_Name
should	O	O
cause	O	O
just	O	O
stuff.c	O	B-File_Name
to	O	O
recompile	O	O
,	O	O
and	O	O
the	O	O
executable	O	O
to	O	O
relink	O	O
.	O	O

Next	O	O
time	O	O
you	O	O
the	O	O
test	O	O
executable	O	O
gets	O	O
run	O	O
you	O	O
'll	O	O
get	O	O
the	O	O
"	O	B-Output_Block
Merge	O	I-Output_Block
mismatch	O	I-Output_Block
"	O	I-Output_Block
message	O	O
for	O	O
the	O	O
main.gcda	O	B-File_Name
file	O	O
.	O	O

The	O	O
stuff.gcda	O	B-File_Name
file	O	O
is	O	O
not	O	O
affected	O	O
since	O	O
its	O	O
object	O	O
file	O	O
has	O	O
been	O	O
recreated	O	O
with	O	O
all	O	O
the	O	O
new	O	O
summary	O	O
information	O	O
.	O	O

If	O	O
you	O	O
recompile	O	O
main.c	B-Code_Block	B-File_Name
and	O	O
relink	O	O
the	O	O
executable	O	O
,	O	O
then	O	O
the	O	O
error	O	O
message	O	O
goes	O	O
away	O	O
.	O	O

So	O	O
what	O	O
can	O	O
be	O	O
done	O	O
?	O	O

I	O	O
'd	O	O
love	O	O
to	O	O
know	O	O
!	O	O

At	O	O
the	O	O
moment	O	O
I	O	O
run	O	O
find	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
-name	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
.gcda	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
|	I-Code_Block	I-Code_Block
xargs	I-Code_Block	I-Code_Block
rm	I-Code_Block	I-Code_Block
whenever	O	O
I	O	O
need	O	O
to	O	O
re-check	O	O
coverage	O	O
,	O	O
which	O	O
is	O	O
not	O	O
really	O	O
ideal	O	O
.	O	O

Another	O	O
solution	O	O
would	O	O
be	O	O
to	O	O
recompile	O	O
everything	O	O
when	O	O
using	O	O
profiling	O	O
"	O	O
just	O	O
in	O	O
case	O	O
"	O	O
,	O	O
but	O	O
that	O	O
seems	O	O
like	O	O
overkill	O	O
.	O	O

I	O	O
am	O	O
using	O	O
openssl	O	B-Library
0.9.8g	O	B-Version
to	O	O
validate	O	O
the	O	O
certificate	O	O
signature	O	O
.	O	O

The	O	O
API	O	B-Library
"	O	I-Library
X509_verify	O	I-Library
"	O	I-Library
returns	O	O
0/1	O	B-Value
according	O	O
to	O	O
the	O	O
document	O	O
.	O	O

but	O	O
i	O	O
am	O	O
getting	O	O
-1	O	B-Value
as	O	O
return	O	O
value	O	O
.	O	O

why	O	O
i	O	O
am	O	O
getting	O	O
-1	O	B-Value
as	O	O
return	O	O
value	O	O
.	O	O
.	O	O
?	O	O

Need	O	O
to	O	O
add	O	O
the	O	O
algorithms	O	O
details	O	O
.	O	O
.	O	O

call	O	O
these	O	O
functions	O	O
to	O	O
add	O	O
the	O	O
algorithm	O	O
list	O	B-Data_Structure

Return	O	O
-1	O	B-Value
because	O	O
it	O	O
is	O	O
not	O	O
able	O	O
to	O	O
find	O	O
the	O	O
Algorithm	O	O
obj_ID	O	B-Variable
.	O	O

I	O	O
have	O	O
a	O	O
template	O	O
helper	O	O
called	O	O
notifications	B-Code_Block	B-Variable
and	O	O
I	O	O
want	O	O
to	O	O
return	O	O
3	O	O
collection	O	B-Class
cursors	O	I-Class
to	O	O
my	O	O
template	O	O
,	O	O
so	O	O
that	O	O
I	O	O
can	O	O
view	O	O
all	O	O

Template	O	O

Helper	O	O

What	O	O
is	O	O
the	O	O
best	O	O
way	O	O
to	O	O
go	O	O
about	O	O
this	O	O
?	O	O

Thanks	O	O
!	O	O

The	O	O
literal	O	O
answer	O	O
to	O	O
your	O	O
question	O	O
is	O	O
to	O	O
run	O	O
fetch	B-Code_Block	B-Function
on	O	O
all	O	O
of	O	O
the	O	O
cursors	O	B-Class
and	O	O
concatenate	O	O
them	O	O
into	O	O
a	O	O
single	O	O
array	O	B-Data_Structure
.	O	O

Because	O	O
all	O	O
of	O	O
your	O	O
documents	O	O
come	O	O
from	O	O
a	O	O
single	O	O
collection	O	B-Class
,	O	O
you	O	O
can	O	O
alternatively	O	O
use	O	O
a	O	O
more	O	O
sophisticated	O	O
query	O	O
.	O	O

Give	O	O
this	O	O
a	O	O
try	O	O
:	O	O

I	O	O
'm	O	O
creating	O	O
a	O	O
form	O	O
in	O	O
angularjs	O	B-Library
in	O	O
which	O	O
there	O	O
are	O	O
two	O	O
ngShow	O	B-Class
for	O	O
error	O	O
messages	O	O
.	O	O

Now	O	O
,	O	O
I	O	O
want	O	O
to	O	O
crossfade	O	O
these	O	O
two	O	O
messages	O	O
placing	O	O
them	O	O
in	O	O
the	O	O
same	O	O
spot	O	O
.	O	O

But	O	O
,	O	O
i	O	O
'm	O	O
not	O	O
sure	O	O
how	O	O
to	O	O
get	O	O
it	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
plunker	O	O
link	O	O
:	O	O
http://plnkr.co/edit/EcT2oOmClz65WUgXgG4g?p=preview	O	O

I	O	O
'm	O	O
using	O	O
1.2.4	O	B-Version
and	O	O
linked	O	O
the	O	O
ng-animate	O	B-Library
lib	O	O
.	O	O

Right	O	O
now	O	O
the	O	O
animation	O	O
(	O	O
fading	O	O
in/out	O	O
)	O	O
is	O	O
achieved	O	O
using	O	O
CSS	O	B-Language
not	O	O
JS	O	B-Language
:	O	O

html	O	B-Language
:	O	O

css	O	B-Language
:	O	O

JS	O	B-Language
:	O	O

The	O	O
way	O	O
you	O	O
can	O	O
do	O	O
it	O	O
is	O	O
by	O	O
adding	O	O
position	O	O
:	O	O
absolute	O	O
to	O	O
the	O	O
container	O	O
's	O	O
style	O	O
,	O	O
like	O	O
this	O	O
:	O	O

This	O	O
will	O	O
make	O	O
both	O	O
errors	O	O
have	O	O
the	O	O
same	O	O
position	O	O
while	O	O
fading	O	O
,	O	O
and	O	O
thus	O	O
overlapping	O	O
(	O	O
which	O	O
is	O	O
what	O	O
I	O	O
think	O	O
you	O	O
mean	O	O
by	O	O
crossfading	O	O
)	O	O

I	O	O
also	O	O
had	O	O
to	O	O
change	O	O
the	O	O
width	O	O
of	O	O
the	O	O
container	O	B-User_Interface_Element
because	O	O
its	O	O
width	O	O
was	O	O
making	O	O
the	O	O
error	O	O
messages	O	O
span	O	O
several	O	O
lines	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
link	O	O
to	O	O
the	O	O
edited	O	O
plunker	O	B-Application

I	O	O
am	O	O
looking	O	O
for	O	O
some	O	O
insight	O	O
into	O	O
reporting	O	O
utilization	O	O
correctly	O	O
.	O	O

I	O	O
am	O	O
using	O	O
a	O	O
time	O	O
plot	O	O
that	O	O
reports	O	O
resourceName.utilization()	B-Code_Block	B-Function
,	O	O
additionally	O	O
,	O	O
I	O	O
am	O	O
also	O	O
adding	O	O
the	O	O
utilization	O	O
values	O	O
to	O	O
a	O	O
Statistics	O	O
object	O	O
every	O	O
hour	O	O
.	O	O

I	O	O
then	O	O
plot	O	O
the	O	O
mean	O	O
value	O	O
of	O	O
this	O	O
Statistics	O	O
object	O	O
as	O	O
statisticName.mean()	B-Code_Block	B-Function
.	O	O

Since	O	O
utilization	O	O
in	O	O
AnyLogic	O	B-Application
is	O	O
the	O	O
returned	O	O
value	O	O
is	O	O
the	O	O
mean	O	O
over	O	O
all	O	O
individual	O	O
unit	O	O
utilization	O	O
,	O	O
calculated	O	O
from	O	O
the	O	O
most	O	O
recent	O	O
resetStats()	B-Code_Block	B-Function
call	O	O
up	O	O
to	O	O
current	O	O
time	O	O
,	O	O
does	O	O
reporting	O	O
the	O	O
value	O	O
statisticName.mean()	B-Code_Block	B-Function
even	O	O
make	O	O
sense	O	O
?	O	O

That	O	O
would	O	O
be	O	O
the	O	O
average	O	O
of	O	O
time	O	O
averaged	O	O
values	O	O
.	O	O

Im	O	O
using	O	O
twig	O	B-Language
but	O	O
its	O	O
being	O	O
run	O	O
via	O	O
gulp	O	B-Library
not	O	O
symphony	O	B-Library
.	O	O

https://www.npmjs.com/package/gulp-twig	O	O

Ive	O	O
used	O	O
extends	O	O
and	O	O
includes	O	O
successfully	O	O
but	O	O
I	O	O
cant	O	O
get	O	O
macros	O	O
to	O	O
work	O	O
.	O	O

Do	O	O
macros	O	O
require	O	O
symphony	O	B-Library
?	O	O

In	O	O
my	O	O
main	O	O
twig	O	B-File_Type
file	O	O
I	O	O
have	O	O
:	O	O

In	O	O
test.twig	O	B-File_Name
:	O	O

It	O	O
was	O	O
a	O	O
syntax	O	O
issue	O	O
.	O	O

In	O	O
the	O	O
main	O	B-File_Name
file	O	O
:	O	O

In	O	O
test.twig	O	B-File_Name
:	O	O

Implementation	O	O
Notes	O	O
:	O	O

https://github.com/justjohn/twig.js/wiki/Implementation-Notes	O	O

I	O	O
'm	O	O
having	O	O
some	O	O
trouble	O	O
building	O	O
a	O	O
GWT	O	B-Application
application	O	O
.	O	O

Here	O	O
:	O	O
https://developers.google.com/web-toolkit/tools/gwtdesigner/features/menu_editing	O	O
Google	O	O
themselves	O	O
talk	O	O
of	O	O
the	O	O
possibility	O	O
of	O	O
Java	O	B-Application
Swing	O	I-Application
,	O	O
JFrame	O	B-Class
implementation	O	O
in	O	O
the	O	O
GWT	O	B-Application
.	O	O

I	O	O
am	O	O
a	O	O
Java	O	B-Language
newbie	O	O
and	O	O
do	O	O
n't	O	O
know	O	O
what	O	O
the	O	O
SWT	O	B-Application
equivalent	O	O
of	O	O
Swing	O	B-Application
is	O	O
,	O	O
so	O	O
I	O	O
have	O	O
n't	O	O
tried	O	O
that	O	O
option	O	O
.	O	O

When	O	O
I	O	O
try	O	O
to	O	O
run	O	O
my	O	O
code	O	O
(	O	O
which	O	O
is	O	O
built	O	O
from	O	O
the	O	O
GWT	O	B-Application
Designer	O	I-Application
)	O	O
I	O	O
get	O	O
errors	O	O
at	O	O
each	O	O
line	O	O
that	O	O
uses	O	O
JFrame	O	B-Class
:	O	O

Returning	O	O
:	O	O
[	O	O
ERROR	O	O
]	O	O
[	O	O
gwtearthdemo	O	B-Error_Name
]	O	O
-	O	O
Line	O	O
96	O	O
:	O	O
No	O	O
source	O	O
code	O	O
is	O	O
available	O	O
for	O	O
type	O	O
javax.swing.JFrame	O	B-Class
;	O	I-Class
did	O	O
you	O	O
forget	O	O
to	O	O
inherit	O	O
a	O	O
required	O	O
module	O	O
?	O	O

Ditto	O	O
for	O	O
JMenuBar	O	B-Class
,	O	O
JMenu	O	B-Class
.	O	O

I	O	O
have	O	O
seen	O	O
errors	O	O
similar	O	O
to	O	O
this	O	O
with	O	O
answers	O	O
suggesting	O	O
that	O	O
the	O	O
function	O	O
in	O	O
question	O	O
is	O	O
not	O	O
applicable	O	O
to	O	O
GWT	O	B-Application
.	O	O

However	O	O
,	O	O
Google	O	B-Website
suggests	O	O
it	O	O
is	O	O
.	O	O

Any	O	O
advice	O	O
here	O	O
?	O	O

In	O	O
GWT	O	B-Application
you	O	O
are	O	O
restricted	O	O
to	O	O
use	O	O
only	O	O
some	O	O
of	O	O
the	O	O
java	O	B-Language
classes	O	O
since	O	O
it	O	O
is	O	O
not	O	O
possible	O	O
to	O	O
convert	O	O
all	O	O
the	O	O
java	O	B-Language
classes	O	O
to	O	O
javascript	O	B-Language
.	O	O

You	O	O
can	O	O
find	O	O
a	O	O
list	O	O
of	O	O
the	O	O
allowed	O	O
classes	O	O
in	O	O
this	O	O
link	O	O
:	O	O
List	O	O
of	O	O
Classes	O	O

I	O	O
was	O	O
having	O	O
some	O	O
performance	O	O
issues	O	O
with	O	O
an	O	O
Oracle	O	B-Application
query	O	O
,	O	O
so	O	O
I	O	O
downloaded	O	O
a	O	O
trial	O	O
of	O	O
the	O	O
Quest	O	B-Application
SQL	O	I-Application
Optimizer	O	I-Application
for	O	O
Oracle	O	B-Application
,	O	O
which	O	O
made	O	O
some	O	O
changes	O	O
that	O	O
dramatically	O	O
improved	O	O
the	O	O
query	O	O
's	O	O
performance	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
exactly	O	O
sure	O	O
why	O	O
the	O	O
recommended	O	O
query	O	O
had	O	O
such	O	O
an	O	O
improvement	O	O
;	O	O
can	O	O
anyone	O	O
provide	O	O
an	O	O
explanation	O	O
?	O	O

Before	O	O
:	O	O

Plan	O	O
Cost	O	O
:	O	O
831	O	B-Value

Elapsed	O	O
Time	O	O
:	O	O
00:00:21.40	O	B-Value

Number	O	O
of	O	O
Records	O	O
:	O	O
40,717	O	B-Value

After	O	O
:	O	O

Plan	O	O
Cost	O	O
:	O	O
686	O	B-Value

Elapsed	O	O
Time	O	O
:	O	O
00:00:00.95	O	B-Value

Number	O	O
of	O	O
Records	O	O
:	O	O
40,717	O	B-Value

Questions	O	O
:	O	O

Why	O	O
does	O	O
re-arranging	O	O
the	O	O
order	O	O
of	O	O
the	O	O
tables	O	B-Data_Structure
in	O	O
the	O	O
FROM	B-Code_Block	B-Code_Block
clause	O	O
help	O	O
?	O	O

Why	O	O
does	O	O
adding	O	O
+	B-Code_Block	B-Code_Block
0	I-Code_Block	I-Code_Block
to	O	O
the	O	O
WHERE	B-Code_Block	B-Code_Block
clause	O	O
comparisons	O	O
help	O	O
?	O	O

Why	O	O
does	O	O
||	B-Code_Block	B-Code_Block
''	I-Code_Block	I-Code_Block
<>	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
AA	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block
in	O	O
the	O	O
WHERE	B-Code_Block	B-Code_Block
clause	O	O
VERSION_NAME	B-Code_Block	B-Code_Block
comparison	O	O
help	O	O
?	O	O

Is	O	O
this	O	O
a	O	O
more	O	O
efficient	O	O
way	O	O
of	O	O
handling	O	O
possible	O	O
nulls	B-Code_Block	B-Value
on	O	O
this	O	O
column	O	B-Data_Structure
?	O	O

If	O	O
you	O	O
run	O	O
both	O	O
statements	O	O
through	O	O
an	O	O
explain	O	B-Code_Block
plan	O	I-Code_Block
,	O	O
you	O	O
'll	O	O
see	O	O
the	O	O
difference	O	O
yourself	O	O
.	O	O

To	O	O
do	O	O
that	O	O
,	O	O
issue	O	O
:	O	O

If	O	O
it	O	O
's	O	O
still	O	O
not	O	O
clear	O	O
why	O	O
the	O	O
difference	O	O
occurs	O	O
,	O	O
then	O	O
please	O	O
paste	O	O
the	O	O
output	O	O
here	O	O
.	O	O

Regards	O	O
,	O	O

Rob	O	B-User_Name
.	O	O

PS	O	O
:	O	O
the	O	O
"	O	O
+	O	B-Code_Block
0	O	I-Code_Block
"	O	O
and	O	O
"	O	O
||	O	B-Code_Block
''	O	O
"	O	O
are	O	O
just	O	O
tricks	O	O
to	O	O
make	O	O
sure	O	O
regular	O	O
indexes	O	O
on	O	O
the	O	O
columns	O	B-Data_Structure
are	O	O
not	O	O
being	O	O
used	O	O
.	O	O

They	O	O
also	O	O
make	O	O
your	O	O
query	O	O
less	O	O
readable	O	O
,	O	O
so	O	O
I	O	O
would	O	O
tune	O	O
them	O	O
myself	O	O
,	O	O
instead	O	O
of	O	O
relying	O	O
on	O	O
a	O	O
tool	O	O
.	O	O

Almost	O	O
certainly	O	O
the	O	O
statistics	O	O
on	O	O
these	O	O
tables	O	B-Data_Structure
are	O	O
wrong	O	O
,	O	O
causing	O	O
the	O	O
optimizer	O	O
to	O	O
choose	O	O
a	O	O
poor	O	O
plan	O	O
.	O	O

Gather	O	O
stats	O	O
on	O	O
the	O	O
tables	O	B-Data_Structure
and	O	O
indexes	O	O
(	O	O
or	O	O
get	O	O
your	O	O
DBA	O	O
to	O	O
if	O	O
you	O	O
are	O	O
n't	O	O
in	O	O
control	O	O
of	O	O
that	O	O
kind	O	O
of	O	O
thing	O	O
)	O	O
,	O	O
then	O	O
try	O	O
your	O	O
queries	O	O
again	O	O
.	O	O

The	O	O
following	O	O
page	O	O
shows	O	O
how	O	O
to	O	O
load	O	O
external	O	O
images	O	B-User_Interface_Element
in	O	O
AS3	O	B-Language
DataGrid	O	B-Class
:	O	O
http://www.adobe.com/devnet/flash/quickstart/datagrid_pt3/	O	O
(	O	O
image	O	B-User_Interface_Element
and	O	O
text	O	B-User_Interface_Element
are	O	O
displayed	O	O
in	O	O
two	O	O
columns	O	B-User_Interface_Element
)	O	O

But	O	O
I	O	O
wonder	O	O
how	O	O
the	O	O
image	O	B-User_Interface_Element
and	O	O
text	O	B-User_Interface_Element
can	O	O
be	O	O
loaded	O	O
together	O	O
within	O	O
the	O	O
same	O	O
DataGrid	O	B-Class
.	O	O

Within	O	O
one	O	O
column	O	B-User_Interface_Element
:	O	O
Image	O	B-User_Interface_Element
followed	O	O
by	O	O
the	O	O
text	O	B-User_Interface_Element
.	O	O

I	O	O
cannot	O	O
get	O	O
it	O	O
work	O	O
so	O	O
I	O	O
'd	O	O
be	O	O
grateful	O	O
for	O	O
any	O	O
help	O	O
with	O	O
examples	O	O
.	O	O

Thanks	O	O

You	O	O
just	O	O
have	O	O
to	O	O
write	O	O
a	O	O
custom	O	O
CellRenderer	O	B-Class
that	O	O
does	O	O
it	O	O
.	O	O

If	O	O
you	O	O
really	O	O
read	O	O
and	O	O
understand	O	O
that	O	O
page	O	O
you	O	O
linked	O	O
,	O	O
they	O	O
explain	O	O
how	O	O
to	O	O
make	O	O
custom	O	O
CellRenderers	O	B-Class
,	O	O
and	O	O
you	O	O
can	O	O
put	O	O
whatever	O	O
you	O	O
want	O	O
in	O	O
a	O	O
cell	O	B-User_Interface_Element
.	O	O

An	O	O
image	O	B-User_Interface_Element
with	O	O
text	O	B-User_Interface_Element
,	O	O
a	O	O
button	O	B-User_Interface_Element
,	O	O
a	O	O
game	O	O
of	O	O
tetris	O	O
,	O	O
whatever	O	O
.	O	O

I	O	O
am	O	O
building	O	O
a	O	O
joomla	O	B-Application
2.5	O	B-Version
module	O	O
,	O	O
i	O	O
want	O	O
to	O	O
access	O	O
data	O	O
pass	O	O
from	O	O
the	O	O
module	O	O
parameter	O	O
,	O	O
but	O	O
i	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O
Fatal	O	B-Error_Name
error	O	I-Error_Name
:	O	O
Call	O	O
to	O	O
a	O	O
member	O	O
function	O	O
get()	O	B-Function
on	O	O
a	O	O
non-object	O	O

My	O	O
code	O	O
follows	O	O
belows	O	O
:	O	O

helper.php	O	B-File_Name

mod_feedGrabber.php	O	B-File_Name

mod_feedGrabber.xml	O	B-File_Name

default.php	O	B-File_Name

The	O	O
main	O	O
problem	O	O
I	O	O
can	O	O
see	O	O
with	O	O
the	O	O
code	O	O
supplied	O	O
is	O	O
that	O	O
you	O	O
do	O	O
n't	O	O
pass	O	O
the	O	O
$params	B-Code_Block	B-Variable
to	O	O
your	O	O
helper	O	O
function	O	O
.	O	O

It	O	O
should	O	O
read	O	O
something	O	O
like	O	O
this	O	O
:	O	O

Also	O	O
your	O	O
XML	O	B-Language
is	O	O
invalid	O	O
,	O	O
as	O	O
it	O	O
's	O	O
missing	O	O
closing	O	O
tags	O	O
for	O	O
fieldset	B-Code_Block	B-HTML_XML_Tag
and	O	O
fields	B-Code_Block	B-HTML_XML_Tag
tags	O	O
.	O	O

It	O	O
should	O	O
look	O	O
like	O	O
this	O	O
:	O	O

As	O	O
a	O	O
tip	O	O
you	O	O
can	O	O
quick	O	O
check	O	O
if	O	O
an	O	O
XML	O	B-File_Type
file	O	O
is	O	O
valid	O	O
by	O	O
dragging	O	O
it	O	O
into	O	O
a	O	O
browser	O	B-Application
window	O	O
,	O	O
e.g	O	O
.	O	O
your	O	O
code	O	O
posted	O	O
above	O	O
results	O	O
in	O	O
this	O	O
:	O	O

is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
detect	O	O
if	O	O
video	O	B-User_Interface_Element
playback	O	O
is	O	O
running	O	O
or	O	O
not	O	O
with	O	O
Win32	O	B-Library
API	O	I-Library
?	O	O

For	O	O
audio	O	O
,	O	O
I	O	O
can	O	O
detect	O	O
playback	O	O
processes	O	O
by	O	O
:	O	O

enumerate	O	O
playback	O	O
devices	O	O
with	O	O
MMDeviceEnumerator	O	B-Class
and	O	O
,	O	O

for	O	O
each	O	O
device	O	O
,	O	O
enumerate	O	O
sessions	O	O
with	O	O
IaudiosessionManager	O	B-Class
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
do	O	O
the	O	O
similar	O	O
thing	O	O
for	O	O
video	O	B-User_Interface_Element
playback	O	O
.	O	O

Ideally	O	O
,	O	O
a	O	O
method	O	O
that	O	O
works	O	O
for	O	O
any	O	O
application	O	O
,	O	O
but	O	O
if	O	O
it	O	O
is	O	O
impossible	O	O
,	O	O
a	O	O
method	O	O
that	O	O
works	O	O
for	O	O
specific	O	O
framework	O	O
(	O	O
DirectShow	O	B-Library
,	O	O
Media	O	B-Library
Foundation	O	I-Library
,	O	O
etc	O	O
.	O	O
)	O	O

is	O	O
ok	O	O
.	O	O

Thanks	O	O
.	O	O

I	O	O
am	O	O
using	O	O
twitter	O	B-Library
bootstrap	O	I-Library
and	O	O
in	O	O
custom	O	O
css	O	B-Language
saying	O	O

when	O	O
added	O	O
,	O	O
it	O	O
always	O	O
displays	O	O
vertical	O	O
scrollbar	O	B-User_Interface_Element
.	O	O

is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
fix	O	O
this	O	O
?	O	O

add	O	O
to	O	O
the	O	O
css	O	B-Language
:	O	O

I	O	O
have	O	O
a	O	O
working	O	O
(	O	O
in	O	O
macOS	O	B-Operating_System
app	O	O
Patterns	O	O
)	O	O
RegExp	O	O
that	O	O
reformats	O	O
GeoJSON	O	B-File_Type
MultiPolygon	O	O
coordinates	O	O
,	O	O
but	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
to	O	O
escape	O	O
it	O	O
for	O	O
sed	B-Code_Block	B-Code_Block
.	O	O

The	O	O
file	O	O
I	O	O
'm	O	O
working	O	O
on	O	O
is	O	O
over	O	O
90	O	O
Mb	O	O
in	O	O
size	O	O
,	O	O
so	O	O
bash	O	B-Application
terminal	O	I-Application
looks	O	O
like	O	O
the	O	O
ideal	O	O
place	O	O
and	O	O
sed	B-Code_Block	B-Code_Block
the	O	O
perfect	O	O
tool	O	O
for	O	O
the	O	O
job	O	O
.	O	O

Search	O	O
Text	O	O
Example	O	O
:	O	O

Desired	O	O
outcome	O	O
:	O	O

My	O	O
current	O	O
RegExp	O	O
:	O	O

and	O	O
reformatting	O	O
:	O	O

The	O	O
command	O	O
should	O	O
be	O	O
something	O	O
along	O	O
these	O	O
lines	O	O
:	O	O

But	O	O
what	O	O
should	O	O
be	O	O
escaped	O	O
in	O	O
the	O	O
RegExp	O	O
to	O	O
make	O	O
it	O	O
work	O	O
?	O	O

My	O	O
attempts	O	O
always	O	O
complain	O	O
of	O	O
being	O	O
unbalanced	O	O
.	O	O

I	O	O
'm	O	O
sorry	O	O
if	O	O
this	O	O
has	O	O
already	O	O
been	O	O
answered	O	O
elsewhere	O	O
,	O	O
but	O	O
I	O	O
could	O	O
n't	O	O
find	O	O
even	O	O
after	O	O
extensive	O	O
searching	O	O
.	O	O

Edit	O	O
:	O	O
2017-01-07	O	O
:	O	O
I	O	O
did	O	O
n't	O	O
make	O	O
it	O	O
clear	O	O
that	O	O
the	O	O
file	O	O
contains	O	O
properties	O	O
other	O	O
than	O	O
just	O	O
the	O	O
GPS-points	O	O
.	O	O

One	O	O
of	O	O
the	O	O
other	O	O
example	O	O
values	O	O
picked	O	O
from	O	O
GeoJSON	O	B-File_Type
Feature	O	O
properties	O	O
is	O	O
"	B-Code_Block	B-Value
35.642.1.001_001	I-Code_Block	I-Value
"	I-Code_Block	I-Value
,	O	O
which	O	O
should	O	O
be	O	O
left	O	O
unchanged	O	O
.	O	O

The	O	O
braces	O	O
check	O	O
in	O	O
my	O	O
original	O	O
regex	O	O
is	O	O
there	O	O
for	O	O
this	O	O
reason	O	O
.	O	O

That	O	O
regex	O	O
is	O	O
not	O	O
legal	O	O
in	O	O
sed	B-Code_Block	B-Code_Block
;	O	O
since	O	O
it	O	O
uses	O	O
Perl	O	B-Language
syntax	O	O
,	O	O
my	O	O
recommendation	O	O
would	O	O
be	O	O
to	O	O
use	O	O
perl	B-Code_Block	B-Language
instead	O	O
.	O	O

The	O	O
regular	O	O
expression	O	O
works	O	O
exactly	O	O
as-is	O	O
,	O	O
and	O	O
even	O	O
the	O	O
command	O	B-Application
line	O	I-Application
is	O	O
almost	O	O
the	O	O
same	O	O
;	O	O
you	O	O
just	O	O
need	O	O
to	O	O
add	O	O
the	O	O
-p	B-Code_Block	B-Code_Block
option	O	O
to	O	O
get	O	O
perl	B-Code_Block	B-Language
to	O	O
operate	O	O
in	O	O
filter	O	O
mode	O	O
(	O	O
which	O	O
sed	B-Code_Block	B-Code_Block
does	O	O
by	O	O
default	O	O
)	O	O
.	O	O

I	O	O
would	O	O
also	O	O
recommend	O	O
adding	O	O
an	O	O
argument	O	O
suffix	O	O
to	O	O
the	O	O
-i	B-Code_Block	B-Code_Block
option	O	O
(	O	O
whether	O	O
using	O	O
sed	B-Code_Block	B-Code_Block
or	O	O
perl	B-Code_Block	B-Language
)	O	O
,	O	O
so	O	O
that	O	O
you	O	O
have	O	O
a	O	O
backup	O	O
of	O	O
the	O	O
original	O	O
file	O	O
in	O	O
case	O	O
something	O	O
goes	O	O
horribly	O	O
wrong	O	O
.	O	O

As	O	O
for	O	O
quoting	O	O
,	O	O
all	O	O
you	O	O
need	O	O
to	O	O
do	O	O
is	O	O
put	O	O
the	O	O
substitution	O	O
command	O	O
in	O	O
single	O	O
quotation	O	O
marks	O	O
:	O	O

A	O	O
simple	O	O
sed	O	B-Code_Block
will	O	O
do	O	O
it	O	O
:	O	O

I	O	O
am	O	O
currently	O	O
trying	O	O
to	O	O
turn	O	O
a	O	O
Python	O	B-Language
script	O	O
I	O	O
use	O	O
regularly	O	O
into	O	O
an	O	O
application	O	O
by	O	O
using	O	O
Platypus	O	B-Library
.	O	O

However	O	O
,	O	O
my	O	O
script	O	O
prompts	O	O
the	O	O
user	O	O
for	O	O
input	O	O
several	O	O
times	O	O
and	O	O
uses	O	O
that	O	O
input	O	O
to	O	O
construct	O	O
a	O	O
URL	O	O
that	O	O
is	O	O
being	O	O
used	O	O
to	O	O
make	O	O
API	O	B-Library
requests	O	O
.	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
of	O	O
how	O	O
this	O	O
is	O	O
used	O	O
in	O	O
my	O	O
script	O	O
:	O	O

The	O	O
data	O	O
taken	O	O
from	O	O
the	O	O
user	O	O
(	O	O
and	O	O
stored	O	O
as	O	O
a	O	O
variable	O	O
)	O	O
is	O	O
then	O	O
used	O	O
like	O	O
this	O	O
:	O	O

Since	O	O
the	O	O
application	O	O
created	O	O
using	O	O
Platypus	O	B-Library
wo	O	O
n't	O	O
allow	O	O
for	O	O
user	O	O
input	O	O
(	O	O
based	O	O
on	O	O
the	O	O
way	O	O
I	O	O
am	O	O
requesting	O	O
it	O	O
through	O	O
my	O	O
script	O	O
)	O	O
I	O	O
was	O	O
going	O	O
to	O	O
try	O	O
and	O	O
use	O	O
Tkinter	O	B-Library
as	O	O
well	O	O
.	O	O

However	O	O
,	O	O
I	O	O
have	O	O
read	O	O
through	O	O
the	O	O
documentation	O	O
and	O	O
am	O	O
confused	O	O
when	O	O
it	O	O
comes	O	O
to	O	O
the	O	O
syntax	O	O
(	O	O
I	O	O
am	O	O
still	O	O
new	O	O
to	O	O
Python	O	B-Language
in	O	O
general	O	O
)	O	O
.	O	O

Can	O	O
anyone	O	O
help	O	O
,	O	O
or	O	O
show	O	O
an	O	O
example	O	O
of	O	O
how	O	O
I	O	O
can	O	O
change	O	O
my	O	O
request	O	O
for	O	O
user	O	O
input	O	O
(	O	O
based	O	O
on	O	O
my	O	O
example	O	O
above	O	O
)	O	O
using	O	O
Tkinter	O	B-Library
so	O	O
the	O	O
application	O	O
will	O	O
work	O	O
?	O	O

I	O	O
am	O	O
also	O	O
using	O	O
Python	O	B-Language
2.7	O	B-Version
.	O	O

You	O	O
can	O	O
use	O	O
the	O	O
entry	B-Code_Block	B-Class
widget	O	O
to	O	O
get	O	O
the	O	O
user	O	O
input	O	O
as	O	O
a	O	O
variable	O	O
.	O	O

A	O	O
user	O	O
can	O	O
type	O	O
in	O	O
there	O	O
ID	O	O
and	O	O
then	O	O
hit	O	O
the	O	O
submit	O	O
button	O	B-User_Interface_Element
.	O	O

This	O	O
button	O	B-User_Interface_Element
can	O	O
be	O	O
tied	O	O
to	O	O
a	O	O
function	O	O
that	O	O
will	O	O
do	O	O
anything	O	O
you	O	O
need	O	O
it	O	O
to	O	O
form	O	O
there	O	O
.	O	O

In	O	O
PHP	O	B-Language
,	O	O
I	O	O
want	O	O
to	O	O
make	O	O
it	O	O
so	O	O
that	O	O
if	O	O
a	O	O
user	O	O
types	O	O
:	O	O

[	B-Code_Block	B-Code_Block
LINK	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
url	B-Code_Block	B-Code_Block
[	B-Code_Block	B-Code_Block
/LINK	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block

It	O	O
will	O	O
replace	O	O
it	O	O
with	O	O
the	O	O
anchor	O	B-HTML_XML_Tag
tag	O	O
:	O	O

<a	B-Code_Block	B-Code_Block
href=url>url</a>	I-Code_Block	I-Code_Block

How	O	O
would	O	O
I	O	O
show	O	O
this	O	O
?	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
how	O	O
to	O	O
translate	O	O
this	O	O
into	O	O
regex	O	B-Library
..	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
the	O	O
following	O	O
:	O	O

[	B-Code_Block	B-Code_Block
LINK	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
[	B-Code_Block	B-Code_Block
a-zA-Z0-9_-.	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block
[	I-Code_Block	I-Code_Block
/LINK	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block

But	O	O
obviously	O	O
that	O	O
is	O	O
n't	O	O
right	O	O
:(	O	O

Explanation	O	O
:	O	O

Catch	O	O
links	O	O
but	O	O
would	O	O
always	O	O
require	O	O
leading	O	O
http://	O	O
or	O	O
https://	O	O
else	O	O
the	O	O
url	O	O
would	O	O
be	O	O
example.com/google.com	O	O
also	O	O
you	O	O
should	O	O
use	O	O
preg_replace_callback()	O	B-Function
as	O	O
its	O	O
possible	O	O
to	O	O
xss	O	B-Library
unsanitized	O	O
input	O	O
.	O	O

Here	O	O
are	O	O
some	O	O
examples	O	O
:	O	O

Or	O	O
Strip	O	O
the	O	O
http://	O	O
&	O	O
https://	O	O
from	O	O
the	O	O
link	O	O
then	O	O
append	O	O
it	O	O
when	O	O
outputting	O	O
.	O	O

Or	O	O
A	O	O
different	O	O
way	O	O
to	O	O
have	O	O
BB	O	B-Language
code	O	I-Language
links	O	O
,	O	O
then	O	O
you	O	O
can	O	O
specify	O	O
Link	O	O
name	O	O
from	O	O
link	O	O
address	O	O
,	O	O
the	O	O
call	O	O
back	O	O
function	O	O
can	O	O
be	O	O
made	O	O
to	O	O
handle	O	O
multiple	O	O
types	O	O
of	O	O
outputs	O	O
.	O	O

I	O	O
have	O	O
a	O	O
tables	O	B-Data_Structure
:	O	O

Analyses	O	B-Variable
,	O	O
columns(id	B-Code_Block	B-Data_Structure
,	I-Code_Block	O
name	I-Code_Block	B-Variable
,	I-Code_Block	O
game_id(FK	I-Code_Block	B-Variable
));	I-Code_Block	I-Variable

Games	O	B-Variable
,	O	O
columns(id	B-Code_Block	B-Data_Structure
,	I-Code_Block	O
name	I-Code_Block	B-Variable
,	I-Code_Block	O
round_id(FK	I-Code_Block	B-Variable
));	I-Code_Block	I-Variable

Round	O	B-Variable
,	O	O
columns(id,	B-Code_Block	B-Data_Structure
round)	I-Code_Block	B-Variable
;	O	O

I	O	O
need	O	O
get	O	O
all	O	O
records	O	O
of	O	O
Analyses	O	B-Variable
order	O	O
by	O	O
(	O	O
round_id	B-Code_Block	B-Variable
)	O	O
.	O	O

I	O	O
try	O	O
Analyses::orderBy('round_id')->get()	B-Code_Block	B-Code_Block
,	O	O
but	O	O
not	O	O
work	O	O
;	O	O

First	O	O
of	O	O
all	O	O
,	O	O
you	O	O
dont	O	O
have	O	O
that	O	O
column	O	B-Data_Structure
in	O	O
your	O	O
analyses	O	O
table	O	B-Data_Structure

to	O	O
do	O	O
the	O	O
orderby	O	O
you	O	O
have	O	O
to	O	O
add	O	O
this	O	O
to	O	O
your	O	O
relation	O	O
(	O	O
assuming	O	O
they	O	O
are	O	O
correctly	O	O
done	O	O
)	O	O

Analyses	O	O
model	O	O

Games	O	B-Variable
model	O	O

Now	O	O
you	O	O
can	O	O
get	O	O
all	O	O
the	O	O
Analyses	O	B-Variable
with	O	O
the	O	O
games	O	O
and	O	O
round	O	O
using	O	O
eagerloading	O	O
like	O	O
this	O	O

you	O	O
can	O	O
chain	O	O
another	O	O
orderby	O	O
for	O	O
Analyses	O	B-Variable
like	O	O
this	O	O
for	O	O
exemple	O	O

in	O	O
the	O	O
above	O	O
exemple	O	O
,	O	O
you	O	O
will	O	O
have	O	O
Analyses	O	O
ordered	O	O
by	O	O
game_id	O	B-Variable
and	O	O
the	O	O
games	O	O
inside	O	O
each	O	O
Analyse	O	B-Variable
will	O	O
be	O	O
orderedby	O	O
round_id	O	B-Variable

I	O	O
hope	O	O
this	O	O
is	O	O
what	O	O
you	O	O
want	O	O
to	O	O
do	O	O

Analyses	O	B-Variable
model	O	O

Round	O	B-Variable
Model	O	O

Game	O	B-Variable
Model	O	O

Your	O	O
Query	O	O
Should	O	O
be	O	O
like	O	O
This	O	O

I	O	O
'm	O	O
reading	O	O
the	O	O
book	O	O
Programming	B-Code_Block	O
Entity	I-Code_Block	O
Framework	I-Code_Block	O
:	I-Code_Block	O
DbContext	I-Code_Block	O
and	O	O
I	O	O
just	O	O
read	O	O
the	O	O
chapter	O	O
on	O	O
the	O	O
three	O	O
data	O	O
loading	O	O
types	O	O
:	O	O

Lazy	O	B-Algorithm
loading	O	I-Algorithm
(	O	O
default	O	O
)	O	O

Eager	O	B-Algorithm
loading	O	I-Algorithm

Explicit	O	B-Algorithm
loading	O	I-Algorithm

Now	O	O
I	O	O
'm	O	O
asking	O	O
myself	O	O
which	O	O
data	O	O
loading	O	O
is	O	O
better	O	O
in	O	O
which	O	O
situation	O	O
.	O	O

A	O	O
concrete	O	O
comparison	O	O
would	O	O
be	O	O
nice	O	O
!	O	O

I	O	O
have	O	O
n't	O	O
found	O	O
any	O	O
.	O	O

For	O	O
example	O	O
,	O	O
I	O	O
'm	O	O
using	O	O
default	O	O
lazy	O	B-Algorithm
loading	O	I-Algorithm
on	O	O
a	O	O
module	O	O
for	O	O
a	O	O
client	O	B-Application
.	O	O

This	O	O
module	O	O
deals	O	O
with	O	O
sales	O	O
reps	O	O
and	O	O
imply	O	O
these	O	O
related	O	O
tables	O	O
:	O	O

Reps	O	B-Variable

Reps_Zones	O	B-Variable

Reps_Prerequisites	O	B-Variable

Users	O	B-Variable

Reps_Languages	O	B-Variable

etc	O	O
.	O	O

On	O	O
the	O	O
module	O	O
,	O	O
I	O	O
use	O	O
all	O	O
these	O	O
tables	O	O
to	O	O
dispatch	O	O
appointments	O	O
(	O	O
about	O	O
150	O	O
appointments	O	O
to	O	O
50	O	O
reps	O	O
at	O	O
a	O	O
time	O	O
)	O	O
,	O	O
but	O	O
it	O	O
's	O	O
slow	O	O
.	O	O

Would	O	O
using	O	O
a	O	O
different	O	O
loading	O	O
strategy	O	O
really	O	O
improve	O	O
the	O	O
performances	O	O
?	O	O

Lazy-loading	O	B-Algorithm
seems	O	O
most	O	O
suitable	O	O
for	O	O
smaller	O	O
apps	O	O
without	O	O
separate	O	O
data	O	O
layers	O	O
.	O	O

Once	O	O
the	O	O
app	O	O
grows	O	O
and	O	O
you	O	O
start	O	O
separating	O	O
it	O	O
into	O	O
separate	O	O
layers	O	O
,	O	O
lazy	O	B-Algorithm
loading	O	I-Algorithm
becomes	O	O
less	O	O
useful	O	O
.	O	O

The	O	O
DBcontext	O	B-Class
has	O	O
long	O	O
since	O	O
been	O	O
destroyed	O	O
by	O	O
the	O	O
time	O	O
the	O	O
data	O	O
gets	O	O
to	O	O
the	O	O
UI	O	O
layer	O	O
,	O	O
and	O	O
while	O	O
you	O	O
are	O	O
within	O	O
the	O	O
datalayer	O	O
it	O	O
is	O	O
not	O	O
a	O	O
big	O	O
deal	O	O
to	O	O
specify	O	O
the	O	O
properites	O	O
to	O	O
load	O	O
.	O	O

Lazy	O	B-Algorithm
loading	O	I-Algorithm
is	O	O
turned	O	O
off	O	O
for	O	O
validation	O	O
,	O	O
so	O	O
if	O	O
a	O	O
property	O	O
is	O	O
marked	O	O
as	O	O
required	O	O
and	O	O
you	O	O
have	O	O
only	O	O
loaded	O	O
the	O	O
parent	O	O
an	O	O
error	O	O
will	O	O
always	O	O
be	O	O
thrown	O	O
which	O	O
is	O	O
very	O	O
frustrating	O	O
.	O	O

Lazy	O	B-Algorithm
loading	O	I-Algorithm
also	O	O
makes	O	O
debugging	O	O
rather	O	O
tricky	O	O
as	O	O
the	O	O
query	O	O
isnt	O	O
executed	O	O
until	O	O
it	O	O
is	O	O
used	O	O
so	O	O
you	O	O
ca	O	O
n't	O	O
examine	O	O
the	O	O
results	O	O
of	O	O
the	O	O
query	O	O
as	O	O
easily	O	O
.	O	O

I	O	O
usually	O	O
add	O	O
a	O	O
ToList()	O	B-Function
or	O	O
similar	O	O
to	O	O
my	O	O
EF	O	O
queries	O	O
so	O	O
I	O	O
can	O	O
easily	O	O
examine	O	O
the	O	O
results	O	O
.	O	O

It	O	O
seems	O	O
like	O	O
there	O	O
's	O	O
a	O	O
bug	O	O
with	O	O
the	O	O
facebook	O	B-Website
page	O	O
tabs	O	B-User_Interface_Element
.	O	O

Lots	O	O
of	O	O
them	O	O
are	O	O
rendering	O	O
content	O	O
on	O	O
the	O	O
bottom	O	O
of	O	O
the	O	O
page	O	B-User_Interface_Element
.	O	O

Is	O	O
there	O	O
a	O	O
change	O	O
that	O	O
developers	O	O
must	O	O
be	O	O
aware	O	O
of	O	O
?	O	O

Problem	O	O
still	O	O
persists	O	O
.	O	O

There	O	O
is	O	O
a	O	O
bug	O	O
listed	O	O
on	O	O
Facebook	O	B-Website
http://developers.facebook.com/bugs/298512163544012?browse=search_4f3c5c801a70d4639459595	O	O
.	O	O

I	O	O
hope	O	O
it	O	O
gets	O	O
prioritized	O	O
.	O	O

It	O	O
is	O	O
in	O	O
fact	O	O
a	O	O
bug	O	O
.	O	O

I	O	O
've	O	O
just	O	O
spent	O	O
an	O	O
hour	O	O
looking	O	O
into	O	O
it	O	O
.	O	O

It	O	O
appears	O	O
that	O	O
they	O	O
have	O	O
increased	O	O
the	O	O
width	O	O
of	O	O
the	O	O
right	O	O
pane	O	B-User_Interface_Element
and	O	O
it	O	O
has	O	O
caused	O	O
the	O	O
content	O	B-User_Interface_Element
area	O	I-User_Interface_Element
to	O	O
shrink	O	O
to	O	O
less	O	O
than	O	O
520px	O	B-Value
.	O	O

Unfortunately	O	O
,	O	O
the	O	O
iframe	O	B-HTML_XML_Tag
that	O	O
Facebook	O	B-Website
uses	O	O
to	O	O
display	O	O
app	O	O
content	O	O
is	O	O
hardcoded	O	O
with	O	O
a	O	O
520px	O	B-Value
width	O	O
and	O	O
you	O	O
are	O	O
unable	O	O
to	O	O
modify	O	O
it	O	O
.	O	O

Need	O	O
to	O	O
wait	O	O
till	O	O
Facebook	O	B-Website
pushes	O	O
out	O	O
an	O	O
update	O	O
.	O	O

Edit	O	O
:	O	O
Bug	O	O
reported	O	O
to	O	O
facebook	O	B-Website
already	O	O
.	O	O

Details	O	O
here	O	O

I	O	O
see	O	O
it	O	O
is	O	O
used	O	O
in	O	O
separate	O	O
window	O	B-User_Interface_Element
by	O	O
blue	O	B-Application
griffon	O	I-Application
,	O	O
but	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
make	O	O
it	O	O
edit	O	O
the	O	O
svg	O	B-File_Type
in	O	O
place	O	O
?	O	O

In	O	O
theory	O	O
you	O	O
could	O	O
open	O	O
svg-edit.html	O	B-File_Name
and	O	O
remove	O	O
any	O	O
html	O	B-HTML_XML_Tag
,	O	O
head	O	B-HTML_XML_Tag
,	O	O
and	O	O
body	O	B-HTML_XML_Tag
tags	O	O
and	O	O
move	O	O
the	O	O
content	O	O
of	O	O
the	O	O
page	O	O
to	O	O
your	O	O
page	O	O
and	O	O
then	O	O
load	O	O
js/css	O	B-Language
resources	O	O
on	O	O
your	O	O
page	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
specific	O	O
need	O	O
to	O	O
place	O	O
it	O	O
inline	O	O
though	O	O
?	O	O

You	O	O
can	O	O
still	O	O
interact	O	O
with	O	O
SVG-Edit	O	B-Application
even	O	O
while	O	O
it	O	O
's	O	O
in	O	O
an	O	O
iframe	O	B-HTML_XML_Tag
if	O	O
you	O	O
need	O	O
to	O	O
.	O	O

For	O	O
example	O	O
,	O	O
to	O	O
get	O	O
the	O	O
SVG	O	B-File_Type
content	O	O
that	O	O
the	O	O
user	O	O
is	O	O
editing	O	O
,	O	O
you	O	O
would	O	O
use	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
how	O	O
to	O	O
set	O	O
to	O	O
ListBoxItem	O	B-Class
different	O	O
showing	O	O
text	O	O
and	O	O
different	O	O
hidden	O	O
value	O	O
.	O	O

I	O	O
want	O	O
same	O	O
thing	O	O
as	O	O
I	O	O
can	O	O
do	O	O
in	O	O
HTML	O	B-Language
that	O	O
way	O	O
:	O	O

Of	O	O
course	O	O
,	O	O
but	O	O
that	O	O
's	O	O
not	O	O
the	O	O
way	O	O
you	O	O
do	O	O
things	O	O
with	O	O
XAML	O	B-Language
.	O	O

You	O	O
could	O	O
set	O	O
a	O	O
Tag	B-Code_Block	B-Function
property	O	O
on	O	O
your	O	O
ListBoxItem	B-Code_Block	B-Class
to	O	O
anything	O	O
,	O	O
but	O	O
the	O	O
common	O	O
approach	O	O
is	O	O
to	O	O
use	O	O
the	O	O
MVVM	O	O
pattern	O	O
and	O	O
bindings	O	O
where	O	O
you	O	O
would	O	O
set	O	O
ItemsSource	B-Code_Block	B-Function
of	O	O
your	O	O
ListBox	B-Code_Block	B-Class
to	O	O
a	O	O
collection	O	O
of	O	O
items	O	O
and	O	O
each	O	O
of	O	O
your	O	O
items	O	O
would	O	O
have	O	O
properties	O	O
to	O	O
display	O	O
and	O	O
other	O	O
properties	O	O
to	O	O
use	O	O
elsewhere	O	O
.	O	O

You	O	O
would	O	O
bind	O	O
the	O	O
visible	O	O
properties	O	O
to	O	O
the	O	O
elements	O	O
in	O	O
the	O	O
ItemTemplate	B-Code_Block	B-Function
of	O	O
your	O	O
ListBox	B-Code_Block	B-Class
and	O	O
bind	O	O
SelectedItem	B-Code_Block	B-Function
of	O	O
the	O	O
ListBox	B-Code_Block	B-Class
with	O	O
a	O	O
TwoWay	B-Code_Block	B-Function
binding	O	O
to	O	O
a	O	O
property	O	O
of	O	O
your	O	O
view	O	O
model	O	O
.	O	O

Now	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
care	O	O
about	O	O
patterns	O	O
and	O	O
simply	O	O
want	O	O
to	O	O
see	O	O
it	O	O
working	O	O
-	O	O
go	O	O
ahead	O	O
and	O	O
use	O	O
the	O	O
Tag	B-Code_Block	B-Function
and	O	O
the	O	O
SelectionChanged	B-Code_Block	B-Function
event	O	O
.	O	O

In	O	O
Safari	O	B-Application
the	O	O
colors	O	O
are	O	O
not	O	O
showing	O	O
up	O	O
correctly	O	O
.	O	O

However	O	O
everything	O	O
is	O	O
working	O	O
in	O	O
IE	O	B-Application
,	O	O
FF	O	B-Application
and	O	O
Chrome	O	B-Application
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
make	O	O
it	O	O
work	O	O
cross-browser	O	B-Application
.	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
accomplish	O	O
that	O	O
?	O	O

Why	O	O
does	O	O
n't	O	O
Safari	O	B-Application
show	O	O
the	O	O
right	O	O
colors	O	O
fpr	O	O
my	O	O
css	O	B-Language
buttons	O	B-User_Interface_Element
and	O	O
background	O	B-User_Interface_Element
color	O	O
and	O	O
how	O	O
can	O	O
this	O	O
be	O	O
solved	O	O
to	O	O
make	O	O
it	O	O
work	O	O
in	O	O
all	O	O
major	O	O
browsers	O	B-Application
?	O	O

Thank	O	O
you	O	O
for	O	O
reading	O	O
this	O	O
question	O	O
.	O	O

EDIT	O	O
1	O	O
Screenshots	O	O

As	O	O
requested	O	O
in	O	O
the	O	O
comments	O	O
:	O	O
I	O	O
added	O	O
2	O	O
screenshots	O	O
to	O	O
show	O	O
what	O	O
is	O	O
not	O	O
working.	O	O
.	O	O

Note	O	O
:	O	O
The	O	O
blue	O	O
arrow	O	B-User_Interface_Element
is	O	O
working	O	O
and	O	O
is	O	O
not	O	O
an	O	O
issue	O	O
,	O	O
just	O	O
did	O	O
n't	O	O
incude	O	O
it	O	O
to	O	O
the	O	O
Safari	O	B-Application
screen	O	O
capture	O	O
..	O	O
.	O	O

The	O	O
background	O	B-User_Interface_Element
color	O	O
and	O	O
the	O	O
color	O	O
used	O	O
by	O	O
the	O	O
css	O	B-Language
buttons	O	B-User_Interface_Element
are	O	O
the	O	O
issue.	O	O
.	O	O

The	O	O
picture	O	O
below	O	O
is	O	O
a	O	O
firefox	O	B-Application
42	O	B-Version
screen	O	O
capture	O	O
,	O	O
it	O	O
looks	O	O
like	O	O
this	O	O
in	O	O
MSIE	O	B-Application
and	O	O
Chrome	O	B-Application
as	O	O
well	O	O
.	O	O

The	O	O
picture	O	O
below	O	O
is	O	O
a	O	O
Safari	O	B-Application
5.1.7	O	B-Version
screen	O	O
capture	O	O

For	O	O
older	O	O
versions	O	O
of	O	O
Safari	O	B-Application
use	O	O
:	O	O
-webkit-linear-gradient(#FFF,#000)	B-Code_Block	B-Code_Block
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
use	O	O
vector	O	B-Data_Structure
variables	O	O
as	O	O
global	O	B-Data_Type
and	O	O
externing	O	O
it	O	O
to	O	O
use	O	O
it	O	O
in	O	O
another	O	O
file	O	O
,	O	O
Here	O	O
is	O	O
my	O	O
code	O	O

Header	O	B-File_Type
file	O	O
:	O	O

My	O	O
header	O	O
file	O	O
has	O	O
no	O	O
definition	O	O
of	O	O
the	O	O
vector	O	B-Data_Structure
variables	O	O
.	O	O

Main.cpp	O	B-File_Name

functions.cpp	O	B-File_Name

However	O	O
I	O	O
am	O	O
getting	O	O
the	O	O
following	O	O
error	O	O
:	O	O

I	O	O
am	O	O
new	O	O
to	O	O
C++	O	B-Language
,	O	O
could	O	O
anyone	O	O
please	O	O
help	O	O
me	O	O
out	O	O
here	O	O
.	O	O

change	O	O

to	O	O

because	O	O
extern	B-Code_Block	B-Code_Block
std::vector<Point2f>	I-Code_Block	I-Code_Block
obj_corners(4)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
is	O	O
a	O	O
definition	O	O
since	O	O
you	O	O
provide	O	O
an	O	O
initializer	O	O
.	O	O

What	O	O
you	O	O
need	O	O
is	O	O
a	O	O
declaration	O	O
just	O	O
to	O	O
let	O	O
the	O	O
program	O	O
know	O	O
that	O	O
vector	O	B-Data_Structure
exists	O	O
somewhere	O	O
else	O	O
in	O	O
this	O	O
program	O	O
.	O	O

I	O	O
have	O	O
a	O	O
case	O	O
where	O	O
I	O	O
want	O	O
to	O	O
check	O	O
if	O	O
an	O	O
optional	O	B-Data_Type
I	O	O
have	O	O
is	O	O
Equal	O	O
to	O	O
a	O	O
string	O	B-Data_Type
.	O	O

First	O	O
I	O	O
have	O	O
to	O	O
unwrap	O	O
it	O	O
to	O	O
check	O	O
if	O	O
it	O	O
exists	O	O
,	O	O
then	O	O
I	O	O
want	O	O
to	O	O
check	O	O
if	O	O
it	O	O
is	O	O
equal	O	O
to	O	O
another	O	O
string	O	B-Data_Type
.	O	O

However	O	O
that	O	O
gives	O	O
me	O	O
a	O	O
problem	O	O
where	O	O
I	O	O
have	O	O
to	O	O
write	O	O
the	O	O
same	O	O
code	O	O
twice	O	O
.	O	O

I	O	O
'll	O	O
give	O	O
you	O	O
an	O	O
example	O	O
:	O	O

As	O	O
you	O	O
can	O	O
see	O	O
,	O	O
I	O	O
have	O	O
to	O	O
write	O	O
the	O	O
else	O	O
statement	O	O
twice	O	O
.	O	O

Once	O	O
,	O	O
if	O	O
the	O	O
name	O	B-Variable
exists	O	O
and	O	O
it	O	O
is	O	O
not	O	O
'	O	O
John	O	B-Value
'	O	O
,	O	O
and	O	O
another	O	O
time	O	O
for	O	O
when	O	O
the	O	O
name	O	B-Variable
does	O	O
not	O	O
exist	O	O
.	O	O

My	O	O
question	O	O
is	O	O
,	O	O
how	O	O
can	O	O
this	O	O
be	O	O
done	O	O
the	O	O
proper	O	O
way	O	O
.	O	O

Thanks	O	O
for	O	O
your	O	O
help	O	O
!	O	O

Optional	B-Code_Block	B-Data_Type
has	O	O
an	O	O
==	B-Code_Block	B-Code_Block
operator	O	O
defined	O	O
for	O	O
it	O	O
in	O	O
the	O	O
Swift	O	B-Language
standard	O	O
library	O	O
:	O	O

That	O	O
means	O	O
if	O	O
the	O	O
optional	O	B-Data_Type
contains	O	O
a	O	O
value	O	O
that	O	O
's	O	O
equatable	O	O
,	O	O
you	O	O
can	O	O
compare	O	O
two	O	O
optionals	O	B-Data_Type
.	O	O

If	O	O
the	O	O
two	O	O
optionals	O	B-Data_Type
are	O	O
both	O	O
nil	O	O
they	O	O
're	O	O
equal	O	O
,	O	O
and	O	O
if	O	O
the	O	O
two	O	O
optionals	O	B-Data_Type
wrap	O	O
values	O	O
that	O	O
are	O	O
equal	O	O
,	O	O
then	O	O
they	O	O
're	O	O
equal	O	O
.	O	O

So	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
care	O	O
about	O	O
whether	O	O
person.name	B-Code_Block	B-Variable
is	O	O
nil	B-Code_Block	B-Value
or	O	O
not	O	O
,	O	O
just	O	O
whether	O	O
it	O	O
contains	O	O
a	O	O
value	O	O
of	O	O
"	O	B-Value
John	O	I-Value
"	O	I-Value
,	O	O
you	O	O
can	O	O
just	O	O
write	O	O
if	B-Code_Block	B-Code_Block
person.name	I-Code_Block	I-Code_Block
==	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
John	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
.	O	O

How	O	O
does	O	O
that	O	O
work	O	O
,	O	O
when	O	O
"	O	B-Value
John	O	I-Value
"	O	I-Value
is	O	O
a	O	O
String	B-Code_Block	B-Data_Type
not	O	O
a	O	O
String	B-Code_Block	B-Data_Type
?	I-Code_Block	O
?	O	O

*	O	O
Because	O	O
Swift	O	B-Language
will	O	O
implicitly	O	O
convert	O	O
any	O	O
type	O	O
to	O	O
an	O	O
optional	O	B-Data_Type
wrapping	O	O
that	O	O
type	O	O
if	O	O
that	O	O
's	O	O
what	O	O
an	O	O
argument	O	O
requires	O	O
.	O	O

So	O	O
because	O	O
the	O	O
==	B-Code_Block	B-Code_Block
function	O	O
for	O	O
comparing	O	O
optionals	O	B-Data_Type
requires	O	O
a	O	O
String	B-Code_Block	B-Data_Type
?	I-Code_Block	I-Data_Type
argument	O	O
,	O	O
"	O	B-Value
John	O	I-Value
"	O	I-Value
will	O	O
be	O	O
implicitly	O	O
converted	O	O
to	O	O
{	B-Code_Block	B-Code_Block
Some	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
John	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
,	O	O
allowing	O	O
the	O	O
==	B-Code_Block	B-Code_Block
operator	O	O
between	O	O
two	O	O
optionals	O	B-Data_Type
to	O	O
be	O	O
used	O	O
.	O	O

*	O	O
well	O	O
actually	O	O
"	O	B-Value
John	O	I-Value
"	O	I-Value
is	O	O
n't	O	O
a	O	O
String	B-Code_Block	B-Data_Type
either	O	O
,	O	O
it	O	O
's	O	O
a	O	O
string	O	B-Data_Type
literal	O	O
that	O	O
is	O	O
getting	O	O
converted	O	O
into	O	O
a	O	O
String	B-Code_Block	B-Data_Type

Since	O	O
you	O	O
are	O	O
testing	O	O
for	O	O
three	O	O
different	O	O
conditions	O	O
,	O	O
correct	O	O
value	O	O
,	O	O
incorrect	O	O
value	O	O
,	O	O
or	O	O
no	O	O
value	O	O
,	O	O
there	O	O
will	O	O
be	O	O
some	O	O
amount	O	O
of	O	O
duplication	O	O
.	O	O

This	O	O
can	O	O
be	O	O
minimized	O	O
by	O	O
extracting	O	O
the	O	O
duplication	O	O
into	O	O
a	O	O
new	O	O
method	O	O
,	O	O
such	O	O
as	O	O
:	O	O

I	O	O
have	O	O
configured	O	O
database	O	O
properly	O	O
.	O	O

If	O	O
I	O	O
want	O	O
to	O	O
access	O	O
the	O	O
data	O	O
from	O	O
the	O	O
table	O	O
hello	B-Code_Block	B-Variable
in	O	O
the	O	O
database	O	O
called	O	O
genes	B-Code_Block	B-Variable
.	O	O

What	O	O
's	O	O
the	O	O
proper	O	O
way	O	O
to	O	O
do	O	O
it	O	O
?	O	O

I	O	O
ca	O	O
n't	O	O
do	O	O
from	O	O
books.models	B-Code_Block	B-Code_Block
import	I-Code_Block	I-Code_Block
hello	I-Code_Block	I-Code_Block
as	O	O
I	O	O
do	O	O
n't	O	O
have	O	O
hello	O	B-Variable
in	O	O
models.py	O	B-File_Name
.	O	O

The	O	O
database	O	O
genes	O	B-Variable
and	O	O
table	O	O
hello	O	B-Variable
is	O	O
not	O	O
the	O	O
default	O	O
Django	O	B-Library
database	O	O
.	O	O

I	O	O
have	O	O
two	O	O
databases	O	O
.	O	O

I	O	O
have	O	O
already	O	O
setup	O	O
Router	B-Code_Block	B-Class
.	O	O

I	O	O
want	O	O
to	O	O
now	O	O
access	O	O
data	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
that	O	O
?	O	O

Thanks	O	O

You	O	O
need	O	O
to	O	O
do	O	O
a	O	O
few	O	O
things.	O	O
.	O	O

settings.py	O	B-File_Name

routers.py	O	B-File_Name

One	O	O
you	O	O
have	O	O
this	O	O
set	O	O
up	O	O
then	O	O
you	O	O
need	O	O
to	O	O
create	O	O
the	O	O
models.py	O	B-File_Name
file	O	O
for	O	O
the	O	O

models.py	O	B-File_Name

To	O	O
do	O	O
this	O	O
progmatically.	O	O
.	O	O

Once	O	O
this	O	O
is	O	O
done	O	O
-	O	O
you	O	O
should	O	O
be	O	O
able	O	O
to	O	O
Query	O	B-Class
using	O	O
standard	O	O
Django	O	B-Library
querysets	O	B-Class

I	O	O
need	O	O
to	O	O
ask	O	O
,	O	O
how	O	O
to	O	O
set	O	O
height	O	B-Variable
on	O	O
all	O	O
images	O	B-User_Interface_Element
which	O	O
are	O	O
on	O	O
specific	O	O
list	O	B-User_Interface_Element
and	O	O
class	O	O
.	O	O

I	O	O
have	O	O
HTML	O	B-Language
:	O	O

And	O	O
I	O	O
tried	O	O
to	O	O
do	O	O
it	O	O
with	O	O
this	O	O
code	O	O
sample	O	O
,	O	O
but	O	O
without	O	O
working	O	O
:	O	O

height	O	B-Variable
:	O	O
10px	O	B-Value
!	O	O
important	O	O
;	O	O

}	O	O

Where	O	O
is	O	O
the	O	O
problem	O	O
?	O	O

How	O	O
to	O	O
change	O	O
CSS	O	B-Language
to	O	O
work	O	O
it	O	O
properly	O	O
?	O	O

I	O	O
need	O	O
to	O	O
change	O	O
height	O	B-Variable
on	O	O
all	O	O
images	O	B-User_Interface_Element
with	O	O
class	O	O
product-category	O	B-Class
.	O	O

Thank	O	O
you	O	O
for	O	O
help	O	O
,	O	O
I	O	O
think	O	O
,	O	O
it	O	O
will	O	O
be	O	O
small	O	O
improvement	O	O
,	O	O
but	O	O
I	O	O
do	O	O
not	O	O
know	O	O
,	O	O
which	O	O
.	O	O

Have	O	O
a	O	O
nice	O	O
day	O	O
!	O	O

li.product-category	B-Code_Block	B-Code_Block
product>img	I-Code_Block	I-Code_Block
selects	O	O
all	O	O
images	O	B-User_Interface_Element
that	O	O
are	O	O
direct	O	O
children	O	O
of	O	O
elements	O	O
<product>	B-Code_Block	B-HTML_XML_Tag
inside	O	O
li-s	B-Code_Block	B-HTML_XML_Tag
with	O	O
'	O	O
product-category	O	B-Class
'	O	O
class	O	O
.	O	O

It	O	O
is	O	O
weird	O	O
.	O	O

Try	O	O
li.product-category	B-Code_Block	B-Code_Block
img	I-Code_Block	I-Code_Block
instead	O	O
.	O	O

The	O	O
"	O	O
>	O	O
"	O	O
in	O	O
CSS	O	B-Language
selector	O	O
means	O	O
immediate	O	O
child	O	O
and	O	O
you	O	O
want	O	O
to	O	O
select	O	O
ing	O	O
,	O	O
which	O	O
has	O	O
an	O	O
a	O	O
tag	O	O
before	O	O
.	O	O

I	O	O
also	O	O
changed	O	O
it	O	O
to	O	O
height	O	B-Variable
,	O	O
according	O	O
your	O	O
question	O	O
.	O	O

It	O	O
should	O	O
be	O	O
like	O	O
:	O	O

or	O	O
if	O	O
you	O	O
want	O	O
any	O	O
<img>	B-Code_Block	B-HTML_XML_Tag
,	O	O
then	O	O
:	O	O

here	O	O
is	O	O
my	O	O
first	O	O
class	O	O
which	O	O
is	O	O
a	O	O
homePage	O	B-User_Interface_Element
frame	O	B-Class
which	O	O
calls	O	O
another	O	O
class	O	O
called	O	O
ProgressSample	O	B-Class
which	O	O
writes	O	O
data	O	O
to	O	O
the	O	O
output	O	B-Class
stream	O	I-Class
and	O	O
also	O	O
updates	O	O
the	O	O
progress	O	O
bar	O	O
simultaneously	O	O
.	O	O

this	O	O
is	O	O
the	O	O
second	O	O
class	O	O
..	O	O
.	O	O

when	O	O
i	O	O
call	O	O
its	O	O
main(......)	O	B-Function
method	O	O
just	O	O
a	O	O
frame	O	B-Class
with	O	O
white	O	O
color	O	O
on	O	O
it	O	O
appears	O	O
nothing	O	O
is	O	O
added	O	O
on	O	O
it	O	O
plz	O	O
plz	O	O
plz	O	O
help	O	O
me	O	O
with	O	O
ur	O	O
suggestions	O	O
as	O	O
soon	O	O
as	O	O
possible	O	O
..	O	O
.	O	O

Is	O	O
it	O	O
different	O	O
from	O	O
foo.bar	O	B-Variable
calling	O	O
a	O	O
function	O	O
from	O	O
a	O	O
specific	O	O
instance	O	O
?	O	O

I	O	O
've	O	O
seen	O	O
it	O	O
around	O	O
on	O	O
tutorials	O	O
but	O	O
it	O	O
's	O	O
never	O	O
explained	O	O
and	O	O
it	O	O
's	O	O
too	O	O
general	O	O
a	O	O
term	O	O
to	O	O
show	O	O
up	O	O
on	O	O
google	O	B-Website
.	O	O

Operator	O	O
operator->	B-Code_Block	B-Code_Block
can	O	O
only	O	O
be	O	O
used	O	O
on	O	O
a	O	O
pointer	O	B-Data_Type
type	O	O
(	O	O
in	O	O
that	O	O
case	O	O
foo->bar	B-Code_Block	B-Code_Block
is	O	O
equivalent	O	O
to	O	O
(	B-Code_Block	B-Code_Block
*	I-Code_Block	I-Code_Block
ptr	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
.bar	B-Code_Block	B-Code_Block
)	O	O
or	O	O
a	O	O
type	O	O
that	O	O
overloads	O	O
operator->	B-Code_Block	B-Code_Block
(	O	O
in	O	O
that	O	O
case	O	O
the	O	O
semantic	O	O
depends	O	O
on	O	O
the	O	O
overload	O	O
itself	O	O
)	O	O
.	O	O

An	O	O
example	O	O
with	O	O
a	O	O
pointer	O	B-Data_Type
type	O	O
might	O	O
be	O	O
:	O	O

An	O	O
example	O	O
for	O	O
an	O	O
overloaded	O	O
type	O	O
could	O	O
be	O	O
:	O	O

foo->bar	O	B-Code_Block
is	O	O
used	O	O
when	O	O
foo	O	B-Variable
is	O	O
pointing	O	O
to	O	O
a	O	O
certain	O	O
data	O	O
type	O	O

foo.bar	O	B-Code_Block
is	O	O
used	O	O
when	O	O
foo	O	B-Class
is	O	O
an	O	O
object	O	O
of	O	O
a	O	O
class	O	O

I	O	O
created	O	O
a	O	O
Service	O	B-Class
Object	O	O
called	O	O
Transaction	O	B-Class
which	O	O
processes	O	O
an	O	O
order	O	O
made	O	O
,	O	O
sets	O	O
up	O	O
the	O	O
payments	O	O
and	O	O
then	O	O
sets	O	O
up	O	O
a	O	O
model	O	O
association	O	O
.	O	O

The	O	O
class	O	O
is	O	O
called	O	O
Transaction	O	B-Class
with	O	O
two	O	O
methods	O	O
,	O	O
initialize	B-Code_Block	B-Function
and	O	O
pay	B-Code_Block	B-Function
.	O	O

I	O	O
am	O	O
testing	O	O
it	O	O
in	O	O
spec/services/	B-Code_Block	B-Code_Block
(	O	O
it	O	O
is	O	O
in	O	O
app/services	B-Code_Block	B-Code_Block
)	O	O
.	O	O

The	O	O
initialize	B-Code_Block	B-Function
method	O	O
takes	O	O
in	O	O
an	O	O
account	B-Code_Block	B-Variable
and	O	O
some	O	O
parameters	O	O
passed	O	O
in	O	O
by	O	O
the	O	O
user	O	O
to	O	O
process	O	O
the	O	O
order	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
test	O	O
pay	B-Code_Block	B-Function
with	O	O
rspec	O	B-Application
.	O	O

How	O	O
do	O	O
I	O	O
actually	O	O
do	O	O
such	O	O
a	O	O
test	O	O
?	O	O

This	O	O
function	O	O
has	O	O
a	O	O
lot	O	O
going	O	O
on	O	O
.	O	O

For	O	O
example	O	O
,	O	O
it	O	O
creates	O	O
new	O	O
models	O	O
,	O	O
and	O	O
then	O	O
sets	O	O
up	O	O
some	O	O
associations	O	O
between	O	O
them	O	O
.	O	O

So	O	O
far	O	O
,	O	O
I	O	O
created	O	O
a	O	O
double	O	B-Data_Type
account	B-Code_Block	B-Variable
as	O	O
follows	O	O
:	O	O

@account	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
double	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
"	B-Code_Block	B-Code_Block
account	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
:confirmed	I-Code_Block	I-Code_Block
=>	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
:confirmed	I-Code_Block	I-Code_Block
?	I-Code_Block	I-Code_Block
=>	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block

However	O	O
,	O	O
there	O	O
are	O	O
many	O	O
functions	O	O
(	O	O
and	O	O
associations	O	O
)	O	O
used	O	O
in	O	O
the	O	O
Transaction	O	B-Class
pay	O	B-Function
method	O	O
.	O	O

So	O	O
for	O	O
example	O	O
when	O	O
these	O	O
associations	O	O
are	O	O
called	O	O
(	O	O
once	O	O
I	O	O
call	O	O
Transaction.pay	B-Code_Block	B-Function
in	O	O
the	O	O
test	O	O
)	O	O
,	O	O
it	O	O
returns	O	O
an	O	O
error	O	O
:	O	O

The	O	O
business	B-Code_Block	B-Variable
model	O	O
is	O	O
a	O	O
double	O	B-Data_Type
just	O	O
like	O	O
account	B-Code_Block	B-Variable
,	O	O
and	O	O
added	O	O
as	O	O
an	O	O
attribute	O	O
to	O	O
@account	B-Code_Block	B-Variable
.	O	O

How	O	O
can	O	O
I	O	O
test	O	O
my	O	O
Transaction.pay	O	B-Function
when	O	O
it	O	O
creates	O	O
new	O	O
models	O	O
and	O	O
associations	O	O
in	O	O
there	O	O
?	O	O

Do	O	O
I	O	O
need	O	O
to	O	O
mock	O	O
all	O	O
of	O	O
them	O	O
as	O	O
shown	O	O
above	O	O
?	O	O

Or	O	O
is	O	O
there	O	O
a	O	O
better	O	O
way	O	O
to	O	O
do	O	O
it	O	O
?	O	O

I	O	O
am	O	O
using	O	O
FactoryGirl	O	B-Application
,	O	O
but	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
use	O	O
it	O	O
as	O	O
my	O	O
account	B-Code_Block	B-Variable
model	O	O
uses	O	O
Devise	O	B-Application
.	O	O

Devise	O	B-Application
test	O	O
helpers	O	O
cannot	O	O
be	O	O
used	O	O
outside	O	O
of	O	O
controllers	O	O
,	O	O
and	O	O
since	O	O
I	O	O
'm	O	O
testing	O	O
in	O	O
services	O	O
,	O	O
it	O	O
wo	O	O
n't	O	O
work	O	O
.	O	O

It	O	O
's	O	O
hard	O	O
to	O	O
be	O	O
specific	O	O
,	O	O
since	O	O
you	O	O
've	O	O
not	O	O
provided	O	O
your	O	O
Transaction	O	B-Class
class	O	O
code	O	O
,	O	O
but	O	O
at	O	O
a	O	O
high	O	O
level	O	O
,	O	O
here	O	O
's	O	O
what	O	O
I	O	O
'd	O	O
recommend	O	O
:	O	O

Do	O	O
not	O	O
use	O	O
FactoryGirl	O	B-Application
or	O	O
Devise	O	B-Application
helpers	O	O
-	O	O
ideally	O	O
,	O	O
you	O	O
're	O	O
writing	O	O
a	O	O
unit	O	O
test	O	O
for	O	O
this	O	O
class	O	O
,	O	O
so	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
any	O	O
external	O	O
dependencies	O	O
.	O	O

Stub	O	O
out	O	O
any	O	O
model	O	O
instances	O	O
you	O	O
're	O	O
dealing	O	O
with	O	O
-	O	O
which	O	O
is	O	O
what	O	O
you	O	O
've	O	O
done	O	O
with	O	O
account	B-Code_Block	B-Variable
.	O	O

Stub	O	O
out	O	O
any	O	O
external	O	O
classes	O	O
being	O	O
used	O	O
within	O	O
the	O	O
service	O	O
(	O	O
such	O	O
as	O	O
Business	B-Code_Block	B-Variable
)	O	O
,	O	O
and	O	O
if	O	O
you	O	O
're	O	O
creating	O	O
instances	O	O
of	O	O
those	O	O
from	O	O
the	O	O
classes	O	O
,	O	O
then	O	O
they	O	O
're	O	O
doubles	O	B-Data_Type
too	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
vague	O	O
example	O	O
with	O	O
no	O	O
real	O	O
implementation	O	O
:	O	O

You	O	O
'll	O	O
note	O	O
I	O	O
've	O	O
only	O	O
required	O	O
the	O	O
transaction	O	B-File_Name
file	O	O
-	O	O
this	O	O
helps	O	O
you	O	O
be	O	O
aware	O	O
of	O	O
what	O	O
other	O	O
classes	O	O
it	O	O
depends	O	O
on	O	O
,	O	O
because	O	O
you	O	O
'll	O	O
(	O	O
ideally	O	O
)	O	O
stub	O	O
the	O	O
constants	O	O
,	O	O
or	O	O
if	O	O
necessary	O	O
,	O	O
require	O	O
other	O	O
files	O	O
.	O	O

It	O	O
'll	O	O
keep	O	O
this	O	O
spec	O	O
's	O	O
running	O	O
time	O	O
much	O	O
better	O	O
too	O	O
.	O	O

Also	O	O
,	O	O
I	O	O
only	O	O
stubbed	O	O
confirmed	B-Code_Block	B-Variable
?	I-Code_Block	I-Variable
,	O	O
not	O	O
confirmed	B-Code_Block	B-Variable
on	O	O
the	O	O
account	O	B-Variable
double	O	B-Data_Type
.	O	O

From	O	O
a	O	O
Rails	O	B-Library
perspective	O	O
they	O	O
mean	O	O
the	O	O
same	O	O
thing	O	O
,	O	O
but	O	O
it	O	O
's	O	O
better	O	O
to	O	O
use	O	O
one	O	O
of	O	O
them	O	O
consistently	O	O
,	O	O
instead	O	O
of	O	O
both	O	O
.	O	O

If	O	O
you	O	O
have	O	O
a	O	O
ton	O	O
of	O	O
setup	O	O
(	O	O
a	O	O
lot	O	O
of	O	O
constants	O	O
and	O	O
test	O	O
doubles	O	B-Data_Type
)	O	O
,	O	O
then	O	O
I	O	O
'd	O	O
take	O	O
that	O	O
as	O	O
a	O	O
sign	O	O
that	O	O
this	O	O
Transaction	O	B-Class
class	O	O
probably	O	O
needs	O	O
to	O	O
be	O	O
broken	O	O
up	O	O
into	O	O
several	O	O
more	O	O
specific	O	O
classes	O	O
.	O	O

My	O	O
sql	O	B-Language
schema	O	O
is	O	O
like	O	O
this	O	O
:	O	O
sqlfiddle	O	B-Application

I	O	O
want	O	O
to	O	O
Show	O	O
the	O	O
TransactionID	O	B-Variable
,	O	O
DoctorID	O	B-Variable
,	O	O
PatientID	O	B-Variable
,	O	O
and	O	O
TotalMedicine	O	B-Variable
(	O	O
obtained	O	O
from	O	O
amount	O	O
of	O	O
MedicineID	O	B-Variable
on	O	O
each	O	O
transaction	O	O
)	O	O
where	O	O
the	O	O
last	O	O
3	O	O
digits	O	O
numbers	O	O
of	O	O
PatientID	O	B-Variable
are	O	O
multiples	O	O
of	O	O
4	O	O
.	O	O

Sort	O	O
the	O	O
data	O	O
in	O	O
ascending	O	O
by	O	O
DoctorID	O	B-Variable
,	O	O
then	O	O
count	O	O
the	O	O
TotalMedicine	O	B-Variable
the	O	O
largest	O	O
,	O	O
smallest	O	O
and	O	O
average	O	O
on	O	O
the	O	O
Doctor	O	B-Variable
ID	O	I-Variable
.	O	O

I	O	O
have	O	O
tried	O	O
this	O	O

but	O	O
it	O	O
didnot	O	O
select	O	O
the	O	O
last	O	O
3	O	O
digit	O	O
of	O	O
the	O	O
PatientID	O	B-Variable
that	O	O
are	O	O
multiplies	O	O
of	O	O
4.	O	O
.	O	O

Add	O	O
Where	B-Code_Block	B-Code_Block
Cast(Substring(PatientId	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
Len(PatientId	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
-	I-Code_Block	I-Code_Block
2	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
3	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
as	I-Code_Block	I-Code_Block
Integer	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
%	I-Code_Block	I-Code_Block
4	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block

Assuming	O	O
that	O	O
you	O	O
ca	O	O
n't	O	O
change	O	O
your	O	O
schema	O	O
to	O	O
give	O	O
tableHeader	B-Code_Block	O
a	O	O
varchar	B-Code_Block	B-Data_Type
data	O	O
type	O	O
,	O	O
or	O	O
a	O	O
char(5)	B-Code_Block	B-Data_Type
,	O	O
you	O	O
need	O	O
to	O	O
account	O	O
for	O	O
the	O	O
spaces	O	O
on	O	O
the	O	O
end	O	O
of	O	O
the	O	O
column	O	B-Data_Structure
.	O	O

RTRIM	O	B-Code_Block
will	O	O
what	O	O
you	O	O
want	O	O
.	O	O

In	O	O
my	O	O
app	O	O
I	O	O
want	O	O
to	O	O
use	O	O
$	O	B-Code_Block
this->forward404	O	I-Code_Block
(	O	I-Code_Block
"	O	I-Code_Block
Data	O	I-Code_Block
not	O	I-Code_Block
found	O	I-Code_Block
"	O	I-Code_Block
)	O	I-Code_Block
;	O	I-Code_Block
to	O	O
output	O	O
individual	O	O
error	O	O
messages	O	O
when	O	O
necessary	O	O
.	O	O

In	O	O
the	O	O
dev	O	O
mode	O	O
it	O	O
works	O	O
fine	O	O
.	O	O

When	O	O
I	O	O
run	O	O
my	O	O
app	O	O
in	O	O
production	O	O
mode	O	O
-	O	O
where	O	O
debug	O	O
is	O	O
set	O	O
to	O	O
false	O	B-Value
in	O	O
getApplicationConfiguration()	O	B-Function
-	O	O
I	O	O
do	O	O
n't	O	O
get	O	O
the	O	O
messages	O	O
anymore	O	O
.	O	O

in	O	O
settings.yml	O	B-File_Name
I	O	O
set	O	O
a	O	O
custom	O	O
404	O	B-Error_Name
action	O	O
.	O	O

all	O	O
:	O	O
.actions	O	O
:	O	O
error_404_module	O	B-Class
:	O	O
main	O	B-Function
error_404_action	O	I-Function
:	O	O
custom404	O	B-Function

How	O	O
can	O	O
I	O	O
pass	O	O
the	O	O
forward404	O	B-Class
to	O	O
my	O	O
custom404Success.php	O	B-File_Name
template	O	O
??	O	O
?	O	O

The	O	O
404	O	B-Error_Name
handling	O	O
is	O	O
completely	O	O
different	O	O
between	O	O
prod	B-Code_Block	B-Class
and	O	O
dev	B-Code_Block	B-Class
.	O	O

In	O	O
prod	B-Code_Block	B-Class
,	O	O
the	O	O
message	O	O
you	O	O
pass	O	O
to	O	O
the	O	O
forward404	B-Code_Block	B-Class
is	O	O
simply	O	O
written	O	O
to	O	O
the	O	O
log	O	O
and	O	O
not	O	O
passed	O	O
to	O	O
the	O	O
handler	O	O
action	O	O
.	O	O

There	O	O
are	O	O
many	O	O
ways	O	O
to	O	O
get	O	O
round	O	O
this	O	O
,	O	O
but	O	O
the	O	O
quickest	O	O
(	O	O
albeit	O	O
dirtiest	O	O
)	O	O
would	O	O
be	O	O
to	O	O
store	O	O
the	O	O
message	O	O
in	O	O
a	O	O
static	O	B-Data_Type
variable	O	O
somewhere	O	O
so	O	O
the	O	O
404	O	B-Error_Name
handler	O	O
can	O	O
access	O	O
it	O	O
once	O	O
the	O	O
process	O	O
gets	O	O
there	O	O
,	O	O
e.g	O	O
.	O	O

In	O	O
your	O	O
action	O	O
,	O	O

And	O	O
in	O	O
your	O	O
404	O	B-Error_Name
handler	O	O
(	O	O
assuming	O	O
it	O	O
's	O	O
in	O	O
CommonActions	O	B-Class
)	O	O
,	O	O

If	O	O
you	O	O
are	O	O
able	O	O
to	O	O
get	O	O
code	O	O
of	O	O
method	O	O
you	O	O
can	O	O
see	O	O
that	O	O
method	O	O
throws	O	O
an	O	O
sfError404Exception	O	B-Error_Name
,	O	O
that	O	O
handles	O	O
respect	O	O
of	O	O
enviroment	O	O
.	O	O

In	O	O
dev	O	B-Class
it	O	O
simple	O	O
throws	O	O
an	O	O
exception	O	O
and	O	O
in	O	O
prod	O	B-Class
it	O	O
might	O	O
be	O	O
handle	O	O
via	O	O
set_exception_handler("my_handle")	O	B-Function
.	O	O

You	O	O
can	O	O
override	O	O
this	O	O
it	O	O
's	O	O
public	O	O
)	O	O

Pardon	O	O
my	O	O
stupidity	O	O
,	O	O
anyone	O	O
knows	O	O
difference	O	O
between	O	O
them	O	O
?	O	O

Will	O	O
catch	O	O
and	O	O
rethrow	O	O
only	O	O
exceptions	O	B-Class
derived	O	O
from	O	O
Exception	B-Code_Block	B-Class
.	O	O

Will	O	O
catch	O	O
and	O	O
rethrow	O	O
any	O	O
exception	O	B-Class
.	O	O

(	O	O
Edit	O	O
:	O	O
Since	O	O
CLRv2	O	B-Library
,	O	O
all	O	O
exceptions	O	B-Class
are	O	O
derived	O	O
from	O	O
Exception	B-Code_Block	B-Class
so	O	O
this	O	O
is	O	O
identical	O	O
to	O	O
1	O	O
.	O	O

See	O	O
Eric	O	B-User_Name
Lippert	O	I-User_Name
's	O	O
comment	O	O
below	O	O
)	O	O
.	O	O

Will	O	O
catch	O	O
any	O	O
exception	O	B-Class
derived	O	O
from	O	O
Exception	B-Code_Block	B-Class
and	O	O
throw	O	O
it	O	O
again	O	O
,	O	O
thus	O	O
resetting	O	O
the	O	O
stack	O	O
trace	O	O
of	O	O
the	O	O
exception	O	B-Class
.	O	O

There	O	O
is	O	O
no	O	O
difference	O	O
between	O	O
example	O	O
1	O	O
and	O	O
2	O	O
.	O	O

Both	O	O
rethrows	O	O
the	O	O
original	O	O
exception	O	B-Class
,	O	O
and	O	O
both	O	O
catches	O	O
the	O	O
general	O	O
Exception	B-Code_Block	B-Class
.	O	O

You	O	O
would	O	O
use	O	O
example	O	O
1	O	O
if	O	O
you	O	O
wanted	O	O
to	O	O
catch	O	O
a	O	O
more	O	O
specific	O	O
exception	O	B-Class
,	O	O
such	O	O
as	O	O
DivisionByZeroException	B-Code_Block	B-Class
.	O	O

For	O	O
the	O	O
last	O	O
example	O	O
,	O	O
you	O	O
are	O	O
not	O	O
re-throwing	O	O
the	O	O
exception	O	B-Class
;	O	O
but	O	O
throwing	O	O
the	O	O
same	O	O
exception	O	B-Class
object	O	O
that	O	O
you	O	O
caught	O	O
.	O	O

This	O	O
causes	O	O
the	O	O
exception	O	B-Class
stacktrace	O	O
to	O	O
be	O	O
re-set	O	O
to	O	O
the	O	O
location	O	O
where	O	O
you	O	O
throw	O	O
it	O	O
-	O	O
which	O	O
might	O	O
be	O	O
a	O	O
problem	O	O
because	O	O
the	O	O
stacktrace	O	O
then	O	O
does	O	O
not	O	O
point	O	O
to	O	O
the	O	O
location	O	O
in	O	O
code	O	O
,	O	O
where	O	O
the	O	O
error	O	O
actually	O	O
occured	O	O
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
Durable	O	B-Application
function	O	I-Application
(	O	O
Orchestration	O	O
function	O	O
)	O	O
and	O	O
seen	O	O
sample	O	O
application	O	O
as	O	O
per	O	O
Microsoft	O	B-Website
documentation.So	O	O
I	O	O
have	O	O
few	O	O
doubts	O	O
.	O	O

example	O	O
:	O	O

to	O	O
invoke	O	O
it	O	O
I	O	O
made	O	O
HTTP	O	B-Function
POST	O	I-Function
request	O	O
using	O	O
postman	O	B-Application
so	O	O
request	O	O
processed	O	O
successfully	O	O
but	O	O
when	O	O
I	O	O
configured	O	O
different	O	O
verb	O	O
like	O	O
HTTP	O	B-Function
GET	O	I-Function
it	O	O
was	O	O
responded	O	O
with	O	O
NotFound	O	B-Error_Name
"	O	O
error	O	O
in	O	O
console	O	O
as	O	O
well	O	O
as	O	O
request	O	O
made	O	O
to	O	O
it	O	O
with	O	O
http	O	O
request	O	O
from	O	O
browser	O	O
responded	O	O
with	O	O
"	O	O
NotFound	O	B-Error_Name
"	O	O
error	O	O
in	O	O
console	O	B-Application
.Why	O	O
this	O	O
happened	O	O
?	O	O

Can	O	O
I	O	O
invoke	O	O
any	O	O
Orchestration	O	O
function	O	O
with	O	O
in	O	O
timer	O	O
trigger	O	O
azure	O	B-Application
function	O	I-Application
?	O	O

If	O	O
not	O	O
why	O	O
?	O	O

UPDATE	O	O
:	O	O

Some	O	O
additional	O	O
details	O	O
about	O	O
question	O	O

can	O	O
I	O	O
make	O	O
request	O	O
to	O	O
http	O	O
trigger	O	O
by	O	O
timer	O	O
triggred	O	O
why	O	O
because	O	O
my	O	O
durable	O	O
function	O	O
has	O	O
long	O	O
running	O	O
process	O	O
so	O	O
if	O	O
invoke	O	O
orchestration	O	O
function	O	O
in	O	O
timer	O	O
trigger	O	O
itself	O	O
so	O	O
there	O	O
might	O	O
be	O	O
possibility	O	O
of	O	O
timer	O	O
triggered	O	O
timeout	O	O
so	O	O
that	O	O
why	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
follow	O	O
this	O	O
approach.Is	O	O
it	O	O
possible	O	O
to	O	O
invoke	O	O
by	O	O
above	O	O
code	O	O
?	O	O

This	O	O
is	O	O
general	O	O
Azure	O	B-Application
Functions	O	I-Application
behavior	O	O
.	O	O

The	O	O
reason	O	O
GET	O	B-Function
does	O	O
n't	O	O
work	O	O
is	O	O
because	O	O
the	O	O
function	O	O
in	O	O
the	O	O
sample	O	O
is	O	O
only	O	O
configured	O	O
to	O	O
work	O	O
with	O	O
POST	O	B-Function
.	O	O

See	O	O
the	O	O
[	B-Code_Block	B-Variable
HttpTrigger	I-Code_Block	I-Variable
]	I-Code_Block	I-Variable
attribute	O	O
in	O	O
the	O	O
function	O	O
signature	O	O
:	O	O

If	O	O
you	O	O
want	O	O
to	O	O
support	O	O
GET	O	B-Function
,	O	O
then	O	O
change	O	O
the	O	O
methods	B-Code_Block	B-Variable
parameter	O	O
accordingly	O	O
:	O	O

Note	O	O
that	O	O
Visual	O	B-Application
Studio	O	I-Application
seems	O	O
to	O	O
have	O	O
a	O	O
caching	O	O
bug	O	O
where	O	O
making	O	O
changes	O	O
to	O	O
route	O	O
information	O	O
is	O	O
not	O	O
properly	O	O
saved	O	O
when	O	O
debugging	O	O
locally	O	O
.	O	O

I	O	O
opened	O	O
a	O	O
GitHub	O	B-Website
issue	O	O
to	O	O
track	O	O
that	O	O
here	O	O
:	O	O
https://github.com/Azure/Azure-Functions/issues/552	O	O

For	O	O
more	O	O
information	O	O
on	O	O
HTTP	O	O
triggers	O	O
,	O	O
see	O	O
this	O	O
documentation	O	O
:	O	O
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook	O	O

If	O	O
you	O	O
want	O	O
to	O	O
trigger	O	O
a	O	O
Durable	O	B-Application
Function	O	I-Application
using	O	O
a	O	O
timer	O	O
trigger	O	O
,	O	O
then	O	O
just	O	O
change	O	O
the	O	O
trigger	O	O
type	O	O
.	O	O

For	O	O
example	O	O
:	O	O

For	O	O
more	O	O
information	O	O
on	O	O
Timer	O	O
triggers	O	O
,	O	O
see	O	O
this	O	O
documentation	O	O
:	O	O
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer	O	O

Because	O	O
you	O	O
specified	O	O
your	O	O
function	O	O
to	O	O
be	O	O
triggered	O	O
on	O	O
POST	O	B-Function
only	O	O
:	O	O

To	O	O
enable	O	O
GET	O	B-Function
,	O	O
add	O	O
get	B-Code_Block	B-Code_Block
to	O	O
methods	B-Code_Block	B-Variable
parameter	O	O
.	O	O

You	O	O
can	O	O
define	O	O
timer-triggered	O	O
function	O	O
with	O	O
OrchestrationClient	B-Code_Block	B-Class
input	O	O
binding	O	O
similar	O	O
to	O	O
your	O	O
HTTP	O	O
function	O	O
.	O	O

Sample	O	O
declaration	O	O
:	O	O

I	O	O
'm	O	O
relatively	O	O
new	O	O
to	O	O
git	O	B-Application
,	O	O
having	O	O
used	O	O
Subversion	O	B-Application
primarily	O	O
in	O	O
the	O	O
past	O	O
.	O	O

I	O	O
recently	O	O
cloned	O	O
a	O	O
Subversion	O	B-Application
repository	O	O
,	O	O
made	O	O
changes	O	O
,	O	O
then	O	O
set	O	O
up	O	O
a	O	O
remote	O	O
bare	O	O
git	O	B-Application
repository	O	O
that	O	O
fellow	O	O
developers	O	O
will	O	O
use	O	O
as	O	O
we	O	O
move	O	O
towards	O	O
git	O	B-Application
.	O	O

I	O	O
have	O	O
n't	O	O
pushed	O	O
changes	O	O
to	O	O
the	O	O
SVN	O	B-Library
repository	O	O
yet	O	O
(	O	O
at	O	O
least	O	O
I	O	O
have	O	O
n't	O	O
intentionally	O	O
done	O	O
this	O	O
!	O	O
)	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
pull	O	O
in	O	O
new	O	O
changes	O	O
from	O	O
Subversion	O	B-Application
with	O	O
git	O	B-Library
svn	O	I-Library
rebase	O	I-Library
,	O	O
and	O	O
that	O	O
's	O	O
about	O	O
where	O	O
the	O	O
trouble	O	O
began	O	O
.	O	O

I	O	O
think	O	O
the	O	O
best	O	O
illustration	O	O
of	O	O
my	O	O
problem	O	O
is	O	O
output	O	O
from	O	O
gitk	O	B-Application
:	O	O

Any	O	O
ideas	O	O
on	O	O
how	O	O
to	O	O
delete	O	O
this	O	O
duplicate	O	O
history	O	O
?	O	O

It	O	O
's	O	O
looking	O	O
like	O	O
this	O	O
helped	O	O
(	O	O
from	O	O
helpful	O	O
people	O	O
at	O	O
#git	O	B-Website
)	O	O
:	O	O

What	O	O
is	O	O
this	O	O
doing	O	O
?	O	O

You	O	O
could	O	O
try	O	O

in	O	O
master	O	O
reset	O	O
to	O	O
latest	O	O
commit	O	O
before	O	O
merge	O	O

switch	O	O
to	O	O
branch	O	O

rebase	O	O
branch	O	O
on	O	O
master	O	O

switch	O	O
to	O	O
master	O	O

merge	O	O
branch	O	O

I	O	O
have	O	O
the	O	O
table	O	B-Data_Structure
in	O	O
the	O	O
following	O	O
format	O	O

I	O	O
would	O	O
like	O	O
to	O	O
group	O	O
different	O	O
column	O	B-Data_Structure
in	O	O
a	O	O
bit	O	O
different	O	O
on	O	O
the	O	O
basis	O	O
of	O	O
reporting_date	O	B-Variable
so	O	O
that	O	O
my	O	O
out	O	O
put	O	O
looks	O	O
like	O	O
this	O	O

i.e	O	O
the	O	O
interest_payment	O	B-Variable
should	O	O
grouped	O	O
by	O	O
reporting	O	O
date	O	O
but	O	O
while	O	O
grouping	O	O
the	O	O
balance	O	O
i	O	O
want	O	O
to	O	O
group	O	O
by	O	O
first	O	O
row	O	B-Data_Structure
of	O	O
that	O	O
reporting	O	O
date	O	O
only	O	O

so	O	O
for	O	O
200401	O	B-Variable
the	O	O
interest	O	B-Variable
payment	O	I-Variable
will	O	O
be	O	O
15	O	B-Value
but	O	O
for	O	O
balance	O	B-Variable
will	O	O
be	O	O
only	O	O
10	O	B-Value

This	O	O
is	O	O
the	O	O
query	O	O
i	O	O
was	O	O
planning	O	O
to	O	O
use	O	O
but	O	O
obviously	O	O
it	O	O
will	O	O
not	O	O
work	O	O
for	O	O
balance	O	B-Variable
column	O	I-Variable
.Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
handle	O	O
this	O	O
in	O	O
sql	O	B-Language
server	O	O
so	O	O
that	O	O
in	O	O
a	O	O
single	O	O
query	O	O
i	O	O
can	O	O
group	O	O
by	O	O
particular	O	O
set	O	B-Data_Structure
but	O	O
for	O	O
the	O	O
other	O	O
i	O	O
can	O	O
group	O	O
by	O	O
different	O	O
set	O	B-Data_Structure
.	O	O

Thanks	O	O
.	O	O

You	O	O
can	O	O
use	O	O
the	O	O
following	O	O
query	O	O
:	O	O

I	O	O
make	O	O
the	O	O
assumption	O	O
that	O	O
id	B-Code_Block	B-Variable
field	O	O
defines	O	O
precedence	O	O
for	O	O
balance	B-Code_Block	B-Variable
,	O	O
i.e	O	O
.	O	O
the	O	O
balance	B-Code_Block	B-Variable
with	O	O
the	O	O
lowest	O	O
related	O	O
id	B-Code_Block	B-Variable
value	O	O
comes	O	O
first	O	O
.	O	O

I	O	O
'm	O	O
looking	O	O
for	O	O
a	O	O
simple	O	O
syntax	O	O
to	O	O
allow	O	O
me	O	O
to	O	O
create	O	O
a	O	O
new	O	O
object	O	O
with	O	O
one	O	O
property	O	O
and	O	O
set	O	O
the	O	O
value	O	O
of	O	O
that	O	O
property	O	O
.	O	O

Here	O	O
's	O	O
an	O	O
example	O	O
.	O	O

I	O	O
'd	O	O
love	O	O
to	O	O
be	O	O
able	O	O
to	O	O
do	O	O
something	O	O
all	O	O
on	O	O
one	O	O
line	O	O
.	O	O

Should	O	O
log	O	O
:	O	O

I	O	O
thought	O	O
I	O	O
saw	O	O
once	O	O
that	O	O
this	O	O
was	O	O
going	O	O
to	O	O
be	O	O
possible	O	O
in	O	O
the	O	O
es-spec	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
with	O	O
the	O	O
babel-2015	O	B-Application
preset	O	O
.	O	O

You	O	O
will	O	O
need	O	O
to	O	O
use	O	O
computed	O	O
property	O	O
names	O	O
.	O	O

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#Computed_property_names	O	O

(	O	O
This	O	O
works	O	O
with	O	O
es2015	O	B-Version
Babel	O	B-Application
preset	O	O
)	O	O

this	O	O
works	O	O
for	O	O
me	O	O
:	O	O

*	O	O
note	O	O
:	O	O
I	O	O
have	O	O
the	O	O
result	O	O
consoling	O	O
to	O	O
the	O	O
console	O	B-Application
.	O	O

Open	O	O
console	O	B-Application
to	O	O
see	O	O
the	O	O
results	O	O
.	O	O

<script	B-Code_Block	B-Code_Block
src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/6.1.19/browser.min.js"></script>	I-Code_Block	I-Code_Block

0Aconst%20A%20%3D%20%7B%5BL%5D%3A%20responses%7D%0Aconsole.log(A)%0A	O	O

noted	O	O
:	O	O
other	O	O
person	O	O
got	O	O
in	O	O
before	O	O
me	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
build	O	O
appinventor	O	B-Application
locally	O	O
on	O	O
windows	O	B-Operating_System
7	O	B-Version
using	O	O
the	O	O
following	O	O
document	O	O
:	O	O
https://docs.google.com/document/d/1Xc9yt02x3BRoq5m1PJHBr81OOv69rEBy8LVG_84j9jc/pub#h.5p32kqx16c2d	O	O

I	O	O
've	O	O
downloaded	O	O
all	O	O
the	O	O
software	O	O
listed	O	O
in	O	O
section	O	O
3	O	O
and	O	O
proceeded	O	O
building	O	O
the	O	O
app	O	O
inventor	O	O
by	O	O
cloning	O	O
a	O	O
git	O	B-Application
repository	O	O
by	O	O
running	O	O
the	O	O
following	O	O
git	O	B-Application
command	O	O
from	O	O
a	O	O
shell	O	B-Application
:	O	O
git	O	B-Code_Block
clone	O	I-Code_Block
https://github.com/mit-cml/appinventor-sources.git	O	O

I	O	O
keep	O	O
getting	O	O
the	O	O
following	O	O
error	O	O
:	O	O
failed	O	O
to	O	O
connect	O	O
to	O	O
github	O	O
443	O	B-Error_Name
error	O	I-Error_Name

I	O	O
've	O	O
tired	O	O
doing	O	O
a	O	O
Google	O	B-Website
search	O	O
and	O	O
found	O	O
this	O	O
:	O	O
GitHub	O	B-Website
-	O	O
failed	O	O
to	O	O
connect	O	O
to	O	O
github	O	B-Website
443	O	B-Error_Name
windows/	O	B-Operating_System
Failed	O	O
to	O	O
connect	O	O
to	O	O
gitHub	O	B-Website
-	O	O
No	O	O
Error	O	O

I	O	O
'm	O	O
not	O	O
at	O	O
all	O	O
experienced	O	O
in	O	O
this	O	O
field	O	O
so	O	O
I	O	O
do	O	O
not	O	O
understand	O	O
any	O	O
of	O	O
the	O	O
solutions	O	O
mentioned	O	O
,	O	O
could	O	O
you	O	O
please	O	O
try	O	O
and	O	O
help	O	O
me	O	O
out	O	O
by	O	O
going	O	O
through	O	O
the	O	O
best	O	O
solution	O	O
step	O	O
by	O	O
step	O	O
?	O	O

I	O	O
'm	O	O
working	O	O
in	O	O
a	O	O
company	O	O
so	O	O
I	O	O
ca	O	O
n't	O	O
get	O	O
the	O	O
proxy	O	O
like	O	O
they	O	O
mentioned	O	O
or	O	O
the	O	O
firewall	O	O
might	O	O
be	O	O
blocking	O	O
it	O	O
.	O	O

Thank	O	O
you	O	O
in	O	O
advance	O	O
!	O	O

If	O	O
you	O	O
are	O	O
behind	O	O
the	O	O
corporate	O	O
firewall	O	O
and	O	O
if	O	O
all	O	O
your	O	O
requests	O	O
goes	O	O
through	O	O
the	O	O
proxy	O	O
server	O	O
then	O	O
you	O	O
must	O	O
set	O	O
the	O	O
Git	O	B-Application
proxy	O	O
first	O	O
before	O	O
running	O	O
any	O	O
get	O	O
commands	O	O
like	O	O
pull	O	B-Code_Block
,	O	O
fetch	O	B-Code_Block
and	O	O
push	O	B-Code_Block
commands	O	O
.	O	O

To	O	O
set	O	O
the	O	O
Git	O	B-Application
proxy	O	O
for	O	O
HTTP	O	O
and	O	O
HTTPS	O	O
use	O	O
the	O	O
following	O	O
Git	O	B-Application
commands	O	O
in	O	O
the	O	O
git	O	B-Application
bash	O	I-Application
shell	O	I-Application

Check	O	O
How	O	O
to	O	O
configure	O	O
Git	O	B-Application
proxy	O	O
and	O	O
How	O	O
to	O	O
unset	O	O
the	O	O
Git	O	B-Application
Proxy	O	O
for	O	O
more	O	O
details	O	O

If	O	O
say	O	O
i	O	O
am	O	O
having	O	O
a	O	O
textbox	O	B-User_Interface_Element
input	O	O
and	O	O
a	O	O
integer	O	B-Data_Type
value	O	O
A	O	B-Variable
then	O	O
how	O	O
to	O	O
check	O	O
at	O	O
time	O	O
of	O	O
typing	O	O
the	O	O
data	O	O
itself	O	O
that	O	O
the	O	O
value	O	O
entered	O	O
in	O	O
textbox	O	B-User_Interface_Element
does	O	O
not	O	O
exceed	O	O
A	O	B-Variable
.	O	O

Textbox	O	B-User_Interface_Element
:	O	O

My	O	O
script	O	B-HTML_XML_Tag
:	O	O

(	O	O
According	O	O
to	O	O
answer	O	O
by	O	O
Felix	O	B-User_Name
)	O	O

FORM	O	B-HTML_XML_Tag
:	O	O

Whats	O	O
problem	O	O
in	O	O
this	O	O
?	O	O

the	O	O
script	O	B-HTML_XML_Tag
code	O	O
is	O	O
not	O	O
running	O	O
and	O	O
not	O	O
printing	O	O
the	O	O
error	O	O
message.Please	O	O
help	O	O

You	O	O
can	O	O
use	O	O
.keyup()	O	B-Function
event	O	O
:	O	O

Fiddle	O	B-Application
Demo	O	O

Based	O	O
on	O	O
your	O	O
comment	O	O
,	O	O
you	O	O
can	O	O
do	O	O
:	O	O

Fiddle	O	B-Application
Demo	O	O

Do	O	O
this	O	O
:	O	O

Demo	O	O

I	O	O
have	O	O
a	O	O
Class	O	O
which	O	O
I	O	O
have	O	O
created	O	O
as	O	O
an	O	O
NSObject	O	B-Class
.	O	O

This	O	O
class	O	O
has	O	O
a	O	O
number	O	O
of	O	O
properties	O	O
of	O	O
different	O	O
types	O	O
and	O	O
methods	O	O
etc	O	O
.	O	O

When	O	O
I	O	O
instantiate	O	O
this	O	O
class	O	O
in	O	O
my	O	O
App	O	O
(	O	O
say	O	O
in	O	O
the	O	O
main	O	O
View	O	B-Class
Controller	O	I-Class
)	O	O
I	O	O

immediately	O	O
send	O	O
it	O	O
a	O	O
release	O	O
call	O	O
when	O	O
I	O	O
am	O	O
finished	O	O
using	O	O
it	O	O
.	O	O

ie	O	O
:	O	O

So	O	O
my	O	O
question	O	O
is	O	O
:	O	O

When	O	O
I	O	O
release	O	O
myObject	O	B-Variable
,	O	O
does	O	O
it	O	O
automatically	O	O
release	O	O
all	O	O
of	O	O
the	O	O
declared	O	O
objects	O	O
,	O	O
variables	O	O
,	O	O
etc	O	O
.	O	O
that	O	O
I	O	O
declared	O	O
in	O	O
the	O	O
MyObject	O	B-File_Name
.h	O	I-File_Name
file	O	O
?	O	O

OR	O	O

Do	O	O
I	O	O
need	O	O
to	O	O
create	O	O
a	O	O
custom	O	O
release	O	O
method	O	O
which	O	O
releases	O	O
all	O	O
of	O	O
these	O	O
?	O	O

I	O	O
ask	O	O
because	O	O
of	O	O
memory	O	O
management	O	O
issues	O	O
.	O	O

Thank	O	O
you	O	O
.	O	O

You	O	O
need	O	O
to	O	O
implement	O	O
a	O	O
dealloc	B-Code_Block	B-Function
method	O	O
in	O	O
your	O	O
object	O	O
and	O	O
use	O	O
that	O	O
method	O	O
to	O	O
release	O	O
any	O	O
resources	O	O
that	O	O
you	O	O
own	O	O
.	O	O

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmObjectOwnership.html#//apple_ref/doc/uid/20000043-SW4	O	O

Important	O	O
note	O	O
:	O	O
you	O	O
never	O	O
call	O	O
a	O	O
dealloc	O	B-Function
method	O	O
on	O	O
an	O	O
object	O	O
,	O	O
it	O	O
's	O	O
invoked	O	O
automatically	O	O
by	O	O
the	O	O
runtime	O	O
when	O	O
it	O	O
's	O	O
time	O	O
to	O	O
clean	O	O
up	O	O
.	O	O

I	O	O
had	O	O
the	O	O
same	O	O
issue	O	O
as	O	O
Zigglzworth	B-Code_Block	B-User_Name
and	O	O
it	O	O
was	O	O
the	O	O
position	O	O
of	O	O
the	O	O
[	B-Code_Block	O
super	I-Code_Block	O
dealloc	I-Code_Block	B-Function
]	I-Code_Block	O
call	O	O
.	O	O

I	O	O
had	O	O
it	O	O
at	O	O
the	O	O
start	O	O
of	O	O
my	O	O
-(void)dealloc	B-Code_Block	B-Function
method	O	O
and	O	O
it	O	O
was	O	O
causing	O	O
a	O	O
crash	O	O
every	O	O
time	O	O
.	O	O

Moved	O	O
[	B-Code_Block	O
super	I-Code_Block	O
dealloc	I-Code_Block	B-Function
]	I-Code_Block	O
to	O	O
the	O	O
end	O	O
of	O	O
the	O	O
method	O	O
after	O	O
the	O	O
variable	O	O
release	O	O
statements	O	O
and	O	O
now	O	O
it	O	O
works	O	O
just	O	O
fine	O	O
.	O	O

There	O	O
are	O	O
many	O	O
optimization	O	O
problems	O	O
that	O	O
are	O	O
known	O	O
to	O	O
be	O	O
NP-hard	O	O
,	O	O
such	O	O
as	O	O
the	O	O
traveling	O	O
salesman	O	O
problem	O	O
,	O	O
MAX-SAT	O	O
,	O	O
or	O	O
finding	O	O
the	O	O
minimum	O	O
chromatic	O	O
number	O	O
of	O	O
a	O	O
graph	O	B-Data_Structure
.	O	O

Given	O	O
a	O	O
problem	O	O
of	O	O
this	O	O
sort	O	O
,	O	O
I	O	O
'm	O	O
curious	O	O
about	O	O
the	O	O
complexity	O	O
of	O	O
the	O	O
following	O	O
problem	O	O
:	O	O

Intuitively	O	O
,	O	O
it	O	O
seems	O	O
like	O	O
this	O	O
might	O	O
be	O	O
co-NP	O	O
hard	O	O
,	O	O
since	O	O
it	O	O
's	O	O
easy	O	O
to	O	O
refute	O	O
an	O	O
answer	O	O
to	O	O
an	O	O
optimization	O	O
problem	O	O
by	O	O
guessing	O	O
a	O	O
better	O	O
solution	O	O
and	O	O
using	O	O
it	O	O
as	O	O
a	O	O
witness	O	O
,	O	O
but	O	O
I	O	O
have	O	O
no	O	O
idea	O	O
how	O	O
to	O	O
show	O	O
this	O	O
.	O	O

In	O	O
fact	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
really	O	O
know	O	O
how	O	O
to	O	O
reason	O	O
about	O	O
the	O	O
complexity	O	O
of	O	O
this	O	O
problem	O	O
.	O	O

Does	O	O
anyone	O	O
know	O	O
of	O	O
any	O	O
good	O	O
lower	O	O
bounds	O	O
on	O	O
the	O	O
complexity	O	O
of	O	O
this	O	O
decision	O	O
problem	O	O
?	O	O

Knowing	O	O
whether	O	O
this	O	O
was	O	O
co-NP	O	O
hard	O	O
,	O	O
PSPACE-hard	O	O
,	O	O
etc	O	O
.	O	O
would	O	O
be	O	O
really	O	O
interesting	O	O
.	O	O

The	O	O
term	O	O
'	O	O
NP-hard	O	O
optimization	O	O
problem	O	O
'	O	O
seems	O	O
a	O	O
bit	O	O
too	O	O
broad	O	O
to	O	O
let	O	O
a	O	O
satisfying	O	O
answer	O	O
be	O	O
found	O	O
.	O	O

For	O	O
instance	O	O
,	O	O
I	O	O
ca	O	O
n't	O	O
see	O	O
what	O	O
precludes	O	O
decision	O	O
problems	O	O
from	O	O
being	O	O
considered	O	O
NP-hard	O	O
optimization	O	O
problems	O	O
-	O	O
if	O	O
you	O	O
consider	O	O
,	O	O
say	O	O
,	O	O
the	O	O
MAX-CNF-SAT	O	O
problem	O	O
with	O	O
the	O	O
solutions	O	O
being	O	O
scored	O	O
as	O	O
floor(k/N)	O	B-Function
,	O	O
where	O	O
k	O	B-Variable
is	O	O
the	O	O
number	O	O
of	O	O
satisfied	O	O
clauses	O	O
and	O	O
N	O	B-Variable
is	O	O
the	O	O
total	O	O
number	O	O
of	O	O
clauses	O	O
in	O	O
the	O	O
instance	O	O
(	O	O
which	O	O
is	O	O
clearly	O	O
computable	O	O
in	O	O
polynomial	O	O
time	O	O
)	O	O
,	O	O
then	O	O
any	O	O
valuation	O	O
which	O	O
yields	O	O
a	O	O
1	O	B-Value
in	O	O
this	O	O
formula	O	O
will	O	O
have	O	O
to	O	O
satisfy	O	O
the	O	O
whole	O	O
formula	O	O
.	O	O

So	O	O
let	O	O
's	O	O
assume	O	O
that	O	O
we	O	O
are	O	O
maximizing	O	O
floor(k/N)	O	B-Function
and	O	O
call	O	O
this	O	O
the	O	O
FLOOR-CNF-SAT	O	O
optimization	O	O
problem	O	O
:	O	O
)	O	O

This	O	O
implies	O	O
you	O	O
can	O	O
reduce	O	O
TAUTOLOGY	O	O
to	O	O
said	O	O
optimization	O	O
problem	O	O
-	O	O
negate	O	O
the	O	O
input	O	O
and	O	O
add	O	O
any	O	O
solution	O	O
as	O	O
S	O	B-Variable
.	O	O
You	O	O
can	O	O
even	O	O
add	O	O
a	O	O
dummy	O	O
variable	O	O
to	O	O
make	O	O
sure	O	O
the	O	O
initial	O	O
solution	O	O
is	O	O
gets	O	O
a	O	O
0	O	B-Value
in	O	O
the	O	O
FLOOR-CNF-SAT	O	O
problem	O	O
.	O	O

Negation	O	O
is	O	O
polynomial	O	O
in	O	O
time	O	O
.	O	O

Then	O	O
if	O	O
a	O	O
solver	O	O
for	O	O
the	O	O
proposed	O	O
problem	O	O
deems	O	O
S	O	B-Variable
to	O	O
not	O	O
be	O	O
optimal	O	O
,	O	O
there	O	O
must	O	O
clearly	O	O
be	O	O
a	O	O
valuation	O	O
which	O	O
yields	O	O
a	O	O
1	O	B-Value
according	O	O
to	O	O
our	O	O
crafted	O	O
function	O	O
and	O	O
thus	O	O
satisfies	O	O
the	O	O
whole	O	O
formula	O	O
-	O	O
in	O	O
turn	O	O
providing	O	O
a	O	O
valuation	O	O
that	O	O
does	O	O
not	O	O
satisfy	O	O
the	O	O
original	O	O
input	O	O
to	O	O
TAUTOLOGY	O	O
.	O	O

By	O	O
cheating	O	O
slightly	O	O
(	O	O
using	O	O
an	O	O
artificially	O	O
crafted	O	O
optimization	O	O
problem	O	O
)	O	O
we	O	O
have	O	O
established	O	O
the	O	O
'	O	O
is	O	O
optimal	O	O
'	O	O
problem	O	O
as	O	O
co-NP-complete	O	O
,	O	O
since	O	O
TAUTOLOGY	O	O
is	O	O
easily	O	O
shown	O	O
to	O	O
be	O	O
co-NP-complete	O	O
.	O	O

By	O	O
your	O	O
own	O	O
argument	O	O
the	O	O
'	O	O
is	O	O
optimal	O	O
'	O	O
decision	O	O
problem	O	O
is	O	O
co-NP-hard	O	O
,	O	O
since	O	O
as	O	O
a	O	O
witness	O	O
you	O	O
only	O	O
need	O	O
a	O	O
better	O	O
solution	O	O
-	O	O
score	O	O
S	O	B-Variable
,	O	O
score	O	O
the	O	O
witness	O	O
and	O	O
compare	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
really	O	O
feel	O	O
great	O	O
about	O	O
this	O	O
reduction	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
easily	O	O
improve	O	O
on	O	O
the	O	O
problem	O	O
class	O	O
.	O	O

If	O	O
you	O	O
require	O	O
that	O	O
there	O	O
be	O	O
instances	O	O
which	O	O
score	O	O
arbitrarily	O	O
high	O	O
and	O	O
not	O	O
just	O	O
{	O	B-Value
0	O	I-Value
,	O	I-Value
1}	O	I-Value
,	O	O
I	O	O
could	O	O
just	O	O
use	O	O
N	O	B-Code_Block
*	O	I-Code_Block
floor(k/N)	O	I-Code_Block
.	O	O

An	O	O
improvement	O	O
to	O	O
the	O	O
class	O	O
could	O	O
be	O	O
to	O	O
only	O	O
consider	O	O
a	O	O
problem	O	O
an	O	O
NP-hard	O	O
optimization	O	O
problem	O	O
if	O	O
for	O	O
each	O	O
K	O	B-Variable
there	O	O
exists	O	O
an	O	O
instance	O	O
that	O	O
has	O	O
at	O	O
least	O	O
K	O	B-Variable
solutions	O	O
which	O	O
all	O	O
score	O	O
differently	O	O
.	O	O

I	O	O
think	O	O
I	O	O
can	O	O
still	O	O
cheat	O	O
my	O	O
way	O	O
through	O	O
that	O	O
:	O	O

Consider	O	O
a	O	O
reduction	O	O
that	O	O
adds	O	O
N	O	B-Variable
dummy	O	O
variables	O	O
to	O	O
the	O	O
TAUTOLOGY	O	O
input	O	O
as	O	O
follows	O	O
:	O	O

where	O	O
S	O	B-Variable
is	O	O
the	O	O
negated	O	O
input	O	O
.	O	O

As	O	O
an	O	O
initial	O	O
valuation	O	O
I	O	O
choose	O	O
d1	O	B-Code_Block
,	O	I-Code_Block
..	O	I-Code_Block
.	O	I-Code_Block
,	O	I-Code_Block
dN	O	I-Code_Block
=	O	I-Code_Block
false	O	I-Code_Block
,	O	O
but	O	O
as	O	O
a	O	O
score	O	O
I	O	O
give	O	O
a	O	O
function	O	O
that	O	O
returns	O	O
2N	O	B-Code_Block
-	O	I-Code_Block
1	O	I-Code_Block
if	O	O
the	O	O
first	O	O
N	O	B-Variable
clauses	O	O
are	O	O
all	O	O
false	O	O
,	O	O
otherwise	O	O
it	O	O
returns	O	O
the	O	O
number	O	O
of	O	O
satisfied	O	O
clauses	O	O
.	O	O

Such	O	O
a	O	O
function	O	O
would	O	O
only	O	O
return	O	O
2N	O	B-Variable
if	O	O
all	O	O
the	O	O
clauses	O	O
were	O	O
satisfied	O	O
but	O	O
could	O	O
easily	O	O
have	O	O
at	O	O
least	O	O
N	O	B-Variable
distinct	O	O
values	O	O
.	O	O

I	O	O
am	O	O
afraid	O	O
that	O	O
without	O	O
some	O	O
complicated	O	O
regularity	O	O
conditions	O	O
on	O	O
the	O	O
scoring	O	O
function	O	O
this	O	O
is	O	O
the	O	O
best	O	O
we	O	O
can	O	O
get	O	O
,	O	O
unless	O	O
you	O	O
consider	O	O
the	O	O
definition	O	O
of	O	O
an	O	O
NP-hard	O	O
optimization	O	O
problem	O	O
to	O	O
be	O	O
'	O	O
a	O	O
problem	O	O
for	O	O
which	O	O
,	O	O
given	O	O
a	O	O
candidate	O	O
solution	O	O
S	O	B-Variable
,	O	O
we	O	O
can	O	O
in	O	O
polynomial	O	O
time	O	O
verify	O	O
whether	O	O
S	O	B-Variable
is	O	O
optimal	O	O
'	O	O
,	O	O
in	O	O
which	O	O
case	O	O
'	O	O
is-optimal	O	O
'	O	O
is	O	O
clearly	O	O
P	O	O
and	O	O
it	O	O
's	O	O
no	O	O
fun	O	O
at	O	O
all:/	O	O

Because	O	O
S	O	B-Variable
is	O	O
a	O	O
candidate	O	O
solution	O	O
;	O	O
given	O	O
that	O	O
there	O	O
are	O	O
no	O	O
other	O	O
S	O	B-Variable
in	O	O
which	O	O
S	O	B-Variable
can	O	O
be	O	O
proven	O	O
to	O	O
be	O	O
greedy	O	O
or	O	O
less	O	O
optimal	O	O
than	O	O
any	O	O
other	O	O
S	O	B-Variable
.	O	O
It	O	O
must	O	O
be	O	O
that	O	O
S	O	B-Variable
is	O	O
at	O	O
current	O	O
the	O	O
MOST	O	O
optimal	O	O
solution	O	O
for	O	O
the	O	O
problem	O	O
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
Pentaho	O	B-Application
Kettle	O	I-Application
and	O	O
I	O	O
am	O	O
wondering	O	O
what	O	O
the	O	O
Internal.Job.Filename.Directory	B-Code_Block	B-Variable
is	O	O
?	O	O

Is	O	O
it	O	O
my	O	O
SPoon.bat	B-Code_Block	B-File_Name
folder	O	O
,	O	O
or	O	O
the	O	O
job/xfrm	O	B-File_Name
folder	O	O
i	O	O
created	O	O
?	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
I	O	O
can	O	O
change	O	O
it	O	O
to	O	O
point	O	O
to	O	O
particular	O	O
folder	O	O
?	O	O

I	O	O
am	O	O
runnig	O	O
spoon.bat	B-Code_Block	B-File_Name
in	O	O
Windows	O	B-Operating_System
XP	O	B-Version
.	O	O

To	O	O
set	O	O
value	O	O
to	O	O
variable	O	O
Internal.Job.Filename.Directory	O	B-Variable
,	O	O
you	O	O
need	O	O
to	O	O
launch	O	O
Job	O	B-Class
in	O	O
this	O	O

way	O	O
:	O	O

Internal.Job.Filename.Directory	B-Code_Block	B-Variable
is	O	O
only	O	O
set	O	O
when	O	O
you	O	O
do	O	O
n't	O	O
use	O	O
a	O	O
repository	O	O
,	O	O
and	O	O
it	O	O
is	O	O
set	O	O
automatically	O	O
.	O	O

You	O	O
cannot	O	O
set	O	O
it	O	O
manually	O	O
.	O	O

How	O	O
not	O	O
to	O	O
use	O	O
an	O	O
repository	O	O
?	O	O

When	O	O
you	O	O
start	O	O
Spoon	O	B-Application
,	O	O
you	O	O
get	O	O
a	O	O
dialog	O	B-User_Interface_Element
which	O	O
asks	O	O
for	O	O
a	O	O
repository	O	O
.	O	O

Just	O	O
close	O	O
this	O	O
dialog	O	O
with	O	O
cancel	O	O
and	O	O
you	O	O
're	O	O
fine	O	O
!	O	O

It	O	O
took	O	O
me	O	O
a	O	O
while	O	O
to	O	O
find	O	O
this	O	O
:	O	O
I	O	O
was	O	O
wondering	O	O
why	O	O
Internal.Job.Filename.Directory	B-Code_Block	B-Variable
was	O	O
always	O	O
empty	O	O
.	O	O

The	O	O
repository	O	O
was	O	O
the	O	O
cause	O	O
.	O	O

It	O	O
's	O	O
documented	O	O
here	O	O
:	O	O
http://jira.pentaho.com/browse/PDI-7434	O	O

When	O	O
the	O	O
length	O	O
of	O	O
characters	O	O
in	O	O
json	O	B-Function
result	O	O
is	O	O
large	O	O
the	O	O
following	O	O
exception	O	B-Class
will	O	O
be	O	O
raised	O	O
:	O	O

The	O	O
above	O	O
exception	O	B-Class
is	O	O
a	O	O
server	O	O
side	O	O
exception	O	B-Class
with	O	O
500	O	B-Error_Name
response	O	O
code	O	O
so	O	O
if	O	O
we	O	O
put	O	O
the	O	O
source	O	O
code	O	O
inside	O	O
a	O	O
try	O	B-Code_Block
catch	O	I-Code_Block
block	O	O
,	O	O
the	O	O
error	O	O
should	O	O
be	O	O
caught	O	O
in	O	O
catch	O	B-Code_Block
block	O	O
,	O	O
but	O	O
try	O	B-Code_Block
catch	O	I-Code_Block
does	O	O
not	O	O
work	O	O
for	O	O
this	O	O
scenario	O	O
.	O	O

You	O	O
could	O	O
test	O	O
this	O	O
problem	O	O
by	O	O
following	O	O
code	O	O
,	O	O
please	O	O
use	O	O
it	O	O
inside	O	O
an	O	O
asp.net	O	B-Library
mvc	O	B-Algorithm
controller	O	O
:	O	O

I	O	O
cannot	O	O
reproduce	O	O
the	O	O
error	O	O
,	O	O
but	O	O
anyway	O	O
what	O	O
is	O	O
happening	O	O
to	O	O
you	O	O
is	O	O
that	O	O
the	O	O
Json	B-Code_Block	B-Function
method	O	O
implementation	O	O
is	O	O
already	O	O
catching	O	O
the	O	O
exception	O	B-Class
internally	O	O
and	O	O
converting	O	O
it	O	O
to	O	O
full-blown	O	O
HTTP	O	B-Error_Name
5xx	O	I-Error_Name
response	O	I-Error_Name
.	O	O

There	O	O
is	O	O
no	O	O
exception	O	B-Class
coming	O	O
out	O	O
from	O	O
the	O	O
return	B-Code_Block	O
Json()	I-Code_Block	B-Function
call	O	O
.	O	O

There	O	O
is	O	O
no	O	O
chance	O	O
for	O	O
you	O	O
to	O	O
catch	O	O
the	O	O
exception	O	B-Class
because	O	O
..	O	O
.	O	O
what	O	O
would	O	O
you	O	O
do	O	O
?	O	O

Generate	O	O
an	O	O
HTTP	O	B-Error_Name
5xx	O	I-Error_Name
response	O	I-Error_Name
?	O	O

That	O	O
is	O	O
already	O	O
done	O	O
for	O	O
you	O	O
by	O	O
the	O	O
MVC	O	B-Algorithm
framework	O	O
.	O	O

Try	O	O
like	O	O
this	O	O
:	O	O

what	O	O
is	O	O
the	O	O
easiest	O	O
way	O	O
to	O	O
separate	O	O
following	O	O
text	O	B-File_Type
file	O	O
and	O	O
print	O	O
its	O	O
values	O	O
in	O	O
this	O	O
format	O	O

If	O	O
your	O	O
input	O	O
data	O	O
are	O	O
in	O	O
JSON	O	B-File_Type
format	O	O
,	O	O
look	O	O
at	O	O
a	O	O
C-based	O	B-Language
JSON	O	B-File_Type
parser	O	O
,	O	O
like	O	O
JSON-C	O	B-Library
or	O	O
Jansson	O	B-Library
.	O	O

Parse	O	O
your	O	O
data	O	O
objects	O	O
from	O	O
JSON	O	B-File_Type
format	O	O
and	O	O
into	O	O
some	O	O
struct	B-Code_Block	B-Data_Structure
of	O	O
your	O	O
design	O	O
,	O	O
and	O	O
then	O	O
write	O	O
a	O	O
function	O	O
to	O	O
print	O	O
out	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
struct	B-Code_Block	O
elements	O	O
to	O	O
standard	O	O
output	O	O
,	O	O
in	O	O
a	O	O
format	O	O
of	O	O
your	O	O
choosing	O	O
.	O	O

How	O	O
would	O	O
I	O	O
get	O	O
all	O	O
of	O	O
the	O	O
children	O	O
in	O	O
a	O	O
specific	O	O
Column	O	B-Data_Structure
of	O	O
a	O	O
Grid	O	B-Data_Structure
?	O	O

I	O	O
need	O	O
to	O	O
perform	O	O
some	O	O
calculations	O	O
on	O	O
the	O	O
children	O	O
inside	O	O
a	O	O
certain	O	O
Column	O	B-Data_Structure
in	O	O
a	O	O
Grid	O	B-Data_Structure
,	O	O
but	O	O
I	O	O
cannot	O	O
find	O	O
a	O	O
way	O	O
of	O	O
getting	O	O
all	O	O
children	O	O
for	O	O
that	O	O
Column	O	B-Data_Structure
.	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
.	O	O

Adam	O	B-User_Name

Do	O	O
some	O	O
thing	O	O
like	O	O
this	O	O

This	O	O
is	O	O
the	O	O
code	O	O
example	O	O

XAML	O	B-Language

CODE	O	O
(	O	O
c#	O	B-Language
)	O	O

The	O	O
oly	O	O
constraint	O	O
is	O	O
you	O	O
need	O	O
to	O	O
keep	O	O
a	O	O
check	O	O
of	O	O
the	O	O
kind	O	O
of	O	O
elements	O	O
u	O	O
place	O	O
inside	O	O
the	O	O
Grid	O	B-Data_Structure
.	O	O
.	O	O
if	O	O
they	O	O
are	O	O
different	O	O
then	O	O
mapping	O	O
them	O	O
will	O	O
cause	O	O
trouble	O	O
..	O	O
.	O	O
please	O	O
let	O	O
me	O	O
know	O	O
if	O	O
different	O	O
elements	O	O
are	O	O
present	O	O
.	O	O

Try	O	O
:	O	O

I	O	O
want	O	O
to	O	O
read	O	O
one	O	O
pdf	O	B-File_Type
file	O	O
which	O	O
is	O	O
in	O	O
below	O	O
format	O	O
-	O	O

data.pdf	O	B-File_Name

I	O	O
'm	O	O
trying	O	O
to	O	O
read	O	O
this	O	O
file	O	O
using	O	O
python	O	B-Library
pandas	O	I-Library
but	O	O
I	O	O
did	O	O
n't	O	O
get	O	O
any	O	O
success	O	O
yet	O	O
.	O	O

Actually	O	O
I	O	O
want	O	O
to	O	O
convert	O	O
this	O	O
file	O	O
in	O	O
csv	O	B-File_Type
format	O	O
like	O	O
below	O	O
-	O	O

output.csv	O	B-File_Name

I	O	O
already	O	O
tried	O	O
with	O	O
pdfminer	O	B-Library
but	O	O
did	O	O
n't	O	O
get	O	O
any	O	O
success	O	O
.	O	O

It	O	O
's	O	O
html	O	B-File_Type
output	O	O
only	O	O
gives	O	O
me	O	O
blank	O	O
pages	O	B-User_Interface_Element
.	O	O

Is	O	O
their	O	O
any	O	O
way	O	O
to	O	O
read	O	O
pdf	O	B-File_Type
file	O	O
using	O	O
python	O	B-Library
pandas	O	I-Library
or	O	O
can	O	O
we	O	O
convert	O	O
pdf	O	B-File_Type
to	O	O
any	O	O
format	O	O
and	O	O
then	O	O
read	O	O
it	O	O
using	O	O
python	O	B-Library
pandas	O	I-Library
?	O	O

If	O	O
you	O	O
have	O	O
tabula	O	B-Library
installed	O	O
then	O	O
:	O	O

then	O	O
you	O	O
can	O	O
print	O	O
your	O	O
data	O	O

I	O	O
hope	O	O
this	O	O
will	O	O
help	O	O
you	O	O
!	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
make	O	O
non-graphic	O	O
(	O	O
text	O	O
)	O	O
C++	O	B-Language
game	O	O
(	O	O
you	O	O
move	O	O
your	O	O
character	O	O
using	O	O
n	O	O
,	O	B-Value
s	O	I-Value
,	O	O
w	O	B-Value
,	O	O
e	O	B-Value
and	O	O
every	O	O
location	O	O
is	O	O
described	O	O
)	O	O
.	O	O

Locations	O	O
will	O	O
be	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
an	O	O
objects	O	O
(	O	O
there	O	O
will	O	O
be	O	O
location	O	O
description	O	O
and	O	O
other	O	O
information	O	O
in	O	O
this	O	O
array	O	B-Data_Structure
)	O	O
.	O	O

I	O	O
've	O	O
started	O	O
making	O	O
this	O	O
game	O	O
,	O	O
but	O	O
I	O	O
have	O	O
a	O	O
question	O	O
:	O	O
Is	O	O
it	O	O
possible	O	O
to	O	O
make	O	O
arrays	O	B-Data_Structure
with	O	O
dimensions	O	O
x	O	B-Variable
-	O	O
from	O	O
-100	O	B-Value
to	O	O
100	O	B-Value
and	O	O
z	O	B-Variable
-	O	O
from	O	O
-100	O	B-Value
to	O	O
100	O	B-Value
?	O	O

If	O	O
it	O	O
is	O	O
not	O	O
possible	O	O
,	O	O
are	O	O
there	O	O
other	O	O
ways	O	O
to	O	O
do	O	O
it	O	O
?	O	O

(	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
a	O	O
[	O	B-Value
0	O	I-Value
]	O	I-Value
[	O	B-Value
0	O	I-Value
]	O	I-Value
position	O	O
in	O	O
one	O	O
of	O	O
4	O	O
corners	O	O
,	O	O
but	O	O
on	O	O
the	O	O
middle	O	O
.	O	O
)	O	O

One	O	O
common	O	O
(	O	O
but	O	O
rather	O	O
sketchy	O	O
)	O	O
method	O	O
is	O	O
to	O	O
do	O	O
something	O	O
like	O	O
this	O	O
(	O	O
example	O	O
for	O	O
21	O	O
x	O	O
21	O	O
board	O	O
)	O	O
:	O	O

This	O	O
creates	O	O
a	O	O
normal	O	O
21x21	O	O
array	O	B-Data_Structure
but	O	O
then	O	O
it	O	O
also	O	O
creates	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
a	O	O
fake	O	O
array	O	B-Data_Structure
which	O	O
is	O	O
initialised	O	O
to	O	O
point	O	O
at	O	O
the	O	O
centre	O	O
of	O	O
the	O	O
real	O	O
array	O	B-Data_Structure
.	O	O

You	O	O
can	O	O
then	O	O
use	O	O
this	O	O
fake	O	O
pointer	O	B-Data_Type
as	O	O
if	O	O
it	O	O
were	O	O
a	O	O
real	O	O
array	O	B-Data_Structure
with	O	O
indices	O	O
ranging	O	O
from	O	O
-10	O	B-Value
to	O	O
+10	O	B-Value
(	O	O
inclusive	O	O
)	O	O
.	O	O

LIVE	B-Keyboard_IP	O
DEMO	I-Keyboard_IP	O

An	O	O
Array	O	B-Data_Structure
can	O	O
have	O	O
only	O	O
positive	O	O
indexes	O	O
:	O	O

define	O	O
a	O	O
Funktion	O	O
that	O	O
returns	O	O
your	O	O
desired	O	O
Location	O	B-Class
:	O	O

Then	O	O
you	O	O
can	O	O
get	O	O
the	O	O
Location	O	B-Class
by	O	O
calling	O	O
the	O	O
function	O	O
getLocation(x,y)	B-Code_Block	B-Function

There	O	O
's	O	O
a	O	O
fair	O	O
amount	O	O
of	O	O
support	O	O
,	O	O
through	O	O
things	O	O
like	O	O
the	O	O
various	O	O
Revolution	O	O
R	O	B-Language
modules	O	O
,	O	O
in	O	O
what	O	O
to	O	O
do	O	O
if	O	O
you	O	O
're	O	O
bringing	O	O
a	O	O
large	O	O
dataset	O	O
into	O	O
R	O	B-Language
,	O	O
and	O	O
it	O	O
's	O	O
too	O	O
large	O	O
to	O	O
be	O	O
stored	O	O
in	O	O
RAM	O	B-Device
.	O	O

But	O	O
is	O	O
there	O	O
any	O	O
way	O	O
to	O	O
deal	O	O
with	O	O
data	O	O
sets	O	O
being	O	O
created	O	O
within	O	O
R	O	B-Language
that	O	O
are	O	O
too	O	O
big	O	O
to	O	O
store	O	O
in	O	O
RAM	O	B-Device
,	O	O
beyond	O	O
simply	O	O
(	O	O
and	O	O
by	O	O
hand	O	O
)	O	O
breaking	O	O
the	O	O
creation	O	O
step	O	O
into	O	O
a	O	O
series	O	O
of	O	O
RAM-sized	O	B-Device
chunks	O	O
,	O	O
writing	O	O
that	O	O
chunk	O	O
to	O	O
disk	O	B-Device
,	O	O
clearing	O	O
it	O	O
,	O	O
and	O	O
continuing	O	O
on	O	O
?	O	O

For	O	O
example	O	O
,	O	O
just	O	O
doing	O	O
a	O	O
large	O	O
simulation	O	O
,	O	O
or	O	O
using	O	O
something	O	O
like	O	O
SurvSplit()	O	B-Function
to	O	O
take	O	O
a	O	O
single	O	O
observation	O	O
with	O	O
a	O	O
survival	O	O
time	O	O
from	O	O
1	O	B-Value
to	O	O
N	O	B-Variable
and	O	O
break	O	O
it	O	O
into	O	O
N	O	B-Variable
seperate	O	O
observations	O	O
?	O	O

If	O	O
you	O	O
're	O	O
creating	O	O
the	O	O
data	O	O
in	O	O
R	O	B-Language
and	O	O
you	O	O
can	O	O
do	O	O
your	O	O
analysis	O	O
on	O	O
a	O	O
small	O	O
chunk	O	O
of	O	O
the	O	O
total	O	O
data	O	O
,	O	O
then	O	O
only	O	O
create	O	O
as	O	O
large	O	O
of	O	O
a	O	O
chunk	O	O
as	O	O
you	O	O
need	O	O
for	O	O
any	O	O
given	O	O
analysis	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
read	O	O
only	O	O
colum	O	B-Data_Structure
with	O	O
red	O	O
label	O	O
in	O	O
a	O	O
csv	O	B-File_Type
file	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
php	O	B-Language
function	O	O
to	O	O
do	O	O
this	O	O
or	O	O
a	O	O
symfony	O	B-Library
bundle	O	O
?	O	O

Now	O	O
I	O	O
'm	O	O
reading	O	O
csv	O	B-File_Type
file	O	O
with	O	O
fgetcsv	O	B-Function
function	O	O
:	O	O

But	O	O
it	O	O
does	O	O
n't	O	O
read	O	O
the	O	O
label	O	O
's	O	O
color.Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
read	O	O
the	O	O
color	O	O
on	O	O
the	O	O
csv	O	B-File_Type
files	O	O
?	O	O

You	O	O
can	O	O
use	O	O
this	O	O
php	O	B-Language
class	O	O
to	O	O
read	O	O
csv	O	B-File_Type
files	O	O
:	O	O
https://git.webworks-nuernberg.de/webworks-nuernberg/parsecsv	O	O

But	O	O
cweiske	O	B-User_Name
is	O	O
right	O	O
,	O	O
csv	O	B-File_Type
has	O	O
n't	O	O
any	O	O
formatting	O	O
.	O	O

CSV	O	B-File_Type
files	O	O
have	O	O
no	O	O
formatting	O	O
.	O	O

.xls	B-Code_Block	B-File_Type
or	O	O
.odt	B-Code_Block	B-File_Type
files	O	O
have	O	O
formatting	O	O
,	O	O
but	O	O
CSV	O	B-File_Type
definitely	O	O
not	O	O
-	O	O
only	O	O
data	O	O
are	O	O
saved	O	O
in	O	O
there	O	O
.	O	O

Look	O	O
at	O	O
the	O	O
file	O	O
with	O	O
a	O	O
text	O	B-Application
editor	O	I-Application
.	O	O

Why	O	O
this	O	O
code	O	O
does	O	O
not	O	O
set	O	O
the	O	O
value	O	O
to	O	O
input	O	O
element	O	O
?	O	O

If	O	O
I	O	O
change	O	O
date	O	O
to	O	O
"	O	B-Code_Block
new	O	I-Code_Block
Date(2016,	O	I-Code_Block
4,	O	I-Code_Block
1)	O	I-Code_Block
"	O	I-Code_Block
value	O	O
will	O	O
be	O	O
set	O	O
correctly	O	O
.	O	O

The	O	O
error	O	O
appears	O	O
in	O	O
all	O	O
browsers	O	B-Application
.	O	O

Link	O	O
to	O	O
JSbin	O	B-Application
example	O	O
http://jsbin.com/catolumifa/edit?html,output	O	O

You	O	O
are	O	O
not	O	O
able	O	O
to	O	O
set	O	O
past	O	O
date	O	O
"	O	B-Value
2016	O	I-Value
,	O	I-Value
1	O	I-Value
,	O	I-Value
1	O	I-Value
"	O	I-Value
because	O	O
you	O	O
have	O	O
set	O	O
minimum	O	O
date	O	O
as	O	O
current	O	B-Value
date	O	I-Value
.	O	O

so	O	O
you	O	O
cannot	O	O
set	O	O
older	O	O
date	O	O
than	O	O
today	O	O
.	O	O

so	O	O
please	O	O
remove	O	O
below	O	O
code	O	O
lines	O	O
from	O	O
your	O	O
code	O	O
.	O	O

Can	O	O
<meta>	B-Code_Block	B-HTML_XML_Tag
tags	O	O
go	O	O
in	O	O
external	O	O
CSS	O	B-Language
sheets,	O	O
and	O	O
be	O	O
linked	O	O
to	O	O
with	O	O
the	O	O
<link>	B-Code_Block	B-HTML_XML_Tag
tags	O	O
used	O	O
for	O	O
CSS	O	B-Language
?	O	O

That	O	O
is	O	O

CSS	O	B-Language
:	O	O

Why	O	O
the	O	O
down	O	O
vote	O	O
?	O	O

I	O	O
consider	O	O
this	O	O
well	O	O
asked	O	O
.	O	O

If	O	O
you	O	O
think	O	O
it	O	O
can	O	O
be	O	O
improved	O	O
,	O	O
please	O	O
suggest	O	O
how	O	O
.	O	O

Otherwise	O	O
,	O	O
please	O	O
up	O	O
vote	O	O
!	O	O

Thank	O	O
you	O	O
.	O	O

Meta	O	O
tags	O	O
are	O	O
not	O	O
styles	O	O
,	O	O
and	O	O
therefore	O	O
cannot	O	O
be	O	O
put	O	O
in	O	O
stylesheets	O	O
.	O	O

This	O	O
is	O	O
code	O	O
for	O	O
a	O	O
HW	O	O
question	O	O
in	O	O
my	O	O
Multivariate	O	O
Analysis	O	O
Class	O	O

PROC	O	B-Data_Structure
PLOT	O	I-Data_Structure
is	O	O
currently	O	O
generating	O	O
a	O	O
huge	O	O
chart	O	B-Data_Structure
,	O	O
maybe	O	O
5-10	O	O
pages	O	O
tall	O	O
,	O	O
with	O	O
ridiculous	O	O
vertical	O	O
scaling	O	O
(	O	O
something	O	O
like	O	O
.05	O	B-Value
=	O	O
an	O	O
inch+	O	O
of	O	O
computer	O	O
screen	O	O
.	O	O
)	O	O

It	O	O
's	O	O
too	O	O
big	O	O
to	O	O
put	O	O
in	O	O
a	O	O
word	O	O
document	O	O
to	O	O
hand	O	O
in	O	O
,	O	O
and	O	O
it	O	O
's	O	O
not	O	O
informative	O	O
as	O	O
is	O	O
.	O	O

My	O	O
question	O	O
is	O	O
why	O	O
is	O	O
my	O	O
SAS	O	B-Application
doing	O	O
this	O	O
,	O	O
and	O	O
can	O	O
I	O	O
fix	O	O
it	O	O
?	O	O

I	O	O
'd	O	O
love	O	O
it	O	O
to	O	O
be	O	O
scaled	O	O
down	O	O
to	O	O
a	O	O
5	O	B-Value
"	O	I-Value
x	O	I-Value
5	O	I-Value
"	O	I-Value
or	O	O
something	O	O
like	O	O
that	O	O
...	O	O
can	O	O
I	O	O
do	O	O
this	O	O
?	O	O

(	O	O
I	O	O
've	O	O
a	O	O
working	O	O
knowledge	O	O
of	O	O
SAS	O	B-Application
,	O	O
but	O	O
I	O	O
'm	O	O
far	O	O
from	O	O
skilled	O	O
at	O	O
it	O	O
.	O	O
)	O	O

Try	O	O
using	O	O
ods	B-Code_Block	B-Function
graphics	I-Code_Block	I-Function
and	O	O
PROC	B-Code_Block	B-Function
SGPLOT	I-Code_Block	I-Function
.	O	O

I	O	O
wanted	O	O
to	O	O
track	O	O
my	O	O
models	O	O
and	O	O
their	O	O
CRUD	O	B-Library
operations	O	O
through	O	O
handling	O	O
post_save	O	B-Function
,	O	O
delete	O	B-Function
and	O	O
init	O	B-Function
signals	O	I-Function
,	O	O
and	O	O
then	O	O
save	O	O
entry	O	O
to	O	O
the	O	O
Database	O	O
about	O	O
this	O	O
operation	O	O
handled	O	O
.	O	O

Then	O	O
the	O	O
funny	O	O
thing	O	O
,	O	O
it	O	O
is	O	O
a	O	O
recursion	O	O
of	O	O
saves	O	B-Function
..	O	O
.	O	O

I	O	O
created	O	O
model	O	O
CRUD_Storage	O	B-Function
,	O	O
i	O	O
want	O	O
to	O	O
prevent	O	O
it	O	O
sending	O	O
signals	O	O
like	O	O
pre(post)init	O	B-Function
,	O	O
delete	O	B-Function
,	O	O
save	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
DRY	O	O
way	O	O
of	O	O
dismissing	O	O
signals	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
dismiss	O	O
a	O	O
signal	O	O
to	O	O
avoid	O	O
recursion	O	O
,	O	O
a	O	O
simple	O	O
way	O	O
to	O	O
go	O	O
is	O	O
to	O	O
set	O	O
an	O	O
attribute	O	O
on	O	O
the	O	O
current	O	O
instance	O	O
to	O	O
prevent	O	O
upcoming	O	O
signals	O	O
firing	O	O
.	O	O

This	O	O
can	O	O
be	O	O
done	O	O
using	O	O
a	O	O
simple	O	O
decorator	O	O
that	O	O
checks	O	O
if	O	O
the	O	O
given	O	O
instance	O	O
has	O	O
the	O	O
'	O	O
skip_signal	O	B-Function
'	O	O
attribute	O	O
,	O	O
and	O	O
if	O	O
so	O	O
prevents	O	O
the	O	O
method	O	O
from	O	O
being	O	O
called	O	O
:	O	O

We	O	O
can	O	O
now	O	O
use	O	O
it	O	O
this	O	O
way	O	O
:	O	O

Hope	O	O
This	O	O
helps	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
think	O	O
you	O	O
can	O	O
prevent	O	O
Django	O	B-Library
from	O	O
sending	O	O
those	O	O
signals	O	O
.	O	O

However	O	O
,	O	O
you	O	O
can	O	O
adapt	O	O
your	O	O
handler	O	O
to	O	O
not	O	O
log	O	O
saves	O	O
for	O	O
your	O	O
CRUD_Storage	B-Code_Block	B-Function
model	O	O
.	O	O

I	O	O
am	O	O
working	O	O
on	O	O
an	O	O
internal	O	O
helpdesk	O	O
.	O	O

Emails	O	O
address	O	O
to	O	O
the	O	O
helpdesk	O	O
appear	O	O
in	O	O
a	O	O
Notes	O	B-User_Interface_Element
View	O	I-User_Interface_Element
,	O	O
and	O	O
I	O	O
can	O	O
open	O	O
the	O	O
document	O	O
in	O	O
XPages	O	B-Application
and	O	O
see	O	O
the	O	O
text	O	B-User_Interface_Element
.	O	O

But	O	O
it	O	O
wo	O	O
n't	O	O
show	O	O
any	O	O
inserted	O	O
images	O	B-User_Interface_Element
within	O	O
the	O	O
text	O	B-User_Interface_Element
.	O	O

I	O	O
can	O	O
list	O	O
the	O	O
attachments	O	O
as	O	O
external	O	O
links	O	O
(	O	O
courtesy	O	O
of	O	O
http://techdriveactive.blogspot.co.uk/2012/11/open-attachments-in-xpage-in-client.html	O	O
)	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
get	O	O
a	O	O
handle	O	O
on	O	O
the	O	O
images	O	B-User_Interface_Element
.	O	O

Any	O	O
ideas	O	O
?	O	O
?	O	O

To	O	O
you	O	O
HelpDeskOpenDoc.xsp	O	B-File_Name
XPage	O	B-Application
add	O	O
a	O	O
Rich	O	B-User_Interface_Element
Text	O	I-User_Interface_Element
control	O	I-User_Interface_Element
and	O	O
bind	O	O
it	O	O
to	O	O
the	O	O
Rich	O	B-User_Interface_Element
Text	O	I-User_Interface_Element
Field	O	I-User_Interface_Element
with	O	O
the	O	O
images	O	B-User_Interface_Element
and	O	O
other	O	O
rich	O	O
content	O	O
..	O	O
.	O	O

One	O	O
way	O	O
around	O	O
that	O	O
challenge	O	O
is	O	O
to	O	O
use	O	O
a	O	O
Dojo	O	B-Class
ContentPane	O	I-Class
.	O	O

It	O	O
has	O	O
a	O	O
href	O	B-Variable
attribute	O	O
that	O	O
can	O	O
point	O	O
to	O	O
a	O	O
different	O	O
url	O	O
.	O	O

You	O	O
then	O	O
can	O	O
point	O	O
it	O	O
to	O	O
the	O	O
content	O	O
rendered	O	O
by	O	O
the	O	O
classic	O	O
engine	O	O
:	O	O

Note	O	O
:	O	O
this	O	O
wo	O	O
n't	O	O
work	O	O
in	O	O
XPiNC	O	B-Application

I	O	O
tried	O	O
implementing	O	O
this	O	O
tick	O	O
method	O	O
in	O	O
a	O	O
Win	O	B-Operating_System
8	O	B-Version
WAMP	O	B-Application
server	O	I-Application
running	O	O
PHP	O	B-Language
7.1	O	B-Version

But	O	O
I	O	O
end	O	O
up	O	O
with	O	O
this	O	O
error	O	O
after	O	O
a	O	O
process	O	O
that	O	O
seem	O	O
more	O	O
like	O	O
an	O	O
infinite	O	O
loop	O	O
:	O	O

Mean	O	O
while	O	O
the	O	O
code	O	O
works	O	O
on	O	O
a	O	O
live	O	O
sever	O	B-Device
running	O	O
PHP	O	B-Language
7.1	O	B-Version
and	O	O
also	O	O
on	O	O
a	O	O
WIN	O	B-Operating_System
8	O	B-Version
WAMP	O	B-Application
server	O	I-Application
running	O	O
PHP	O	B-Language
5.5	O	B-Version

First	O	O
of	O	O
all	O	O
really	O	O
sorry	O	O
if	O	O
this	O	O
is	O	O
a	O	O
duplicate	O	O
,	O	O
although	O	O
I	O	O
think	O	O
its	O	O
not	O	O
coz	O	O
I	O	O
have	O	O
searched	O	O
a	O	O
lot	O	O
but	O	O
found	O	O
nothing	O	O
working	O	O
.	O	O

I	O	O
want	O	O
to	O	O
remove	O	O
the	O	O
notification	O	B-User_Interface_Element
on	O	O
click	O	O
of	O	O
cancel	O	B-User_Interface_Element
-	O	O
which	O	O
I	O	O
found	O	O
somewhere	O	O
to	O	O
call	O	O
.cancel()	O	B-Function
method	O	O
but	O	O
where	O	O
should	O	O
i	O	O
make	O	O
that	O	O
call	O	O
.	O	O

Other	O	O
one	O	O
when	O	O
I	O	O
click	O	O
on	O	O
accept	O	B-User_Interface_Element
or	O	O
cancel	O	B-User_Interface_Element
the	O	O
intent	O	B-Class
values	O	O
comes	O	O
same	O	O
only	O	O
which	O	O
is	O	O
"	O	O
Notifications	O	O
"	O	O
in	O	O
the	O	O
logcat	O	O
.	O	O

Please	O	O
let	O	O
me	O	O
know	O	O
what	O	O
i	O	O
am	O	O
doing	O	O
wrong	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

My	O	O
notification	O	B-User_Interface_Element
creator	O	O
-	O	O

While	O	O
the	O	O
other	O	O
file	O	O
that	O	O
is	O	O
intent	O	B-Class
receiver	O	O
it	O	O
is	O	O
like	O	O
-	O	O

1)	O	O
to	O	O
remove	O	O
notification	O	B-User_Interface_Element
on	O	O
cancel	O	B-User_Interface_Element
click	O	O
:	O	O

add	O	O
this	O	O
code	O	O
in	O	O
your	O	O
reciever	O	O

PS	O	O
:	O	O
you	O	O
used	O	O
"	O	B-Value
1	O	I-Value
"	O	I-Value
as	O	O
notificationId	O	B-Variable
in	O	O
your	O	O
code	O	O
(	O	O
mNotificationManager	B-Code_Block	B-Code_Block
.	I-Code_Block	I-Code_Block
notify(1	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
mBuilder	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
build	I-Code_Block	I-Code_Block
())	I-Code_Block	I-Code_Block
;)	I-Code_Block	I-Code_Block
,	O	O
the	O	O
best	O	O
way	O	O
is	O	O
to	O	O
send	O	O
it	O	O
via	O	O
putExtra	O	B-Function
()	O	I-Function
and	O	O
retrieve	O	O
it	O	O
in	O	O
your	O	O
receiver	O	O
.	O	O

2)	O	O
sorry	O	O
,	O	O
i	O	O
did	O	O
n't	O	O
understand	O	O
the	O	O
second	O	O
part	O	O
of	O	O
your	O	O
question	O	O
.	O	O

can	O	O
you	O	O
explain	O	O
more	O	O
?	O	O

It	O	O
there	O	O
any	O	O
way	O	O
to	O	O
find	O	O
out	O	O
if	O	O
there	O	O
is	O	O
an	O	O
incoming	O	O
telephone	O	B-User_Interface_Element
call	O	I-User_Interface_Element
screen	O	I-User_Interface_Element
being	O	O
shown	O	O
over	O	O
my	O	O
application	O	O
?	O	O

In	O	O
fact	O	O
,	O	O
while	O	O
we	O	O
would	O	O
n't	O	O
accept	O	O
call	O	O
-	O	O
the	O	O
application	O	O
would	O	O
not	O	O
be	O	O
deactivated	O	O
,	O	O
so	O	O
is	O	O
there	O	O
any	O	O
API	O	B-Library
method	O	O
or	O	O
maybe	O	O
some	O	O
workarounds	O	O
like	O	O
screenshoting	O	O
and	O	O
verifying	O	O
by	O	O
pixel	O	O
?	O	O

:-)	O	O

You	O	O
can	O	O
tell	O	O
if	O	O
the	O	O
user	O	O
is	O	O
receiving	O	O
an	O	O
incoming	O	O
telephone	O	B-Device
call	O	O
using	O	O
the	O	O
RootFrame.Obscured	O	B-Class
event	O	O
as	O	O
described	O	O
here	O	O
:	O	O

http://www.wintellect.com/CS/blogs/jprosise/archive/2011/02/11/silverlight-for-windows-phone-programming-tip-6.aspx	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
run	O	O
a	O	O
CSV	O	B-File_Type
import	O	O
using	O	O
the	O	O
COPY	B-Code_Block	B-Function
command	O	O
for	O	O
some	O	O
data	O	O
that	O	O
includes	O	O
a	O	O
guillemet	O	O
(Âť)	B-Code_Block	B-Code_Block
.	O	O

Redshift	O	B-Application
complains	O	O
that	O	O
the	O	O
column	O	B-Data_Structure
value	O	O
is	O	O
too	O	O
long	O	O
for	O	O
the	O	O
varchar	B-Code_Block	B-Variable
column	O	B-Data_Structure
I	O	O
have	O	O
defined	O	O
.	O	O

The	O	O
error	O	O
in	O	O
the	O	O
"	O	B-Value
Loads	O	I-Value
"	O	I-Value
tab	O	B-User_Interface_Element
in	O	O
the	O	O
Redshift	O	B-Application
GUI	O	I-Application
displays	O	O
this	O	O
character	O	O
as	O	O
two	O	O
dots	O	O
:	O	O
.	B-Code_Block	B-Value
.	I-Code_Block	I-Value
-	O	O
had	O	O
it	O	O
been	O	O
treated	O	O
as	O	O
one	O	O
,	O	O
it	O	O
would	O	O
have	O	O
fit	O	O
in	O	O
the	O	O
varchar	B-Code_Block	B-Variable
column	O	B-Data_Structure
.	O	O

It	O	O
's	O	O
not	O	O
clear	O	O
whether	O	O
there	O	O
is	O	O
some	O	O
sort	O	O
of	O	O
conversion	O	O
error	O	O
occurring	O	O
or	O	O
if	O	O
there	O	O
is	O	O
a	O	O
display	O	O
issue	O	O
.	O	O

When	O	O
trying	O	O
to	O	O
do	O	O
plain	O	O
INSERTs	B-Code_Block	B-Code_Block
I	O	O
run	O	O
into	O	O
strange	O	O
behavior	O	O
as	O	O
well	O	O
:	O	O

3	O	O
characters	O	O
treated	O	O
as	O	O
4	O	O
?	O	O

Why	O	O
does	O	O
char_length	B-Code_Block	B-Function
return	O	O
2	O	B-Value
?	O	O

I	O	O
've	O	O
checked	O	O
the	O	O
client	O	O
encoding	O	O
and	O	O
database	O	O
encodings	O	O
and	O	O
those	O	O
all	O	O
seem	O	O
to	O	O
be	O	O
UTF8/UNICODE	O	O
.	O	O

You	O	O
need	O	O
to	O	O
increase	O	O
the	O	O
length	O	O
of	O	O
your	O	O
varchar	O	B-Variable
field	O	O
.	O	O

Multibyte	O	O
characters	O	B-Data_Type
use	O	O
more	O	O
than	O	O
one	O	O
character	O	B-Data_Type
and	O	O
length	O	O
in	O	O
the	O	O
definition	O	O
of	O	O
varchar	O	B-Variable
field	O	O
are	O	O
byte	O	O
based	O	O
.	O	O

So	O	O
,	O	O
your	O	O
special	O	O
char	O	B-Data_Type
might	O	O
be	O	O
taking	O	O
more	O	O
than	O	O
a	O	O
byte	O	O
.	O	O

If	O	O
it	O	O
still	O	O
does	O	O
n't	O	O
work	O	O
refer	O	O
to	O	O
the	O	O
doc	O	O
page	O	O
for	O	O
Redshift	O	B-Application
below	O	O
,	O	O

http://docs.aws.amazon.com/redshift/latest/dg/multi-byte-character-load-errors.html	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
find	O	O
for	O	O
each	O	O
row	O	B-Data_Structure
in	O	O
the	O	O
big	O	O
list	O	B-Data_Structure
the	O	O
'	O	O
closest	O	O
'	O	O
row	O	B-Data_Structure
in	O	O
the	O	O
little	O	O
list	O	B-Data_Structure
,	O	O
as	O	O
defined	O	O
by	O	O
the	O	O
euclidean	O	O
norm	O	O
(	O	O
i.e	O	O
.	O	O
sum	O	O
of	O	O
squared	O	O
distances	O	O
between	O	O
the	O	O
corresponding	O	O
values	O	O
in	O	O
the	O	O
k	O	B-Code_Block
=3	O	I-Code_Block
dimension	O	O
)	O	O
.	O	O

I	O	O
can	O	O
see	O	O
how	O	O
to	O	O
do	O	O
this	O	O
using	O	O
two	O	O
loops	O	O
,	O	O
but	O	O
it	O	O
seems	O	O
like	O	O
there	O	O
ought	O	O
to	O	O
be	O	O
a	O	O
better	O	O
way	O	O
to	O	O
do	O	O
this	O	O
using	O	O
built	O	O
in	O	O
matrix	O	B-Data_Structure
operations	O	O
.	O	O

Approach	O	O
#1	O	O

There	O	O
is	O	O
a	O	O
built	O	O
in	O	O
MATLAB	O	B-Language
function	O	O
pdist2	B-Code_Block	B-Function
which	O	O
finds	O	O
"	B-Code_Block	O
Pairwise	I-Code_Block	O
distance	I-Code_Block	O
between	I-Code_Block	O
two	I-Code_Block	O
sets	I-Code_Block	O
of	I-Code_Block	O
observations	I-Code_Block	O
"	I-Code_Block	O
.	O	O

With	O	O
it	O	O
,	O	O
you	O	O
can	O	O
calculate	O	O
the	O	O
euclidean	O	O
distance	O	O
matrix	O	B-Data_Structure
and	O	O
then	O	O
find	O	O
indices	O	O
of	O	O
minimum	O	O
values	O	O
along	O	O
the	O	O
appropriate	O	O
dimension	O	O
in	O	O
the	O	O
distance	O	O
matrix	O	B-Data_Structure
that	O	O
would	O	O
represent	O	O
the	O	O
"	O	O
closest	O	O
"	O	O
for	O	O
each	O	O
row	O	B-Data_Structure
of	O	O
bigList	B-Code_Block	B-Variable
in	O	O
littleList	B-Code_Block	B-Variable
.	O	O

Here	O	O
's	O	O
the	O	O
one-liner	O	O
with	O	O
it	O	O
-	O	O

Approach	O	O
#2	O	O

If	O	O
you	O	O
care	O	O
about	O	O
performance	O	O
,	O	O
here	O	O
's	O	O
a	O	O
method	O	O
that	O	O
leverages	O	O
fast	B-Code_Block	O
matrix	I-Code_Block	B-Data_Structure
multiplication	I-Code_Block	O
in	I-Code_Block	O
MATLAB	I-Code_Block	B-Language

and	O	O
most	O	O
of	O	O
the	O	O
code	O	O
presented	O	O
here	O	O
is	O	O
taken	O	O
from	O	O
this	O	O
smart	O	O
solution	O	O
.	O	O

Benchmarking	O	O

Benchmarking	O	O
Code	O	O
-	O	O

Benchmark	O	O
results	O	O
-	O	O

Quick	O	O
conclusions	O	O
:	O	O
The	O	O
runtimes	O	O
with	O	O
Shai	O	B-User_Name
's	O	O
second	O	O
approach	O	O
that	O	O
was	O	O
a	O	O
combination	O	O
of	O	O
bsxfun	B-Code_Block	B-Function
and	O	O
matrix	O	B-Data_Structure
multiplication	O	O
were	O	O
very	O	O
close	O	O
with	O	O
the	O	O
one	O	O
based	O	O
on	O	O
pdist2	B-Code_Block	B-Function
and	O	O
no	O	O
clear	O	O
winner	O	O
could	O	O
be	O	O
decided	O	O
between	O	O
those	O	O
two	O	O
.	O	O

You	O	O
can	O	O
do	O	O
it	O	O
with	O	O
bsxfun	B-Code_Block	B-Function
:	O	O

I	O	O
know	O	O
how	O	O
to	O	O
detect	O	O
mousedown	O	B-Class
event	O	I-Class
on	O	O
a	O	O
directive	O	O
that	O	O
is	O	O
clicked	O	O
.	O	O

However	O	O
my	O	O
directive	O	O
also	O	O
needs	O	O
to	O	O
become	O	O
unforcused	O	O
or	O	O
deselected	O	O
when	O	O
mouse	O	B-Device
is	O	O
down	O	O
outside	O	O
of	O	O
my	O	O
directive/	O	O
element	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
this	O	O
?	O	O

Create	O	O
a	O	O
link	O	O
function	O	O
in	O	O
the	O	O
directive	O	O
which	O	O
binds	O	O
a	O	O
mousedown	O	B-Class
event	O	I-Class
handler	O	I-Class
on	O	O
the	O	O
document	O	O
.	O	O

Then	O	O
,	O	O
bind	O	O
another	O	O
mousedown	O	B-Class
event	O	I-Class
on	O	O
the	O	O
directive	O	O
element	O	O
itself	O	O
.	O	O

The	O	O
latter	O	O
handler	O	O
should	O	O
also	O	O
call	O	O
event.stopPropagation()	B-Code_Block	B-Function
to	O	O
prevent	O	O
the	O	O
event	O	O
from	O	O
bubbling	O	O
all	O	O
of	O	O
the	O	O
way	O	O
up	O	O
to	O	O
the	O	O
document	O	O
level	O	O
:	O	O

Working	O	O
Plunker	O	B-Application

If	O	O
an	O	O
app	O	O
was	O	O
installed	O	O
on	O	O
a	O	O
device	O	O
and	O	O
then	O	O
uninstalled	O	O
,	O	O
is	O	O
there	O	O
a	O	O
way	O	O
of	O	O
determining	O	O
this	O	O
using	O	O
the	O	O
APN	O	B-Application
feedback	O	O
service	O	O
?	O	O

The	O	O
feedback	O	O
service	O	O
is	O	O
documented	O	O
as	O	O
saying	O	O
its	O	O
possible	O	O
to	O	O
know	O	O
devices	O	O
which	O	O
are	O	O
n't	O	O
responding	O	O
to	O	O
notifications	O	O
,	O	O
but	O	O
is	O	O
additional	O	O
information	O	O
included	O	O
,	O	O
such	O	O
why	O	O
its	O	O
not	O	O
responding	O	O
and	O	O
when	O	O
it	O	O
first	O	O
started	O	O
non	O	O
responding	O	O
etc	O	O
.	O	O
?	O	O

Is	O	O
there	O	O
any	O	O
way	O	O
of	O	O
determining	O	O
if	O	O
an	O	O
app	O	O
has	O	O
been	O	O
uninstalled	O	O
?	O	O

Or	O	O
of	O	O
knowing	O	O
if	O	O
an	O	O
app	O	O
is	O	O
present	O	O
of	O	O
absent	O	O
from	O	O
a	O	O
device	O	O
?	O	O

Thanks	O	O

In	O	O
short	O	O
,	O	O
no	O	O
there	O	O
is	O	O
n't	O	O
a	O	O
way	O	O
to	O	O
determine	O	O
if	O	O
an	O	O
app	O	O
has	O	O
been	O	O
uninstalled	O	O
.	O	O

See	O	O
my	O	O
answer	O	O
to	O	O
this	O	O
question	O	O
which	O	O
might	O	O
help	O	O
:	O	O

Basically	O	O
,	O	O
yes	O	O
you	O	O
could	O	O
use	O	O
the	O	O
feedback	O	O
service	O	O
of	O	O
APNS	O	B-Application
but	O	O
it	O	O
would	O	O
n't	O	O
conclusively	O	O
tell	O	O
you	O	O
if	O	O
a	O	O
device	O	O
had	O	O
been	O	O
uninstalled	O	O
.	O	O

If	O	O
you	O	O
need	O	O
to	O	O
know	O	O
this	O	O
then	O	O
you	O	O
're	O	O
unfortunately	O	O
going	O	O
to	O	O
have	O	O
to	O	O
change	O	O
the	O	O
way	O	O
you	O	O
're	O	O
going	O	O
about	O	O
things	O	O
as	O	O
it	O	O
's	O	O
impossible	O	O
to	O	O
know	O	O
(	O	O
at	O	O
present	O	O
)	O	O
.	O	O

ng-map.min.js	O	B-File_Name
in	O	O
my	O	O
application	O	O
for	O	O
view	O	O
map	O	B-User_Interface_Element
.	O	O

I	O	O
got	O	O
map	O	B-User_Interface_Element
my	O	O
applicatoion	O	O
.	O	O

But	O	O
in	O	O
console	O	B-Application
there	O	O
is	O	O
an	O	O
error	O	O
like	O	O

My	O	O
Map	O	B-User_Interface_Element
div	O	B-HTML_XML_Tag
is	O	O
following	O	O
below	O	O

I	O	O
got	O	O
map	O	B-User_Interface_Element
but	O	O
in	O	O
console	O	B-Application
errors	O	O
occurs	O	O
.How	O	O
can	O	O
i	O	O
solve	O	O
this	O	O
issues	O	O
?	O	O

I	O	O
have	O	O
to	O	O
play	O	O
a	O	O
song	O	O
in	O	O
browses	O	B-Application
including	O	O
Android	O	B-Device
and	O	O
Iphone	O	B-Device
.	O	O

I	O	O
did	O	O
it	O	O
using	O	O
the	O	O
html5	O	B-Language
audio	O	O
player	O	O
.	O	O

But	O	O
playbackrate	O	B-Variable
is	O	O
not	O	O
working	O	O
in	O	O
Mobile	O	B-Device
Browsers	O	B-Application
.	O	O

Is	O	O
there	O	O
any	O	O
library	O	O
or	O	O
plugin	O	O
available	O	O
for	O	O
this	O	O
?	O	O
.	O	O

Is	O	O
web-audio	O	B-Library
API	O	I-Library
supports	O	O
this	O	O
feature	O	O
?	O	O
.	O	O

In	O	O
this	O	O
site	O	O
playback	O	B-Variable
rate	O	I-Variable
is	O	O
working	O	O
in	O	O
mobiles	O	B-Device
too	O	O
.	O	O

But	O	O
unable	O	O
to	O	O
find	O	O
which	O	O
method	O	O
they	O	O
are	O	O
following	O	O
?	O	O

Please	O	O
help	O	O
me	O	O
.	O	O

The	O	O
site	O	O
you	O	O
're	O	O
linking	O	O
to	O	O
uses	O	O
Web	O	B-Library
Audio	O	I-Library
,	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
use	O	O
playbackrate	O	B-Variable
to	O	O
change	O	O
the	O	O
tempo	O	O
of	O	O
the	O	O
song	O	O
.	O	O

Instead	O	O
it	O	O
schedules	O	O
each	O	O
note	O	O
separately	O	O
,	O	O
so	O	O
when	O	O
you	O	O
change	O	O
the	O	O
tempo	O	O
,	O	O
what	O	O
you	O	O
're	O	O
really	O	O
doing	O	O
is	O	O
change	O	O
the	O	O
BPM	O	O
at	O	O
which	O	O
notes	O	O
are	O	O
scheduled	O	O
.	O	O

You	O	O
can	O	O
think	O	O
of	O	O
it	O	O
as	O	O
changing	O	O
this	O	O
:	O	O

to	O	O
:	O	O

when	O	O
you	O	O
go	O	O
from	O	O
60	O	B-Value
BPM	O	I-Value
to	O	O
120	O	B-Value
BPM	O	I-Value
.	O	O

There	O	O
is	O	O
,	O	O
however	O	O
,	O	O
a	O	O
similar	O	O
thing	O	O
is	O	O
Web	O	B-Library
Audio	O	I-Library
as	O	O
what	O	O
you	O	O
're	O	O
doing	O	O
with	O	O
the	O	O
audio	O	O
element	O	O
.	O	O

The	O	O
AudioBufferSourceNode	O	B-Class
,	O	O
which	O	O
you	O	O
use	O	O
to	O	O
play	O	O
a	O	O
pre	O	O
recorded	O	O
sample	O	O
,	O	O
has	O	O
a	O	O
property	O	O
called	O	O
playbackRate	O	B-Variable
.	O	O

This	O	O
changes	O	O
the	O	O
rate	O	O
of	O	O
the	O	O
audio	O	O
(	O	O
but	O	O
does	O	O
n't	O	O
do	O	O
pitch	O	O
correction	O	O
!	O	O
)	O	O
.	O	O

Check	O	O
it	O	O
out	O	O
at	O	O
https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode	O	O

There	O	O
are	O	O
no	O	O
any	O	O
external	O	O
Plugin	O	B-Application
or	O	O
API	O	B-Application
which	O	O
is	O	O
required	O	O
to	O	O
play	O	O
audio	O	O
in	O	O
Browser	O	B-Application
,	O	O
this	O	O
is	O	O
one	O	O
of	O	O
the	O	O
advantages	O	O
of	O	O
using	O	O
HTML5	O	B-Language
.	O	O

Below	O	O
i	O	O
am	O	O
mentioning	O	O
the	O	O
same	O	O
with	O	O
easy	O	O
syntax	O	O
and	O	O
attributes	O	O
.	O	O

I	O	O
'm	O	O
attempting	O	O
to	O	O
update	O	O
a	O	O
MySQL	O	B-Application
table	O	O
using	O	O
C#	O	B-Language
,	O	O
however	O	O
I	O	O
'm	O	O
getting	O	O
the	O	O
error	O	O

Below	O	O
is	O	O
the	O	O
full	O	O
query	O	O
I	O	O
'm	O	O
attempting	O	O
to	O	O
execute	O	O
with	O	O
the	O	O
values	O	O
of	O	O
the	O	O
variables	O	O
inserted	O	O
.	O	O

I	O	O
've	O	O
checked	O	O
that	O	O
the	O	O
column	O	B-Data_Structure
names	O	O
are	O	O
correct	O	O
and	O	O
they	O	O
are	O	O
.	O	O

I	O	O
just	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
spot	O	O
what	O	O
is	O	O
invalid	O	O
about	O	O
my	O	O
query	O	O
,	O	O
I	O	O
'm	O	O
sure	O	O
it	O	O
's	O	O
something	O	O
basic	O	O
.	O	O

Can	O	O
anyone	O	O
spot	O	O
what	O	O
is	O	O
wrong	O	O
with	O	O
it	O	O
?	O	O

Cheers	O	O

EDIT	O	O
-	O	O
There	O	O
is	O	O
a	O	O
single	O	O
quotation	O	O
mark	O	O
after	O	O
the	O	O
uid='0	O	B-Code_Block
however	O	O
it	O	O
seems	O	O
to	O	O
have	O	O
disapeared	O	O
in	O	O
the	O	O
post	O	O

missing	O	O
'	O	B-Value
following	O	O
zero	O	O
:	O	O
near	O	B-Code_Block
civ_alive='0	O	I-Code_Block

original	O	O
:	O	O

should	O	O
be	O	O
to	O	O
avoid	O	O
error	O	O
syntax	O	O
:	O	O

and	O	O
regarding	O	O
mariadb	O	B-Application
comments	O	O
-	O	O
mariadb	O	B-Application
is	O	O
a	O	O
fork	O	O
of	O	O
mysql	O	B-Application
so	O	O
these	O	O
are	O	O
pretty	O	O
similar	O	O
,	O	O
therefore	O	O
would	O	O
not	O	O
make	O	O
a	O	O
problem	O	O
out	O	O
of	O	O
it	O	O
.	O	O

I	O	O
have	O	O
a	O	O
pandas.DataFrame	B-Code_Block	B-Class
with	O	O
3	O	O
columns	O	B-Data_Structure
of	O	O
type	O	O
str	B-Code_Block	B-Data_Type
and	O	O
n	B-Code_Block	B-Variable
other	O	O
columns	O	B-Data_Structure
of	O	O
type	O	O
float64	B-Code_Block	B-Data_Type
.	O	O

I	O	O
need	O	O
to	O	O
group	O	O
rows	O	O
by	O	O
one	O	O
of	O	O
the	O	O
three	O	O
str	B-Code_Block	B-Data_Type
columns	O	O
and	O	O
apply	O	O
a	O	O
function	O	O
myComplexFunc()	B-Code_Block	B-Function
which	O	O
will	O	O
reduce	O	O
`̀N	O	B-Value
rows	O	O
to	O	O
one	O	O
row	O	O
.	O	O

myComplexFunc()	B-Code_Block	B-Function
take	O	O
only	O	O
rows	O	B-Variable
of	O	O
type	O	O
float64	B-Code_Block	B-Data_Type
.	O	O

This	O	O
can	O	O
be	O	O
done	O	O
with	O	O
some	O	O
for	O	B-Code_Block
loops	O	I-Code_Block
but	O	O
it	O	O
will	O	O
not	O	O
be	O	O
efficient	O	O
,	O	O
So	O	O
I	O	O
tried	O	O
to	O	O
use	O	O
the	O	O
flexible	O	O
apply	O	O
of	O	O
pandas	B-Code_Block	B-Library
but	O	O
it	O	O
seems	O	O
that	O	O
it	O	O
runs	O	O
the	O	O
heavy	O	O
code	O	O
of	O	O
myComplexFunc()	B-Code_Block	B-Function
twice	O	O
!	O	O

To	O	O
be	O	O
more	O	O
clear	O	O
,	O	O
here	O	O
is	O	O
a	O	O
minimal	O	O
example	O	O

Let	O	O
"	O	O
df	O	B-Variable
"	O	O
be	O	O
a	O	O
dataFrame	O	B-Class
like	O	O
this	O	O
:	O	O

myComplexFunc()	O	B-Function

What	O	O
I	O	O
want	O	O
:	O	O

The	O	O
column	O	O
B	B-Code_Block	B-Variable
have	O	O
been	O	O
removed	O	O
because	O	O
it	O	O
's	O	O
not	O	O
of	O	O
type	O	O
float64	B-Code_Block	B-Data_Type
.	O	O

Thanks	O	O
in	O	O
advance	O	O

You	O	O
can	O	O
filter	O	O
DataFrame	O	B-Class
by	O	O
dtype	B-Code_Block	B-Data_Type
by	O	O
select_dtypes	B-Code_Block	B-Function
,	O	O
but	O	O
then	O	O
need	O	O
aggreagate	O	O
by	O	O
Series	B-Code_Block	B-Class
df.A	I-Code_Block	B-Variable
:	O	O

because	O	O
if	O	O
use	O	O
only	O	O
A	B-Code_Block	B-Variable
:	O	O

get	O	O

and	O	O
it	O	O
is	O	O
right	O	O
-	O	O
all	O	O
string	O	B-Data_Type
columns	O	O
are	O	O
excluded	O	O
(	O	O
A	B-Code_Block	B-Variable
and	O	O
B	B-Code_Block	B-Variable
)	O	O
.	O	O

Something	O	O
going	O	O
wrong	O	O
badly	O	O
due	O	O
to	O	O
Message	O	B-User_Interface_Element
Compose	O	I-User_Interface_Element
Screen	O	I-User_Interface_Element
.	O	O

I	O	O
am	O	O
working	O	O
on	O	O
a	O	O
TabBar	O	B-User_Interface_Element
based	O	O
application	O	O
.	O	O

In	O	O
some	O	O
screens	O	O
I	O	O
am	O	O
showing	O	O
ToolBar	O	B-User_Interface_Element
instead	O	O
of	O	O
tabBar	O	B-User_Interface_Element
by	O	O
setting	O	O
hidesBottomBarWhenPushed	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
YES	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
and	O	O
its	O	O
working	O	O
fine	O	O
everytime	O	O
.	O	O

But	O	O
In	O	O
1	O	O
screen	O	O
I	O	O
am	O	O
sending	O	O
SMS	O	O
by	O	O
opening	O	O
Message	O	B-User_Interface_Element
Compose	O	I-User_Interface_Element
Screen	O	I-User_Interface_Element
within	O	O
the	O	O
iphone	O	B-Device
App	O	O
.	O	O

So	O	O
problem	O	O
occurs	O	O
if	O	O
I	O	O
open	O	O
Message	O	B-User_Interface_Element
Compose	O	I-User_Interface_Element
Screen	O	I-User_Interface_Element
and	O	O
i	O	O
clicked	O	O
Cancel	O	O
button	O	B-User_Interface_Element
of	O	O
Message	O	O
Screen	O	O
.	O	O

So	O	O
,	O	O
whenever	O	O
going	O	O
back	O	O
to	O	O
that	O	O
module	O	O
where	O	O
I	O	O
was	O	O
showing	O	O
ToolBar	O	B-User_Interface_Element
.	O	O

So	O	O
on	O	O
click	O	O
of	O	O
button	O	O
no	O	O
ToolBar	O	B-User_Interface_Element
.	O	O

Totally	O	O
blank	O	O
,	O	O
no	O	O
toolbar	O	B-User_Interface_Element
and	O	O
no	O	O
tabbar	O	B-User_Interface_Element
(	O	O
tabbar	O	B-User_Interface_Element
is	O	O
quite	O	O
obvious	O	O
i	O	O
have	O	O
already	O	O
set	O	O
hidesBottomBarWhenPushed	O	B-Class
)	O	O
.	O	O
.	O	O

But	O	O
why	O	O
toolbar	O	B-User_Interface_Element
now	O	O
showing	O	O
due	O	O
to	O	O
Compose	O	B-User_Interface_Element
screen	O	I-User_Interface_Element
?	O	O

There	O	O
is	O	O
no	O	O
link	O	O
with	O	O
compose	O	B-User_Interface_Element
screen	O	I-User_Interface_Element
to	O	O
this	O	O
screen	O	B-User_Interface_Element
.	O	O

Far	O	O
different	O	O
implementation	O	O
and	O	O
different	O	O
controllers	O	O
.	O	O

I	O	O
have	O	O
check	O	O
by	O	O
debugging	O	O
,	O	O
Toolbar	O	B-User_Interface_Element
frame	O	O
is	O	O
also	O	O
fine	O	O
.	O	O

Please	O	O
help	O	O

I	O	O
think	O	O
it	O	O
is	O	O
because	O	O
the	O	O
MFMessageComposeViewController	O	B-Class
has	O	O
got	O	O
a	O	O
navigation	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
.	O	O

Your	O	O
application	O	O
should	O	O
be	O	O
a	O	O
navigation	O	O
based	O	O
application	O	O
for	O	O
that	O	O
.	O	O

Otherwise	O	O
your	O	O
toolbar	O	B-User_Interface_Element
's	O	O
frame	O	O
position	O	O
will	O	O
be	O	O
affected	O	O
.	O	O

I	O	O
had	O	O
this	O	O
kind	O	O
of	O	O
problem	O	O
once	O	O
.	O	O

So	O	O
i	O	O
changed	O	O
the	O	O
application	O	O
into	O	O
navigation	O	O
based	O	O
but	O	O
hid	O	O
the	O	O
navigation	O	B-User_Interface_Element
controller	O	I-User_Interface_Element
.	O	I-User_Interface_Element

Hope	O	O
this	O	O
might	O	O
help	O	O
you	O	O
,	O	O

Happy	O	O
coding	O	O
!	O	O

Issue	O	O
fixed	O	O
..	O	O
.	O	O
had	O	O
problem	O	O
with	O	O
adding	O	O
it	O	O
to	O	O
keyframe	O	B-User_Interface_Element
window	O	I-User_Interface_Element

I	O	O
'm	O	O
traying	O	O
to	O	O
read	O	O
mails	O	O
from	O	O
gmail	O	B-Application

using	O	O
ImapClient	O	B-Application
:	O	O

An	O	O
exception	O	B-Class
of	O	O
type	O	O
'	O	O
System.Exception	O	B-Error_Name
'	O	O
occurred	O	O
in	O	O
AE.Net.Mail.dll	O	B-File_Name
but	O	O
was	O	O
not	O	O
handled	O	O
in	O	O
user	O	O
code	O	O

Additional	O	O
information	O	O
:	O	O
xm003	O	B-Value
BAD	O	O
Could	O	O
not	O	O
parse	O	O
command	O	O

This	O	O
problem	O	O
is	O	O
currently	O	O
an	O	O
open	O	O
bug	O	O
with	O	O
AE.Net.Mail	O	B-Library
.	O	O

Please	O	O
see	O	O
the	O	O
following	O	O
URL	O	O
for	O	O
information	O	O
:	O	O

https://github.com/andyedinborough/aenetmail/issues/197	O	O

It	O	O
looks	O	O
like	O	O
,	O	O
from	O	O
the	O	O
bug	O	O
information	O	O
and	O	O
comments	O	O
that	O	O
it	O	O
's	O	O
to	O	O
do	O	O
with	O	O
the	O	O
DateTime	O	B-Class
in	O	O
the	O	O
search	O	B-Class
condition	O	I-Class
.	O	O

Replacing	O	O
your	O	O
current	O	O
SearchCondition	B-Code_Block	B-Class
with	O	O
the	O	O
following	O	O
might	O	O
prevent	O	O
the	O	O
problem	O	O
,	O	O
if	O	O
I	O	O
'm	O	O
reading	O	O
the	O	O
comments	O	O
correctly	O	O
:	O	O

@Ahmado	O	B-User_Name
you	O	O
can	O	O
use	O	O
pop3	O	O
for	O	O
reading	O	O
inbox	O	B-Application
email	O	O
.	O	O

this	O	O
is	O	O
not	O	O
for	O	O
only	O	O
gmail	O	B-Application
,	O	O
this	O	O
can	O	O
be	O	O
use	O	O
for	O	O
other	O	O
email	O	O
also.for	O	O
this	O	O
you	O	O
need	O	O
2	O	O
dll	O	B-File_Type
.	O	O

Download	O	O
this	O	O
in	O	O
your	O	O
applicatin	O	O
using	O	O
nuget	O	B-Application
.	O	O

OpenPop.NET	O	B-Library
and	O	O
AE.Net.Mail	O	B-Library

Step1	O	O
:	O	O
According	O	O
to	O	O
your	O	O
credential	O	O
read	O	O
all	O	O
inbox	O	B-Application
email	O	O
:	O	O

Step	O	O
2	O	O
:Each	O	O
email	O	O
has	O	O
a	O	O
unique	O	O
id	O	B-Variable
,	O	O
using	O	O
this	O	O
you	O	O
can	O	O
get	O	O
the	O	O
email	O	O
details	O	O
:	O	O

This	O	O
code	O	O
sample	O	O
for	O	O
ASP.NET	O	B-Library
MVC	O	I-Library
.	O	O

For	O	O
your	O	O
case	O	O
you	O	O
can	O	O
also	O	O
review	O	O
the	O	O
code	O	O
sample	O	O

I	O	O
have	O	O
been	O	O
trying	O	O
for	O	O
two	O	O
weeks	O	O
to	O	O
find	O	O
binaries	O	O
for	O	O
ffmpeg	O	B-Application
and	O	O
Sox	O	B-Application
(	O	O
armeabi	O	B-Device
,	O	O
armeabiv7	O	B-Device
,	O	O
x86	O	B-Device
)	O	O
but	O	O
i	O	O
did	O	O
not	O	O
succeed	O	O
.	O	O

I	O	O
tried	O	O
building	O	O
it	O	O
my	O	O
self	O	O
from	O	O
this	O	O
project	O	O
but	O	O
I	O	O
still	O	O
did	O	O
not	O	O
succeed	O	O
.	O	O

Can	O	O
you	O	O
help	O	O
me	O	O
build	O	O
the	O	O
project	O	O
and	O	O
then	O	O
share	O	O
the	O	O
binaries	O	B-File_Type
?	O	O

I	O	O
would	O	O
heartly	O	O
appreciate	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
github	O	B-Website
repository	O	O

https://github.com/guardianproject/android-ffmpeg	O	O

How	O	O
to	O	O
get	O	O
previous	O	O
or	O	O
next	O	O
object	O	O
with	O	O
this	O	O
format	O	O
of	O	O
code	O	O
?	O	O

I	O	O
know	O	O
how	O	O
to	O	O
do	O	O
that	O	O
with	O	O
:	O	O

You	O	O
can	O	O
use	O	O
enumerate	B-Code_Block	B-Code_Block
:	O	O

Note	O	O
that	O	O
as	O	O
a	O	O
more	O	O
efficient	O	O
way	O	O
for	O	O
accessing	O	O
to	O	O
next	B-Code_Block	O
items	O	O
and	O	O
refuse	O	O
of	O	O
multiple	O	O
indexing	O	O
you	O	O
can	O	O
use	O	O
iter()	B-Code_Block	B-Function
function	O	O
to	O	O
create	O	O
an	O	O
iterator	O	O
object	O	O
from	O	O
your	O	O
list	O	B-Data_Structure
(	O	O
from	O	O
second	O	O
element	O	O
to	O	O
end	O	O
)	O	O
and	O	O
access	O	O
to	O	O
next	O	O
elements	O	O
in	O	O
each	O	O
iteration	O	O
with	O	O
next	B-Code_Block	B-Code_Block
:	O	O

Note	O	O
that	O	O
if	O	O
you	O	O
do	O	O
n't	O	O
pass	O	O
the	O	O
None	B-Code_Block	B-Value
as	O	O
the	O	O
second	O	O
argument	O	O
to	O	O
next()	B-Code_Block	B-Function
function	O	O
it	O	O
will	O	O
raise	O	O
a	O	O
StopIteration	B-Code_Block	B-Error_Name
error.You	O	O
can	O	O
also	O	O
handle	O	O
it	O	O
with	O	O
a	O	O
try-except	B-Code_Block	B-Code_Block
statement	O	O
.	O	O

Also	O	O
for	O	O
short	O	O
lists	O	B-Data_Structure
you	O	O
can	O	O
use	O	O
zip	B-Code_Block	B-Function
function	O	O
and	O	O
for	O	O
long	O	O
lists	O	B-Data_Structure
itertools.izip()	B-Code_Block	B-Function
function	O	O
(	O	O
zip	B-Code_Block	B-Function
in	O	O
python	O	B-Language
3)	O	B-Version
:	O	O

zip(l,l[1:])	B-Code_Block	B-Code_Block
will	O	O
give	O	O
you	O	O
the	O	O
following	O	O
pairs	O	O
of	O	O
items	O	O
:	O	O

and	O	O
in	O	O
the	O	O
loop	O	O
you	O	O
can	O	O
use	O	O
i	B-Code_Block	B-Variable
as	O	O
the	O	O
current	O	O
item	O	O
then	O	O
j	B-Code_Block	B-Variable
will	O	O
be	O	O
the	O	O
next	O	O
item	O	O
or	O	O
use	O	O
j	B-Code_Block	B-Variable
as	O	O
the	O	O
current	O	O
then	O	O
i	B-Code_Block	B-Variable
will	O	O
be	O	O
the	O	O
previous	O	O
!	O	O

:)	O	O

There	O	O
are	O	O
many	O	O
different	O	O
options	O	O
depending	O	O
on	O	O
what	O	O
your	O	O
use	O	O
for	O	O
the	O	O
neighbour	O	O
entry	O	O
is	O	O
.	O	O

For	O	O
instance	O	O
,	O	O
if	O	O
you	O	O
only	O	O
want	O	O
to	O	O
process	O	O
pairs	O	O
,	O	O
and	O	O
not	O	O
modify	O	O
the	O	O
list	O	B-Data_Structure
:	O	O

Or	O	O
if	O	O
you	O	O
need	O	O
to	O	O
keep	O	O
the	O	O
prior	O	O
entry	O	O
as	O	O
a	O	O
reference	O	O
:	O	O

None	B-Code_Block	B-Value
here	O	O
is	O	O
used	O	O
in	O	O
place	O	O
of	O	O
a	O	O
prior	O	O
item	O	O
for	O	O
the	O	O
first	O	O
,	O	O
similar	O	O
to	O	O
how	O	O
it	O	O
's	O	O
used	O	O
for	O	O
the	O	O
next	O	O
item	O	O
after	O	O
the	O	O
last	O	O
in	O	O
Kasra	O	B-User_Name
's	O	O
iter()-based	O	B-Function
example	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
process	O	O
some	O	O
CSS	O	B-Language
using	O	O
PHP	O	B-Language
.	O	O

The	O	O
CSS	O	B-Language
I	O	O
want	O	O
to	O	O
process	O	O
is	O	O
page-specific	O	O
and	O	O
so	O	O
I	O	O
want	O	O
to	O	O
set	O	O
a	O	O
variable	O	O
in	O	O
my	O	O
index.php	B-Code_Block	B-File_Name
to	O	O
only	O	O
echo	O	O
the	O	O
CSS	O	B-Language
when	O	O
the	O	O
variable	O	O
is	O	O
set	O	O
.	O	O

index.php	O	B-File_Name

header.php	O	B-File_Name

import.php	O	B-File_Name

The	O	O
header	O	O
is	O	O
properly	O	O
set	O	O
for	O	O
this	O	O
file	O	O
.	O	O

and	O	O
the	O	O
CSS	O	B-Language
is	O	O
interpreted	O	O
.	O	O

styles.css.php	O	B-File_Name

How	O	O
can	O	O
I	O	O
make	O	O
sure	O	O
$name	B-Code_Block	B-Variable
is	O	O
set	O	O
to	O	O
it	O	O
's	O	O
value	O	O
,	O	O
as	O	O
set	O	O
in	O	O
index.php	B-Code_Block	B-File_Name
?	O	O

EDIT	O	O
:	O	O
My	O	O
final	O	O
solution	O	O
was	O	O
to	O	O
make	O	O
an	O	O
object	O	O
from	O	O
the	O	O
stdClass	B-Code_Block	B-Class
and	O	O
add	O	O
the	O	O
variables	O	O
I	O	O
needed	O	O
as	O	O
attributes	O	O
to	O	O
the	O	O
object	O	O
.	O	O

putting	O	O
a	O	O
GET	O	B-Function
request	O	O
in	O	O
the	O	O
link	O	O
to	O	O
the	O	O
CSS	O	B-File_Type
file	O	O
which	O	O
was	O	O
the	O	O
Base64	O	B-Data_Type
of	O	O
the	O	O
JSON	O	B-File_Type
string	O	B-Data_Type
of	O	O
the	O	O
object	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
you	O	O
are	O	O
linking	O	O
to	O	O
that	O	O
styles.css.php	O	B-File_Name
from	O	O
inside	O	O
the	O	O
rendered	O	O
html	O	B-Language
.	O	O

This	O	O
means	O	O
that	O	O
page	O	O
will	O	O
be	O	O
fetched	O	O
in	O	O
a	O	O
separate	O	O
request	O	O
(	O	O
as	O	O
you	O	O
can	O	O
se	O	O
when	O	O
you	O	O
inspect	O	O
the	O	O
page	O	O
)	O	O
.	O	O

This	O	O
request	O	O
never	O	O
passes	O	O
trough	O	O
your	O	O
index.php	O	B-File_Name
,	O	O
and	O	O
so	O	O
the	O	O
$name	B-Code_Block	B-Variable
variable	O	O
will	O	O
not	O	O
be	O	O
set	O	O
.	O	O

I	O	O
would	O	O
advise	O	O
you	O	O
to	O	O
include	O	O
the	O	O
css	O	B-Language
in	O	O
the	O	O
rendered	O	O
HTML	O	B-Language
inside	O	O
a	O	O
style	O	O
block	O	O
.	O	O

It	O	O
should	O	O
be	O	O
as	O	O
easy	O	O
as	O	O
changing	O	O
your	O	O
import.php	O	B-File_Name
to	O	O
this	O	O
:	O	O

This	O	O
also	O	O
has	O	O
the	O	O
added	O	O
benefit	O	O
of	O	O
reducing	O	O
the	O	O
number	O	O
of	O	O
requests	O	O
the	O	O
browser	O	B-Application
has	O	O
to	O	O
make	O	O
,	O	O
and	O	O
should	O	O
therefore	O	O
speed	O	O
up	O	O
the	O	O
page	O	O
.	O	O

This	O	O
is	O	O
btw	O	O
not	O	O
a	O	O
very	O	O
standard	O	O
method	O	O
of	O	O
using	O	O
css	O	B-Language
.	O	O

I	O	O
believe	O	O
it	O	O
would	O	O
be	O	O
better	O	O
to	O	O
add	O	O
some	O	O
sort	O	O
of	O	O
id	O	O
(	O	O
or	O	O
data	O	O
attribute	O	O
)	O	O
on	O	O
your	O	O
body	B-Code_Block	B-HTML_XML_Tag
tag	O	O
that	O	O
indicates	O	O
the	O	O
name	O	O
of	O	O
the	O	O
page	O	O
you	O	O
are	O	O
on	O	O
.	O	O

In	O	O
the	O	O
css	O	B-File_Type
file	O	O
(	O	O
that	O	O
does	O	O
not	O	O
run	O	O
trough	O	O
php	O	B-Language
,	O	O
just	O	O
a	O	O
standard	O	O
css	O	B-File_Type
file	O	O
)	O	O
,	O	O
you	O	O
could	O	O
then	O	O
do	O	O
something	O	O
like	O	O
this	O	O
:	O	O

The	O	O
<link>	B-Code_Block	B-HTML_XML_Tag
tag	O	O
makes	O	O
an	O	O
HTTP	O	O
request	O	O
for	O	O
a	O	O
file	O	O
totally	O	O
independent	O	O
of	O	O
the	O	O
PHP	O	B-Language
pages	O	O
that	O	O
are	O	O
including	O	O
each	O	O
other	O	O
,	O	O
so	O	O
$name	B-Code_Block	B-Variable
is	O	O
not	O	O
available	O	O
in	O	O
styles.css.php	O	B-File_Name
.	O	O

To	O	O
do	O	O
it	O	O
this	O	O
way	O	O
you	O	O
need	O	O
to	O	O
link	O	O
the	O	O
style	O	O
sheet	O	O
something	O	O
like	O	O
this	O	O
to	O	O
pass	O	O
$name	B-Code_Block	B-Variable
as	O	O
a	O	O
get	O	O
variable	O	O
:	O	O

Then	O	O
in	O	O
the	O	O
style	O	O
sheet	O	O
styles.css.php	O	O
use	O	O
$_GET['name']	B-Code_Block	B-Code_Block
:	O	O

I	O	O
have	O	O
a	O	O
scenario	O	O
where	O	O
my	O	O
application	O	O
opens	O	O
a	O	O
document	O	B-User_Interface_Element
in	O	O
google	O	B-Application
drive	O	I-Application
and	O	O
allows	O	O
user	O	O
to	O	O
edit	O	O
.	O	O

Now	O	O
if	O	O
I	O	O
want	O	O
multiple	O	O
users	O	O
to	O	O
edit	O	O
the	O	O
document	O	B-User_Interface_Element
,	O	O
how	O	O
(	O	O
what	O	O
google	O	O
api-oauth/openconnect/identity	O	O
federation/sign	O	O
in	O	O
)	O	O
should	O	O
I	O	O
use	O	O
to	O	O
authenticate	O	O
users	O	O
and	O	O
get	O	O
their	O	O
profile	O	O
info	O	O
.	O	O

So	O	O
that	O	O
each	O	O
user	O	O
can	O	O
access	O	O
the	O	O
same	O	O
document	O	B-User_Interface_Element
and	O	O
edit	O	O
it	O	O
.	O	O

Currently	O	O
,	O	O
I	O	O
am	O	O
authenticating	O	O
using	O	O
service	O	O
account	O	O
and	O	O
allowing	O	O
anonymous	O	O
access	O	O
.	O	O

How	O	O
can	O	O
I	O	O
implement	O	O
the	O	O
above	O	O
scenario	O	O
?	O	O

What	O	O
API	O	O
's	O	O
might	O	O
help	O	O
me	O	O
to	O	O
look	O	O
at	O	O
?	O	O

Kindly	O	O
guide	O	O
!	O	O

You	O	O
can	O	O
actually	O	O
use	O	O
Google	O	B-Library
Drive	O	I-Library
Rest	O	I-Library
API	O	I-Library
which	O	O
uses	O	O
these	O	O
authorization	O	O
protocols	O	O
:	O	O

OAuth	O	B-Library
2.0	O	B-Version
to	O	O
authorize	O	O
requests	O	O
,	O	O
or	O	O

if	O	O
your	O	O
application	O	O
uses	O	O
Google	O	B-Website
Sign-in	O	O
,	O	O
some	O	O
aspects	O	O
of	O	O
authorization	O	O
are	O	O
handled	O	O
for	O	O
you	O	O
.	O	O

You	O	O
can	O	O
follow	O	O
this	O	O
general	O	O
authorization	O	O
process	O	O
for	O	O
all	O	O
application	O	O
types	O	O
as	O	O
given	O	O
in	O	O
Authorizing	O	O
requests	O	O
with	O	O
OAuth	O	B-Library
2.0	O	B-Version
:	O	O

In	O	O
addition	O	O
to	O	O
that	O	O
,	O	O
if	O	O
your	O	O
app	O	O
requires	O	O
access	O	O
to	O	O
any	O	O
other	O	O
Google	O	B-Library
APIs	O	I-Library
,	O	O
you	O	O
can	O	O
add	O	O
scopes	O	O
as	O	O
given	O	O
in	O	O
OAuth	O	B-Library
2.0	O	B-Version
scope	O	O
information	O	O
for	O	O
the	O	O
Drive	O	B-Library
API	O	I-Library
detailed	O	O
in	O	O
the	O	O
documentation	O	O
.	O	O

For	O	O
more	O	O
information	O	O
,	O	O
please	O	O
go	O	O
through	O	O
the	O	O
given	O	O
documentations	O	O
and	O	O
you	O	O
may	O	O
also	O	O
add	O	O
Using	O	O
OAuth	O	B-Library
2.0	O	B-Version
to	O	O
Access	O	O
Google	O	B-Library
APIs	O	I-Library
in	O	O
your	O	O
references	O	O
with	O	O
regards	O	O
to	O	O
Google	O	B-Library
API	O	I-Library
scopes	O	O
.	O	O

I	O	O
have	O	O
a	O	O
SQL	O	B-Language
Server	O	O
table	O	B-Data_Structure
with	O	O
the	O	O
following	O	O
data	O	O

The	O	O
above	O	O
table	O	B-Data_Structure
stores	O	O
the	O	O
data	O	O
of	O	O
connecting	O	O
flights	O	O
between	O	O
different	O	O
cities	O	O
.	O	O

I	O	O
want	O	O
a	O	O
result	O	O
in	O	O
the	O	O
following	O	O
format	O	O
-	O	O

Please	O	O
advise	O	O
on	O	O
how	O	O
this	O	O
can	O	O
be	O	O
achieved	O	O
.	O	O

Just	O	O
use	O	O
group	B-Code_Block	B-Code_Block
by	I-Code_Block	I-Code_Block
clause	O	O
with	O	O
conditional	O	O
aggregation	O	O

Edit	O	O
:	O	O

You	O	O
could	O	O
also	O	O
directly	O	O
fetch	O	O
the	O	O
source	O	O
and	O	O
destination	O	O
station	O	O
by	O	O
using	O	O
first_value()	B-Code_Block	B-Function
and	O	O
last_value()	B-Code_Block	B-Function
function	O	O

Note	O	O
:	O	O
The	O	O
above	O	O
is	O	O
tested	O	O
based	O	O
on	O	O
data	O	O
provided	O	O
in	O	O
Q	B-Code_Block	O

Try	O	O
the	O	O
following	O	O

Or	O	O
you	O	O
can	O	O
use	O	O
window	O	O
functions	O	O
FIRST_VALUE	B-Code_Block	B-Function
and	O	O
LAST_VALUE	B-Code_Block	B-Function
if	O	O
your	O	O
version	O	O
of	O	O
SQLServer	O	B-Application
supports	O	O
them	O	O

If	O	O
ID	B-Code_Block	B-Variable
are	O	O
inconsistent	O	O
then	O	O
you	O	O
can	O	O
use	O	O
a	O	O
recursive	O	O
CTE	O	O

It	O	O
's	O	O
a	O	O
symbiosis	O	O
from	O	O
two	O	O
queries	O	B-Data_Structure
which	O	O
provided	O	O
Yogesh	O	B-User_Name
Sharma	O	I-User_Name
and	O	O
my	O	O
first	O	O
query	O	B-Data_Structure

I	O	O
am	O	O
trying	O	O
to	O	O
insert	O	O
a	O	O
click	O	O
to	O	O
call	O	O
button	O	B-User_Interface_Element
on	O	O
my	O	O
home	O	O
page	O	O
.	O	O

This	O	O
is	O	O
the	O	O
first	O	O
site	O	O
I	O	O
've	O	O
built	O	O
using	O	O
Bootstrap	O	B-Library
(	O	O
Bootstrap	O	B-Library
3.2.0	O	B-Version
)	O	O
.	O	O

Please	O	O
view	O	O
the	O	O
code	O	O
and	O	O
help	O	O
me	O	O
figure	O	O
out	O	O
what	O	O
I	O	O
'm	O	O
doing	O	O
wrong	O	O
.	O	O

Thank	O	O
you	O	O

You	O	O
can	O	O
visit	O	O
the	O	O
site	O	O
here	O	O
.	O	O

It	O	O
is	O	O
not	O	O
working	O	O
because	O	O
you	O	O
have	O	O
invalid	O	O
HTML	O	B-Language
(	O	O
an	O	O
href	O	B-HTML_XML_Tag
attribute	O	O
on	O	O
a	O	O
button	O	B-User_Interface_Element
)	O	O
.	O	O

Usage	O	O
info	O	O
from	O	O
W3C	O	B-Website

This	O	O
should	O	O
do	O	O
the	O	O
trick	O	O
:	O	O

Are	O	O
there	O	O
an	O	O
efficient	O	O
algorithm	O	O
to	O	O
search	O	O
and	O	O
dump	O	O
all	O	O
common	O	O
substrings	O	O
(	O	O
which	O	O
length	O	O
is	O	O
3	O	O
or	O	O
longer	O	O
)	O	O
between	O	O
2	O	O
strings	O	B-Data_Type
?	O	O

Example	O	O
input	O	O
:	O	O

Example	O	O
output	O	O
:	O	O

In	O	O
the	O	O
example	O	O
,	O	O
"	O	B-Value
-D	O	I-Value
"	O	I-Value
,	O	O
"	O	B-Value
-M	O	I-Value
"	O	I-Value
is	O	O
also	O	O
a	O	O
common	O	O
substring	O	O
but	O	O
is	O	O
not	O	O
required	O	O
,	O	O
because	O	O
it	O	O
's	O	O
length	O	O
is	O	O
only	O	O
2	O	B-Value
.	O	O

(	O	O
There	O	O
might	O	O
be	O	O
some	O	O
missing	O	O
outputs	O	O
in	O	O
example	O	O
because	O	O
there	O	O
are	O	O
so	O	O
many	O	O
of	O	O
them	O	O
..	O	O
.	O	O
)	O	O

You	O	O
can	O	O
find	O	O
all	O	O
common	O	O
substrings	O	O
using	O	O
a	O	O
data	O	O
structure	O	O
called	O	O
a	O	O
Generalized	O	B-Data_Structure
suffix	O	I-Data_Structure
tree	O	I-Data_Structure

Libstree	O	B-Library
contains	O	O
some	O	O
example	O	O
code	O	O
for	O	O
finding	O	O
the	O	O
longest	O	O
common	O	O
substring	O	O
.	O	O

That	O	O
example	O	O
code	O	O
can	O	O
be	O	O
modified	O	O
to	O	O
obtain	O	O
all	O	O
common	O	O
substrings	O	O
.	O	O

I	O	O
need	O	O
a	O	O
way	O	O
to	O	O
be	O	O
able	O	O
to	O	O
read	O	O
from	O	O
a	O	O
UTF-8	O	O
encoded	O	O
file	O	O
and	O	O
store	O	O
data	O	O
from	O	O
it	O	O
into	O	O
"	O	O
UTF-8	O	O
compatible	O	O
strings	O	B-Data_Type
"	O	O
of	O	O
some	O	O
sort	O	O
,	O	O
in	O	O
C++	O	B-Language
.	O	O

This	O	O
data	O	O
needs	O	O
to	O	O
be	O	O
written	O	O
back	O	O
to	O	O
a	O	O
UTF-8	O	O
encoded	O	O
file	O	O
later	O	O
on	O	O
.	O	O

There	O	O
seems	O	O
to	O	O
be	O	O
a	O	O
lot	O	O
of	O	O
advice	O	O
on	O	O
google	O	B-Website
about	O	O
doing	O	O
this	O	O
in	O	O
Windows	O	B-Operating_System
but	O	O
I	O	O
cannot	O	O
find	O	O
any	O	O
help	O	O
for	O	O
Unix	O	B-Operating_System
systems	O	O
.	O	O

Thanks	O	O
for	O	O
your	O	O
help	O	O
!	O	O

If	O	O
all	O	O
you	O	O
need	O	O
to	O	O
do	O	O
is	O	O
read	O	O
and	O	O
write	O	O
it	O	O
then	O	O
std::string	O	B-Class
is	O	O
fine	O	O
.	O	O

This	O	O
works	O	O
because	O	O
no	O	O
multi-character	O	O
UTF	O	O
codepoint	O	O
overlaps	O	O
with	O	O
an	O	O
an	O	O
ASCII	O	O
character	O	O
so	O	O
the	O	O
standard	O	O
processing	O	O
of	O	O
text	O	O
works	O	O
just	O	O
fine	O	O
in	O	O
relation	O	O
to	O	O
end	O	O
of	O	O
line	O	O
sequence	O	O
and	O	O
there	O	O
is	O	O
no	O	O
other	O	O
processing	O	O
done	O	O
by	O	O
the	O	O
stream	O	O
.	O	O

What	O	O
you	O	O
read	O	O
is	O	O
what	O	O
you	O	O
get	O	O
.	O	O

Outputting	O	O
the	O	O
string	O	B-Data_Type
does	O	O
not	O	O
change	O	O
any	O	O
of	O	O
the	O	O
codepoints	O	O
.	O	O

Now	O	O
if	O	O
you	O	O
need	O	O
to	O	O
manipulate	O	O
the	O	O
text	O	O
that	O	O
is	O	O
a	O	O
different	O	O
question	O	O
and	O	O
gets	O	O
more	O	O
complex	O	O
.	O	O

Usually	O	O
manipulating	O	O
UTF-8	O	O
is	O	O
way	O	O
to	O	O
hard	O	O
(	O	O
can	O	O
be	O	O
done	O	O
but	O	O
not	O	O
worth	O	O
it	O	O
IMO	O	O
)	O	O
.	O	O

When	O	O
it	O	O
comes	O	O
to	O	O
manipulating	O	O
the	O	O
text	O	O
you	O	O
want	O	O
to	O	O
convert	O	O
the	O	O
UTF-8	O	O
(	O	O
which	O	O
is	O	O
not	O	O
a	O	O
fixed	O	O
width	O	O
)	O	O
to	O	O
an	O	O
internal	O	O
fixed	O	O
width	O	O
format	O	O
;	O	O
(	O	O
UTF-16	O	O
or	O	O
UTF-32	O	O
are	O	O
common	O	O
formats	O	O
for	O	O
manipulation	O	O
and	O	O
easy	O	O
to	O	O
use	O	O
;	O	O
(	O	O
UTF-16	O	O
windows	O	B-Operating_System
,	O	O
UTF-32	O	O
for	O	O
most	O	O
*	O	B-Operating_System
nix	O	I-Operating_System
like	O	O
OS	O	O
)	O	O
)	O	O
.	O	O

The	O	O
easiest	O	O
way	O	O
to	O	O
do	O	O
this	O	O
is	O	O
to	O	O
imbue	O	O
the	O	O
stream	O	O
with	O	O
a	O	O
facet	O	O
that	O	O
knows	O	O
the	O	O
input	O	O
is	O	O
in	O	O
UTF-8	O	O
and	O	O
will	O	O
convert	O	O
it	O	O
automatically	O	O
.	O	O

There	O	O
are	O	O
a	O	O
couple	O	O
of	O	O
these	O	O
facets	O	O
floating	O	O
around	O	O
in	O	O
different	O	O
libraries	O	O
.	O	O

But	O	O
an	O	O
easy	O	O
one	O	O
to	O	O
find	O	O
is	O	O
boost	O	O
:	O	O

http://www.boost.org/doc/libs/1_38_0/libs/serialization/doc/codecvt.html	O	O

Note	O	O
:	O	O
It	O	O
is	O	O
also	O	O
in	O	O
the	O	O
latest	O	O
version	O	O
of	O	O
boost	O	B-Library
1.46	O	B-Version

The	O	O
processes	O	O
is	O	O
the	O	O
same	O	O
for	O	O
writting	O	O
UTF-16/32	O	O
back	O	O
to	O	O
a	O	O
stream	O	O
and	O	O
converting	O	O
it	O	O
to	O	O
UTF-8	O	O

Note	O	O
.	O	O

You	O	O
should	O	O
imbue	O	O
the	O	O
file	O	O
before	O	O
it	O	O
is	O	O
opened	O	O
.	O	O

Different	O	O
implementations	O	O
of	O	O
the	O	O
stream	O	O
will	O	O
react	O	O
differently	O	O
if	O	O
you	O	O
imbue	O	O
the	O	O
stream	O	O
after	O	O
it	O	O
is	O	O
open	O	O
.	O	O

Thus	O	O
it	O	O
is	O	O
best	O	O
to	O	O
imbue	O	O
the	O	O
stream	O	O
before	O	O
opening	O	O
it	O	O
.	O	O

Dinkumware	O	O
also	O	O
has	O	O
a	O	O
set	O	O
of	O	O
conversion	O	O
facets	O	O
(	O	O
not	O	O
sure	O	O
if	O	O
they	O	O
are	O	O
free	O	O
)	O	O
.	O	O

http://www.dinkumware.com/manuals/default.aspx?manual=compleat&page=index_cvt.html#Code%20Conversions	O	O

Note	O	O
:	O	O
I	O	O
prefer	O	O
to	O	O
use	O	O
the	O	O
terms	O	O
UTF-X	O	O
rather	O	O
than	O	O
UCS-Y	O	O
.	O	O

Though	O	O
technically	O	O
there	O	O
are	O	O
very	O	O
minor	O	O
differences	O	O
these	O	O
are	O	O
inconsequential	O	O
compared	O	O
to	O	O
the	O	O
confusion	O	O
you	O	O
can	O	O
create	O	O
by	O	O
switching	O	O
between	O	O
the	O	O
two	O	O
terms	O	O
while	O	O
talking	O	O
about	O	O
the	O	O
subject	O	O
.	O	O

Stick	O	O
to	O	O
one	O	O
unless	O	O
you	O	O
need	O	O
to	O	O
talk	O	O
explicitly	O	O
about	O	O
a	O	O
feature	O	O
(	O	O
like	O	O
Surrogate	O	O
pairs	O	O
)	O	O
.	O	O

This	O	O
code	O	O
takes	O	O
practically	O	O
no	O	O
time	O	O
at	O	O
all	O	O
when	O	O
optimizing	O	O
with	O	O
-O3	O	O

What	O	O
compiler	O	B-Application
optimization	O	O
is	O	O
making	O	O
this	O	O
code	O	O
go	O	O
from	O	O
0.014	O	O
seconds	O	O
with	O	O
-O0	O	O
to	O	O
0.000000	O	O
with	O	O
-03	O	B-Code_Block

The	O	O
internal	O	O
large	O	O
loop	O	O
has	O	O
no	O	O
side	O	O
effects	O	O
since	O	O
you	O	O
're	O	O
not	O	O
using	O	O
B	O	B-Variable
anywhere	O	O
,	O	O
so	O	O
any	O	O
decent	O	O
compiler	O	B-Application
with	O	O
-O3	O	B-Code_Block
will	O	O
eliminate	O	O
it	O	O
.	O	O

To	O	O
avoid	O	O
that	O	O
,	O	O
you	O	O
could	O	O
try	O	O
to	O	O
summarize	O	O
the	O	O
values	O	O
and	O	O
print	O	O
out	O	O
the	O	O
outcome	O	O
at	O	O
the	O	O
end	O	O
.	O	O

Alternatively	O	O
,	O	O
printing	O	O
some	O	O
random	O	O
element	O	O
from	O	O
B	O	B-Variable
might	O	O
make	O	O
the	O	O
compiler	O	B-Application
suspicious	O	O
enough	O	O
to	O	O
avoid	O	O
that	O	O
elimination	O	O

It	O	O
is	O	O
hard	O	O
to	O	O
say	O	O
for	O	O
sure	O	O
without	O	O
checking	O	O
the	O	O
generated	O	B-File_Name
assembly	O	I-File_Name
.	O	O

In	O	O
general	O	O
,	O	O
there	O	O
is	O	O
as-if	O	O
rule	O	O
,	O	O
which	O	O

It	O	O
could	O	O
be	O	O
,	O	O
for	O	O
instance	O	O
,	O	O
that	O	O
since	O	O
neither	O	O
A	B-Code_Block	B-Variable
no	O	O
B	B-Code_Block	B-Variable
are	O	O
used	O	O
anywhere	O	O
,	O	O
the	O	O
compiler	O	B-Application
just	O	O
omits	O	O

as	O	O
well	O	O
as	O	O

I	O	O
have	O	O
a	O	O
problem	O	O
.	O	O

I	O	O
spend	O	O
around	O	O
5	O	O
hours	O	O
trying	O	O
everything	O	O
,	O	O
but	O	O
I	O	O
was	O	O
not	O	O
even	O	O
able	O	O
to	O	O
reproduce	O	O
it	O	O
properly	O	O
so	O	O
I	O	O
include	O	O
the	O	O
simplified	O	O
original	O	O
source	O	O
code	O	O
.	O	O

I	O	O
apologize	O	O
for	O	O
the	O	O
extent	O	O
,	O	O
but	O	O
I	O	O
wanted	O	O
to	O	O
include	O	O
all	O	O
the	O	O
relevant	O	O
information	O	O
I	O	O
found	O	O
out	O	O
so	O	O
far	O	O
.	O	O

This	O	O
is	O	O
one	O	O
of	O	O
the	O	O
few	O	O
times	O	O
I	O	O
feel	O	O
completely	O	O
powerless	O	O
and	O	O
kindly	O	O
request	O	O
your	O	O
help	O	O
.	O	O

Any	O	O
ideas	O	O
are	O	O
welcome	O	O
.	O	O

Also	O	O
any	O	O
comments	O	O
that	O	O
can	O	O
bring	O	O
at	O	O
least	O	O
some	O	O
light	O	O
to	O	O
the	O	O
matter	O	O
.	O	O

The	O	O
behaviour	O	O
in	O	O
this	O	O
case	O	O
is	O	O
a	O	O
complete	O	O
mystery	O	O
to	O	O
me	O	O
.	O	O

I	O	O
am	O	O
programming	O	O
in	O	O
QtCreator	O	B-Application
in	O	O
Ubuntu	O	B-Operating_System
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
develop	O	O
a	O	O
framework	O	O
to	O	O
solve	O	O
mathematical	O	O
problems	O	O
using	O	O
a	O	O
Population	O	B-Class
of	O	O
candidate	O	O
solutions	O	O
,	O	O
which	O	O
should	O	O
evolve	O	O
into	O	O
the	O	O
true	O	O
solution	O	O
.	O	O

There	O	O
are	O	O
3	O	O
classes	O	O
involved	O	O
:	O	O
Population	O	B-Class
,	O	O
PopulationMember	O	B-Class
and	O	O
Problem	O	B-Class
:	O	O

Usually	O	O
my	O	O
program	O	O
runs	O	O
in	O	O
loops	O	O
,	O	O
where	O	O
the	O	O
population	O	B-Class
calls	O	O
its	O	O
various	O	O
methods	O	O
.	O	O

One	O	O
of	O	O
them	O	O
is	O	O
Population::evaluate()	O	B-Function
.	O	O

My	O	O
program	O	O
ran	O	O
great	O	O
until	O	O
I	O	O
introduced	O	O
some	O	O
new	O	O
methods	O	O
of	O	O
Population	O	B-Class
.	O	O

Then	O	O
I	O	O
get	O	O
a	O	O
segmentation	O	B-Error_Name
error	O	O
in	O	O
the	O	O
middle	O	O
of	O	O
program	O	O
.	O	O

The	O	O
strangest	O	O
thing	O	O
is	O	O
that	O	O
it	O	O
happens	O	O
only	O	O
after	O	O
the	O	O
10	O	O
loops	O	O
,	O	O
after	O	O
the	O	O
population	O	B-Class
executed	O	O
report()	O	B-Function
.	O	O

Also	O	O
after	O	O
some	O	O
experimentation	O	O
,	O	O
when	O	O
I	O	O
excluded	O	O
all	O	O
the	O	O
operations	O	O
which	O	O
require	O	O
dynamic	O	O
allocation	O	O
of	O	O
some	O	O
sort	O	O
(	O	O
strings	O	B-Data_Type
)	O	O
from	O	O
the	O	O
report()	O	B-Function
method	O	O
,	O	O
I	O	O
do	O	O
not	O	O
get	O	O
the	O	O
error	O	O
.	O	O

Conversely	O	O
when	O	O
I	O	O
disable	O	O
the	O	O
sorting	O	O
method	O	O
(	O	O
uses	O	O
either	O	O
std::sort	O	B-Function
or	O	O
qSort	O	B-Function
)	O	O
the	O	O
problem	O	O
stops	O	O
.	O	O

Also	O	O
when	O	O
I	O	O
leave	O	O
the	O	O
actions	O	O
done	O	O
by	O	O
the	O	O
temp	O	B-Variable
Population	O	B-Class
,	O	O
there	O	O
is	O	O
no	O	O
problem	O	O
.	O	O

So	O	O
I	O	O
started	O	O
to	O	O
debug	O	O
the	O	O
program	O	O
.	O	O

I	O	O
let	O	O
it	O	O
complete	O	O
10	O	O
loops	O	O
and	O	O
started	O	O
to	O	O
debug	O	O
step	O	O
by	O	O
step	O	O
.	O	O

I	O	O
went	O	O
into	O	O
Population->evaluate()	O	B-Code_Block
;	O	I-Code_Block

}	O	B-Code_Block

debug	O	O
:	O	O

The	O	O
addres	O	O
printed	O	O
out	O	O
is	O	O
0xbffff628	O	B-Value
.	O	O

This	O	O
is	O	O
same	O	O
as	O	O
the	O	O
previous	O	O
10	O	B-Code_Block
*	O	I-Code_Block
population_->members_.count()	O	I-Code_Block
printouts	O	O
.	O	O

I	O	O
go	O	O
inside	O	O
the	O	O
(	O	B-Code_Block
*	O	I-Code_Block
it	O	I-Code_Block
)	O	I-Code_Block
->	O	B-Code_Block
evaluate()	O	I-Code_Block
;	O	I-Code_Block
Here	O	O
I	O	O
switch	O	O
to	O	O
assembly	O	B-Language
code	O	O
:	O	O

I	O	O
go	O	O
inside	O	O
the	O	O
call	O	O
of	O	O
function	O	O
at	O	O
the	O	O
last	O	O
instruction	O	O
.	O	O

At	O	O
the	O	O
instant	O	O
I	O	O
do	O	O
this	O	O
,	O	O
all	O	O
the	O	O
attributes	O	O
in	O	O
problem_	O	B-Variable
become	O	O
not	O	O
accessible	O	O
according	O	O
to	O	O
my	O	O
debugger	O	B-Application
.	O	O

At	O	O
this	O	O
point	O	O
all	O	O
is	O	O
lost	O	O
.	O	O

debug	O	O
:	O	O

Finally	O	O
the	O	O
address	O	O
the	O	O
problem_	O	B-Variable
is	O	O
pointing	O	O
at	O	O
becomes	O	O
0xbffff780	O	B-Value
instead	O	O
of	O	O
0xbffff628	O	B-Value
.	O	O

An	O	O
increment	O	O
of	O	O
344	O	B-Value

This	O	O
happens	O	O
always	O	O
.	O	O

The	O	O
increment	O	O
is	O	O
344	O	B-Value
.	O	O

If	O	O
I	O	O
make	O	O
some	O	O
minor	O	O
changes	O	O
in	O	O
the	O	O
program	O	O
,	O	O
the	O	O
address	O	O
changes	O	O
,	O	O
but	O	O
the	O	O
difference	O	O
between	O	O
these	O	O
two	O	O
addresses	O	O
remains	O	O
344	O	B-Value
.	O	O

This	O	O
is	O	O
all	O	O
the	O	O
more	O	O
puzzling	O	O
,	O	O
since	O	O
the	O	O
size	O	O
of	O	O
all	O	O
my	O	O
three	O	O
classes	O	O
is	O	O
less	O	O
than	O	O
100	O	B-Value
.	O	O

The	O	O
program	O	O
crashes	O	O
inside	O	O
the	O	O
void	O	B-Code_Block
Problem	O	I-Code_Block
::	O	I-Code_Block
evaluate(PopulationMember&)const	O	I-Code_Block
;	O	I-Code_Block
method	O	O
as	O	O
soon	O	O
as	O	O
some	O	O
logic	O	O
is	O	O
involved	O	O
.	O	O

EDIT	O	O
:	O	O

You	O	O
are	O	O
copying	O	O
around	O	O
Population-instances	B-Code_Block	B-Class
quite	O	O
a	O	O
bit	O	O
:	O	O
1	O	O
.	O	O
you	O	O
are	O	O
returning	O	O
a	O	O
local	O	O
copy	O	O
by	O	O
value	O	O
,	O	O
2	O	O
.	O	O
copying	O	O
again	O	O
by	O	O
assigning	O	O
into	O	O
another	O	O
local	O	O
with	O	O

All	O	O
these	O	O
instances	O	O
get	O	O
pointers	O	B-Data_Type
to	O	O
PopulationMember	B-Code_Block	B-Class
and	O	O
ownsMembers_	B-Code_Block	B-Variable
is	O	O
always	O	O
set	O	O
true	O	B-Value
-	O	O
this	O	O
looks	O	O
quite	O	O
a	O	O
bit	O	O
fishy	O	O
and	O	O
you	O	O
might	O	O
want	O	O
to	O	O
debug	O	O
with	O	O
breakpoints	O	O
in	O	O
your	O	O
destructors/constructors	O	O
to	O	O
find	O	O
out	O	O
the	O	O
lifecycle	O	O
of	O	O
each	O	O
population	O	B-Class
and	O	O
its	O	O
members	O	O
.	O	O

EDIT	O	O
:	O	O
append	O	O
method	O	O

This	O	O
means	O	O
that	O	O
the	O	O
members	O	O
to	O	O
not	O	O
point	O	O
to	O	O
the	O	O
correct	O	O
Population	O	B-Class
anymore	O	O
!	O	O

The	O	O
value	O	O
of	O	O
Population&	B-Code_Block	B-Class
is	O	O
stored	O	O
on	O	O
stack	O	B-Data_Structure
and	O	O
gets	O	O
deleted	O	O
after	O	O
the	O	O
for	B-Code_Block	B-Code_Block
loop	O	O
ends	O	O
,	O	O
but	O	O
the	O	O
PopulationMembers	O	B-Class
still	O	O
point	O	O
to	O	O
these	O	O
Populations	O	B-Class
.	O	O

Edit	O	O
:	O	O
Fix	O	O

please	O	O
try	O	O
this	O	O
:	O	O

I	O	O
've	O	O
scoured	O	O
SOF	O	B-Website
and	O	O
google	O	B-Website
for	O	O
an	O	O
answer	O	O
no	O	O
joy	O	O

I	O	O
am	O	O
able	O	O
to	O	O
connect	O	O
to	O	O
a	O	O
database	O	O
I	O	O
presume	O	O
in	O	O
JavaScript	O	B-Language
,	O	O
I	O	O
wish	O	O
to	O	O
populate	O	O
the	O	O
results	O	O
into	O	O
a	O	O
HTML	O	B-Language
forms	O	O
option	O	O
field	O	O
.	O	O

