I	O	O
am	O	O
using	O	O
custom	O	O
adapter	O	B-Variable
which	O	O
I	O	O
use	O	O
for	O	O
my	O	O
ListView	O	B-Class
.	O	O

After	O	O
creating	O	O
ArrayList	O	B-Class

I	O	O
have	O	O
the	O	O
following	O	O
code	O	O
in	O	O
my	O	O
app	O	O
:	O	O

However	O	O
,	O	O
when	O	O
I	O	O
try	O	O
to	O	O
click	O	O
on	O	O
the	O	O
checkbox	O	B-User_Interface_Element
,	O	O
nothing	O	O
happens	O	O
.	O	O

So	O	O
I	O	O
have	O	O
to	O	O
manage	O	O
toggling	O	O
checkbox	O	B-User_Interface_Element
state	O	O
manually	O	O
.	O	O

Then	O	O
it	O	O
works	O	O
.	O	O

(	O	O
before	O	O
that	O	O
I	O	O
have	O	O
to	O	O
remove	O	O
setChoiceMode	O	B-Function
method	O	O
call	O	O
)	O	O

So	O	O
what	O	O
could	O	O
be	O	O
the	O	O
problem	O	O
?	O	O

Why	O	O
there	O	O
is	O	O
no	O	O
effect	O	O
?	O	O

my	O	O
R.layout.listview_item_text.xml	O	B-File_Name

In	O	O
my	O	O
adapter	O	B-Variable
I	O	O
inflate	O	O
checkbox	O	B-User_Interface_Element
layout	O	O
with	O	O
the	O	O
following	O	O
code	O	O
:	O	O

listview_item_checkbox.xml	O	B-File_Name

I	O	O
believe	O	O
that	O	O
you	O	O
have	O	O
to	O	O
use	O	O
a	O	O
widget	O	B-User_Interface_Element
that	O	O
implements	O	O
Checkable	O	B-Class
.	O	O

Try	O	O
with	O	O
android.R.layout.simple_list_item_multiple_choice	B-Code_Block	B-Variable
.	O	O

If	O	O
you	O	O
need	O	O
two	O	O
lines	O	O
then	O	O
implement	O	O
something	O	O
similar	O	O
.	O	O

Instead	O	O
of	O	O
your	O	O
code	O	O
:	O	O

Try	O	O
something	O	O
like	O	O
this	O	O
:	O	O

If	O	O
you	O	O
can	O	O
-	O	O
improve	O	O
yur	O	O
code	O	O
(	O	O
create	O	O
CheckableFrameLayout	B-Code_Block	B-Class
as	O	O
parent	O	O
layout	O	O
of	O	O
your	O	O
List	O	B-Class
Item	O	I-Class
)	O	O
.	O	O

ListView	B-Code_Block	B-Class
keep	O	O
BooleanSparseArray	O	B-Class
of	O	O
checked	O	O
positions	O	O
(	O	O
you	O	O
can	O	O
get	O	O
it	O	O
with	O	O
method	O	O
getCheckedItemPositions())	O	B-Function
.	O	O

In	O	O
code	O	O
(	O	O
grepcode	O	B-Application
)	O	O
it	O	O
set	O	O
View	B-Code_Block	B-Class
checked	O	O
or	O	O
not	O	O
by	O	O
itself	O	O
only	O	O
if	O	O
View	B-Code_Block	B-Class
is	O	O
implementing	O	O
Checkable	O	B-Class
.	O	O

If	O	O
create	O	O
CheckableFrameLayout	B-Code_Block	B-Class
and	O	O
sat	O	O
as	O	O
main	O	O
parent	O	O
,	O	O
you	O	O
do	O	O
not	O	O
have	O	O
to	O	O
handle	O	O
these	O	O
cases	O	O
in	O	O
the	O	O
adapter	O	B-Variable
.	O	O

I	O	O
am	O	O
running	O	O
this	O	O
on	O	O
a	O	O
mac	O	B-Device
and	O	O
it	O	O
compiles	O	O
in	O	O
the	O	O
terminal	O	B-Application
but	O	O
after	O	O
i	O	O
type	O	O
in	O	O
java	O	B-Value
Lab9	O	I-Value
it	O	O
does	O	O
n't	O	O
do	O	O
anything	O	O
.	O	O

Below	O	O
is	O	O
exactly	O	O
what	O	O
i	O	O
put	O	O
into	O	O
the	O	O
terminal	O	B-Application

//compiles	O	O
but	O	O
does	O	O
not	O	O
run	O	O

The	O	O
program	O	O
is	O	O
waiting	O	O
for	O	O
your	O	O
input	O	O
.	O	O

Add	O	O
a	O	O
prompt	O	O
:	O	O

i	O	O
'm	O	O
developing	O	O
a	O	O
android	O	B-Operating_System
application	O	O
which	O	O
will	O	O
detect	O	O
traffic	O	O
jams	O	O
and	O	O
map	O	O
on	O	O
openstreetmaps.in	O	B-Application
navigating	O	O
between	O	O
my	O	O
current	O	O
location	O	O
and	O	O
the	O	O
destination	O	O
if	O	O
a	O	O
traffic	O	O
jam	O	O
is	O	O
detected	O	O
the	O	O
application	O	O
should	O	O
suggest	O	O
all	O	O
the	O	O
other	O	O
alternative	O	O
routes.how	O	O
can	O	O
i	O	O
get	O	O
these	O	O
alternative	O	O
routes	O	O
from	O	O
openstreetmaps	O	B-Application
.	O	O

A1	O	B-Variable
-	O	O
alternative	O	O
route	O	O
1	O	O
,	O	O

A2	O	B-Variable
-	O	O
alternative	O	O
route	O	O
2	O	O

Some	O	O
of	O	O
the	O	O
online	O	O
routers	O	O
for	O	O
OSM	O	B-Application
have	O	O
an	O	O
avoid	O	O
areas	O	O
feature	O	O
.	O	O

GraphHopper	O	B-Library
allows	O	O
you	O	O
to	O	O
make	O	O
the	O	O
routing	O	O
influenced	O	O
by	O	O
traffic	O	O
information	O	O
.	O	O

I	O	O
've	O	O
blogged	O	O
recently	O	O
about	O	O
it	O	O
here	O	O
.	O	O

Or	O	O
you	O	O
can	O	O
just	O	O
block	O	O
certain	O	O
streets	O	O
with	O	O
the	O	O
blocking	O	O
weighting	O	O
described	O	O
here	O	O
.	O	O

I	O	O
need	O	O
to	O	O
design	O	O
a	O	O
database	O	O
for	O	O
storing	O	O
skills	O	O
for	O	O
a	O	O
person	O	O
,	O	O
a	O	O
person	O	O
can	O	O
have	O	O
none	O	O
,	O	O
one	O	O
or	O	O
several	O	O
skills	O	O
,	O	O
what	O	O
is	O	O
a	O	O
good	O	O
way	O	O
to	O	O
store	O	O
it	O	O
when	O	O
it	O	O
comes	O	O
to	O	O
easy	O	O
modification	O	O
of	O	O
skill	O	O
and	O	O
fast	O	O
search	O	O
?	O	O

I	O	O
have	O	O
been	O	O
thinking	O	O

1	O	O
.	O	O
use	O	O
a	O	O
bit	O	O
array	O	B-Data_Structure
,	O	O
each	O	O
bit	O	O
position	O	O
represents	O	O
a	O	O
skill	O	O
,	O	O

2	O	O
.	O	O
a	O	O
relation	O	O
table	O	B-Data_Structure
that	O	O
each	O	O
row	O	B-Data_Structure
link	O	O
a	O	O
person	O	O
to	O	O
a	O	O
SKILL	O	O

3	O	O
.	O	O
each	O	O
skill	O	O
as	O	O
a	O	O
field	O	O
in	O	O
the	O	O
table	O	B-Data_Structure
of	O	O
the	O	O
person	O	O

Any	O	O
other	O	O
suggestion	O	O
or	O	O
what	O	O
should	O	O
I	O	O
aim	O	O
for	O	O
?	O	O

It	O	O
's	O	O
a	O	O
clasic	O	O
many	O	O
to	O	O
many	O	O
relationship	O	O
so	O	O
I	O	O
would	O	O
suggest	O	O
a	O	O
persons	O	B-Variable
table	O	B-Data_Structure
,	O	O
skills	O	B-Variable
table	O	B-Data_Structure
and	O	O
a	O	O
personToSkill	O	B-Variable
table	O	B-Data_Structure
.	O	O

You	O	O
other	O	O
suggested	O	O
solutions	O	O
might	O	O
be	O	O
tempting	O	O
at	O	O
first	O	O
,	O	O
but	O	O
they	O	O
are	O	O
both	O	O
a	O	O
maitnence	O	O
hell	O	O
.	O	O

First	O	O
,	O	O
we	O	O
need	O	O
a	O	O
persons	B-Code_Block	B-Variable
table	O	B-Data_Structure
(	O	O
all	O	O
code	O	O
examples	O	O
use	O	O
MySQL	O	B-Application
syntax	O	O
)	O	O
:	O	O

And	O	O
pretend	O	O
this	O	O
is	O	O
the	O	O
data	O	O
in	O	O
the	O	O
table	O	B-Data_Structure
:	O	O

Then	O	O
we	O	O
need	O	O
a	O	O
skills	B-Code_Block	B-Variable
table	O	B-Data_Structure
to	O	O
hold	O	O
all	O	O
known	O	O
skills	O	O
:	O	O

Finally	O	O
we	O	O
need	O	O
a	O	O
table	O	B-Data_Structure
that	O	O
associates	O	O
a	O	O
person	B-Code_Block	B-Variable
with	O	O
a	O	O
skill	B-Code_Block	B-Variable
:	O	O

The	O	O
primary	O	O
key	O	O
is	O	O
defined	O	O
so	O	O
that	O	O
no	O	O
person	O	B-Variable
can	O	O
be	O	O
associated	O	O
with	O	O
the	O	O
same	O	O
skill	O	B-Variable
more	O	O
than	O	O
once	O	O
and	O	O
both	O	O
columns	O	B-Data_Structure
are	O	O
foreign	O	O
key	O	O
to	O	O
their	O	O
respective	O	O
tables	O	B-Data_Structure
.	O	O

Assume	O	O
the	O	O
data	O	O
below	O	O
:	O	O

This	O	O
data	O	O
would	O	O
indicate	O	O
that	O	O
John	O	B-Value
Doe	O	I-Value
,	O	O
Benny	O	B-Value
Hill	O	I-Value
and	O	O
Linus	O	B-Value
Torvalds	O	I-Value
all	O	O
have	O	O
the	O	O
skill	O	O
"	O	O
Swimming	O	B-Value
"	O	O
.	O	O

Benny	O	B-Value
Hill	O	I-Value
and	O	O
Donald	O	B-Value
Knuth	O	I-Value
are	O	O
both	O	O
pilots	O	B-Value
.	O	O

Linus	O	B-Value
Torvalds	O	I-Value
created	O	I-Value
a	O	I-Value
kernel	O	I-Value
.	O	O

And	O	O
Donald	O	B-Value
Knuth	O	I-Value
is	O	O
a	O	O
writer	O	B-Value
.	O	O

None	O	O
of	O	O
the	O	O
persons	O	O
are	O	O
an	O	O
Astronaut	O	B-Value
..	O	O
.	O	O

I	O	O
am	O	O
using	O	O
an	O	O
alarm	O	B-Class
manager	O	I-Class
and	O	O
I	O	O
have	O	O
n't	O	O
been	O	O
able	O	O
to	O	O
maintain	O	O
the	O	O
alarms	O	O
when	O	O
the	O	O
system	O	O
reboots	O	O
so	O	O
,	O	O
I	O	O
have	O	O
read	O	O
that	O	O
I	O	O
should	O	O
use	O	O
a	O	O
boot	O	B-Class
receiver	O	I-Class
which	O	O
extends	O	O
broadcastReceiver	O	B-Class
but	O	O
I	O	O
want	O	O
to	O	O
know	O	O
the	O	O
exact	O	O
difference	O	O
between	O	O
the	O	O
receiver	O	B-Class
itself	O	O
and	O	O
the	O	O
boot	O	B-Class
receiver	O	I-Class
.	O	O

The	O	O
onReceive	O	B-Function
method	O	O
of	O	O
my	O	O
broadcastReceiver	O	B-Class
actually	O	O
takes	O	O
me	O	O
to	O	O
a	O	O
new	O	O
activity	O	B-Class
using	O	O
an	O	O
intent	O	B-Class
should	O	O
i	O	O
use	O	O
this	O	O
code	O	O
and	O	O
paste	O	O
it	O	O
in	O	O
the	O	O
onReceive	O	B-Function
of	O	O
the	O	O
bootReceiver	O	B-Class
?	O	O

or	O	O
what	O	O
exactly	O	O
should	O	O
I	O	O
write	O	O
in	O	O
the	O	O
bootReceiver	O	B-Class
?	O	O

I	O	O
am	O	O
very	O	O
confused	O	O
about	O	O
this	O	O
point	O	O
because	O	O
I	O	O
have	O	O
multiple	O	O
alarms	O	O
and	O	O
I	O	O
have	O	O
given	O	O
each	O	O
one	O	O
a	O	O
unique	O	O
requestCode	O	B-Variable
.	O	O

There	O	O
is	O	O
no	O	O
separate	O	O
entity	O	O
"	O	O
Boot	O	B-Class
Receiver	O	I-Class
"	O	O
in	O	O
Android	O	B-Operating_System
.	O	O

Boot	O	B-Class
receiver	O	I-Class
is	O	O
just	O	O
broadcast	O	B-Class
receiver	O	I-Class
which	O	O
responds	O	O
to	O	O
intent	O	B-Class
with	O	O
action	O	O
android.intent.action.BOOT_COMPLETED	O	B-Variable
.	O	O

I	O	O
believe	O	O
you	O	O
will	O	O
need	O	O
to	O	O
do	O	O
couple	O	O
of	O	O
things	O	O
:	O	O

Create	O	O
a	O	O
class	O	O
which	O	O
will	O	O
inherit	O	O
from	O	O
BroadcastReceiver	O	B-Class

Add	O	O
it	O	O
to	O	O
Manifest	O	B-File_Name
and	O	O
add	O	O
info	O	O
that	O	O
it	O	O
should	O	O
handle	O	O
android.intent.action.BOOT_COMPLETED	O	B-Variable

in	O	O
onReceive	O	B-Function
code	O	O
read	O	O
all	O	O
your	O	O
alarms	O	O
from	O	O
persistent	O	O
storage	O	O
and	O	O
set	O	O
them	O	O
again	O	O
(	O	O
so	O	O
,	O	O
they	O	O
will	O	O
be	O	O
set	O	O
again	O	O
after	O	O
each	O	O
reboot	O	O
)	O	O
.	O	O

P.S	O	O
.	O	O
I	O	O
recommend	O	O
to	O	O
read	O	O
through	O	O
:	O	O

http://developer.android.com/reference/android/content/BroadcastReceiver.html	O	O

I	O	O
am	O	O
practicing	O	O
for	O	O
Java	O	B-Language
fresher	O	O
interview	O	O
coding	O	O
examples	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
write	O	O
a	O	O
program	O	O
to	O	O
find	O	O
duplicate	O	O
numbers	O	O
between	O	O
1	B-Code_Block	B-Value
to	O	O
N	B-Code_Block	B-Variable
,	O	O
where	O	O
N	O	B-Variable
is	O	O
given	O	O
by	O	O
the	O	O
user	O	O
along	O	O
with	O	O
the	O	O
numbers	O	O
themselves	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
:	O	O

But	O	O
I	O	O
am	O	O
getting	O	O
following	O	O
error	O	O
in	O	O
Eclipse	O	B-Application
Neon	O	B-Version
:	O	O

What	O	O
is	O	O
wrong	O	O
?	O	O

Why	O	O
the	O	O
JVM	O	B-Application
heap	O	B-Data_Structure
space	O	O
error	O	O
?	O	O

Code	O	O
compiles	O	O
and	O	O
runs	O	O
fine	O	O
.	O	O

DataInputStream	O	B-Class
is	O	O
for	O	O
binary	O	O
not	O	O
text	O	O
.	O	O

When	O	O
you	O	O
type	O	O
4	O	O
bytes	O	O
,	O	O
this	O	O
is	O	O
turned	O	O
into	O	O
a	O	O
32-bit	O	O
int	B-Code_Block	B-Data_Type
value	O	O
e.g	O	O
.	O	O
5	O	B-Value
,	O	O
\n	O	B-Value
,	O	O
\n	O	B-Value
,	O	O
\n	O	B-Value
is	O	O
about	O	O
900	O	O
million	O	O
which	O	O
is	O	O
why	O	O
it	O	O
complains	O	O
about	O	O
memory	O	O
when	O	O
you	O	O
create	O	O
the	O	O
array	O	B-Data_Structure
.	O	O

You	O	O
can	O	O
check	O	O
this	O	O
by	O	O
stepping	O	O
through	O	O
the	O	O
code	O	O
in	O	O
your	O	O
debugger	O	B-Application
.	O	O

What	O	O
you	O	O
need	O	O
is	O	O
text	O	O
input	O	O
,	O	O
try	O	O
using	O	O

Try	O	O
using	O	O
a	O	O
Scanner	O	B-Class
for	O	O
your	O	O
class	O	O
instead	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
basic	O	O
example	O	O
:	O	O

I	O	O
'm	O	O
scrapping	O	O
through	O	O
a	O	O
website	O	O
to	O	O
get	O	O
product	O	O
informations	O	O
to	O	O
be	O	O
used	O	O
on	O	O
my	O	O
web	O	O
app	O	O
.	O	O

An	O	O
example	O	O
of	O	O
a	O	O
product	O	O
attributes	O	O
are	O	O

My	O	O
plan	O	O
is	O	O
to	O	O
store	O	O
all	O	O
of	O	O
the	O	O
products	O	O
'	O	O
information	O	O
on	O	O
my	O	O
server	O	B-Application
and	O	O
call	O	O
them	O	O
from	O	O
my	O	O
web	O	O
app	O	O
.	O	O

Is	O	O
it	O	O
smart	O	O
move	O	O
to	O	O
store	O	O
img	O	B-File_Type
files	O	O
to	O	O
my	O	O
server/link	O	O
them	O	O
on	O	O
mysql	O	B-Application
DB	O	O
then	O	O
call	O	O
it	O	O
from	O	O
the	O	O
web	O	O
or	O	O
will	O	O
it	O	O
be	O	O
fast	O	O
enough	O	O
to	O	O
just	O	O
call	O	O
the	O	O
img	O	B-File_Type
on	O	O
my	O	O
web	O	O
app	O	O
using	O	O
the	O	O
original	O	O
img	O	B-File_Type
src	O	O
url	O	O
(	O	O
from	O	O
the	O	O
original	O	O
website	O	O
)	O	O

It	O	O
depends	O	O
on	O	O
the	O	O
performance	O	O
of	O	O
your	O	O
setup	O	O
compared	O	O
to	O	O
theirs	O	O
for	O	O
any	O	O
given	O	O
user	O	O
depending	O	O
on	O	O
where	O	O
they	O	O
are	O	O
on	O	O
the	O	O
planet	O	O
.	O	O

I	O	O
think	O	O
it	O	O
's	O	O
safe	O	O
to	O	O
assume	O	O
that	O	O
any	O	O
differences	O	O
would	O	O
be	O	O
marginal	O	O
assuming	O	O
you	O	O
are	O	O
serving	O	O
up	O	O
the	O	O
same-sized	O	O
image	O	B-User_Interface_Element
.	O	O

However	O	O
,	O	O
the	O	O
original	O	O
website	O	O
might	O	O
not	O	O
like	O	O
it	O	O
if	O	O
you	O	O
are	O	O
hot	O	O
linking	O	O
to	O	O
their	O	O
images	O	B-User_Interface_Element
.	O	O

Also	O	O
if	O	O
they	O	O
change	O	O
their	O	O
filenames	O	O
or	O	O
images	O	B-User_Interface_Element
your	O	O
links	O	O
will	O	O
break	O	O
.	O	O

I	O	O
've	O	O
custom	O	O
list	O	B-HTML_XML_Tag
view	O	I-HTML_XML_Tag
layout	O	O
.	O	O

The	O	O
items	O	O
in	O	O
list	O	B-Data_Structure
are	O	O
going	O	O
to	O	O
be	O	O
5	O	O
or	O	O
more	O	O
.	O	O

If	O	O
more	O	O
than	O	O
say	O	O
,	O	O
5-10	O	O
items	O	O
are	O	O
there	O	O
in	O	O
list	O	B-Data_Structure
,	O	O
it	O	O
looks	O	O
good	O	O
.	O	O

But	O	O
if	O	O
there	O	O
are	O	O
say	O	O
only	O	O
5	O	O
items	O	O
,	O	O
then	O	O
blank	O	O
space	O	O
appears	O	O
below	O	O
list	O	B-Data_Structure
on	O	O
devices	O	O
larger	O	O
in	O	O
height	O	O
.	O	O

This	O	O
does	O	O
not	O	O
look	O	O
good	O	O
.	O	O

following	O	O
is	O	O
my	O	O
list	O	B-Data_Structure
row	O	I-Data_Structure
layout	O	O
-	O	O

And	O	O
listview	O	B-HTML_XML_Tag
-	O	O

What	O	O
I	O	O
desire	O	O
is	O	O
,	O	O
if	O	O
height	O	O
of	O	O
device	O	O
is	O	O
larger	O	O
then	O	O
I	O	O
want	O	O
list	O	B-Data_Structure
to	O	O
take	O	O
complete	O	O
height	O	O
by	O	O
scaling	O	O
height	O	O
of	O	O
each	O	O
row	O	B-User_Interface_Element
in	O	O
way	O	O
that	O	O
it	O	O
should	O	O
display	O	O
all	O	O
items	O	O
w/o	O	O
scroll	O	O
.	O	O

If	O	O
items	O	O
are	O	O
more	O	O
then	O	O
scroll	O	O
should	O	O
appear	O	O
.	O	O

How	O	O
can	O	O
I	O	O
set	O	O
this	O	O
up	O	O
?	O	O

Update	O	O

I	O	O
can	O	O
opt-in	O	O
for	O	O
a	O	O
solution	O	O
where	O	O
I	O	O
'd	O	O
check	O	O
how	O	O
many	O	O
items	O	O
are	O	O
going	O	O
to	O	O
be	O	O
there	O	O
in	O	O
list	O	B-Data_Structure
before	O	O
and	O	O
if	O	O
they	O	O
are	O	O
less	O	O
than	O	O
5-6	O	O
,	O	O
I	O	O
'd	O	O
choose	O	O
a	O	O
different	O	O
layout	O	O
consisting	O	O
of	O	O
LinearLayout	O	B-HTML_XML_Tag
or	O	O
something	O	O
that	O	O
would	O	O
fill	O	O
up	O	O
the	O	O
blank	O	O
space	O	O
.	O	O

But	O	O
I	O	O
ca	O	O
n't	O	O
figure	O	O
out	O	O
the	O	O
structure	O	O
I	O	O
need	O	O
to	O	O
choose	O	O
for	O	O
such	O	O
LinearLayout	B-Code_Block	B-HTML_XML_Tag
.	O	O

Should	O	O
I	O	O
choose	O	O
5-6	O	O
LinearLayout	O	B-HTML_XML_Tag
below	O	O
one	O	O
another	O	O
or	O	O
a	O	O
single	O	O
with	O	O
iteration	O	O
?	O	O

Well	O	O
,	O	O
in	O	O
my	O	O
view	O	O
if	O	O
I	O	O
need	O	O
to	O	O
implement	O	O
such	O	O
a	O	O
function	O	O
,	O	O
I	O	O
'll	O	O
do	O	O
like	O	O
below	O	O
:	O	O

check	O	O
if	O	O
there	O	O
exist	O	O
blank	O	O
you	O	O
dont	O	O
want(blankHeight=(ListViewHeight-count*rowHeight)>0)	O	B-Code_Block

heightToPlus	O	B-Code_Block
=	O	I-Code_Block
blankHeight/count	O	I-Code_Block

then	O	O
you	O	O
can	O	O
set	O	O
the	O	O
height	O	O
of	O	O
each	O	O
row	O	B-User_Interface_Element
to	O	O
rowHeight+heightToPlus	O	B-Variable

every	O	O
height	O	O
can	O	O
be	O	O
get	O	O
by	O	O
getHeight	O	B-Function
and	O	O
also	O	O
can	O	O
be	O	O
set	O	O
by	O	O
setHeight	O	B-Function
,	O	O
they	O	O
're	O	O
method	O	O
of	O	O
view	O	B-Class
.	O	O

So	O	O
i	O	O
think	O	O
it	O	O
not	O	O
hard	O	O
to	O	O
implement	O	O
..	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
show	O	O
the	O	O
error	O	O
message	O	O
of	O	O
customValidator	O	B-Class
without	O	O
POSTBACK	O	B-Function
?	O	O

I	O	O
have	O	O
used	O	O
both	O	O
requiredFieldValidator	O	B-Class
and	O	O
customValidator	O	B-Class
.	O	O

The	O	O
fomer	O	O
can	O	O
be	O	O
inline	O	O
and	O	O
can	O	O
show	O	O
error	O	O
message	O	O
without	O	O
postback	O	B-Function
.	O	O

Is	O	O
this	O	O
possible	O	O
for	O	O
customValidator	O	B-Class
?	O	O

Option	O	O
1	O	O
:	O	O

Whenever	O	O
I	O	O
create	O	O
a	O	O
custom	O	B-Class
validator	O	I-Class
,	O	O
I	O	O
try	O	O
to	O	O
create	O	O
a	O	O
server	O	B-Application
and	O	O
client	O	B-Application
side	O	O
validation	O	O
methods	O	O
to	O	O
validate	O	O
.	O	O

creating	O	O
a	O	O
client	O	B-Application
side	O	O
method	O	O
will	O	O
avoid	O	O
unnecessary	O	O
postback	O	B-Function
.	O	O

As	O	O
a	O	O
safety	O	O
measure	O	O
,	O	O
server	O	B-Application
side	O	O
method	O	O
should	O	O
be	O	O
present	O	O
.	O	O

Example	O	O
:	O	O

Option	O	O
2	O	O
:	O	O

It	O	O
is	O	O
not	O	O
always	O	O
possible	O	O
to	O	O
build	O	O
a	O	O
client	O	B-Application
side	O	O
validation	O	O
method	O	O
.	O	O

There	O	O
you	O	O
can	O	O
use	O	O
update	O	B-Class
panel	O	I-Class
to	O	O
hide	O	O
those	O	O
postbacks	O	B-Function
.	O	O

you	O	O
can	O	O
use	O	O
Update	O	B-Class
Panel	O	I-Class
ajax	O	B-Library
to	O	O
this	O	O
action	O	O
without	O	O
postback	O	B-Function
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
install	O	O
homebrew	O	B-Application
according	O	O
to	O	O
the	O	O
guidelines	O	O
described	O	O
in	O	O
here	O	O
.	O	O

I	O	O
have	O	O
curl	O	B-Library
and	O	O
rvm	O	B-Library
,	O	O
and	O	O
want	O	O
to	O	O
install	O	O
rails	O	B-Library
1.9.3	O	B-Version
on	O	O
my	O	O
lion	O	B-Operating_System
1.7.4	O	B-Version
with	O	O
Xcode	O	B-Application
4.3.2	O	B-Version
and	O	O
with	O	O
developer	O	B-Application
command	O	I-Application
line	O	I-Application
tools	O	I-Application
installed	O	O
.	O	O

It	O	O
seems	O	O
I	O	O
will	O	O
need	O	O
libksba	O	B-Library
,	O	O
which	O	O
requires	O	O
me	O	O
to	O	O
use	O	O
to	O	O
command	O	O
brew	B-Code_Block	B-Code_Block
install	I-Code_Block	I-Code_Block
libksba	I-Code_Block	I-Code_Block
.	O	O

So	O	O
I	O	O
will	O	O
need	O	O
Home	O	B-Application
Brew	O	I-Application
.	O	O

I	O	O
follow	O	O
the	O	O
instructions	O	O
and	O	O
use	O	O

/usr/bin/ruby	B-Code_Block	B-Code_Block
-e	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
$	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
/usr/bin/curl	B-Code_Block	B-Code_Block
-fsSL	I-Code_Block	I-Code_Block
https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block

which	O	O
outputs	O	O
the	O	O
following	O	O
:	O	O

So	O	O
this	O	O
means	O	O
basically	O	O
that	O	O
brew	O	B-Application
was	O	O
not	O	O
installed	O	O
right	O	O
.	O	O

Do	O	O
I	O	O
have	O	O
to	O	O
change	O	O
the	O	O
path	O	O
at	O	O
which	O	O
it	O	O
is	O	O
looking	O	O
for	O	O
?	O	O

I	O	O
used	O	O
to	O	O
have	O	O
MacPorts	O	B-Application
in	O	O
,	O	O
which	O	O
I	O	O
completely	O	O
erased	O	O
so	O	O
there	O	O
should	O	O
be	O	O
no	O	O
conflicts	O	O
there	O	O
.	O	O

Please	O	O
help	O	O
!!	O	O
!	O	O

Thanks	O	O
a	O	O
lot	O	O
!	O	O

It	O	O
's	O	O
an	O	O
awesome	O	O
community	O	O
.	O	O

UPDATE	O	O
:	O	O

I	O	O
time	O	O
machined	O	O
back	O	O
a	O	O
year	O	O
because	O	O
I	O	O
thought	O	O
I	O	O
did	O	O
something	O	O
critically	O	O
wrong	O	O
.	O	O

Now	O	O
I	O	O
still	O	O
have	O	O
an	O	O
issue	O	O
installing	O	O
,	O	O
but	O	O
it	O	O
seems	O	O
a	O	O
bit	O	O
more	O	O
common	O	O
.	O	O

I	O	O
installed	O	O
homebrew	O	B-Application
using	O	O

Any	O	O
command	O	O
of	O	O
"	O	O
brew	O	B-Application
"	O	O
gives	O	O
me	O	O
this	O	O
error	O	O
:	O	O

Any	O	O
suggestions	O	O
?	O	O

Thank	O	O
you	O	O
all	O	O
!	O	O

I	O	O
had	O	O
the	O	O
same	O	O
problem	O	O
as	O	O
mentioned	O	O
in	O	O
my	O	O
comment	O	O
above	O	O
.	O	O

To	O	O
resolve	O	O
it	O	O
I	O	O
ended	O	O
up	O	O
having	O	O
to	O	O
restore	O	O
my	O	O
default	O	O
system	O	O
ruby	O	B-Language
.	O	O

I	O	O
am	O	O
on	O	O
SnowLeopard	O	B-Operating_System
-	O	I-Operating_System
OSX	O	I-Operating_System
10.6.8	O	B-Version
,	O	O
so	O	O
your	O	O
resources	O	O
may	O	O
vary	O	O
,	O	O
but	O	O
what	O	O
I	O	O
did	O	O
was	O	O
:	O	O

uninstall	O	O
xcode	O	B-Application
:	O	O
sudo	O	B-Code_Block
/Developer/Library/uninstall	O	I-Code_Block
-devtools	O	I-Code_Block
--mode	O	I-Code_Block
=	O	I-Code_Block
all	O	I-Code_Block

rsync	O	B-Code_Block
or	O	O
copy	O	O
/System/Library/Frameworks/Ruby.framework	O	B-File_Name
from	O	O
another	O	O
machine	O	O
running	O	O
10.6.8	O	B-Version

You	O	O
also	O	O
need	O	O
the	O	O
ruby	O	B-Language
executables	O	O
in	O	O
/usr/bin	O	B-File_Name
to	O	O
point	O	O
to	O	O
the	O	O
system	O	O
Ruby	O	B-Language
:	O	O
/usr/bin/{erb,gem,irb,rdoc,ri,ruby,testrb}	O	B-File_Name

these	O	O
are	O	O
just	O	O
symlinks	O	B-File_Type
to	O	O
/System/Library/Frameworks/Ruby.framework	O	B-File_Name

erb	O	B-File_Name
->	O	O
../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/erb	O	B-File_Name

so	O	O
I	O	O
re-symlinked	O	O
them	O	O
,	O	O
for	O	O
example	O	O
from	O	O
/usr/bin	O	B-Code_Block
:	O	I-Code_Block
sudo	O	I-Code_Block
ln	O	I-Code_Block
-s	O	I-Code_Block
../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/erb	O	I-Code_Block
./erb	O	I-Code_Block

the	O	O
brew	O	B-Application
executable	O	O
currently	O	O
uses	O	O
/usr/bin/ruby	O	B-File_Name
so	O	O
that	O	O
needs	O	O
to	O	O
be	O	O
there	O	O
in	O	O
the	O	O
least	O	O

I	O	O
hear	O	O
future	O	O
versions	O	O
of	O	O
brew	O	B-Application
will	O	O
point	O	O
directly	O	O
at	O	O
the	O	O
system	O	O
ruby	O	B-Language
on	O	O
the	O	O
/System/Library/Frameworks/Ruby.framework	O	B-File_Name
path	O	O
,	O	O
so	O	O
symlinking	O	O
ruby	O	B-Language
to	O	O
a	O	O
custom	O	O
install	O	O
is	O	O
a	O	O
bad	O	O
idea	O	O

At	O	O
this	O	O
point	O	O
brew	O	B-Application
commands	O	O
worked	O	O
again	O	O
and	O	O
ostruct	O	B-Class
(	O	O
part	O	O
of	O	O
ruby	O	B-Language
standard	O	O
lib	O	O
)	O	O
was	O	O
again	O	O
found	O	O
.	O	O

I	O	O
went	O	O
ahead	O	O
and	O	O
added	O	O
xcode	O	B-Application
back	O	O
in	O	O
and	O	O
worked	O	O
through	O	O
some	O	O
minor	O	O
'	O	O
brew	O	B-Code_Block
doctor	O	I-Code_Block
'	O	O
errors	O	O
.	O	O

I	O	O
have	O	O
now	O	O
replaced	O	O
all	O	O
my	O	O
old	O	O
macports	O	B-Application
packages	O	O
with	O	O
homebrew	O	B-Application
packages	O	O
and	O	O
its	O	O
such	O	O
an	O	O
improvement	O	O
!	O	O

I	O	O
have	O	O
a	O	O
dictionary	O	B-Data_Structure
with	O	O
5000	O	O
keys	O	O
who	O	O
's	O	O
values	O	O
are	O	O
lists	O	B-Data_Structure
,	O	O
I	O	O
need	O	O
to	O	O
determine	O	O
quickly	O	O
the	O	O
length	O	O
of	O	O
the	O	O
longest	O	O
string	O	B-Data_Type
for	O	O
a	O	O
given	O	O
index	O	O
in	O	O
all	O	O
of	O	O
the	O	O
dictionary	O	B-Data_Structure
values	O	O

expected	O	O
output	O	O
:	O	O
5	B-Code_Block	B-Value
,	O	O
because	O	O
of	O	O
all	O	O
of	O	O
the	O	O
values	O	O
at	O	O
index	O	O
1	O	B-Value
(	O	O
'	B-Code_Block	B-Value
defg	I-Code_Block	I-Value
'	B-Code_Block	B-Value
and	O	O
'	O	B-Value
klmno'`	O	I-Value
,	O	O
the	O	O
latter	O	O
is	O	O
the	O	O
longest	O	O
)	O	O
.	O	O

You	O	O
need	O	O
to	O	O
use	O	O
a	O	O
generator	O	O
expression	O	O
to	O	O
extract	O	O
the	O	O
right	O	O
index	O	O
:	O	O

If	O	O
all	O	O
you	O	O
need	O	O
is	O	O
the	O	O
length	O	O
,	O	O
not	O	O
the	O	O
string	O	B-Data_Type
itself	O	O
,	O	O
you	O	O
may	O	O
as	O	O
well	O	O
get	O	O
the	O	O
length	O	O
in	O	O
the	O	O
generator	O	O
expression	O	O
:	O	O

Demo	O	O
:	O	O

You	O	O
ca	O	O
n't	O	O
escape	O	O
having	O	O
to	O	O
iterate	O	O
over	O	O
all	O	O
values	O	O
in	O	O
the	O	O
dictionary	O	B-Data_Structure
however	O	O
.	O	O

First	O	O
,	O	O
extract	O	O
all	O	O
the	O	O
strings	O	B-Data_Type
of	O	O
interest	O	O
with	O	O
a	O	O
list	O	B-Data_Structure
comprehension	O	O
:	O	O

Next	O	O
,	O	O
take	O	O
max	O	B-Function
over	O	O
the	O	O
lens	O	B-Function
of	O	O
the	O	O
strings	O	B-Data_Type
:	O	O

I	O	O
got	O	O
some	O	O
strange	O	O
behaviour	O	O
using	O	O
grails	O	B-Library
2.3.x	O	B-Version
and	O	O
async	O	O
.	O	O

I	O	O
'm	O	O
doing	O	O
some	O	O
test	O	O
with	O	O
this	O	O
code	O	O
:	O	O

but	O	O
in	O	O
my	O	O
log	O	B-File_Type
i	O	O
got	O	O
:	O	O

In	O	O
fact	O	O
the	O	O
tasks	O	O
(	O	O
and	O	O
onError	O	B-Class
closure	O	O
)	O	O
are	O	O
executed	O	O
,	O	O
but	O	O
onComplete	O	B-Class
is	O	O
not	O	O
(	O	O
off	O	O
course	O	O
)	O	O
!	O	O
!	O	O

what	O	O
am	O	O
i	O	O
doing	O	O
wrong	O	O
?	O	O

except	O	O
for	O	O
the	O	O
Thread.sleep()	O	B-Function
is	O	O
pratically	O	O
code	O	O
taken	O	O
from	O	O
doc	O	O
:	O	O
http://grails.org/doc/latest/guide/async.html	O	O

Is	O	O
Thread.sleep()	O	B-Function
not	O	O
compatible	O	O
with	O	O
GPars	O	B-Library
for	O	O
some	O	O
reason	O	O
?	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
onComplete	B-Code_Block	B-Class
does	O	O
not	O	O
block	O	O
.	O	O

The	O	O
request/action	O	O
does	O	O
finish	O	O
before	O	O
your	O	O
tasks	O	O
and	O	O
list	B-Code_Block	B-Variable
goes	O	O
out	O	O
of	O	O
scope	O	O
.	O	O

You	O	O
need	O	O
to	O	O
use	O	O
waitAll()	B-Code_Block	B-Function
to	O	O
wait	O	O
for	O	O
all	O	O
tasks	O	O
to	O	O
finish	O	O
before	O	O
the	O	O
action	O	O
returns	O	O
.	O	O

Easiest	O	O
is	O	O
to	O	O
replace	O	O
the	O	O
onComplete	B-Code_Block	B-Class
with	O	O

list.get()	B-Code_Block	B-Function
is	O	O
implemented	O	O
by	O	O
calling	O	O
waitAll()	B-Code_Block	B-Function
.	O	O

Whenever	O	O
I	O	O
go	O	O
into	O	O
the	O	O
tab	O	B-User_Interface_Element
TroubleShooting->Logs	O	O
and	O	O
Trace->Server	O	B-Application
I	O	O
get	O	O
the	O	O
general	O	O
properties	O	O
section	O	O
in	O	O
which	O	O
there	O	O
's	O	O
only	O	O
a	O	O
link	O	O
of	O	O
Change	O	O
Log	O	B-File_Type
Details	O	O
Level	O	O
.	O	O

I	O	O
've	O	O
changed	O	O
the	O	O
tracing	O	O
inside	O	O
to	O	O
reflect	O	O
for	O	O
my	O	O
apps	O	O
.	O	O

But	O	O
beyond	O	O
this	O	O
option	O	O
I	O	O
'm	O	O
not	O	O
able	O	O
to	O	O
see	O	O
the	O	O
log	O	B-File_Type
files	O	O
inside	O	O
WAS	O	B-Application
.	O	O

We	O	O
have	O	O
WAS	O	O
on	O	O
Z/OS	O	B-Operating_System
and	O	O
I	O	O
'm	O	O
able	O	O
to	O	O
view	O	O
logs	O	B-File_Type
on	O	O
the	O	O
mainframe	O	B-Device
.	O	O

Is	O	O
there	O	O
any	O	O
file	O	O
or	O	O
script	O	O
that	O	O
we	O	O
need	O	O
to	O	O
run	O	O
to	O	O
enable	O	O
JVM	O	B-Application
logs	O	B-File_Type
?	O	O

On	O	O
AIX	O	B-Operating_System
,	O	O
linux	O	B-Operating_System
and	O	O
Windows	O	B-Operating_System
,	O	O
when	O	O
I	O	O
go	O	O
TroubleShooting	O	O
->	O	O
Logs	O	O
and	O	O
Trace	O	O
->	O	O
Server	O	B-Application
,	O	O
I	O	O
get	O	O
several	O	O
links	O	O
in	O	O
general	O	O
properties	O	O
section	O	O
,	O	O
one	O	O
of	O	O
which	O	O
is	O	O
'	O	B-Value
Diagnostic	O	I-Value
Trace	O	I-Value
'	O	B-Value
through	O	O
which	O	O
I	O	O
can	O	O
enable/disable	O	O
tracing	O	O
and	O	O
configure	O	O
where	O	O
the	O	O
log	O	B-File_Type
files	O	O
shall	O	O
be	O	O
located	O	O
at	O	O
,	O	O
their	O	O
sizes	O	O
,	O	O
rollover	O	O
settings	O	O
etc	O	O
.	O	O

The	O	O
fact	O	O
that	O	O
you	O	O
do	O	O
n't	O	O
see	O	O
this	O	O
link	O	O
either	O	O
suggests	O	O
this	O	O
is	O	O
something	O	O
z/OS	O	B-Operating_System
specific	O	O
,	O	O
or	O	O
you	O	O
do	O	O
n't	O	O
have	O	O
privileges	O	O
to	O	O
perform	O	O
runtime	O	O
operations	O	O
.	O	O

You	O	O
may	O	O
check	O	O
if	O	O
you	O	O
're	O	O
logging	O	O
in	O	O
with	O	O
a	O	O
user	O	O
that	O	O
is	O	O
in	O	O
Administrators	O	O
group	O	O
(	O	O
you	O	O
may	O	O
check	O	O
you	O	O
user	O	O
at	O	O
Users	O	O
and	O	O
Groups	O	O
->	O	O
Administrative	O	O
User	O	O
Roles	O	O
)	O	O
.	O	O

There	O	O
are	O	O
two	O	O
tabs	O	B-User_Interface_Element
at	O	O
the	O	O
screen	O	O
that	O	O
you	O	O
change	O	O
trace	O	O
options	O	O
,	O	O
namely	O	O
'	O	O
configuration	O	B-Value
'	O	O
and	O	O
'	O	O
runtime	O	B-Value
'	O	O
.	O	O

If	O	O
you	O	O
are	O	O
making	O	O
changes	O	O
at	O	O
configuration	O	O
tab	O	B-User_Interface_Element
,	O	O
you	O	O
have	O	O
to	O	O
recycle	O	O
the	O	O
server	O	B-Device
for	O	O
trace	O	O
string	O	B-Data_Type
to	O	O
become	O	O
active	O	O
.	O	O

You	O	O
may	O	O
try	O	O
using	O	O
Runtime	O	O
tab	O	B-User_Interface_Element
if	O	O
you	O	O
have	O	O
n't	O	O
done	O	O
so	O	O
.	O	O

You	O	O
may	O	O
try	O	O
enabling	O	O
trace	O	O
using	O	O
wsadmin	O	B-Application
as	O	O
in	O	O
http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Ftxml_profiletrace.html	O	O

turn	O	O
on	O	O
trace	O	O
(	O	O
putting	O	O
your	O	O
own	O	O
trace	O	O
string	O	B-Data_Type
)	O	O

turn	O	O
off	O	O
trace	O	O

I	O	O
got	O	O
a	O	O
<p:calendar>	B-Code_Block	B-HTML_XML_Tag
and	O	O
want	O	O
to	O	O
use	O	O
today	O	O
's	O	O
date	O	O
as	O	O
placeholder	O	O
.	O	O

My	O	O
attempt	O	O
is	O	O
to	O	O
use	O	O
OmniFaces	O	B-Library
#{now}	B-Code_Block	B-Code_Block
in	O	O
combination	O	O
with	O	O
a:placeholder	B-Code_Block	B-HTML_XML_Tag
for	O	O
this	O	O
:	O	O

Where	O	O
someproperty	B-Code_Block	O
is	O	O
a	O	O
java.util.date	B-Code_Block	B-Class
.	O	O

This	O	O
is	O	O
working	O	O
so	O	O
far	O	O
,	O	O
but	O	O
I	O	O
want	O	O
to	O	O
format	O	O
the	O	O
date	O	O
like	O	O
dd.MM.yyyy	B-Code_Block	B-Code_Block
HH:mm	I-Code_Block	I-Code_Block
.	O	O

How	O	O
can	O	O
I	O	O
achieve	O	O
this	O	O
?	O	O

Use	O	O
of:formatDate()	B-Code_Block	B-Function
function	O	O
in	O	O
EL	O	O
:	O	O

Or	O	O
if	O	O
you	O	O
'd	O	O
like	O	O
to	O	O
reuse	O	O
calendar	O	O
component	O	O
's	O	O
own	O	O
pattern	O	O
attribute	O	O
:	O	O

See	O	O
also	O	O
:	O	O

What	O	O
exactly	O	O
is	O	O
#{component}	O	B-Code_Block
in	O	O
EL	O	O
?	O	O

I	O	O
'm	O	O
hoping	O	O
someone	O	O
can	O	O
point	O	O
me	O	O
in	O	O
the	O	O
right	O	O
direction	O	O
;	O	O
I	O	O
think	O	O
I	O	O
'm	O	O
getting	O	O
close	O	O
but	O	O
I	O	O
've	O	O
never	O	O
done	O	O
threading	O	O
and	O	O
keep	O	O
getting	O	O
stuck	O	O
on	O	O
syntax/concepts	O	O
.	O	O

The	O	O
first	O	O
part	O	O
I	O	O
believe	O	O
is	O	O
working	O	O
,	O	O
however	O	O
I	O	O
have	O	O
a	O	O
lovely	O	O
WPF	O	B-Library
error	O	O
regarding	O	O
the	O	O
owner	O	O
of	O	O
the	O	O
thread	O	O
.	O	O

I	O	O
know	O	O
somehow	O	O
I	O	O
've	O	O
got	O	O
get	O	O
at	O	O
the	O	O
thread	O	O
with	O	O
Dispatcher	O	B-Class
or	O	O
BackGroundWorker	O	B-Class
but	O	O
time	O	O
is	O	O
getting	O	O
short	O	O
-	O	O
I	O	O
'm	O	O
hitting	O	O
too	O	O
many	O	O
walls	O	O
to	O	O
solve	O	O
it	O	O
alone	O	O
tonight	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
part	O	O
I	O	O
'm	O	O
failing	O	O
at	O	O
:	O	O

Now	O	O
this	O	O
next	O	O
bit	O	O
,	O	O
I	O	O
believe	O	O
is	O	O
either	O	O
A	O	O
)	O	O
Working	O	O
or	O	O
B	O	O
)	O	O
fooling	O	O
me	O	O
as	O	O
I	O	O
've	O	O
yet	O	O
to	O	O
prove	O	O
it	O	O
:)	O	O
.	O	O

Finally	O	O
the	O	O
exact	O	O
error	O	O
is	O	O
The	B-Code_Block	B-Output_Block
calling	I-Code_Block	I-Output_Block
thread	I-Code_Block	I-Output_Block
cannot	I-Code_Block	I-Output_Block
access	I-Code_Block	I-Output_Block
this	I-Code_Block	I-Output_Block
object	I-Code_Block	I-Output_Block
because	I-Code_Block	I-Output_Block
a	I-Code_Block	I-Output_Block
different	I-Code_Block	I-Output_Block
thread	I-Code_Block	I-Output_Block
owns	I-Code_Block	I-Output_Block
it	I-Code_Block	I-Output_Block
.	O	O

I	O	O
'm	O	O
going	O	O
to	O	O
be	O	O
tackling	O	O
this	O	O
again	O	O
in	O	O
a	O	O
couple	O	O
of	O	O
hours	O	O
once	O	O
I	O	O
've	O	O
had	O	O
chance	O	O
to	O	O
eat	O	O
and	O	O
read	O	O
,	O	O
again	O	O
.	O	O

However	O	O
if	O	O
anyone	O	O
can	O	O
tell	O	O
me	O	O
what	O	O
the	O	O
glaring	O	O
silliness	O	O
that	O	O
I	O	O
've	O	O
not	O	O
quite	O	O
got	O	O
my	O	O
head	O	O
around	O	O
,	O	O
I	O	O
'd	O	O
be	O	O
rather	O	O
grateful	O	O
!	O	O
!	O	O

The	O	O
context	O	O
is	O	O
an	O	O
Entity	O	B-Library
Framework	O	I-Library
5	O	B-Version
ObservableCollection	O	B-Class
with	O	O
child	O	O
navigation	O	O
filtered	O	O
properties-I	O	O
do	O	O
n't	O	O
think	O	O
the	O	O
code	O	O
quite	O	O
says	O	O
it	O	O
:)	O	O
.	O	O

Thank	O	O
you	O	O
:)	O	O
.	O	O

As	O	O
requested	O	O
,	O	O
the	O	O
exception	O	B-Class
I	O	O
get	O	O
.	O	O

This	O	O
occurrs	O	O
in	O	O
the	O	O
repository	O	B-Class
code	O	O
.	O	O

The	O	O
Thread	O	O
stuff	O	O
is	O	O
a	O	O
red	O	O
herring	O	O
.	O	O

InnerException	O	B-Error_Name
:	O	O

This	O	O
is	O	O
the	O	O
entire	O	O
exception	O	B-Class
and	O	O
it	O	O
occurs	O	O
here	O	O
:	O	O

I	O	O
've	O	O
been	O	O
through	O	O
the	O	O
articles	O	O
last	O	O
night	O	O
,	O	O
whilst	O	O
I	O	O
understand	O	O
it	O	O
a	O	O
little	O	O
better	O	O
now	O	O
I	O	O
'm	O	O
still	O	O
struggling	O	O
to	O	O
apply	O	O
it	O	O
to	O	O
the	O	O
repository	O	B-Class
class	O	O
.	O	O

This	O	O
is	O	O
usually	O	O
a	O	O
combination	O	O
of	O	O
syntax	O	O
confusion	O	O
and	O	O
not	O	O
quite	O	O
getting	O	O
it	O	O
on	O	O
my	O	O
part	O	O
.	O	O

I	O	O
've	O	O
a	O	O
feeling	O	O
that	O	O
I	O	O
should	O	O
be	O	O
able	O	O
to	O	O
split	O	O
out	O	O
part	O	O
of	O	O
the	O	O
operation	O	O
in	O	O
the	O	O
getfiltered	O	B-Function
residents	O	O
into	O	O
an	O	O
await	O	O
task	O	O
but	O	O
have	O	O
n't	O	O
managed	O	O
to	O	O
figure	O	O
it	O	O
out	O	O
just	O	O
yet	O	O
.	O	O

Today	O	O
's	O	O
job	O	O
-	O	O
if	O	O
entity	O	B-Library
framework	O	I-Library
can	O	O
be	O	O
used	O	O
this	O	O
way	O	O
!	O	O

Hello	O	O
to	O	O
every	O	O
Wordpress	O	B-Application
genius	O	O
,	O	O

I	O	O
have	O	O
a	O	O
question	O	O
and	O	O
you	O	O
might	O	O
help	O	O
.	O	O

I	O	O
've	O	O
created	O	O
a	O	O
single-page	O	O
site	O	O
with	O	O
Bootstrap	O	B-Library
and	O	O
uploaded	O	O
it	O	O
as	O	O
a	O	O
template	O	O
to	O	O
Wordpress	O	B-Website
.	O	O

Now	O	O
I	O	O
would	O	O
like	O	O
to	O	O
edit	O	O
some	O	O
parts	O	O
of	O	O
the	O	O
site	O	O
(	O	O
mostly	O	O
some	O	O
text	O	O
)	O	O
in	O	O
the	O	O
Wordpress	O	B-Application
CMS	O	I-Application
instead	O	O
of	O	O
rewriting	O	O
the	O	O
HTML	O	B-File_Type
file	O	O
.	O	O

Does	O	O
anyone	O	O
know	O	O
how	O	O
to	O	O
do	O	O
it	O	O
or	O	O
know	O	O
a	O	O
detailed	O	O
tutorial	O	O
?	O	O

I	O	O
have	O	O
spent	O	O
ages	O	O
googling	O	O
it	O	O
but	O	O
no	O	O
success	O	O
so	O	O
far	O	O
.	O	O

Thank	O	O
you	O	O
for	O	O
any	O	O
advice	O	O
and	O	O
have	O	O
peaceful	O	O
holidays	O	O
!	O	O

I	O	O
'm	O	O
attempting	O	O
to	O	O
build	O	O
a	O	O
nested	O	O
relationship	O	O
using	O	O
Django	O	B-Library
Rest	O	I-Library
Framework	O	I-Library
3.0	O	B-Version
.	O	O

I	O	O
've	O	O
created	O	O
my	O	O
serializers	O	B-Class
and	O	O
have	O	O
attempted	O	O
to	O	O
override	O	O
the	O	O
create()	B-Code_Block	B-Function
function	O	O
.	O	O

My	O	O
models	O	O
are	O	O
defined	O	O
as	O	O
follows	O	O
:	O	O

As	O	O
you	O	O
'll	O	O
note	O	O
,	O	O
I	O	O
can	O	O
have	O	O
multiple	O	O
prices	O	B-Class
for	O	O
my	O	O
items	O	B-Class
.	O	O

My	O	O
serializers	O	B-Class
are	O	O
defined	O	O
as	O	O
follows	O	O
:	O	O

When	O	O
I	O	O
try	O	O
and	O	O
POST	O	O
a	O	O
new	O	O
item	O	O
:	O	O

I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O

Presumably	O	O
because	O	O
the	O	O
Price	O	B-Class
serializer	O	I-Class
has	O	O
no	O	O
idea	O	O
what	O	O
the	O	O
ID	O	O
of	O	O
the	O	O
new	O	O
item	O	B-Class
is	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
overriding	O	O
this	O	O
functionality	O	O
in	O	O
the	O	O
create()	B-Code_Block	B-Function
function	O	O
of	O	O
my	O	O
serializer	O	B-Class
,	O	O
but	O	O
it	O	O
appears	O	O
as	O	O
though	O	O
the	O	O
serializer	O	B-Class
's	O	O
validation	O	O
is	O	O
being	O	O
hit	O	O
before	O	O
I	O	O
have	O	O
the	O	O
opportunity	O	O
to	O	O
create	O	O
the	O	O
item	O	B-Class
and	O	O
associate	O	O
it	O	O
with	O	O
the	O	O
price	O	B-Class
.	O	O

So	O	O
-	O	O
How	O	O
do	O	O
I	O	O
create	O	O
a	O	O
new	O	O
item	O	B-Class
,	O	O
get	O	O
the	O	O
item	O	B-Class
ID	O	B-Variable
,	O	O
and	O	O
then	O	O
create	O	O
each	O	O
of	O	O
the	O	O
new	O	O
prices	O	B-Class
?	O	O

The	O	O
problem	O	O
is	O	O
that	O	O
your	O	O
PriceSerializer	B-Code_Block	B-Class
is	O	O
looking	O	O
for	O	O
the	O	O
item	B-Code_Block	B-Variable
key	O	O
because	O	O
it	O	O
is	O	O
specified	O	O
on	O	O
the	O	O
Price	B-Code_Block	B-Class
model	O	O
.	O	O

This	O	O
is	O	O
n't	O	O
immediately	O	O
obvious	O	O
because	O	O
you	O	O
are	O	O
using	O	O
Meta.exclude	B-Code_Block	B-Variable
instead	O	O
of	O	O
Meta.fields	B-Code_Block	B-Variable
.	O	O

Is	O	O
the	O	O
same	O	O
as	O	O
writing	O	O

Which	O	O
makes	O	O
it	O	O
very	O	O
clear	O	O
what	O	O
your	O	O
issue	O	O
is	O	O
.	O	O

Because	O	O
your	O	O
item	B-Code_Block	B-Variable
field	O	O
on	O	O
the	O	O
model	O	O
does	O	O
not	O	O
have	O	O
empty	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
True	I-Code_Block	I-Code_Block
(	O	O
or	O	O
null	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
True	I-Code_Block	I-Code_Block
)	O	O
set	O	O
,	O	O
Django	O	B-Library
REST	O	I-Library
Framework	O	I-Library
automatically	O	O
generates	O	O
it	O	O
as	O	O
a	O	O
PrimaryKeyRelatedField	B-Code_Block	B-Variable
with	O	O
required	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
True	I-Code_Block	I-Code_Block
.	O	O

This	O	O
is	O	O
why	O	O
you	O	O
are	O	O
getting	O	O
the	O	O
This	B-Code_Block	O
field	I-Code_Block	O
is	I-Code_Block	O
required	I-Code_Block	O
is	O	O
required	O	O
error	O	O
,	O	O
because	O	O
Django	O	B-Library
REST	O	I-Library
Framework	O	I-Library
cannot	O	O
automatically	O	O
detect	O	O
that	O	O
it	O	O
is	O	O
coming	O	O
from	O	O
a	O	O
parent	O	O
serializer	O	B-Class
which	O	O
already	O	O
has	O	O
that	O	O
field	O	O
.	O	O

You	O	O
can	O	O
get	O	O
around	O	O
this	O	O
by	O	O
removing	O	O
the	O	O
field	O	O
from	O	O
the	O	O
serializer	O	B-Class
,	O	O
as	O	O
it	O	O
does	O	O
n't	O	O
appear	O	O
to	O	O
ever	O	O
be	O	O
needed	O	O
.	O	O

This	O	O
will	O	O
no	O	O
longer	O	O
display	O	O
the	O	O
item	B-Code_Block	B-Variable
field	O	O
though	O	O
,	O	O
but	O	O
I	O	O
suspect	O	O
this	O	O
is	O	O
n't	O	O
actually	O	O
an	O	O
issue	O	O
for	O	O
you	O	O
.	O	O

I	O	O
want	O	O
to	O	O
wrap	O	O
particular	O	O
lines	O	O
in	O	O
a	O	O
text	O	O
mass	O	O
with	O	O
<b></b>	B-Code_Block	B-HTML_XML_Tag

First	O	O
line	O	O
in	O	O
the	O	O
text	O	O

All	O	O
lines	O	O
with	O	O
a	O	O
previous	O	O
empty	O	O
line	O	O
(	O	O
eg	O	O
two	O	O
newlines	O	O
before	O	O
)	O	O

I	O	O
'm	O	O
using	O	O
preg_replace	O	B-Function
with	O	O
php	O	B-Language
,	O	O
but	O	O
I	O	O
'm	O	O
really	O	O
shitty	O	O
with	O	O
regex	O	O
.	O	O

Good	O	O
tutorials	O	O
are	O	O
appreciated	O	O
.	O	O

In	O	O
HTML	O	B-Language
(	O	O
I	O	O
'm	O	O
assuming	O	O
that	O	O
's	O	O
the	O	O
context	O	O
)	O	O
there	O	O
is	O	O
no	O	O
such	O	O
thing	O	O
as	O	O
"	O	O
lines	O	O
"	O	O
in	O	O
regards	O	O
to	O	O
source	O	O
code	O	O
,	O	O
since	O	O
it	O	O
's	O	O
not	O	O
really	O	O
possible	O	O
reliable	O	O
to	O	O
determinate	O	O
how	O	O
a	O	O
text	O	O
wraps	O	O
(	O	O
unless	O	O
you	O	O
do	O	O
all	O	O
the	O	O
wrapping	O	O
yourself	O	O
with	O	O
<br>	B-Code_Block	B-HTML_XML_Tag
or	O	O
<pre>	B-Code_Block	B-HTML_XML_Tag
)	O	O
.	O	O

However	O	O
there	O	O
is	O	O
the	O	O
CSS	O	B-Language
pseudo-element	O	O
:first-line	B-Code_Block	B-Variable
that	O	O
will	O	O
let	O	O
you	O	O
format	O	O
the	O	O
first	O	O
line	O	O
of	O	O
an	O	O
element	O	O
(	O	O
for	O	O
example	O	O
a	O	O
paragraph	O	O
)	O	O
:	O	O

Try	O	O

for	O	O
example	O	O
,	O	O
http://www.ideone.com/1pTwD	O	O
.	O	O

I	O	O
have	O	O
an	O	O
app	O	O
with	O	O
a	O	O
lot	O	O
of	O	O
data	O	O
(	O	O
including	O	O
NSMutableArrays	O	B-Class
,	O	O
NSNumbers	O	B-Class
,	O	O
various	O	O
custom	O	O
classes	O	O
)	O	O
that	O	O
uses	O	O
NSCoding	O	O
protocol	O	O
presently	O	O
.	O	O

However	O	O
,	O	O
I	O	O
would	O	O
like	O	O
to	O	O
implement	O	O
an	O	O
incremental	O	O
saving	O	O
system	O	O
,	O	O
to	O	O
save	O	O
time	O	O
during	O	O
the	O	O
"	O	O
saving	O	O
process	O	O
"	O	O
.	O	O

The	O	O
loading	O	O
time	O	O
is	O	O
not	O	O
important	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
existing	O	O
container	O	O
that	O	O
checks	O	O
its	O	O
members	O	O
for	O	O
"	O	O
dirty	O	O
"	O	O
and	O	O
only	O	O
updates	O	O
those	O	O
values	O	O
when	O	O
writing	O	O
to	O	O
file	O	O
;	O	O
or	O	O
better	O	O
yet	O	O
,	O	O
a	O	O
protocol	O	O
that	O	O
can	O	O
be	O	O
implemented	O	O
to	O	O
do	O	O
the	O	O
same	O	O
;	O	O
or	O	O
any	O	O
other	O	O
simple	O	O
,	O	O
available	O	O
way	O	O
of	O	O
doing	O	O
this	O	O
?	O	O

For	O	O
large	O	O
amount	O	O
of	O	O
data	O	O
its	O	O
better	O	O
to	O	O
change	O	O
data	O	O
model	O	O
to	O	O
Core	O	O
Data	O	O
.	O	O

Otherwise	O	O
,	O	O
you	O	O
may	O	O
want	O	O
to	O	O
save	O	O
changes	O	O
after	O	O
specific	O	O
events	O	O
,	O	O
or	O	O
,	O	O
bad	O	O
solution	O	O
is	O	O
to	O	O
use	O	O
NSTimer	O	B-Class
,	O	O
to	O	O
save	O	O
all	O	O
data	O	O
every	O	O
time	O	O
you	O	O
want	O	O
to	O	O
.	O	O

How	O	O
do	O	O
I	O	O
execute	O	O
bulk	O	O
operations	O	O
with	O	O
the	O	O
new	O	O
Mongocxx	O	B-Application
driver	O	I-Application
?	O	O

The	O	O
driver	O	B-Application
manual	O	O
is	O	O
horrible	O	O
.	O	O

And	O	O
there	O	O
are	O	O
no	O	O
examples	O	O
anywhere	O	O
!!	O	O
!	O	O

Relevant	O	O
class	O	O
:	O	O
http://mongodb.github.io/mongo-cxx-driver/api/mongocxx-3.1.1/classmongocxx_1_1bulk__write.html	O	O

I	O	O
can	O	O
create	O	O
an	O	O
operation	O	O
using	O	O
bulk_write::bulk_write()	B-Code_Block	B-Function
and	O	O
add	O	O
queries	O	O
using	O	O
bulk_write::append()	B-Code_Block	B-Function
.	O	O

But	O	O
I	O	O
am	O	O
confused	O	O
as	O	O
to	O	O
how	O	O
to	O	O
execute	O	O
it	O	O
.	O	O

It	O	O
's	O	O
terrible	O	O
that	O	O
they	O	O
do	O	O
n't	O	O
provide	O	O
similar	O	O
functions	O	O
like	O	O
the	O	O
mongo	O	B-Application
shell	O	I-Application
.	O	O

Ex	O	O
:	O	O
https://docs.mongodb.com/manual/reference/method/Bulk/	O	O

Create	O	O
a	O	O
bulk_write	O	B-Function
instance	O	O
,	O	O
then	O	O
populate	O	O
it	O	O
with	O	O
write	O	O
operations	O	O
and	O	O
finally	O	O
submit	O	O
it	O	O
to	O	O
Mongo	O	B-Application
collection	O	O
using	O	O
this	O	O
method	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
install	O	O
Google	O	B-Library
Maps	O	I-Library
v2	O	B-Version
libraries	O	O
into	O	O
my	O	O
local	O	O
Maven	O	B-File_Name
repository	O	O
using	O	O
maven-android-sdk-deployer	O	B-Application
according	O	O
to	O	O
the	O	O
manual	O	O
on	O	O
that	O	O
page	O	O
.	O	O

When	O	O
I	O	O
run	O	O
mvn	B-Code_Block	B-Code_Block
install	I-Code_Block	I-Code_Block
-P	I-Code_Block	I-Code_Block
4.1	I-Code_Block	I-Code_Block
,	O	O
I	O	O
get	O	O
following	O	O
error	O	O
:	O	O

There	O	O
is	O	O
actually	O	O
no	O	O
appcompat	B-Code_Block	B-Library
directory	O	O
in	O	O
C:\Program	B-Code_Block	B-File_Name
Files	I-Code_Block	I-File_Name
\adt-bundle-windows-x86\adt-bundle-windows-x86\sdk\extras\android\support\v7	I-Code_Block	I-File_Name
.	O	O

I	O	O
suppose	O	O
that	O	O
I	O	O
need	O	O
to	O	O
install	O	O
some	O	O
packag	O	O
using	O	O
the	O	O
Android	O	B-Application
SDK	O	I-Application
Manager	O	I-Application
.	O	O

Which	O	O
package	O	O
(	O	O
name	O	O
,	O	O
version	O	O
)	O	O
should	O	O
I	O	O
install	O	O
in	O	O
order	O	O
to	O	O
fix	O	O
this	O	O
issue	O	O
?	O	O

In	O	O
order	O	O
for	O	O
that	O	O
command	O	O
to	O	O
work	O	O
,	O	O
it	O	O
is	O	O
necessary	O	O
to	O	O
install	O	O
all	O	O
"	O	O
Extras	O	O
"	O	O
in	O	O
the	O	O
Android	O	B-Application
SDK	O	I-Application
manager	O	I-Application
.	O	O

I	O	O
check	O	O
the	O	O
connection	O	O
and	O	O
the	O	O
correct	O	O
link	O	O
before	O	O
the	O	O
asynctask	O	B-Class
,	O	O
but	O	O
sometimes	O	O
the	O	O
application	O	O
crash	O	O
,	O	O
for	O	O
do	O	O
it	O	O
on	O	O
the	O	O
UI	O	O
thread	O	O
i	O	O
think	O	O
.	O	O

If	O	O
i	O	O
put	O	O
the	O	O
code	O	O
on	O	O
the	O	O
AsyncTask	O	B-Class
the	O	O
application	O	O
always	O	O
crash	O	O
.	O	O

Any	O	O
solution	O	O
?	O	O

On	O	O
the	O	O
onCreate	O	B-Function
method	O	O
:	O	O

Try	O	O
this	O	O
,	O	O
check	O	O
net	O	O
connection	O	O
inside	O	O
doInBackground	B-Code_Block	B-Function
.	O	O

Your	O	O
question	O	O
is	O	O
very	O	O
vague	O	O
!	O	O

Yet	O	O
:	O	O
In	O	O
newer	O	O
androids	O	B-Operating_System
,	O	O
you	O	O
can	O	O
not	O	O
execute	O	O
this	O	O
line	O	O
on	O	O
the	O	O
UI	O	O
thread	O	O
:	O	O

so	O	O
a	O	O
simple	O	O
solution	O	O
would	O	O
be	O	O
to	O	O
add	O	O
everything	O	O
inside	O	O
a	O	O
new	O	O
Thread	O	B-Class
:	O	O

However	O	O
,	O	O
your	O	O
code	O	O
has	O	O
some	O	O
blocks	O	O
to	O	O
show	O	O
a	O	O
dialog	O	B-User_Interface_Element
(	O	O
guessing	O	O
)	O	O
like	O	O
this	O	O
:	O	O

These	O	O
function	O	O
should	O	O
be	O	O
done	O	O
on	O	O
the	O	O
UI	O	O
thread	O	O
.	O	O

So	O	O
use	O	O
a	O	O
handler	O	B-Class
:	O	O

Then	O	O
inside	O	O
your	O	O
code	O	O
use	O	O
:	O	O

Finally	O	O
,	O	O
this	O	O
is	O	O
a	O	O
fix	O	O
.	O	O

The	O	O
real	O	O
solution	O	O
would	O	O
be	O	O
for	O	O
you	O	O
to	O	O
post	O	O
the	O	O
AsyncTask	O	B-Class
anyway	O	O
and	O	O
handle	O	O
errors	O	O
or	O	O
success	O	O
in	O	O
the	O	O
onPostExecute()	B-Code_Block	B-Function

I	O	O
'm	O	O
a	O	O
total	O	O
newbie	O	O
when	O	O
it	O	O
comes	O	O
to	O	O
using	O	O
Terminal	O	B-Application
,	O	O
so	O	O
I	O	O
do	O	O
n't	O	O
really	O	O
understand	O	O
what	O	O
's	O	O
happening	O	O
here	O	O
when	O	O
I	O	O
try	O	O
to	O	O
upgrade	O	O
my	O	O
ruby	O	B-Language
version	O	O
(	O	O
1.8.7	O	B-Version
)	O	O
with	O	O
rvm	O	B-Application
on	O	O
a	O	O
Mac	O	B-Operating_System
OS	O	I-Operating_System
X	O	I-Operating_System
10.7.3	O	B-Version
.	O	O

When	O	O
I	O	O
input	O	O

I	O	O
get	O	O
this	O	O

What	O	O
does	O	O
this	O	O
mean	O	O
?	O	O

And	O	O
how	O	O
can	O	O
I	O	O
proceed	O	O
with	O	O
the	O	O
installation	O	O
of	O	O
the	O	O
latest	O	O
version	O	O
?	O	O

The	O	O
current	B-Code_Block	B-Code_Block
rvm	O	I-Code_Block
command	O	O
outputs	O	O
the	O	O
name	O	O
of	O	O
the	O	O
currently	O	O
active	O	O
installation	O	O
of	O	O
Ruby	O	B-Language
;	O	O
in	O	O
this	O	O
case	O	O
,	O	O
it	O	O
's	O	O
using	O	O
your	O	O
system	O	O
's	O	O
pre-installed	O	O
Ruby	O	B-Language
(	O	O
1.8.7	O	B-Version
)	O	O
.	O	O

Try	O	O
this	O	O
:	O	O

I	O	O
'm	O	O
making	O	O
a	O	O
program	O	O
to	O	O
generate	O	O
code	O	O
for	O	O
me	O	O
,	O	O
and	O	O
I	O	O
'm	O	O
fashioning	O	O
the	O	O
UI	O	O
after	O	O
Game	O	B-Application
Maker	O	I-Application
due	O	O
to	O	O
how	O	O
easy	O	O
the	O	O
interface	O	O
is	O	O
.	O	O

It	O	O
has	O	O
a	O	O
SplitContainer	O	B-Class
with	O	O
Panel1	O	B-Variable
containing	O	O
a	O	O
TreeView	O	B-Class
and	O	O
Panel2	O	B-Variable
containing	O	O
an	O	O
arbitrary	O	O
amount	O	O
of	O	O
self-contained	O	O
windows	O	B-User_Interface_Element
(	O	O
real	O	O
windows	O	B-User_Interface_Element
,	O	O
not	O	O
some	O	O
hacky	O	O
workaround	O	O
)	O	O
.	O	O

I	O	O
wanted	O	O
to	O	O
use	O	O
user-controls	O	O
to	O	O
store	O	O
the	O	O
controls	O	B-Class
I	O	O
use	O	O
to	O	O
modify	O	O
things	O	O
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
figure	O	O
out	O	O
any	O	O
way	O	O
to	O	O
put	O	O
it	O	O
in	O	O
a	O	O
window	O	B-User_Interface_Element
inside	O	O
the	O	O
splitContainer	O	B-Class
's	O	O
Panel2	O	B-Variable
.	O	O

Can	O	O
anyone	O	O
help	O	O
me	O	O
?	O	O

Here	O	O
's	O	O
a	O	O
good	O	O
example	O	O
:	O	O

http://i.stack.imgur.com/CG6kO.png	O	O

Those	O	O
two	O	O
sprite	O	O
property	O	O
windows	O	B-User_Interface_Element
are	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
did	O	O
similar	O	O
thing	O	O
once	O	O
,	O	O
and	O	O
for	O	O
that	O	O
reason	O	O
,	O	O
I	O	O
have	O	O
ReplaceControl	O	B-Function
method	O	O
,	O	O
which	O	O
I	O	O
paste	O	O
below	O	O
:	O	O

Only	O	O
thing	O	O
left	O	O
to	O	O
do	O	O
is	O	O
to	O	O
create	O	O
some	O	O
control	O	B-Class
manually	O	O
on	O	O
the	O	O
form	O	B-Class
,	O	O
as	O	O
the	O	O
placeholder	O	O
for	O	O
your	O	O
Form	O	B-Class
.	O	O

Use	O	O
label	O	B-Class
,	O	O
for	O	O
example	O	O
.	O	O

From	O	O
How	O	O
to	O	O
implement	O	O
a-form-inside-a-form	O	O
with	O	O
runtime	O	O
embedded	O	O
forms	O	O
switching	O	O
?	O	O

Put	O	O
it	O	O
into	O	O
the	O	O
Panel2	O	B-Variable
's	O	O
Control	O	B-Class
collection	O	O
via	O	O
the	O	O
Add()	O	B-Function
method	O	O
,	O	O
apply	O	O
coordinates	O	O
,	O	O
anchor	O	O
and	O	O
docking	O	O
programmaticaly	O	O
.	O	O

This	O	O
may	O	O
be	O	O
very	O	O
basic	O	O
but	O	O
i	O	O
am	O	O
looking	O	O
for	O	O
the	O	O
simplest	O	O
way	O	O
to	O	O
get	O	O
the	O	O
left	O	O
digit	O	O
of	O	O
a	O	O
number	O	B-Data_Type
,	O	O
and	O	O
the	O	O
right	O	O
digit	O	O
.	O	O

so	O	O
54	B-Code_Block	B-Value
will	O	O
give	O	O
me	O	O
two	O	O
integers	O	B-Data_Type
,	O	O
int	B-Code_Block	B-Code_Block
a	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
5	I-Code_Block	I-Code_Block
,	O	O
and	O	O
int	B-Code_Block	B-Code_Block
b	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
4	I-Code_Block	I-Code_Block
.	O	O

Try	O	O

Basic	O	O
stuff	O	O

For	O	O
iharob	O	B-User_Name
satisfaction	O	O

Try	O	O
this	O	O

notice	O	O
that	O	O
this	O	O
works	O	O
for	O	O
any	O	O
number	O	O
of	O	O
digits	O	O
.	O	O

Context	O	O

In	O	O
a	O	O
C#	O	B-Language
Windows	O	B-Class
Forms	O	I-Class
application	O	O
for	O	O
Win7	O	B-Operating_System
we	O	O
host	O	O
an	O	O
ActiveX	O	B-Class
control	O	I-Class
.	O	O

So	O	O
far	O	O
,	O	O
so	O	O
good	O	O
.	O	O

Need	O	O
:	O	O
prevent	O	O
ActiveX	O	B-Library
to	O	O
receive	O	O
mouse	O	B-Device
events	O	O

Actually	O	O
,	O	O
the	O	O
ActiveX	O	B-Library
has	O	O
too	O	O
much	O	O
functionality	O	O
.	O	O

It	O	O
is	O	O
not	O	O
very	O	O
customizable	O	O
to	O	O
turn	O	O
off	O	O
features	O	O
we	O	O
do	O	O
n't	O	O
need	O	O
.	O	O

It	O	O
would	O	O
be	O	O
nice	O	O
if	O	O
we	O	O
just	O	O
prevented	O	O
it	O	O
from	O	O
receiving	O	O
mouse	O	B-Device
events	O	O
.	O	O

The	O	O
ideal	O	O
would	O	O
be	O	O
to	O	O
just	O	O
treat	O	O
events	O	O
as	O	O
if	O	O
the	O	O
ActiveX	O	B-Library
was	O	O
not	O	O
there	O	O
,	O	O
that	O	O
is	O	O
the	O	O
mouse	O	B-Device
clicks	O	O
go	O	O
right	O	O
through	O	O
to	O	O
the	O	O
underlying	O	O
(	O	O
or	O	O
containing	O	O
)	O	O
Control	O	B-Class
.	O	O

But	O	O
if	O	O
we	O	O
just	O	O
prevent	O	O
the	O	O
ActiveX	O	B-Library
from	O	O
getting	O	O
events	O	O
that	O	O
would	O	O
be	O	O
okay	O	O
with	O	O
us	O	O
.	O	O

Search	O	O
before	O	O
you	O	O
ask	O	O

Some	O	O
answers	O	O
to	O	O
previous	O	O
questions	O	O
mention	O	O
to	O	O
protected	B-Code_Block	B-Code_Block
override	I-Code_Block	I-Code_Block
void	I-Code_Block	I-Code_Block
WndProc	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
ref	I-Code_Block	I-Code_Block
Message	I-Code_Block	I-Code_Block
m	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
,	O	O
e.g	O	O
.	O	O
c#	O	B-Language
-	O	O
Pass-through	O	O
mouse	O	B-Device
events	O	O
to	O	O
parent	O	O
control	O	O
-	O	O
Stack	O	B-Website
Overflow	O	I-Website

Other	O	O
mentions	O	O
to	O	O
implement	O	O
IMessageFilters	O	B-Class
,	O	O
e.g	O	O
.	O	O
:	O	O

winforms	O	B-Class
-	O	O
C#	O	B-Language
Application-Wide	O	O
Left	O	O
Mouse	O	B-Device
Click	O	O
Event	O	O
-	O	O
Stack	O	B-Website
Overflow	O	I-Website

winforms	O	B-Class
-	O	O
Handling	O	O
a	O	O
click	O	O
event	O	O
anywhere	O	O
inside	O	O
a	O	O
panel	O	O
in	O	O
C#	O	B-Language
-	O	O
Stack	O	B-Website
Overflow	O	I-Website

winforms	O	B-Class
-	O	O
C#	O	B-Language
Application-Wide	O	O
Left	O	O
Mouse	O	B-Device
Click	O	O
Event	O	O
-	O	O
Stack	O	B-Website
Overflow	O	I-Website

Capturing	O	O
Mouse	O	B-Device
Events	O	O
from	O	O
every	O	O
component	O	O
on	O	O
C#	O	B-Language
WInForm	O	B-Library
-	O	O
Stack	O	B-Website
Overflow	O	I-Website

Experiment	O	O
:	O	O
ActiveX	O	B-Library
still	O	O
gets	O	O
events	O	O

I	O	O
have	O	O
fairly	O	O
extensively	O	O
tried	O	O
both	O	O
override	B-Code_Block	O
WndProc	I-Code_Block	B-Class
and	O	O
IMessageFilter	B-Code_Block	B-Class
ways	O	O
,	O	O
filtering	O	O
(	O	O
opt-in	O	O
and	O	O
opt-out	O	O
)	O	O
a	O	O
number	O	O
of	O	O
events	O	O
.	O	O

In	O	O
some	O	O
cases	O	O
I	O	O
can	O	O
prevent	O	O
events	O	O
to	O	O
reach	O	O
native	O	O
C#	O	B-Language
controls	O	O
,	O	O
but	O	O
the	O	O
ActiveX	O	B-Library
still	O	O
got	O	O
its	O	O
share	O	O
.	O	O

Filtering	O	O
too	O	O
much	O	O
,	O	O
prevented	O	O
controls	O	O
and	O	O
ActiveX	O	B-Library
to	O	O
paint	O	O
,	O	O
or	O	O
even	O	O
application	O	O
to	O	O
draw	O	O
properly	O	O
or	O	O
caused	O	O
crash	O	O
on	O	O
exit	O	O
.	O	O

This	O	O
can	O	O
be	O	O
averted	O	O
by	O	O
selecting	O	O
opt-in	O	O
or	O	O
opt-out	O	O
options	O	O
carefully	O	O
.	O	O

Is	O	O
there	O	O
another	O	O
way	O	O
?	O	O

Is	O	O
there	O	O
another	O	O
way	O	O
from	O	O
C#	O	B-Language
/.NET	O	B-Library
to	O	O
host	O	O
an	O	O
ActiveX	O	B-Class
Control	O	I-Class
while	O	O
preventing	O	O
it	O	O
from	O	O
getting	O	O
mouse	O	B-Device
events	O	O
?	O	O

Perhaps	O	O
at	O	O
application	O	O
start	O	O
time	O	O
?	O	O

Try	O	O
to	O	O
do	O	O
a	O	O
EnableWindow(hand,FALSE)	O	B-Function
on	O	O
the	O	O
uppermost	O	O
hwnd	O	B-Class
of	O	O
the	O	O
ActiveX	O	B-Library
Control	O	I-Library
after	O	O
has	O	O
been	O	O
created	O	O
.	O	O

See	O	O
Using	O	O
Window	O	O
Handle	O	O
to	O	O
disable	O	O
Mouse	O	B-Device
clicks	O	O
using	O	O
c#	O	B-Language
how	O	O
to	O	O
do	O	O
this	O	O
in	O	O
c#	O	B-Language
.	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
google	O	B-Library
maps	O	I-Library
api	O	I-Library
,	O	O
i	O	O
have	O	O
some	O	O
POLYGONS	O	B-Class
and	O	O
POLYINES	O	B-Class
.	O	O

i	O	O
'm	O	O
trying	O	O
to	O	O
show	O	O
both	O	O
(	O	O
polygon	O	B-Class
and	O	O
polyline	O	B-Class
)	O	O
in	O	O
google	O	B-Library
maps	O	I-Library
api	O	I-Library
.	O	O

I	O	O
'm	O	O
tried	O	O
something	O	O
,	O	O
but	O	O
not	O	O
able	O	O
not	O	O
show	O	O
both	O	O
polygons	O	B-Variable
and	O	O
polyline	O	B-Variable
,	O	O
only	O	O
polygons	O	B-Variable
is	O	O
showing	O	O
,	O	O
how	O	O
to	O	O
show	O	O
both	O	O
Polygons	O	B-Class
and	O	O
polylines.I	O	B-Class
have	O	O
a	O	O
Json	O	B-File_Type
that	O	O
json	O	B-File_Type
have	O	O
source	O	O
polygon	O	B-Class
or	O	O
polyline	O	B-Class
,	O	O
that	O	O
source	O	O
based	O	O
i	O	O
'm	O	O
showing	O	O
here.sorry	O	O
for	O	O
my	O	O
english	O	O
.	O	O

Hopefully	O	O
someone	O	O
can	O	O
kindly	O	O
let	O	O
me	O	O
know	O	O
where	O	O
I	O	O
am	O	O
failing	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
.Demo	O	O

A	O	O
google.maps.PolylineOptions	O	B-Class
object	O	O
does	O	O
n't	O	O
have	O	O
a	O	O
paths	B-Code_Block	O
property	O	O
,	O	O
that	O	O
is	O	O
only	O	O
valid	O	O
for	O	O
a	O	O
google.maps.PolygonOptions	O	B-Class
object	O	O
.	O	O

Change	O	O
:	O	O

To	O	O
:	O	O

proof	O	O
of	O	O
concept	O	O
fiddle	O	B-Application

code	O	O
snippet	O	O
:	O	O

Page	O	B-User_Interface_Element
is	O	O
refreshed	O	O
every	O	O
5	O	O
seconds	O	O
.	O	O

Images	O	B-User_Interface_Element
that	O	O
received	O	O
from	O	O
.php	B-Code_Block	B-File_Type
file	O	O
are	O	O
appended	O	O
to	O	O
some	O	O
<li	B-Code_Block	B-HTML_XML_Tag
>	I-Code_Block	I-HTML_XML_Tag
elements	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
:	O	O

Everything	O	O
works	O	O
as	O	O
expected	O	O
.	O	O

But	O	O
when	O	O
reloadImages()	B-Code_Block	B-Function
is	O	O
called	O	O
,	O	O
Images	O	B-User_Interface_Element
are	O	O
flickering	O	O
during	O	O
the	O	O
reload	O	O
.	O	O

How	O	O
to	O	O
prevent	O	O
this	O	O
flicker	O	O
?	O	O

Preload	O	O
Images	O	B-User_Interface_Element
?	O	O

Help	O	O
me	O	O
address	O	O
the	O	O
flickering	O	O
.	O	O

you	O	O
could	O	O
use	O	O
the	O	O
folowing	O	O
mechanism	O	O
of	O	O
preload	O	O
and	O	O
callback	O	O
(	O	O
is'n	O	O
tested	O	O
actually	O	O
)	O	O

You	O	O
can	O	O
use	O	O
https://github.com/desandro/imagesloaded	O	O
plugin	O	O
to	O	O
load	O	O
images	O	B-User_Interface_Element
into	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
div	O	B-HTML_XML_Tag
and	O	O
then	O	O
move	O	O
them	O	O
to	O	O
your	O	O
destionation	O	O
on	O	O
callback	O	B-Function
.	O	O

I	O	O
am	O	O
using	O	O
Ghost	O	B-Application
Blogging	O	I-Application
Platform	O	I-Application
,	O	O
and	O	O
when	O	O
I	O	O
insert	O	O
a	O	O
image	O	B-User_Interface_Element
it	O	O
automatically	O	O
wraps	O	O
a	O	O
image	O	B-User_Interface_Element
in	O	O
a	O	O
p	O	B-HTML_XML_Tag
tag	O	O
.	O	O

I	O	O
have	O	O
a	O	O
max-width	O	B-Variable
setup	O	O
for	O	O
the	O	O
container	O	O
wrapping	O	O
the	O	O
p	O	B-HTML_XML_Tag
tag	O	O
and	O	O
the	O	O
img	O	B-HTML_XML_Tag
.	O	O

I	O	O
want	O	O
the	O	O
img	O	B-HTML_XML_Tag
to	O	O
be	O	O
larger	O	O
than	O	O
the	O	O
container	O	O
.	O	O

I	O	O
can	O	O
set	O	O
a	O	O
width	O	B-Variable
for	O	O
the	O	O
img	O	B-HTML_XML_Tag
which	O	O
is	O	O
larger	O	O
with	O	O
width	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
62rem	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
However	O	O
it	O	O
no	O	O
longer	O	O
is	O	O
responsive	O	O
vs	O	O
width	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
100%	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

I	O	O
want	O	O
the	O	O
img	O	B-HTML_XML_Tag
to	O	O
resize	O	O
as	O	O
I	O	O
resize	O	O
the	O	O
browser	O	B-Application
,	O	O
I	O	O
was	O	O
hoping	O	O
to	O	O
do	O	O
it	O	O
without	O	O
media	O	O
queries	O	O
but	O	O
if	O	O
necessary	O	O
I	O	O
will	O	O
do	O	O
so	O	O
.	O	O

I	O	O
am	O	O
already	O	O
changing	O	O
the	O	O
size	O	O
of	O	O
all	O	O
the	O	O
p	O	B-HTML_XML_Tag
tags	O	O
so	O	O
that	O	O
my	O	O
blockquote	O	B-HTML_XML_Tag
is	O	O
the	O	O
size	O	O
of	O	O
the	O	O
container	O	O
section	O	O
,	O	O
and	O	O
I	O	O
want	O	O
my	O	O
image	O	B-User_Interface_Element
to	O	O
do	O	O
the	O	O
same	O	O
,	O	O
but	O	O
it	O	O
is	O	O
just	O	O
the	O	O
size	O	O
of	O	O
the	O	O
p	O	B-HTML_XML_Tag
tag	O	O
.	O	O

My	O	O
main	O	O
concern	O	O
is	O	O
making	O	O
the	O	O
img	O	B-HTML_XML_Tag
responsive	O	O
and	O	O
larger	O	O
,	O	O
I	O	O
can	O	O
already	O	O
make	O	O
it	O	O
larger	O	O
on	O	O
its	O	O
own	O	O
with	O	O
a	O	O
specified	O	O
width	O	B-Variable
,	O	O
but	O	O
it	O	O
no	O	O
longer	O	O
stays	O	O
responsive	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

CODE	O	O

HTML	O	B-Language

CSS	O	B-Language

You	O	O
are	O	O
setting	O	O
100%	O	O
width	O	B-Variable
too	O	O
image	O	B-User_Interface_Element
,	O	O
but	O	O
also	O	O
giving	O	O
it	O	O
borders	O	B-User_Interface_Element
.	O	O

This	O	O
causes	O	O
problem	O	O
.	O	O

You	O	O
need	O	O
to	O	O
subtract	O	O
amount	O	O
of	O	O
border	O	B-Variable
from	O	O
image	O	B-User_Interface_Element
.	O	O

Try	O	O
:	O	O

Fiddle	O	B-Application
here	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
think	O	O
you	O	O
should	O	O
have	O	O
a	O	O
div	O	B-HTML_XML_Tag
of	O	O
a	O	O
certain	O	O
size	O	O
and	O	O
and	O	O
then	O	O
an	O	O
element	O	O
within	O	O
that	O	O
which	O	O
then	O	O
breaks	O	O
out	O	O
of	O	O
the	O	O
div	O	B-HTML_XML_Tag
because	O	O
you	O	O
've	O	O
set	O	O
it	O	O
to	O	O
be	O	O
larger	O	O
then	O	O
the	O	O
.container	B-Code_Block	B-Code_Block

First	O	O
thing	O	O
I	O	O
would	O	O
do	O	O
is	O	O
reorganize	O	O
the	O	O
way	O	O
that	O	O
container	O	O
works	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
FIDDLE	O	B-Application
of	O	O
some	O	O
basic	O	O
html	O	B-Language
to	O	O
reference	O	O
.	O	O

The	O	O
second	O	O
thing	O	O
I	O	O
would	O	O
do	O	O
-	O	O
is	O	O
ask	O	O
a	O	O
more	O	O
targeted	O	O
question	O	O
about	O	O
removing	O	O
the	O	O
automatic	O	O
p	O	B-HTML_XML_Tag
tag	O	O
from	O	O
the	O	O
image	O	B-User_Interface_Element
in	O	O
a	O	O
ghost	O	B-Application
forum	O	O
(	O	O
assuming	O	O
they	O	O
exist	O	O
by	O	O
now	O	O
)	O	O
.	O	O

In	O	O
WordPress	O	B-Website
this	O	O
happens	O	O
by	O	O
default	O	O
as	O	O
well	O	O
.	O	O

It	O	O
looks	O	O
something	O	O
like	O	O
this	O	O
with	O	O
a	O	O
function	O	O
running	O	O
a	O	O
regular	O	O
expression	O	O
search	O	O
and	O	O
replace	O	O
.	O	O

I	O	O
bet	O	O
there	O	O
is	O	O
something	O	O
like	O	O
this	O	O
for	O	O
ghost	O	B-Application
,	O	O
or	O	O
there	O	O
will	O	O
be	O	O
really	O	O
really	O	O
soon	O	O
-	O	O
because	O	O
it	O	O
's	O	O
a	O	O
huge	O	O
pain	O	O
-	O	O
and	O	O
almost	O	O
no	O	O
one	O	O
actually	O	O
puts	O	O
images	O	B-User_Interface_Element
inline	O	O
anymore	O	O
.	O	O

And	O	O
if	O	O
they	O	O
did	O	O
,	O	O
they	O	O
would	O	O
want	O	O
to	O	O
control	O	O
when	O	O
this	O	O
happens	O	O
.	O	O

Good	O	O
luck	O	O
!	O	O

I	O	O
hope	O	O
to	O	O
play	O	O
with	O	O
Ghost	O	B-Application
soon	O	O
and	O	O
I	O	O
bet	O	O
this	O	O
will	O	O
be	O	O
the	O	O
first	O	O
problem	O	O
I	O	O
run	O	O
into	O	O
as	O	O
well	O	O
.	O	O

I	O	O
have	O	O
a	O	O
route	O	O
defined	O	O
in	O	O
node/express	O	B-Library
that	O	O
has	O	O
a	O	O
res.render	O	B-Function

On	O	O
rendering	O	O
this	O	O
index	O	O
page	O	B-User_Interface_Element
,	O	O
I	O	O
want	O	O
to	O	O
capture	O	O
this	O	O
req.user	O	B-Variable
as	O	O
a	O	O
$scope	O	B-Class
object	O	O
in	O	O
the	O	O
angular	O	B-Library
controller	O	O
on	O	O
the	O	O
front	O	O
end	O	O
.	O	O

How	O	O
can	O	O
this	O	O
be	O	O
done	O	O
?	O	O

Please	O	O
provide	O	O
code	O	O
snippets	O	O
with	O	O
the	O	O
answer	O	O
.	O	O

To	O	O
accomplish	O	O
this	O	O
,	O	O
you	O	O
first	O	O
need	O	O
to	O	O
add	O	O
a	O	O
line	O	O
in	O	O
JADE	O	B-Library
to	O	O
create	O	O
a	O	O
global	O	B-Data_Type
javascript	O	B-Language
object	O	O
that	O	O
will	O	O
hold	O	O
the	O	O
user	O	B-Variable
value	O	O
,	O	O
i.e	O	O
.	O	O

Now	O	O
in	O	O
your	O	O
controller	O	O
just	O	O
do	O	O
this	O	O

I	O	O
have	O	O
done	O	O
this	O	O
for	O	O
a	O	O
few	O	O
projects	O	O
.	O	O

Aaron	O	B-User_Name

I	O	O
'm	O	O
trying	O	O
to	O	O
set	O	O
up	O	O
a	O	O
delegate	O	O
that	O	O
has	O	O
a	O	O
lineedit	O	B-Variable
with	O	O
suggestions	O	O
that	O	O
are	O	O
read	O	O
from	O	O
a	O	O
model	O	O
.	O	O

So	O	O
,	O	O
I	O	O
tried	O	O
passing	O	O
the	O	O
model	O	O
that	O	O
delegate	O	O
should	O	O
read	O	O
the	O	O
information	O	O
from	O	O
,	O	O
this	O	O
is	O	O
not	O	O
working	O	O
since	O	O
after	O	O
the	O	O
delgate	O	O
is	O	O
constructed	O	O
,	O	O
the	O	O
model	O	O
that	O	O
the	O	O
QCompleter	O	B-Class
is	O	O
looking	O	O
at	O	O
does	O	O
n't	O	O
not	O	O
show	O	O
the	O	O
external	O	O
modifications	O	O
made	O	O
to	O	O
recived_model	O	B-Variable
.	O	O

So	O	O
it	O	O
does	O	O
only	O	O
work	O	O
making	O	O
the	O	O
right	O	O
suggestions	O	O
when	O	O
the	O	O
recived_model	O	B-Variable
has	O	O
n't	O	O
changed	O	O
..	O	O
.	O	O

Considering	O	O
that	O	O
the	O	O
delegates	O	O
is	O	O
being	O	O
used	O	O
to	O	O
modify	O	O
the	O	O
contents	O	O
of	O	O
recived_model	O	B-Variable
.	O	O

I	O	O
think	O	O
there	O	O
should	O	O
be	O	O
a	O	O
way	O	O
to	O	O
access	O	O
the	O	O
data	O	O
of	O	O
the	O	O
column	O	B-Data_Structure
I	O	O
want	O	O
the	O	O
completer	O	O
to	O	O
get	O	O
suggestions	O	O
from	O	O
.	O	O

I	O	O
think	O	O
this	O	O
could	O	O
be	O	O
done	O	O
using	O	O
a	O	O
"	O	O
for	O	B-Code_Block
"	O	O
and	O	O
the	O	O
data	O	O
function	O	O
to	O	O
set	O	O
up	O	O
a	O	O
new	O	O
QStringList	O	B-Class
that	O	O
constains	O	O
only	O	O
the	O	O
information	O	O
from	O	O
the	O	O
column	O	B-Data_Structure
that	O	O
I	O	O
wanted	O	O
the	O	O
completer	O	O
to	O	O
use	O	O
as	O	O
suggestions	O	O
.	O	O

But	O	O
this	O	O
show	O	O
be	O	O
redone	O	O
any	O	O
time	O	O
other	O	O
item	O	O
in	O	O
the	O	O
view	O	O
is	O	O
accessed	O	O
.	O	O

I	O	O
'm	O	O
same	O	O
as	O	O
start	O	O
,	O	O
no	O	O
idea	O	O
how	O	O
to	O	O
achieve	O	O
this	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
..	O	O
.	O	O
Hope	O	O
you	O	O
can	O	O
help	O	O
:	O	O

and	O	O
the	O	O
implementation	O	O
:	O	O

.	O	O

.	O	O

.	O	O

ModelWithoutDuplicatesProxy	O	B-Function

Implementation	O	O
:	O	O

There	O	O
it	O	O
is	O	O
the	O	O
code	O	O
of	O	O
the	O	O
duplicates	O	O
deleter	O	O
.	O	O

From	O	O
reading	O	O
the	O	O
documentation	O	O
,	O	O
you	O	O
can	O	O
dynamically	O	O
theme	O	O
Drupal	O	B-Library
blocks	O	B-Class
and	O	O
nodes	O	B-Class
by	O	O
adding	O	O
template	O	O
files	O	O
:	O	O
"	O	O
page-node-1.tpl	O	B-File_Name
"	O	O
or	O	O
"	O	O
block-modulename-2.tpl	O	B-File_Name
"	O	O
.	O	O

How	O	O
do	O	O
i	O	O
know	O	O
the	O	O
delta	O	B-Variable
value	O	O
(	O	O
in	O	O
this	O	O
case	O	O
1	O	B-Value
or	O	O
2)	O	B-Value
to	O	O
create	O	O
a	O	O
template	O	O
file	O	O
for	O	O
node	O	B-Class
or	O	O
block	O	B-Class
?	O	O

Do	O	O
these	O	O
delta	O	B-Variable
values	O	O
keep	O	O
changing	O	O
?	O	O

What	O	O
assigns	O	O
these	O	O
delta	O	B-Variable
values	O	O
and	O	O
when	O	O
?	O	O

Go	O	O
to	O	O
admin/build/block	O	B-File_Name
,	O	O
then	O	O
move	O	O
cursor	O	B-User_Interface_Element
over	O	O
any	O	O
'	O	O
configure	O	O
'	O	O
link	O	O
in	O	O
the	O	O
block	O	B-Class
list	O	B-Data_Structure
.	O	O

You	O	O
'll	O	O
see	O	O
for	O	O
example	O	O
'	O	O
admin/build/block/configure/views/news	O	B-File_Name
-block_2	O	I-File_Name
'	O	O
path	O	O
.	O	O

It	O	O
means	O	O
this	O	O
block	O	B-Class
provided	O	O
by	O	O
'	O	O
Views	O	B-Class
'	O	O
module	O	O
and	O	O
has	O	O
delta	O	B-Variable
'	O	O
news-block_2	O	B-File_Name
'	O	O

No	O	O

Modules	O	O

I	O	O
'm	O	O
having	O	O
an	O	O
issue	O	O
with	O	O
Gulp	O	B-Library
I	O	O
just	O	O
simply	O	O
want	O	O
to	O	O
process	O	O
sass	O	B-File_Type
files	O	O
,	O	O
optimize	O	O
images	O	B-User_Interface_Element
and	O	O
watch	O	O
changes	O	O
on	O	O
said	O	O
sass	O	B-File_Type
files	O	O
.	O	O

For	O	O
some	O	O
reason	O	O
it	O	O
does	O	O
run	O	O
the	O	O
sass	O	B-Function
and	O	O
imagemin	O	B-Function
tasks	O	O
correctly	O	O
but	O	O
then	O	O
it	O	O
tries	O	O
to	O	O
watch	O	O
and	O	O
after	O	O
several	O	O
seconds	O	O
it	O	O
jus	O	O
exits	O	O
gulp	O	B-Variable
and	O	O
I	O	O
'm	O	O
back	O	O
a	O	O
command	O	O
line	O	O
like	O	O
if	O	O
I	O	O
manually	O	O
stopped	O	O
the	O	O
tasks	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
get	O	O
any	O	O
errors	O	O
or	O	O
warnings	O	O
it	O	O
just	O	O
ends	O	O
.	O	O

This	O	O
is	O	O
the	O	O
gulpfile.js	O	B-File_Name
:	O	O

On	O	O
command	O	O
line	O	O
this	O	O
is	O	O
all	O	O
I	O	O
see	O	O
:	O	O

Then	O	O
after	O	O
approx	O	O
.	O	O

20secs	O	O
it	O	O
exits	O	O
gulp	O	B-Variable
,	O	O
I	O	O
tried	O	O
looking	O	O
everywhere	O	O
and	O	O
use	O	O
other	O	O
post	O	O
fixes	O	O
and	O	O
no	O	O
luck	O	O
.	O	O

I	O	O
have	O	O
website	O	O
in	O	O
asp.net	O	B-Library
and	O	O
have	O	O
its	O	O
mobile	O	B-Device
version	O	O
as	O	O
well	O	O
.	O	O

I	O	O
want	O	O
that	O	O
if	O	O
user	O	O
types	O	O
this	O	O
in	O	O
mobile	O	B-Device
:	O	O

http://example.com/ViewVacancy.aspx?ID=8674	O	O

then	O	O
he	O	O
is	O	O
directed	O	O
to	O	O
:	O	O

http://m.example.com/vacancy.aspx?name=8674	O	O

I	O	O
have	O	O
written	O	O
following	O	O
code	O	O
:	O	O

It	O	O
is	O	O
working	O	O
when	O	O
user	O	O
types	O	O

http://example.com	O	O

so	O	O
user	O	O
is	O	O
redirected	O	O
to	O	O
:	O	O

http://m.example.com	O	O

but	O	O
when	O	O
user	O	O
types	O	O
:	O	O

http://example.com/viewvacancy.aspx?id=8674	O	O

It	O	O
is	O	O
not	O	O
redirected	O	O
to	O	O
:	O	O

http://m.example.com/vacancy.aspx?name=8674	O	O

Please	O	O
suggest	O	O
solution	O	O
to	O	O
it	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
String.Replace()	O	B-Function

I	O	O
'm	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
hang	O	O
of	O	O
using	O	O
ajax	O	B-Function
loads	O	I-Function
(	O	O
mostly	O	O
via	O	O
jquery	O	B-Library
)	O	O
to	O	O
make	O	O
my	O	O
site	O	O
more	O	O
efficient	O	O
.	O	O

Wondering	O	O
if	O	O
anyone	O	O
can	O	O
provide	O	O
any	O	O
suggestions	O	O
re	O	O
"	O	O
best	O	O
practices	O	O
"	O	O
for	O	O
using	O	O
ajax	O	B-Function
?	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
simplify	O	O
a	O	O
script	O	O
for	O	O
multiple	O	O
ajax	O	B-Function
calls	O	O
?	O	O

For	O	O
example	O	O
,	O	O
I	O	O
currently	O	O
have	O	O
the	O	O
working	O	O
script	O	O
:	O	O

The	O	O
script	O	O
just	O	O
gets	O	O
longer	O	O
and	O	O
longer	O	O
with	O	O
each	O	O
additional	O	O
function	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
simpler	O	O
,	O	O
more	O	O
efficient	O	O
way	O	O
to	O	O
write	O	O
this	O	O
script	O	O
to	O	O
cover	O	O
multiple	O	O
load	O	B-Function
scripts	O	O
?	O	O

Also	O	O
,	O	O
should	O	O
I	O	O
be	O	O
using	O	O
ajax	O	B-Function
loads	O	I-Function
to	O	O
replace	O	O
the	O	O
majority	O	O
of	O	O
actual	O	O
links	O	O
?	O	O

Assuming	O	O
that	O	O
the	O	O
id	B-Code_Block	B-Variable
matches	O	O
the	O	O
file	O	O
name	O	O
the	O	O
script	O	O
can	O	O
be	O	O
simplified	O	O
to	O	O
:	O	O

This	O	O
script	O	O
simply	O	O
specifies	O	O
each	O	O
id	B-Code_Block	B-Variable
in	O	O
a	O	O
single	O	O
selector	O	O
that	O	O
separates	O	O
each	O	O
id	B-Code_Block	B-Variable
with	O	O
a	O	O
comma	O	O
.	O	O

This	O	O
will	O	O
calls	O	O
the	O	O
click	B-Code_Block	B-Function
function	O	O
to	O	O
be	O	O
fired	O	O
for	O	O
each	O	O
element	O	O
.	O	O

With	O	O
the	O	O
anonymous	O	O
function	O	O
attached	O	O
to	O	O
the	O	O
click	O	B-Function
event	O	O
,	O	O
the	O	O
id	B-Code_Block	B-Variable
of	O	O
each	O	O
element	O	O
is	O	O
obtained	O	O
and	O	O
concatenated	O	O
to	O	O
create	O	O
the	O	O
file	O	O
name	O	O
which	O	O
is	O	O
then	O	O
passed	O	O
to	O	O
the	O	O
load	B-Code_Block	B-Function
function	O	O
.	O	O

If	O	O
the	O	O
id	B-Code_Block	B-Variable
does	O	O
n't	O	O
always	O	O
match	O	O
the	O	O
element	B-Code_Block	O
you	O	O
could	O	O
use	O	O
the	O	O
following	O	O
approach	O	O
.	O	O

Here	O	O
is	O	O
a	O	O
suggestion	O	O
,	O	O
since	O	O
the	O	O
code	O	O
you	O	O
posted	O	O
seems	O	O
to	O	O
have	O	O
a	O	O
pattern	O	O
between	O	O
the	O	O
id	B-Code_Block	B-Variable
and	O	O
the	O	O
filename	B-Code_Block	O
:	O	O

This	O	O
suggestion	O	O
uses	O	O
.on()	O	B-Function
and	O	O
you	O	O
just	O	O
need	O	O
to	O	O
add	O	O
a	O	O
commonParentElementHere	B-Code_Block	B-Function
,	O	O
a	O	O
id	O	B-Variable
or	O	O
a	O	O
class	O	O
of	O	O
the	O	O
common	O	O
parent	O	O
of	O	O
those	O	O
elements	O	O
.	O	O

Another	O	O
option	O	O
is	O	O
to	O	O
use	O	O
a	O	O
class	O	O
on	O	O
all	O	O
elements	O	O
that	O	O
should	O	O
be	O	O
clickable	O	O
,	O	O
and	O	O
then	O	O
use	O	O
the	O	O
code	O	O
passing	O	O
the	O	O
id	O	B-Variable
to	O	O
the	O	O
html	O	B-File_Type
file	O	O
name	O	O
,	O	O
like	O	O
:	O	O

Question	O	O
I	O	O
have	O	O
is	O	O
I	O	O
am	O	O
trying	O	O
to	O	O
update	O	O
my	O	O
gui	O	O
with	O	O
a	O	O
timer	O	B-Class
(	O	O
this	O	O
works	O	O
and	O	O
changes	O	O
the	O	O
image	O	B-User_Interface_Element
for	O	O
mypic	O	B-Variable
but	O	O
,	O	O
it	O	O
will	O	O
not	O	O
update	O	O
mytext	O	B-Variable
label	O	O
for	O	O
some	O	O
weird	O	O
reason	O	O
any	O	O
help	O	O
would	O	O
be	O	O
very	O	O
much	O	O
appreciated	O	O
!	O	O

*	O	O
I	O	O
should	O	O
add	O	O
that	O	O
mytext	O	B-Variable
is	O	O
n't	O	O
showing	O	O
up	O	O
at	O	O
all	O	O
on	O	O
my	O	O
gui	O	O
since	O	O
introducing	O	O
the	O	O
timer	O	B-Class
...	O	O
but	O	O
mypic	O	B-Variable
does	O	O
???	O	O
?	O	O

UPDATE	O	O
with	O	O
suggestions	O	O
still	O	O
is	O	O
n't	O	O
working.	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
working	O	O
solution	O	O
which	O	O
you	O	O
can	O	O
tailor	O	O
to	O	O
your	O	O
use	O	O
.	O	O

The	O	O
cause	O	O
seemed	O	O
to	O	O
be	O	O
the	O	O
way	O	O
you	O	O
had	O	O
tried	O	O
to	O	O
display	O	O
the	O	O
Components	O	B-Class
rather	O	O
than	O	O
the	O	O
code	O	O
in	O	O
your	O	O
action	O	B-Class
listener	O	I-Class
.	O	O

Your	O	O
approach	O	O
was	O	O
just	O	O
replacing	O	O
myText	B-Code_Block	B-Variable
with	O	O
myPic	B-Code_Block	B-Variable
when	O	O
you	O	O
initially	O	O
set	O	O
up	O	O
the	O	O
JFrame	B-Code_Block	B-Class
.	O	O

Instead	O	O
you	O	O
need	O	O
to	O	O
use	O	O
a	O	O
layout	O	B-Class
manager	O	I-Class
.	O	O

The	O	O
example	O	O
I	O	O
've	O	O
given	O	O
is	O	O
with	O	O
overlaying	O	O
using	O	O
JLayeredPane	B-Code_Block	B-Class
.	O	O

You	O	O
may	O	O
wish	O	O
to	O	O
use	O	O
a	O	O
layout	O	B-Class
manager	O	I-Class
instead	O	O
if	O	O
this	O	O
is	O	O
not	O	O
the	O	O
desired	O	O
outcome	O	O
,	O	O
see	O	O
the	O	O
Oracle	O	B-Organization
Tutorial	O	O
on	O	O
using	O	O
layout	O	B-Class
managers	O	I-Class
.	O	O

Widget	O	B-Class
class	O	O

Weather	O	B-Class
class	O	O
for	O	O
demonstration	O	O
purposes	O	O

I	O	O
have	O	O
a	O	O
project	O	O
in	O	O
React	O	B-Library
where	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
structure	O	O
my	O	O
database	O	O
using	O	O
Firebase	O	B-Application
.	O	O

I	O	O
want	O	O
to	O	O
create	O	O
a	O	O
reference	O	O
for	O	O
a	O	O
child	O	O
node	O	O
,	O	O
but	O	O
I	O	O
keep	O	O
getting	O	O
'	O	O
TypeError	O	B-Output_Block
:	O	I-Output_Block
messagesRef.child	O	I-Output_Block
is	O	I-Output_Block
not	O	I-Output_Block
a	O	I-Output_Block
function	O	I-Output_Block
'	O	O
and	O	O
the	O	O
code	O	O
errors	O	O
out	O	O
on	O	O
line	O	O
3	O	O
.	O	O

Below	O	O
is	O	O
my	O	O
code	O	O
for	O	O
the	O	O
references	O	O
:	O	O

Am	O	O
I	O	O
making	O	O
these	O	O
references	O	O
correctly	O	O
?	O	O

I	O	O
followed	O	O
the	O	O
Firebase	O	B-Application
documentation	O	O
to	O	O
a	O	O
tee	O	O
and	O	O
I	O	O
ca	O	O
n't	O	O
find	O	O
a	O	O
solution	O	O
.	O	O

I	O	O
believe	O	O
the	O	O
issue	O	O
is	O	O
that	O	O

var	B-Code_Block	B-Code_Block
messagesRef	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
firebase.database().ref('messages').limitToLast(30)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

is	O	O
of	O	O
type	O	O

firebase.database.Query	B-Code_Block	B-Class

and	O	O
not	O	O
of	O	O
type	O	O

firebase.database.Reference	B-Code_Block	B-Class

The	O	O
method	O	O
child	B-Code_Block	B-Function
can	O	O
only	O	O
be	O	O
called	O	O
on	O	O
Reference	B-Code_Block	B-Class
type	O	O
objects	O	O
,	O	O
so	O	O
instead	O	O
you	O	O
could	O	O
use	O	O

var	B-Code_Block	B-Code_Block
messagesRef	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
firebase.database().ref('messages/users').limitToLast(30)	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

This	O	O
is	O	O
assuming	O	O
your	O	O
database	O	O
structure	O	O
is	O	O
like	O	O
this	O	O
:	O	O

How	O	O
can	O	O
i	O	O
use	O	O
"	O	O
Plain	O	O
C	O	B-Language
"	O	O
to	O	O
program	O	O
Arduino	O	B-Device
without	O	O
using	O	O
the	O	O
"	O	O
Processing	O	B-Language
programming	O	O
language	O	O
"	O	O
?	O	O

I	O	O
want	O	O
to	O	O
improve	O	O
my	O	O
C	O	B-Language
programming	O	O
skills	O	O
by	O	O
using	O	O
it	O	O
with	O	O
Arduino	O	B-Application
for	O	O
embedded	O	O
systems	O	O
.	O	O

I	O	O
have	O	O
very	O	O
limited	O	O
ability	O	O
to	O	O
code	O	O
in	O	O
C++	O	B-Language
,	O	O
and	O	O
I	O	O
would	O	O
love	O	O
to	O	O
write	O	O
my	O	O
own	O	O
Arduino	O	B-Language
Library	O	O
using	O	O
"	O	O
C	O	B-Language
"	O	O
,	O	O
to	O	O
avoid	O	O
using	O	O
classes	O	O
and	O	O
OOP	O	O
.	O	O

Processing	O	B-Language
looks	O	O
like	O	O
Java	O	B-Language
to	O	O
me	O	O
,	O	O
and	O	O
i	O	O
want	O	O
to	O	O
use	O	O
"	O	O
C	O	B-Language
pointers	O	B-Data_Type
"	O	O
to	O	O
gain	O	O
more	O	O
practical	O	O
knowledge	O	O
.	O	O

The	O	O
thing	O	O
is	O	O
that	O	O
Arduino	O	B-Device
does	O	O
n't	O	O
use	O	O
Processing	O	B-Language
.	O	O

Processing	O	B-Language
is	O	O
(	O	O
was	O	O
?	O	O
)	O	O
a	O	O
separate	O	O
programming	O	O
language	O	O
which	O	O
was	O	O
developed	O	O
independently	O	O
for	O	O
a	O	O
different	O	O
purpose	O	O
.	O	O

The	O	O
language	O	O
resembles	O	O
C	O	B-Language
and	O	O
C++	O	B-Language
very	O	O
closely	O	O
,	O	O
so	O	O
closely	O	O
that	O	O
it	O	O
's	O	O
almost	O	O
identical	O	O
.	O	O

Programming	O	O
the	O	O
Arduino	O	B-Device
,	O	O
however	O	O
,	O	O
is	O	O
accomplished	O	O
using	O	O
a	O	O
(	O	O
n	O	O
unfortunate	O	O
)	O	O
mixture	O	O
of	O	O
C	O	B-Language
and	O	O
C++	O	B-Language
,	O	O
with	O	O
a	O	O
set	O	O
of	O	O
custom	O	O
libraries	O	O
(	O	O
which	O	O
are	O	O
similar	O	O
in	O	O
style	O	O
to	O	O
that	O	O
of	O	O
Processing	O	B-Language
)	O	O
.	O	O

These	O	O
libraries	O	O
are	O	O
written	O	O
in	O	O
C	O	B-Language
and	O	O
C++	O	B-Language
themselves	O	O
,	O	O
and	O	O
they	O	O
are	O	O
only	O	O
good	O	O
for	O	O
making	O	O
one	O	O
's	O	O
code	O	O
more	O	O
portable	O	O
across	O	O
different	O	O
MCU	O	B-Device
types	O	O
.	O	O

Using	O	O
them	O	O
is	O	O
not	O	O
strictly	O	O
necessary	O	O
for	O	O
programming	O	O
the	O	O
AVR	O	B-Device
MCU	O	I-Device
.	O	O

In	O	O
fact	O	O
,	O	O
the	O	O
libraries	O	O
have	O	O
quite	O	O
a	O	O
few	O	O
drawbacks	O	O
(	O	O
the	O	O
code	O	O
is	O	O
big	O	O
,	O	O
inherently	O	O
slow	O	O
and	O	O
ugly	O	O
,	O	O
amongst	O	O
others	O	O
)	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
use	O	O
plain	O	O
ol	O	O
'	O	O
C	O	B-Language
for	O	O
programming	O	O
the	O	O
Arduino	O	B-Device
,	O	O
then	O	O
just	O	O
go	O	O
ahead	O	O
and	O	O
do	O	O
so	O	O
.	O	O

Grab	O	O
the	O	O
reference	O	O
PDF	O	B-File_Type
from	O	O
Atmel	O	B-Website
's	O	O
site	O	O
for	O	O
your	O	O
particular	O	O
MCU	O	B-Device
,	O	O
learn	O	O
the	O	O
special	O	O
registers	O	B-Device
(	O	O
I/O	O	O
,	O	O
timers	O	O
,	O	O
etc	O	O
.	O	O
)	O	O
,	O	O
install	O	O
the	O	O
avr-gcc	O	B-Application
toolchain	O	I-Application
on	O	O
your	O	O
computer	O	O
,	O	O
and	O	O
use	O	O
avr-gcc	B-Code_Block	B-Code_Block
,	I-Code_Block	O
avr-objcopy	I-Code_Block	B-Code_Block
and	O	O
avrdude	B-Code_Block	B-Code_Block
to	O	O
compile	O	O
and	O	O
install	O	O
your	O	O
programs	O	O
.	O	O

There	O	O
also	O	O
happens	O	O
to	O	O
be	O	O
a	O	O
C-only	O	B-Language
library	O	O
which	O	O
follows	O	O
this	O	O
kind	O	O
of	O	O
convention	O	O
.	O	O

It	O	O
does	O	O
n't	O	O
provide	O	O
as	O	O
much	O	O
abstraction	O	O
as	O	O
the	O	O
stock	O	O
Arduino	O	B-Language
library	O	O
has	O	O
,	O	O
because	O	O
it	O	O
's	O	O
lower-level	O	O
,	O	O
but	O	O
you	O	O
can	O	O
have	O	O
a	O	O
look	O	O
at	O	O
it	O	O
and	O	O
see	O	O
how	O	O
one	O	O
can	O	O
accomplish	O	O
basic	O	O
algorithms	O	O
without	O	O
the	O	O
default	O	O
libraries	O	O
.	O	O

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

I	O	O
am	O	O
unable	O	O
to	O	O
get	O	O
the	O	O
Uid	O	B-Variable
because	O	O
of	O	O
different	O	O
namespace	O	O
probably	O	O
,	O	O
same	O	O
goes	O	O
for	O	O
av:Canvas.Top	O	B-Variable
.	O	O

How	O	O
to	O	O
get	O	O
these	O	O
attributes	O	O
?	O	O

-TIA	O	B-User_Name

First	O	O
,	O	O
add	O	O
all	O	O
the	O	O
namespaces	B-Code_Block	B-Code_Block

Now	O	O
,	O	O
if	O	O
you	O	O
want	O	O
to	O	O
check	O	O
for	O	O
attributes	O	O
and	O	O
nodes	O	O
regardless	O	O
of	O	O
the	O	O
namespace	O	B-Code_Block
you	O	O
could	O	O
simply	O	O
visit	O	O
each	O	O
node	O	O
and	O	O
then	O	O
loop	O	O
through	O	O
its	O	O
attributes	O	O
to	O	O
find	O	O
out	O	O
the	O	O
value	O	O
.	O	O

As	O	O
long	O	O
as	O	O
you	O	O
add	O	O
the	O	O
path	O	O
you	O	O
want	O	O
to	O	O
visit	O	O
in	O	O
SelectSingleNode	B-Code_Block	B-Function
and	O	O
your	O	O
namespaces	B-Code_Block	B-Code_Block
are	O	O
declared	O	O
you	O	O
should	O	O
be	O	O
able	O	O
to	O	O
run	O	O
through	O	O
any	O	O
node	O	O
and	O	O
get	O	O
any	O	O
value	O	O
you	O	O
want	O	O
.	O	O

Try	O	O
this	O	O

I	O	O
have	O	O
Saved	O	O
a	O	O
link	O	O
in	O	O
database	O	O
and	O	O
then	O	O
i	O	O
need	O	O
to	O	O
view	O	O
that	O	O
link	O	O
in	O	O
view	O	O
in	O	O
asp.net	O	B-Library
mvc	O	B-Algorithm
for	O	O
example	O	O
https://www.google.com	B-Code_Block	O

Just	O	O
print	O	O
the	O	O
URL	O	O
:	O	O

The	O	O
@Url	B-Code_Block	B-Code_Block
helpers	O	O
are	O	O
for	O	O
links	O	O
pointing	O	O
into	O	O
the	O	O
application	O	O
.	O	O

Simple	O	O
question	O	O
:	O	O
where	O	O
do	O	O
the	O	O
tableView	B-Code_Block	B-Variable
and	O	O
section	B-Code_Block	B-Variable
arguments	O	O
get	O	O
passed	O	O
from	O	O
?	O	O

The	O	O
actual	O	O
code	O	O
in	O	O
the	O	O
method	O	O
return	B-Code_Block	B-Code_Block
[	I-Code_Block	I-Code_Block
self.listData	I-Code_Block	I-Code_Block
count	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
;	B-Code_Block	B-Code_Block
does	O	O
n't	O	O
even	O	O
mention	O	O
them	O	O
.	O	O

Here	O	O
's	O	O
my	O	O
interface	O	O
code	O	O
:	O	O

And	O	O
this	O	O
is	O	O
all	O	O
the	O	O
implementation	O	O
code	O	O
:	O	O

I	O	O
just	O	O
want	O	O
to	O	O
know	O	O
how	O	O
does	O	O
the	O	O
method	O	O
(	B-Code_Block	B-Code_Block
NSInteger	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
tableView	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
UITableView	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
numberOfRowsInSection	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
receive	O	O
those	O	O
arguments	O	O
?	O	O

Of	O	O
course	O	O
this	O	O
happens	O	O
everywhere	O	O
;	O	O
I	O	O
just	O	O
want	O	O
to	O	O
understand	O	O
it	O	O
.	O	O

The	O	O
Simple_TableViewController	O	B-Class
class	O	O
is	O	O
likely	O	O
meant	O	O
to	O	O
manage	O	O
a	O	O
single	O	O
table	O	B-User_Interface_Element
with	O	O
a	O	O
single	O	O
section	O	O
.	O	O

Given	O	O
that	O	O
,	O	O
the	O	O
tableView	O	B-Variable
and	O	O
section	O	B-Variable
parameters	O	O
are	O	O
n't	O	O
important	O	O
because	O	O
they	O	O
can	O	O
only	O	O
be	O	O
one	O	O
thing	O	O
:	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
the	O	O
table	O	B-User_Interface_Element
and	O	O
0	O	B-Value
,	O	O
respectively	O	O
.	O	O

Your	O	O
view	O	O
controller	O	O
class	O	O
is	O	O
adding	O	O
support	O	O
for	O	O
these	O	O
callback	O	O
methods	O	O
through	O	O
UITableViewDelegate	O	B-Class
and	O	O
UITableViewDataSource	O	B-Variable
.	O	O

You	O	O
are	O	O
adding	O	O
this	O	O
support	O	O
in	O	O
your	O	O
.h	O	B-File_Type
file	O	O
through	O	O
<UITableViewDelegate,	B-Code_Block	B-Code_Block
UITableViewDataSource>	I-Code_Block	I-Code_Block
.	O	O

These	O	O
classes	O	O
are	O	O
built	O	O
in	O	O
to	O	O
the	O	O
Cocoa	O	B-Library
Touch	O	I-Library
framework	O	O
and	O	O
you	O	O
are	O	O
just	O	O
using	O	O
them	O	O
.	O	O

When	O	O
the	O	O
table	O	B-User_Interface_Element
is	O	O
(	O	O
re	O	O
)	O	O
loaded	O	O
,	O	O
this	O	O
callback	O	O
methods	O	O
are	O	O
called	O	O
if	O	O
you	O	O
have	O	O
defined	O	O
them	O	O
(	O	O
some	O	O
are	O	O
required	O	O
,	O	O
others	O	O
are	O	O
optional	O	O
)	O	O
.	O	O

For	O	O
example	O	O
.	O	O

I	O	O
have	O	O
multiple	O	O
classes	O	O
as	O	O
:	O	O
Inventory	O	B-Class
,	O	O
Product	O	B-Class
,	O	O
Sales	O	B-Class
etc	O	O
.	O	O

Now	O	O
my	O	O
requirement	O	O
is	O	O
to	O	O
put	O	O
all	O	O
above	O	O
types	O	O
in	O	O
a	O	O
single	O	O
map	O	B-Class
container	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
create	O	O
multiple	O	O
maps	O	B-Class
for	O	O
putting	O	O
above	O	O
each	O	O
object	O	O
values	O	O
.	O	O

If	O	O
all	O	O
your	O	O
classes	O	O
can	O	O
implement	O	O
the	O	O
same	O	O
interface	O	O
,	O	O
then	O	O
you	O	O
can	O	O
store	O	O
them	O	O
all	O	O
in	O	O
the	O	O
same	O	O
container	O	O
.	O	O

Otherwise	O	O
you	O	O
would	O	O
have	O	O
to	O	O
use	O	O
Object	O	B-Class
..	O	O
.	O	O

More	O	O
generally	O	O
-	O	O
why	O	O
do	O	O
you	O	O
not	O	O
want	O	O
to	O	O
use	O	O
multiple	O	O
maps	O	B-Class
?	O	O

Set	O	O
the	O	O
value	O	O
type	O	O
as	O	O
Object	B-Code_Block	B-Class
:	O	O

Or	O	O
,	O	O
if	O	O
Inventory	B-Code_Block	B-Class
,	O	O
Product	B-Code_Block	B-Class
,	O	O
Sales	B-Code_Block	B-Class
,	O	O
and	O	O
whatever	O	O
else	O	O
is	O	O
going	O	O
into	O	O
the	O	O
map	O	B-Class
share	O	O
a	O	O
superclass	O	O
or	O	O
implement	O	O
the	O	O
same	O	O
interface	O	O
,	O	O
then	O	O
set	O	O
the	O	O
value	O	O
type	O	O
as	O	O
that	O	O
:	O	O

I	O	O
am	O	O
using	O	O
a	O	O
SKTextureAtlas	B-Code_Block	B-Class
to	O	O
animate	O	O
a	O	O
SKSpriteNode	B-Code_Block	B-Class
.	O	O

The	O	O
animation	O	O
works	O	O
,	O	O
but	O	O
it	O	O
looks	O	O
weird	O	O
because	O	O
for	O	O
some	O	O
reason	O	O
the	O	O
sprite	O	O
's	O	O
height	O	O
is	O	O
changing	O	O
several	O	O
times	O	O
in	O	O
the	O	O
animation	O	O
.	O	O

This	O	O
also	O	O
causes	O	O
the	O	O
y	O	B-Variable
position	O	O
to	O	O
change	O	O
as	O	O
well	O	O
.	O	O

Everything	O	O
else	O	O
remains	O	O
the	O	O
same	O	O
except	O	O
for	O	O
the	O	O
height	O	O
and	O	O
the	O	O
y	O	B-Variable
.	O	O

The	O	O
only	O	O
thing	O	O
I	O	O
can	O	O
think	O	O
of	O	O
is	O	O
there	O	O
are	O	O
different	O	O
amounts	O	O
of	O	O
transparent	O	O
pixels	O	O
within	O	O
each	O	O
frame	O	O
.	O	O

Each	O	O
image	O	O
is	O	O
the	O	O
same	O	O
size	O	O
though	O	O
.	O	O

Even	O	O
when	O	O
I	O	O
use	O	O
SKAction.animateWithTextures(atlasFrames,timePerFrame:0.1,resize:true,restore:false)	B-Code_Block	B-Code_Block
,	O	O
with	O	O
resize	O	B-Variable
set	O	O
to	O	O
true	O	B-Value
and	O	O
false	O	B-Value
,	O	O
the	O	O
problem	O	O
persists	O	O
.	O	O

I	O	O
heard	O	O
about	O	O
this	O	O
issue	O	O
with	O	O
textures	O	B-Variable
.	O	O

I	O	O
recommend	O	O
you	O	O
to	O	O
make	O	O
all	O	O
textures	O	B-Variable
of	O	O
same	O	O
size	O	O
and	O	O
add	O	O
background	O	O
for	O	O
all	O	O
images	O	B-User_Interface_Element
of	O	O
1%	O	B-Value
alpha	O	B-Variable
(	O	O
it	O	O
wont	O	O
be	O	O
visible	O	O
but	O	O
it	O	O
will	O	O
be	O	O
where	O	O
)	O	O
.	O	O

This	O	O
is	O	O
happening	O	O
because	O	O
invisible	O	O
background	O	O
is	O	O
cut	O	O
.	O	O

You	O	O
can	O	O
watch	O	O
this	O	O
guide	O	O
for	O	O
more	O	O
information	O	O
:	O	O
https://www.youtube.com/watch?v=TDwSR3e6nN0	O	O

I	O	O
am	O	O
using	O	O
below	O	O
code	O	O
snippet	O	O
to	O	O
create	O	O
a	O	O
singleton	O	O
instance	O	O
of	O	O
Connection	O	B-Class
object	O	O
for	O	O
a	O	O
web	O	O
application	O	O
which	O	O
will	O	O
be	O	O
used	O	O
by	O	O
multiple	O	O
users	O	O
.	O	O

This	O	O
class	O	O
will	O	O
return	O	O
same	O	O
instance	O	O
of	O	O
connection	O	B-Class
until	O	O
and	O	O
unless	O	O
connection	O	B-Class
is	O	O
closed	O	O
or	O	O
null	O	B-Value
.	O	O

I	O	O
suppose	O	O
same	O	O
connection	O	B-Class
will	O	O
be	O	O
shared	O	O
by	O	O
all	O	O
users	O	O
on	O	O
different	O	O
machine	O	O
as	O	O
it	O	O
is	O	O
static	O	O
one	O	O
.	O	O

If	O	O
one	O	O
user	O	O
is	O	O
setting	O	O
auto	O	O
commit	O	O
to	O	O
off	O	O
to	O	O
commit	O	O
couple	O	O
of	O	O
statements	O	O
as	O	O
transaction	O	O
,	O	O
will	O	O
this	O	O
create	O	O
problems	O	O
for	O	O
other	O	O
users	O	O
by	O	O
restricting	O	O
their	O	O
connection	O	O
to	O	O
disable	O	O
autocommit	O	O
as	O	O
well	O	O
or	O	O
by	O	O
commiting	O	O
their	O	O
transaction	O	O
in	O	O
mid	O	O
way	O	O
if	O	O
one	O	O
user	O	O
has	O	O
used	O	O
con.commit()	O	B-Function
?	O	O

Yes	O	O
,	O	O
it	O	O
will	O	O
cause	O	O
problems	O	O
.	O	O

They	O	O
are	O	O
sharing	O	O
the	O	O
same	O	O
instance	O	O
,	O	O
so	O	O
this	O	O
statement	O	O
is	O	O
wrong	O	O

It	O	O
should	O	O
read	O	O

Since	O	O
all	O	O
the	O	O
users	O	O
(	O	O
threads	O	O
)	O	O
are	O	O
using	O	O
the	O	O
same	O	O
instance	O	O
,	O	O
changes	O	O
made	O	O
to	O	O
it	O	O
by	O	O
one	O	O
user	O	O
will	O	O
affect	O	O
the	O	O
others	O	O
.	O	O

As	O	O
Shivam	O	B-User_Name
Kalra	O	I-User_Name
says	O	O
,	O	O
connection	O	B-Class
pools	O	O
are	O	O
a	O	O
better	O	O
tool	O	O
.	O	O

Most	O	O
probably	O	O
your	O	O
web	O	O
server	O	O
will	O	O
already	O	O
provide	O	O
them	O	O
,	O	O
and	O	O
if	O	O
not	O	O
there	O	O
are	O	O
third	O	O
party	O	O
libraries	O	O
.	O	O

Yes	O	O
.	O	O

Yes	O	O
.	O	O

Database	O	O
connections	O	O
are	O	O
not	O	O
safe	O	O
for	O	O
use	O	O
by	O	O
multiple	O	O
threads	O	O
,	O	O
and	O	O
should	O	O
not	O	O
in	O	O
general	O	O
even	O	O
be	O	O
member	O	O
fields	O	O
let	O	O
alone	O	O
singletons	O	O
.	O	O

They	O	O
should	O	O
be	O	O
method-local	O	O
variables	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
economize	O	O
on	O	O
creating	O	O
&	O	O
destroying	O	O
them	O	O
,	O	O
you	O	O
must	O	O
use	O	O
a	O	O
connection	O	B-Class
pool	O	O
.	O	O

I	O	O
'm	O	O
writing	O	O
an	O	O
integration	O	O
test	O	O
where	O	O
I	O	O
will	O	O
be	O	O
inserting	O	O
a	O	O
number	O	O
of	O	O
objects	O	O
into	O	O
a	O	O
database	O	O
and	O	O
then	O	O
checking	O	O
to	O	O
make	O	O
sure	O	O
whether	O	O
my	O	O
method	O	O
retrieves	O	O
those	O	O
objects	O	O
.	O	O

My	O	O
connection	O	O
to	O	O
the	O	O
database	O	O
is	O	O
through	O	O
NHibernate	O	B-Library
...	O	O
and	O	O
my	O	O
usual	O	O
method	O	O
of	O	O
creating	O	O
such	O	O
a	O	O
test	O	O
would	O	O
be	O	O
to	O	O
do	O	O
the	O	O
following	O	O
:	O	O

However	O	O
,	O	O
I	O	O
've	O	O
recently	O	O
found	O	O
out	O	O
about	O	O
TransactionScope	O	B-Class
which	O	O
apparently	O	O
can	O	O
be	O	O
used	O	O
for	O	O
this	O	O
very	O	O
purpose	O	O
..	O	O
.	O	O

Some	O	O
example	O	O
code	O	O
I	O	O
've	O	O
found	O	O
is	O	O
as	O	O
follows	O	O
:	O	O

I	O	O
believe	O	O
that	O	O
if	O	O
I	O	O
do	O	O
n't	O	O
include	O	O
the	O	O
line	O	O
txScope.Complete()	B-Code_Block	B-Function
that	O	O
the	O	O
data	O	O
inserted	O	O
will	O	O
be	O	O
rolled	O	O
back	O	O
.	O	O

But	O	O
unfortunately	O	O
I	O	O
do	O	O
n't	O	O
understand	O	O
how	O	O
that	O	O
is	O	O
possible.	O	O
.	O	O
how	O	O
does	O	O
the	O	O
txScope	B-Code_Block	B-Variable
object	O	O
keep	O	O
a	O	O
track	O	O
of	O	O
the	O	O
deptAdapter	B-Code_Block	B-Variable
and	O	O
empAdapter	B-Code_Block	B-Variable
objects	O	O
and	O	O
their	O	O
transactions	O	O
on	O	O
the	O	O
database	O	O
.	O	O

I	O	O
feel	O	O
like	O	O
I	O	O
'm	O	O
missing	O	O
a	O	O
bit	O	O
of	O	O
information	O	O
here	O	O
..	O	O
am	O	O
I	O	O
really	O	O
able	O	O
to	O	O
replace	O	O
my	O	O
BeginTransaction()	B-Code_Block	B-Function
and	O	O
RollbackTransaction()	B-Code_Block	B-Function
calls	O	O
by	O	O
surrounding	O	O
my	O	O
code	O	O
using	O	O
TransactionScope	B-Code_Block	B-Class
?	O	O

If	O	O
not	O	O
,	O	O
how	O	O
then	O	O
does	O	O
TransactionScope	B-Code_Block	B-Class
work	O	O
to	O	O
roll	O	O
back	O	O
transactions	O	O
?	O	O

Essentially	O	O
TransactionScope	O	B-Class
does	O	O
n't	O	O
track	O	O
your	O	O
Adapter	O	B-Class
's	O	O
,	O	O
what	O	O
it	O	O
does	O	O
is	O	O
it	O	O
tracks	O	O
database	O	O
connections	O	O
.	O	O

When	O	O
you	O	O
open	O	O
a	O	O
DB	O	O
connection	O	O
the	O	O
connections	O	O
will	O	O
looks	O	O
if	O	O
there	O	O
is	O	O
an	O	O
ambient	O	O
transaction	O	O
(	O	O
Transaction	O	B-Class
Scope	O	I-Class
)	O	O
and	O	O
if	O	O
so	O	O
enlist	O	O
with	O	O
it	O	O
.	O	O

Caution	O	O
if	O	O
there	O	O
are	O	O
more	O	O
the	O	O
one	O	O
connection	O	O
to	O	O
the	O	O
same	O	O
SQL	O	B-Application
server	O	I-Application
this	O	O
will	O	O
escalate	O	O
to	O	O
a	O	O
Distribtued	O	O
Transaction	O	O
.	O	O

What	O	O
happens	O	O
since	O	O
you	O	O
're	O	O
using	O	O
a	O	O
using	O	O
block	O	O
you	O	O
are	O	O
ensuring	O	O
dispose	O	B-Function
will	O	O
be	O	O
called	O	O
even	O	O
if	O	O
an	O	O
exception	O	B-Class
occurs	O	O
.	O	O

So	O	O
if	O	O
dispose	O	B-Function
is	O	O
called	O	O
before	O	O
txScope.Complete()	O	B-Function
the	O	O
TransactionScope	O	B-Class
will	O	O
tell	O	O
the	O	O
connections	O	O
to	O	O
rollback	O	O
their	O	O
transactions	O	O
(	O	O
or	O	O
the	O	O
DTC	O	O
)	O	O
.	O	O

The	O	O
TransactionScope	B-Code_Block	B-Class
class	O	O
works	O	O
with	O	O
the	O	O
Transaction	B-Code_Block	B-Class
class	O	O
,	O	O
which	O	O
is	O	O
thread-specific	O	O
.	O	O

When	O	O
the	O	O
TransactionScope	B-Code_Block	B-Class
is	O	O
created	O	O
,	O	O
it	O	O
checks	O	O
to	O	O
see	O	O
if	O	O
there	O	O
is	O	O
a	O	O
Transaction	B-Code_Block	B-Class
for	O	O
the	O	O
thread	O	O
;	O	O
if	O	O
one	O	O
exists	O	O
then	O	O
it	O	O
uses	O	O
that	O	O
,	O	O
otherwise	O	O
,	O	O
it	O	O
creates	O	O
a	O	O
new	O	O
one	O	O
and	O	O
pushes	O	O
it	O	O
onto	O	O
the	O	O
stack	O	B-Data_Structure
.	O	O

If	O	O
it	O	O
uses	O	O
an	O	O
existing	O	O
one	O	O
,	O	O
then	O	O
it	O	O
just	O	O
increments	O	O
a	O	O
counter	O	O
for	O	O
releases	O	O
(	O	O
since	O	O
you	O	O
have	O	O
to	O	O
call	O	O
Dispose	B-Code_Block	B-Function
on	O	O
it	O	O
)	O	O
.	O	O

On	O	O
the	O	O
last	O	O
release	O	O
,	O	O
if	O	O
the	O	O
Transaction	B-Code_Block	B-Class
was	O	O
not	O	O
comitted	O	O
,	O	O
it	O	O
rolls	O	O
back	O	O
all	O	O
the	O	O
work	O	O
.	O	O

As	O	O
for	O	O
why	O	O
classes	O	O
seem	O	O
to	O	O
magically	O	O
know	O	O
about	O	O
transactions	O	O
,	O	O
that	O	O
is	O	O
left	O	O
as	O	O
an	O	O
implementation	O	O
detail	O	O
for	O	O
those	O	O
classes	O	O
that	O	O
wish	O	O
to	O	O
work	O	O
with	O	O
this	O	O
model	O	O
.	O	O

When	O	O
you	O	O
create	O	O
your	O	O
deptAdapter	B-Code_Block	B-Variable
and	O	O
emptAdapter	B-Code_Block	B-Variable
instances	O	O
,	O	O
they	O	O
check	O	O
to	O	O
see	O	O
if	O	O
there	O	O
is	O	O
a	O	O
current	O	O
transaction	O	O
on	O	O
the	O	O
thread	O	O
(	O	O
the	O	O
static	O	O
Current	B-Code_Block	B-Class
property	O	O
on	O	O
the	O	O
Transaction	B-Code_Block	B-Class
class	O	O
)	O	O
.	O	O

If	O	O
there	O	O
is	O	O
,	O	O
then	O	O
it	O	O
registers	O	O
itself	O	O
with	O	O
the	O	O
Transaction	B-Code_Block	B-Class
,	O	O
to	O	O
take	O	O
part	O	O
in	O	O
the	O	O
commit/rollback	O	O
sequence	O	O
(	O	O
which	O	O
Transaction	B-Code_Block	B-Class
controls	O	O
,	O	O
and	O	O
might	O	O
propogate	O	O
to	O	O
varying	O	O
transaction	O	O
coordinators	O	O
,	O	O
such	O	O
as	O	O
kernel	O	B-Application
,	O	O
distributed	O	O
,	O	O
etc	O	O
.	O	O
)	O	O
.	O	O

I	O	O
am	O	O
creating	O	O
an	O	O
XML	O	B-File_Type
file	O	O
from	O	O
scratch	O	O
using	O	O
PHP	O	B-Language
's	O	O
SimpleXML	O	B-Class
Object	O	O
.	O	O

But	O	O
I	O	O
am	O	O
getting	O	O
this	O	O
error	O	O
when	O	O
validating	O	O
the	O	O
document	O	O
:	O	O
'	O	B-Output_Block
Can	O	I-Output_Block
not	O	I-Output_Block
find	O	I-Output_Block
declaration	O	I-Output_Block
of	O	I-Output_Block
element	O	I-Output_Block
"	O	I-Output_Block
example	O	I-Output_Block
"	O	I-Output_Block
.	O	I-Output_Block
'	O	I-Output_Block

Here	O	O
is	O	O
the	O	O
code	O	O
that	O	O
is	O	O
creating	O	O
the	O	O
XML	O	B-File_Type
document	O	O
:	O	O

The	O	O
XML	O	B-File_Type
that	O	O
is	O	O
produced	O	O
is	O	O
this	O	O
:	O	O

Any	O	O
help	O	O
would	O	O
be	O	O
appreciated	O	O
!	O	O

Thanks	O	O

An	O	O
XML	O	B-File_Type
file	O	O
needs	O	O
something	O	O
to	O	O
validate	O	O
it	O	O
against	O	O
,	O	O
a	O	O
Document	O	O
Type	O	O
Definition	O	O
(	O	O
DTD	O	O
)	O	O
or	O	O
an	O	O
XML	O	B-Language
Schema	O	I-Language
.	O	O

You	O	O
're	O	O
not	O	O
providing	O	O
any	O	O
,	O	O
so	O	O
validation	O	O
(	O	O
i.e	O	O
.	O	O
,	O	O
checking	O	O
if	O	O
the	O	O
structure/content	O	O
of	O	O
the	O	O
XML	O	B-File_Type
document	O	O
conforms	O	O
to	O	O
the	O	O
rules	O	O
set	O	O
forth	O	O
in	O	O
the	O	O
DTD/Schema	O	O
)	O	O
is	O	O
impossible	O	O
.	O	O

Or	O	O
did	O	O
you	O	O
just	O	O
wish	O	O
to	O	O
check	O	O
for	O	O
well-formedness	O	O
(	O	O
i.e	O	O
.	O	O
,	O	O
checking	O	O
that	O	O
all	O	O
tags	O	O
are	O	O
closed	O	O
properly	O	O
,	O	O
that	O	O
there	O	O
are	O	O
no	O	O
illegal	O	O
characters	O	O
anywhere	O	O
etc	O	O
.	O	O
)	O	O
?	O	O

In	O	O
order	O	O
to	O	O
validate	O	O
an	O	O
XML	O	B-File_Type
document	O	O
,	O	O
you	O	O
need	O	O
a	O	O
DTD	O	B-File_Type
(	O	O
or	O	O
XML	O	B-File_Type
Schema	O	I-File_Type
)	O	O
which	O	O
describes	O	O
how	O	O
a	O	O
valid	O	O
document	O	O
looks	O	O
like	O	O
.	O	O

You	O	O
need	O	O
write	O	O
a	O	O
DTD	O	B-File_Type
example.dtd	B-Code_Block	B-File_Name
for	O	O
your	O	O
XML	O	B-File_Type
application	O	O
,	O	O
and	O	O
either	O	O
give	O	O
it	O	O
to	O	O
the	O	O
validator	O	O
or	O	O
include	O	O
it	O	O
in	O	O
your	O	O
XML	O	B-File_Type
document	O	O
,	O	O
by	O	O
prefixing	O	O
it	O	O
with	O	O

Since	O	O
SimpleXML	O	B-Class
does	O	O
not	O	O
support	O	O
doctypes	O	B-HTML_XML_Tag
,	O	O
you	O	O
must	O	O
either	O	O
manually	O	O
prefix	O	O
the	O	O
above	O	O
line	O	O
or	O	O
use	O	O
php	O	B-Language
's	O	O
DOM	O	B-Library
extension	O	O
.	O	O

Fortunately	O	O
,	O	O
you	O	O
can	O	O
import	O	O
the	O	O
SimpleXML	O	B-Class
fragment	O	O
to	O	O
DOM	O	B-Library
with	O	O
dom_import_simplexml	B-Code_Block	B-Code_Block
.	O	O

Say	O	O
I	O	O
have	O	O
a	O	O
Class	O	O
:	O	O

And	O	O
I	O	O
want	O	O
other	O	O
objects	O	O
to	O	O
inherit	O	O
variables	O	O
&	O	O
functions	O	O
from	O	O
it	O	O
.	O	O

Then	O	O
instantiate	O	O
my	O	O
objects	O	O
:	O	O

What	O	O
's	O	O
the	O	O
proper	O	O
function	O	O
to	O	O
include	O	O
Foo	B-Code_Block	B-Function
in	O	O
Bar	B-Code_Block	B-Function
and	O	O
Baz	B-Code_Block	B-Function
?	O	O

I	O	O
already	O	O
did	O	O
Bar.prototype	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
new	I-Code_Block	I-Code_Block
Foo()	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
but	O	O
it	O	O
seems	O	O
to	O	O
fail	O	O
on	O	O
our	O	O
beloved	O	O
IE	O	B-Application
(	O	O
<	O	O
9	O	B-Version
)	O	O
.	O	O

have	O	O
a	O	O
look	O	O
to	O	O
Classy	O	B-Library
or	O	O
,	O	O
if	O	O
you	O	O
like	O	O
Ruby	O	B-Language
and	O	O
want	O	O
a	O	O
more	O	O
complete	O	O
solution	O	O
to	O	O
JS.Class	O	B-Language
.	O	O

Those	O	O
libraries	O	O
helps	O	O
you	O	O
with	O	O
object	O	O
orientation	O	O
in	O	O
javascript	O	B-Language
ad	O	O
hide	O	O
prototype	O	O
to	O	O
the	O	O
developer	O	O
.	O	O

Hope	O	O
this	O	O
helps	O	O

If	O	O
you	O	O
attach	O	O
all	O	O
the	O	O
properties	O	O
to	O	O
the	O	O
prototype	O	O
(	O	O
which	O	O
is	O	O
preferable	O	O
,	O	O
at	O	O
least	O	O
for	O	O
methods	O	O
)	O	O
,	O	O

then	O	O
assigning	O	O
the	O	O
parent	O	O
's	O	O
prototype	O	O
to	O	O
the	O	O
child	O	O
's	O	O
prototype	O	O
is	O	O
sufficient	O	O
:	O	O

Here	O	O
we	O	O
used	O	O
an	O	O
intermediate	O	O
constructor	O	O
function	O	O
to	O	O
"	O	O
decouple	O	O
"	O	O
the	O	O
two	O	O
prototypes	O	O
.	O	O

Otherwise	O	O
if	O	O
you	O	O
'd	O	O
change	O	O
one	O	O
,	O	O
you	O	O
'd	O	O
change	O	O
the	O	O
other	O	O
one	O	O
too	O	O
(	O	O
as	O	O
they	O	O
reference	O	O
the	O	O
same	O	O
object	O	O
)	O	O
.	O	O

This	O	O
way	O	O
is	O	O
actually	O	O
pretty	O	O
popular	O	O
and	O	O
used	O	O
by	O	O
a	O	O
couple	O	O
of	O	O
libraries	O	O
.	O	O

If	O	O
not	O	O
,	O	O
you	O	O
have	O	O
to	O	O
call	O	O
the	O	O
parent	O	O
's	O	O
constructor	O	O
function	O	O
inside	O	O
the	O	O
child	O	O
's	O	O
constructor	O	O
function	O	O
:	O	O

This	O	O
is	O	O
something	O	O
you	O	O
always	O	O
should	O	O
do	O	O
,	O	O
to	O	O
assign	O	O
the	O	O
properties	O	O
set	O	O
up	O	O
in	O	O
the	O	O
constructor	O	O
function	O	O
to	O	O
the	O	O
current	O	O
object	O	O
.	O	O

An	O	O
additional	O	O
remark	O	O
to	O	O
your	O	O
way	O	O
:	O	O

this	O	O
should	O	O
work	O	O
(	O	O
also	O	O
in	O	O
IE	O	O
actually	O	O
)	O	O
,	O	O
but	O	O
it	O	O
has	O	O
two	O	O
major	O	O
flaws	O	O
:	O	O

All	O	O
the	O	O
instance	O	O
properties	O	O
set	O	O
up	O	O
in	O	O
Foo	B-Code_Block	B-Code_Block
will	O	O
become	O	O
properties	O	O
shared	O	O
by	O	O
all	O	O
Bar	B-Code_Block	B-Code_Block
instances	O	O
.	O	O

What	O	O
if	O	O
Foo	B-Code_Block	B-Code_Block
expects	O	O
some	O	O
arguments	O	O
that	O	O
are	O	O
only	O	O
available	O	O
when	O	O
you	O	O
create	O	O
a	O	O
Bar	B-Code_Block	B-Code_Block
instance	O	O
?	O	O

Whenever	O	O
I	O	O
try	O	O
to	O	O
open	O	O
Eclipse	O	B-Application
with	O	O
a	O	O
new	O	O
workspace	O	O
,	O	O
it	O	O
turn	O	O
out	O	O
give	O	O
empty	O	O
dialog	O	B-User_Interface_Element
box	O	I-User_Interface_Element
with	O	O
no	O	O
message	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
limit	O	O
the	O	O
bandwidth	O	O
in	O	O
NSURLSession	O	B-Class
?	O	O

I	O	O
'm	O	O
making	O	O
file-sync-client	O	B-Application
for	O	O
macOS	O	B-Operating_System
like	O	O
Dropbox/GoogleDrive/pCloud	B-Code_Block	B-Application
and	O	O
they	O	O
all	O	O
have	O	O
bandwidth	O	O
limiting	O	O
options	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
how	O	O
to	O	O
configure	O	O
NSURLSession	O	B-Class
to	O	O
respect	O	O
bandwidth	O	O
limiting	O	O
.	O	O

Unless	O	O
Apple	O	B-Organization
has	O	O
added	O	O
something	O	O
very	O	O
recently	O	O
,	O	O
NSURLSession	O	B-Class
provides	O	O
no	O	O
facilities	O	O
for	O	O
bandwidth	O	O
limiting	O	O
.	O	O

The	O	O
only	O	O
ways	O	O
I	O	O
'm	O	O
aware	O	O
of	O	O
to	O	O
do	O	O
that	O	O
are	O	O
:	O	O

Use	O	O
lower-level	O	O
APIs	O	B-Library
that	O	O
allow	O	O
you	O	O
to	O	O
provide	O	O
your	O	O
own	O	O
sockets	O	O
and	O	O
then	O	O
throttle	O	O
the	O	O
data	O	O
rate	O	O
at	O	O
the	O	O
TCP	O	O
socket	O	O
level	O	O
.	O	O

Provide	O	O
an	O	O
in-app	O	O
web	O	O
proxy	O	O
and	O	O
use	O	O
it	O	O
for	O	O
all	O	O
outgoing	O	O
requests	O	O
.	O	O

Configure	O	O
the	O	O
proxy	O	O
to	O	O
limit	O	O
the	O	O
bandwidth	O	O
of	O	O
all	O	O
requests	O	O
that	O	O
go	O	O
through	O	O
it	O	O
.	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
Android	O	B-Operating_System
and	O	O
MVP	O	B-Algorithm
in-general	O	O
,	O	O
and	O	O
I	O	O
've	O	O
been	O	O
doing	O	O
iOS	O	B-Operating_System
programming	O	O
for	O	O
the	O	O
last	O	O
1.5	O	O
years	O	O
,	O	O
so	O	O
I	O	O
find	O	O
delegate	O	O
patterns	O	O
easy	O	O
to	O	O
digest	O	O
.	O	O

I	O	O
've	O	O
implemented	O	O
MVP	O	B-Algorithm
in	O	O
such	O	O
a	O	O
way	O	O
that	O	O
the	O	O
view	O	O
conforms	O	O
to	O	O
a	O	O
presenter	O	O
's	O	O
protocol	O	O
,	O	O
which	O	O
lets	O	O
the	O	O
presenter	O	O
disregard	O	O
the	O	O
view	O	O
's	O	O
specific	O	O
type	O	O
,	O	O
but	O	O
lets	O	O
it	O	O
know	O	O
that	O	O
certain	O	O
methods	O	O
are	O	O
a	O	O
given	O	O
and	O	O
thus	O	O
okay	O	O
to	O	O
call	O	O
on	O	O
the	O	O
"	O	O
view	O	O
.	O	O
"	O	O

I	O	O
've	O	O
been	O	O
reading	O	O
various	O	O
MVP	O	B-Algorithm
guides	O	O
,	O	O
and	O	O
all	O	O
of	O	O
the	O	O
Mosby	O	B-Library
tutorials	O	O
,	O	O
and	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
I	O	O
agree	O	O
with	O	O
some	O	O
of	O	O
it	O	O
.	O	O

Is	O	O
the	O	O
pattern	O	O
I	O	O
've	O	O
implemented	O	O
kosher	O	O
?	O	O

I	O	O
'd	O	O
like	O	O
some	O	O
feedback	O	O
so	O	O
I	O	O
do	O	O
n't	O	O
keep	O	O
heading	O	O
in	O	O
a	O	O
bad	O	O
direction	O	O
,	O	O
if	O	O
that	O	O
is	O	O
indeed	O	O
what	O	O
I	O	O
'm	O	O
doing	O	O
..	O	O
.	O	O

For	O	O
example	O	O
,	O	O

Base	O	O
Presenter	O	B-Class
:	O	O

I	O	O
then	O	O
subclass	O	O
this	O	O
into	O	O
the	O	O
following	O	O
:	O	O

PhotoRecyclerPresenter	O	B-Class
:	O	O

And	O	O
it	O	O
communicates	O	O
with	O	O
the	O	O
view	O	O
:	O	O

PhotoRecyclerFragment	O	B-Class
:	O	O

This	O	O
lets	O	O
me	O	O
define	O	O
a	O	O
set	O	O
of	O	O
requirements	O	O
a	O	O
view	O	O
needs	O	O
to	O	O
conform	O	O
to	O	O
in	O	O
order	O	O
to	O	O
utilize	O	O
the	O	O
singleton	O	O
presenter	O	O
,	O	O
while	O	O
keeping	O	O
the	O	O
presenter	O	O
agnostic	O	O
about	O	O
what	O	O
views	O	O
use	O	O
it	O	O
,	O	O
as	O	O
long	O	O
as	O	O
they	O	O
conform	O	O
to	O	O
its	O	O
protocol	O	O
.	O	O

So	O	O
far	O	O
in	O	O
my	O	O
practice	O	O
project	O	O
it	O	O
seems	O	O
to	O	O
work	O	O
fine	O	O
,	O	O
but	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
find	O	O
any	O	O
resources	O	O
where	O	O
what	O	O
I	O	O
'm	O	O
doing	O	O
is	O	O
recommended	O	O
as	O	O
far	O	O
as	O	O
MVP	O	B-Algorithm
goes	O	O
,	O	O
and	O	O
I	O	O
have	O	O
enough	O	O
self-doubt	O	O
that	O	O
I	O	O
figured	O	O
I	O	O
'd	O	O
ask	O	O
my	O	O
first	O	O
StackOverflow	O	B-Website
question	O	O
.	O	O

Can	O	O
anyone	O	O
who	O	O
has	O	O
experience	O	O
with	O	O
MVP	O	B-Algorithm
shed	O	O
some	O	O
light	O	O
on	O	O
this	O	O
?	O	O

Also	O	O
,	O	O
if	O	O
I	O	O
'm	O	O
asking	O	O
in	O	O
the	O	O
wrong	O	O
place	O	O
,	O	O
feel	O	O
free	O	O
to	O	O
point	O	O
me	O	O
to	O	O
the	O	O
correct	O	O
place	O	O
to	O	O
post	O	O
this	O	O
.	O	O

Thanks	O	O
:)	O	O

I	O	O
have	O	O
the	O	O
following	O	O
code	O	O
for	O	O
a	O	O
CUDA	O	B-Application
program	O	O
:	O	O

in	O	O
which	O	O
every	O	O
thread	O	O
will	O	O
print	O	O
its	O	O
threadIdx.x	B-Code_Block	B-Variable
and	O	O
blockIdx.x	B-Code_Block	B-Variable
.	O	O

One	O	O
possible	O	O
output	O	O
of	O	O
this	O	O
program	O	O
is	O	O
this	O	O
:	O	O

Running	O	O
the	O	O
program	O	O
several	O	O
times	O	O
I	O	O
get	O	O
similar	O	O
results	O	O
,	O	O
except	O	O
that	O	O
block	O	O
order	O	O
is	O	O
random	O	O
.	O	O

For	O	O
example	O	O
,	O	O
in	O	O
the	O	O
above	O	O
output	O	O
we	O	O
have	O	O
this	O	O
block	O	O
order	O	O
0	O	B-Value
,	O	O
2	O	B-Value
,	O	O
3	O	B-Value
,	O	O
1	O	B-Value
.	O	O

Running	O	O
the	O	O
problem	O	O
again	O	O
I	O	O
get	O	O
1	O	B-Value
,	O	O
2	O	B-Value
,	O	O
3	O	B-Value
,	O	O
0	O	B-Value
.	O	O

This	O	O
is	O	O
expected	O	O
.	O	O

However	O	O
,	O	O
the	O	O
thread	O	O
order	O	O
in	O	O
every	O	O
block	O	O
is	O	O
always	O	O
0	O	B-Value
,	O	O
1	O	B-Value
,	O	O
2	O	B-Value
,	O	O
3	O	B-Value
.	O	O

Why	O	O
is	O	O
this	O	O
happening	O	O
?	O	O

I	O	O
thought	O	O
it	O	O
would	O	O
be	O	O
random	O	O
too	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
change	O	O
my	O	O
code	O	O
to	O	O
force	O	O
thread	O	O
0	O	B-Value
in	O	O
every	O	O
block	O	O
to	O	O
take	O	O
longer	O	O
to	O	O
execute	O	O
.	O	O

I	O	O
did	O	O
it	O	O
like	O	O
this	O	O
:	O	O

I	O	O
would	O	O
expect	O	O
thread	O	O
order	O	O
to	O	O
be	O	O
1	O	B-Value
,	O	O
2	O	B-Value
,	O	O
3	O	B-Value
,	O	O
0	O	B-Value
.	O	O

However	O	O
,	O	O
I	O	O
got	O	O
a	O	O
similar	O	O
result	O	O
to	O	O
the	O	O
one	O	O
I	O	O
have	O	O
shown	O	O
above	O	O
where	O	O
thread	O	O
order	O	O
was	O	O
always	O	O
0	O	B-Value
,	O	O
1	O	B-Value
,	O	O
2	O	B-Value
,	O	O
3	O	B-Value
.	O	O

Why	O	O
is	O	O
this	O	O
happening	O	O
?	O	O

With	O	O
4	O	O
threads	O	O
per	O	O
block	O	O
you	O	O
are	O	O
only	O	O
launching	O	O
one	O	O
warp	O	O
per	O	O
block	O	O
.	O	O

A	O	O
warp	O	O
is	O	O
the	O	O
unit	O	O
of	O	O
execution	O	O
(	O	O
and	O	O
scheduling	O	O
,	O	O
and	O	O
resource	O	O
assignment	O	O
)	O	O
in	O	O
CUDA	O	B-Application
,	O	O
not	O	O
a	O	O
thread	O	O
.	O	O

Currently	O	O
,	O	O
a	O	O
warp	O	O
consists	O	O
of	O	O
32	O	O
threads	O	O
.	O	O

This	O	O
means	O	O
that	O	O
all	O	O
4	O	O
of	O	O
your	O	O
threads	O	O
per	O	O
block	O	O
(	O	O
since	O	O
there	O	O
is	O	O
no	O	O
conditional	O	O
behavior	O	O
in	O	O
this	O	O
case	O	O
)	O	O
are	O	O
executing	O	O
in	O	O
lockstep	O	O
.	O	O

When	O	O
they	O	O
reach	O	O
the	O	O
printf	B-Code_Block	B-Function
function	O	O
call	O	O
,	O	O
they	O	O
all	O	O
execute	O	O
the	O	O
call	O	O
to	O	O
that	O	O
function	O	O
in	O	O
the	O	O
same	O	O
line	O	O
of	O	O
code	O	O
,	O	O
in	O	O
lockstep	O	O
.	O	O

So	O	O
the	O	O
question	O	O
becomes	O	O
,	O	O
in	O	O
this	O	O
situation	O	O
,	O	O
how	O	O
does	O	O
the	O	O
CUDA	O	B-Application
runtime	O	O
dispatch	O	O
these	O	O
"	O	O
simultaneous	O	O
"	O	O
function	O	O
calls	O	O
?	O	O

The	O	O
answer	O	O
to	O	O
that	O	O
question	O	O
is	O	O
unspecified	O	O
,	O	O
but	O	O
it	O	O
is	O	O
not	O	O
"	O	O
random	O	O
"	O	O
.	O	O

Therefore	O	O
it	O	O
's	O	O
reasonable	O	O
that	O	O
the	O	O
order	O	O
of	O	O
dispatch	O	O
for	O	O
operations	O	O
within	O	O
a	O	O
warp	O	O
does	O	O
not	O	O
change	O	O
from	O	O
run	O	O
to	O	O
run	O	O
.	O	O

If	O	O
you	O	O
launch	O	O
enough	O	O
threads	O	O
to	O	O
create	O	O
multiple	O	O
warps	O	O
per	O	O
block	O	O
,	O	O
and	O	O
probably	O	O
also	O	O
include	O	O
some	O	O
other	O	O
code	O	O
to	O	O
disperse	O	O
and	O	O
or	O	O
"	O	O
randomize	O	O
"	O	O
the	O	O
behavior	O	O
between	O	O
warps	O	O
,	O	O
you	O	O
should	O	O
be	O	O
able	O	O
to	O	O
see	O	O
printf	B-Code_Block	B-Function
operations	O	O
emanating	O	O
from	O	O
separate	O	O
warps	O	O
occurring	O	O
in	O	O
"	O	O
random	O	O
"	O	O
order	O	O
.	O	O

To	O	O
answer	O	O
the	O	O
second	O	O
part	O	O
of	O	O
your	O	O
question	O	O
,	O	O
when	O	O
control	O	O
flow	O	O
diverges	O	O
at	O	O
the	O	O
if	B-Code_Block	B-Code_Block
statement	O	O
,	O	O
the	O	O
threads	O	O
where	O	O
threadIdx.x	B-Code_Block	B-Code_Block
!=	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
simply	O	O
wait	O	O
to	O	O
at	O	O
the	O	O
convergence	O	O
point	O	O
after	O	O
the	O	O
if	B-Code_Block	B-Code_Block
statement	O	O
.	O	O

They	O	O
do	O	O
not	O	O
go	O	O
on	O	O
to	O	O
the	O	O
printf	B-Code_Block	B-Function
statement	O	O
until	O	O
thread	O	O
0	O	O
has	O	O
completed	O	O
the	O	O
if	B-Code_Block	B-Code_Block
block	O	O
.	O	O

I	O	O
am	O	O
using	O	O
Spring	O	B-Library
Boot	O	I-Library
1.4.0.M3	O	B-Version
.	O	O

I	O	O
have	O	O
an	O	O
@Entity	B-Code_Block	B-Class
that	O	O
has	O	O
a	O	O
username	B-Code_Block	B-Variable
which	O	O
should	O	O
be	O	O
unique	O	O
:	O	O

Using	O	O
a	O	O
Spring	O	B-Library
Data	O	O
Repository	O	O
,	O	O
I	O	O
want	O	O
to	O	O
test	O	O
if	O	O
there	O	O
will	O	O
be	O	O
an	O	O
exception	O	B-Class
when	O	O
a	O	O
duplicate	O	O
username	O	B-Variable
is	O	O
used	O	O
.	O	O

This	O	O
test	O	O
works	O	O
:	O	O

However	O	O
,	O	O
when	O	O
adding	O	O
@Transactional	B-Code_Block	B-Class
with	O	O
@Commit	B-Code_Block	B-Class
,	O	O
this	O	O
test	O	O
fails	O	O
:	O	O

But	O	O
looking	O	O
at	O	O
the	O	O
logging	O	O
,	O	O
the	O	O
DataIntegrityViolationException	B-Code_Block	B-Class
is	O	O
being	O	O
thrown	O	O
:	O	O

Why	O	O
does	O	O
the	O	O
test	O	O
fail	O	O
?	O	O

Could	O	O
it	O	O
be	O	O
that	O	O
JUnit	O	B-Library
checks	O	O
if	O	O
the	O	O
exception	O	B-Class
is	O	O
thrown	O	O
before	O	O
Spring	O	B-Library
commits	O	O
the	O	O
transaction	O	O
?	O	O

I	O	O
need	O	O
to	O	O
test	O	O
DataIntegrityViolationException	B-Code_Block	B-Class
in	O	O
MVC	O	B-Algorithm
controller	O	O
test	O	O
(	O	O
@WebAppConfiguration	B-Code_Block	B-Class
)	O	O
and	O	O
do	O	O
@ResponseStatus	B-Code_Block	B-Class
modification	O	O
inside	O	O
application	O	O
by	O	O
@ControllerAdvice	B-Code_Block	B-Class
.So	O	O
yours	O	O
approach	O	O
does	O	O
n't	O	O
suit	O	O
for	O	O
me	O	O
,	O	O
it	O	O
flush	O	O
too	O	O
late	O	O
.	O	O

Unfortunately	O	O
@NotTransactional	B-Code_Block	B-Class
annotation	O	O
was	O	O
excluded	O	O
in	O	O
Spring	O	B-Library
4	O	B-Version
,	O	O
so	O	O
I	O	O
just	O	O
separate	O	O
my	O	O
tests	O	O
for	O	O
@Transactional	B-Code_Block	B-Class
and	O	O
not	O	O
transactional	O	O
.	O	O

See	O	O
also	O	O
http://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/html/testing.html#integration-testing-annotations	O	O
from	O	O

UPDATE	O	O
.	O	O

2	O	O
ways	O	O
solution	O	O
:	O	O

separate	O	O
your	O	O
test	O	O
explicitly	O	O
for	O	O
Transactional	O	O
and	O	O
Non	O	O
transactional	O	O

use	O	O
@Transactional	B-Code_Block	B-Code_Block
(	B-Code_Block	B-Code_Block
propagation	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
Propagation.NEVER	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
where	O	O
transaction	O	O
is	O	O
not	O	O
desirable	O	O

Based	O	O
on	O	O
the	O	O
comments	O	O
by	O	O
M.Deinum	O	B-User_Name
and	O	O
Stephane	O	B-User_Name
Nicoll	O	I-User_Name
,	O	O
this	O	O
is	O	O
the	O	O
working	O	O
version	O	O
:	O	O

Note	O	O
that	O	O
both	O	O
static	O	B-Data_Type
methods	O	O
need	O	O
to	O	O
be	O	O
called	O	O
to	O	O
make	O	O
it	O	O
work	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
know	O	O
how	O	O
I	O	O
could	O	O
import	O	O
the	O	O
JSTL	O	B-Library
core	O	O
library	O	O
directly	O	O
into	O	O
my	O	O
project	O	O
instead	O	O
of	O	O
accessing	O	O
it	O	O
by	O	O
a	O	O
link	O	O
this	O	O
way	O	O
:	O	O

EDIT	O	O
:	O	O

In	O	O
fact	O	O
it	O	O
is	O	O
already	O	O
working	O	O
,	O	O
i	O	O
have	O	O
already	O	O
import	O	O
the	O	O
jstl.jar	O	B-File_Name
file	O	O
in	O	O
my	O	O
eclipse	O	B-Application
project	O	O
.	O	O

I	O	O
can	O	O
use	O	O
in	O	O
my	O	O
jsp	O	B-File_Type
files	O	O
.	O	O

The	O	O
thing	O	O
is	O	O
that	O	O
i	O	O
would	O	O
like	O	O
to	O	O
use	O	O
them	O	O
without	O	O
having	O	O
a	O	O
link	O	O
to	O	O
another	O	O
website	O	O
.	O	O

(	O	O
http://java.sun.com/jsp/jstl/core	O	O
)	O	O

Download	O	O
the	O	O
jar	O	B-File_Type
file	O	O
:	O	O
http://www.java2s.com/Code/Jar/j/Downloadjstljar.htm	O	O

Import	O	O
it	O	O
into	O	O
your	O	O
IDE	O	B-Application
:	O	O

Eclipse	O	B-Application
:	O	O
How	O	O
to	O	O
import	O	O
a	O	O
jar	O	B-File_Type
in	O	O
Eclipse	O	B-Application

NetBeans	O	B-Application
:	O	O
How	O	O
to	O	O
use	O	O
.jar	O	B-File_Type
files	O	O
in	O	O
NetBeans	O	B-Application
?	O	O

Use	O	O
an	O	O
import	O	B-Code_Block
statement	O	O
to	O	O
import	O	O
your	O	O
library	O	O
:	O	O
import	O	B-Code_Block
javax.servlet.jsp.jstl.core.*	O	I-Code_Block
;	O	I-Code_Block

All	O	O
.	O	O

I	O	O
am	O	O
using	O	O
xmpp	O	B-Library
framework	O	O
for	O	O
Facebook	O	B-Website
chat	O	O
implementation	O	O
in	O	O
iOS	O	B-Operating_System
application	O	O
.	O	O

The	O	O
chat	O	O
is	O	O
working	O	O
fine	O	O
with	O	O
iOS	O	B-Operating_System
,	O	O
but	O	O
there	O	O
is	O	O
one	O	O
issue	O	O
with	O	O
this	O	O
.	O	O

When	O	O
online	O	O
and	O	O
offline	O	O
friends	O	O
are	O	O
being	O	O
shown	O	O
,	O	O
always	O	O
presence	O	O
of	O	O
online	O	O
and	O	O
offline	O	O
friend	O	O
is	O	O
called	O	O
.	O	O

In	O	O
this	O	O
process	O	O
I	O	O
'm	O	O
getting	O	O
the	O	O
Blank	O	O
name	O	O
of	O	O
online	O	O
user	O	O
in	O	O
Facebook	O	B-Website
chat	O	O
,	O	O
the	O	O
last	O	O
name	O	O
field	O	O
is	O	O
blank	O	O
.	O	O

Can	O	O
anyone	O	O
tell	O	O
me	O	O
what	O	O
is	O	O
wrong	O	O
with	O	O
my	O	O
config	O	O
..	O	O
.	O	O

I	O	O
've	O	O
been	O	O
at	O	O
this	O	O
for	O	O
a	O	O
bit	O	O
and	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
get	O	O
it	O	O
outputing	O	O
the	O	O
way	O	O
I	O	O
want	O	O
.	O	O

My	O	O
output	O	O
files	O	O
are	O	O
as	O	O
follows	O	O
after	O	O
two	O	O
runs	O	O

log-file_2014.02.20.xml	O	B-File_Name

log-file_2014.02.20.1.xml	O	B-File_Name

Which	O	O
is	O	O
what	O	O
I	O	O
would	O	O
expect	O	O
,	O	O
but	O	O
when	O	O
I	O	O
run	O	O
it	O	O
a	O	O
third	O	O
time	O	O
.	O	O

I	O	O
would	O	O
expect	O	O
to	O	O
see	O	O
log-file_2014.02.20.2.xml	O	B-File_Name
however	O	O
..	O	O
.	O	O
the	O	O
actively	O	O
logging	O	O
file	O	O
replaces	O	O
the	O	O
file	O	O
with	O	O
no	O	O
index	O	O
"	O	O
log-file_2014.02.20.xml	O	B-File_Name
"	O	O
,	O	O
and	O	O
the	O	O
file	O	O
that	O	O
had	O	O
no	O	O
index	O	B-Variable
gets	O	O
moved	O	O
to	O	O
one	O	O
with	O	O
the	O	O
.1	O	B-Value
index	O	B-Variable
and	O	O
the	O	O
one	O	O
that	O	O
had	O	O
the	O	O
.1	O	B-Value
index	O	B-Variable
is	O	O
deleted	O	O
!	O	O

So	O	O
my	O	O
indexes	O	B-Variable
never	O	O
go	O	O
past	O	O
.1	O	B-Value
for	O	O
any	O	O
given	O	O
date	O	O
.	O	O

Did	O	O
ya	O	O
follow	O	O
that	O	O
..	O	O
.	O	O
Any	O	O
help	O	O
would	O	O
be	O	O
grateful	O	O
!	O	O

use	O	O
this	O	O
configration	O	O
..	O	O
.	O	O
Hope	O	O
it	O	O
helps	O	O
..	O	O
.	O	O
:)	O	O

In	O	O
my	O	O
C#	O	B-Language
program	O	O
I	O	O
have	O	O
a	O	O
big	O	O
problem	O	O
:	O	O

I	O	O
add	O	O
an	O	O
SQL	O	B-Application
server	O	I-Application
database	O	O
named	O	O
"	O	B-Value
Behgozin_DB	O	I-Value
"	O	I-Value
to	O	O
my	O	O
project	O	O
.	O	O

I	O	O
do	O	O
the	O	O
following	O	O
steps	O	O
for	O	O
adding	O	O
the	O	O
database	O	O
:	O	O

In	O	O
my	O	O
SQL	O	B-Application
server	O	I-Application
management	O	I-Application
studio	O	I-Application
I	O	O
detach	O	O
my	O	O
database	O	O

In	O	O
my	O	O
visual	O	B-Application
studio	O	I-Application
from	O	O
Data	O	O
menu	O	B-User_Interface_Element
I	O	O
add	O	O
new	O	O
data	O	O
source	O	O

My	O	O
Connection	O	O
String	O	B-Data_Type
is	O	O
:	O	O

Everything	O	O
is	O	O
OK	O	O
but	O	O
when	O	O
I	O	O
insert	O	O
something	O	O
into	O	O
my	O	O
database	O	O
after	O	O
closing	O	O
the	O	O
application	O	O
,	O	O
I	O	O
can	O	O
not	O	O
see	O	O
any	O	O
data	O	O
.	O	O

But	O	O
when	O	O
I	O	O
right	O	O
click	O	O
on	O	O
my	O	O
tables	O	B-Data_Structure
in	O	O
my	O	O
visual	O	B-Application
studio	O	I-Application
server	O	O
explorer	O	O
menu	O	B-User_Interface_Element
and	O	O
choose	O	O
show	O	O
table	O	B-Data_Structure
data	O	O
,	O	O
my	O	O
application	O	O
reads	O	O
the	O	O
whole	O	O
table	O	B-Data_Structure
of	O	O
data	O	O
completely	O	O
!	O	O

Another	O	O
problem	O	O
is	O	O
after	O	O
working	O	O
with	O	O
this	O	O
app	O	O
,	O	O
even	O	O
it	O	O
can	O	O
not	O	O
read	O	O
its	O	O
own	O	O
data	O	O
in	O	O
table	O	B-Data_Structure
.	O	O

Its	O	O
a	O	O
C#	O	B-Language
project	O	O
in	O	O
Visual	O	B-Application
Studio	O	I-Application
2010	O	B-Version
SQL	O	B-Application
Server	O	I-Application
2008	O	B-Version
.	O	O

Your	O	O
database	O	O
file	O	O
has	O	O
2	O	O
copies	O	O
.	O	O

One	O	O
is	O	O
in	O	O
your	O	O
project	O	O
and	O	O
the	O	O
other	O	O
is	O	O
in	O	O
bin	B-Code_Block	B-File_Name
\debug	I-Code_Block	I-File_Name
.	O	O

In	O	O
design	O	O
time	O	O
you	O	O
edit	O	O
the	O	O
one	O	O
in	O	O
your	O	O
project	O	O
.	O	O

Each	O	O
time	O	O
your	O	O
project	O	O
changes	O	O
and	O	O
you	O	O
build	O	O
it	O	O
,	O	O
the	O	O
project	O	O
database	O	O
file	O	O
is	O	O
overwriting	O	O
the	O	O
file	O	O
in	O	O
bin	O	B-File_Name
\debug	O	I-File_Name
,	O	O
and	O	O
this	O	O
file	O	O
you	O	O
're	O	O
updating	O	O
in	O	O
run-time	O	O
.	O	O

In	O	O
order	O	O
to	O	O
solve	O	O
that	O	O
you	O	O
have	O	O
three	O	O
options	O	O
:	O	O

Use	O	O
only	O	O
the	O	O
file	O	O
in	O	O
bin	O	B-File_Name
\debug	O	I-File_Name
.	O	O

Set	O	O
the	O	O
project	O	O
database	O	O
file	O	O
copy	O	O
options	O	O
to	O	O
"	O	O
Never	O	O
"	O	O
(	O	O
in	O	O
the	O	O
properties	O	O
window	O	B-User_Interface_Element
)	O	O
,	O	O
show	O	O
all	O	O
files	O	O
of	O	O
the	O	O
project	O	O
and	O	O
add	O	O
the	O	O
bin	O	B-File_Name
\debug	O	I-File_Name
database	O	O
file	O	O
to	O	O
the	O	O
server	O	B-Application
explorer	O	I-Application
.	O	O

Caution	O	O
:	O	O
If	O	O
you	O	O
accidently	O	O
delete	O	O
the	O	O
bin	O	B-File_Name
\debug	O	I-File_Name
folder	O	O
all	O	O
your	O	O
changes	O	O
are	O	O
gone	O	O
.	O	O

Manually	O	O
copy	O	O
the	O	O
database	O	O
file	O	O
from	O	O
bin	O	B-File_Name
\debug	O	I-File_Name
to	O	O
the	O	O
project	O	O
folder	O	O
when	O	O
you	O	O
change	O	O
it	O	O
.	O	O

Put	O	O
the	O	O
file	O	O
in	O	O
your	O	O
sql	O	B-Application
server	O	I-Application
folder	O	O
and	O	O
not	O	O
in	O	O
your	O	O
project	O	O
.	O	O

When	O	O
deploying	O	O
,	O	O
change	O	O
the	O	O
connection	O	O
string	O	B-Data_Type
and	O	O
copy	O	O
the	O	O
database	O	O
from	O	O
server	O	B-Application
.	O	O

Replace	O	O
"	O	O
|DataDirectory|	O	B-Variable
"	O	O
macro	O	O
with	O	O
the	O	O
absolute	O	O
path	O	O
to	O	O
the	O	O
project	O	O
database	O	O
file	O	O
.	O	O

When	O	O
deploying	O	O
,	O	O
just	O	O
change	O	O
it	O	O
back	O	O
to	O	O
"	O	O
|DataDirectory|	O	B-Variable
"	O	O

I	O	O
'm	O	O
facing	O	O
an	O	O
authentication	O	O
issue	O	O
not	O	O
being	O	O
able	O	O
to	O	O
read/write	O	O
to	O	O
CloudStorage	O	B-Application
from	O	O
PHP	O	B-Language
on	O	O
GCE	O	B-Application
.	O	O

I	O	O
tested	O	O
using	O	O
the	O	O
sample	O	O
API	O	O
but	O	O
received	O	O
an	O	O
error	O	O
message	O	O

and	O	O
the	O	O
authentication	O	O
failed	O	O
.	O	O

Also	O	O
,	O	O
I	O	O
see	O	O
no	O	O
Redirect	O	O
URI	O	O
generated	O	O
in	O	O
"	O	O
2	O	O
.	O	O

Generated	O	O
a	O	O
Client	O	O
ID	O	O
"	O	O

Maybe	O	O
this	O	O
is	O	O
a	O	O
stupid	O	O
question	O	O
but	O	O
it	O	O
's	O	O
bugging	O	O
me	O	O
.	O	O

I	O	O
have	O	O
a	O	O
bi-directional	O	O
one	O	O
to	O	O
many	O	O
relationship	O	O
of	O	O
Employee	O	B-Class
to	O	O
Vehicles	O	B-Class
.	O	O

When	O	O
I	O	O
persist	O	O
an	O	O
Employee	O	B-Class
in	O	O
the	O	O
database	O	O
for	O	O
the	O	O
first	O	O
time	O	O
(	O	O
i.e	O	O
.	O	O
it	O	O
has	O	O
no	O	O
assigned	O	O
ID	O	B-Variable
)	O	O
I	O	O
also	O	O
want	O	O
its	O	O
associated	O	O
Vehicles	O	B-Class
to	O	O
be	O	O
persisted	O	O
.	O	O

This	O	O
works	O	O
fine	O	O
for	O	O
me	O	O
at	O	O
the	O	O
moment	O	O
,	O	O
except	O	O
that	O	O
my	O	O
saved	O	O
Vehicle	O	B-Class
entity	O	O
is	O	O
not	O	O
getting	O	O
the	O	O
associated	O	O
Employee	O	B-Class
mapped	O	O
automatically	O	O
,	O	O
and	O	O
in	O	O
the	O	O
database	O	O
the	O	O
employee_id	O	B-Variable
foreign	O	O
key	O	O
column	O	B-Data_Structure
in	O	O
the	O	O
Vehicle	O	B-Class
table	O	B-Data_Structure
is	O	O
null	O	B-Value
.	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
have	O	O
the	O	O
Vehicle	O	B-Class
's	O	O
employee	O	O
persisted	O	O
at	O	O
the	O	O
same	O	O
time	O	O
the	O	O
Employee	O	B-Class
itself	O	O
is	O	O
being	O	O
persisted	O	O
?	O	O

I	O	O
realise	O	O
that	O	O
the	O	O
Employee	O	B-Class
would	O	O
need	O	O
to	O	O
be	O	O
saved	O	O
first	O	O
,	O	O
then	O	O
the	O	O
Vehicle	O	B-Class
saved	O	O
afterwards	O	O
.	O	O

Can	O	O
JPA	O	B-Library
do	O	O
this	O	O
automatically	O	O
for	O	O
me	O	O
?	O	O

Or	O	O
do	O	O
I	O	O
have	O	O
to	O	O
do	O	O
something	O	O
like	O	O
the	O	O
following	O	O
:	O	O

Thanks	O	O
!	O	O

Edit	O	O
:	O	O
As	O	O
requested	O	O
,	O	O
here	O	O
's	O	O
my	O	O
mappings	O	O
(	O	O
without	O	O
all	O	O
the	O	O
other	O	O
methods	O	O
etc	O	O
.	O	O
)	O	O

I	O	O
just	O	O
realised	O	O
I	O	O
should	O	O
have	O	O
had	O	O
the	O	O
following	O	O
method	O	O
defined	O	O
on	O	O
my	O	O
Employee	O	B-Class
class	O	O
:	O	O

Now	O	O
the	O	O
code	O	O
above	O	O
will	O	O
look	O	O
like	O	O
this	O	O
:	O	O

Much	O	O
simpler	O	O
and	O	O
cleaner	O	O
.	O	O

Thanks	O	O
for	O	O
your	O	O
help	O	O
everyone	O	O
!	O	O

One	O	O
way	O	O
to	O	O
do	O	O
that	O	O
is	O	O
to	O	O
set	O	O
the	O	O
cascade	O	O
option	O	O
on	O	O
you	O	O
"	O	O
One	O	O
"	O	O
side	O	O
of	O	O
relationship	O	O
:	O	O

by	O	O
this	O	O
,	O	O
when	O	O
you	O	O
call	O	O

it	O	O
will	O	O
save	O	O
the	O	O
vehicles	O	B-Class
too	O	O
.	O	O

You	O	O
have	O	O
to	O	O
set	O	O
the	O	O
associatedEmployee	O	O
on	O	O
the	O	O
Vehicle	O	B-Class
before	O	O
persisting	O	O
the	O	O
Employee	O	B-Class
.	O	O

My	O	O
table	O	B-Data_Structure
(	O	O
projects	O	B-Variable
)	O	O
:	O	O

As	O	O
you	O	O
may	O	O
have	O	O
noticed	O	O
,	O	O
this	O	O
is	O	O
hierarchical	O	O
data	O	O
using	O	O
the	O	O
nested	O	O
set	O	B-Data_Structure
model	O	O
.	O	O

Tree	O	B-Data_Structure
pretty-printed	O	O
:	O	O

I	O	O
want	O	O
to	O	O
select	O	O
all	O	O
sub	O	O
projects	O	O
under	O	O
project	O	B-Variable
1	O	B-Value
and	O	O
4	O	B-Value
.	O	O

I	O	O
can	O	O
do	O	O
this	O	O
with	O	O
:	O	O

However	O	O
,	O	O
this	O	O
is	O	O
very	O	O
slow	O	O
with	O	O
a	O	O
large	O	O
table	O	B-Data_Structure
,	O	O
when	O	O
running	O	O
EXPLAIN	O	B-Function
(	O	I-Function
Query	O	I-Function
)	O	I-Function
i	O	O
get	O	O
:	O	O

(	O	O
The	O	O
project	O	B-Variable
table	O	B-Data_Structure
has	O	O
indexes	O	O
on	O	O
lft	O	B-Variable
,	O	O
rgt	O	B-Variable
,	O	O
and	O	O
lft-rgt	O	B-Variable
.	O	O

As	O	O
you	O	O
can	O	O
see	O	O
,	O	O
mysql	O	B-Application
does	O	O
not	O	O
use	O	O
any	O	O
index	O	O
,	O	O
and	O	O
loops	O	O
through	O	O
the	O	O
7040	O	O
records	O	O
)	O	O

I	O	O
have	O	O
found	O	O
that	O	O
if	O	O
I	O	O
only	O	O
select	O	O
for	O	O
one	O	O
of	O	O
the	O	O
super	O	O
project	O	B-Variable
,	O	O
mysql	O	B-Application
manages	O	O
to	O	O
use	O	O
the	O	O
indexes	O	O
:	O	O

EXPLAINs	O	B-Function
to	O	O
:	O	O

FINALLY	O	O
,	O	O
my	O	O
question	O	O
:	O	O
I	O	O
there	O	O
any	O	O
way	O	O
i	O	O
can	O	O
SELECT	O	B-Code_Block
rows	O	B-Data_Structure
matching	O	O
multiple	O	O
ranges	O	O
,	O	O
and	O	O
still	O	O
benefit	O	O
from	O	O
indexes	O	O
?	O	O

From	O	O
7.2.5.1	O	O
.	O	O

The	O	O
Range	O	O
Access	O	O
Method	O	O
for	O	O
Single-Part	O	O
Indexes	O	O
in	O	O
MySQL	O	B-Application
reference	O	O
manual	O	O
:	O	O

So	O	O
you	O	O
need	O	O
to	O	O
have	O	O
a	O	O
union	O	B-Code_Block
of	O	O
two	O	O
different	O	O
selects	O	B-Code_Block
.	O	O

have	O	O
you	O	O
tried	O	O
a	O	O
union	O	B-Code_Block
?	O	O

take	O	O
your	O	O
second	O	O
example	O	O
,	O	O
add	O	O
"	O	O
union	O	B-Code_Block
"	O	O
underneath	O	O
and	O	O
the	O	O
repeat	O	O
but	O	O
matching	O	O
id	O	B-Variable
4	O	B-Value
.	O	O
i	O	O
do	O	O
n't	O	O
know	O	O
if	O	O
it	O	O
would	O	O
work	O	O
,	O	O
but	O	O
it	O	O
seems	O	O
like	O	O
an	O	O
obvious	O	O
thing	O	O
to	O	O
try	O	O
.	O	O

edit	O	O
:	O	O

I	O	O
'm	O	O
setting	O	O
up	O	O
IPython	O	B-Application
to	O	O
automatically	O	O
load	O	O
Sympy	O	B-Library
and	O	O
configure	O	O
it	O	O
's	O	O
output	O	O
method	O	O
on	O	O
startup	O	O
.	O	O

However	O	O
,	O	O
whatever	O	O
I	O	O
try	O	O
I	O	O
ca	O	O
n't	O	O
get	O	O
sympy	O	B-Library
to	O	O
initialize	O	O
the	O	O
latex/unicode	O	B-Language
style	O	O
output	O	O
printing	O	O
.	O	O

Steps	O	O
taken	O	O
:	O	O

The	O	O
startup	O	O
script	O	O
:	O	O

When	O	O
I	O	O
start	O	O
ipython	O	B-Application
,	O	O
it	O	O
does	O	O
n't	O	O
display	O	O
a	O	O
"	O	O
pretty-printed	O	O
"	O	O
output	O	O
:	O	O

Output	O	O
:	O	O

Similar	O	O
output	O	O
using	O	O
qtconsole/notebook	O	B-Application
.	O	O

If	O	O
I	O	O
run	O	O
the	O	O
init_printing	O	B-Code_Block
command	O	O
again	O	O
the	O	O
pretty	O	O
print	O	O
display	O	O
works	O	O
for	O	O
that	O	O
kernel	O	B-Application
instance	O	O
.	O	O

Additionally	O	O
I	O	O
know	O	O
the	O	O
startup	O	O
script	O	O
is	O	O
being	O	O
run	O	O
properly	O	O
because	O	O
I	O	O
can	O	O
add	O	O
print	O	B-Code_Block
statements	O	O
and	O	O
get	O	O
output	O	O
(	O	O
additionally	O	O
,	O	O
the	O	O
packages	O	O
are	O	O
imported	O	O
and	O	O
available	O	O
for	O	O
use	O	O
)	O	O
.	O	O

I	O	O
am	O	O
running	O	O
sympy	O	B-Library
0.7.3	O	B-Version
,	O	O
ipython3	O	B-Application
1.1	O	B-Version
,	O	O
matplotlib	O	B-Library
1.3.1	O	B-Version
,	O	O
numpy	O	B-Library
1.7.1	O	B-Version
,	O	O
scipy	O	B-Library
0.12.0	O	B-Version
on	O	O
a	O	O
64-bit	O	O
Ubuntu	O	B-Operating_System
13.10	O	B-Version
install	O	O
.	O	O

Incidentally	O	O
,	O	O
running	O	O
the	O	O
plain	O	O
python3	O	B-Application
terminal	O	I-Application
with	O	O
PYTHONSTARTUP	O	B-Variable
set	O	O
to	O	O
run	O	O
the	O	O
same	O	O
startup	O	O
script	O	O
will	O	O
properly	O	O
pretty	O	O
print	O	O
Sympy	O	B-Library
output	O	O
.	O	O

In	O	O
response	O	O
to	O	O
Jakob	O	B-User_Name
's	O	O
comment	O	O
,	O	O
ipython3	O	B-Application
1.1.0	O	B-Version
is	O	O
still	O	O
using	O	O
the	O	O
interactive	O	O
sympy	O	B-Library
module	O	O
instead	O	O
of	O	O
sympy	O	B-Library
0.7.3	O	B-Version
'	O	O
s	O	O
init_printing	O	B-Code_Block
,	O	O
which	O	O
theoretically	O	O
works	O	O
fine	O	O
except	O	O
I	O	O
get	O	O
nasty	O	O
warning	O	O
output	O	O
at	O	O
start	O	O
.	O	O

I	O	O
'm	O	O
also	O	O
not	O	O
too	O	O
keen	O	O
on	O	O
everything	O	O
in	O	O
sympy	O	B-Library
being	O	O
imported	O	O
into	O	O
the	O	O
global	O	B-Data_Type
namespace	O	O
,	O	O
which	O	O
the	O	O
bundled	O	O
sympy	O	B-Library
config	O	O
does	O	O
(	O	O
as	O	O
well	O	O
as	O	O
define	O	O
a	O	O
few	O	O
variables	O	O
)	O	O
.	O	O

However	O	O
,	O	O
the	O	O
suggestion	O	O
did	O	O
help	O	O
me	O	O
find	O	O
a	O	O
fix	O	O
:	O	O

Instead	O	O
of	O	O
putting	O	O
my	O	O
startup	O	O
code	O	O
into	O	O
the	O	O
00-startup.py	B-Code_Block	B-File_Name
,	O	O
I	O	O
modified	O	O
the	O	O
ipython_config.py	B-Code_Block	B-File_Name
file	O	O
to	O	O
execute	O	O
additional	O	O
lines	O	O
at	O	O
startup	O	O
:	O	O

I	O	O
'm	O	O
unsure	O	O
if	O	O
this	O	O
is	O	O
a	O	O
bug	O	O
in	O	O
either	O	O
sympy	O	B-Library
or	O	O
ipython	O	B-Application
,	O	O
but	O	O
this	O	O
option	O	O
certainly	O	O
works	O	O
.	O	O

How	O	O
can	O	O
i	O	O
set	O	O
left	O	O
mouse	O	B-Device
click	O	O
to	O	O
save	O	O
the	O	O
doc	O	B-File_Type
(	O	O
docx	O	B-File_Type
)	O	O
document	O	O
to	O	O
my	O	O
computer	O	B-Device
?	O	O

At	O	O
this	O	O
moment	O	O
its	O	O
only	O	O
opening	O	O
doc	O	B-File_Type
file	O	O
in	O	O
a	O	O
browser	O	B-Application
,	O	O
i	O	O
want	O	O
to	O	O
prevent	O	O
that	O	O
.	O	O

How	O	O
's	O	O
that	O	O
can	O	O
be	O	O
done	O	O
?	O	O

The	O	O
code	O	O
above	O	O
is	O	O
not	O	O
working	O	O
-	O	O
still	O	O
opening	O	O
that	O	O
doc	O	B-File_Type
file	O	O
in	O	O
a	O	O
browser	O	B-Application
..	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

i	O	O
can	O	O
set	O	O
that	O	O
on	O	O
my	O	O
test.php	O	B-File_Name
page	O	O
:	O	O

but	O	O
then	O	O
when	O	O
i	O	O
load	O	O
test.php	O	B-File_Name
it	O	O
always	O	O
asks	O	O
me	O	O
to	O	O
save	O	O
that	O	O
file	O	O
..	O	O
.	O	O
how	O	O
can	O	O
i	O	O
make	O	O
to	O	O
work	O	O
that	O	O
only	O	O
for	O	O
links	O	O
that	O	O
leading	O	O
to	O	O
doc||docx	O	B-File_Type
files	O	O
?	O	O

Add	O	O
the	O	O
following	O	O
to	O	O
your	O	O
.htaccess	B-Code_Block	B-File_Type
file	O	O
in	O	O
your	O	O
sites	O	O
directory	O	O
:	O	O

This	O	O
will	O	O
force	O	O
it	O	O
to	O	O
download	O	O
,	O	O
and	O	O
you	O	O
can	O	O
use	O	O
a	O	O
regular	O	O
<a	B-Code_Block	B-Code_Block
href=''>	I-Code_Block	I-Code_Block
to	O	O
link	O	O
to	O	O
the	O	O
file	O	O
without	O	O
any	O	O
JS	O	B-Language
intervention	O	O
.	O	O

How	O	O
can	O	O
I	O	O
swap	O	O
mouse-1	O	B-Variable
and	O	O
mouse-2	O	B-Variable
on	O	O
Emacs	O	B-Application
?	O	O

There	O	O
must	O	O
be	O	O
a	O	O
simple	O	O
.emacs	O	B-File_Type
code	O	O
;	O	O
I	O	O
spent	O	O
one	O	O
hour	O	O
searching	O	O
on	O	O
the	O	O
web	O	O
but	O	O
I	O	O
could	O	O
n't	O	O
find	O	O
any	O	O
example	O	O
..	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

You	O	O
can	O	O
do	O	O
it	O	O
with	O	O

But	O	O
if	O	O
you	O	O
tell	O	O
us	O	O
why	O	O
,	O	O
maybe	O	O
we	O	O
can	O	O
give	O	O
a	O	O
better	O	O
answer	O	O
.	O	O

E.g	O	O
.	O	O
you	O	O
might	O	O
want	O	O
to	O	O
take	O	O
a	O	O
look	O	O
at	O	O
mouse-1-click-follows-link	B-Code_Block	B-Variable
which	O	O
performs	O	O
a	O	O
similar	O	O
(	O	O
but	O	O
partial	O	O
)	O	O
swap	O	O
(	O	O
and	O	O
is	O	O
activated	O	O
by	O	O
default	O	O
)	O	O
.	O	O

I	O	O
have	O	O
downladed	O	O
an	O	O
OBJ	O	B-File_Type
file	O	O
along	O	O
with	O	O
meta	O	O
information	O	O
and	O	O
properties	O	O
,	O	O
based	O	O
on	O	O
an	O	O
IFC	O	O
that	O	O
was	O	O
uploaded	O	O
to	O	O
Autodesk	O	B-Application
Forge	O	I-Application
.	O	O

Question	O	O
is	O	O
;	O	O
How	O	O
do	O	O
I	O	O
map	O	O
objects	O	O
in	O	O
the	O	O
OBJ	O	B-File_Type
to	O	O
the	O	O
correct	O	O
entries	O	O
in	O	O
the	O	O
'	O	O
meta	O	O
'	O	O
and	O	O
'	O	O
properties	O	O
'	O	O
?	O	O

I	O	O
have	O	O
a	O	O
procedure	O	O
that	O	O
I	O	O
'll	O	O
need	O	O
in	O	O
a	O	O
lot	O	O
(	O	O
if	O	O
not	O	O
all	O	O
)	O	O
of	O	O
my	O	O
view	O	O
controllers	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
put	O	O
it	O	O
in	O	O
one	O	O
place	O	O
(	O	O
for	O	O
code	O	O
cleanliness	O	O
and	O	O
maintenance	O	O
)	O	O
and	O	O
utilize	O	O
it	O	O
elsewhere	O	O
.	O	O

If	O	O
you	O	O
're	O	O
not	O	O
sure	O	O
that	O	O
the	O	O
method	O	O
will	O	O
be	O	O
used	O	O
in	O	O
all	O	O
Controllers	O	O
,	O	O
I	O	O
'd	O	O
recommend	O	O
creating	O	O
a	O	O
category	O	O
for	O	O
the	O	O
functionality	O	O
you	O	O
're	O	O
adding	O	O
.	O	O

You	O	O
can	O	O
find	O	O
a	O	O
good	O	O
intro	O	O
to	O	O
categories	O	O
here	O	O
.	O	O

If	O	O
you	O	O
're	O	O
sure	O	O
you	O	O
'll	O	O
need	O	O
it	O	O
in	O	O
all	O	O
UIViewControllers	B-Code_Block	B-Class
,	O	O
creating	O	O
a	O	O
base	O	O
Controller	O	O
and	O	O
subclassing	O	O
should	O	O
be	O	O
the	O	O
better	O	O
approach	O	O
.	O	O

All	O	O
other	O	O
methods	O	O
of	O	O
implementing	O	O
(	O	O
Placing	O	O
a	O	O
class	O	O
method	O	O
in	O	O
a	O	O
utility	O	B-Application
/	O	O
Adding	O	O
to	O	O
*	O	O
-Prefix.pch	O	B-File_Name
)	O	O
will	O	O
work	O	O
,	O	O
but	O	O
might	O	O
not	O	O
be	O	O
ideal	O	O
solutions	O	O
(	O	O
assuming	O	O
the	O	O
functionality	O	O
your	O	O
're	O	O
adding	O	O
is	O	O
only	O	O
applicable	O	O
to	O	O
UIViewController	B-Code_Block	B-Class
)	O	O
.	O	O

There	O	O
are	O	O
more	O	O
ways	O	O
on	O	O
how	O	O
to	O	O
approach	O	O
this	O	O
-	O	O
depending	O	O
on	O	O
what	O	O
exactly	O	O
you	O	O
would	O	O
like	O	O
to	O	O
achieve	O	O
.	O	O

If	O	O
this	O	O
methods	O	O
are	O	O
tied	O	O
with	O	O
UIViewController	B-Code_Block	B-Class
's	O	O
life	O	O
and	O	O
data	O	O
you	O	O
would	O	O
probably	O	O
want	O	O
to	O	O
subclass	O	O
UIViewController	B-Code_Block	B-Class
or	O	O
make	O	O
an	O	O
UIViewController	B-Code_Block	B-Class
category	O	O
.	O	O

A	O	O
:	O	O
Subclassing	O	O
(	O	O
you	O	O
want	O	O
to	O	O
add	O	O
some	O	O
custom	O	O
properties	O	O
,	O	O
variables	O	O
,	O	O
methods	O	O
or	O	O
you	O	O
want	O	O
to	O	O
override	O	O
a	O	O
method	O	O
)	O	O
:	O	O

MySubclassedViewController.h	O	B-File_Name

MySubclassedViewController.m	O	B-File_Name

B	O	O
:	O	O
Category	O	O
(	O	O
you	O	O
just	O	O
want	O	O
to	O	O
add	O	O
some	O	O
extra	O	O
method	O	O
to	O	O
a	O	O
class	O	O
)	O	O
:	O	O

UIViewController+	O	B-Class
SpecialCatrgory.h	O	B-File_Name

UIViewController+	O	B-Class
SpecialCatrgory.m	O	B-File_Name

C	O	O
:	O	O
Dedicated	O	O
helper	O	O
class	O	O

On	O	O
the	O	O
other	O	O
hand	O	O
if	O	O
you	O	O
find	O	O
yourself	O	O
using	O	O
some	O	O
independent	O	O
method	O	O
on	O	O
more	O	O
than	O	O
one	O	O
place	O	O
you	O	O
might	O	O

want	O	O
to	O	O
consider	O	O
writing	O	O
up	O	O
a	O	O
helper	O	O
class	O	O
and	O	O
use	O	O
it	O	O
as	O	O
a	O	O
singleton	O	O
.	O	O

MyHelperClass.h	O	B-File_Name

MyHelperClass.m	O	B-File_Name

You	O	O
use	O	O
it	O	O
simply	O	O
by	O	O
importing	O	O
MyHelperClass.h	B-Code_Block	B-File_Name
(	O	O
or	O	O
putting	O	O
it	O	O
in	O	O
-Prefix.pch	B-Code_Block	B-File_Name
)	O	O
,	O	O
without	O	O
explicitly	O	O
creating	O	O
an	O	O
instance	O	O
.	O	O

For	O	O
example	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
implement	O	O
a	O	O
queue	O	B-Data_Structure
,	O	O
dequeueing	O	O
and	O	O
requeueing	O	O
in	O	O
a	O	O
single	O	O
channel	O	O
.	O	O

I	O	O
have	O	O
two	O	O
questions	O	O
:	O	O

why	O	O
do	O	O
I	O	O
obtain	O	O
a	O	O
deadlock	O	O
?	O	O

I	O	O
was	O	O
expecting	O	O
an	O	O
infinite	O	O
loop	O	O
(	O	O
since	O	O
I	O	O
am	O	O
requeueing	O	O
even	O	O
elements	O	O
which	O	O
generate	O	O
more	O	O
elements	O	O
and	O	O
so	O	O
on	O	O
)	O	O
.	O	O

Should	O	O
n't	O	O
the	O	O
range	B-Code_Block	B-Code_Block
queue	I-Code_Block	I-Code_Block
always	O	O
listening	O	O
to	O	O
the	O	O
channel	O	O
?	O	O

this	O	O
is	O	O
part	O	O
of	O	O
the	O	O
print	O	O
before	O	O
the	O	O
deadloks	O	O
:	O	O

Are	O	O
two	O	O
different	O	O
goroutines	O	O
dequeueing	O	O
the	O	O
same	O	O
element	O	O
?	O	O

I	O	O
do	O	O
n't	O	O
understand	O	O
why	O	O
this	O	O
data	O	O
race	O	O
;	O	O
I	O	O
thought	O	O
that	O	O
the	O	O
range	B-Code_Block	B-Code_Block
would	O	O
pick	O	O
one	O	O
per	O	O
time	O	O
.	O	O

Code	O	O
in	O	O
Playground	O	B-Application

When	O	O
a	O	O
range	O	O
loop	O	O
over	O	O
a	O	O
channel	O	O
reaches	O	O
the	O	O
end	O	O
of	O	O
the	O	O
channel	O	O
's	O	O
buffer	O	B-Data_Structure
(	O	O
if	O	O
the	O	O
channel	O	O
has	O	O
one	O	O
)	O	O
it	O	O
will	O	O
block	O	O
,	O	O
waiting	O	O
for	O	O
more	O	O
elements	O	O
to	O	O
be	O	O
sent	O	O
through	O	O
the	O	O
channel	O	O
.	O	O

If	O	O
there	O	O
are	O	O
no	O	O
other	O	O
running	O	O
or	O	O
runnable	O	O
goroutines	O	O
then	O	O
we	O	O
've	O	O
reached	O	O
a	O	O
deadlock	O	O
.	O	O

Minimal	O	O
example	O	O
:	O	O

http://play.golang.org/p/Vb4-RFEmm3	O	O

No	O	O
.	O	O

What	O	O
's	O	O
happening	O	O
is	O	O
that	O	O
this	O	O
line	O	O
(	O	O
26	O	O
)	O	O
:	O	O

instructs	O	O
Go	O	B-Language
's	O	O
runtime	O	O
to	O	O
schedule	O	O
a	O	O
new	O	O
goroutine	O	O
,	O	O
it	O	O
does	O	O
not	O	O
necessarily	O	O
execute	O	O
immediately	O	O
.	O	O

When	O	O
the	O	O
goroutine	O	O
effectively	O	O
runs	O	O
,	O	O
new	B-Code_Block	B-Variable
's	O	O
value	O	O
is	O	O
1001	O	B-Value
,	O	O
not	O	O
1000	O	B-Value
as	O	O
printed	O	O
.	O	O

It	O	O
's	O	O
a	O	O
scope	O	O
problem	O	O
.	O	O

This	O	O
happens	O	O
a	O	O
lot	O	O
when	O	O
getting	O	O
started	O	O
with	O	O
go	B-Code_Block	B-Code_Block
func()	I-Code_Block	I-Code_Block
{	B-Code_Block	B-Code_Block
...	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
;	O	O
it	O	O
might	O	O
be	O	O
more	O	O
common	O	O
than	O	O
real	O	O
problems	O	O
with	O	O
concurrency	O	O
.	O	O

There	O	O
are	O	O
sections	O	O
in	O	O
the	O	O
FAQ	O	O
and	O	O
the	O	O
Go	O	B-Language
wiki	O	O
about	O	O
it	O	O
.	O	O

The	O	O
anonymous	O	O
func	B-Code_Block	B-Code_Block
you	O	O
create	O	O
gets	O	O
a	O	O
reference	O	O
to	O	O
a	O	O
variable	O	O
in	O	O
the	O	O
outer	O	O
scope	O	O
,	O	O
not	O	O
to	O	O
its	O	O
value	O	O
at	O	O
the	O	O
time	O	O
the	O	O
func	B-Code_Block	B-Code_Block
statement	O	O
runs	O	O
.	O	O

And	O	O
that	O	O
loop	O	O
variable	O	O
is	O	O
updated	O	O
each	O	O
pass	O	O
through	O	O
the	O	O
loop	O	O
,	O	O
so	O	O
it	O	O
changes	O	O
between	O	O
your	O	O
go	B-Code_Block	B-Code_Block
statement	O	O
and	O	O
when	O	O
the	O	O
goroutine	O	O
actually	O	O
runs	O	O
.	O	O

You	O	O
can	O	O
work	O	O
around	O	O
this	O	O
by	O	O
declaring	O	O
another	O	O
variable	O	O
during	O	O
each	O	O
iteration	O	O
of	O	O
the	O	O
loop	O	O
(	O	O
i.e	O	O
.	O	O
,	O	O
inside	O	O
the	O	O
for	B-Code_Block	B-Code_Block
braces	O	O
)	O	O
.	O	O

If	O	O
your	O	O
loop	O	O
was	O	O
for	B-Code_Block	B-Code_Block
i	I-Code_Block	I-Code_Block
:=	I-Code_Block	I-Code_Block
range	I-Code_Block	I-Code_Block
arr	I-Code_Block	I-Code_Block
{	B-Code_Block	B-Code_Block
...	I-Code_Block	I-Code_Block
}	I-Code_Block	I-Code_Block
you	O	O
could	O	O
just	O	O
add	O	O
i	B-Code_Block	B-Code_Block
:=	I-Code_Block	I-Code_Block
i	I-Code_Block	I-Code_Block
.	O	O

So	O	O
,	O	O
this	O	O
bad	O	O
version	O	O
:	O	O

always	O	O
...	O	O
prints	O	O
9	O	B-Value
.	O	O

A	O	O
fixed	O	O
version	O	O
,	O	O
redeclaring	O	O
i	B-Code_Block	B-Variable
inside	O	O
the	O	O
loop	O	O
:	O	O

prints	O	O
..	O	O
0-9	O	B-Value
.	O	O

A	O	O
different	O	O
,	O	O
arguably	O	O
more	O	O
elegant	O	O
way	O	O
to	O	O
redeclare	O	O
i	B-Code_Block	B-Variable
is	O	O
to	O	O
make	O	O
it	O	O
a	O	O
param	O	O
of	O	O
the	O	O
anonymous	O	O
func	B-Code_Block	B-Code_Block
;	O	O
then	O	O
it	O	O
's	O	O
not	O	O
a	O	O
weird-looking	O	O
standalone	O	O
statement	O	O
:	O	O

Here	O	O
's	O	O
that	O	O
code	O	O
.	O	O

For	O	O
all	O	O
of	O	O
the	O	O
Playground	O	B-Application
versions	O	O
,	O	O
I	O	O
had	O	O
to	O	O
add	O	O
synchronization	O	O
so	O	O
main	B-Code_Block	B-Function
would	O	O
n't	O	O
exit	O	O
before	O	O
the	O	O
goroutines	O	O
run	O	O
.	O	O

It	O	O
's	O	O
confusing	O	O
that	O	O
a	O	O
declaration	O	O
that	O	O
"	O	O
runs	O	O
"	O	O
once	O	O
each	O	O
time	O	O
through	O	O
the	O	O
loop	O	O
behaves	O	O
differently	O	O
(	O	O
weird	O	O
way	O	O
for	O	O
scope	O	O
to	O	O
manifest	O	O
)	O	O
but	O	O
the	O	O
way	O	O
to	O	O
get	O	O
around	O	O
it	O	O
is	O	O
straightforward	O	O
enough	O	O
.	O	O

In	O	O
your	O	O
case	O	O
:	O	O
queue	B-Code_Block	B-Code_Block
<	I-Code_Block	I-Code_Block
-	I-Code_Block	I-Code_Block
new	I-Code_Block	I-Code_Block
can	O	O
run	O	O
at	O	O
any	O	O
time	O	O
,	O	O
and	O	O
it	O	O
turns	O	O
out	O	O
to	O	O
run	O	O
after	O	O
you	O	O
've	O	O
gone	O	O
through	O	O
the	O	O
for	B-Code_Block	B-Code_Block
_	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
new	I-Code_Block	I-Code_Block
loop	O	O
entirely	O	O
.	O	O

However	O	O
,	O	O
it	O	O
uses	O	O
whatever	O	O
the	O	O
value	O	O
of	O	O
new	B-Code_Block	B-Variable
is	O	O
as	O	O
of	O	O
when	O	O
it	O	O
actually	O	O
runs	O	O
,	O	O
not	O	O
as	O	O
of	O	O
when	O	O
the	O	O
go	O	B-Language
statement	O	O
was	O	O
executed	O	O
.	O	O

In	O	O
this	O	O
case	O	O
,	O	O
both	O	O
the	O	O
goroutines	O	O
you	O	O
start	O	O
get	O	O
the	O	O
value	O	O
1001	O	B-Value
,	O	O
the	O	O
so	O	O
second	O	O
time	O	O
through	O	O
both	O	O
values	O	O
passed	O	O
into	O	O
enqueue	O	B-Function
are	O	O
odd	O	O
(	O	O
you	O	O
can	O	O
see	O	O
that	O	O
as	O	O
two	O	O
using	B-Code_Block	B-Output_Block
1001s	I-Code_Block	I-Output_Block
in	O	O
your	O	O
output	O	O
)	O	O
so	O	O
nothing	O	O
writes	O	O
to	O	O
the	O	O
queue	O	B-Data_Structure
,	O	O
so	O	O
there	O	O
is	O	O
nothing	O	O
for	O	O
the	O	O
range	B-Code_Block	B-Code_Block
queue	I-Code_Block	I-Code_Block
loop	O	O
to	O	O
consume	O	O
.	O	O

The	O	O
channel	O	O
is	O	O
n't	O	O
closed	O	O
either	O	O
,	O	O
so	O	O
the	O	O
main	B-Code_Block	B-Function
ca	O	O
n't	O	O
just	O	O
end	O	O
,	O	O
so	O	O
you	O	O
get	O	O
a	O	O
deadlock	O	O
.	O	O

You	O	O
want	O	O
a	O	O
different	O	O
value	O	O
to	O	O
be	O	O
"	O	O
captured	O	O
"	O	O
for	O	O
each	O	O
execution	O	O
of	O	O
the	O	O
goroutine	O	O
.	O	O

For	O	O
that	O	O
,	O	O
you	O	O
can	O	O
put	O	O
new	B-Code_Block	B-Code_Block
:=	I-Code_Block	I-Code_Block
new	I-Code_Block	I-Code_Block
at	O	O
the	O	O
top	O	O
of	O	O
the	O	O
loop	O	O
,	O	O
as	O	O
funny	O	O
as	O	O
that	O	O
looks	O	O
.	O	O

That	O	O
's	O	O
enough	O	O
to	O	O
make	O	O
the	O	O
value	O	O
from	O	O
each	O	O
iteration	O	O
a	O	O
"	O	O
different	O	O
var	B-Code_Block	B-Data_Type
"	O	O
from	O	O
Go	O	B-Language
's	O	O
perspective	O	O
,	O	O
so	O	O
you	O	O
get	O	O
1000	B-Code_Block	B-Value
and	O	O
1001	B-Code_Block	B-Value
inserted	O	O
in	O	O
the	O	O
channel	O	O
.	O	O

Once	O	O
you	O	O
've	O	O
actually	O	O
got	O	O
it	O	O
working	O	O
,	O	O
the	O	O
Playground	O	B-Application
wo	O	O
n't	O	O
actually	O	O
run	O	O
your	O	O
code	O	O
successfully	O	O
because	O	O
it	O	O
loops	O	O
forever	O	O
and	O	O
there	O	O
are	O	O
a	O	O
zillion	O	O
goroutines	O	O
running	O	O
and	O	O
I	O	O
guess	O	O
the	O	O
Playground	O	B-Application
does	O	O
n't	O	O
like	O	O
that	O	O
(	O	O
overusing	O	O
resources	O	O
)	O	O
.	O	O

If	O	O
you	O	O
add	O	O
a	O	O
limit	O	O
of	O	O
100	O	O
elements	O	O
dequeued	O	O
before	O	O
quitting	O	O
,	O	O
you	O	O
get	O	O
http://play.golang.org/p/bBM3uTnvxi	O	O
.	O	O

You	O	O
'll	O	O
also	O	O
notice	O	O
the	O	O
numbers	O	O
it	O	O
outputs	O	O
get	O	O
weird	O	O
because	O	O
multiplying	O	O
by	O	O
100	O	B-Value
each	O	O
time	O	O
will	O	O
eventually	O	O
overflow	O	O
the	O	O
machine	O	O
's	O	O
int	O	B-Data_Type
type	O	O
,	O	O
but	O	O
that	O	O
's	O	O
just	O	O
how	O	O
it	O	O
goes	O	O
writing	O	O
programs	O	O
in	O	O
lowish-level	O	O
languages	O	O
.	O	O

As	O	O
a	O	O
minor	O	O
thing	O	O
,	O	O
you	O	O
probably	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
name	O	O
a	O	O
variable	O	O
new	B-Code_Block	B-Variable
because	O	O
that	O	O
's	O	O
also	O	O
the	O	O
name	O	O
of	O	O
a	O	O
built-in	O	O
function	O	O
.	O	O

It	O	O
's	O	O
legal	O	O
to	O	O
do	O	O
so	O	O
,	O	O
just	O	O
confusing	O	O
.	O	O

(	O	O
It	O	O
can	O	O
be	O	O
kind	O	O
of	O	O
reflexive	O	O
to	O	O
name	O	O
a	O	O
length	O	O
variable	O	O
len	B-Code_Block	B-Variable
,	O	O
especially	O	O
if	O	O
nothing	O	O
was	O	O
wrong	O	O
with	O	O
that	O	O
in	O	O
the	O	O
language	O	O
you	O	O
're	O	O
coming	O	O
from	O	O
.	O	O
)	O	O

I	O	O
wish	O	O
I	O	O
could	O	O
ask	O	O
this	O	O
question	O	O
in	O	O
context	O	O
,	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
have	O	O
enough	O	O
rep	O	O
to	O	O
comment	O	O
and	O	O
ask	O	O
my	O	O
question	O	O
there	O	O
,	O	O
so	O	O
I	O	O
have	O	O
to	O	O
make	O	O
a	O	O
new	O	O
post	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
use	O	O
the	O	O
code	O	O
from	O	O
this	O	O
comment	O	O
:	O	O

https://stackoverflow.com/a/21034111/432509	O	O

I	O	O
am	O	O
working	O	O
in	O	O
Python	O	B-Language
in	O	O
Houdini	O	B-Library
at	O	O
school	O	O
,	O	O
so	O	O
I	O	O
am	O	O
limited	O	O
on	O	O
what	O	O
libraries	O	O
I	O	O
can	O	O
utilize	O	O
to	O	O
what	O	O
they	O	O
have	O	O
installed	O	O
,	O	O
so	O	O
I	O	O
was	O	O
going	O	O
to	O	O
use	O	O
the	O	O
pure	O	O
python	O	B-Language
implementation	O	O
to	O	O
write	O	O
some	O	O
data	O	O
out	O	O
as	O	O
a	O	O
PNG	O	B-File_Type
map	O	O
,	O	O
but	O	O
I	O	O
am	O	O
running	O	O
into	O	O
an	O	O
error	O	O
in	O	O
this	O	O
line	O	O
:	O	O

I	O	O
am	O	O
getting	O	O
the	O	O
following	O	O
error	O	O
:	O	O

Unfortunately	O	O
I	O	O
am	O	O
not	O	O
familiar	O	O
with	O	O
all	O	O
of	O	O
this	O	O
syntax	O	O
and	O	O
as	O	O
such	O	O
I	O	O
am	O	O
not	O	O
able	O	O
to	O	O
repair	O	O
the	O	O
error	O	O
myself	O	O
.	O	O

Any	O	O
clues	O	O
?	O	O

How	O	O
does	O	O
one	O	O
inject	O	O
state	O	O
into	O	O
ring	O	B-Library
handlers	O	O
most	O	O
conveniently	O	O
(	O	O
without	O	O
using	O	O
global	O	B-Data_Type
vars	O	O
)	O	O
?	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
:	O	O

I	O	O
would	O	O
like	O	O
to	O	O
get	O	O
the-state	B-Code_Block	B-Variable
into	O	O
the	O	O
compojure	O	B-Library
handler	O	O
for	O	O
main-routes	B-Code_Block	B-Function
.	O	O

The	O	O
state	O	O
might	O	O
be	O	O
something	O	O
like	O	O
a	O	O
map	O	B-Data_Structure
created	O	O
with	O	O
:	O	O

In	O	O
a	O	O
non	O	O
ring	O	B-Library
application	O	O
I	O	O
would	O	O
create	O	O
the	O	O
state	O	O
in	O	O
a	O	O
main	O	B-Function
function	O	O
and	O	O
start	O	O
injecting	O	O
it	O	O
,	O	O
or	O	O
parts	O	O
of	O	O
it	O	O
,	O	O
as	O	O
function	O	O
parameters	O	O
to	O	O
the	O	O
different	O	O
components	O	O
of	O	O
the	O	O
application	O	O
.	O	O

Can	O	O
something	O	O
similar	O	O
be	O	O
done	O	O
with	O	O
ring	O	B-Library
's	O	O
:init	B-Code_Block	B-Function
function	O	O
without	O	O
using	O	O
a	O	O
global	O	B-Data_Type
var	O	O
?	O	O

The	O	O
"	O	O
correct	O	O
"	O	O
way	O	O
to	O	O
do	O	O
this	O	O
is	O	O
to	O	O
use	O	O
a	O	O
dynamically	O	O
bound	O	O
var	O	O
.	O	O

You	O	O
define	O	O
a	O	O
var	O	O
with	O	O
:	O	O

And	O	O
then	O	O
you	O	O
create	O	O
some	O	O
ring	O	B-Library
middleware	O	O
which	O	O
binds	O	O
the	O	O
var	O	O
for	O	O
each	O	O
handler	O	O
call	O	O
:	O	O

You	O	O
would	O	O
use	O	O
this	O	O
to	O	O
inject	O	O
dependencies	O	O
by	O	O
using	O	O
this	O	O
in	O	O
your	O	O
'	O	O
main	O	B-Function
'	O	O
function	O	O
where	O	O
you	O	O
launch	O	O
the	O	O
server	O	B-Application
:	O	O

I	O	O
've	O	O
seen	O	O
this	O	O
done	O	O
a	O	O
couple	O	O
of	O	O
ways	O	O
.	O	O

The	O	O
first	O	O
is	O	O
using	O	O
middleware	O	O
that	O	O
injects	O	O
the	O	O
state	O	O
as	O	O
a	O	O
new	O	O
key	O	O
in	O	O
the	O	O
request	O	O
map	O	B-Data_Structure
.	O	O

For	O	O
instance	O	O
:	O	O

The	O	O
other	O	O
approach	O	O
is	O	O
to	O	O
replace	O	O
the	O	O
call	O	O
to	O	O
defroutes	B-Code_Block	B-Code_Block
,	O	O
which	O	O
behind	O	O
the	O	O
scenes	O	O
will	O	O
create	O	O
a	O	O
handler	O	O
and	O	O
assign	O	O
it	O	O
to	O	O
a	O	O
var	O	O
,	O	O
with	O	O
a	O	O
function	O	O
that	O	O
will	O	O
accept	O	O
some	O	O
state	O	O
and	O	O
then	O	O
create	O	O
the	O	O
routes	O	B-Function
,	O	O
injecting	O	O
the	O	O
state	O	O
as	O	O
parameters	O	O
to	O	O
function	O	O
calls	O	O
within	O	O
the	O	O
route	O	B-Function
definitions	O	O
:	O	O

Given	O	O
a	O	O
choice	O	O
,	O	O
I	O	O
'd	O	O
probably	O	O
go	O	O
with	O	O
the	O	O
second	O	O
approach	O	O
.	O	O

I	O	O
have	O	O
a	O	O
NSTableview	O	B-Class
which	O	O
shows	O	O
50	O	O
rows	O	B-User_Interface_Element
currently	O	O
which	O	O
is	O	O
fixed	O	O
static	O	B-Data_Type
.	O	O

Now	O	O
I	O	O
want	O	O
to	O	O
add	O	O
a	O	O
feature	O	O
into	O	O
it	O	O
.	O	O

I	O	O
want	O	O
to	O	O
add	O	O
a	O	O
more	O	O
50	O	O
rows	O	B-User_Interface_Element
to	O	O
the	O	O
table	O	B-User_Interface_Element
when	O	O
user	O	O
reach	O	O
to	O	O
the	O	O
last	O	O
row	O	B-User_Interface_Element
of	O	O
the	O	O
NSTableView	O	B-Class
.	O	O

I	O	O
mean	O	O
currently	O	O
I	O	O
am	O	O
showing	O	O
fixed	O	O
50	O	O
rows	O	B-User_Interface_Element
in	O	O
the	O	O
application	O	O
.	O	O

But	O	O
now	O	O
I	O	O
want	O	O
to	O	O
add	O	O
50	O	O
more	O	O
rows	O	B-User_Interface_Element
whenever	O	O
user	O	O
reaches	O	O
to	O	O
the	O	O
last	O	O
row	O	B-User_Interface_Element
of	O	O
previous	O	O
NsTableview	O	B-Class
.	O	O

Please	O	O
give	O	O
me	O	O
any	O	O
suggestions	O	O
or	O	O
any	O	O
sample	O	O
code	O	O
to	O	O
achieve	O	O
my	O	O
motive	O	O
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

What	O	O
i	O	O
have	O	O
done	O	O
is	O	O
(	O	O
This	O	O
code	O	O
does	O	O
not	O	O
work	O	O
with	O	O
row	O	B-User_Interface_Element
selected	O	O
(	O	O
Down	O	B-Keyboard_IP
key	O	I-Keyboard_IP
pressed	O	O
)	O	O
,	O	O
and	O	O
does	O	O
not	O	O
load	O	O
new	O	O
rows	O	B-User_Interface_Element
)	O	O
-	O	O

Trying	O	O
to	O	O
use	O	O
features	O	O
from	O	O
OpenMP	O	B-Library
3	O	B-Version

in	O	O
Visual	O	B-Application
Studio	O	I-Application
2017	O	B-Version
;	O	O
i	O	O
'm	O	O
getting	O	O
error	B-Code_Block	B-Error_Name
c3005	I-Code_Block	I-Error_Name
:	I-Code_Block	O
'	I-Code_Block	B-Output_Block
collapse	I-Code_Block	I-Output_Block
'	B-Code_Block	B-Output_Block
unexpected	I-Code_Block	I-Output_Block
token	I-Code_Block	I-Output_Block
encountered	I-Code_Block	I-Output_Block
on	I-Code_Block	I-Output_Block
openmp	I-Code_Block	I-Output_Block
'	I-Code_Block	I-Output_Block
parallel	I-Code_Block	I-Output_Block
for	I-Code_Block	I-Output_Block
'	B-Code_Block	B-Output_Block
directive	I-Code_Block	I-Output_Block

It	O	O
seems	O	O
Visual	O	B-Application
Studio	O	I-Application
2017	O	B-Version
only	O	O
supports	O	O
OpenMP2	O	B-Library
.	O	O

In	O	O
a	O	O
request	O	O
to	O	O
support	O	O
OpenMP4.5	O	B-Library
it	O	O
was	O	O
said	O	O
from	O	O
VS	O	B-Application
team	O	O

Another	O	O
answer	O	O
said	O	O

How	O	O
to	O	O
use	O	O
clang-cl	O	B-Application
with	O	O
Visual	O	B-Application
Studio	O	I-Application
2017	O	B-Version
and	O	O
what	O	O
is	O	O
the	O	O
fallback	O	O
option	O	O
?	O	O

You	O	O
may	O	O
obtain	O	O
clang-cl	O	B-Application
from	O	O
http://llvm.org/builds/	O	O

But	O	O
you	O	O
may	O	O
run	O	O
into	O	O
integration	O	O
issues	O	O
starting	O	O
with	O	O
VS2017	O	B-Application
:	O	O

https://bugs.llvm.org/show_bug.cgi?id=33672	O	O

https://www.reddit.com/r/cpp/comments/6oepq4/making_windows_clang_401_play_nice_with_visual/	O	O

There	O	O
is	O	O
an	O	O
attempt	O	O
at	O	O
solving	O	O
this	O	O
:	O	O

https://github.com/WubbaLubba/LlvmForVS2017	O	O

/fallback	O	B-Code_Block
is	O	O
a	O	O
clang-cl	O	B-Application
option	O	O
which	O	O
makes	O	O
it	O	O
fall	O	O
back	O	O
to	O	O
Microsoft	O	B-Organization
's	O	O
compiler	O	B-Application
if	O	O
it	O	O
ca	O	O
n't	O	O
compile	O	O
something	O	O
itself	O	O
.	O	O

But	O	O
keep	O	O
in	O	O
mind	O	O
there	O	O
is	O	O
no	O	O
support	O	O
for	O	O
the	O	O
/MP	O	B-Code_Block
hack	O	O
:	O	O
http://clang-developers.42468.n3.nabble.com/clang-windows-clang-cl-support-for-MP-tp4045651p4045659.html	O	O

I	O	O
've	O	O
implemented	O	O
the	O	O
IQKeyboardManager	O	B-Library
framework	O	O
to	O	O
make	O	O
the	O	O
keyboard	O	B-Device
handle	O	O
easier	O	O
.	O	O

It	O	O
works	O	O
very	O	O
fine	O	O
,	O	O
except	O	O
for	O	O
one	O	O
thing	O	O
:	O	O

There	O	O
're	O	O
some	O	O
UItextField	B-Code_Block	B-Class
controls	O	O
in	O	O
my	O	O
app	O	O
which	O	O
open	O	O
a	O	O
UIDatePicker	B-Code_Block	B-Class
in	O	O
place	O	O
of	O	O
a	O	O
default	O	O
keyboard	O	B-Device
(	O	O
e.g	O	O
.	O	O
number	O	O
pad	O	B-User_Interface_Element
,	O	O
decimal	O	O
pad	O	B-User_Interface_Element
,	O	O
ASCII	O	O
capable	O	O
,	O	O
etc	O	O
.	O	O
)	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
code	O	O
sample	O	O
with	O	O
the	O	O
graphical	O	O
result	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
handle	O	O
the	O	O
action	O	O
on	O	O
the	O	O
"	O	O
OK	O	O
"	O	O
button	O	B-User_Interface_Element
to	O	O
fill	O	O
the	O	O
field	O	O
"	O	B-Value
Date	O	I-Value
de	O	I-Value
naissance	O	I-Value
"	O	I-Value
?	O	O

EDIT	O	O
:	O	O

For	O	O
the	O	O
ones	O	O
who	O	O
want	O	O
to	O	O
know	O	O
how	O	O
I	O	O
solved	O	O
my	O	O
problem	O	O
:	O	O

in	O	O
my	O	O
.h	O	B-File_Type
,	O	O
I	O	O
imported	O	O
IQDropDownTextField.h	B-Code_Block	B-File_Name
:	O	O

#import	B-Code_Block	B-Code_Block
"	I-Code_Block	I-Code_Block
IQDropDownTextField.h	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block

in	O	O
the	O	O
.h	O	B-File_Type
,	O	O
I	O	O
changed	O	O
the	O	O
type	O	O
of	O	O
my	O	O
UITextField	B-Code_Block	B-Class
to	O	O
IQDropDownTextField	B-Code_Block	B-Class
:	O	O

@property	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
weak	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
nonatomic	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
IBOutlet	B-Code_Block	B-Code_Block
IQDropDownTextField	I-Code_Block	I-Code_Block
*	I-Code_Block	I-Code_Block
myTextField	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

select	O	O
your	O	O
field	O	O
in	O	O
Interface	O	B-Application
Builder	O	I-Application
or	O	O
in	O	O
your	O	O
.xib	O	B-File_Type
,	O	O
and	O	O
show	O	O
the	O	O
Identity	O	B-Application
Inspector	O	I-Application
:	O	O
change	O	O
your	O	O
field	O	O
's	O	O
class	O	O
to	O	O
IQDropDownTextField	B-Code_Block	B-Class
.	O	O

Note	O	O
according	O	O
to	O	O
Mohd	O	B-User_Name
Iftekhar	O	I-User_Name
Qurashi	O	I-User_Name
comment	O	O
:	O	O
the	O	O
two	O	O
next	O	O
points	O	O
can	O	O
be	O	O
avoided	O	O
with	O	O
the	O	O
following	O	O
code	O	O
:	O	O

in	O	O
the	O	O
.m	O	B-File_Type
,	O	O
I	O	O
added	O	O
the	O	O
setCustomDoneTarget:action	B-Code_Block	B-Function
:	I-Code_Block	I-Function
method	O	O
:	O	O

in	O	O
the	O	O
.m	O	B-File_Type
,	O	O
I	O	O
added	O	O
the	O	O
doneAction	B-Code_Block	B-Function
:	I-Code_Block	I-Function
method	O	O
:	O	O

You	O	O
can	O	O
now	O	O
add	O	O
customised	O	O
selector	O	O
(	O	O
please	O	O
refer	O	O
'	B-Code_Block	O
IQUIView+	I-Code_Block	B-Class
IQKeyboardToolbar.h	I-Code_Block	B-File_Name
'	I-Code_Block	O
)	O	O
for	O	O
previous/next/done	B-Code_Block	B-Value
to	O	O
get	O	O
notify	O	O
.	O	O

Note	O	O
that	O	O
custom	O	O
selector	O	O
does	O	O
n't	O	O
affect	O	O
the	O	O
native	O	O
functionality	O	O
of	O	O
previous/next/done	B-Code_Block	B-Value
,	O	O
it	O	O
's	O	O
just	O	O
used	O	O
for	O	O
callback	O	O
purpose	O	O
only	O	O
.	O	O

For	O	O
detail	O	O
documentation	O	O
please	O	O
refer	O	O
'	B-Code_Block	O
IQUIView+	I-Code_Block	B-Class
IQKeyboardToolbar.h	I-Code_Block	B-File_Name
'	I-Code_Block	O
,	O	O
for	O	O
'	O	O
how	O	O
to	O	O
use	O	O
?	O	O
'	O	O

please	O	O
refer	O	O
'	O	O
TextFieldViewController.m	B-Code_Block	B-File_Name
'	O	O
.	O	O

I	O	O
need	O	O
help	O	O
I	O	O
get	O	O
this	O	O
error	O	O
every	O	O
time	O	O
on	O	O
my	O	O
website	O	O
Parse	O	B-Error_Name
error	O	I-Error_Name
:	O	O
syntax	O	B-Error_Name
error	O	I-Error_Name
,	O	O
unexpected	O	O
end	O	O
of	O	O
file	O	O
in	O	O
/var/www/html/dashboard.php	O	B-File_Name
on	O	O
line	O	O
1021	O	O

this	O	O
is	O	O
my	O	O
code	O	O

Can	O	O
somebody	O	O
please	O	O
help	O	O
me	O	O
in	O	O
tell	O	O
me	O	O
what	O	O
i	O	O
'm	O	O
doing	O	O
wrong	O	O
.	O	O

Which	O	O
line	O	O
is	O	O
line	O	O
1021	O	O
?	O	O

Taking	O	O
a	O	O
quick	O	O
look	O	O
at	O	O
it	O	O
you	O	O
are	O	O
missing	O	O
a	O	O
}	B-Code_Block	B-Code_Block
at	O	O
the	O	O
very	O	O
end	O	O
of	O	O
your	O	O
file	O	O
:	O	O

PHP	O	B-Language
is	O	O
still	O	O
waiting	O	O
for	O	O
that	O	O
closing	O	O
}	B-Code_Block	B-Code_Block
to	O	O
end	O	O
your	O	O
if	O	O
statement	O	O
which	O	O
is	O	O
why	O	O
you	O	O
are	O	O
getting	O	O
the	O	O
unexpected	O	B-Error_Name
end	O	I-Error_Name
of	O	I-Error_Name
file	O	I-Error_Name
error	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
export	O	O
Firewall	O	B-Application
logs	O	B-File_Type
and	O	O
it	O	O
is	O	O
giving	O	O
me	O	O
above	O	O
error	O	O
.	O	O

Both	O	O
client	O	B-Application
and	O	O
server	O	B-Application
are	O	O
Linux/Unix	O	B-Operating_System
based	O	O
server	O	B-Application
.	O	O

Can	O	O
anyone	O	O
help	O	O
?	O	O

SCP	O	O
syntax	O	O
goes	O	O
:	O	O
scp	B-Code_Block	B-Code_Block
[[user@]host1:]file1	I-Code_Block	I-Code_Block
..	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
[[user@]host2:]file2	I-Code_Block	I-Code_Block
.	O	O

Your	O	O
@	O	B-Value
symbols	O	O
will	O	O
definitely	O	O
confuse	O	O
scp	O	B-Code_Block
,	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
that	O	O
's	O	O
even	O	O
what	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
do	O	O
.	O	O

Run	O	O
your	O	O
export	O	B-Code_Block
first	O	O
and	O	O
then	O	O
export	O	O
the	O	O
resulting	O	O
file	O	O
.	O	O

i	O	O
have	O	O
to	O	O
convert	O	O
this	O	O
hql	O	B-Language
query	O	O
in	O	O
hibernate	O	B-Library
criteria	O	O
.	O	O

in	O	O
following	O	O
query	O	O
i	O	O
am	O	O
trying	O	O
to	O	O
count	O	O
#option	B-Code_Block	B-Code_Block
picked	O	O
by	O	O
various	O	O
user	O	O
during	O	O
a	O	O
survey	O	O
.	O	O

and	O	O
for	O	O
this	O	O
i	O	O
am	O	O
using	O	O
case	B-Code_Block	B-Code_Block
inside	O	O
count()	B-Code_Block	B-Function
method	O	O
.	O	O

my	O	O
hibernate	O	B-Library
version	O	B-Version
5.1	O	I-Version

how	O	O
to	O	O
write	O	O
.	O	O

I	O	O
'm	O	O
testing	O	O
new	O	O
JS/HTML5	O	B-Language
history	B-Code_Block	B-Function
methods	O	O
.	O	O

On	O	O
subpage	O	O
load	O	O
I	O	O
have	O	O
an	O	O
event	O	O
changing	O	O
the	O	O
URL	O	O
and	O	O
history	O	B-Function
state	O	O
:	O	O

Now	O	O
when	O	O
the	O	O
user	O	O
clicks	O	O
back	O	O
button	O	B-User_Interface_Element
the	O	O
history.state	B-Code_Block	B-Variable
and	O	O
the	O	O
URL	O	O
changes	O	O
,	O	O
but	O	O
without	O	O
loading	O	O
the	O	O
previous	O	O
page	O	O
(	O	O
without	O	O
refreshing	O	O
the	O	O
current	O	O
URL	O	O
)	O	O
.	O	O

I	O	O
tried	O	O
to	O	O
add	O	O
a	O	O
manual	O	O
refresh	O	O
on	O	O
the	O	O
history.state	B-Code_Block	B-Variable
change	O	O
,	O	O
I	O	O
found	O	O
something	O	O
like	O	O
this	O	O
:	O	O

but	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

Try	O	O
this	O	O
:	O	O

I	O	O
got	O	O
a	O	O
segmentation	O	B-Error_Name
fault	O	I-Error_Name
when	O	O
trying	O	O
to	O	O
use	O	O
one	O	O
cpp	O	B-File_Type
file	O	O
and	O	O
tried	O	O
to	O	O
locate	O	O
the	O	O
error	O	O
using	O	O
Valgrind	O	B-Application
,	O	O
but	O	O
I	O	O
'm	O	O
confused	O	O
.	O	O

Since	O	O
the	O	O
code	O	O
is	O	O
very	O	O
large	O	O
,	O	O
I	O	O
will	O	O
only	O	O
post	O	O
a	O	O
short	O	O
portion	O	O
of	O	O
it	O	O
below	O	O
:	O	O

It	O	O
looks	O	O
like	O	O
you	O	O
are	O	O
running	O	O
valgrind	O	B-Application
on	O	O
the	O	O
compiler	O	B-Application
.	O	O

Unless	O	O
you	O	O
are	O	O
trying	O	O
to	O	O
debug	O	O
the	O	O
compiler	O	B-Application
,	O	O
you	O	O
should	O	O
be	O	O
running	O	O
valgrind	O	B-Application
on	O	O
your	O	O
application	O	O
instead	O	O
:	O	O

(	O	O
replace	O	O
./MyApp	B-Code_Block	B-Value
with	O	O
the	O	O
appropriate	O	O
executable	O	O
name	O	O
and	O	O
arguments	O	O
,	O	O
of	O	O
course	O	O
)	O	O

(	O	O
Explanation	O	O
:	O	O
valgrind	O	B-Application
is	O	O
a	O	O
run-time	O	O
analysis	O	O
tool	O	O
;	O	O
it	O	O
takes	O	O
your	O	O
application	O	O
as	O	O
input	O	O
.	O	O

It	O	O
is	O	O
not	O	O
a	O	O
compiler	O	B-Application
tool	O	O
like	O	O
some	O	O
of	O	O
the	O	O
other	O	O
debugging	O	O
tools	O	O
that	O	O
are	O	O
out	O	O
there	O	O
)	O	O

I	O	O
have	O	O
the	O	O
following	O	O
example	O	O

So	O	O
that	O	O
works	O	O
just	O	O
fine.	O	O
.	O	O
but	O	O
in	O	O
my	O	O
aggregate	O	O
function	O	O
I	O	O
need	O	O
to	O	O
clear	O	O
out	O	O
the	O	O
self.counters	O	B-Variable
dict	O	B-Data_Structure
.	O	O

I	O	O
'm	O	O
having	O	O
issues	O	O
doing	O	O
this.	O	O
.	O	O

I	O	O
want	O	O
to	O	O
do	O	O
something	O	O
like	O	O

If	O	O
I	O	O
reference	O	O
self.counters	O	B-Variable
in	O	O
that	O	O
function	O	O
I	O	O
get	O	O

It	O	O
's	O	O
a	O	O
good	O	O
idea	O	O
to	O	O
include	O	O
a	O	O
runnable	O	O
example	O	O
of	O	O
your	O	O
problem	O	O
,	O	O
if	O	O
I	O	O
try	O	O
what	O	O
you	O	O
describe	O	O
it	O	O
works	O	O
fine	O	O
.	O	O

I	O	O
know	O	O
that	O	O
to	O	O
add	O	O
permissions	O	O
to	O	O
a	O	O
specific	O	O
user	O	O
,	O	O
you	O	O
format	O	O
a	O	O
permissions	O	O
resource	O	O
like	O	O
so	O	O
:	O	O

But	O	O
,	O	O
what	O	O
if	O	O
i	O	O
want	O	O
to	O	O
grant	O	O
read-only	O	O
access	O	O
to	O	O
anyone	O	O
?	O	O

I	O	O
guess	O	O
,	O	O
something	O	O
like	O	O
:	O	O

What	O	O
do	O	O
I	O	O
put	O	O
as	O	O
'	O	O
value	O	B-Variable
'	O	O
?	O	O

Well	O	O
,	O	O
it	O	O
turns	O	O
out	O	O
that	O	O
"	O	O
value	O	B-Variable
"	O	O
is	O	O
not	O	O
required	O	O
parameter	O	O
for	O	O
type	O	B-Code_Block
=	O	I-Code_Block
anyone	O	I-Code_Block
.	O	O

works	O	O
just	O	O
fine	O	O
.	O	O

I	O	O
posted	O	O
my	O	O
code	O	O
below	O	O
.	O	O

In	O	O
a	O	O
modal	O	O
I	O	O
have	O	O
a	O	O
editDependent	O	B-Function
as	O	O
model	O	O
in	O	O
a	O	O
modal	O	O
div	O	B-HTML_XML_Tag
which	O	O
is	O	O
in	O	O
a	O	O
page	O	O
employee.html	O	B-File_Name
which	O	O
is	O	O
routed	O	O
in	O	O
a	O	O
inner	O	O
div	O	B-HTML_XML_Tag
ui-view	O	I-HTML_XML_Tag
.	O	O

How	O	O
to	O	O
perform	O	O
the	O	O
two-way	O	O
binding	O	O
on	O	O
the	O	O
object	O	O
from	O	O
modal	O	O
and	O	O
send	O	O
it	O	O
to	O	O
save	O	O
?	O	O

I	O	O
explain	O	O
it	O	O
more	O	O
below	O	O
.	O	O

I	O	O
have	O	O
an	O	O
index	O	O
as	O	O
main	O	B-File_Name
html	O	B-File_Type
which	O	O
contains	O	O
a	O	O
ui-view	O	B-HTML_XML_Tag
.	O	O

I	O	O
control	O	O
the	O	O
routing	O	O

like	O	O
this	O	O

This	O	O
is	O	O
my	O	O
employee.html	O	B-File_Name

this	O	O
is	O	O
my	O	O
EmployeeService	O	B-Function
and	O	O
EmployeeController	O	B-Function

UPDATE	O	O

I	O	O
added	O	O
a	O	O
new	O	O
method	O	O
in	O	O
the	O	O
controller	O	O

And	O	O
I	O	O
linked	O	O
the	O	O
method	O	O
to	O	O
my	O	O
2	O	O
buttons(new/edit)	O	B-User_Interface_Element
with	O	O
ng-view="editDependent()"	O	B-Code_Block
but	O	O
$scope	O	B-Code_Block
is	O	O
still	O	O
undefined	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
have	O	O
a	O	O
kind	O	O
of	O	O
cascading	O	O
primary	O	B-Code_Block
key	O	I-Code_Block
like	O	O
given	O	O
below	O	O
.	O	O

Root	O	B-Variable
table	O	B-Data_Structure
:	O	O

Parent	O	B-Variable
table	O	B-Data_Structure
:	O	O

Child	O	B-Variable
table	O	B-Data_Structure
:	O	O

For	O	O
INSERT	O	B-Code_Block
statements	O	O
the	O	O
FOREIGN	O	B-Code_Block
KEY	O	I-Code_Block
part	O	O
will	O	O
be	O	O
given	O	O
,	O	O
e.g	O	O
.	O	O
like	O	O
:	O	O

Unfortunately	O	O
I	O	O
run	O	O
into	O	O
2	O	O
issues	O	O
:	O	O

id	B-Code_Block	B-Variable
of	O	O
child	O	O
table	O	B-Data_Structure
is	O	O
set	O	O
to	O	O
0	O	O
for	O	O
first	O	O
insert	O	B-Code_Block
(	O	O
even	O	O
though	O	O
declared	O	O
as	O	O
NOT	O	B-Value
NULL	O	I-Value
)	O	O

second	O	O
insert	O	B-Code_Block
with	O	O
same	O	O
id_root	B-Code_Block	B-Variable
and	O	O
id_parent	B-Code_Block	B-Variable
is	O	O
not	O	O
taking	O	O
place	O	O
(	O	O
guess	O	O
due	O	O
to	O	O
primary	O	B-Code_Block
key	O	I-Code_Block
violation	O	O
with	O	O
id	B-Code_Block	B-Code_Block
=	O	I-Code_Block
0	O	I-Code_Block
,	O	O
for	O	O
some	O	O
reason	O	O
mysql	O	B-Language
is	O	O
not	O	O
throwing	O	O
an	O	O
error	O	O
like	O	O
normally	O	O
)	O	O

I	O	O
have	O	O
played	O	O
with	O	O
UNIQUE	O	B-Code_Block
KEY	O	I-Code_Block
instead	O	O
of	O	O
PRIMARY	O	B-Code_Block
KEY	O	I-Code_Block
,	O	O
but	O	O
same	O	O
result	O	O
.	O	O

Auto_increment	O	B-Function
of	O	O
id	B-Code_Block	B-Variable
is	O	O
rejected	O	O
by	O	O
the	O	O
engine	O	B-Application
when	O	O
creating	O	O
the	O	O
table	O	B-Data_Structure
.	O	O

Apart	O	O
from	O	O
giving	O	O
the	O	O
id	B-Code_Block	B-Variable
value	O	O
e.g	O	O
.	O	O
through	O	O
triggers	O	O
,	O	O
is	O	O
there	O	O
another	O	O
way	O	O
to	O	O
make	O	O
this	O	O
work	O	O
?	O	O

I	O	O
have	O	O
defined	O	O
a	O	O
HotKey	B-Code_Block	B-Variable
Ctrl	B-Keyboard_IP	B-Keyboard_IP
+	I-Keyboard_IP	O
Space	I-Keyboard_IP	B-Keyboard_IP
to	O	O
activate	O	O
my	O	O
Windows	O	B-Operating_System
Form	O	B-User_Interface_Element
.	O	O

When	O	O
the	O	O
form	O	O
handles	O	O
this	O	O
HotKey	B-Code_Block	B-Variable
,	O	O
this	O	O
event	O	O
is	O	O
not	O	O
seen	O	O
by	O	O
the	O	O
system	O	O
.	O	O

Is	O	O
there	O	O
subsequently	O	O
any	O	O
way	O	O
to	O	O
unhandle	O	O
these	O	O
keystrokes	O	O
?	O	O

(	O	O
That	O	O
is	O	O
,	O	O
unregister	O	O
the	O	O
HotKey	B-Code_Block	B-Variable
.	O	O
)	O	O

Here	O	O
is	O	O
what	O	O
I	O	O
have	O	O
tried	O	O
:	O	O

Create	O	O
a	O	O
global	O	B-Data_Type
bool	O	I-Data_Type
variable	O	O
.	O	O

Set	O	O
its	O	O
value	O	O
to	O	O
false	O	B-Value
.	O	O

In	O	O
Windows	O	B-Operating_System
KeyDown	O	B-Function
event	O	O
check	O	O
if	O	O
that	O	O
bool	O	B-Data_Type
variable	O	O
is	O	O
true	O	B-Value
return	O	O
from	O	O
method	O	O
.	O	O

When	O	O
you	O	O
want	O	O
to	O	O
unhandle	O	O
these	O	O
keystrokes	O	O
set	O	O
its	O	O
value	O	O
to	O	O
true	O	B-Value
and	O	O
when	O	O
you	O	O
want	O	O
to	O	O
handle	O	O
these	O	O
keystrokes	O	O
set	O	O
its	O	O
value	O	O
to	O	O
false	O	B-Value
.	O	O

Now	O	O
you	O	O
just	O	O
have	O	O
to	O	O
set	O	O
this	O	O
flag	O	B-Variable
value	O	O
to	O	O
handle	O	O
or	O	O
unhandle	O	O
your	O	O
keystrokes	O	O
.	O	O

Is	O	O
there	O	O
any	O	O
example	O	O
code	O	O
of	O	O
a	O	O
cpython	O	B-Language
(	O	O
not	O	O
IronPython	O	B-Language
)	O	O
client	O	O
which	O	O
can	O	O
call	O	O
Windows	O	B-Library
Communication	O	I-Library
Foundation	O	I-Library
(	O	O
WCF	O	B-Library
)	O	O
service	O	O
?	O	O

WCF	O	B-Library
needs	O	O
to	O	O
expose	O	O
functionality	O	O
through	O	O
a	O	O
communication	O	O
protocol	O	O
.	O	O

I	O	O
think	O	O
the	O	O
most	O	O
commonly	O	O
used	O	O
protocol	O	O
is	O	O
probably	O	O
SOAP	O	O
over	O	O
HTTP	O	O
.	O	O

Let	O	O
's	O	O
assume	O	O
that	O	O
's	O	O
what	O	O
you	O	O
're	O	O
using	O	O
then	O	O
.	O	O

Take	O	O
a	O	O
look	O	O
at	O	O
this	O	O
chapter	O	O
in	O	O
Dive	O	O
Into	O	O
Python	O	B-Language
.	O	O

It	O	O
will	O	O
show	O	O
you	O	O
how	O	O
to	O	O
make	O	O
SOAP	O	O
calls	O	O
.	O	O

I	O	O
know	O	O
of	O	O
no	O	O
unified	O	O
way	O	O
of	O	O
calling	O	O
a	O	O
WCF	O	B-Library
service	O	O
in	O	O
Python	O	B-Language
,	O	O
regardless	O	O
of	O	O
communication	O	O
protocol	O	O
.	O	O

I	O	O
used	O	O
suds	O	B-Library
.	O	O

That	O	O
should	O	O
get	O	O
you	O	O
started	O	O
.	O	O

I	O	O
'm	O	O
able	O	O
to	O	O
connect	O	O
to	O	O
exposed	O	O
services	O	O
from	O	O
WCF	O	B-Library
and	O	O
a	O	O
RESTful	O	B-Library
layer	O	O
.	O	O

There	O	O
needs	O	O
to	O	O
be	O	O
some	O	O
data	O	O
massaging	O	O
to	O	O
help	O	O
do	O	O
what	O	O
you	O	O
need	O	O
,	O	O
especially	O	O
if	O	O
you	O	O
need	O	O
to	O	O
bind	O	O
to	O	O
several	O	O
namespaces	O	O
.	O	O

I	O	O
'm	O	O
having	O	O
an	O	O
issue	O	O
with	O	O
saving	O	O
the	O	O
time	O	O
into	O	O
my	O	O
SQL	O	B-Language
database	O	O
.	O	O

The	O	O
system	O	O
should	O	O
save	O	O
time	O	O
and	O	O
date	O	O
to	O	O
the	O	O
database	O	O
when	O	O
the	O	O
user	O	O
scans	O	O
into	O	O
the	O	O
building	O	O
.	O	O

At	O	O
the	O	O
current	O	O
moment	O	O
it	O	O
saves	O	O
date	O	O
but	O	O
time	O	O
is	O	O
saved	O	O
as	O	O
00:00	O	B-Value
.	O	O

I	O	O
had	O	O
problems	O	O
converting	O	O
the	O	O
date	O	O
to	O	O
SQL	O	B-Language
during	O	O
the	O	O
save	O	O
process	O	O
,	O	O
so	O	O
maybe	O	O
i	O	O
've	O	O
made	O	O
a	O	O
mistake	O	O
in	O	O
the	O	O
process	O	O
.	O	O

I	O	O
've	O	O
looked	O	O
at	O	O
it	O	O
for	O	O
ages	O	O
and	O	O
cant	O	O
see	O	O
why	O	O
it	O	O
wouldnt	O	O
save	O	O
the	O	O
time	O	O
as	O	O
well	O	O
.	O	O

Any	O	O
ideas	O	O
?	O	O

here	O	O
is	O	O
the	O	O
code	O	O
in	O	O
question	O	O

Thank	O	O
you	O	O

You	O	O
should	O	O
not	O	O
to	O	O
change	O	O
its	O	O
datatype	O	O
and	O	O
convert	O	O
it	O	O
to	O	O
string	B-Code_Block	B-Data_Type
,	O	O
just	O	O
pass	O	O
it	O	O
directly	O	O
to	O	O
the	O	O
database	O	O
if	O	O
you	O	O
have	O	O
column	O	B-Data_Structure
in	O	O
database	O	O
of	O	O
type	O	O
date	B-Code_Block	B-Class
or	O	O
datetime	B-Code_Block	B-Class
:	O	O

You	O	O
can	O	O
directly	O	O
pass	O	O
DateTime.Now	B-Code_Block	B-Variable
for	O	O
command	O	O
parameters	O	O
and	O	O
make	O	O
sure	O	O
database	O	O
column	O	B-Data_Structure
is	O	O
DateTime	B-Code_Block	B-Class
.	O	O

That	O	O
's	O	O
It	O	O
.	O	O

You	O	O
can	O	O
remove	O	O
below	O	O
from	O	O
your	O	O
code	O	O
as	O	O
It	O	O
is	O	O
not	O	O
required	O	O
at	O	O
all	O	O
.	O	O

I	O	O
am	O	O
using	O	O
SDL	O	B-Library
and	O	O
I	O	O
have	O	O
created	O	O
a	O	O
function	O	O
that	O	O
will	O	O
create	O	O
a	O	O
random	O	O
set	O	O
of	O	O
pieces	O	O
and	O	O
render	O	O
them	O	O
.	O	O

However	O	O
,	O	O
when	O	O
I	O	O
run	O	O
the	O	O
program	O	O
it	O	O
will	O	O
constantly	O	O
render	O	O
a	O	O
new	O	O
random	O	O
set	O	O
of	O	O
pieces	O	O
on	O	O
a	O	O
10	O	B-Value
by	O	I-Value
10	O	I-Value
grid	O	B-Data_Structure
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
know	O	O
how	O	O
I	O	O
can	O	O
get	O	O
it	O	O
so	O	O
render	O	O
once	O	O
and	O	O
no	O	O
longer	O	O
generate	O	O
a	O	O
new	O	O
set	O	O
,	O	O
but	O	O
still	O	O
be	O	O
able	O	O
to	O	O
edit	O	O
the	O	O
locations	O	O
.	O	O

This	O	O
is	O	O
the	O	O
function	O	O
I	O	O
have	O	O
for	O	O
generating	O	O
the	O	O
set	O	O
and	O	O
I	O	O
put	O	O
it	O	O
in	O	O
the	O	O
main	O	O
loop	O	O
.	O	O

Create	O	O
your	O	O
array	O	B-Data_Structure
"	O	O
loc	O	B-Variable
"	O	O
outside	O	O
of	O	O
your	O	O
location	O	O
generation	O	O
and	O	O
render	O	O
functions	O	O
.	O	O

Just	O	O
now	O	O
you	O	O
are	O	O
creating	O	O
a	O	O
new	O	O
array	O	B-Data_Structure
each	O	O
time	O	O
you	O	O
render	O	O
(	O	O
multiple	O	O
times	O	O
a	O	O
second	O	O
)	O	O
.	O	O

You	O	O
can	O	O
create	O	O
your	O	O
array	O	B-Data_Structure
once	O	O
,	O	O
and	O	O
then	O	O
pass	O	O
it	O	O
to	O	O
your	O	O
location	O	O
generation	O	O
function	O	O
which	O	O
can	O	O
alter	O	O
the	O	O
values	O	O
stored	O	O
in	O	O
your	O	O
array	O	B-Data_Structure
,	O	O
and	O	O
then	O	O
to	O	O
your	O	O
render	O	O
function	O	O
.	O	O

This	O	O
will	O	O
also	O	O
reduce	O	O
the	O	O
memory	O	O
use	O	O
of	O	O
your	O	O
program	O	O
.	O	O

I	O	O
may	O	O
be	O	O
misunderstanding	O	O
the	O	O
question	O	O
,	O	O
but	O	O
why	O	O
do	O	O
n't	O	O
you	O	O
make	O	O
a	O	O
class	O	O
with	O	O
a	O	O
function	O	O
to	O	O
generate	O	O
and	O	O
another	O	O
function	O	O
to	O	O
edit	O	O
the	O	O
locations	O	O
?	O	O

Your	O	O
code	O	O
for	O	O
execution	O	O
would	O	O
then	O	O
be	O	O
:	O	O

Simply	O	O
put	O	O
,	O	O
is	O	O
separating	O	O
the	O	O
functions	O	O
an	O	O
issue	O	O
?	O	O

I	O	O
have	O	O
text	O	B-File_Type
file	O	O
with	O	O
5	O	O
strings	O	B-Data_Type
.	O	O

I	O	O
need	O	O
to	O	O
use	O	O
NSURLConnection	O	B-Class
to	O	O
get	O	O
contnent	O	O
of	O	O
this	O	O
file	O	O
.	O	O

But	O	O
NSLog	O	B-Function
shows	O	O
me	O	O
,	O	O
that	O	O
'	O	O
dump	O	B-Variable
'	O	O
is	O	O
empty	O	O
.	O	O

How	O	O
can	O	O
I	O	O
transform	O	O
the	O	O
data	O	O
from	O	O
NSMutableData	O	B-Class
to	O	O
NSArray	O	B-Class
.	O	O

Arrays	O	B-Data_Structure
is	O	O
because	O	O
I	O	O
need	O	O
to	O	O
show	O	O
those	O	O
5	O	O
items	O	O
in	O	O
a	O	O
TableView	O	B-Class
.	O	O

Thanks	O	O
in	O	O
advance	O	O
.	O	O

BTW	O	O
URL	O	O
works	O	O
,	O	O
you	O	O
can	O	O
see	O	O
the	O	O
file	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
a	O	O
delegate	O	O
,	O	O
you	O	O
can	O	O
use	O	O
a	O	O
synchronous	O	O
call	O	O
with	O	O
NSURLConnection	O	B-Class
,	O	O
like	O	O
this	O	O
:	O	O

Just	O	O
beware	O	O
that	O	O
this	O	O
will	O	O
not	O	O
be	O	O
running	O	O
asynchronously	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
want	O	O
it	O	O
to	O	O
run	O	O
on	O	O
the	O	O
main	O	O
thread	O	O
and	O	O
block	O	O
your	O	O
main	O	O
thread/UI	O	O
,	O	O
consider	O	O
using	O	O
a	O	O
separate	O	O
thread	O	O
to	O	O
execute	O	O
that	O	O
code	O	O
or	O	O
use	O	O
GCD	O	O
.	O	O

You	O	O
need	O	O
to	O	O
implement	O	O
the	O	O
delegate	O	O
methods	O	O
for	O	O
NSURLConnection	O	B-Class
to	O	O
be	O	O
notified	O	O
of	O	O
incoming	O	O
data	O	O
.	O	O

You	O	O
are	O	O
using	O	O
the	O	O
asynchronous	O	O
methods	O	O
.	O	O

Also	O	O
note	O	O
that	O	O
[	B-Code_Block	B-Code_Block
NSMutableData	I-Code_Block	I-Code_Block
data	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
just	O	O
creates	O	O
an	O	O
empty	O	O
data-object	O	O
.	O	O
so	O	O
you	O	O
ca	O	O
n't	O	O
expect	O	O
it	O	O
to	O	O
contain	O	O
any	O	O
data	O	O
.	O	O

I	O	O
suggest	O	O
you	O	O
read	O	O
https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html#//apple_ref/doc/uid/20001836-BAJEAIEE	O	O

(	O	O
completely	O	O
!	O	O
)	O	O

this	O	O
code	O	O
select	O	O
from	O	O
table	O	B-Data_Structure
PrivateMessages	B-Code_Block	B-Variable
where	O	O
Sender==QueryString('idCompany')	B-Code_Block	B-Code_Block

this	O	O
code	O	O
work	O	O
fine	O	O
.	O	O

i	O	O
want	O	O
select	O	O
from	O	O
privateMessage	B-Code_Block	B-Variable
where	O	O
Sender	B-Code_Block	B-Code_Block
==	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
admin	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
???????	O	O
?	O	O

where	O	O
sender	O	B-Variable
equal	O	O
a	O	O
const	O	B-Data_Type
string	O	I-Data_Type
.	O	O

You	O	O
can	O	O
use	O	O
Selecting	B-Code_Block	B-Function
event	O	O
and	O	O
do	O	O
like	O	O
.	O	O

Or	O	O
you	O	O
can	O	O
replace	O	O
the	O	O
WhereParameters	B-Code_Block	B-HTML_XML_Tag
section	O	O
with	O	O
something	O	O
like	O	O

Depends	O	O
on	O	O
you	O	O
in	O	O
choosing	O	O
what	O	O
flavor	O	O
of	O	O
this	O	O
2	O	O
solutions	O	O
best	O	O
suits	O	O
this	O	O
scenario	O	O
.	O	O

I	O	O
have	O	O
a	O	O
quite	O	O
odd	O	O
problem	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
like	O	O
this	O	O
..	O	O
.	O	O

When	O	O
I	O	O
try	O	O
to	O	O
pass	O	O
a	O	O
string	O	B-Data_Type
to	O	O
my	O	O
controller	O	B-Class
action	O	O
(	O	O
.NET	O	B-Library
MVC	O	B-Algorithm
)	O	O
,	O	O
this	O	O
one	O	O
:	O	O

I	O	O
checked	O	O
in	O	O
the	O	O
console	O	B-Application
and	O	O
I	O	O
'm	O	O
getting	O	O
an	O	O
server	O	B-Error_Name
internal	O	I-Error_Name
error	O	I-Error_Name
500	O	I-Error_Name
..	O	O
.	O	O
To	O	O
make	O	O
things	O	O
worse	O	O
I	O	O
've	O	O
tested	O	O
whether	O	O
the	O	O
post	O	B-Function
will	O	O
work	O	O
with	O	O
different	O	O
kinds	O	O
of	O	O
titles	O	O
like	O	O
:	O	O
"	O	B-Value
super	O	I-Value
duper	O	I-Value
amoled	O	I-Value
TV	O	I-Value
"	O	I-Value
or	O	O
something	O	O
like	O	O
,	O	O
and	O	O
it	O	O
works.	O	O
.	O	O

I	O	O
suspect	O	O
that	O	O
the	O	O
issue	O	O
is	O	O
because	O	O
the	O	O
string	O	B-Data_Type
contains	O	O
special	O	O
characthers	O	O
like	O	O
'	O	B-Value
and	O	O
"	O	B-Value
..	O	O
.	O	O

This	O	O
is	O	O
the	O	O
post	O	B-Function
method	O	O
itself	O	O
:	O	O

First	O	O
post	O	B-Variable
data	O	I-Variable
and	O	O
now	O	O
the	O	O
post	O	B-Function
itself	O	O
:	O	O

And	O	O
now	O	O
the	O	O
Controller	O	B-Class
action	O	O
itself	O	O
:	O	O

With	O	O
the	O	O
title	O	O
itself	O	O
that	O	O
I	O	O
've	O	O
shown	O	O
above	O	O
,	O	O
action	O	O
does	O	O
n't	O	O
gets	O	O
triggered	O	O
at	O	O
all.	O	O
.	O	O

Instead	O	O
I	O	O
simply	O	O
get	O	O
internal	O	B-Error_Name
server	O	I-Error_Name
error	O	I-Error_Name
500	O	I-Error_Name
in	O	O
console	O	B-Application
..	O	O
.	O	O

How	O	O
could	O	O
I	O	O
fix	O	O
this	O	O
?	O	O

You	O	O
could	O	O
serialize	O	O
the	O	O
postData	B-Code_Block	B-Variable
and	O	O
expect	O	O
a	O	O
request	O	B-Class
object	O	O
at	O	O
the	O	O
action	O	O
which	O	O
can	O	O
further	O	O
be	O	O
de-serialized	O	O
to	O	O
obtain	O	O
individual	O	O
properties	O	O
.	O	O

Model	O	O
:	O	O

Controller	O	B-Class
Action	O	O
:	O	O

Update	O	O
:	O	O

Json	O	B-Data_Type
object	O	O
:	O	O

I	O	O
have	O	O
to	O	O
create	O	O
a	O	O
struct	O	B-Data_Structure
,	O	O
a	O	O
static	O	B-Data_Type
variable	O	O
to	O	O
keep	O	O
track	O	O
of	O	O
how	O	O
many	O	O
structs	O	B-Data_Structure
are	O	O
alive	O	O
and	O	O
also	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
all	O	O
current	O	O
structs	O	B-Data_Structure
.	O	O

I	O	O
'm	O	O
having	O	O
trouble	O	O
creating	O	O
this	O	O
list	O	B-Data_Structure
and	O	O
the	O	O
appropriate	O	O
constructor	O	O
.	O	O

So	O	O
far	O	O
I	O	O
have	O	O

As	O	O
you	O	O
can	O	O
see	O	O
I	O	O
tried	O	O
to	O	O
do	O	O
it	O	O
by	O	O
creating	O	O
a	O	O
static	O	B-Data_Type
array	O	B-Data_Structure
that	O	O
gets	O	O
added	O	O
to	O	O
as	O	O
part	O	O
of	O	O
the	O	O
constructor	O	O
,	O	O
but	O	O
the	O	O
compiler	O	B-Application
gives	O	O
me	O	O
an	O	O
error	O	O
:	O	O
"	O	B-Output_Block
lvalue	O	I-Output_Block
required	O	I-Output_Block
as	O	I-Output_Block
left	O	I-Output_Block
operand	O	I-Output_Block
of	O	I-Output_Block
assignment	O	I-Output_Block
"	O	I-Output_Block
in	O	O
the	O	O
place	O	O
I	O	O
indicated	O	O
.	O	O

It	O	O
's	O	O
not	O	O
letting	O	O
me	O	O
assign	O	O
new	O	O
structs	O	B-Data_Structure
to	O	O
my	O	O
static	O	B-Data_Type
array	O	B-Data_Structure
.	O	O

What	O	O
am	O	O
I	O	O
doing	O	O
wrong	O	O
?	O	O

Keep	O	O
in	O	O
mind	O	O
pointers	O	B-Data_Type
are	O	O
the	O	O
bane	O	O
of	O	O
my	O	O
life	O	O
so	O	O
please	O	O
explain	O	O
it	O	O
to	O	O
me	O	O
as	O	O
you	O	O
would	O	O
to	O	O
a	O	O
small	O	O
child	O	O
.	O	O

Thanks	O	O
a	O	O
lot	O	O
.	O	O

When	O	O
you	O	O
define	O	O
MyStruct	B-Code_Block	B-Code_Block
MyStruct::*	I-Code_Block	I-Code_Block
AllStructs	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block
,	O	O
all	O	O
you	O	O
are	O	O
doing	O	O
is	O	O
allocating	O	O
memory	O	O
for	O	O
one	O	O
single	O	O
pointer	O	B-Data_Type
to	O	O
a	O	O
MyStruct	B-Code_Block	B-Class
object	O	O
,	O	O
not	O	O
actually	O	O
creating	O	O
space	O	O
for	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
them	O	O
.	O	O

This	O	O
array	O	B-Data_Structure
you	O	O
want	O	O
needs	O	O
to	O	O
have	O	O
a	O	O
valid	O	O
memory	O	O
location	O	O
initialised	O	O
for	O	O
it	O	O
to	O	O
live	O	O
in	O	O
,	O	O
where	O	O
it	O	O
can	O	O
store	O	O
its	O	O
copy	O	O
of	O	O
all	O	O
the	O	O
pointers	O	B-Data_Type
you	O	O
want	O	O
it	O	O
to	O	O
.	O	O

That	O	O
's	O	O
likely	O	O
to	O	O
get	O	O
messy	O	O
though	O	O
,	O	O
so	O	O
you	O	O
should	O	O
use	O	O
a	O	O
static	O	B-Data_Type
std::vector	B-Code_Block	B-Class
instead	O	O
to	O	O
manage	O	O
the	O	O
memory	O	O
allocation	O	O
for	O	O
the	O	O
MyStruct	B-Code_Block	B-Class
.	O	O

Simple	O	O
as	O	O
this	O	O
:	O	O

Hope	O	O
that	O	O
helps	O	O
!	O	O

I	O	O
have	O	O
MySQL	O	B-Application
tables	O	B-Data_Structure
looking	O	O
like	O	O
that	O	O

regions	O	B-Variable
table	O	B-Data_Structure

..	O	O
.	O	O

and	O	O
schools	O	B-Variable
table	O	B-Data_Structure

There	O	O
are	O	O
multiple	O	O
select	O	O
(	O	O
dropdown	O	B-User_Interface_Element
)	O	O
menus	O	B-User_Interface_Element
in	O	O
my	O	O
registration	O	O
form	O	B-User_Interface_Element
.	O	O

The	O	O
regions	O	O
dropdown	O	B-User_Interface_Element
looks	O	O
like	O	O
that	O	O

I	O	O
want	O	O
to	O	O
populate	O	O
new	O	O
dropdown	O	B-User_Interface_Element
list	O	I-User_Interface_Element
based	O	O
on	O	O
previous	O	O
selections	O	O
.	O	O

What	O	O
i	O	O
want	O	O
to	O	O
do	O	O
is	O	O
,	O	O
get	O	O
"	O	O
regions	O	B-Variable
"	O	O
id	O	O
,	O	O
then	O	O
populate	O	O
schools	O	O
dropdown	O	B-User_Interface_Element
menu	O	I-User_Interface_Element
based	O	O
on	O	O
id	O	B-Variable
(	O	O
id	O	B-Variable
of	O	O
previous	O	O
selection	O	O
)	O	O
from	O	O
"	O	O
schools	O	B-Variable
"	O	O
table	O	B-Data_Structure
on	O	O
the	O	O
fly	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
but	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

My	O	O
js	O	B-Language
looks	O	O
like	O	O
that	O	O

and	O	O
search.php	O	B-File_Name

Please	O	O
help	O	O
me	O	O
to	O	O
finish	O	O
it	O	O
.	O	O

Thx	O	O
in	O	O
advance	O	O
.	O	O

You	O	O
're	O	O
calling	O	O
getschools()	B-Code_Block	B-Function
with	O	O
no	O	O
parameter	O	O
,	O	O
so	O	O
it	O	O
returns	O	O
nothing	O	O
.	O	O

You	O	O
were	O	O
supposed	O	O
to	O	O
pass	O	O
the	O	O
result	O	O
that	O	O
you	O	O
get	O	O
after	O	O
making	O	O
a	O	O
POST	O	O
request	O	O
to	O	O
the	O	O
search.php	B-Code_Block	B-File_Name
file	O	O
.	O	O

EDIT	O	O
:	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
that	O	O
this	O	O
will	O	O
work	O	O
,	O	O
as	O	O
I	O	O
've	O	O
not	O	O
tested	O	O
it	O	O
first	O	O
.	O	O

But	O	O
I	O	O
think	O	O
you	O	O
should	O	O
change	O	O

to	O	O

I	O	O
was	O	O
working	O	O
with	O	O
twilio	O	B-Application

my	O	O
case	O	O
is	O	O
when	O	O
user	O	O
make	O	O
a	O	O
call	O	O
IVR	O	B-Application
will	O	O
ask	O	O
for	O	O
user	O	O
mood	O	O
and	O	O
then	O	O
start	O	O
recording	O	O
for	O	O
10	O	O
second	O	O
,	O	O
take	O	O
that	O	O
recording	O	O
to	O	O
server	O	O
find	O	O
podcast	O	O
according	O	O
to	O	O
user	O	O
mood	O	O
and	O	O
send	O	O
back	O	O
TWIML	O	B-Language
with	O	O
podcast	O	O
mp3	O	B-File_Type
url	O	O
and	O	O
play	O	O
it	O	O
to	O	O
user	O	O

I	O	O
'm	O	O
done	O	O
with	O	O
this	O	O
job	O	O

now	O	O
i	O	O
want	O	O
to	O	O
implement	O	O
the	O	O
feature	O	O
in	O	O
which	O	O
when	O	O
user	O	O
user	O	O
say	O	O
"	O	B-Value
Skip	O	I-Value
"	O	I-Value
or	O	O
"	O	B-Value
I	O	I-Value
do	O	I-Value
n't	O	I-Value
like	O	I-Value
this	O	I-Value
one	O	I-Value
please	O	I-Value
skip	O	I-Value
"	O	I-Value
(	O	O
or	O	O
something	O	O
similar	O	O
which	O	O
i	O	O
will	O	O
handle	O	O
with	O	O
A	O	O
i)	O	O
immediately	O	O
stop	O	O
playing	O	O
and	O	O
goto	O	O
server	O	B-Application
and	O	O
get	O	O
another	O	O
podcast	O	O
mp3	O	B-File_Type
url	O	O
and	O	O
play	O	O
it	O	O

for	O	O
doing	O	O
this	O	O
i	O	O
need	O	O
to	O	O
do	O	O
something	O	O
like	O	O
this	O	O
:	O	O

but	O	O
doing	O	O
this	O	O
will	O	O
not	O	O
solve	O	O
my	O	O
problem	O	O
because	O	O
twilio	O	B-Application
will	O	O
start	O	O
recording	O	O
after	O	O
finish	O	O
playing	O	O
,	O	O
I	O	O
want	O	O
to	O	O
record	O	O
each	O	O
10	O	O
seconds	O	O
and	O	O
send	O	O
it	O	O
to	O	O
server	O	O
continuously	O	O
when	O	O
user	O	O
is	O	O
listening	O	O
podcast	O	O

each	O	O
time	O	O
when	O	O
we	O	O
get	O	O
recording	O	O
on	O	O
server	O	O
,	O	O
i	O	O
will	O	O
convert	O	O
recording	O	O
to	O	O
text	O	O
ad	O	O
check	O	O
if	O	O
user	O	O
said	O	O
"	O	O
skip	O	O
"	O	O
,	O	O
if	O	O
yes	O	O
i	O	O
will	O	O
modify	O	O
call	O	O
on	O	O
the	O	O
fly	O	O

Twilio	O	B-Application
developer	O	O
evangelist	O	O
here	O	O
.	O	O

I	O	O
'm	O	O
afraid	O	O
that	O	O
it	O	O
is	O	O
currently	O	O
not	O	O
possible*	O	O
to	O	O
record	O	O
slices	O	O
of	O	O
a	O	O
call	O	O
while	O	O
simultaneously	O	O
playing	O	O
an	O	O
mp3	O	B-File_Type
.	O	O

Can	O	O
I	O	O
suggest	O	O
that	O	O
rather	O	O
than	O	O
voice	O	O
you	O	O
use	O	O
a	O	O
key	O	O
press	O	O
for	O	O
this	O	O
functionality	O	O
instead	O	O
?	O	O

You	O	O
can	O	O
then	O	O
use	O	O
the	O	O
following	O	O
TwiML	O	B-Language
(	O	O
as	O	O
an	O	O
example	O	O
)	O	O

Then	O	O
you	O	O
will	O	O
need	O	O
an	O	O
endpoint	O	O
in	O	O
your	O	O
application	O	O
at	O	O
/voice/check	B-Code_Block	B-File_Name
-digits	I-Code_Block	I-File_Name
that	O	O
directs	O	O
the	O	O
user	O	O
onto	O	O
the	O	O
next	O	O
podcast	O	O
.	O	O

*	O	O
OK	O	O
,	O	O
it	O	O
might	O	O
be	O	O
possible	O	O
if	O	O
you	O	O
play	O	O
the	O	O
audio	O	O
into	O	O
a	O	O
conference	O	O
and	O	O
have	O	O
another	O	O
script	O	O
dial	O	O
into	O	O
the	O	O
conference	O	O
and	O	O
record	O	O
10	O	O
seconds	O	O
,	O	O
then	O	O
hangup	O	O
as	O	O
another	O	O
script	O	O
dials	O	O
in	O	O
to	O	O
start	O	O
recording	O	O
.	O	O

But	O	O
even	O	O
then	O	O
,	O	O
you	O	O
'd	O	O
be	O	O
trying	O	O
to	O	O
extract	O	O
the	O	O
voice	O	O
of	O	O
the	O	O
caller	O	O
from	O	O
the	O	O
audio	O	O
of	O	O
the	O	O
podcast	O	O
and	O	O
that	O	O
is	O	O
unlikely	O	O
to	O	O
be	O	O
accurate	O	O
at	O	O
all	O	O
.	O	O

Especially	O	O
if	O	O
a	O	O
voice	O	O
in	O	O
the	O	O
podcast	O	O
says	O	O
"	O	B-Value
skip	O	I-Value
"	O	I-Value
.	O	O

So	O	O
I	O	O
still	O	O
recommend	O	O
using	O	O
<Gather>	B-Code_Block	B-HTML_XML_Tag
!	O	O

I	O	O
have	O	O
script	O	O
for	O	O
asterisk	O	O

I	O	O
want	O	O
to	O	O
execute	O	O
this	O	O
script	O	O
from	O	O
build.xml	B-Code_Block	B-File_Name
file	O	O

this	O	O
version	O	O
does	O	O
not	O	O
work	O	O

Can	O	O
anybody	O	O
help	O	O
me	O	O
?	O	O

The	O	O
difference	O	O
between	O	O
you	O	O
command	O	B-Application
line	O	I-Application
and	O	O
the	O	O
Ant	O	B-Application
script	O	O
is	O	O
the	O	O
working	O	O
directory	O	O
.	O	O

One	O	O
is	O	O
the	O	O
current	O	O
one	O	O
,	O	O
the	O	O
other	O	O
is	O	O
the	O	O
asterisk	O	B-Value
one	O	O
.	O	O

Probably	O	O
you	O	O
just	O	O
want	O	O
to	O	O
do	O	O
:	O	O

In	O	O
Erlang	O	B-Language
is	O	O
there	O	O
a	O	O
way	O	O
reference	O	O
the	O	O
currently	O	O
executing	O	O
function	O	O
)	O	O
?	O	O

That	O	O
would	O	O
be	O	O
useful	O	O
to	O	O
spawn	O	O
an	O	O
infinite	O	O
loop	O	O
:	O	B-Code_Block

In	O	O
JavaScript	O	B-Language
arguments.callee	B-Code_Block	B-Function
does	O	O
just	O	O
that	O	O
,	O	O
see	O	O
the	O	O
specification	O	O
on	O	O
MDC	O	O
.	O	O

Edit	O	O
to	O	O
answer	O	O
a	O	O
'	O	O
why	O	O
would	O	O
you	O	O
do	O	O
that	O	O
'	O	O
:	O	O
mostly	O	O
curiosity	O	O
;	O	O
it	O	O
is	O	O
also	O	O
useful	O	O
to	O	O
define	O	O
a	O	O
timer	O	O
when	O	O
prorotyping	O	O
:	O	O

The	O	O
Erlang	O	B-Language
language	O	O
does	O	O
not	O	O
expose	O	O
any	O	O
way	O	O
for	O	O
anonymous	O	O
functions	O	O
to	O	O
refer	O	O
to	O	O
them	O	O
self	O	O
,	O	O
but	O	O
there	O	O
is	O	O
a	O	O
rumour	O	O
that	O	O
Core	O	B-Language
Erlang	O	I-Language
(	O	O
an	O	O
intermediate	O	O
but	O	O
official	O	O
representation	O	O
in	O	O
the	O	O
compiler	O	B-Application
phases	O	O
)	O	O
does	O	O
have	O	O
such	O	O
a	O	O
feature	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
why	O	O
I	O	O
am	O	O
forwarding	O	O
this	O	O
,	O	O
but	O	O
you	O	O
know	O	O
,	O	O
if	O	O
you	O	O
happen	O	O
to	O	O
be	O	O
generating	O	O
Core	O	B-Language
Erlang	O	I-Language
in	O	O
a	O	O
DSL	O	B-Language
or	O	O
similar	O	O
it	O	O
is	O	O
something	O	O
that	O	O
is	O	O
within	O	O
reach	O	O
.	O	O

In	O	O
Erlang/OTP	O	B-Language
17.0-rc1	O	B-Version
,	O	O
you	O	O
can	O	O
use	O	O
a	O	O
named	O	O
fun	O	O
for	O	O
that	O	O
:	O	O

In	O	O
earlier	O	O
versions	O	O
,	O	O
there	O	O
is	O	O
no	O	O
way	O	O
to	O	O
do	O	O
exactly	O	O
that	O	O
.	O	O

You	O	O
could	O	O
pass	O	O
the	O	O
function	O	O
itself	O	O
as	O	O
an	O	O
argument	O	O
:	O	O

I	O	O
am	O	O
developing	O	O
an	O	O
iOS	O	B-Operating_System
application	O	O
(	O	O
iPad	O	B-Device
)	O	O
,	O	O
my	O	O
problem	O	O
is	O	O
to	O	O
choose	O	O
how	O	O
to	O	O
store	O	O
my	O	O
data	O	O
(	O	O
I	O	O
have	O	O
an	O	O
equivalent	O	O
of	O	O
1Mb	O	O
of	O	O
data	O	O
)	O	O
.	O	O

What	O	O
is	O	O
the	O	O
best	O	O
one	O	O
to	O	O
choose	O	O
and	O	O
Why	O	O
?	O	O

(	O	O
Property	O	B-Data_Structure
list	O	I-Data_Structure
,	O	O
XML	O	B-Language
,	O	O
SQlite	O	B-Library
,	O	O
.	O	O
)	O	O
.	O	O

thanks	O	O
for	O	O
our	O	O
answers	O	O
.	O	O

That	O	O
's	O	O
not	O	O
enough	O	O
information	O	O
to	O	O
answer	O	O
your	O	O
question	O	O
properly	O	O
.	O	O

There	O	O
are	O	O
a	O	O
lot	O	O
of	O	O
factors	O	O
that	O	O
affect	O	O
the	O	O
decision	O	O
.	O	O

Persistence	O	O
libraries	O	O
and	O	O
frameworks	O	O
all	O	O
have	O	O
very	O	O
special	O	O
constraints	O	O
and	O	O
learning	O	O
curves	O	O
.	O	O

Here	O	O
are	O	O
some	O	O
questions	O	O
to	O	O
be	O	O
taken	O	O
into	O	O
account	O	O
:	O	O

What	O	O
kind	O	O
of	O	O
data	O	O
?	O	O

How	O	O
much	O	O
data	O	O
?	O	O

How	O	O
often	O	O
does	O	O
the	O	O
data	O	O
change	O	O
and	O	O
in	O	O
which	O	O
patterns	O	O
?	O	O

Where	O	O
does	O	O
the	O	O
data	O	O
come	O	O
from	O	O
(	O	O
server	O	B-Application
,	O	O
user	O	O
input	O	O
)	O	O

Do	O	O
you	O	O
want	O	O
to	O	O
synchronize	O	O
data	O	O
(	O	O
iCloud	O	B-Application
,	O	O
Dropbox	O	B-Application
,	O	O
other	O	O
services	O	O
)	O	O

What	O	O
are	O	O
typical	O	O
access	O	O
patterns	O	O
?	O	O

(	O	O
Database	O	O
vs	O	O
.	O	O
whole	O	O
file	O	O
)	O	O

Shall	O	O
the	O	O
data	O	O
be	O	O
portable	O	O
?	O	O

TextView	O	B-Class
has	O	O
setText(String)	O	B-Function
,	O	O
but	O	O
when	O	O
looking	O	O
on	O	O
the	O	O
Doc	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
see	O	O
one	O	O
for	O	O
GridLayout	O	B-Class
.	O	O

Is	O	O
there	O	O
an	O	O
adapter	O	B-Class
or	O	O
something	O	O
that	O	O
I	O	O
need	O	O
to	O	O
use	O	O
instead	O	O
?	O	O

If	O	O
so	O	O
,	O	O
which	O	O
one	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O
for	O	O
any	O	O
of	O	O
the	O	O
help	O	O
.	O	O

GridLayout	B-Code_Block	B-Class
is	O	O
a	O	O
ViewGroup	B-Code_Block	B-Class
,	O	O
to	O	O
which	O	O
you	O	O
can	O	O
only	O	O
add	O	O
views	O	O
;	O	O
if	O	O
you	O	O
want	O	O
to	O	O
make	O	O
a	O	O
calendar	O	B-Application
,	O	O
it	O	O
would	O	O
be	O	O
better	O	O
to	O	O
use	O	O
a	O	O
GridView	B-Code_Block	B-Class
.	O	O

for	O	O
the	O	O
GridView	B-Code_Block	B-Class
,	O	O
create	O	O
an	O	O
adapter	O	B-Class
which	O	O
extends	O	O
BaseAdapter	B-Code_Block	B-Class
,	O	O
and	O	O
use	O	O
TextView	B-Code_Block	B-Class
for	O	O
the	O	O
grid	O	O
's	O	O
layout	O	O
.	O	O

here	O	O
is	O	O
an	O	O
example	O	O
.	O	O

We	O	O
can	O	O
create	O	O
many	O	O
wrapper	O	O
scripts	O	O
to	O	O
call	O	O
specific	O	O
binary	O	B-File_Type
files	O	O
and	O	O
use	O	O
alias	O	O
to	O	O
point	O	O
to	O	O
different	O	O
string	O	B-Data_Type
.	O	O

My	O	O
requirement	O	O
is	O	O
we	O	O
need	O	O
to	O	O
call	O	O
the	O	O
alias	O	O
string	O	B-Data_Type
in	O	O
exec	O	B-Function
system	O	O
call	O	O
.	O	O

If	O	O
we	O	O
run	O	O
that	O	O
string	O	B-Data_Type
directly	O	O
in	O	O
exec	O	B-Function
call	O	O
,	O	O
the	O	O
system	O	O
call	O	O
fails	O	O

Ex	O	O
:	O	O

The	O	O
above	O	O
execl	O	B-Function
system	O	O
call	O	O
fails	O	O
.	O	O

I	O	O
think	O	O
it	O	O
is	O	O
unable	O	O
to	O	O
find	O	O
alias	O	O
string	O	B-Data_Type
in	O	O
the	O	O
PATH	O	B-Variable
and	O	O
that	O	O
is	O	O
expected	O	O
.	O	O

How	O	O
to	O	O
get	O	O
away	O	O
from	O	O
this	O	O
problem	O	O
?	O	O

?	O	O

The	O	O
usage	O	O
of	O	O
ksh/bash	O	B-Application
with	O	O
command	O	O
as	O	O
options	O	O
worked	O	O
like	O	O
a	O	O
charm	O	O
.	O	O

Thanks	O	O

I	O	O
need	O	O
to	O	O
get	O	O
all	O	O
fields	O	O
of	O	O
a	O	O
row	O	B-Data_Structure
who	O	O
has	O	O
min	O	B-Function
sqrt	O	I-Function
value	O	O
for	O	O
one	O	O
column	O	B-Data_Structure

The	O	O
min	O	B-Function
function	O	O
works	O	O
perfectly	O	O
But	O	O
the	O	O
name	O	B-Function
and	O	O
dist	O	B-Function
would	O	O
always	O	O
return	O	O
from	O	O
first	O	O
row	O	B-Data_Structure
.	O	O

Eg	O	O
.	O	O

Min	O	B-Function
was	O	O
from	O	O
5th	O	O
row	O	B-Data_Structure
even	O	O
then	O	O
name	O	B-Function
and	O	O
dist	O	B-Function
would	O	O
be	O	O
of	O	O
first	O	O
row	O	B-Data_Structure

mysql	O	B-Application
version	O	O

I	O	O
have	O	O
a	O	O
configuration	O	O
that	O	O
has	O	O
a	O	O
hardcoded	O	O
resolution	O	O
of	O	O
1200x800	B-Code_Block	O
,	O	O
however.	O	O
.	O	O

in	O	O
the	O	O
onPrepare	B-Code_Block	B-Function
I	O	O
like	O	O
to	O	O
check	O	O
the	O	O
user-agent	B-Code_Block	B-Variable
string	O	B-Data_Type
to	O	O
see	O	O
if	O	O
someone	O	O
is	O	O
trying	O	O
to	O	O
test	O	O
iPhone	O	B-Device
or	O	O
iPad	O	B-Device
.	O	O
then	O	O
I	O	O
change	O	O
the	O	O
resolution	O	O
accordingly	O	O
.	O	O

This	O	O
works	O	O
great	O	O
with	O	O
plain	O	O
old	O	O
protractor/nodeJS	O	B-Library
,	O	O
but	O	O
when	O	O
I	O	O
try	O	O
to	O	O
use	O	O
my	O	O
grunt	O	B-Application
task	O	O
.	O	O
it	O	O
completely	O	O
ignores	O	O
the	O	O
updated	O	O
resolution	O	O
of	O	O
375x667	B-Code_Block	B-Value
and	O	O
runs	O	O
with	O	O
the	O	O
default	O	O
.	O	O

What	O	O
I	O	O
think	O	O
might	O	O
be	O	O
occurring	O	O
was	O	O
a	O	O
version	O	O
mismatch	O	O
perhaps	O	O
,	O	O
but	O	O
unsure	O	O
how	O	O
to	O	O
fix/track	O	O
this	O	O
behavior	O	O
down	O	O
.	O	O

Ideas	O	O
?	O	O

mytestconfig.conf.js	B-Code_Block	B-File_Name

I	O	O
have	O	O
the	O	O
following	O	O
recurrence	O	O
:	O	O

It	O	O
can	O	O
be	O	O
solved	O	O
directly	O	O
with	O	O
a	O	O
theorem	O	O
called	O	O
"	O	O
Subtraction	O	B-Algorithm
and	O	I-Algorithm
Conquer	O	I-Algorithm
"	O	O
,	O	O
but	O	O
in	O	O
this	O	O
case	O	O
I	O	O
'm	O	O
interested	O	O
in	O	O
the	O	O
back	O	B-Algorithm
substitution	O	I-Algorithm
method	O	O
.	O	O

I	O	O
tried	O	O
the	O	O
solution	O	O
below	O	O
but	O	O
I	O	O
'm	O	O
almost	O	O
certain	O	O
that	O	O
I	O	O
've	O	O
committed	O	O
some	O	O
error	O	O
because	O	O
I	O	O
ca	O	O
n't	O	O
see	O	O
how	O	O
to	O	O
build	O	O
the	O	O
final	O	O
equation	O	O
..	O	O
.	O	O
,	O	O
below	O	O
my	O	O
attempt	O	O
:	O	O

1st	O	O
iteration	O	O

2nd	O	O
iteration	O	O

3rd	O	O
iteration	O	O

Attempt	O	O
to	O	O
find	O	O
the	O	O
equation	O	O
:	O	O

I	O	O
have	O	O
following	O	O
code	O	O
.	O	O

Why	O	O
do	O	O
all	O	O
the	O	O
three	O	O
objects	O	O
refer	O	O
to	O	O
the	O	O
same	O	O
array	O	B-Data_Structure
while	O	O
the	O	O
string	O	B-Data_Type
variable	O	O
is	O	O
independent	O	O
?	O	O

How	O	O
can	O	O
I	O	O
fix	O	O
it	O	O
without	O	O
explicitly	O	O
adding	O	O
:	O	O
function	O	B-Code_Block
B()	O	I-Code_Block
{	O	I-Code_Block
this.arr	O	I-Code_Block
=	O	I-Code_Block
[	O	B-Code_Block
]	O	B-Code_Block
;	O	B-Code_Block
}	O	I-Code_Block

An	O	O
explanation	O	O
would	O	O
be	O	O
:	O	O

Prototypes	O	O
are	O	O
live	O	O
chains	O	O
between	O	O
objects	O	O
.	O	O

Because	O	O
B	O	B-Function
's	O	O
prototype	O	O
is	O	O
a	O	O
single	O	O
tone	O	O
instance	O	O
of	O	O
A	O	B-Function
,	O	O
the	O	O
array	O	B-Data_Structure
prop	O	O
is	O	O
passed	O	O
by	O	O
reference	O	O
.	O	O

This	O	O
means	O	O
that	O	O
for	O	O
each	O	O
B	O	B-Function
instance	O	O
we	O	O
have	O	O
access	O	O
to	O	O
the	O	O
same	O	O
A	O	B-Function
instance	O	O
on	O	O
the	O	O
prototype	O	O
.	O	O

This	O	O
might	O	O
sound	O	O
confusing	O	O
at	O	O
first	O	O
but	O	O
that	O	O
's	O	O
the	O	O
magic	O	O
of	O	O
prototypes	O	O
in	O	O
JavaScript	O	B-Language
.	O	O

This	O	O
is	O	O
the	O	O
caveat	O	O
of	O	O
prototypal	O	O
inheritance	O	O
.	O	O

Anything	O	O
on	O	O
the	O	O
prototype	O	O
will	O	O
be	O	O
passed	O	O
down	O	O
to	O	O
each	O	O
instance	O	O
.	O	O

To	O	O
maintain	O	O
different	O	O
instances	O	O
of	O	O
the	O	O
attribute	O	O
we	O	O
initialise	O	O
our	O	O
object	O	O
's	O	O
attributes	O	O
in	O	O
the	O	O
constructor	O	O
.	O	O

When	O	O
working	O	O
with	O	O
objects	O	O
in	O	O
JS	O	B-Language
(	O	O
like	O	O
arrays	O	B-Data_Structure
)	O	O
,	O	O
they	O	O
are	O	O
passed	O	O
by	O	O
reference	O	O
.	O	O

To	O	O
make	O	O
use	O	O
of	O	O
JS	O	B-Language
's	O	O
prototype	O	O
system	O	O
I	O	O
would	O	O
suggest	O	O
something	O	O
like	O	O
so	O	O
:	O	O

This	O	O
way	O	O
we	O	O
reuse	O	O
the	O	O
methods	O	O
from	O	O
the	O	O
"	O	O
parent	O	O
"	O	O
and	O	O
have	O	O
a	O	O
localised	O	O
array	O	B-Data_Structure
in	O	O
our	O	O
"	O	O
child	O	O
"	O	O
.	O	O

At	O	O
a	O	O
first	O	O
glance	O	O
this	O	O
might	O	O
look	O	O
as	O	O
a	O	O
classic	O	O
OOP	O	O
inheritance	O	O
case	O	O
but	O	O
it	O	O
is	O	O
a	O	O
bit	O	O
different	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
read	O	O
more	O	O
about	O	O
prototypes	O	O
in	O	O
JS	O	B-Language
I	O	O
recommend	O	O
this	O	O
article	O	O

Hope	O	O
this	O	O
helps	O	O
.	O	O

Hi	O	O
all	O	O
I	O	O
have	O	O
a	O	O
problem	O	O
with	O	O
CSV	O	B-File_Type
opening	O	O
through	O	O
PHP	O	B-Language
code	O	O
.	O	O

My	O	O
PHP	O	B-Language
code	O	O
is	O	O
:	O	O

The	O	O
problem	O	O
is	O	O
n't	O	O
in	O	O
PHP	O	B-Language
code	O	O
,	O	O
the	O	O
problem	O	O
is	O	O
in	O	O
.csv	O	B-File_Type
file	O	O
.	O	O

PHP	O	B-Language
code	O	O
must	O	O
work	O	O
even	O	O
if	O	O
there	O	O
is	O	O
missing	O	O
comma	O	O
,	O	O
when	O	O
it	O	O
show	O	O
the	O	O
information	O	O
the	O	O
normal	O	O
way	O	O
.	O	O

The	O	O
.csv	O	B-File_Type
file	O	O
:	O	O

The	O	O
problem	O	O
is	O	O
most	O	O
likely	O	O
to	O	O
do	O	O
with	O	O
lines	O	O
like	O	O
:	O	O

Where	O	O
there	O	O
is	O	O
no	O	O
city	O	O
information	O	O
.	O	O

In	O	O
this	O	O
case	O	O
,	O	O
you	O	O
'll	O	O
never	O	O
get	O	O
"	O	B-Value
9876542	O	I-Value
"	O	I-Value
to	O	O
show	O	O
up	O	O
in	O	O
the	O	O
phone	O	B-Variable
column	O	B-Data_Structure
unless	O	O
you	O	O
apply	O	O
some	O	O
logic	O	O
to	O	O
determine	O	O
that	O	O
this	O	O
is	O	O
n't	O	O
the	O	O
city	O	B-Variable
,	O	O
and	O	O
to	O	O
skip	O	O
to	O	O
the	O	O
next	O	O
column	O	B-Data_Structure
.	O	O

What	O	O
you	O	O
should	O	O
do	O	O
though	O	O
,	O	O
so	O	O
that	O	O
you	O	O
have	O	O
6	O	O
columns	O	B-Data_Structure
in	O	O
each	O	O
row	O	B-Data_Structure
,	O	O
is	O	O
that	O	O
instead	O	O
of	O	O
resetting	O	O
$max	O	B-Variable
every	O	O
time	O	O
,	O	O
you	O	O
should	O	O
just	O	O
set	O	O
it	O	O
once	O	O
after	O	O
reading	O	O
the	O	O
header	O	O
.	O	O

Then	O	O
display	O	O
that	O	O
number	O	O
of	O	O
columns	O	B-Data_Structure
from	O	O
each	O	O
row	O	B-Data_Structure
you	O	O
read	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
build	O	O
a	O	O
structure	O	O
called	O	O
PROCESS	O	B-Class
in	O	O
C	O	B-Language
,	O	O
this	O	O
struct	O	B-Data_Structure
should	O	O
contain	O	O
the	O	O
ID(id)	O	B-Variable
and	O	O
waiting	O	O
time	O	O
(	O	O
wt	O	B-Variable
)	O	O
of	O	O
the	O	O
process	O	B-Class

now	O	O
i	O	O
want	O	O
to	O	O
make	O	O
more	O	O
then	O	O
one	O	O
instance	O	O
of	O	O
this	O	O
struct	O	B-Data_Structure
like	O	O
an	O	O
array	O	B-Data_Structure
.	O	O

what	O	O
i	O	O
want	O	O
to	O	O
do	O	O
is	O	O
something	O	O
like	O	O
this	O	O

but	O	O
i	O	O
want	O	O
to	O	O
do	O	O
it	O	O
using	O	O
dynamic	O	O
memory	O	O
allocation	O	O
:	O	O

what	O	O
is	O	O
my	O	O
mistake	O	O

I	O	O
would	O	O
allocate	O	O
like	O	O
this->	O	O

Write->	O	O

Read->	O	O

Free	O	B-Function
when	O	O
done.	O	O
.	O	O

/A	O	O

pt	B-Code_Block	B-Variable
is	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
PROCESS	B-Code_Block	B-Class
,	O	O
pt[0]	B-Code_Block	B-Variable
is	O	O
the	O	O
first	O	O
PROCESS	B-Code_Block	B-Class
object	O	O
pointed	O	O
to	O	O
by	O	O
pt	B-Code_Block	B-Variable
.	O	O

The	O	O
->	B-Code_Block	B-Code_Block
operator	O	O
to	O	O
access	O	O
members	O	O
of	O	O
a	O	O
struct	O	B-Data_Structure
must	O	O
be	O	O
used	O	O
with	O	O
pointers	O	B-Data_Type
only	O	O
,	O	O
otherwise	O	O
use	O	O
.	B-Code_Block	B-Code_Block

would	O	O
be	O	O
correct.1	O	O

An	O	O
since	O	O
you	O	O
say	O	O
you	O	O
are	O	O
doing	O	O
C	O	B-Language
,	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
cast	O	O
malloc	B-Code_Block	B-Function
or	O	O
calloc	B-Code_Block	B-Function
.	O	O

Also	O	O
do	O	O
n't	O	O
forget	O	O
to	O	O
check	O	O
the	O	O
return	O	O
value	O	O
of	O	O
calloc	B-Code_Block	B-Function
and	O	O
do	O	O
n't	O	O
forget	O	O
to	O	O
free	O	O
the	O	O
memory	O	O
later	O	O
with	O	O
free(pt)	B-Code_Block	B-Function
;	I-Code_Block	I-Function
.	O	O

Fotenotes	O	O

1Note	O	O
that	O	O
this	O	O
would	O	O
be	O	O
equivalent	O	O
to	O	O

but	O	O
if	O	O
you	O	O
want	O	O
to	O	O
set	O	O
id	B-Code_Block	B-Variable
of	O	O
the	O	O
second	O	O
element	O	O
,	O	O
you	O	O
would	O	O
need	O	O
to	O	O
do	O	O

but	O	O
I	O	O
think	O	O
it	O	O
's	O	O
more	O	O
readable	O	O
to	O	O
do	O	O

Suppose	O	O
the	O	O
array	O	B-Data_Structure
is	O	O
:	O	O

I	O	O
want	O	O
to	O	O
copy	O	O
the	O	O
diamond	O	B-User_Interface_Element
arrangement	O	O
,	O	O
i.e	O	O
.	O	O
the	O	O
elements	O	O
d	O	B-Variable
,	O	O
b	O	B-Variable
,	O	O
f	O	B-Variable
,	O	O
h	O	B-Variable
,	O	O
e	O	B-Variable
into	O	O
a	O	O
new	O	O
1D	O	O
array	O	B-Data_Structure
.	O	O

The	O	O
above	O	O
array	O	B-Data_Structure
is	O	O
just	O	O
an	O	O
example	O	O
,	O	O
the	O	O
matrix	O	B-Data_Structure
could	O	O
be	O	O
any	O	O
size	O	O
rectangular	O	O
matrix	O	B-Data_Structure
and	O	O
the	O	O
location	O	O
of	O	O
the	O	O
diamond	O	B-User_Interface_Element
can	O	O
be	O	O
anywhere	O	O
within	O	O
the	O	O
array	O	B-Data_Structure
.	O	O

Assuming	O	O
that	O	O
you	O	O
are	O	O
looking	O	O
only	O	O
for	O	O
5-elements	O	O
diamonds	O	B-User_Interface_Element
,	O	O
in	O	O
the	O	O
order	O	O
you	O	O
specified	O	O
,	O	O
you	O	O
could	O	O
do	O	O
:	O	O

This	O	O
works	O	O
by	O	O
building	O	O
a	O	O
mask	O	O
(	O	O
logical	O	O
index	O	O
)	O	O
with	O	O
the	O	O
desired	O	O
diamond	O	B-User_Interface_Element
shape	O	O
and	O	O
a	O	O
specified	O	O
center	O	O
.	O	O

The	O	O
mask	O	O
is	O	O
obtained	O	O
by	O	O
computing	O	O
the	O	O
L1	O	O
(	O	O
or	O	O
taxicab	O	O
)	O	O
distance	O	O
from	O	O
each	O	O
entry	O	O
to	O	O
the	O	O
diamond	O	B-User_Interface_Element
center	O	O
and	O	O
comparing	O	O
to	O	O
the	O	O
appropriate	O	O
threshold	O	O
:	O	O

I	O	O
tried	O	O
.NET	O	B-Application
Reactor	O	I-Application
with	O	O
a	O	O
simple	O	O
Managed	O	B-Library
Extensibility	O	I-Library
Framework	O	I-Library
(	O	O
MEF	O	B-Library
)	O	O
application	O	O
.	O	O

The	O	O
host	O	O
could	O	O
n't	O	O
load	O	O
adpators	O	O
and	O	O
addins	O	O
.	O	O

There	O	O
is	O	O
no	O	O
forum	O	O
support	O	O
from	O	O
.NET	O	B-Application
Reactor	O	I-Application
,	O	O
so	O	O
stackoverlow	O	B-Website
seems	O	O
the	O	O
best	O	O
place	O	O
to	O	O
ask	O	O
this	O	O
question	O	O
.	O	O

:)	O	O

Given	O	O
the	O	O
specificity	O	O
of	O	O
your	O	O
issue	O	O
you	O	O
should	O	O
consider	O	O
contacting	O	O
Eziriz	O	B-User_Name
directly	O	O
,	O	O
however	O	O
as	O	O
long	O	O
as	O	O
you	O	O
do	O	O
n't	O	O
obfuscate	O	O
the	O	O
metadata	O	O
of	O	O
the	O	O
types	O	O
exported	O	O
everything	O	O
should	O	O
work	O	O
fine	O	O
.	O	O

Mind	O	O
that	O	O
as	O	O
soon	O	O
as	O	O
you	O	O
'll	O	O
obfuscate	O	O
the	O	O
metadata	O	O
of	O	O
a	O	O
public	O	B-Data_Type
type	O	O
used	O	O
elsewhere	O	O
things	O	O
will	O	O
most	O	O
likely	O	O
break	O	O
.	O	O

As	O	O
per	O	O
my	O	O
requirement	O	O
main	O	O
page	O	O
contains	O	O
TextField	O	B-Class
and	O	O
radio	O	B-User_Interface_Element
button	O	I-User_Interface_Element
.	O	O

Scenario	O	O
1	O	O
:	O	O
when	O	O
the	O	O
user	O	O
enter	O	O
"	O	O
locationno	O	B-Variable
"	O	O
in	O	O
TextField	O	B-Class
and	O	O
submit	O	O
servlet	O	B-Library
will	O	O
call	O	O
DB	O	O
and	O	O
fetch	O	O
records	O	O
for	O	O
entered	O	O
locationno	O	B-Variable
from	O	O
Database	O	O
and	O	O
forward	O	B-Function
to	O	O
locationDetails	O	B-File_Name
page.its	O	O
working	O	O
fine	O	O

Scenario	O	O
2	O	O
:	O	O
when	O	O
the	O	O
user	O	O
enter	O	O
enters	O	O
locationno	O	O
in	O	O
TextField	O	B-Class
simultaneously	O	O
click	O	O
radio	O	B-User_Interface_Element
button	O	I-User_Interface_Element
servlet	O	B-Library
will	O	O
call	O	O
DB	O	O
and	O	O
fetch	O	O
all	O	O
details	O	O
for	O	O
the	O	O
particular	O	O
locationno	O	B-Variable
and	O	O
forward	O	B-Function
to	O	O
locationAllDetails	O	B-File_Name
page.Here	O	O
it	O	O
is	O	O
fetching	O	O
records	O	O
proper	O	O
but	O	O
it	O	O
always	O	O
forward	O	B-Function
to	O	O
locationDetails	O	B-File_Name
page	O	O
instead	O	O
of	O	O
locationAllDetails	O	B-File_Name
page	O	O
.	O	O

When	O	O
I	O	O
click	O	O
submit	O	O
button	O	B-User_Interface_Element
after	O	O
enter	O	O
TextField	O	B-Class
and	O	O
radio	O	B-User_Interface_Element
button	O	I-User_Interface_Element
in	O	O
the	O	O
log	O	O
it	O	O
shows	O	O
Outputtype	O	O
(	O	O
radio	O	B-User_Interface_Element
button	O	I-User_Interface_Element
name	O	O
)	O	O
as	O	O
"	O	B-Value
ALL	O	I-Value
"	O	I-Value
but	O	O
still	O	O
it	O	O
always	O	O
forward	O	B-Function
to	O	O
locationDetails	O	B-File_Name
page	O	O
instead	O	O
of	O	O
locationAllDetails	O	B-User_Interface_Element
page	O	O

what	O	O
's	O	O
wrong	O	O
in	O	O
the	O	O
below	O	O
code	O	O
my	O	O
doubt	O	O
is	O	O
due	O	O
to	O	O
this	O	O
line	O	O

Please	O	O
find	O	O
the	O	O
code	O	O
below	O	O
and	O	O
help	O	O
on	O	O
this	O	O
.	O	O

After	O	O
every	O	O
forward	B-Code_Block	B-Function
do	O	O
a	O	O
return	O	B-Code_Block
.	O	O

Say	O	O
I	O	O
'm	O	O
accessing	O	O
www.mywebsite.com	O	O
.	O	O

This	O	O
website	O	O
fetches	O	O
the	O	O
following	O	O
asset	O	O
:	O	O

http://www.mywebsite.com/styles/app.css	O	O

I	O	O
want	O	O
to	O	O
access	O	O
the	O	O
website	O	O
exactly	O	O
as	O	O
I	O	O
normally	O	O
would	O	O
,	O	O
with	O	O
one	O	O
exception	O	O
:	O	O

Whenever	O	O
my	O	O
browser	O	B-Application
makes	O	O
a	O	O
request	O	O
to	O	O
/styles/app.css	O	B-File_Name
,	O	O
instead	O	O
of	O	O
fetching	O	O
it	O	O
from	O	O
http://www.mywebsite.com	O	O
,	O	O
I	O	O
want	O	O
to	O	O
fetch	O	O
it	O	O
from	O	O
http://localhost:3000/mywebsite/	O	O
.	O	O

So	O	O
instead	O	O
it	O	O
should	O	O
be	O	O
fetching	O	O
:	O	O

http://localhost:3000/mywebsite/styles/app.css	O	O

Is	O	O
this	O	O
possible	O	O
with	O	O
nginx	O	B-Application
?	O	O

I	O	O
tried	O	O
to	O	O
do	O	O
it	O	O
using	O	O
the	O	O
following	O	O
server	O	B-Application
config	O	O
:	O	O

But	O	O
even	O	O
after	O	O
restarting	O	O
nginx	O	B-Application
(	O	O
sudo	B-Code_Block	B-Code_Block
nginx	I-Code_Block	I-Code_Block
-s	I-Code_Block	I-Code_Block
quit	I-Code_Block	I-Code_Block
,	O	O
sudo	B-Code_Block	B-Code_Block
nginx	I-Code_Block	I-Code_Block
)	O	O
,	O	O
nothing	O	O
seems	O	O
to	O	O
have	O	O
changed	O	O
.	O	O

When	O	O
I	O	O
browse	O	O
to	O	O
www.mywebsite.com/styles/app.css	O	O
,	O	O
I	O	O
still	O	O
get	O	O
the	O	O
same	O	O
old	O	O
app.css	O	B-File_Name
being	O	O
retrieved	O	O
from	O	O
the	O	O
server	O	B-Application
,	O	O
rather	O	O
than	O	O
my	O	O
local	O	O
one	O	O
.	O	O

I	O	O
have	O	O
a	O	O
big	O	O
dataframe	O	B-Data_Structure
in	O	O
R	O	B-Language
,	O	O
and	O	O
I	O	O
want	O	O
to	O	O
make	O	O
some	O	O
new	O	O
columns	O	B-Data_Structure
based	O	O
on	O	O
existing	O	O
columns	O	B-Data_Structure
.	O	O

However	O	O
,	O	O
for	O	O
each	O	O
row	O	B-Data_Structure
,	O	O
the	O	O
new	O	O
value	O	O
depends	O	O
also	O	O
on	O	O
some	O	O
other	O	O
rows	O	B-Data_Structure
.	O	O

Here	O	O
is	O	O
some	O	O
dummy	O	O
data	O	O

What	O	O
I	O	O
want	O	O
to	O	O
do	O	O
,	O	O
is	O	O
for	O	O
every	O	O
row	O	B-Data_Structure
(	O	O
uniquely	O	O
identified	O	O
by	O	O
docnr	O	B-Variable
)	O	O
to	O	O
take	O	O
the	O	O
date	O	B-Variable
and	O	O
the	O	O
client	O	B-Variable
id	O	I-Variable
,	O	O
and	O	O
find	O	O
all	O	O
of	O	O
the	O	O
other	O	O
rows	O	B-Data_Structure
that	O	O
have	O	O
the	O	O
same	O	O
clientid	O	B-Variable
,	O	O
and	O	O
an	O	O
earlier	O	O
date	O	B-Variable
.	O	O

Then	O	O
,	O	O
I	O	O
want	O	O
to	O	O
calculate	O	O
some	O	O
things	O	O
from	O	O
this	O	O
subset	O	O
.	O	O

For	O	O
example	O	O
,	O	O
I	O	O
want	O	O
the	O	O
total	O	O
number	O	O
of	O	O
rows	O	B-Data_Structure
in	O	O
this	O	O
subset	O	O
,	O	O
and	O	O
the	O	O
total	O	O
of	O	O
all	O	O
values	O	O
of	O	O
this	O	O
subset	O	O
.	O	O

So	O	O
for	O	O
this	O	O
example	O	O
data	O	O
,	O	O
I	O	O
would	O	O
expect	O	O
:	O	O

At	O	O
the	O	O
moment	O	O
,	O	O
I	O	O
use	O	O
a	O	O
for	O	B-Code_Block
loop	O	O
:	O	O

This	O	O
loop	O	O
is	O	O
obviously	O	O
very	O	O
slow	O	O
for	O	O
a	O	O
dataframe	O	B-Data_Structure
of	O	O
700k	O	O
rows	O	B-Data_Structure
(	O	O
have	O	O
not	O	O
run	O	O
it	O	O
to	O	O
completion	O	O
yet	O	O
)	O	O
.	O	O

A	O	O
parallel	O	O
implementation	O	O
with	O	O
doSNOW	B-Code_Block	B-Library
does	O	O
not	O	O
seem	O	O
to	O	O
scale	O	O
much	O	O
better	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
using	O	O
a	O	O
sql	O	B-Language
query	O	O
with	O	O
sqldf	B-Code_Block	B-Library
,	O	O
but	O	O
subqueries	O	O
can	O	O
only	O	O
return	O	O
1	O	O
value	O	O
at	O	O
a	O	O
time	O	O
,	O	O
which	O	O
would	O	O
mean	O	O
running	O	O
the	O	O
query	O	O
all	O	O
over	O	O
for	O	O
every	O	O
new	O	O
column	O	B-Data_Structure
I	O	O
want	O	O
to	O	O
define	O	O
(	O	O
and	O	O
I	O	O
want	O	O
to	O	O
add	O	O
many	O	O
more	O	O
derivative	O	O
columns	O	B-Data_Structure
later	O	O
)	O	O
.	O	O

I	O	O
came	O	O
across	O	O
a	O	O
solution	O	O
with	O	O
SQL	O	B-Language
objects	O	O
(	O	O
Is	O	O
it	O	O
possible	O	O
to	O	O
get	O	O
multiple	O	O
values	O	O
from	O	O
a	O	O
subquery	O	O
?	O	O
)	O	O
,	O	O
but	O	O
objects	O	O
did	O	O
n't	O	O
work	O	O
in	O	O
R	O	B-Language
's	O	O
sqldf	O	B-Library
.	O	O

Using	O	O
joins	O	O
does	O	O
n't	O	O
work	O	O
because	O	O
the	O	O
second	O	O
query	O	O
needs	O	O
to	O	O
have	O	O
information	O	O
from	O	O
the	O	O
first	O	O
query	O	O
.	O	O

I	O	O
just	O	O
started	O	O
in	O	O
R	O	B-Language
(	O	O
and	O	O
am	O	O
also	O	O
not	O	O
very	O	O
familiar	O	O
with	O	O
sql	O	B-Language
)	O	O
,	O	O
so	O	O
I	O	O
would	O	O
be	O	O
much	O	O
obliged	O	O
if	O	O
someone	O	O
knew	O	O
a	O	O
more	O	O
efficient	O	O
way	O	O
to	O	O
do	O	O
this	O	O
.	O	O

Here	O	O
are	O	O
two	O	O
lines	O	O
of	O	O
base	O	O
R	O	B-Language
code	O	O
using	O	O
ave	B-Code_Block	B-Function
for	O	O
grouping	O	O
.	O	O

This	O	O
returns	O	O

I	O	O
suspect	O	O
that	O	O
the	O	O
above	O	O
code	O	O
wil	O	O
perform	O	O
quickly	O	O
enough	O	O
for	O	O
the	O	O
data	O	O
that	O	O
you	O	O
described	O	O
.	O	O

However	O	O
,	O	O
data.table	B-Code_Block	B-Library
is	O	O
a	O	O
recommended	O	O
package	O	O
for	O	O
working	O	O
with	O	O
datases	O	O
that	O	O
may	O	O
have	O	O
billions	O	O
of	O	O
rows	O	B-Data_Structure
.	O	O

An	O	O
analog	O	O
to	O	O
the	O	O
above	O	O
code	O	O
in	O	O
data.table	B-Code_Block	B-Library
would	O	O
be	O	O

where	O	O
seq_len(.N)	B-Code_Block	B-Function
fills	O	O
the	O	O
role	O	O
of	O	O
seq_along	B-Code_Block	B-Function
and	O	O
shift	B-Code_Block	B-Function
fills	O	O
the	O	O
role	O	O
of	O	O
c	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
head	I-Code_Block	I-Code_Block
(	I-Code_Block	I-Code_Block
cumsum(x)	B-Code_Block	B-Code_Block
,	I-Code_Block	I-Code_Block
-1	I-Code_Block	I-Code_Block
)	B-Code_Block	B-Code_Block
)	B-Code_Block	B-Code_Block
in	O	O
the	O	O
previous	O	O
code	O	O
.	O	O

This	O	O
returns	O	O
a	O	O
data.table	O	B-Class
with	O	O
the	O	O
same	O	O
values	O	O
as	O	O
above	O	O
.	O	O

data	O	O

This	O	O
works	O	O
easily	O	O
with	O	O
dplyr	O	B-Library

df1	O	B-Variable
now	O	O
contains	O	O
the	O	O
data	O	O
you	O	O
want	O	O

Recently	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
create	O	O
a	O	O
ZSL	B-Code_Block	O
session	O	O
on	O	O
my	O	O
camera	O	B-Application
app	O	O
using	O	O
the	O	O
camera2	B-Code_Block	B-Library
API	I-Code_Block	I-Library
from	O	O
android	O	B-Operating_System
.	O	O

I	O	O
'm	O	O
using	O	O
a	O	O
device	O	O
with	O	O
a	O	O
LEVEL-3	B-Code_Block	O
hardware	O	O
level	O	O
which	O	O
supports	O	O
YUV_REPROCESSING	B-Code_Block	B-Code_Block
.	I-Code_Block	O

In	O	O
this	O	O
case	O	O
I	O	O
'm	O	O
using	O	O
the	O	O
next	O	O
template	O	O
:	O	O

All	O	O
the	O	O
tables	O	B-Data_Structure
and	O	O
information	O	O
can	O	O
be	O	O
found	O	O
in	O	O
the	O	O
ReprocessableCaptureSession	O	B-Class
documentation	O	O

With	O	O
the	O	O
table	O	B-Data_Structure
above	O	O
,	O	O
I	O	O
created	O	O
a	O	O
ReprocessableCatureSession	B-Code_Block	B-Class
with	O	O
the	O	O
next	O	O
values	O	O
:	O	O

Input	O	O
configuration	O	O
in	O	O
YUV	B-Code_Block	B-File_Type
format	O	O
with	O	O
4608	O	B-Value
x	O	I-Value
3456	O	I-Value
Size	O	O
(	O	O
The	O	O
one	O	O
returned	O	O
by	O	O
my	O	O
CameraCharacteristics	B-Code_Block	B-Class
when	O	O
calling	O	O
getInputSizes(ImageFormat.YUV_420_888)	B-Code_Block	B-Function

YUV_420_888	B-Code_Block	B-File_Type
ImageReader	I-Code_Block	B-Class
Surface	I-Code_Block	I-Class
with	O	O
4608	O	O
x	O	O
3456	O	O
size	O	O
.	O	O

JPEG	B-Code_Block	B-File_Type
ImageReader	I-Code_Block	B-Class
Surface	I-Code_Block	I-Class
with	O	O
the	O	O
size	O	O
that	O	O
I	O	O
want	O	O
(	O	O
With	O	O
a	O	O
maximum	O	O
size	O	O
of	O	O
4608x3456	O	B-Value
)	O	O
.	O	O

A	O	O
Preview	O	O
Surface	B-Code_Block	B-Class
in	O	O
YUV	O	B-File_Type
Format	O	O
.	O	O

RAW	B-Code_Block	B-File_Type
ImageReader	I-Code_Block	B-Class
Surface	I-Code_Block	I-Class
with	O	O
the	O	O
max	O	O
size	O	O
of	O	O
the	O	O
application	O	O
(	O	O
RAW	O	B-File_Type
always	O	O
should	O	O
be	O	O
sensor	O	O
device	O	O
size	O	O
)	O	O
.	O	O

With	O	O
this	O	O
values	O	O
I	O	O
can	O	O
create	O	O
a	O	O
ReprocessableCaptureSession	B-Code_Block	B-Class
an	O	O
everything	O	O
works	O	O
well	O	O
.	O	O

I	O	O
attached	O	O
my	O	O
YUV_420_888	B-Code_Block	B-File_Type
Surface	I-Code_Block	B-Class
to	O	O
my	O	O
preview	O	O
CaptureRequest	B-Code_Block	B-Class
to	O	O
capture	O	O
all	O	O
the	O	O
images	O	B-User_Interface_Element
from	O	O
the	O	O
preview	O	O
in	O	O
a	O	O
custom	O	O
class	O	O
which	O	O
works	O	O
as	O	O
a	O	O
RingQueue	O	B-Class
of	O	O
images	O	B-User_Interface_Element
and	O	O
CaptureRequest	B-Code_Block	B-Class
where	O	O
I	O	O
store	O	O
the	O	O
last	O	O
X	O	B-Variable
images	O	B-User_Interface_Element
from	O	O
my	O	O
preview	O	O
,	O	O
ready	O	O
to	O	O
be	O	O
taked	O	O
and	O	O
reprocessed	O	O
in	O	O
the	O	O
way	O	O
that	O	O
I	O	O
want(ZSL)	O	O
.	O	O

I	O	O
can	O	O
reprocess	O	O
images	O	O
from	O	O
YUV	B-Code_Block	B-File_Type
to	O	O
RAW	B-Code_Block	B-File_Type
,	O	O
to	O	O
JPEG	B-Code_Block	B-File_Type
,	O	O
change	O	O
values	O	O
and	O	O
everything	O	O
,	O	O
but	O	O
my	O	O
problem	O	O
appear	O	O
when	O	O
I	O	O
want	O	O
to	O	O
use	O	O
the	O	O
YUV	B-Code_Block	B-File_Type
images	O	B-User_Interface_Element
that	O	O
I	O	O
captured	O	O
which	O	O
are	O	O
always	O	O
at	O	O
MAX	B-Code_Block	B-Variable
SIZE(4608x3456)	I-Code_Block	I-Variable
to	O	O
generate	O	O
a	O	O
JPEG	B-Code_Block	B-File_Type
from	O	O
them	O	O
or	O	O
process	O	O
them	O	O
with	O	O
some	O	O
native	O	O
libraries	O	O
which	O	O
uses	O	O
YUV	O	B-File_Type
bytearrays	O	B-Data_Structure
to	O	O
work	O	O
.	O	O

In	O	O
this	O	O
case	O	O
my	O	O
image	O	B-User_Interface_Element
is	O	O
always	O	O
in	O	O
the	O	O
MAX	O	B-Variable
Size	O	I-Variable
,	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
want	O	O
that	O	O
.	O	O

The	O	O
documentation	O	O
says	O	O
that	O	O
my	O	O
"	O	O
Same	O	O
as	O	O
input	O	O
"	O	O
Target	B-Code_Block	O
(	I-Code_Block	O
YUV	I-Code_Block	B-File_Type
in	I-Code_Block	O
this	I-Code_Block	O
case	I-Code_Block	O
)	I-Code_Block	O
size	O	O
can	O	O
go	O	O
from	O	O
minimum	O	O
to	O	O
MAXIMUM	O	B-Variable
,	O	O
it	O	O
does	O	O
n't	O	O
indicate	O	O
that	O	O
it	O	O
just	O	O
work	O	O
in	O	O
the	O	O
max	O	O
size	O	O
given	O	O
by	O	O
the	O	O
hardware	O	O
.	O	O

It	O	O
is	O	O
possible	O	O
to	O	O
achieve	O	O
these	O	O
in	O	O
some	O	O
way	O	O
?	O	O

I	O	O
mean	O	O
,	O	O
I	O	O
have	O	O
tried	O	O
to	O	O
look	O	O
to	O	O
more	O	O
codes	O	O
which	O	O
use	O	O
Camera	B-Code_Block	B-Class
API	I-Code_Block	I-Class
2	I-Code_Block	I-Class
,	O	O
but	O	O
the	O	O
documentation	O	O
about	O	O
ReprocessableCaptureRequest	B-Code_Block	B-Class
is	O	O
a	O	O
bit	O	O
poor	O	O
and	O	O
the	O	O
only	O	O
code	O	O
that	O	O
I	O	O
found	O	O
on	O	O
internet	O	O
is	O	O
the	O	O
CTS	B-Code_Block	B-Application
repository	I-Code_Block	O
from	O	O
Google	O	B-Organization
.	O	O

My	O	O
problem	O	O
can	O	O
be	O	O
solved	O	O
just	O	O
finding	O	O
a	O	O
way	O	O
to	O	O
configure	O	O
my	O	O
Session	B-Code_Block	B-Class
with	O	O
a	O	O
lower	O	O
YUV	B-Code_Block	B-File_Type
imageReader	I-Code_Block	B-Class
session	O	O
or	O	O
looking	O	O
to	O	O
some	O	O
way	O	O
to	O	O
resize	O	O
a	O	O
YUV	B-Code_Block	B-File_Type
Byte[]	I-Code_Block	B-Data_Type
to	O	O
a	O	O
different	O	O
width	O	O
and	O	O
height	O	O
values	O	O
.	O	O

Thank	O	O
you	O	O
so	O	O
much	O	O
for	O	O
your	O	O
time	O	O
!	O	O

I	O	O
have	O	O
a	O	O
hard-coded	O	O
list	O	B-Data_Structure
,	O	O
each	O	O
list	O	B-Data_Structure
item	O	O
of	O	O
which	O	O
has	O	O
an	O	O
ID	O	B-Variable
.	O	O

I	O	O
want	O	O
to	O	O
have	O	O
jQuery	O	B-Library
generate	O	O
list	O	B-Data_Structure
items	O	O
in	O	O
another	O	O
list	O	B-Data_Structure
,	O	O
and	O	O
set	O	O
as	O	O
their	O	O
text	O	O
content	O	O
the	O	O
ID	O	B-Variable
attribute	O	O
values	O	O
of	O	O
each	O	O
of	O	O
the	O	O
hard-coded	O	O
list	O	B-Data_Structure
's	O	O
items	O	O
:	O	O

i.e	O	O
.	O	O
hard-coded	O	O
list	O	B-Data_Structure
:	O	O

jQuery-generated	O	B-Library
list	O	B-Data_Structure
:	O	O

I	O	O
have	O	O
jQ	O	B-Library
getting	O	O
the	O	O
number	O	O
of	O	O
gallery	O	O
items	O	O
..	O	O
.	O	O

..	O	O
.	O	O
here	O	O
's	O	O
the	O	O
trouble	O	O
:	O	O
how	O	O
do	O	O
I	O	O
get	O	O
jQuery	O	B-Library
to	O	O
get	O	O
each	O	O
of	O	O
the	O	O
list	O	B-Data_Structure
items	O	O
'	O	O
IDs	O	B-Variable
as	O	O
it	O	O
generates	O	O
the	O	O
nav	O	O
list	O	B-Data_Structure
(	O	O
below	O	O
)	O	O
?	O	O

this	O	O
is	O	O
generating	O	O
the	O	O
nav	O	O
list	O	B-Data_Structure
however	O	O
the	O	O
content	O	O
in	O	O
each	O	O
is	O	O
the	O	O
same	O	O
because	O	O
of	O	O
my	O	O
blindspot	O	O
with	O	O
regard	O	O
to	O	O
var	O	B-Data_Type
ListItemIndex	O	B-Variable

The	O	O
results	O	O
of	O	O
the	O	O
above	O	O
code	O	O
generates	O	O
the	O	O
list	O	B-Data_Structure
but	O	O
all	O	O
the	O	O
list	O	B-Data_Structure
items	O	O
'	O	O
content	O	O
is	O	O
the	O	O
same	O	O
,	O	O
'	O	B-Value
Slide	O	I-Value
#1	O	I-Value
of	O	I-Value
3	O	I-Value
items	O	I-Value
'	O	I-Value
.	O	O

Many	O	O
thanks	O	O
in	O	O
advance	O	O
!	O	O

svs	O	B-User_Name

Here	O	O
is	O	O
the	O	O
jsFiddle	O	B-Application
.	O	O

The	O	O
code	O	O
:	O	O

Your	O	O
code	O	O
had	O	O
the	O	O
basics	O	O
right	O	O
,	O	O
you	O	O
just	O	O
need	O	O
to	O	O
move	O	O
the	O	O
appending	O	O
to	O	O
the	O	O
each	B-Code_Block	B-Function
function	O	O
that	O	O
will	O	O
execute	O	O
for	O	O
each	O	O
list	O	B-Data_Structure
item	O	O
.	O	O

The	O	O
item	O	O
can	O	O
then	O	O
be	O	O
accessed	O	O
with	O	O
$(this)	B-Code_Block	B-Code_Block
.	O	O

i	O	O
would	O	O
not	O	O
append	O	O
it	O	O
in	O	O
the	O	O
loop	O	O
,	O	O
but	O	O
constructing	O	O
a	O	O
string	O	B-Data_Type
and	O	O
append	O	O
it	O	O
when	O	O
its	O	O
finished	O	O
.	O	O

its	O	O
much	O	O
faster	O	O
then	O	O
append	O	O
it	O	O
for	O	O
each	O	O
li	O	B-HTML_XML_Tag
in	O	O
the	O	O
gallery	O	O
.	O	O

demo	O	O
:	O	O

http://jsfiddle.net/meo/yKgSf/​	O	O

or	O	O
the	O	O
fancy	O	O
version	O	O
(	O	O
because	O	O
constructing	O	O
long	O	O
strings	O	B-Data_Type
with	O	O
JS	O	B-Language
can	O	O
be	O	O
slow	O	O
)	O	O

demo	O	O
:	O	O

http://jsfiddle.net/meo/yKgSf/2/	O	O

PS	O	O
:	O	O
Having	O	O
only	O	O
a	O	O
number	O	O
as	O	O
ID	O	B-Variable
is	O	O
not	O	O
W3C	O	B-Organization
valid	O	O
in	O	O
HTML4	O	B-Language
.	O	O

Thats	O	O
why	O	O
i	O	O
choose	O	O
to	O	O
use	O	O
the	O	O
index	O	O
alternatively	O	O
when	O	O
there	O	O
is	O	O
no	O	O
ID	O	B-Variable
on	O	O
the	O	O
element	O	O

I	O	O
want	O	O
to	O	O
upload	O	O
multiple	O	O
images	O	B-User_Interface_Element
on	O	O
my	O	O
gallery	O	O

till	O	O
today	O	O
I	O	O
was	O	O
using	O	O
this	O	O
code	O	O
to	O	O
upload	O	O
single	O	O
images	O	B-User_Interface_Element

my	O	O
controller	O	O
is	O	O

My	O	O
models	O	O
is	O	O

and	O	O
my	O	O
view	O	O
is	O	O

This	O	O
is	O	O
what	O	O
I	O	O
'm	O	O
using	O	O
for	O	O
uploading	O	O
single	O	O
images	O	B-User_Interface_Element
now	O	O
I	O	O
want	O	O
to	O	O
upload	O	O
multiple	O	O
and	O	O
I	O	O
had	O	O
only	O	O
one	O	O
images	O	B-Variable
fields	O	O
on	O	O
database	O	O
did	O	O
I	O	O
need	O	O
to	O	O
make	O	O
more	O	O
images	O	B-Variable
fields	O	O
for	O	O
upload	O	O
multiple	O	O
images	O	B-User_Interface_Element
?	O	O

If	O	O
you	O	O
want	O	O
to	O	O
upload	O	O
multiple	O	O
images	O	B-User_Interface_Element
there	O	O
are	O	O
so	O	O
many	O	O
plugins	O	O
for	O	O
that	O	O

This	O	O
a	O	O
very	O	O
simple	O	O
and	O	O
very	O	O
great	O	O
plugin	O	O
I	O	O
have	O	O
also	O	O
used	O	O
it	O	O
in	O	O
may	O	O
projects	O	O
.	O	O

You	O	O
got	O	O
to	O	O
send	O	O
<input	B-Code_Block	B-Code_Block
type="file"	I-Code_Block	I-Code_Block
name="userfile">	I-Code_Block	I-Code_Block
as	O	O
an	O	O
array	O	B-Data_Structure
like	O	O
so	O	O
:	O	O

Then	O	O
for	O	O
each	O	O
posted	O	O
image	O	B-User_Interface_Element
do	O	O
an	O	O
upload	O	O
.	O	O

BTW	O	O
a	O	O
quick	O	O
search	O	O
on	O	O
this	O	O
site	O	O
gave	O	O
me	O	O
this	O	O
post	O	O
,	O	O
that	O	O
has	O	O
all	O	O
other	O	O
info	O	O
you	O	O
need	O	O
:	O	O

Multiple	O	O
files	O	O
upload	O	O
(	O	O
Array	O	B-Data_Structure
)	O	O
with	O	O
CodeIgniter	O	B-Library
2.0	O	B-Version

good	O	O
luck	O	O

Inside	O	O
my	O	O
build.xml	O	B-File_Name
,	O	O
I	O	O
have	O	O
:	O	O

When	O	O
I	O	O
invoke	O	O
this	O	O
target	O	O
,	O	O
I	O	O
get	O	O
an	O	O
exception	O	B-Class
:	O	O

Kindly	O	O
suggest	O	O
how	O	O
to	O	O
add	O	O
this	O	O
Constants	O	B-Class
class	O	O
in	O	O
my	O	O
classpath	O	B-Variable
?	O	O

Somewhere	O	O
in	O	O
my	O	O
build.xml	O	B-File_Name
,	O	O
I	O	O
have	O	O
:	O	O

Project	O	O
structure	O	O
is	O	O
:	O	O

Here	O	O
is	O	O
my	O	O
build.xml	O	B-File_Name

As	O	O
suggested	O	O
by	O	O
Christian	O	B-User_Name
,	O	O
the	O	O
issue	O	O
got	O	O
resolved	O	O
by	O	O
adding	O	O
:	O	O

I	O	O
would	O	O
like	O	O
to	O	O
declare	O	O
kind	O	O
of	O	O
global	O	B-Data_Type
variables	O	O
.	O	O

What	O	O
I	O	O
want	O	O
to	O	O
do	O	O
is	O	O
initialize	O	O
these	O	O
variables	O	O
,	O	O
then	O	O
use	O	O
them	O	O
in	O	O
macros	O	O
,	O	O
and	O	O
change	O	O
their	O	O
values	O	O
in	O	O
other	O	O
macros	O	O
.	O	O

I	O	O
started	O	O
to	O	O
write	O	O
it	O	O
as	O	O
public	O	B-Data_Type
variables	O	O
:	O	O

The	O	O
problem	O	O
here	O	O
is	O	O
that	O	O
I	O	O
have	O	O
to	O	O
call	O	O
Sub_Init_Globals()	O	B-Function
in	O	O
each	O	O
of	O	O
my	O	O
SubProcedure	O	O
,	O	O
and	O	O
so	O	O
if	O	O
I	O	O
want	O	O
to	O	O
change	O	O
the	O	O
initial	O	O
values	O	O
of	O	O
my	O	O
global	O	B-Data_Type
variables	O	O
inside	O	O
other	O	O
SubProcedures	O	O
,	O	O
those	O	O
changes	O	O
wo	O	O
n't	O	O
be	O	O
made	O	O
.	O	O

Do	O	O
you	O	O
know	O	O
a	O	O
way	O	O
to	O	O
create	O	O
such	O	O
variables	O	O
?	O	O

As	O	O
far	O	O
as	O	O
I	O	O
understood	O	O
these	O	O
are	O	O
just	O	O
starting	O	O
values	O	O
what	O	O
leaves	O	O
you	O	O
with	O	O
next	O	O
options	O	O
:	O	O

1	O	O
.	O	O
)	O	O

You	O	O
can	O	O
declare	O	O
these	O	O
variables	O	O
and	O	O
assign	O	O
values	O	O
in	O	O
Workbook_Open	O	B-Function
sub	O	O
.	O	O

More	O	O
here	O	O
Is	O	O
it	O	O
possible	O	O
to	O	O
declare	O	O
a	O	O
public	O	B-Data_Type
variable	O	O
in	O	O
vba	O	B-Language
and	O	O
assign	O	O
a	O	O
default	O	O
value	O	O
?	O	O

2	O	O
.	O	O
)	O	O

Create	O	O
separate	O	O
sheet	O	O
,	O	O
that	O	O
will	O	O
be	O	O
hidden	O	O
,	O	O
with	O	O
support	O	O
table	O	B-Data_Structure
consisting	O	O
of	O	O
these	O	O
values	O	O
,	O	O
in	O	O
this	O	O
case	O	O
all	O	O
changes	O	O
to	O	O
these	O	O
values	O	O
will	O	O
be	O	O
saved	O	O
even	O	O
after	O	O
you	O	O
close	O	O
Workbook	O	O
.	O	O

3	O	O
.	O	O
)	O	O

Declare	O	O
constants	O	O
and	O	O
assign	O	O
it	O	O
's	O	O
value	O	O
to	O	O
a	O	O
different	O	O
variable	O	O
inside	O	O
Procedures	O	O
.	O	O

Below	O	O
is	O	O
the	O	O
schema	O	O
where	O	O
I	O	O
need	O	O
to	O	O
put	O	O
a	O	O
constraint	O	O
such	O	O
that	O	O
a	O	O
second	O	O
new	O	O
entry	O	O
could	O	O
be	O	O
put	O	O
in	O	O
for	O	O
a	O	O
room	O	O
number	O	O
,	O	O
even	O	O
before	O	O
the	O	O
existing	O	O
depDt	O	B-Variable
for	O	O
the	O	O
same	O	O
room	O	O
number	O	O
.	O	O

Could	O	O
any	O	O
of	O	O
you	O	O
please	O	O
help	O	O
me	O	O
with	O	O
this	O	O
?	O	O
?	O	O

I	O	O
have	O	O
tried	O	O
giving	O	O
a	O	O
sub	O	O
query	O	O
under	O	O
WHERE	O	B-Code_Block
in	O	O
CONSTRAINTS	O	B-Code_Block
but	O	O
its	O	O
is	O	O
not	O	O
working	O	O
in	O	O
SQL	O	B-Application
Fiddle	O	I-Application
.	O	O

This	O	O
can	O	O
be	O	O
done	O	O
using	O	O
an	O	O
exclusion	O	O
constraint	O	O
on	O	O
the	O	O
date	O	O
range	O	O
:	O	O

Note	O	O
that	O	O
you	O	O
need	O	O
the	O	O
btree_gist	O	B-Library
extension	O	O
to	O	O
support	O	O
the	O	O
=	B-Code_Block	B-Code_Block
operator	O	O
in	O	O
a	O	O
GiST	O	B-Function
index	O	O
.	O	O

Note	O	O
:	O	O
This	O	O
does	O	O
not	O	O
solve	O	O
the	O	O
problem	O	O
of	O	O
race	O	O
conditions	O	O
.	O	O

Create	O	O
a	O	O
function	O	O
that	O	O
checks	O	O
whether	O	O
a	O	O
room	O	O
is	O	O
available	O	O
based	O	O
on	O	O
your	O	O
conditions	O	O
and	O	O
returns	O	O
a	O	O
scalar	O	O
boolean	O	B-Data_Type
value	O	O
which	O	O
can	O	O
be	O	O
used	O	O
in	O	O
CHECK	B-Code_Block	B-Code_Block
constraint	O	O
.	O	O

Here	O	O
you	O	O
can	O	O
preview	O	O
how	O	O
it	O	O
works	O	O
(	O	O
remember	O	O
to	O	O
uncomment	O	O
the	O	O
last	O	O
insert	O	O
statement	O	O
)	O	O
:SQL	O	B-Application
FIDDLE	O	I-Application

Create	O	O
table	O	B-Data_Structure
with	O	O
new	O	O
constraint	O	O

Try	O	O
inserting	O	O
two	O	O
rows	O	B-Data_Structure
in	O	O
separate	O	O
statements	O	O

First	O	O
value	O	O
is	O	O
inserted	O	O
,	O	O
while	O	O
when	O	O
issuing	O	O
the	O	O
second	O	O
insert	O	O
statement	O	O
you	O	O
get	O	O
a	O	O
check	O	O
constraint	O	O
violation	O	O

Note	O	O
:	O	O
This	O	O
could	O	O
be	O	O
easily	O	O
implemented	O	O
using	O	O
triggers	O	O
as	O	O
well	O	O
.	O	O

You	O	O
just	O	O
need	O	O
to	O	O
modify	O	O
the	O	O
function	O	O
a	O	O
little	O	O
and	O	O
issue	O	O
a	O	O
CREATE	B-Code_Block	B-Code_Block
TRIGGER	I-Code_Block	I-Code_Block
statement	O	O
.	O	O

This	O	O
is	O	O
another	O	O
question	O	O
on	O	O
date	O	O
string	O	B-Data_Type
to	O	O
datevalue	O	B-Function
conversion	O	O
.	O	O

Input	O	O
format	O	O
is	O	O
"	O	B-Value
March	O	I-Value
17	O	I-Value
,	O	I-Value
2013	O	I-Value
7:04:28	O	I-Value
PM	O	I-Value
GMT-07:00	O	I-Value
"	O	I-Value
.	O	O

(	O	O
Output	O	O
of	O	O
SAP	O	B-Application
tool	O	O
)	O	O

=DATEVALUE(B26)	O	B-Output_Block
fails	O	I-Output_Block
.	O	O

Any	O	O
chances	O	O
?	O	O

Thanks	O	O
,	O	O

Gert	O	B-User_Name

If	O	O
you	O	O
are	O	O
using	O	O
US	O	O
regional	O	O
settings	O	O
then	O	O
your	O	O
text	O	O
is	O	O
a	O	O
valid	O	O
date/time	O	O
format	O	O
once	O	O
you	O	O
remove	O	O
"	O	B-Value
GMT	O	I-Value
"	O	I-Value
and	O	O
everything	O	O
after	O	O
so	O	O
you	O	O
can	O	O
use	O	O
a	O	O
formula	O	O
that	O	O
will	O	O
simply	O	O
remove	O	O
that	O	O
part	O	O
and	O	O
"	O	O
co-erce	O	O
"	O	O
to	O	O
a	O	O
date/time	O	O
value	O	O
,	O	O
i.e	O	O
.	O	O

=LEFT(B26,FIND("GMT",B26)-1)+0	B-Code_Block	B-Code_Block

format	O	O
result	O	O
cell	O	B-User_Interface_Element
in	O	O
the	O	O
required	O	O
date/time	O	O
format	O	O
,	O	O
e.g	O	O
.	O	O
m/d/yy	O	O
hh:mm	O	O

This	O	O
should	O	O
work	O	O
:	O	O

I	O	O
am	O	O
a	O	O
bit	O	O
confused	O	O
about	O	O
the	O	O
c++11	O	B-Language
random	O	B-Library
library	O	O
.	O	O

What	O	O
I	O	O
understand	O	O
:	O	O
we	O	O
need	O	O
two	O	O
separate	O	O
concepts	O	O
:	O	O

random	O	B-Class
engine	O	I-Class
(	O	O
which	O	O
can	O	O
be	O	O
pseudo	O	O
(	O	O
need	O	O
seed	O	O
)	O	O
or	O	O
real	O	O
)	O	O

distribution	O	O
:	O	O
it	O	O
maps	O	O
the	O	O
numbers	O	O
obtained	O	O
from	O	O
the	O	O
engine	O	O
to	O	O
a	O	O
specific	O	O
interval	O	O
,	O	O
using	O	O
a	O	O
specific	O	O
distribution	O	O
.	O	O

What	O	O
I	O	O
do	O	O
n't	O	O
understand	O	O
is	O	O
why	O	O
not	O	O
just	O	O
use	O	O
this	O	O
:	O	O

As	O	O
far	O	O
as	O	O
I	O	O
can	O	O
tell	O	O
this	O	O
works	O	O
well	O	O
.	O	O

Instead	O	O
,	O	O
this	O	O
is	O	O
what	O	O
I	O	O
found	O	O
on	O	O
most	O	O
examples/sites/articles	O	O
:	O	O

I	O	O
am	O	O
not	O	O
talking	O	O
about	O	O
special	O	O
use	O	O
,	O	O
e.g	O	O
.	O	O
cryptography	O	O
,	O	O
just	O	O
your	O	O
basic	O	O
getting	O	O
started	O	O
articles	O	O
.	O	O

My	O	O
suspicion	O	O
is	O	O
because	O	O
std::mt19937	B-Code_Block	B-Class
(	O	O
or	O	O
std::default_random_engine	B-Code_Block	B-Class
)	O	O
accepts	O	O
a	O	O
seed	O	O
,	O	O
it	O	O
can	O	O
be	O	O
easier	O	O
to	O	O
debug	O	O
by	O	O
providing	O	O
the	O	O
same	O	O
seed	O	O
during	O	O
a	O	O
debug	O	O
session	O	O
.	O	O

Also	O	O
,	O	O
why	O	O
not	O	O
just	O	O
:	O	O

It	O	O
might	O	O
be	O	O
fine	O	O
if	O	O
you	O	O
only	O	O
will	O	O
do	O	O
this	O	O
once	O	O
,	O	O
but	O	O
if	O	O
you	O	O
will	O	O
do	O	O
it	O	O
many	O	O
times	O	O
,	O	O
it	O	O
's	O	O
better	O	O
to	O	O
keep	O	O
track	O	O
of	O	O
your	O	O
std::random_device	B-Code_Block	B-Class
and	O	O
not	O	O
create	O	O
/	O	O
destroy	O	O
it	O	O
unnecessarily	O	O
.	O	O

It	O	O
may	O	O
be	O	O
helpful	O	O
to	O	O
look	O	O
at	O	O
the	O	O
libc++	O	B-Library
source	O	O
code	O	O
for	O	O
implementation	O	O
of	O	O
std::random_device	B-Code_Block	B-Class
,	O	O
which	O	O
is	O	O
quite	O	O
simple	O	O
.	O	O

It	O	O
's	O	O
just	O	O
a	O	O
thin	O	O
wrapper	O	O
over	O	O
std::fopen("/dev/urandom")	B-Code_Block	B-Function
.	O	O

So	O	O
each	O	O
time	O	O
you	O	O
create	O	O
a	O	O
std::random_device	B-Code_Block	B-Class
you	O	O
are	O	O
getting	O	O
another	O	O
filesystem	O	O
handle	O	O
,	O	O
and	O	O
pay	O	O
all	O	O
associated	O	O
costs	O	O
.	O	O

On	O	O
windows	O	B-Operating_System
,	O	O
as	O	O
I	O	O
understand	O	O
,	O	O
std::random_device	B-Code_Block	B-Class
represents	O	O
some	O	O
call	O	O
to	O	O
a	O	O
microsoft	O	B-Library
crypto	O	I-Library
API	O	I-Library
,	O	O
so	O	O
you	O	O
are	O	O
going	O	O
to	O	O
be	O	O
initializing	O	O
and	O	O
destroying	O	O
some	O	O
crypto	O	B-Library
library	O	O
interface	O	O
everytime	O	O
you	O	O
do	O	O
this	O	O
.	O	O

It	O	O
depends	O	O
on	O	O
your	O	O
application	O	O
,	O	O
but	O	O
for	O	O
general	O	O
purposes	O	O
I	O	O
would	O	O
n't	O	O
think	O	O
of	O	O
this	O	O
overhead	O	O
as	O	O
always	O	O
negligible	O	O
.	O	O

Sometimes	O	O
it	O	O
is	O	O
,	O	O
and	O	O
then	O	O
this	O	O
is	O	O
great	O	O
.	O	O

I	O	O
guess	O	O
this	O	O
ties	O	O
back	O	O
into	O	O
your	O	O
first	O	O
question	O	O
:	O	O

At	O	O
least	O	O
the	O	O
way	O	O
I	O	O
think	O	O
about	O	O
it	O	O
is	O	O
:	O	O

std::mt19937	B-Code_Block	B-Class
is	O	O
a	O	O
very	O	O
simple	O	O
and	O	O
reliable	O	O
random	O	O
generator	O	O
.	O	O

The	O	O
implementation	O	O
is	O	O
mandated	O	O
by	O	O
the	O	O
standard	O	O
,	O	O
and	O	O
at	O	O
least	O	O
in	O	O
boost	O	O
,	O	O
it	O	O
used	O	O
the	O	O
same	O	O
code	O	O
everywhere	O	O
,	O	O
derived	O	O
from	O	O
the	O	O
original	O	O
mt19937	B-Code_Block	B-Algorithm
paper	O	O
.	O	O

This	O	O
code	O	O
is	O	O
very	O	O
stable	O	O
and	O	O
it	O	O
's	O	O
cross-platform	O	O
.	O	O

You	O	O
can	O	O
be	O	O
pretty	O	O
confident	O	O
that	O	O
initializing	O	O
it	O	O
,	O	O
querying	O	O
from	O	O
it	O	O
,	O	O
etc	O	O
.	O	O

is	O	O
going	O	O
to	O	O
compile	O	O
to	O	O
similar	O	O
code	O	O
on	O	O
any	O	O
platform	O	O
that	O	O
you	O	O
compile	O	O
it	O	O
on	O	O
,	O	O
and	O	O
that	O	O
you	O	O
will	O	O
get	O	O
similar	O	O
performance	O	O
.	O	O

std::random_device	B-Code_Block	B-Class
by	O	O
contrast	O	O
is	O	O
pretty	O	O
opaque	O	O
.	O	O

You	O	O
do	O	O
n't	O	O
really	O	O
know	O	O
exactly	O	O
what	O	O
it	O	O
is	O	O
,	O	O
what	O	O
it	O	O
's	O	O
going	O	O
to	O	O
do	O	O
,	O	O
or	O	O
how	O	O
efficient	O	O
it	O	O
will	O	O
be	O	O
.	O	O

You	O	O
do	O	O
n't	O	O
even	O	O
know	O	O
if	O	O
it	O	O
can	O	O
actually	O	O
be	O	O
acquired	O	O
-	O	O
-	O	O
it	O	O
might	O	O
throw	O	O
an	O	O
exception	O	B-Class
when	O	O
you	O	O
attempt	O	O
to	O	O
create	O	O
it	O	O
.	O	O

You	O	O
know	O	O
that	O	O
it	O	O
does	O	O
n't	O	O
require	O	O
a	O	O
seed	O	O
.	O	O

You	O	O
're	O	O
not	O	O
usually	O	O
supposed	O	O
to	O	O
pull	O	O
tons	O	O
and	O	O
tons	O	O
of	O	O
data	O	O
from	O	O
it	O	O
,	O	O
just	O	O
use	O	O
it	O	O
to	O	O
generate	O	O
seeds	O	O
.	O	O

Sometimes	O	O
,	O	O
it	O	O
acts	O	O
as	O	O
a	O	O
nice	O	O
interface	O	O
to	O	O
cryptographic	O	O
APIs	O	O
,	O	O
but	O	O
it	O	O
's	O	O
not	O	O
actually	O	O
required	O	O
to	O	O
do	O	O
that	O	O
and	O	O
sadly	O	O
sometimes	O	O
it	O	O
does	O	O
n't	O	O
.	O	O

It	O	O
might	O	O
correspond	O	O
to	O	O
/dev/random	B-Code_Block	B-File_Name
on	O	O
unix	O	B-Operating_System
,	O	O
it	O	O
might	O	O
correspond	O	O
to	O	O
/dev/urandom/	B-Code_Block	B-File_Name
.	O	O

It	O	O
might	O	O
correspond	O	O
to	O	O
some	O	O
MSVC	O	O
crypto	O	O
API	O	O
(	O	O
visual	O	B-Application
studio	O	I-Application
)	O	O
,	O	O
or	O	O
it	O	O
might	O	O
just	O	O
be	O	O
a	O	O
fixed	O	O
constant	O	O
(	O	O
mingw	O	B-Application
)	O	O
.	O	O

If	O	O
you	O	O
cross-compile	O	O
for	O	O
some	O	O
phone	O	B-Device
,	O	O
who	O	O
knows	O	O
what	O	O
it	O	O
will	O	O
do	O	O
.	O	O

(	O	O
And	O	O
even	O	O
when	O	O
you	O	O
do	O	O
get	O	O
/dev/random	B-Code_Block	B-File_Name
,	O	O
you	O	O
still	O	O
have	O	O
the	O	O
problem	O	O
that	O	O
performance	O	O
may	O	O
not	O	O
be	O	O
consistent	O	O
-	O	O
-	O	O
it	O	O
may	O	O
appear	O	O
to	O	O
work	O	O
great	O	O
,	O	O
until	O	O
the	O	O
entropy	O	O
pool	O	O
runs	O	O
out	O	O
,	O	O
and	O	O
then	O	O
it	O	O
runs	O	O
slow	O	O
as	O	O
a	O	O
dog	O	O
.	O	O
)	O	O

The	O	O
way	O	O
I	O	O
think	O	O
about	O	O
it	O	O
is	O	O
,	O	O
std::random_device	B-Code_Block	B-Class
is	O	O
supposed	O	O
to	O	O
be	O	O
like	O	O
an	O	O
improved	O	O
version	O	O
of	O	O
seeding	O	O
with	O	O
time(NULL)	B-Code_Block	B-Function
-	O	O
-	O	O
that	O	O
's	O	O
a	O	O
low	O	O
bar	O	O
,	O	O
because	O	O
time(NULL)	B-Code_Block	B-Function
is	O	O
a	O	O
pretty	O	O
crappy	O	O
seed	O	O
all	O	O
things	O	O
considered	O	O
.	O	O

I	O	O
usually	O	O
use	O	O
it	O	O
where	O	O
I	O	O
would	O	O
have	O	O
used	O	O
time(NULL)	B-Code_Block	B-Function
to	O	O
generate	O	O
a	O	O
seed	O	O
,	O	O
back	O	O
in	O	O
the	O	O
day	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
really	O	O
consider	O	O
it	O	O
all	O	O
that	O	O
useful	O	O
outside	O	O
of	O	O
that	O	O
.	O	O

This	O	O
article	O	O
is	O	O
a	O	O
good	O	O
point	O	O
to	O	O
start	O	O
.	O	O

I	O	O
'm	O	O
going	O	O
to	O	O
synthesize	O	O
just	O	O
few	O	O
points	O	O
:	O	O

It	O	O
Has	O	O
Unknown	O	O
Cost	O	O
.	O	O

For	O	O
my	O	O
personal	O	O
experience	O	O
I	O	O
've	O	O
notified	O	O
that	O	O
std::random_device	B-Code_Block	B-Class
is	O	O
usually	O	O
slower	O	O
than	O	O
a	O	O
simple	O	O
Pseudo-randomic	O	B-Algorithm
algorithm	O	O
.	O	O

That	O	O
could	O	O
be	O	O
no	O	O
true	O	O
in	O	O
general	O	O
,	O	O
but	O	O
usually	O	O
it	O	O
does	O	O
.	O	O

That	O	O
because	O	O
it	O	O
may	O	O
involve	O	O
physical	O	O
devices	O	O
,	O	O
or	O	O
other	O	O
hardware	O	O
than	O	O
the	O	O
simple	O	O
CPU	O	B-Device
.	O	O

It	O	O
Might	O	O
Actually	O	O
Be	O	O
Deterministic	O	O
.	O	O

I	O	O
have	O	O
an	O	O
app	O	O
that	O	O
will	O	O
take	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
players	O	O
and	O	O
set	O	O
them	O	O
up	O	O
so	O	O
that	O	O
you	O	O
can	O	O
go	O	O
through	O	O
and	O	O
create	O	O
a	O	O
bracket	O	B-User_Interface_Element
dynamically	O	O
.	O	O

The	O	O
number	O	O
of	O	O
players	O	O
will	O	O
change	O	O
and	O	O
the	O	O
names	O	O
as	O	O
well	O	O
.	O	O

Instead	O	O
of	O	O
showing	O	O
a	O	O
whole	O	O
bracket	O	B-User_Interface_Element
,	O	O
my	O	O
point	O	O
will	O	O
be	O	O
to	O	O
go	O	O
in	O	O
columns	O	B-User_Interface_Element
.	O	O

I.e	O	O
.	O	O
instead	O	O
of	O	O
the	O	O
left	O	O
side	O	O
of	O	O
the	O	O
arrow	O	B-User_Interface_Element
,	O	O
it	O	O
show	O	O
the	O	O
right	O	O
side	O	O
:	O	O

My	O	O
questions	O	O
is	O	O
how	O	O
do	O	O
I	O	O
best	O	O
draw	O	O
this	O	O
?	O	O

My	O	O
initial	O	O
thought	O	O
is	O	O
to	O	O
do	O	O
multiple	O	O
layouts	O	B-Class
where	O	O
I	O	O
hard	O	O
code	O	O
textviews	O	B-Class
with	O	O
custom	O	O
drawables	O	B-Class
and	O	O
lines	O	O
for	O	O
each	O	O
column	O	B-User_Interface_Element
of	O	O
16/8/4/2	O	B-Value
with	O	O
just	O	O
one	O	O
border	O	B-User_Interface_Element
,	O	O
but	O	O
then	O	O
I	O	O
have	O	O
to	O	O
constantly	O	O
change	O	O
the	O	O
layout	O	B-Class
setup	O	O
.	O	O

My	O	O
second	O	O
one	O	O
would	O	O
be	O	O
to	O	O
dynamically	O	O
draw	O	O
it	O	O
on	O	O
a	O	O
canvas	O	B-Class
based	O	O
on	O	O
this	O	O
answer	O	O
here	O	O
,	O	O
but	O	O
it	O	O
did	O	O
n't	O	O
give	O	O
a	O	O
lot	O	O
of	O	O
ideas	O	O
of	O	O
implementations	O	O
.	O	O

My	O	O
Questions	O	O
:	O	O
If	O	O
I	O	O
choose	O	O
method	O	O
1	O	O
,	O	O
will	O	O
I	O	O
be	O	O
able	O	O
to	O	O
dynamically	O	O
change	O	O
the	O	O
layout	O	B-Class
of	O	O
my	O	O
activity	O	B-Class
?	O	O

If	O	O
I	O	O
choose	O	O
method	O	O
2	O	O
,	O	O
how	O	O
could	O	O
I	O	O
go	O	O
about	O	O
this	O	O
?	O	O

I	O	O
'm	O	O
still	O	O
pretty	O	O
new	O	O
to	O	O
android	O	B-Operating_System
.	O	O

As	O	O
for	O	O
question	O	O
1	O	O
,	O	O
yes	O	O
you	O	O
can	O	O
absolutely	O	O
change	O	O
the	O	O
layout	O	B-Class
dynamically	O	O
.	O	O

You	O	O
can	O	O
create	O	O
several	O	O
layout	O	B-Class
files	O	O
and	O	O
do	O	O
one	O	O
of	O	O
two	O	O
things	O	O
:	O	O
The	O	O
first	O	O
,	O	O
is	O	O
you	O	O
can	O	O
use	O	O
your	O	O
activity	O	B-Class
's	O	O
setContentView(int)	B-Code_Block	B-Function
method	O	O
to	O	O
completely	O	O
reset	O	O
the	O	O
activity	O	B-Class
's	O	O
layout	O	B-Class
to	O	O
a	O	O
new	O	O
view	O	B-Class
.	O	O

The	O	O
second	O	O
would	O	O
be	O	O
to	O	O
identify	O	O
the	O	O
parent	O	O
view	O	B-Class
of	O	O
the	O	O
bracket	O	O
portion	O	O
,	O	O
cast	O	O
it	O	O
to	O	O
a	O	O
ViewGroup	B-Code_Block	B-Class
and	O	O
use	O	O
addView(View)	B-Code_Block	B-Function
and	O	O
removeView(View)	B-Code_Block	B-Function
.	O	O

As	O	O
for	O	O
question	O	O
2	O	O
,	O	O
you	O	O
could	O	O
go	O	O
about	O	O
using	O	O
a	O	O
canvas	O	B-Class
,	O	O
but	O	O
it	O	O
would	O	O
be	O	O
quite	O	O
difficult	O	O
to	O	O
use	O	O
only	O	O
a	O	O
canvas	O	B-Class
,	O	O
but	O	O
possibly	O	O
a	O	O
combination	O	O
of	O	O
a	O	O
canvas	O	B-Class
and	O	O
a	O	O
set	O	O
of	O	O
text	O	B-Class
views	O	I-Class
could	O	O
work	O	O
.	O	O

While	O	O
this	O	O
is	O	O
n't	O	O
directly	O	O
answering	O	O
your	O	O
question	O	O
,	O	O
this	O	O
tutorial	O	O
is	O	O
one	O	O
I	O	O
have	O	O
used	O	O
in	O	O
the	O	O
past	O	O
,	O	O
and	O	O
gives	O	O
you	O	O
an	O	O
excellent	O	O
sense	O	O
of	O	O
how	O	O
to	O	O
work	O	O
with	O	O
the	O	O
Canvas	O	B-Class
class	O	O
in	O	O
android	O	B-Operating_System
.	O	O

while	O	O
adding	O	O
a	O	O
new	O	O
classifier	O	O
in	O	O
weka	O	B-Application
...	O	O
by	O	O
running	O	O
java	O	B-Language
call	O	O
:java	O	B-Code_Block
-classpath	O	I-Code_Block
"	O	I-Code_Block
weka.jar	O	I-Code_Block
;	O	I-Code_Block
weka-src.jar	O	I-Code_Block
"	O	I-Code_Block
weka.gui.GUIChooser	O	I-Code_Block

what	O	O
to	O	O
set	O	O
classpath	O	O
...	O	O
and	O	O
is	O	O
it	O	O
the	O	O
correct	O	O
format	O	O
to	O	O
add	O	O
a	O	O
classifier	O	O
a	O	O
weka	O	B-Application
...	O	O
i	O	O
am	O	O
using	O	O
windows	O	B-Operating_System
10	O	B-Version

You	O	O
are	O	O
not	O	O
adding	O	O
classifiers	O	O
,	O	O
you	O	O
are	O	O
adding	O	O
.jar	O	B-File_Type
files	O	O
.	O	O

You	O	O
have	O	O
to	O	O
use	O	O
absolute	O	O
paths	O	O
(	O	O
C:/..	O	B-File_Name
.	O	I-File_Name
)	O	O
to	O	O
the	O	O
jar	O	B-File_Type
files	O	O
.	O	O

java	B-Code_Block	B-Code_Block
-classpath	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
c:/.../weka.jar	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block

weka-src.jar	O	B-File_Name
is	O	O
not	O	O
neeeded	O	O
.	O	O

It	O	O
is	O	O
optional	O	O
to	O	O
set	O	O
the	O	O
working	O	O
directory	O	O
of	O	O
your	O	O
script/batch	O	B-File_Type
file	O	O
to	O	O
the	O	O
directory	O	O
where	O	O
the	O	O
weka.jar	O	B-File_Name
file	O	O
can	O	O
be	O	O
found	O	O
.	O	O

Is	O	O
the	O	O
contents	O	O
of	O	O
the	O	O
.Net	O	B-Library
MemoryStream	O	B-Class
Object	O	O
secure	O	O
in	O	O
Memory	O	O
?	O	O

We	O	O
have	O	O
large	O	O
files	O	O
that	O	O
are	O	O
downloaded	O	O
from	O	O
a	O	O
secure	O	O
site	O	O
directly	O	O
into	O	O
MemoryStream	O	B-Class
Objects	O	O
that	O	O
contain	O	O
PCI	O	O
information	O	O
.	O	O

The	O	O
concern	O	O
is	O	O
that	O	O
the	O	O
data	O	O
in	O	O
the	O	O
MemoryStream	O	B-Class
object	O	O
itself	O	O
maybe	O	O
exposed	O	O
in	O	O
the	O	O
system	O	O
memory	O	O
to	O	O
RAM	O	B-Device
scraping	O	O
attacks	O	O
.	O	O

I	O	O
have	O	O
a	O	O
string	O	B-Data_Type
of	O	O
numerical	O	O
values	O	O
separated	O	O
with	O	O
spaces	O	B-Value
:	O	O

I	O	O
want	O	O
to	O	O
get	O	O
all	O	O
occurrences	O	O
of	O	O
the	O	O
string	O	B-Data_Type
,	O	O
where	O	O
combined	O	O
sum	O	O
of	O	O
numbers	O	O
is	O	O
x	O	B-Variable
.	O	O

So	O	O
,	O	O
if	O	O
I	O	O
search	O	O
:	O	O
2041	O	B-Value
it	O	O
should	O	O
return	O	O
an	O	O
array	O	B-Data_Structure
(	O	O
"	O	B-Value
318	O	I-Value
500	O	I-Value
358	O	I-Value
865	O	I-Value
"	O	I-Value
)	O	O
or	O	O
if	O	O
I	O	O
search	O	O
:	O	O
1818	O	B-Value
it	O	O
should	O	O
return	O	O
an	O	O
array	O	B-Data_Structure
(	O	O
"	O	B-Value
920	O	I-Value
898	O	I-Value
"	O	I-Value
,	O	O
"	O	B-Value
31	O	I-Value
470	O	I-Value
725	O	I-Value
358	O	I-Value
114	O	I-Value
56	O	I-Value
9	O	I-Value
55	O	I-Value
"	O	I-Value
)	O	O
.	O	O

I	O	O
also	O	O
need	O	O
solution	O	O
to	O	O
be	O	O
optimal	O	O
,	O	O
because	O	O
string	O	B-Data_Type
of	O	O
numbers	O	O
can	O	O
sum	O	O
up	O	O
to	O	O
hundreds	O	O
of	O	O
thousands	O	O
.	O	O

Principle	O	O
explained	O	O
in	O	O
theory	O	O
would	O	O
be	O	O
good	O	O
,	O	O
but	O	O
preferred	O	O
languages	O	O
are	O	O
PHP	O	B-Language
or	O	O
NodeJs	O	B-Library
if	O	O
solution	O	O
is	O	O
given	O	O
by	O	O
programming	O	O
language	O	O
.	O	O

Even	O	O
MySQL	O	B-Application
solution	O	O
would	O	O
be	O	O
nice	O	O
,	O	O
if	O	O
possible	O	O
.	O	O

But	O	O
solution	O	O
by	O	O
any	O	O
language	O	O
would	O	O
be	O	O
nice	O	O
anyway	O	O
.	O	O

Extra	O	O
notes	O	O

numbers	O	O
are	O	O
all	O	O
positive	O	O
integers	O	B-Data_Type

number	O	O
values	O	O
are	O	O
between	O	O
1-10000	O	B-Value

Here	O	O
you	O	O
go	O	O
,	O	O
in	O	O
Python	O	B-Language
.	O	O

This	O	O
has	O	O
linear	O	O
complexity	O	O
:	O	O

I	O	O
'm	O	O
assuming	O	O
there	O	O
are	O	O
no	O	O
negative	O	O
values	O	O
in	O	O
your	O	O
list	O	B-Data_Structure
,	O	O
and	O	O
the	O	O
list	O	B-Data_Structure
consists	O	O
purely	O	O
of	O	O
integers	O	B-Data_Type
separated	O	O
by	O	O
spaces	O	B-Value
.	O	O

You	O	O
should	O	O
n't	O	O
have	O	O
any	O	O
problems	O	O
translating	O	O
it	O	O
into	O	O
any	O	O
other	O	O
language	O	O
.	O	O

I	O	O
hope	O	O
the	O	O
algorithm	O	O
is	O	O
self-explanatory	O	O
,	O	O
if	O	O
not	O	O
ask	O	O
.	O	O

Usage	O	O
:	O	O

First	O	O
we	O	O
pass	O	O
the	O	O
string	O	B-Data_Type
we	O	O
want	O	O
to	O	O
search	O	O
,	O	O
then	O	O
we	O	O
use	O	O
method	O	O
to_array()	O	B-Function
so	O	O
we	O	O
can	O	O
create	O	O
the	O	O
array	O	B-Data_Structure
from	O	O
the	O	O
string	O	B-Data_Type
,	O	O
then	O	O
you	O	O
need	O	O
to	O	O
choose	O	O
which	O	O
mode	O	O
you	O	O
want	O	O
to	O	O
use	O	O
.	O	O

It	O	O
has	O	O
2	O	O
modes	O	O
,	O	O
soft	O	O
search	O	O
and	O	O
hard	O	O
search	O	O
.	O	O

you	O	O
can	O	O
choose	O	O
which	O	O
one	O	O
to	O	O
use	O	O
in	O	O
the	O	O
find	O	B-Function
method	O	O
,	O	O
->find(true)	O	B-Code_Block
,	O	O
True	O	B-Code_Block
=	O	I-Code_Block
hard	O	I-Code_Block
mode	O	O
,	O	O
False	O	B-Code_Block
=	O	I-Code_Block
soft	O	I-Code_Block
mode	O	O
;	O	O

The	O	O
soft	O	B-Variable
mode	O	O
it	O	O
is	O	O
really	O	O
simple	O	O
,	O	O
creates	O	O
a	O	O
new	O	O
multidimensional	O	O
array	O	B-Data_Structure
with	O	O
keys	O	O
as	O	O
the	O	O
strlen	O	B-Function
of	O	O
the	O	O
numbers	O	O
(	O	O
method	O	O
order())	O	B-Function
,	O	O
so	O	O
if	O	O
we	O	O
are	O	O
searching	O	O
for	O	O
a	O	O
number	O	O
70	O	B-Value
we	O	O
do	O	O
n't	O	O
really	O	O
wanna	O	O
use	O	O
the	O	O
3	O	O
digits	O	O
or	O	O
more	O	O
,	O	O
i	O	O
mean	O	O
(	O	O
100	O	B-Value
,	O	O
99999	O	B-Value
etc	O	O
..	O	O
.	O	O
)	O	O
.	O	O

Then	O	O
it	O	O
just	O	O
minus	O	O
the	O	O
search	O	O
value	O	O
with	O	O
the	O	O
number	O	O
and	O	O
tries	O	O
to	O	O
search	O	O
in	O	O
the	O	O
entire	O	O
array	O	B-Data_Structure
with	O	O
(	O	O
in_array	O	B-Function
)	O	O
if	O	O
it	O	O
has	O	O
the	O	O
result	O	O
;	O	O

The	O	O
hard	O	B-Variable
mode	O	O
is	O	O
just	O	O
as	O	O
the	O	O
name	O	O
states	O	O
,	O	O
we	O	O
will	O	O
loop	O	O
through	O	O
every	O	O
number	O	O
.	O	O

Of	O	O
course	O	O
we	O	O
could	O	O
really	O	O
make	O	O
a	O	O
few	O	O
more	O	O
tweaks	O	O
but	O	O
from	O	O
what	O	O
i	O	O
tested	O	O
it	O	O
gives	O	O
good	O	O
results	O	O
.	O	O

Feel	O	O
free	O	O
to	O	O
ask	O	O
if	O	O
you	O	O
have	O	O
any	O	O
questions	O	O
.	O	O

Example	O	O
with	O	O
outputs	O	O
:	O	O
http://codepad.viper-7.com/INvSNo	O	O

Output	O	O
example	O	O
for	O	O
285	O	O
:	O	O

Detailed	O	O
information	O	O
seems	O	O
to	O	O
be	O	O
hard	O	O
to	O	O
find	O	O
on	O	O
this	O	O
.	O	O

So	O	O
the	O	O
situation	O	O
I	O	O
have	O	O
is	O	O
an	O	O
existing	O	O
server	O	B-Application
with	O	O
usernames	O	O
and	O	O
passwords	O	O
.	O	O

I	O	O
'm	O	O
adding	O	O
an	O	O
additional	O	O
couchdb	O	B-Application
server	O	I-Application
to	O	O
manage	O	O
data	O	O
for	O	O
a	O	O
mobile	O	B-Device
app	O	O
,	O	O
however	O	O
I	O	O
still	O	O
want	O	O
all	O	O
authentication	O	O
to	O	O
be	O	O
handled	O	O
via	O	O
the	O	O
existing	O	O
server	O	B-Application
.	O	O

So	O	O
I	O	O
can	O	O
send	O	O
an	O	O
HTTP	O	O
request	O	O
with	O	O
username	O	O
and	O	O
password	O	O
to	O	O
the	O	O
existing	O	O
server	O	B-Application
and	O	O
i	O	O
can	O	O
get	O	O
it	O	O
to	O	O
send	O	O
back	O	O
anyanything	O	O
i	O	O
like	O	O
if	O	O
access	O	O
is	O	O
accepted	O	O
.	O	O

How	O	O
could	O	O
I	O	O
then	O	O
use	O	O
that	O	O
information	O	O
to	O	O
authenticate	O	O
with	O	O
the	O	O
couchdb	O	B-Application
server	O	I-Application
?	O	O

I	O	O
imagine	O	O
it	O	O
would	O	O
be	O	O
possible	O	O
to	O	O
recieve	O	O
a	O	O
secret	O	O
from	O	O
the	O	O
existing	O	O
server	O	B-Application
on	O	O
successful	O	O
authentication	O	O
that	O	O
we	O	O
could	O	O
match	O	O
to	O	O
one	O	O
we	O	O
have	O	O
manually	O	O
stored	O	O
on	O	O
couchdb	O	B-Application
server	O	I-Application
.	O	O

However	O	O
that	O	O
does	O	O
n't	O	O
seem	O	O
to	O	O
be	O	O
very	O	O
secure	O	O
.	O	O

I	O	O
have	O	O
read	O	O
the	O	O
Authentication	O	O
docs	O	O
at	O	O
couchdb	O	B-Application
but	O	O
I	O	O
'm	O	O
still	O	O
confused	O	O
.	O	O

Any	O	O
suggestions	O	O
for	O	O
an	O	O
authentication	O	O
system	O	O
?	O	O

I	O	O
think	O	O
JWT	O	B-Application
authentication	O	O
is	O	O
what	O	O
you	O	O
're	O	O
looking	O	O
for	O	O
.	O	O

There	O	O
's	O	O
a	O	O
plugin	O	O
which	O	O
can	O	O
do	O	O
this	O	O
for	O	O
you	O	O
:	O	O
https://github.com/dmunch/couch_jwt_auth	O	O
(	O	O
The	O	O
repository	O	O
is	O	O
a	O	O
fork	O	O
,	O	O
implementing	O	O
additional	O	O
functionality	O	O
to	O	O
the	O	O
original	O	O
one	O	O
plus	O	O
is	O	O
compatible	O	O
with	O	O
CouchDB	O	B-Application
2.0	O	B-Version
.	O	O
)	O	O

Basically	O	O
you	O	O
send	O	O
your	O	O
username/password	O	O
to	O	O
the	O	O
authentication	O	O
server	O	B-Application
,	O	O
which	O	O
in	O	O
turn	O	O
gives	O	O
you	O	O
back	O	O
a	O	O
token	O	O
(	O	O
the	O	O
JWT	O	B-Application
)	O	O
.	O	O

You	O	O
can	O	O
now	O	O
authenticate	O	O
to	O	O
CouchDB	O	B-Application
using	O	O
this	O	O
token	O	O
.	O	O

CouchDB	O	B-Application
verifies	O	O
the	O	O
integrity	O	O
of	O	O
the	O	O
token	O	O
either	O	O
by	O	O
using	O	O
a	O	O
shared	O	O
secret	O	O
(	O	O
HS256	O	O
)	O	O
or	O	O
by	O	O
using	O	O
the	O	O
public	O	B-Data_Type
key	O	O
of	O	O
the	O	O
authentication	O	O
server	O	B-Application
.	O	O

I	O	O
have	O	O
a	O	O
problem	O	O
that	O	O
I	O	O
frequently	O	O
deal	O	O
with	O	O
using	O	O
MVC	O	B-Algorithm
that	O	O
I	O	O
ca	O	O
n't	O	O
seem	O	O
to	O	O
find	O	O
an	O	O
easy	O	O
solution	O	O
for	O	O
.	O	O

Very	O	O
frequently	O	O
I	O	O
find	O	O
myself	O	O
creating	O	O
a	O	O
viewmodel	O	B-Class
for	O	O
an	O	O
object	O	O
that	O	O
has	O	O
a	O	O
collection	O	O
of	O	O
smaller	O	O
objects	O	O
.	O	O

For	O	O
instance	O	O
,	O	O

I	O	O
created	O	O
a	O	O
Staff	O	B-Variable
screen	O	B-User_Interface_Element
where	O	O
the	O	O
user	O	O
adds	O	O
a	O	O
staff	O	O
member	O	O
to	O	O
the	O	O
database	O	O
.	O	O

Most	O	O
of	O	O
this	O	O
is	O	O
fairly	O	O
straight	O	O
forward	O	O
,	O	O
but	O	O
then	O	O
I	O	O
need	O	O
to	O	O
be	O	O
able	O	O
to	O	O
add	O	O
a	O	O
credential	O	B-Variable
.	O	O

The	O	O
number	O	O
of	O	O
credentials	O	B-Variable
a	O	O
staff	O	B-Variable
can	O	O
have	O	O
is	O	O
dynamic	O	O
,	O	O
so	O	O
there	O	O
's	O	O
a	O	O
second	O	O
table	O	B-Data_Structure
with	O	O
a	O	O
foreign	O	B-Code_Block
key	O	I-Code_Block
referencing	O	O
the	O	O
staff	O	B-Variable
,	O	O
as	O	O
well	O	O
as	O	O
the	O	O
appropriate	O	O
credential	O	B-Variable
data	O	O
.	O	O

So	O	O
my	O	O
viewmodel	O	B-Class
has	O	O
a	O	O
Staff	O	B-Variable
object	O	O
,	O	O
and	O	O
an	O	O
IEnumerable	O	B-Class
of	O	O
Credential	O	B-Variable
objects	O	O
.	O	O

Currently	O	O
when	O	O
the	O	O
user	O	O
adds/edits	O	O
staff	O	B-Variable
in	O	O
the	O	O
partialview	O	O
form	O	B-User_Interface_Element
,	O	O
a	O	O
popup	O	O
with	O	O
the	O	O
credential	O	B-Variable
fields	O	O
appears	O	O
.	O	O

When	O	O
you	O	O
save	O	O
the	O	O
credential	O	B-Variable
,	O	O
I	O	O
manually	O	O
generate	O	O
the	O	O
hidden	O	O
fields	O	O
of	O	O
every	O	O
single	O	O
property	O	O
as	O	O
hidden	O	O
html	O	B-Language
elements	O	O
using	O	O
javascript	O	B-Language
strings	O	B-Data_Type
,	O	O
then	O	O
append	O	O
it	O	O
to	O	O
the	O	O
appropriate	O	O
places	O	O
.	O	O

It	O	O
gets	O	O
really	O	O
unmanageable	O	O
.	O	O

etc	O	O
...	O	O
to	O	O
hid7	O	B-Variable
.	O	O

I	O	O
also	O	O
generate	O	O
a	O	O
series	O	O
of	O	O
tags	O	O
to	O	O
display	O	O
the	O	O
data	O	O
on	O	O
the	O	O
page	O	B-User_Interface_Element
.	O	O

An	O	O
absolute	O	O
mess	O	O
.	O	O

It	O	O
currently	O	O
works	O	O
,	O	O
but	O	O
there	O	O
has	O	O
to	O	O
be	O	O
a	O	O
better	O	O
way	O	O
,	O	O
and	O	O
I	O	O
'm	O	O
about	O	O
to	O	O
deal	O	O
with	O	O
a	O	O
very	O	O
similar	O	O
problem	O	O
.	O	O

I	O	O
feel	O	O
like	O	O
I	O	O
'm	O	O
reinventing	O	O
the	O	O
wheel	O	O
.	O	O

My	O	O
first	O	O
instinct	O	O
was	O	O
to	O	O
add	O	O
a	O	O
nested	O	O
form	O	O
,	O	O
but	O	O
my	O	O
research	O	O
tells	O	O
me	O	O
MVC	O	B-Algorithm
forbids	O	O
this	O	O
,	O	O
so	O	O
that	O	O
's	O	O
out	O	O
of	O	O
the	O	O
question	O	O
.	O	O

To	O	O
sum	O	O
up	O	O
what	O	O
I	O	O
'm	O	O
looking	O	O
for	O	O
:	O	O

How	O	O
can	O	O
I	O	O
dynamically	O	O
load/save	O	O
objects	O	O
in	O	O
the	O	O
partial	O	O
view	O	O
,	O	O
without	O	O
losing	O	O
the	O	O
data	O	O
on	O	O
HTTPPOST	O	B-Function
?	O	O

I	O	O
want	O	O
equivalent	O	O
to	O	O
GROUP_CONCAT	O	B-Function
functionality	O	O
of	O	O
MySql	O	B-Application
in	O	O
DB2	O	B-Application
.	O	O

I	O	O
have	O	O
tried	O	O
XML	O	B-Language
Aggrigate	O	O
functon	O	O
of	O	O
DB2	O	B-Application
for	O	O
cocating	O	O
murows	O	O
.	O	O

Which	O	O
gives	O	O
me	O	O
result	O	O

But	O	O
I	O	O
want	O	O
distinct/Unique	O	O
Value	O	O
of	O	O
BASIC_SKILL2	O	B-Variable
,	O	O
BASIC_SKILL1	O	B-Variable
.	O	O

The	O	O
select	O	B-Code_Block
distinct	O	I-Code_Block
wo	O	O
n't	O	O
work	O	O
in	O	O
case	O	O
of	O	O
tables	O	B-Data_Structure
with	O	O
no	O	O
duplicates	O	O
,	O	O
because	O	O
of	O	O
multiple	O	O
joins	O	O
giving	O	O
all	O	O
the	O	O
combinations	O	O
of	O	O
the	O	O
values	O	O
of	O	O
every	O	O
join	O	B-Code_Block
.	O	O

That	O	O
leads	O	O
to	O	O
duplicates	O	O
in	O	O
the	O	O
aggregate	O	O
function	O	O
.	O	O

I	O	O
've	O	O
found	O	O
that	O	O
pushing	O	O
the	O	O
group	O	B-Code_Block
bys	O	I-Code_Block
and	O	O
the	O	O
aggregate	O	O
functions	O	O
to	O	O
subqueries	O	O
in	O	O
the	O	O
from	O	B-Code_Block
part	O	O
gives	O	O
the	O	O
best	O	O
results	O	O
.	O	O

Came	O	O
across	O	O
your	O	O
question	O	O
after	O	O
asking	O	O
the	O	O
same	O	O
one	O	O
myself	O	O
.	O	O

The	O	O
solution	O	O
I	O	O
came	O	O
up	O	O
with	O	O
is	O	O
to	O	O
use	O	O
a	O	O
common	O	O
table	O	B-Data_Structure
expression	O	O
with	O	O
DISTINCT	O	B-Code_Block
.	O	O

In	O	O
your	O	O
case	O	O
,	O	O
it	O	O
would	O	O
be	O	O
easier	O	O
and	O	O
clearer	O	O
to	O	O
use	O	O
subselects	O	O
instead	O	O
(	O	O
XMLELEMENT	O	B-Code_Block
boilerplate	O	O
elided	O	O
for	O	O
clarity	O	O
)	O	O
:	O	O

There	O	O
may	O	O
well	O	O
be	O	O
an	O	O
easier	O	O
way	O	O
,	O	O
but	O	O
this	O	O
is	O	O
what	O	O
I	O	O
came	O	O
up	O	O
with	O	O
.	O	O

Also	O	O
,	O	O
you	O	O
might	O	O
want	O	O
to	O	O
take	O	O
advantage	O	O
of	O	O
functions	O	O
like	O	O
XMLQUERY	O	B-Function
and	O	O
XSLTRANSFORM	O	B-Function
.	O	O

Much	O	O
simpler	O	O
and	O	O
less	O	O
error-prone	O	O
than	O	O
the	O	O
manual	O	O
way	O	O
you	O	O
're	O	O
doing	O	O
it	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
implement	O	O
a	O	O
tpl	O	B-File_Type
within	O	O
a	O	O
displayfield	O	B-User_Interface_Element
to	O	O
display	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
data	O	O
sent	O	O
to	O	O
the	O	O
server	O	B-Application
from	O	O
a	O	O
textarea	O	B-User_Interface_Element
.	O	O

The	O	O
same	O	O
data	O	O
is	O	O
displayed	O	O
in	O	O
a	O	O
grid	O	B-User_Interface_Element
with	O	O
rowexpander	O	B-Application
plugin	O	I-Application
(	O	O
display	O	O
values	O	O
in	O	O
XTemplate	O	B-Library
like	O	O
textarea	O	B-User_Interface_Element
format	O	O
)	O	O

Fiddle	O	B-Application
:	O	O
https://fiddle.sencha.com/#fiddle/14sf	O	O

I	O	O
tried	O	O
something	O	O
like	O	O
this	O	O
:	O	O

FIDDLE	O	B-Application
:	O	O
https://fiddle.sencha.com/#fiddle/14t7	O	O

without	O	O
sucess	O	O
..	O	O
.	O	O

I	O	O
tried	O	O
every	O	O
way	O	O
I	O	O
found	O	O
to	O	O
render	O	O
a	O	O
tpl	O	B-File_Type
unsuccessfully	O	O
.	O	O

Display	O	O
has	O	O
a	O	O
config	O	O
tpl	O	B-File_Type
but	O	O
it	O	O
seems	O	O
not	O	O
work	O	O
in	O	O
my	O	O
case	O	O
..	O	O
.	O	O

I	O	O
appreciate	O	O
suggestions	O	O
for	O	O
resolving	O	O
this	O	O
issue	O	O

The	O	O
displayfield	O	O
also	O	O
has	O	O
renderer	O	O
function	O	O
.	O	O

You	O	O
can	O	O
use	O	O
it	O	O
as	O	O
in	O	O
your	O	O
grid	O	B-User_Interface_Element
:	O	O

https://fiddle.sencha.com/#fiddle/14il	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
insert	O	O
excel	O	B-File_Type
data	O	O
into	O	O
mongoDB	O	B-Application
database	O	O
.	O	O

I	O	O
have	O	O
succeeded	O	O
to	O	O
insert	O	O
data	O	O
into	O	O
it	O	O
but	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
store	O	O
the	O	O
data	O	O
row	O	B-Data_Structure
by	O	O
row	O	B-Data_Structure
,	O	O
the	O	O
total	O	O
data	O	O
inserted	O	O
as	O	O
one	O	O
thing	O	O
and	O	O
unable	O	O
differentiate	O	O
the	O	O
String	O	B-Data_Type
and	O	O
Numeric	O	B-Data_Type
.	O	O

please	O	O
help	O	O
me	O	O
on	O	O
this	O	O
.	O	O

I	O	O
need	O	O
to	O	O
insert	O	O
the	O	O
data	O	O
row	O	B-Data_Structure
by	O	O
row	O	B-Data_Structure
.	O	O

I	O	O
have	O	O
attached	O	O
my	O	O
excel	O	B-File_Type
,	O	O
code	O	O
and	O	O
o/p	O	O
.	O	O

Output	O	O
:	O	O

mongoDB	O	B-Application
output	O	O
as	O	O
image	O	B-User_Interface_Element

Excel	O	B-File_Type
:	O	O

Excel	O	B-File_Type
data	O	O
as	O	O
image	O	B-User_Interface_Element

}	O	B-Code_Block

I	O	O
have	O	O
a	O	O
Silverlight	O	B-Application
4	O	B-Version
app	O	O
using	O	O
Prism	O	B-Library
2.2	O	B-Version
and	O	O
I	O	O
have	O	O
a	O	O
few	O	O
modules	O	O
that	O	O
I	O	O
am	O	O
loading	O	O
on	O	O
demand	O	O
by	O	O
defining	O	O
them	O	O
as	O	O
ondemand	O	B-Variable
in	O	O
the	O	O
module	O	O
catalog	O	O
(	O	O
via	O	O
a	O	O
xaml	O	B-File_Type
file	O	O
)	O	O
and	O	O
then	O	O
using	O	O
the	O	O
ModuleManager	O	B-Class
to	O	O
request	O	O
the	O	O
module	O	O
be	O	O
downloaded	O	O

Is	O	O
there	O	O
a	O	O
mechanism	O	O
in	O	O
Prism	O	B-Library
to	O	O
determine	O	O
when	O	O
the	O	O
module	O	O
download	O	O
is	O	O
completed	O	O
and	O	O
get	O	O
to	O	O
download	O	O
progress	O	O
events	O	O
?	O	O

There	O	O
was	O	O
a	O	O
thread	O	O
on	O	O
the	O	O
prism	O	B-Library
codeplex	O	B-Website
site	O	O
but	O	O
none	O	O
of	O	O
the	O	O
suggestions	O	O
seemed	O	O
to	O	O
pan	O	O
out	O	O
for	O	O
the	O	O
folks	O	O
having	O	O
the	O	O
discussion	O	O

http://compositewpf.codeplex.com/Thread/View.aspx?ThreadId=47957	O	O

thanks	O	O

Michael	O	B-User_Name

It	O	O
turns	O	O
out	O	O
that	O	O
the	O	O
solution	O	O
provided	O	O
in	O	O
the	O	O
prism	O	B-Library
discussion	O	O
on	O	O
codeplex	O	B-Website
worked	O	O
like	O	O
a	O	O
charm	O	O

http://compositewpf.codeplex.com/Thread/View.aspx?ThreadId=47957	O	O

I	O	O
created	O	O
a	O	O
custom	O	O
FileDownloader	O	B-Class
called	O	O
FileDownloaderWithProgress	O	B-Class
.	O	O

I	O	O
wanted	O	O
to	O	O
subclass	O	O
the	O	O
existing	O	O
one	O	O
in	O	O
Prism	O	B-Library
but	O	O
the	O	O
WebClient	O	B-Class
that	O	O
fires	O	O
the	O	O
DownloadProgressChanged	O	B-Variable
event	O	O
was	O	O
private	O	B-Data_Type
.	O	O

So	O	O
I	O	O
had	O	O
to	O	O
create	O	O
my	O	O
own	O	O
by	O	O
implementing	O	O
IFileDownloader	O	B-Class
.	O	O

In	O	O
the	O	O
DownloadProgressChanged	O	B-Variable
event	O	O
handler	O	O
in	O	O
the	O	O
FileDownloaderWithProgress	O	B-Class
class	O	O
-	O	O
I	O	O
publish	O	O
a	O	O
Prism	O	B-Library
event	O	O
that	O	O
includes	O	O
the	O	O
%	O	O
complete	O	O
and	O	O
the	O	O
module	O	O
name	O	O
that	O	O
was	O	O
downloaded	O	O
.	O	O

Below	O	O
is	O	O
my	O	O
code	O	O
.	O	O

Its	O	O
an	O	O
MVC	O	B-Algorithm
project	O	O
on	O	O
asp.net	O	B-Library
.	O	O

Ca	O	O
n't	O	O
find	O	O
out	O	O
what	O	O
is	O	O
the	O	O
problem	O	O
!	O	O

Create	O	B-Function
,	O	O
Update	O	B-Function
and	O	O
Retrieve	O	B-Function
operations	O	O
work	O	O
successfully	O	O
but	O	O
do	O	O
n't	O	O
know	O	O
why	O	O
delete	O	B-Function
operation	O	O
is	O	O
not	O	O
working	O	O
.	O	O

Code	O	O
:	O	O

Controller	O	O
Code	O	O
:	O	O

Error	O	O
Showing	O	O
:	O	O

DELETE	O	O
http://localhost:1693/Product/Delete?id=16	O	O
404	O	B-Error_Name
(	O	I-Error_Name
Not	O	I-Error_Name
Found	O	I-Error_Name
)	O	I-Error_Name

Thanks	O	O
in	O	O
advance	O	O
.	O	O

You	O	O
should	O	O
call	O	O
the	O	O
URL	O	O
like	O	O
/Product	B-Code_Block	O
without	O	O
mentioning	O	O
Delete	O	B-Function
in	O	O
the	O	O
URL	O	O
,	O	O
ASP.Net	O	B-Library
WebAPI	O	I-Library
will	O	O
take	O	O
care	O	O
about	O	O
calling	O	O
Delete	O	B-Function
method	O	O
,	O	O
when	O	O
you	O	O
call	O	O
.delete	B-Code_Block	B-Function
on	O	O
$http	B-Code_Block	B-Code_Block

As	O	O
the	O	O
question	O	O
suggests	O	O
i	O	O
cannot	O	O
seem	O	O
to	O	O
configure	O	O
foo-tables	O	B-Data_Structure
,	O	O
even	O	O
in	O	O
the	O	O
most	O	O
basic	O	O
way	O	O
-	O	O
3	O	O
columns	O	B-Data_Structure
,	O	O
last	O	O
column	O	B-Data_Structure
is	O	O
the	O	O
toggle	O	O
which	O	O
shows	O	O
the	O	O
detail	O	O
row	O	B-Data_Structure
.	O	O

My	O	O
markup	O	O
code	O	O
is	O	O
thus	O	O
:	O	O

$('.footable').footable({})	B-Code_Block	B-Code_Block
;	I-Code_Block	I-Code_Block

I	O	O
have	O	O
an	O	O
example	O	O
template	O	O
from	O	O
which	O	O
i	O	O
got	O	O
his	O	O
code	O	O
which	O	O
works	O	O
perfectly	O	O
-	O	O
but	O	O
in	O	O
the	O	O
actual	O	O
app	O	O
im	O	O
building	O	O
the	O	O
third	O	O
row	O	B-Data_Structure
which	O	O
should	O	O
be	O	O
hidden	O	O
until	O	O
toggled	O	O
is	O	O
un-rendered	O	O
and	O	O
shows	O	O
as	O	O
a	O	O
third	O	O
column	O	B-Data_Structure
.	O	O

My	O	O
setup	O	O
is	O	O
as	O	O
follows	O	O
:	O	O

FooTable	O	B-Library
-	O	O
Version	O	O
:	O	O
2.0.3	O	B-Version

jQuery-1.11.1	O	B-Library

jQuery	O	B-Library
UI	O	O
-	O	O
v1.11.0	O	B-Version
-	O	I-Version
2014-06-26	O	I-Version

Chrome	O	B-Application
:	O	O
Version	O	O
46.0.2490.80	O	B-Version
m	O	I-Version

Any	O	O
pointers	O	O
appreciated	O	O
-	O	O
thanks	O	O
in	O	O
advance	O	O
.	O	O

BTW	O	O
i	O	O
have	O	O
the	O	O
correct	O	O
footables	O	B-Data_Structure
css	O	B-Language
file	O	O
referenced	O	O
in	O	O
my	O	O
app	O	O
(	O	O
not	O	O
shown	O	O
in	O	O
code	O	O
snippet	O	O
above	O	O
)	O	O

Found	O	O
the	O	O
solution	O	O
here	O	O
:	O	O

footable	O	B-Library
in	O	O
bootstrap	O	B-Library
3	O	B-Version
not	O	O
initializing	O	O

(	O	O
so	O	O
please	O	O
stop	O	O
the	O	O
stampede	O	O
to	O	O
answer	O	O
;¬)	O	O
)	O	O

Thanks	O	O

Synopsis	O	O

I	O	O
want	O	O
to	O	O
build	O	O
a	O	O
custom	O	O
control	O	O
which	O	O
displays	O	O
events	O	O
in	O	O
a	O	O
calendar	O	B-Application
.	O	O

Here	O	O
is	O	O
the	O	O
draft	O	O
:	O	O

The	O	O
Concept	O	O

The	O	O
bottom	O	O
left	O	O
box	O	B-User_Interface_Element
is	O	O
vertically	O	O
scrollable	O	O
.	O	O

The	O	O
bottom	O	O
right	O	O
box	O	B-User_Interface_Element
scrollable	O	O
in	O	O
both	O	O
directions	O	O
.	O	O

It	O	O
's	O	O
possible	O	O
to	O	O
move	O	O
the	O	O
event	O	B-User_Interface_Element
views	O	I-User_Interface_Element
around	O	O
.	O	O

If	O	O
they	O	O
come	O	O
near	O	O
the	O	O
bounds	O	O
during	O	O
dragging	O	O
the	O	O
view	O	O
auto-scrolls	O	O
in	O	O
that	O	O
direction	O	O
.	O	O

The	O	O
scroll	O	B-User_Interface_Element
area	O	I-User_Interface_Element
is	O	O
finite	O	O
according	O	O
to	O	O
the	O	O
earliest	O	O
and	O	O
latest	O	O
event	O	O
in	O	O
a	O	O
database	O	O
or	O	O
a	O	O
certain	O	O
maximum	O	O
.	O	O

But	O	O
if	O	O
the	O	O
user	O	O
continues	O	O
scrolling	O	O
the	O	O
scroll	O	B-User_Interface_Element
area	O	I-User_Interface_Element
grows	O	O
accordingly	O	O
and	O	O
collapses	O	O
if	O	O
the	O	O
user	O	O
scrolls	O	O
back	O	O
and	O	O
did	O	O
not	O	O
create	O	O
a	O	O
new	O	O
event	O	O
.	O	O

This	O	O
"	O	O
July	O	O
2011	O	O
"	O	O
button	O	B-User_Interface_Element
at	O	O
the	O	O
bottom	O	O
acts	O	O
as	O	O
scroller	O	B-User_Interface_Element
.	O	O

If	O	O
the	O	O
user	O	O
pulls	O	O
it	O	O
beyond	O	O
the	O	O
bounds	O	O
of	O	O
the	O	O
scroll	O	B-User_Interface_Element
area	O	I-User_Interface_Element
,	O	O
it	O	O
grows	O	O
accordingly	O	O
.	O	O

The	O	O
month	O	O
name	O	O
in	O	O
the	O	O
header	O	O
stays	O	O
always	O	O
at	O	O
this	O	O
position	O	O
until	O	O
the	O	O
next	O	O
month	O	O
moves	O	O
in	O	O
,	O	O
so	O	O
it	O	O
's	O	O
a	O	O
long	O	O
cell	O	B-User_Interface_Element
which	O	O
spans	O	O
over	O	O
the	O	O
day	O	O
cells	O	B-User_Interface_Element
of	O	O
the	O	O
month	O	O
with	O	O
a	O	O
floating	O	O
caption	O	O
.	O	O

The	O	O
header	O	B-User_Interface_Element
rows	O	I-User_Interface_Element
and	O	O
columns	O	B-User_Interface_Element
are	O	O
always	O	O
visible	O	O
.	O	O

The	O	O
Question	O	O

Since	O	O
I	O	O
'm	O	O
only	O	O
slightly	O	O
familiar	O	O
with	O	O
the	O	O
capabilities	O	O
of	O	O
Cappuccino	O	B-Library
or	O	O
Cocoa	O	B-Library
's	O	O
control	O	O
classes	O	O
:	O	O
Where	O	O
can	O	O
I	O	O
make	O	O
direct	O	O
use	O	O
of	O	O
Cappuccino	O	B-Library
or	O	O
Cocoa	O	B-Library
classes	O	O
,	O	O
where	O	O
is	O	O
it	O	O
reasonable	O	O
to	O	O
subclass	O	O
Cappuccino/Cocoa	O	B-Library
controls	O	O
and	O	O
where	O	O
do	O	O
I	O	O
have	O	O
to	O	O
write	O	O
custom	O	O
controls	O	O
from	O	O
scratch	O	O
?	O	O

Edit	O	O
:	O	O
My	O	O
Thoughts	O	O

I	O	O
think	O	O
its	O	O
reasonable	O	O
dividing	O	O
the	O	O
control	O	O
with	O	O
a	O	O
SplitView	O	B-Class
with	O	O
a	O	O
vertical	O	B-User_Interface_Element
divider	O	I-User_Interface_Element
.	O	O

I	O	O
could	O	O
use	O	O
a	O	O
TableView	O	B-Class
for	O	O
the	O	O
left	O	O
header	O	B-User_Interface_Element
column	O	I-User_Interface_Element
in	O	O
the	O	O
left	O	O
subview	O	O
.	O	O

And	O	O
I	O	O
could	O	O
synchronize	O	O
the	O	O
vertical	O	O
scrolling	O	O
with	O	O
what	O	O
happens	O	O
on	O	O
the	O	O
right	O	O
side	O	O
.	O	O

But	O	O
I	O	O
'm	O	O
not	O	O
so	O	O
sure	O	O
about	O	O
the	O	O
view	O	B-User_Interface_Element
on	O	O
the	O	O
right	O	O
side	O	O
.	O	O

I	O	O
thought	O	O
about	O	O
TableView	O	B-Class
but	O	O
I	O	O
would	O	O
actually	O	O
only	O	O
need	O	O
the	O	O
cells	O	B-User_Interface_Element
as	O	O
a	O	O
background	O	B-User_Interface_Element
grid	O	I-User_Interface_Element
.	O	O

Thus	O	O
,	O	O
I	O	O
guess	O	O
,	O	O
it	O	O
would	O	O
be	O	O
difficult	O	O
to	O	O
have	O	O
two	O	O
header	O	B-User_Interface_Element
rows	O	I-User_Interface_Element
and	O	O
to	O	O
implement	O	O
the	O	O
desired	O	O
scrolling	O	O
behavior	O	O
.	O	O

So	O	O
the	O	O
best	O	O
way	O	O
is	O	O
probably	O	O
to	O	O
create	O	O
a	O	O
completely	O	O
new	O	O
custom	O	O
view	O	O
.	O	O

But	O	O
then	O	O
again	O	O
the	O	O
question	O	O
:	O	O
Where	O	O
is	O	O
it	O	O
reasonable	O	O
to	O	O
subclass	O	O
Cappuccino	O	B-Library
resp	O	O
.	O	O

Cocoa	O	B-Library
controls	O	O
and	O	O
where	O	O
do	O	O
I	O	O
have	O	O
to	O	O
write	O	O
custom	O	O
controls	O	O
from	O	O
scratch	O	O
?	O	O

For	O	O
the	O	O
calendar	O	B-User_Interface_Element
view	O	O
it	O	O
looks	O	O
sufficiently	O	O
different	O	O
from	O	O
a	O	O
table	O	B-User_Interface_Element
view	O	O
that	O	O
it	O	O
might	O	O
be	O	O
easier	O	O
to	O	O
just	O	O
write	O	O
it	O	O
from	O	O
scratch	O	O
.	O	O

Perhaps	O	O
start	O	O
with	O	O
a	O	O
bare	O	O
CPView	B-Code_Block	B-Class
and	O	O
draw	O	O
the	O	O
background	O	B-User_Interface_Element
in	O	O
its	O	O
drawRect	O	B-Function
:	O	O
method	O	O
,	O	O
then	O	O
create	O	O
a	O	O
CPControl	B-Code_Block	B-Class
subclass	O	O
for	O	O
the	O	O
events	O	O
.	O	O

In	O	O
its	O	O
drawRect	O	B-Function
render	O	O
its	O	O
borders	O	B-User_Interface_Element
and	O	O
background	O	B-User_Interface_Element
,	O	O
or	O	O
use	O	O
a	O	O
CPBox	B-Code_Block	B-Class
with	O	O
setBackgroundColor	B-Code_Block	B-Function
:	I-Code_Block	I-Function
.	O	O

The	O	O
text	O	B-User_Interface_Element
is	O	O
best	O	O
drawn	O	O
with	O	O
label	O	O
subviews	O	O
.	O	O

React	O	O
to	O	O
mouseDown	B-Code_Block	B-Variable
and	O	O
so	O	O
on	O	O
to	O	O
implement	O	O
drag	O	O
and	O	O
drop	O	O
,	O	O
double	O	O
click	O	O
events	O	B-Class
and	O	O
what	O	O
else	O	O
you	O	O
might	O	O
want	O	O
.	O	O

Then	O	O
put	O	O
the	O	O
whole	O	O
calendar	O	B-User_Interface_Element
view	O	O
in	O	O
a	O	O
CPScrollView	B-Code_Block	B-Class
.	O	O

Synchronise	O	O
its	O	O
vertical	O	O
scrolling	O	O
with	O	O
the	O	O
scroll	O	O
view	O	O
on	O	O
the	O	O
left	O	O
-	O	O
use	O	O
a	O	O
CPTableView	B-Code_Block	B-Class
there	O	O
.	O	O

Scrolling	O	O
is	O	O
fairly	O	O
easy	O	O
with	O	O
a	O	O
CPScrollView	B-Code_Block	B-Class
:	O	O
just	O	O
call	O	O
scrollToPoint	B-Code_Block	B-Function
:	I-Code_Block	I-Function
on	O	O
the	O	O
content	O	O
view	O	O
.	O	O

You	O	O
will	O	O
need	O	O
to	O	O
expand	O	O
the	O	O
content	O	O
view	O	O
size	O	O
dynamically	O	O
to	O	O
allow	O	O
'	O	O
infinite	O	O
'	O	O
scrolling	O	O
.	O	O

Maybe	O	O
simply	O	O
always	O	O
make	O	O
the	O	O
content	O	O
view	O	O
size	O	O
the	O	O
minimum	O	O
of	O	O
the	O	O
size	O	O
of	O	O
its	O	O
events	O	O
and	O	O
the	O	O
current	O	O
scroll	O	O
position	O	O
+	O	O
X	O	B-Variable
(	O	O
the	O	O
X	O	B-Variable
giving	O	O
the	O	O
user	O	O
some	O	O
distance	O	O
to	O	O
scroll	O	O
before	O	O
you	O	O
have	O	O
to	O	O
resize	O	O
again	O	O
)	O	O
.	O	O

In	O	O
a	O	O
nutshell	O	O
,	O	O
subclass	O	O
CPView	B-Code_Block	B-Class
and	O	O
CPControl	B-Code_Block	B-Class
-	O	O
CPView	B-Code_Block	B-Class
when	O	O
there	O	O
is	O	O
no	O	O
interaction	O	O
,	O	O
and	O	O
CPControl	B-Code_Block	B-Class
when	O	O
there	O	O
is	O	O
.	O	O

to	O	O
display	O	O
the	O	O
name	O	O
of	O	O
all	O	O
the	O	O
candidates	O	O
who	O	O
got	O	O
below	O	O
40	O	O
in	O	O
exactly	O	O
2	O	O
subjects	O	O
using	O	O
sql	O	B-Language

degree(degcode,name,subject)	O	B-Variable

candidate(seatno,degcode,name)	O	B-Variable

marks(seatno,dedcode,mark)	O	B-Variable

Your	O	O
query	O	O
can	O	O
be	O	O
like	O	O
below	O	O
-	O	O

If	O	O
it	O	O
does	O	O
not	O	O
work	O	O
for	O	O
you	O	O
then	O	O
can	O	O
create	O	O
a	O	O
sqlfiddle	O	B-Application
with	O	O
dummy	O	O
data	O	O
for	O	O
more	O	O
clairty	O	O
so	O	O
that	O	O
I	O	O
can	O	O
modify	O	O
query	O	O
as	O	O
per	O	O
your	O	O
requirement	O	O
.	O	O

I	O	O
am	O	O
making	O	O
an	O	O
android	O	B-Operating_System
application	O	O
.	O	O

I	O	O
have	O	O
a	O	O
TextField	O	B-User_Interface_Element
and	O	O
a	O	O
button	O	B-User_Interface_Element
.	O	O

Based	O	O
on	O	O
the	O	O
value	O	O
of	O	O
the	O	O
textfield	O	B-User_Interface_Element
,	O	O
as	O	O
soon	O	O
as	O	O
the	O	O
user	O	O
clicks	O	O
the	O	O
button	O	B-User_Interface_Element
I	O	O
want	O	O
to	O	O
make	O	O
something	O	O
.	O	O

I	O	O
have	O	O
the	O	O
code	O	O
:	O	O

This	O	O
however	O	O
does	O	O
n't	O	O
compile	O	O
,	O	O
saying	O	O
"	O	O
Cannot	O	O
refer	O	O
to	O	O
a	O	O
non-final	O	O
variable	O	O
value	O	O
inside	O	O
an	O	O
inner	O	O
class	O	O
defined	O	O
in	O	O
a	O	O
different	O	O
method	O	O
"	O	O
.	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

Thanks	O	O
a	O	O
lot	O	O

Use	O	O

final	B-Code_Block	B-Code_Block
String	I-Code_Block	I-Code_Block
value	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
et.getText().toString()	I-Code_Block	I-Code_Block
;	I-Code_Block	I-Code_Block

and	O	O
then	O	O
use	O	O
,	O	O

If	O	O
you	O	O
want	O	O
to	O	O
compare	O	O
the	O	O
value	O	O
of	O	O
a	O	O
string	O	B-Data_Type
you	O	O
should	O	O
use	O	O
the	O	O
"	O	O
equals	O	B-Function
"	O	O
method	O	O
instead	O	O
of	O	O
"	O	O
=	O	O
"	O	O
.	O	O

The	O	O
code	O	O
will	O	O
look	O	O
like	O	O
this	O	O
:	O	O

I	O	O
have	O	O
my	O	O
linq	O	B-Library
code	O	O
formatted	O	O
like	O	O
:	O	O

In	O	O
the	O	O
following	O	O
code	O	O
how	O	O
do	O	O
I	O	O
add	O	O
another	O	O
Door	O	B-HTML_XML_Tag
that	O	O
is	O	O
the	O	O
same	O	O
"	O	O
level	O	O
"	O	O
as	O	O
treasure	O	B-HTML_XML_Tag
?	O	O

Everything	O	O
I	O	O
have	O	O
tried	O	O
keeps	O	O
adding	O	O
it	O	O
as	O	O
the	O	O
same	O	O
level	O	O
as	O	O
card	O	B-HTML_XML_Tag
.	O	O

Here	O	O
is	O	O
what	O	O
I	O	O
have	O	O
:	O	O

You	O	O
need	O	O
to	O	O
create	O	O
the	O	O
Deck	O	B-Variable
element	O	O
first	O	O
:	O	O

Then	O	O
add	O	O
both	O	O
the	O	O
treasure	O	B-Variable
(	O	O
which	O	O
i	O	O
've	O	O
taken	O	O
the	O	O
liberty	O	O
of	O	O
renaming	O	O
from	O	O
root	O	B-Variable
to	O	O
treasure	O	B-Variable
)	O	O
and	O	O
the	O	O
door	O	B-Variable
to	O	O
it	O	O
:	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
make	O	O
the	O	O
width	O	O
of	O	O
xeditable	O	B-Library
textfield	O	B-User_Interface_Element
increase	O	O
or	O	O
decrease	O	O
with	O	O
the	O	O
input	O	O
text	O	O
.	O	O

I	O	O
tried	O	O
the	O	O
following	O	O
code	O	O
but	O	O
no	O	O
result	O	O
.	O	O

After	O	O
a	O	O
long	O	O
research	O	O
,	O	O
I	O	O
found	O	O
the	O	O
solution	O	O
of	O	O
my	O	O
problem	O	O
.	O	O

although	O	O
it	O	O
seemed	O	O
that	O	O
no	O	O
one	O	O
actually	O	O
bothered	O	O
my	O	O
problem	O	O
lol	O	O
.	O	O

The	O	O
following	O	O
code	O	O
executes	O	O
fine	O	O
in	O	O
Firefox	O	B-Application
and	O	O
Chrome	O	B-Application
,	O	O
but	O	O
gives	O	O
an	O	O
error	O	O
:	O	O

when	O	O
executed	O	O
in	O	O
Internet	O	B-Application
Explorer	O	I-Application
.	O	O

(	O	O
I	O	O
would	O	O
have	O	O
thought	O	O
the	O	O
line	O	O
after	O	O
the	O	O
one	O	O
indicated	O	O
would	O	O
be	O	O
more	O	O
likely	O	O
to	O	O
return	O	O
the	O	O
error	O	O
but	O	O
the	O	O
debugger	O	B-Application
says	O	O
the	O	O
run-time	O	B-Error_Name
error	O	I-Error_Name
is	O	O
at	O	O
the	O	O
line	O	O
indicated	O	O
)	O	O

Any	O	O
ideas	O	O
why	O	O
?	O	O

I	O	O
've	O	O
just	O	O
found	O	O
a	O	O
solution	O	O
for	O	O
this	O	O
.	O	O

Make	O	O
the	O	O
encoding	O	O
type	O	O
us-ascii	O	B-Value
(	O	O
encoding='us-ascii'	O	B-Code_Block
)	O	O
in	O	O
the	O	O
xml	O	B-File_Type
file	O	O
.	O	O

It	O	O
solved	O	O
my	O	O
problem	O	O
.	O	O

Try	O	O
something	O	O
like	O	O
this	O	O
(	O	O
as	O	O
usual	O	O
,	O	O
IE	O	B-Application
does	O	O
things	O	O
diferently	O	O
)	O	O
(	O	O
take	O	O
from	O	O
http://msdn.microsoft.com/en-us/library/ms534370(VS.85).aspx	O	O
)	O	O

how	O	O
can	O	O
interact	O	O
with	O	O
multiple	O	O
console	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
,	O	O
from	O	O
one	O	O
node.js	O	B-Library
script	O	O
?	O	O

so	O	O
far	O	O
i	O	O
have	O	O
researched	O	O
a	O	O
bit	O	O
,	O	O
and	O	O
not	O	O
have	O	O
found	O	O
anything	O	O
that	O	O
covers	O	O
my	O	O
case	O	O
.	O	O

What	O	O
i	O	O
want	O	O
to	O	O
accomplish	O	O
is	O	O
to	O	O
have	O	O
one	O	O
main	O	O
console	O	B-User_Interface_Element
window	O	I-User_Interface_Element
,	O	O
which	O	O
it	O	O
reads	O	O
my	O	O
input	O	O
,	O	O

and	O	O
it	O	O
would	O	O
redirect	O	O
its	O	O
output	O	O
to	O	O
another	O	O
console	O	B-User_Interface_Element
window	O	I-User_Interface_Element
named	O	O
as	O	O
Logger	B-Code_Block	B-Variable
which	O	O
shows	O	O
the	O	O
stdout	B-Code_Block	B-Variable
of	O	O
the	O	O
action	O	O
that	O	O
the	O	O
user	O	O
selected	O	O
,	O	O
but	O	O
keeps	O	O
the	O	O
main	O	O
"	O	O
select	O	O
action	O	O
"	O	O
console	O	B-User_Interface_Element
window	O	I-User_Interface_Element
clean	O	O
.	O	O

well	O	O
i	O	O
manage	O	O
to	O	O
find	O	O
a	O	O
way	O	O
around	O	O
it	O	O
,	O	O
since	O	O
i	O	O
wanted	O	O
to	O	O
stay	O	O
with	O	O
node.js	O	B-Library
all	O	O
the	O	O
way	O	O
.	O	O

start.js	B-Code_Block	B-File_Name

logger.js	B-Code_Block	B-File_Name

startAdminInterface.js	B-Code_Block	B-File_Name

bottom	O	O
,	O	O
line	O	O
its	O	O
a	O	O
workaround	O	O
not	O	O
exactly	O	O
what	O	O
i	O	O
was	O	O
after	O	O
,	O	O
put	O	O
i	O	O
saw	O	O
potential	O	O
,	O	O
on	O	O
logger.js	B-Code_Block	B-File_Name
it	O	O
could	O	O
listen	O	O
from	O	O
multiple	O	O
sources	O	O
,	O	O
which	O	O
is	O	O
an	O	O
enormous	O	O
plus	O	O
in	O	O
the	O	O
application	O	O
that	O	O
i	O	O
'm	O	O
building	O	O
.	O	O

I	O	O
am	O	O
running	O	O
selenium	O	B-Library
tests	O	O
using	O	O
TestNG	B-Code_Block	B-Library
programatically	O	O
.	O	O

I	O	O
want	O	O
to	O	O
run	O	O
test	O	O
methods	O	O
in	O	O
sequence	O	O
that	O	O
i	O	O
mention	O	O
.	O	O

Its	O	O
like	O	O
attribute	O	O
preserve-order	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
if	O	O
we	O	O
use	O	O
for	O	O
TestNG.XML	B-Code_Block	B-File_Name
.	O	O

Similar	O	O
functionality	O	O
how	O	O
can	O	O
i	O	O
achive	O	O
it	O	O
without	O	O
using	O	O
TestNG.XMl	O	B-File_Name
.	O	O

setTestNames	B-Code_Block	B-Function
is	O	O
not	O	O
working	O	O

A.class	B-Code_Block	B-Variable
is	O	O
having	O	O
class	O	O
level	O	O
@Test	B-Code_Block	B-Code_Block
specified	O	I-Code_Block
.	O	O

So	O	O
all	O	O
methods	O	O
in	O	O
that	O	O
class	O	O
are	O	O
testcases	O	O
.	O	O

So	O	O
Testng	O	O
executing	O	O
all	O	O
methods	O	O
in	O	O
A	O	B-Class
.	O	O
I	O	O
want	O	O
to	O	O
run	O	O
in	O	O
sequence	O	O
as	O	O
they	O	O
appear	O	O
in	O	O
the	O	O
class	O	O
.	O	O

In	O	O
testNg	O	B-Library
you	O	O
can	O	O
use	O	O

and	O	O
them	O	O
change	O	O
this	O	O
to	O	O
all	O	O
the	O	O
methods	O	O
to	O	O
keep	O	O
the	O	O
order	O	O
you	O	O
want	O	O
like	O	O

Another	O	O
solution	O	O
would	O	O
be	O	O
the	O	O
use	O	O
of	O	O

I	O	O
searched	O	O
TestNG	O	B-Library
docs	O	O
and	O	O
I	O	O
cannot	O	O
see	O	O
an	O	O
easy	O	O
way	O	O
to	O	O
do	O	O
what	O	O
you	O	O
want	O	O
using	O	O
annotatios	O	O
..	O	O
.	O	O

Without	O	O
a	O	O
testng.xml	B-Code_Block	B-File_Name
,	O	O
the	O	O
easiest	O	O
way	O	O
to	O	O
do	O	O
this	O	O
is	O	O
probably	O	O
to	O	O
implement	O	O
your	O	O
own	O	O
IMethodInterceptor	O	B-Class
.	O	O

Are	O	O
modal	O	B-User_Interface_Element
windows/dialogs	O	I-User_Interface_Element
considered	O	O
a	O	O
good	O	O
practice	O	O
for	O	O
websites	O	O
?	O	O

One	O	O
of	O	O
the	O	O
things	O	O
that	O	O
concerns	O	O
me	O	O
about	O	O
using	O	O
a	O	O
modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
is	O	O
that	O	O
it	O	O
is	O	O
so	O	O
much	O	O
like	O	O
a	O	O
pop-up	O	B-User_Interface_Element
window	O	I-User_Interface_Element
and	O	O
it	O	O
could	O	O
cause	O	O
user	O	O
frustration	O	O
or	O	O
cause	O	O
users	O	O
to	O	O
simply	O	O
close	O	O
it	O	O
because	O	O
it	O	O
's	O	O
intrusive	O	O
.	O	O

Do	O	O
you	O	O
know	O	O
of	O	O
any	O	O
studies	O	O
that	O	O
talk	O	O
about	O	O
user	O	O
preferences	O	O
and	O	O
use	O	O
rates	O	O
?	O	O

Are	O	O
there	O	O
any	O	O
accessibility	O	O
issues	O	O
beyond	O	O
having	O	O
the	O	O
a	O	O
modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
link	O	O
load	O	O
the	O	O
content	O	O
in	O	O
a	O	O
new	O	O
page	O	O
when	O	O
JavaScript	O	B-Language
is	O	O
turned	O	O
off	O	O
?	O	O

Do	O	O
you	O	O
like	O	O
sites	O	O
or	O	O
web	O	O
apps	O	O
that	O	O
use	O	O
modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
?	O	O

Why	O	O
or	O	O
why	O	O
not	O	O
?	O	O

What	O	O
are	O	O
good	O	O
and	O	O
bad	O	O
practices	O	O
for	O	O
implementing	O	O
modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
?	O	O

I	O	O
know	O	O
modals	O	B-User_Interface_Element
are	O	O
probably	O	O
most	O	O
often	O	O
used	O	O
when	O	O
displaying	O	O
pictures	O	B-User_Interface_Element
or	O	O
galleries	O	B-User_Interface_Element
,	O	O
but	O	O
what	O	O
are	O	O
some	O	O
other	O	O
practical	O	O
use	O	O
cases	O	O
?	O	O

Do	O	O
you	O	O
use	O	O
them	O	O
on	O	O
your	O	O
site	O	O
and	O	O
what	O	O
lead	O	O
you	O	O
to	O	O
your	O	O
decision	O	O
?	O	O

From	O	O
a	O	O
practice	O	O
standpoint	O	O
-	O	O
excluding	O	O
accessibility	O	O
-	O	O
modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
provide	O	O
an	O	O
alternative	O	O
that	O	O
are	O	O
less	O	O
startling	O	O
as	O	O
,	O	O
say	O	O
,	O	O
dialog	O	B-User_Interface_Element
boxes	O	I-User_Interface_Element
and	O	O
feel	O	O
less	O	O
intrusive	O	O
than	O	O
pop-up	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
.	O	O

They	O	O
usually	O	O
have	O	O
a	O	O
more	O	O
cohesive	O	O
feel	O	O
to	O	O
the	O	O
site	O	O
than	O	O
either	O	O
of	O	O
the	O	O
two	O	O
aforementioned	O	O
method	O	O
.	O	O

Aside	O	O
from	O	O
pictures	O	B-User_Interface_Element
or	O	O
media	O	O
,	O	O
I	O	O
've	O	O
used	O	O
modal	O	B-User_Interface_Element
dialogs	O	I-User_Interface_Element
to	O	O
serve	O	O
the	O	O
same	O	O
purpose	O	O
as	O	O
dialog	O	B-User_Interface_Element
boxes	O	I-User_Interface_Element
-	O	O
to	O	O
get	O	O
the	O	O
user	O	O
to	O	O
give	O	O
some	O	O
form	O	O
of	O	O
required	O	O
input	O	O
,	O	O
or	O	O
to	O	O
acknowledge	O	O
something	O	O
before	O	O
letting	O	O
them	O	O
interact	O	O
with	O	O
the	O	O
site	O	O
again	O	O
.	O	O

From	O	O
a	O	O
purely	O	O
accessible	O	O
standpoint	O	O
,	O	O
they	O	O
are	O	O
n't	O	O
so	O	O
great	O	O
.	O	O

They	O	O
typically	O	O
require	O	O
JavaScript	O	B-Language
,	O	O
and	O	O
,	O	O
because	O	O
of	O	O
the	O	O
way	O	O
that	O	O
modals	O	B-User_Interface_Element
are	O	O
managed	O	O
with	O	O
respect	O	O
to	O	O
the	O	O
DOM	O	O
,	O	O
screen	O	O
readers	O	O
will	O	O
not	O	O
interpret	O	O
them	O	O
well	O	O
.	O	O

To	O	O
combat	O	O
this	O	O
,	O	O
it	O	O
's	O	O
always	O	O
a	O	O
good	O	O
idea	O	O
to	O	O
degrade	O	O
gracefully	O	O
-	O	O
one	O	O
suggestion	O	O
is	O	O
to	O	O
take	O	O
the	O	O
content	O	O
of	O	O
the	O	O
modal	O	B-User_Interface_Element
dialog	O	I-User_Interface_Element
and	O	O
place	O	O
it	O	O
on	O	O
a	O	O
page	O	O
.	O	O

Whenever	O	O
the	O	O
modal	O	B-User_Interface_Element
dialog	O	I-User_Interface_Element
should	O	O
appear	O	O
,	O	O
have	O	O
the	O	O
current	O	O
page	O	O
redirect	O	O
to	O	O
the	O	O
'	O	O
modal	O	B-User_Interface_Element
page	O	I-User_Interface_Element
'	O	O
,	O	O
get	O	O
the	O	O
user	O	O
's	O	O
input	O	O
,	O	O
and	O	O
return	O	O
to	O	O
the	O	O
page	O	O
it	O	O
was	O	O
on	O	O
.	O	O

Finally	O	O
,	O	O
as	O	O
far	O	O
as	O	O
my	O	O
personal	O	O
opinions	O	O
are	O	O
concerned	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
mind	O	O
modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
.	O	O

I	O	O
think	O	O
that	O	O
,	O	O
when	O	O
used	O	O
correctly	O	O
,	O	O
they	O	O
provide	O	O
a	O	O
decent	O	O
experience	O	O
-	O	O
if	O	O
something	O	O
has	O	O
to	O	O
get	O	O
my	O	O
attention	O	O
,	O	O
then	O	O
I	O	O
'd	O	O
rather	O	O
it	O	O
do	O	O
so	O	O
without	O	O
redirecting	O	O
me	O	O
from	O	O
the	O	O
page	O	O
,	O	O
showing	O	O
an	O	O
ugly	O	O
operating	O	O
system	O	O
themed	O	O
dialog	O	B-User_Interface_Element
,	O	O
or	O	O
a	O	O
pop-up	O	B-User_Interface_Element
(	O	O
which	O	O
my	O	O
browser	O	B-Application
will	O	O
likely	O	O
block	O	O
,	O	O
anyway	O	O
)	O	O
.	O	O

I	O	O
guess	O	O
,	O	O
to	O	O
sum	O	O
it	O	O
up	O	O
,	O	O
if	O	O
I	O	O
had	O	O
to	O	O
choose	O	O
how	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
be	O	O
interrupted	O	O
,	O	O
then	O	O
I	O	O
'd	O	O
choose	O	O
a	O	O
modal	O	B-User_Interface_Element
dialog	O	I-User_Interface_Element
.	O	O

It	O	O
seems	O	O
as	O	O
though	O	O
many	O	O
confuse	O	O
modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
with	O	O
a	O	O
layered	O	B-User_Interface_Element
panel	O	I-User_Interface_Element
.	O	O

A	O	O
dialog	O	B-User_Interface_Element
box	O	I-User_Interface_Element
can	O	O
be	O	O
a	O	O
modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
and	O	O
a	O	O
pop-up	O	B-User_Interface_Element
is	O	O
a	O	O
modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
.	O	O

A	O	O
layered	O	B-User_Interface_Element
panel	O	I-User_Interface_Element
is	O	O
not	O	O
a	O	O
window	O	B-User_Interface_Element
,	O	O
but	O	O
has	O	O
the	O	O
appearance	O	O
of	O	O
a	O	O
pop-up	O	B-User_Interface_Element
or	O	O
dialog	O	B-User_Interface_Element
box	O	I-User_Interface_Element
.	O	O

It	O	O
is	O	O
modal	O	B-User_Interface_Element
in	O	O
the	O	O
sense	O	O
that	O	O
the	O	O
underlying	O	O
layers	O	O
are	O	O
unavailable	O	O
.	O	O

Modal	O	B-User_Interface_Element
window	O	I-User_Interface_Element
are	O	O
popular	O	O
on	O	O
web	O	O
sites	O	O
because	O	O
they	O	O
are	O	O
immune	O	O
to	O	O
pop-up	O	B-User_Interface_Element
blockers	O	O
.	O	O

Modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
were	O	O
designed	O	O
to	O	O
obtain	O	O
information	O	O
or	O	O
user	O	O
action	O	O
that	O	O
the	O	O
underlying	O	O
application	O	O
requires	O	O
to	O	O
continue	O	O
.	O	O

Non-modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
allow	O	O
the	O	O
user	O	O
to	O	O
switch	O	O
back	O	O
and	O	O
forth	O	O
between	O	O
the	O	O
window	O	B-User_Interface_Element
and	O	O
the	O	O
underlying	O	O
application	O	O
.	O	O

A	O	O
good	O	O
use	O	O
for	O	O
a	O	O
non-modal	O	O
window	O	B-User_Interface_Element
might	O	O
be	O	O
screen	O	O
help	O	O
or	O	O
a	O	O
tutorial	O	O
,	O	O
where	O	O
the	O	O
user	O	O
needs	O	O
a	O	O
reference	O	O
tool	O	O
and	O	O
access	O	O
to	O	O
the	O	O
underlying	O	O
application	O	O
.	O	O

IMHO	O	O
,	O	O
modal	O	B-User_Interface_Element
windows	O	I-User_Interface_Element
were	O	O
designed	O	O
for	O	O
a	O	O
narrow	O	O
specific	O	O
purpose	O	O
and	O	O
are	O	O
used	O	O
inappropriately	O	O
a	O	O
lot	O	O
of	O	O
the	O	O
time	O	O
now	O	O
.	O	O

Just	O	O
because	O	O
you	O	O
can	O	O
do	O	O
something	O	O
does	O	O
n't	O	O
mean	O	O
you	O	O
should	O	O
!	O	O

:-)	O	O

I	O	O
have	O	O
a	O	O
WSDL	O	B-File_Type
file	O	O
located	O	O
under	O	O
src	O	B-File_Name
\main\resources\wsdl\	O	I-File_Name
folder	O	O
and	O	O
it	O	O
is	O	O
having	O	O
multiple	O	O
operations	O	O
defined	O	O
within	O	O
it	O	O
.	O	O

My	O	O
application	O	O
is	O	O
running	O	O
on	O	O
Weblogic	O	B-Device
12C	O	I-Device
server	O	I-Device
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
expose	O	O
the	O	O
SOAP	O	O
web-service	O	O
using	O	O
Apache	O	B-Application
Cammel	O	B-Library
(	O	O
version	O	O
:	O	O
2.18.3	O	B-Version
)	O	O
with	O	O
Java	O	B-Language
DSL	O	O
-	O	O

I	O	O
have	O	O
written	O	O
below	O	O
code	O	O
under	O	O
configuration	O	B-Function
method	O	O
of	O	O
my	O	O
RouteBuilder	O	B-Class
class	O	O
-	O	O

While	O	O
I	O	O
'm	O	O
deploying	O	O
the	O	O
application	O	O
,	O	O
it	O	O
is	O	O
throwing	O	O
below	O	O
exception	O	B-Class
-	O	O

pom.xml	O	B-File_Name

Step	O	O
1	O	O
:	O	O
Generate	O	O
the	O	O
service	O	O
from	O	O
your	O	O
wsdl	O	B-Language
using	O	O
wsdl2java	O	B-Application
command	O	O
or	O	O
your	O	O
choice	O	O
of	O	O
IDE	O	B-Application
.	O	O

Step	O	O
2	O	O
:	O	O
Have	O	O
that	O	O
in	O	O
your	O	O
code	O	O
classpath	O	O

Step	O	O
3	O	O
:	O	O
Mention	O	O
the	O	O
class	O	O
name	O	O
and	O	O
endpoint	O	O
names	O	O
in	O	O
the	O	O
above	O	O
piece	O	O
of	O	O
code	O	O

There	O	O
are	O	O
many	O	O
questions	O	O
in	O	O
this	O	O
community	O	O
for	O	O
opening	O	O
the	O	O
window	O	O
View	O	O
on	O	O
a	O	O
click	O	O
of	O	O
a	O	O
button	O	B-User_Interface_Element
just	O	O
we	O	O
need	O	O
to	O	O
create	O	O
the	O	O
instance	O	O
of	O	O
the	O	O
view	O	O
and	O	O
use	O	O
.Show	B-Code_Block	B-Function
and	O	O
some	O	O
question	O	O
are	O	O
based	O	O
on	O	O
using	O	O
User	O	B-Class
Control	O	I-Class
in	O	O
Window	O	O
View	O	O
.	O	O

I	O	O
am	O	O
following	O	O
MVVM	O	B-Algorithm
pattern	O	O
to	O	O
create	O	O
a	O	O
WPF	O	B-Library
application	O	O
,	O	O
in	O	O
the	O	O
Views	O	O
I	O	O
created	O	O
a	O	O
file	O	O
called	O	O
SalesView.xaml	B-Code_Block	B-File_Name
which	O	O
is	O	O
a	O	O
User	B-Code_Block	B-Class
Control(WPF)	I-Code_Block	I-Class
view	O	O
and	O	O
by	O	O
default	O	O
I	O	O
set	O	O
the	O	O
Dashboard.xaml	B-Code_Block	B-File_Name
from	O	O
the	O	O
App.xaml	B-Code_Block	B-File_Name
which	O	O
is	O	O
Window	O	O
View	O	O
and	O	O
the	O	O
project	O	O
structure	O	O
is	O	O
some	O	O
thing	O	O
like	O	O
this	O	O
:	O	O

My	O	O
requirement	O	O
is	O	O
that	O	O
I	O	O
have	O	O
a	O	O
button	O	B-User_Interface_Element
in	O	O
Dashboard.xaml	B-Code_Block	B-File_Name
on	O	O
click	O	O
of	O	O
this	O	O
button	O	B-User_Interface_Element
I	O	O
want	O	O
to	O	O
open	O	O
a	O	O
SalesView.xaml	B-Code_Block	B-File_Name
which	O	O
is	O	O
a	O	O
User	B-Code_Block	B-Class
Control(WPF)	I-Code_Block	I-Class
view	O	O
not	O	O
a	O	O
window	O	O
View	O	O
.	O	O

It	O	O
seems	O	O
like	O	O
you	O	O
need	O	O
some	O	O
short	O	O
of	O	O
shell	O	B-Application
for	O	O
hosting	O	O
your	O	O
user	O	O
controls	O	O
.	O	O

Simplest	O	O
way	O	O
is	O	O
to	O	O
put	O	O
them	O	O
on	O	O
main	O	O
window	O	O
as	O	O
content	O	O
instead	O	O
of	O	O
a	O	O
previous	O	O
one	O	O
.	O	O

Or	O	O
use	O	O
some	O	O
framework	O	O
like	O	O
Prism	O	B-Library
.	O	O

Normally	O	O
how	O	O
I	O	O
would	O	O
do	O	O
it	O	O
,	O	O
I	O	O
would	O	O
create	O	O
a	O	O
class	O	O
that	O	O
is	O	O
controller/view	O	B-Class
manager	O	I-Class
.	O	O

And	O	O
then	O	O
pass	O	O
in	O	O
to	O	O
it	O	O
my	O	O
view	O	B-Variable
and	O	O
vm	O	O
,	O	O
then	O	O
the	O	O
class	O	O
would	O	O
bind	O	O
it	O	O
and	O	O
put	O	O
it	O	O
into	O	O
the	O	O
hosting	O	O
window	O	O
.	O	O

Usage	O	O
sample	O	O
:	O	O

Here	O	O
is	O	O
an	O	O
example	O	O
of	O	O
three	O	O
forms	O	O
with	O	O
the	O	O
same	O	O
repeated	O	O
instance	O	O
and	O	O
no	O	O
unique	O	O
identifier	O	O
:	O	O

How	O	O
can	O	O
I	O	O
attach	O	O
a	O	O
different	O	O
console.log	O	B-File_Name
or	O	O
any	O	O
message	O	O
triggered	O	O
by	O	O
a	O	O
click	O	O
to	O	O
each	O	O
of	O	O
these	O	O
buttons	O	B-User_Interface_Element
?	O	O

I	O	O
am	O	O
targeting	O	O
these	O	O
buttons	O	B-User_Interface_Element
so	O	O
far	O	O
with	O	O
a	O	O
jQuery	O	B-Library
Dom	O	I-Library
selector	O	B-Function
$("form[action='/haters']")	B-Code_Block	B-Code_Block

I	O	O
posted	O	O
on	O	O
codepen	O	B-Application
also	O	O
:	O	O
http://codepen.io/marc313/pen/uphiv	O	O

Please	O	O
and	O	O
thanks	O	O
!	O	O

While	O	O
you	O	O
could	O	O
bind	O	O
to	O	O
each	O	O
button	O	B-User_Interface_Element
individually	O	O
,	O	O
as	O	O
in	O	O
Deryck	O	B-User_Name
's	O	O
answer	O	I-User_Name
,	O	O
often	O	O
times	O	O
such	O	O
practice	O	O
leads	O	O
to	O	O
duplicate	O	O
code	O	O
.	O	O

Its	O	O
likely	O	O
your	O	O
actual	O	O
use	O	O
case	O	O
is	O	O
n't	O	O
to	O	O
log	O	O
3	O	O
different	O	O
things	O	O
to	O	O
the	O	O
console	O	B-Application
when	O	O
3	O	O
buttons	O	B-User_Interface_Element
are	O	O
clicked	O	O
.	O	O

Particularly	O	O
if	O	O
these	O	O
3	O	O
buttons	O	B-User_Interface_Element
do	O	O
similar	O	O
actions	O	O
or	O	O
if	O	O
they	O	O
act	O	O
on	O	O
the	O	O
same	O	O
set	O	O
of	O	O
data	O	O
,	O	O
its	O	O
often	O	O
much	O	O
more	O	O
clean	O	O
to	O	O
do	O	O
something	O	O
like	O	O
this	O	O
:	O	O

jQuery	O	B-Library

Markup	O	O

Reference	O	O

On	O	O
calling	O	O
.on()	O	B-Function
for	O	O
event	O	O
binding	O	O

Each	O	O
item	O	O
in	O	O
a	O	O
set	O	O
will	O	O
have	O	O
an	O	O
index	B-Code_Block	B-Code_Block
number	O	O
and	O	O
you	O	O
can	O	O
use	O	O
that	O	O
to	O	O
identify	O	O
them	O	O
.	O	O

jQuery	O	B-Library
:	O	O

The	O	O
.eq()	B-Code_Block	B-Function
method	O	O
means	O	O
"	O	O
equals	O	O
"	O	O
and	O	O
refers	O	O
to	O	O
the	O	O
index	O	O
number	O	O
for	O	O
the	O	O
selector	O	B-Function
you	O	O
chose	O	O
in	O	O
$('input[type=submit'])	B-Code_Block	B-Code_Block
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
do	O	O
that	O	O
systemically	O	O
,	O	O
you	O	O
can	O	O
put	O	O
that	O	O
into	O	O
a	O	O
for()	B-Code_Block	B-Code_Block
or	O	O
while()	B-Code_Block	B-Code_Block
loop	O	O
.	O	O

Of	O	O
course	O	O
,	O	O
you	O	O
would	O	O
replace	O	O
eq(0)	B-Code_Block	B-Function
with	O	O
whatever	O	O
number	O	O
you	O	O
want	O	O
to	O	O
use	O	O
to	O	O
identify	O	O
the	O	O
button	O	B-User_Interface_Element
(	O	O
starting	O	O
from	O	O
0	O	B-Value
being	O	O
the	O	O
first	O	O
element	O	O
in	O	O
the	O	O
set	O	B-Data_Structure
,	O	O
not	O	O
greater	O	O
than	O	O
$('input[type=submit]').length)	B-Code_Block	B-Code_Block
.	O	O

Here	O	O
's	O	O
a	O	O
fork	O	O
of	O	O
your	O	O
CodePen	O	B-Application
to	O	O
see	O	O
it	O	O
in	O	O
action	O	O
with	O	O
alert()	B-Code_Block	B-Function

The	O	O
default	O	O
behaviour	O	O
for	O	O
editing	O	O
a	O	O
cell	O	B-User_Interface_Element
is	O	O
double	O	O
clicking	O	O
it	O	O
,	O	O
but	O	O
i	O	O
want	O	O
to	O	O
show	O	O
to	O	O
the	O	O
user	O	O
that	O	O
,	O	O
there	O	O
is	O	O
a	O	O
list	O	B-Data_Structure
they	O	O
can	O	O
select	O	O
from	O	O
,	O	O
(	O	O
some	O	O
of	O	O
my	O	O
columns	O	B-Data_Structure
have	O	O
only	O	O
one	O	O
value	O	O
,	O	O
and	O	O
is	O	O
not	O	O
editable	O	O
)	O	O
,	O	O
so	O	O
i	O	O
opened	O	O
persistent	O	B-Application
editor	O	I-Application
,	O	O
but	O	O
it	O	O
's	O	O
too	O	O
slow	O	O
if	O	O
there	O	O
are	O	O
too	O	O
many	O	O
rows	O	B-Data_Structure
.	O	O

so	O	O
i	O	O
turned	O	O
to	O	O
reimplementing	O	O
the	O	O
mousePressEvent	O	B-Function
and	O	O
show	O	O
the	O	O
combobox	O	B-User_Interface_Element
when	O	O
user	O	O
right	O	O
click	O	O
on	O	O
the	O	O
cell	O	B-User_Interface_Element
,	O	O
but	O	O
without	O	O
any	O	O
visual	O	O
cue	O	O
to	O	O
tell	O	O
them	O	O
which	O	O
cell	O	B-User_Interface_Element
can	O	O
be	O	O
right	O	O
clicked	O	O
on	O	O
.	O	O

(	O	O
i	O	O
know	O	O
maybe	O	O
i	O	O
can	O	O
change	O	O
bg	O	O
color	O	O
of	O	O
that	O	O
cell	O	B-User_Interface_Element
)	O	O

but	O	O
can	O	O
i	O	O
achieve	O	O
something	O	O
like	O	O
this	O	O
?	O	O

drawing	O	O
a	O	O
black	O	O
triangle	O	B-User_Interface_Element
at	O	O
the	O	O
lower	O	O
right	O	O
color	O	O
of	O	O
the	O	O
cell	O	B-User_Interface_Element
to	O	O
indicate	O	O
that	O	O
it	O	O
can	O	O
be	O	O
right	O	O
clicked	O	O
on	O	O
?	O	O

like	O	O
this	O	O
image	O	B-User_Interface_Element
from	O	O
excel	O	B-Application
?	O	O

You	O	O
could	O	O
use	O	O
a	O	O
QStyleItemDelegate	O	B-Class
,	O	O
something	O	O
like	O	O
this	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
use	O	O
POS	O	B-Application
tagger	O	I-Application
in	O	O
Maven	O	B-Application
project	O	O
.	O	O

I	O	O
got	O	O
this	O	O
error	O	O
info	O	O
.	O	O

The	O	O
version	O	O
of	O	O
POS	O	B-Application
tagger	O	I-Application
is	O	O
3.7.0	O	B-Version
,	O	O
and	O	O
using	O	O
eclipse	O	B-Application
.	O	O

I	O	O
tried	O	O
to	O	O
edit	O	O
the	O	O
pom.xml	O	B-File_Name
,	O	O
but	O	O
the	O	O
version	O	O
is	O	O
really	O	O
old	O	O
and	O	O
ca	O	O
n't	O	O
work	O	O
..	O	O
.	O	O

I	O	O
'm	O	O
wondering	O	O
how	O	O
I	O	O
can	O	O
check	O	O
which	O	O
modules	O	O
I	O	O
need	O	O
to	O	O
load	O	O
in	O	O
my	O	O
modules	O	O
array	O	B-Data_Structure
(	O	O
config/modules.config.php	B-Code_Block	B-File_Name
)	O	O
.	O	O

The	O	O
autoloader	O	B-Function
does	O	O
not	O	O
seem	O	O
to	O	O
load	O	O
all	O	O
which	O	O
were	O	O
installed	O	O
using	O	O
composer	O	B-Application
or	O	O
some	O	O
are	O	O
already	O	O
included	O	O
in	O	O
ZF3	O	B-Library
itself	O	O
and	O	O
they	O	O
conflict	O	O
when	O	O
it	O	O
tries	O	O
to	O	O
load	O	O
them	O	O
again	O	O
.	O	O

All	O	O
modules	O	O
which	O	O
you	O	O
install	O	O
using	O	O
composer	O	B-Application
should	O	O
be	O	O
registered	O	O
in	O	O
autoloader	B-Code_Block	B-Function
.	O	O

But	O	O
the	O	O
problem	O	O
,	O	O
the	O	O
modules	O	O
is	O	O
registered	O	O
in	O	O
config/modules.config.php	B-Code_Block	B-File_Name
or	O	O
not	O	O
.	O	O

If	O	O
you	O	O
use	O	O
Zend	O	B-Application
Component	O	I-Application
Installer	O	I-Application
,	O	O
you	O	O
do	O	O
n't	O	O
need	O	O
to	O	O
think	O	O
the	O	O
Zend	O	B-Library
Modules	O	O
must	O	O
be	O	O
loaded	O	O
in	O	O
modules.config.php	B-Code_Block	B-File_Name
or	O	O
not	O	O
.	O	O

Because	O	O
Zend	O	B-Application
Component	O	I-Application
Installer	O	I-Application
will	O	O
prompt	O	O
you	O	O
to	O	O
inject	O	O
the	O	O
module	O	O
in	O	O
modules	O	O
configuration	O	O
(	O	O
config/modules.config.php	B-Code_Block	B-File_Name
)	O	O
or	O	O
not	O	O
while	O	O
install	O	O
it	O	O
using	O	O
composer	O	B-Application
.	O	O

This	O	O
very	O	O
helpful	O	O
feature	O	O
.	O	O

It	O	O
works	O	O
by	O	O
read	O	O
extra.zf.component	B-Code_Block	B-Variable
key	O	O
in	O	O
composer.json	B-Code_Block	B-File_Name
from	O	O
installed	O	O
module	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
sample	O	O
from	O	O
Zend	O	B-Library
Form	O	I-Library
.	O	O

While	O	O
you	O	O
add	O	O
Zend	B-Code_Block	B-Library
\\Form	I-Code_Block	I-Library
to	O	O
composer.json	B-Code_Block	B-File_Name
,	O	O
then	O	O
run	O	O
composer	B-Code_Block	B-Code_Block
update	I-Code_Block	I-Code_Block
,	O	O
composer	B-Code_Block	B-Application
will	O	O
prompt	O	O
you	O	O
to	O	O
inject	O	O
this	O	O
module	O	O
to	O	O
config/modules.config.php	B-Code_Block	B-File_Name
or	O	O
not	O	O
.	O	O

If	O	O
you	O	O
do	O	O
n't	O	O
use	O	O
Zend	O	B-Application
Component	O	I-Application
Installer	O	I-Application
,	O	O
I	O	O
think	O	O
you	O	O
can	O	O
check	O	O
extra.zf.component	B-Code_Block	B-Variable
key	O	O
in	O	O
composer.json	B-Code_Block	B-File_Name
from	O	O
installed	O	O
module	O	O
.	O	O

And	O	O
add	O	O
it	O	O
manually	O	O
to	O	O
your	O	O
config/modules.config.php	B-Code_Block	B-File_Name
.	O	O

FYI	O	O
,	O	O
if	O	O
your	O	O
application	O	O
using	O	O
Zend	O	B-Application
Skeleton	O	I-Application
Application	O	I-Application
,	O	O
it	O	O
has	O	O
use	O	O
Zend	O	B-Application
Component	O	I-Application
Installer	O	I-Application
.	O	O

HttpSession	O	B-Class
cannot	O	O
be	O	O
resolved	O	O
to	O	O
a	O	O
type	O	O
in	O	O
jsf	O	B-Library
logout	O	O

I	O	O
wanted	O	O
to	O	O
create	O	O
a	O	O
two	O	O
countdown	O	O
timer	O	O
that	O	O
will	O	O
run	O	O
at	O	O
the	O	O
same	O	O
time	O	O
in	O	O
one	O	O
android	O	B-Operating_System
application	O	O
using	O	O
chronometer	O	B-Class
.	O	O

is	O	O
it	O	O
possible	O	O
?	O	O

if	O	O
you	O	O
have	O	O
some	O	O
tutorials	O	O
please	O	O
comment	O	O
it	O	O
in	O	O
here	O	O
I	O	O
will	O	O
gladly	O	O
appreciate	O	O
it	O	O
.	O	O

thank	O	O
you	O	O
:)	O	O

I	O	O
'm	O	O
investigating	O	O
the	O	O
use	O	O
of	O	O
NodaTime	O	B-Library
LocalDate	O	B-Class
to	O	O
replace	O	O
our	O	O
existing	O	O
use	O	O
of	O	O
of	O	O
the	O	O
BCL	O	B-Library
DateTime/DateTimeOffset	O	B-Class
classes	O	O
.	O	O

We	O	O
have	O	O
run	O	O
into	O	O
a	O	O
number	O	O
of	O	O
timezone	O	O
related	O	O
issues	O	O
with	O	O
our	O	O
code	O	O
due	O	O
to	O	O
our	O	O
misunderstanding	O	O
of	O	O
the	O	O
arguably	O	O
ambiguous	O	O
behavior	O	O
of	O	O
DateTime	O	B-Class
.	O	O

To	O	O
fully	O	O
leverage	O	O
NodaTime	O	B-Library
I	O	O
want	O	O
to	O	O
be	O	O
able	O	O
to	O	O
send	O	O
and	O	O
receive	O	O
dates	O	O
from	O	O
our	O	O
ASP.NET	O	B-Library
Web	O	I-Library
API	O	I-Library
2	O	B-Version
web	O	O
services	O	O
of	O	O
the	O	O
form	O	O
YYYY-MM-DD	O	B-Code_Block
.	O	O

I	O	O
have	O	O
had	O	O
success	O	O
in	O	O
properly	O	O
serializing	O	O
LocalDate	O	B-Class
to	O	O
YYYY-MM-DD	O	B-Code_Block
.	O	O

However	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
deserialize	O	O
a	O	O
date	O	O
query	O	O
parameter	O	O
to	O	O
a	O	O
LocalDate	O	B-Class
.	O	O

The	O	O
LocateDate	O	B-Class
is	O	O
always	O	O
1970-01-01	O	B-Value
.	O	O

Here	O	O
is	O	O
my	O	O
current	O	O
prototype	O	O
code	O	O
(	O	O
some	O	O
code	O	O
removed	O	O
for	O	O
clarity	O	O
)	O	O
:	O	O

PeopleController.cs	O	B-File_Name

Global.asax.cs	O	B-File_Name

I	O	O
execute	O	O
the	O	O
web	O	O
service	O	O
via	O	O

However	O	O
,	O	O
what	O	O
is	O	O
returned	O	O
is	O	O
January	O	B-Value
1	O	I-Value
,	O	I-Value
1970	O	I-Value
.	O	O

Stepping	O	O
into	O	O
the	O	O
code	O	O
I	O	O
confirm	O	O
that	O	O
birthday	B-Code_Block	B-Variable
is	O	O
set	O	O
to	O	O
1970-01-01	O	B-Value
.	O	O

How	O	O
can	O	O
I	O	O
configure	O	O
the	O	O
serialization	O	O
such	O	O
that	O	O
the	O	O
date	O	O
specified	O	O
in	O	O
the	O	O
URL	O	O
as	O	O
a	O	O
query	O	O
parameter	O	O
(	O	O
or	O	O
path	O	O
element	O	O
)	O	O
can	O	O
be	O	O
properly	O	O
serialized	O	O
into	O	O
a	O	O
NodaTime	O	B-Library
LocalDate	O	B-Class
?	O	O

Thanks	O	O
to	O	O
this	O	O
very	O	O
helpful	O	O
article	O	O
from	O	O
Microsoft	O	B-Organization
,	O	O
I	O	O
was	O	O
able	O	O
to	O	O
find	O	O
the	O	O
solution	O	O
using	O	O
a	O	O
custom	O	O
model	O	B-Class
binder	O	I-Class
.	O	O

Add	O	O
this	O	O
class	O	O
to	O	O
your	O	O
project	O	O
:	O	O

Then	O	O
change	O	O
your	O	O
controller	O	O
method	O	O
to	O	O
use	O	O
it	O	O
.	O	O

The	O	O
article	O	O
also	O	O
mentions	O	O
other	O	O
ways	O	O
to	O	O
register	O	O
model	O	B-Class
binders	O	I-Class
.	O	O

Note	O	O
that	O	O
since	O	O
your	O	O
method	O	O
returns	O	O
a	O	O
LocalDate	B-Code_Block	B-Class
,	O	O
you	O	O
'll	O	O
still	O	O
need	O	O
the	O	O
Noda	O	B-Library
Time	O	I-Library
serialziation	O	B-Class
for	O	O
Json.net	O	B-Library
,	O	O
as	O	O
that	O	O
ends	O	O
up	O	O
getting	O	O
used	O	O
in	O	O
the	O	O
body	O	O
for	O	O
the	O	O
return	O	O
value	O	O
.	O	O

I	O	O
have	O	O
a	O	O
UITableView	O	B-Class
that	O	O
is	O	O
never	O	O
consistent	O	O
.	O	O

This	O	O
table	O	B-Variable
view	O	I-Variable
has	O	O
2	O	O
sections	O	O
.	O	O

I	O	O
have	O	O
created	O	O
2	O	O
UIButtons	O	B-Class
,	O	O
they	O	O
both	O	O
are	O	O
practically	O	O
the	O	O
same	O	O
image	O	B-User_Interface_Element
,	O	O
but	O	O
one	O	O
is	O	O
grey	O	B-Value
and	O	O
one	O	O
is	O	O
red	O	B-Value
.	O	O

Every	O	O
row	O	O
in	O	O
the	O	O
UITableView	O	B-Class
is	O	O
supposed	O	O
to	O	O
have	O	O
the	O	O
grey	O	B-Value
button	O	B-User_Interface_Element
when	O	O
the	O	O
UITableView	O	B-Class
first	O	O
loads	O	O
,	O	O
and	O	O
then	O	O
if	O	O
a	O	O
user	O	O
taps	O	O
a	O	O
button	O	B-User_Interface_Element
then	O	O
it	O	O
switches	O	O
to	O	O
the	O	O
red	O	B-Value
version	O	O
of	O	O
the	O	O
button	O	B-User_Interface_Element
.	O	O

For	O	O
some	O	O
reason	O	O
,	O	O
about	O	O
80%	O	O
of	O	O
the	O	O
time	O	O
when	O	O
I	O	O
load	O	O
the	O	O
view	O	O
controller	O	O
with	O	O
this	O	O
UITableView	O	B-Class
on	O	O
my	O	O
iPhone	O	B-Device
,	O	O
the	O	O
first	O	O
2	O	O
rows	O	B-User_Interface_Element
in	O	O
the	O	O
first	O	O
section	O	O
will	O	O
not	O	O
have	O	O
a	O	O
button	O	B-User_Interface_Element
.	O	O

What	O	O
's	O	O
weird	O	O
is	O	O
if	O	O
I	O	O
tap	O	O
my	O	O
finger	O	O
where	O	O
the	O	O
button	O	B-User_Interface_Element
is	O	O
supposed	O	O
to	O	O
be	O	O
2	O	O
things	O	O
happen	O	O
:	O	O

The	O	O
functionality	O	O
attached	O	O
to	O	O
the	O	O
button	O	B-User_Interface_Element
works	O	O
and	O	O
NSLogs	O	B-Function
in	O	O
the	O	O
console	O	B-Application
in	O	O
xcode	O	B-Application
.	O	O

The	O	O
red	O	O
button	O	B-User_Interface_Element
appears	O	O
.	O	O

So	O	O
it	O	O
's	O	O
like	O	O
the	O	O
grey	O	B-Value
button	O	B-User_Interface_Element
is	O	O
there	O	O
,	O	O
it	O	O
's	O	O
just	O	O
invisible	O	O
.	O	O

This	O	O
does	O	O
n't	O	O
work	O	O
because	O	O
if	O	O
a	O	O
user	O	O
sees	O	O
2	O	O
rows	O	B-User_Interface_Element
without	O	O
a	O	O
button	O	B-User_Interface_Element
they	O	O
are	O	O
going	O	O
to	O	O
think	O	O
something	O	O
is	O	O
broken	O	O
or	O	O
that	O	O
they	O	O
ca	O	O
n't	O	O
tap	O	O
on	O	O
that	O	O
row	O	B-User_Interface_Element
.	O	O

Also	O	O
,	O	O
if	O	O
I	O	O
scroll	O	O
to	O	O
the	O	O
very	O	O
bottom	O	O
of	O	O
my	O	O
UITableView	O	B-Class
,	O	O
and	O	O
then	O	O
scroll	O	O
back	O	O
up	O	O
again	O	O
,	O	O
the	O	O
invisible	O	O
grey	O	B-Value
buttons	O	B-User_Interface_Element
will	O	O
magically	O	O
appear	O	O
like	O	O
they	O	O
were	O	O
there	O	O
the	O	O
whole	O	O
time	O	O
.	O	O

Here	O	O
are	O	O
the	O	O
first	O	O
3	O	O
method	O	O
implementations	O	O
that	O	O
are	O	O
involved	O	O
in	O	O
creating	O	O
my	O	O
UITableView	O	B-Class
:	O	O

And	O	O
then	O	O
here	O	O
is	O	O
my	O	O
cellForRowAtIndexPath	B-Code_Block	B-Function
method	O	O
implementation	O	O
which	O	O
does	O	O
most	O	O
of	O	O
the	O	O
work	O	O
in	O	O
creating	O	O
the	O	O
UITableView	O	B-Class
and	O	O
which	O	O
actually	O	O
creates	O	O
the	O	O
UIButton	O	B-Class
settings	O	O
for	O	O
each	O	O
row	O	B-User_Interface_Element
.	O	O

The	O	O
if	O	B-Code_Block
else	O	I-Code_Block
statement	O	O
really	O	O
has	O	O
2	O	O
sets	O	O
of	O	O
nearly	O	O
identical	O	O
code	O	O
,	O	O
the	O	O
only	O	O
difference	O	O
is	O	O
one	O	O
is	O	O
for	O	O
section	O	O
1	O	O
of	O	O
the	O	O
table	O	B-Variable
view	O	I-Variable
and	O	O
the	O	O
other	O	O
is	O	O
for	O	O
section	O	O
2	O	O
:	O	O

I	O	O
have	O	O
not	O	O
included	O	O
the	O	O
full	O	O
method	O	O
implementations	O	O
that	O	O
these	O	O
2	O	O
statements	O	O
trigger	O	O
because	O	O
they	O	O
only	O	O
handle	O	O
the	O	O
functionality	O	O
attached	O	O
to	O	O
each	O	O
button	O	B-User_Interface_Element
,	O	O
and	O	O
most	O	O
likely	O	O
have	O	O
nothing	O	O
to	O	O
do	O	O
with	O	O
this	O	O
issue	O	O
,	O	O
but	O	O
I	O	O
will	O	O
post	O	O
them	O	O
here	O	O
anyways	O	O
.	O	O

These	O	O
2	O	O
statements	O	O
can	O	O
be	O	O
found	O	O
in	O	O
the	O	O
if	O	B-Code_Block
else	O	I-Code_Block
for	O	O
cellForRowAtIndexPath	B-Code_Block	B-Function
and	O	O
handle	O	O
the	O	O
touch	O	O
events	O	O
for	O	O
the	O	O
2	O	O
sections	O	O
of	O	O
the	O	O
table	O	B-Variable
view	O	I-Variable
:	O	O

I	O	O
see	O	O
the	O	O
pattern	O	O
of	O	O
trying	O	O
to	O	O
set	O	O
up	O	O
a	O	O
custom	O	O
UITableViewCell	B-Code_Block	B-Class
from	O	O
within	O	O
tableView:cellForRowAtIndexPath	B-Code_Block	B-Function
:	I-Code_Block	I-Function
quite	O	O
a	O	O
lot	O	O
.	O	O

The	O	O
trouble	O	O
is	O	O
that	O	O
I	O	O
believe	O	O
it	O	O
to	O	O
be	O	O
the	O	O
wrong	O	O
place	O	O
to	O	O
do	O	O
it	O	O
.	O	O

If	O	O
you	O	O
're	O	O
really	O	O
only	O	O
using	O	O
a	O	O
built-in	O	O
UITableViewCell	B-Code_Block	B-Class
,	O	O
then	O	O
it	O	O
's	O	O
the	O	O
right	O	O
place	O	O
;	O	O
for	O	O
custom	O	O
cells	O	B-User_Interface_Element
,	O	O
it	O	O
's	O	O
not	O	O
.	O	O

I	O	O
'd	O	O
recommend	O	O
making	O	O
a	O	O
UITableViewCell	B-Code_Block	B-Class
subclass	O	O
with	O	O
a	O	O
"	O	O
setup	O	B-Function
"	O	O
method	O	O
that	O	O
takes	O	O
an	O	O
object	O	O
and	O	O
uses	O	O
that	O	O
object	O	O
to	O	O
set	O	O
up	O	O
the	O	O
cell	O	B-User_Interface_Element
's	O	O
UI	O	O
.	O	O

For	O	O
instance	O	O
,	O	O
take	O	O
section	O	O
0	O	O
from	O	O
your	O	O
UITableView	B-Code_Block	B-Class
.	O	O

I	O	O
'd	O	O
do	O	O
something	O	O
like	O	O
this	O	O
:	O	O

This	O	O
way	O	O
,	O	O
you	O	O
can	O	O
set	O	O
up	O	O
the	O	O
cell	O	B-User_Interface_Element
's	O	O
layout	O	O
as	O	O
well	O	O
as	O	O
images	O	B-User_Interface_Element
for	O	O
the	O	O
button	O	B-User_Interface_Element
in	O	O
IB	O	B-Application
,	O	O
rather	O	O
than	O	O
code	O	O
.	O	O

This	O	O
also	O	O
makes	O	O
the	O	O
code	O	O
a	O	O
lot	O	O
easier	O	O
to	O	O
read	O	O
(	O	O
and	O	O
re-read	O	O
6	O	O
months	O	O
later	O	O
!	O	O
)	O	O
.	O	O

Also	O	O
,	O	O
unless	O	O
the	O	O
2	O	O
cells	O	B-User_Interface_Element
(	O	O
section	O	O
0	O	O
and	O	O
section	O	O
1)	O	O
are	O	O
really	O	O
interchangeable	O	O
,	O	O
I	O	O
'd	O	O
recommend	O	O
two	O	O
different	O	O
subclasses	O	O
of	O	O
UITableViewCell	B-Code_Block	B-Class
to	O	O
give	O	O
you	O	O
greater	O	O
control	O	O
,	O	O
rather	O	O
than	O	O
trying	O	O
to	O	O
force	O	O
one	O	O
to	O	O
act	O	O
like	O	O
the	O	O
other	O	O
or	O	O
vice	O	O
versa	O	O
.	O	O

Then	O	O
,	O	O
you	O	O
simply	O	O
assign	O	O
different	O	O
identifiers	O	O
and	O	O
recycle	O	O
the	O	O
appropriate	O	O
type	O	O
.	O	O

I	O	O
implemented	O	O
deep	O	O
link	O	O
in	O	O
my	O	O
android	O	B-Operating_System
app	O	O
.	O	O

Whenever	O	O
I	O	O
clicked	O	O
the	O	O
share	O	O
link	O	O
its	O	O
open	O	O
my	O	O
app	O	O
perfectly	O	O
.	O	O

My	O	O
problem	O	O
is	O	O
copy	O	O
the	O	O
share	O	O
link	O	O
and	O	O
paste	O	O
the	O	O
chrome	O	B-Application
browser	O	I-Application
it	O	O
does	O	O
n't	O	O
open	O	O
my	O	O
app	O	O
.	O	O

Sorry	O	O
for	O	O
my	O	O
bad	O	O
english	O	O
.	O	O

You	O	O
need	O	O
to	O	O
actually	O	O
click	O	O
on	O	O
a	O	O
link	O	O
pointing	O	O
to	O	O
that	O	O
URL	O	O
to	O	O
trigger	O	O
the	O	O
deep-link	O	O
Intent	O	B-Class
,	O	O
writing	O	O
the	O	O
URL	O	O
manually	O	O
does	O	O
n't	O	O
trigger	O	O
it	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
turn	O	O
a	O	O
list	O	B-Data_Structure
like	O	O
this	O	O

into	O	O
a	O	O
list	O	B-Data_Structure
of	O	O
tuples	O	B-Data_Structure
representing	O	O
consecutive	O	O
ranges	O	O
like	O	O
this	O	O
:	O	O

Is	O	O
there	O	O
a	O	O
compact	O	O
way	O	O
to	O	O
do	O	O
this	O	O
in	O	O
Haskell	O	B-Language
?	O	O

This	O	O
seems	O	O
pretty	O	O
compact	O	O
:	O	O

Sure	O	O
:	O	O

I	O	O
am	O	O
wondering	O	O
if	O	O
this	O	O
is	O	O
possible	O	O
and	O	O
maybe	O	O
some	O	O
code	O	O
examples	O	O
if	O	O
it	O	O
is	O	O
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
have	O	O
the	O	O
presenter	O	O
during	O	O
a	O	O
live	O	O
address	O	O
be	O	O
able	O	O
to	O	O
hit	O	O
a	O	O
button	O	B-User_Interface_Element
when	O	O
he	O	O
is	O	O
away	O	O
.	O	O

This	O	O
button	O	B-User_Interface_Element
will	O	O
then	O	O
trigger	O	O
a	O	O
jpg	O	B-File_Type
or	O	O
some	O	O
kind	O	O
of	O	O
image	O	B-User_Interface_Element
on	O	O
the	O	O
clients	O	B-Application
side	O	O
that	O	O
says	O	O
he	O	O
is	O	O
currently	O	O
away	O	O
and	O	O
to	O	O
also	O	O
have	O	O
it	O	O
mute	O	O
the	O	O
presenter	O	O
's	O	O
microphone	O	B-Device
?	O	O

Anyone	O	O
have	O	O
any	O	O
ideas	O	O
how	O	O
this	O	O
would	O	O
be	O	O
possible	O	O
in	O	O
FMIS	O	B-Application
4	O	B-Version
and	O	O
AS3	O	B-Language
?	O	O

Yes	O	O
,	O	O
this	O	O
is	O	O
do-able	O	O
.	O	O

There	O	O
's	O	O
a	O	O
bit	O	O
of	O	O
code	O	O
to	O	O
write	O	O
.	O	O

Here	O	O
's	O	O
a	O	O
break	O	O
down	O	O
:	O	O

Client	O	B-Application
for	O	O
presenter	O	O
makes	O	O
a	O	O
NetConnection	O	B-Class
and	O	O
then	O	O
publishes	O	O
a	O	O
NetStream	O	B-Class
to	O	O
FMS	O	B-Application
.	O	O

When	O	O
presenter	O	O
hits	O	O
away	O	O
button	O	B-User_Interface_Element
:	O	O

Presenter	O	O
's	O	O
client	O	B-Application
sets	O	O
microphone	O	B-Device
gain	O	O
to	O	O
0	O	B-Value

Presenter	O	O
's	O	O
client	O	B-Application
uses	O	O
NetStream.send()	O	B-Function
to	O	O
send	O	O
a	O	O
message	O	O
to	O	O
all	O	O
subscribing	O	O
clients	O	B-Application
.	O	O

The	O	O
message	O	O
is	O	O
basically	O	O
the	O	O
name	O	O
of	O	O
a	O	O
function	O	O
and	O	O
some	O	O
arguments	O	O
that	O	O
all	O	O
subscribing	O	O
clients	O	B-Application
should	O	O
execute	O	O
.	O	O

In	O	O
this	O	O
case	O	O
,	O	O
the	O	O
function	O	O
would	O	O
display/hide	O	O
the	O	O
"	O	O
away	O	O
"	O	O
image	O	B-User_Interface_Element
.	O	O

then	O	O
do	O	O
the	O	O
reverse	O	O
when	O	O
the	O	O
presenter	O	O
returns	O	O

[	O	O
Edit	O	O
]	O	O

Adding	O	O
some	O	O
code	O	O
to	O	O
clarify	O	O
how	O	O
to	O	O
use	O	O
NetStream.send()	B-Code_Block	B-Function
:	O	O

The	O	O
presenter	O	O
code	O	O
:	O	O

The	O	O
subscriber	O	O
code	O	O

When	O	O
creating	O	O
the	O	O
NetStream	O	B-Class
,	O	O
use	O	O
the	O	O
client	O	B-Variable
property	O	O
so	O	O
it	O	O
knows	O	O
where	O	O
to	O	O
find	O	O
the	O	O
function	O	O
"	O	O
toggleAwayImageDisplay	O	B-Function
"	O	O
we	O	O
specified	O	O
above	O	O
:	O	O

I	O	O
have	O	O
joomla	O	B-Application
2.5	O	B-Version
which	O	O
log	O	O
many	O	O
deprecated	O	O
warnings	O	O
like	O	O
Error::raiseNotice()	B-Code_Block	B-Error_Name
is	I-Code_Block	O
deprecated	I-Code_Block	O
.	I-Code_Block	O

So	O	O
I	O	O
result	O	O
width	O	O
a	O	O
big	O	O
log	O	B-File_Type
file	O	O
.	O	O

Can	O	O
I	O	O
turn	O	O
off	O	O
this	O	O
option	O	O
,	O	O
and	O	O
log	O	O
just	O	O
my	O	O
own	O	O
exceptions	O	B-Class
?	O	O

You	O	O
can	O	O
always	O	O
place	O	O
an	O	O
error	O	O
reporting	O	O
condition	O	O
in	O	O
your	O	O
index.php	O	B-File_Name
like	O	O
:	O	O

error_reporting	O	B-Code_Block
(	O	I-Code_Block
E_ALL	O	I-Code_Block
^	O	I-Code_Block
E_DEPRECATED	O	I-Code_Block
)	O	I-Code_Block
;	O	B-Code_Block

For	O	O
more	O	O
info	O	O
:	O	O
http://php.net/manual/en/function.error-reporting.php	O	O

Or	O	O
you	O	O
can	O	O
edit	O	O
error.php	O	B-File_Name
in	O	O
your	O	O
joomla	O	B-Application
directory	O	O
,	O	O
and	O	O

disable	O	O
this	O	O
function	O	O
to	O	O
raise	O	O
deprecated	O	O
warnings	O	O
..	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
structure	O	O
of	O	O
my	O	O
database	O	O
:	O	O

i	O	O
have	O	O
textbox1	O	B-Variable
and	O	O
textbox2	O	B-Variable
and	O	O
8	O	O
checkboxes	O	B-User_Interface_Element
in	O	O
my	O	O
ASP.NET	O	B-Library
(	O	O
VB.NET	O	B-Language
)	O	O
webform	O	O
.	O	O

i	O	O
want	O	O
to	O	O
retrieve	O	O
the	O	O
seats	O	O
on	O	O
the	O	O
particular	O	O
dates	O	O
means	O	O
if	O	O
i	O	O
enter	O	O
11/12/2010	O	B-Value
in	O	O
textbox1	O	B-Variable
then	O	O
in	O	O
textbox2	O	B-Variable
the	O	O
output	O	O
would	O	O
be	O	O
from	O	O
seat_select	O	B-Variable
column	O	B-User_Interface_Element
,	O	O
let	O	O
say	O	O
(	O	B-Value
1	O	I-Value
,	O	I-Value
2	O	I-Value
,	O	I-Value
3)	O	I-Value
where	O	O
date	O	O
would	O	O
be	O	O
11/12/2010	O	B-Value

If	O	O
i	O	O
enter	O	O
13/12/2010	O	B-Value
in	O	O
textbox1	O	B-Variable
then	O	O
in	O	O
textbox2	O	B-Variable
the	O	O
output	O	O
would	O	O
be	O	O
1	O	B-Value
,	O	I-Value
2	O	I-Value

How	O	O
to	O	O
do	O	O
this	O	O
in	O	O
VB.NET	O	B-Language
?	O	O

Markup	O	O
:	O	O

Code-behind	O	O
(	O	O
C#	O	B-Language
)	O	O
-	O	O
formatting	O	O
on	O	O
presentation	O	O
layer	O	O
:	O	O

Do	O	O
n't	O	O
forget	O	O
to	O	O
add	O	O
the	O	O
reference	O	O
to	O	O
System.Data.DataSetExtensions.dll	B-Code_Block	B-File_Name
,	O	O
System.Core.dll	B-Code_Block	B-File_Name
.	O	O

Code-behind	O	O
(	O	O
C#	O	B-Language
)	O	O
-	O	O
formatting	O	O
on	O	O
data	O	O
layer	O	O
:	O	O

you	O	O
can	O	O
use	O	O
the	O	O
following	O	O
query	O	O
to	O	O
return	O	O
you	O	O
a	O	O
comma	O	O
separate	O	O
list	O	B-Data_Structure
of	O	O
seat_select	O	B-Variable
and	O	O
then	O	O
use	O	O
linq	O	B-Library
to	O	O
do	O	O
a	O	O
distinct	O	O
on	O	O
the	O	O
returned	O	O
data	O	O
.	O	O

In	O	O
my	O	O
app	O	O
,	O	O
I	O	O
want	O	O
to	O	O
get	O	O
survey	O	O
answers	O	O
from	O	O
the	O	O
user	O	O
.	O	O

So	O	O
,	O	O
I	O	O
've	O	O
decided	O	O
put	O	O
smiley	O	O
images	O	B-User_Interface_Element
to	O	O
act	O	O
as	O	O
a	O	O
radio	O	B-Class
buttons	O	I-Class
.	O	O

Is	O	O
it	O	O
possible	O	O
on	O	O
android	O	B-Operating_System
?	O	O

For	O	O
example	O	O
,	O	O
I	O	O
will	O	O
show	O	O
smiley	O	O
images	O	B-User_Interface_Element
when	O	O
user	O	O
touches	O	O
the	O	O
image	O	B-User_Interface_Element
and	O	O
it	O	O
will	O	O
be	O	O
activated	O	O
like	O	O
a	O	O
radio	O	B-Class
button	O	I-Class
.	O	O

At	O	O
a	O	O
time	O	O
,	O	O
they	O	O
will	O	O
be	O	O
allowed	O	O
to	O	O
only	O	O
choose	O	O
one	O	O
.	O	O

If	O	O
anyone	O	O
could	O	O
guide	O	O
me	O	O
,	O	O
I	O	O
would	O	O
appreciate	O	O
it	O	O
.	O	O

Example	O	O
:	O	O

Thanks	O	O
in	O	O
advance	O	O
!	O	O

This	O	O
question	O	O
has	O	O
been	O	O
answered	O	O
before	O	O
Below	O	O
is	O	O
from	O	O
@Benito	O	B-User_Name
-Bertoli	O	I-User_Name

RadioButton	O	B-Class
-	O	O
how	O	O
to	O	O
use	O	O
a	O	O
custom	O	O
drawable	O	B-Class
?	O	O

Give	O	O
your	O	O
radiobutton	O	B-Class
a	O	O
custom	O	O
style	O	B-HTML_XML_Tag
:	O	O

custom_btn_radio.xml	O	B-File_Name

Replace	O	O
the	O	O
drawables	O	B-Class
with	O	O
your	O	O
own	O	O
.	O	O

I	O	O
might	O	O
be	O	O
a	O	O
bit	O	O
late	O	O
.	O	O

Use	O	O
android:button	B-Code_Block	B-Code_Block
"	I-Code_Block	I-Code_Block
@btmImage	I-Code_Block	I-Code_Block
link	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block

I	O	O
want	O	O
to	O	O
add	O	O
a	O	O
custom	O	O
VF	O	B-Library
component	O	O
to	O	O
display	O	O
the	O	O
batch	O	B-Variable
job	O	I-Variable
details	O	O
in	O	O
a	O	O
pageblock	O	B-Class
table	O	I-Class
.	O	O

However	O	O
my	O	O
component	O	O
aint	O	O
saving	O	O
,	O	O
it	O	O
says	O	O
:	O	O
Error	O	O
Error	O	O
:	O	O
Read	O	B-Error_Name
only	O	I-Error_Name
property	O	I-Error_Name
'	O	O
c:batchDetailsComponent.BatchJobDetails	O	O
'	O	O

Please	O	O
help	O	O
.	O	O

This	O	O
is	O	O
the	O	O
visualforce	O	B-Library
component	O	O
:	O	O

VF	O	B-Library
Page	O	O
:	O	O

Controller	O	O
:	O	O

You	O	O
need	O	O
to	O	O
set	O	O
the	O	O
access	O	B-Variable
for	O	O
your	O	O
component	O	O
to	O	O
global	B-Code_Block	B-Data_Type
.	O	O

Like	O	O
this	O	O
:	O	O
<apex:component	B-Code_Block	B-Code_Block
access="global"	I-Code_Block	I-Code_Block
controller="BatchOpportunityDetailsExtension">	I-Code_Block	I-Code_Block

I	O	O
am	O	O
trying	O	O
to	O	O
integrate	O	O
Hadoop	O	B-Application
and	O	O
Mongo	O	B-Application
.	O	O

I	O	O
downloaded	O	O
the	O	O
mongo-hadoop	O	B-File_Name
files	O	O
from	O	O
git	O	B-Application
and	O	O
trying	O	O
to	O	O
built	O	O
jar	O	B-File_Type
files	O	O
by	O	O
using	O	O
below	O	O
.	O	O

But	O	O
i	O	O
'm	O	O
getting	O	O
below	O	O
error	O	O

can	O	O
anyone	O	O
tell	O	O
how	O	O
to	O	O
fix	O	O
this	O	O
issue	O	O

Are	O	O
you	O	O
sure	O	O
that	O	O
have	O	O
network	O	O
connection	O	O
?	O	O

Try	O	O
this	O	O
in	O	O
console	O	B-Application
for	O	O
check	O	O
if	O	O
network	O	O
is	O	O
OK	O	O
:	O	O

$	O	B-Code_Block
wget	O	I-Code_Block
https://repo1.maven.org/maven2/org/apache/commons/commons-math3/3.4.1/commons-math3-3.4.1.jar	O	I-Code_Block

My	O	O
firewall	O	B-Application
was	O	O
blocking	O	O
the	O	O
connection	O	O
.	O	O

So	O	O
i	O	O
disabled	O	O
the	O	O
firewall	O	B-Application
and	O	O
restarted	O	O
the	O	O
VM	O	B-Application
.	O	O

Now	O	O
it	O	O
's	O	O
working	O	O
perfectly	O	O

I	O	O
removed	O	O
Laravel	O	B-Library
's	O	O
scaffolding	O	O
with	O	O
the	O	O
command	O	O
php	B-Code_Block	B-Code_Block
artisan	I-Code_Block	I-Code_Block
fresh	I-Code_Block	I-Code_Block
.	O	O

I	O	O
read	O	O
the	O	O
Auth	O	O
middleware	O	B-Library
documentation	O	O
,	O	O
but	O	O
it	O	O
did	O	O
n't	O	O
talk	O	O
about	O	O
a	O	O
specific	O	O
feature	O	O
,	O	O
the	O	O
password-reset	O	B-Variable
.	O	O

It	O	O
only	O	O
explains	O	O
its	O	O
use	O	O
with	O	O
the	O	O
scaffolding	O	O
,	O	O
but	O	O
not	O	O
if	O	O
I	O	O
removed	O	O
it	O	O
.	O	O

There	O	O
is	O	O
chapter	O	O
"	O	O
Manuel	O	O
authentication	O	O
"	O	O
for	O	O
common	O	O
authentication	O	O
methods	O	O
,	O	O
such	O	O
as	O	O
"	O	O
determining	O	O
if	O	O
a	O	O
user	O	O
is	O	O
authenticated	O	O
"	O	O
,	O	O
but	O	O
nothing	O	O
about	O	O
password-reset	O	B-Variable
.	O	O

Other	O	O
point	O	O
,	O	O
does	O	O
this	O	O
middleware	O	B-Library
need	O	O
specific	O	O
rows	O	B-Data_Structure
in	O	O
the	O	O
DB	O	O
tables	O	B-Data_Structure
I	O	O
created	O	O
with	O	O
migrations	O	O
?	O	O

Especially	O	O
"	O	O
users	O	B-Variable
"	O	O
and	O	O
"	O	O
password_resets	O	B-Variable
"	O	O
tables	O	B-Data_Structure
configured	O	O
in	O	O
the	O	O
app	B-Code_Block	B-File_Name
\config\auth.php	I-Code_Block	I-File_Name
file	O	O
.	O	O

This	O	O
problem	O	O
may	O	O
seem	O	O
simple	O	O
,	O	O
but	O	O
I	O	O
did	O	O
n't	O	O
find	O	O
any	O	O
clue	O	O
in	O	O
the	O	O
documentation	O	O
.	O	O

Thanks	O	O
for	O	O
help	O	O
!	O	O

I	O	O
seem	O	O
to	O	O
be	O	O
having	O	O
an	O	O
issue	O	O
when	O	O
updating	O	O
records	O	O
on	O	O
a	O	O
specific	O	O
table	O	B-Data_Structure
.	O	O

For	O	O
reference	O	O
here	O	O
is	O	O
an	O	O
example	O	O
of	O	O
the	O	O
query	O	O
that	O	O
throws	O	O
an	O	O
error	O	O
:	O	O

I	O	O
am	O	O
able	O	O
to	O	O
insert	O	O
,	O	O
delete	O	O
and	O	O
query	O	O
rows	O	B-Data_Structure
,	O	O
as	O	O
well	O	O
as	O	O
update	O	O
other	O	O
columns	O	B-Data_Structure
however	O	O
whenever	O	O
trying	O	O
to	O	O
update	O	O
the	O	O
CustomerID	O	B-Variable
field	O	O
(	O	O
int	O	B-Data_Type
,	O	O
non-null	O	B-Value
)	O	O
it	O	O
throws	O	O
an	O	O
error	O	O
saying	O	O
:	O	O

I	O	O
have	O	O
all	O	O
rights	O	O
to	O	O
both	O	O
the	O	O
database	O	O
and	O	O
table	O	B-Data_Structure
however	O	O
while	O	O
trying	O	O
to	O	O
update	O	O
the	O	O
CustomerID	O	B-Variable
column	O	B-Data_Structure
on	O	O
any	O	O
rows	O	B-Data_Structure
,	O	O
ever	O	O
when	O	O
Revision	O	B-Variable
is	O	O
n't	O	O
even	O	O
in	O	O
the	O	O
query	O	O
I	O	O
get	O	O
the	O	O
same	O	O
error	O	O
.	O	O

I	O	O
looked	O	O
around	O	O
a	O	O
great	O	O
deal	O	O
into	O	O
the	O	O
issue	O	O
using	O	O
a	O	O
regex	O	O
in	O	O
my	O	O
php	O	B-Language
code	O	O
to	O	O
remove	O	O
all	O	O
non-printable	O	O
characters	O	O
however	O	O
even	O	O
when	O	O
running	O	O
the	O	O
query	O	O
from	O	O
phpMyAdmin	O	B-Application
the	O	O
same	O	O
error	O	O
is	O	O
thrown	O	O
.	O	O

If	O	O
anyone	O	O
has	O	O
insight	O	O
into	O	O
this	O	O
error	O	O
it	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

Table	O	B-Data_Structure
description	O	O
:	O	O

You	O	O
may	O	O
possibly	O	O
encounter	O	O
this	O	O
if	O	O
you	O	O
have	O	O
an	O	O
update	O	O
trigger	O	O
firing	O	O
off	O	O
which	O	O
is	O	O
referencing	O	O
a	O	O
column	O	B-Data_Structure
that	O	O
does	O	O
not	O	O
exist	O	O
.	O	O

May	O	O
be	O	O
the	O	O
offending	O	O
trigger	O	O
is	O	O
not	O	O
even	O	O
trying	O	O
to	O	O
read/write	O	O
to	O	O
this	O	O
table	O	B-Data_Structure
!	O	O

As	O	O
such	O	O
,	O	O
that	O	O
column	O	B-Data_Structure
may	O	O
not	O	O
exist	O	O
where	O	O
it	O	O
is	O	O
trying	O	O
to	O	O
reference	O	O
it	O	O
.	O	O

Further	O	O
,	O	O
you	O	O
could	O	O
kick	O	O
off	O	O
a	O	O
cascade	O	O
of	O	O
such	O	O
triggers	O	O
,	O	O
and	O	O
have	O	O
this	O	O
buried	O	O
more	O	O
than	O	O
one	O	O
layer	O	O
deep	O	O
.	O	O

To	O	O
show	O	O
triggers	O	O
:	O	O

http://dev.mysql.com/doc/refman/5.7/en/show-triggers.html	O	O

To	O	O
modify	O	O
them	O	O
:	O	O

http://dev.mysql.com/doc/refman/5.7/en/trigger-syntax.html	O	O

UITableViewStyleGrouped	B-Code_Block	B-Class
does	O	O
not	O	O
have	O	O
rounded	O	O
corners	O	O
like	O	O
in	O	O
iOS	O	B-Operating_System
versions	O	O
<=	O	O
6	O	B-Version
.	O	O

Is	O	O
anyone	O	O
having	O	O
same	O	O
problem	O	O
in	O	O
iOS	O	B-Operating_System
7	O	B-Version
?	O	O

My	O	O
UITableView	O	B-Class
is	O	O
all	O	O
written	O	O
in	O	O
code	O	O
as	O	O
it	O	O
is	O	O
complex	O	O
.	O	O

I	O	O
have	O	O
had	O	O
a	O	O
look	O	O
at	O	O
all	O	O
the	O	O
changes	O	O
and	O	O
guidelines	O	O
and	O	O
I	O	O
cannot	O	O
see	O	O
any	O	O
mention	O	O
of	O	O
change	O	O
to	O	O
the	O	O
cell	O	B-User_Interface_Element
appearance	O	O
.	O	O

Where	O	O
did	O	O
the	O	O
corners	O	O
go	O	O
?	O	O

iOS	O	B-Operating_System
7	O	B-Version
is	O	O
Borderless	O	O
.	O	O

Rounded	O	O
corners	O	O
are	O	O
no	O	O
longer	O	O
available	O	O
in	O	O
iOS	O	B-Operating_System
7	O	B-Version
.	O	O

Apple	O	B-Organization
removed	O	O
this	O	O
feature	O	O
.	O	O

I	O	O
am	O	O
currently	O	O
working	O	O
with	O	O
iOS	O	B-Operating_System
7	O	B-Version
and	O	O
had	O	O
a	O	O
discussion	O	O
with	O	O
apple	O	B-Organization
support	O	O
guys	O	O
.	O	O

They	O	O
confirmed	O	O
that	O	O
this	O	O
is	O	O
no	O	O
more	O	O
supported	O	O
.	O	O

You	O	O
can	O	O
see	O	O
the	O	O
Settings	O	B-Application
app	O	O
for	O	O
an	O	O
example	O	O
—	O	O
the	O	O
table	O	B-User_Interface_Element
view	O	O
there	O	O
is	O	O
group	O	O
style	O	O
.	O	O

Now	O	O
this	O	O
is	O	O
example	O	O
list	O	B-Data_Structure
:	O	O

What	O	O
i	O	O
want	O	O
is	O	O
getting	O	O
the	O	O
list	O	B-Data_Structure
count	O	O
at	O	O
this	O	O
main	O	O
list	O	B-Data_Structure
(	O	O
dblWordFreqByCluster	O	B-Variable
)	O	O
.	O	O

Which	O	O
means	O	O
getting	O	O
count	O	O
of	O	O
List	B-Code_Block	B-Code_Block
<KeyValuePair<string,	I-Code_Block	I-Code_Block
double>>	I-Code_Block	I-Code_Block
lists	O	B-Data_Structure
.	O	O

I	O	O
can	O	O
count	O	O
them	O	O
via	O	O
making	O	O
foreach	O	B-Code_Block
iteration	O	O
which	O	O
i	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
because	O	O
i	O	O
suppose	O	O
that	O	O
would	O	O
cause	O	O
unnecessary	O	O
performance	O	O
loss	O	O
.	O	O

Using	O	O
LINQ	O	B-Library
you	O	O
could	O	O
do	O	O

However	O	O
,	O	O
that	O	O
is	O	O
n't	O	O
much	O	O
different	O	O
than	O	O
using	O	O
a	O	O
foreach	O	B-Code_Block
loop	O	O
,	O	O
but	O	O
it	O	O
would	O	O
be	O	O
less	O	O
verbose	O	O
and	O	O
just	O	O
as	O	O
easy	O	O
to	O	O
read	O	O
.	O	O

A	O	O
simple	O	O
:	O	O

Should	O	O
work	O	O
..	O	O
.	O	O

Edited	O	O
:	O	O
I	O	O
thought	O	O
it	O	O
was	O	O
java	O	B-Language
;)	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
add	O	O
the	O	O
ability	O	O
to	O	O
complete	O	O
a	O	O
todo	O	O
item	O	O
by	O	O
patching	O	O
in	O	O
:complete	O	B-Function
method	O	O
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
use	O	O
a	O	O
checkbox	O	B-User_Interface_Element
for	O	O
this	O	O
rather	O	O
than	O	O
the	O	O
link_to	O	B-Function
I	O	O
have	O	O
below	O	O
?	O	O

I	O	O
would	O	O
very	O	O
much	O	O
like	O	O
a	O	O
checkbox	O	B-User_Interface_Element
so	O	O
it	O	O
feels	O	O
like	O	O
the	O	O
task	O	O
is	O	O
ticked	O	O
off	O	O
.	O	O

My	O	O
View	O	O

My	O	O
Controller	O	O

My	O	O
Resources	O	O

EDIT	O	O
:	O	O

I	O	O
have	O	O
gone	O	O
about	O	O
this	O	O
another	O	O
way	O	O
but	O	O
now	O	O
face	O	O
a	O	O
different	O	O
problem	O	O
..	O	O
.	O	O

I	O	O
have	O	O
migrated	O	O
a	O	O
:completed	O	B-Variable
boolean	O	B-Data_Type
,	O	O
I	O	O
then	O	O
added	O	O
it	O	O
to	O	O
my	O	O
form	O	B-User_Interface_Element
like	O	O
so	O	O
(	O	O
simple_form	O	B-Variable
)	O	O

This	O	O
allows	O	O
me	O	O
to	O	O
update	O	O
completed	O	O
,	O	O
not	O	O
completed	O	O
.	O	O

But	O	O
how	O	O
do	O	O
I	O	O
get	O	O
this	O	O
to	O	O
show	O	O
in	O	O
my	O	O
view	O	O
?	O	O

I	O	O
do	O	O
n't	O	O
want	O	O
to	O	O
have	O	O
to	O	O
click	O	O
into	O	O
each	O	O
todo(edit)	O	O
I	O	O
want	O	O
to	O	O
do	O	O
it	O	O
from	O	O
the	O	O
index	O	O
but	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

From	O	O
a	O	O
RESTful	O	B-Library
standpoint	O	O
there	O	O
is	O	O
no	O	O
need	O	O
for	O	O
an	O	O
additional	O	O
route	O	O
here	O	O
.	O	O

Instead	O	O
your	O	O
would	O	O
simply	O	O
send	O	O
a	O	O
PATCH	B-Code_Block	B-Function
request	O	O
to	O	O
the	O	O
normal	O	O
member	O	O
route	O	O
:	O	O

Also	O	O
you	O	O
want	O	O
to	O	O
do	O	O
it	O	O
like	O	O
a	O	O
real	O	O
rockstar	O	O
you	O	O
might	O	O
want	O	O
to	O	O
use	O	O
a	O	O
enum	O	B-Data_Type
instead	O	O
of	O	O
a	O	O
boolean	O	B-Data_Type
:	O	O

This	O	O
lets	O	O
you	O	O
setup	O	O
many	O	O
states	O	O
without	O	O
creating	O	O
several	O	O
boolean	O	B-Data_Type
columns	O	B-Data_Structure
and	O	O
gives	O	O
you	O	O
a	O	O
bunch	O	O
of	O	O
functionality	O	O
almost	O	O
for	O	O
free	O	O
.	O	O

To	O	O
set	O	O
this	O	O
up	O	O
on	O	O
the	O	O
view	O	O
side	O	O
you	O	O
could	O	O
simply	O	O
create	O	O
a	O	O
form	O	B-User_Interface_Element
for	O	O
each	O	O
element	O	O
:	O	O

We	O	O
could	O	O
use	O	O
a	O	O
classical	O	O
submit	O	O
button	O	B-User_Interface_Element
here	O	O
but	O	O
to	O	O
give	O	O
a	O	O
good	O	O
UX	O	O
we	O	O
want	O	O
to	O	O
use	O	O
ajax	O	B-Function
.	O	O

Having	O	O
a	O	O
form	O	B-User_Interface_Element
element	O	O
gives	O	O
us	O	O
the	O	O
perfect	O	O
foundation	O	O
since	O	O
we	O	O
can	O	O
simply	O	O
enhance	O	O
its	O	O
behavior	O	O
:	O	O

I	O	O
have	O	O
a	O	O
large	O	O
file	O	O
of	O	O
measurements	O	O
with	O	O
3-second	O	O
period	O	O
(	O	O
here	O	O
is	O	O
a	O	O
small	O	O
part	O	O
of	O	O
it	O	O
)	O	O
.	O	O

I	O	O
made	O	O
time	O	O
serie	O	O
:	O	O

On	O	O
the	O	O
next	O	O
step	O	O
I	O	O
need	O	O
convert	O	O
it	O	O
to	O	O
the	O	O
time	O	O
series	O	O
with	O	O
3	O	O
minutes	O	O
update	O	O
interval	O	O
,	O	O
where	O	O
values	O	O
must	O	O
be	O	O
the	O	O
averages	O	O
.	O	O

What	O	O
is	O	O
the	O	O
simplest	O	O
way	O	O
to	O	O
do	O	O
this	O	O
?	O	O

You	O	O
can	O	O
use	O	O
the	O	O
period.apply	B-Code_Block	B-Function
from	O	O
the	O	O
xts	B-Code_Block	B-Library
package	O	O

The	O	O
second	O	O
argument	O	O
to	O	O
period.apply	B-Code_Block	B-Function
is	O	O
a	O	O
vector	O	B-Data_Structure
of	O	O
the	O	O
row	O	B-Data_Structure
numbers	O	O
of	O	O
the	O	O
end	O	O
of	O	O
each	O	O
3	O	O
minute	O	O
period	O	O
.	O	O

endpoints	B-Code_Block	B-Code_Block
(	I-Code_Block	I-Code_Block
dat	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
minutes	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
3)	I-Code_Block	I-Code_Block
calculates	O	O
that	O	O
for	O	O
you	O	O
.	O	O

If	O	O
you	O	O
want	O	O
the	O	O
timestamps	O	O
to	O	O
be	O	O
"	O	O
rounded	O	O
"	O	O
instead	O	O
of	O	O
being	O	O
the	O	O
last	O	O
timestamp	O	O
of	O	O
each	O	O
period	O	O
,	O	O
you	O	O
can	O	O
use	O	O
align.time	B-Code_Block	B-Function
,	O	O
but	O	O
align.time	B-Code_Block	B-Function
requires	O	O
that	O	O
the	O	O
object	O	O
is	O	O
an	O	O
xts	B-Code_Block	B-Library
,	O	O
so	O	O
you	O	O
'd	O	O
have	O	O
to	O	O
convert	O	O
to	O	O
xts	B-Code_Block	B-Library
first	O	O
.	O	O

Use	O	O
aggregate.zoo	B-Code_Block	B-Function
:	O	O

Note	O	O
that	O	O
dec	B-Code_Block	B-Code_Block
="."	I-Code_Block	I-Code_Block
and	O	O
index	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
are	O	O
used	O	O
by	O	O
default	O	O
in	O	O
read.zoo	B-Code_Block	B-Function
so	O	O
they	O	O
could	O	O
be	O	O
omitted	O	O
from	O	O
the	O	O
read.zoo	B-Code_Block	B-Function
line	O	O
.	O	O

I	O	O
created	O	O
an	O	O
API	O	O
using	O	O
the	O	O
rails-api	O	B-Library
gem	O	O
and	O	O
I	O	O
have	O	O
an	O	O
client	O	O
app	O	O
based	O	O
on	O	O
angular	O	B-Library
in	O	O
which	O	O
I	O	O
use	O	O
ng-resource	O	B-Library
.	O	O

I	O	O
do	O	O
think	O	O
that	O	O
the	O	O
request	O	O
I	O	O
send	O	O
to	O	O
my	O	O
API	O	O
should	O	O
be	O	O
more	O	O
like	O	O
{	O	B-Code_Block
post=>	O	I-Code_Block
{	O	I-Code_Block
"kind"=>"GGG"	O	I-Code_Block
}	O	I-Code_Block
}	O	B-Code_Block
and	O	O
not	O	O
{	O	B-Code_Block
"kind"=>"GGG"	O	I-Code_Block
}	O	I-Code_Block
of	O	O
I	O	O
have	O	O
to	O	O
find	O	O
a	O	O
way	O	O
for	O	O
my	O	O
api	O	O
to	O	O
work	O	O
with	O	O
the	O	O
request	O	O
I	O	O
send	O	O
now	O	O
.	O	O

For	O	O
now	O	O
I	O	O
'm	O	O
stuck	O	O
with	O	O
400	O	B-Error_Name
Bad	O	I-Error_Name
Request	O	I-Error_Name
errors	O	O
and	O	O
I	O	O
ca	O	O
n't	O	O
find	O	O
out	O	O
how	O	O
to	O	O
fix	O	O
it	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
rails	O	B-Language
controller	O	O
:	O	O

Here	O	O
is	O	O
my	O	O
angular	O	B-Library
controller	O	O
:	O	O

Here	O	O
is	O	O
my	O	O
angular	O	B-Library
factory	O	O
:	O	O

In	O	O
my	O	O
logs	O	B-File_Type
I	O	O
have	O	O
:	O	O

-	O	O

Change	O	O
the	O	O
following	O	O
code	O	O
:	O	O

To	O	O
be	O	O
:	O	O

And	O	O
you	O	O
problem	O	O
will	O	O
be	O	O
fixed	O	O
.	O	O

Yes	O	O
,	O	O
it	O	O
has	O	O
been	O	O
asked	O	O
before	O	O
and	O	O
i	O	O
have	O	O
followed	O	O
the	O	O
advice	O	O
here	O	O
and	O	O
put	O	O
my	O	O
declerations	O	O
at	O	O
the	O	O
top	O	O
still	O	O
not	O	O
working	O	O
.	O	O

note	O	O
the	O	O
logic	O	O
of	O	O
the	O	O
code	O	O
is	O	O
correct	O	O
as	O	O
it	O	O
was	O	O
working	O	O
on	O	O
another	O	O
machine	O	O
,	O	O
its	O	O
the	O	O
compiler	O	B-Application
that	O	O
is	O	O
not	O	O
happy	O	O
with	O	O
the	O	O
layout	O	O

The	O	O
compiler	O	B-Application
complains	O	O
because	O	O
assert	B-Code_Block	B-Function
is	O	O
not	O	O
a	O	O
declaration	O	O
.	O	O

You	O	O
'll	O	O
need	O	O
to	O	O
move	O	O
the	O	O
assert	B-Code_Block	B-Function
so	O	O
that	O	O
it	O	O
comes	O	O
after	O	O
the	O	O
declarations	O	O
.	O	O

Using	O	O
a	O	O
C	O	B-Language
compiler	O	B-Application
that	O	O
supported	O	O
a	O	O
standard	O	O
more	O	O
recent	O	O
that	O	O
C89	O	B-Language
would	O	O
be	O	O
a	O	O
good	O	O
move	O	O
.	O	O

I	O	O
've	O	O
created	O	O
a	O	O
bash	O	B-Language
script	O	O
to	O	O
find	O	O
dollar	O	O
words	O	O
.	O	O

For	O	O
those	O	O
of	O	O
you	O	O
who	O	O
do	O	O
n't	O	O
know	O	O
,	O	O
a	O	O
dollar	O	O
word	O	O
is	O	O
a	O	O
word	O	O
whose	O	O
values	O	O
of	O	O
their	O	O
letters	O	O
add	O	O
up	O	O
to	O	O
100	O	O
when	O	O
A	O	B-Variable
is	O	O
given	O	O
a	O	O
value	O	O
of	O	O
1	O	B-Value
,	O	O
B	O	B-Variable
is	O	O
given	O	O
a	O	O
value	O	O
of	O	O
2	O	B-Value
,	O	O
C	O	B-Variable
is	O	O
3	O	B-Value
,	O	O
and	O	O
all	O	O
the	O	O
way	O	O
to	O	O
Z	O	B-Variable
is	O	O
26	O	B-Value
.	O	O

I	O	O
am	O	O
new	O	O
to	O	O
programming	O	O
,	O	O
so	O	O
I	O	O
've	O	O
created	O	O
a	O	O
very	O	O
crude	O	O
script	O	O
that	O	O
'll	O	O
do	O	O
this	O	O
kind	O	O
of	O	O
thing	O	O
,	O	O
but	O	O
it	O	O
's	O	O
not	O	O
working	O	O
as	O	O
fast	O	O
as	O	O
I	O	O
would	O	O
expect	O	O
.	O	O

Something	O	O
in	O	O
my	O	O
code	O	O
is	O	O
slowing	O	O
it	O	O
down	O	O
,	O	O
but	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
what	O	O
.	O	O

This	O	O
is	O	O
my	O	O
code	O	O
.	O	O

I	O	O
can	O	O
only	O	O
speculate	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
while	O	B-Code_Block
loops	O	O
,	O	O
or	O	O
with	O	O
how	O	O
it	O	O
is	O	O
constantly	O	O
writing	O	O
the	O	O
value	O	O
of	O	O
$line	B-Code_Block	B-Variable
to	O	O
a	O	O
file	O	O
.	O	O

I	O	O
've	O	O
created	O	O
a	O	O
script	O	O
before	O	O
that	O	O
adds	O	O
numbers	O	O
to	O	O
generate	O	O
the	O	O
Fibonacci	O	O
sequence	O	O
,	O	O
and	O	O
it	O	O
does	O	O
it	O	O
almost	O	O
instantaneously	O	O
.	O	O

So	O	O
my	O	O
question	O	O
is	O	O
,	O	O
what	O	O
are	O	O
some	O	O
ways	O	O
to	O	O
help	O	O
my	O	O
code	O	O
run	O	O
more	O	O
efficiently	O	O
?	O	O

Apologies	O	O
if	O	O
this	O	O
belongs	O	O
on	O	O
codereview	O	B-Website
.	O	O

Any	O	O
help	O	O
is	O	O
highly	O	O
appreciated	O	O
.	O	O

Thanks	O	O

Edit	O	O
:	O	O

Although	O	O
I	O	O
accepted	O	O
Gordan	O	B-User_Name
Davisson	O	I-User_Name
's	O	O
Answer	O	O
,	O	O
the	O	O
other	O	O
ones	O	O
are	O	O
just	O	O
as	O	O
good	O	O
if	O	O
you	O	O
want	O	O
to	O	O
do	O	O
this	O	O
.	O	O

I	O	O
'd	O	O
recommend	O	O
reading	O	O
everyone	O	O
else	O	O
's	O	O
answer	O	O
before	O	O
giving	O	O
this	O	O
a	O	O
try	O	O
.	O	O

Also	O	O
,	O	O
as	O	O
numerous	O	O
users	O	O
have	O	O
pointed	O	O
out	O	O
,	O	O
bash	O	B-Language
is	O	O
not	O	O
a	O	O
good	O	O
language	O	O
to	O	O
be	O	O
using	O	O
for	O	O
this	O	O
.	O	O

Again	O	O
,	O	O
Thanks	O	O
to	O	O
everyone	O	O
for	O	O
your	O	O
suggestions	O	O
.	O	O

As	O	O
@thatotherguy	O	B-User_Name
pointed	O	O
out	O	O
in	O	O
a	O	O
comment	O	O
,	O	O
there	O	O
are	O	O
two	O	O
big	O	O
problems	O	O
here	O	O
.	O	O

First	O	O
,	O	O
the	O	O
way	O	O
you	O	O
're	O	O
reading	O	O
lines	O	O
from	O	O
the	O	O
file	O	O
reads	O	O
the	O	O
entire	O	O
file	O	O
every	O	O
line	O	O
.	O	O

That	O	O
is	O	O
,	O	O
to	O	O
read	O	O
the	O	O
first	O	O
line	O	O
you	O	O
run	O	O
sed	B-Code_Block	B-Code_Block
-n	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
p	I-Code_Block	I-Code_Block
Words.txt	I-Code_Block	I-Code_Block
,	O	O
which	O	O
reads	O	O
the	O	O
entire	O	O
file	O	O
and	O	O
prints	O	O
only	O	O
the	O	O
first	O	O
line	O	O
;	O	O
then	O	O
you	O	O
run	O	O
sed	B-Code_Block	B-Code_Block
-n	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
p	I-Code_Block	I-Code_Block
Words.txt	I-Code_Block	I-Code_Block
,	O	O
which	O	O
reads	O	O
the	O	O
entire	O	O
file	O	O
again	O	O
and	O	O
prints	O	O
only	O	O
the	O	O
second	O	O
line	O	O
;	O	O
etc	O	O
.	O	O

To	O	O
fix	O	O
this	O	O
use	O	O
a	O	O
while	B-Code_Block	B-Code_Block
read	I-Code_Block	O
loop	O	O
:	O	O

Note	O	O
that	O	O
if	O	O
anything	O	O
inside	O	O
the	O	O
loop	O	O
tries	O	O
to	O	O
read	O	O
from	O	O
standard	O	O
input	O	O
,	O	O
it	O	O
'll	O	O
steal	O	O
some	O	O
of	O	O
the	O	O
input	O	O
from	O	O
Words.txt	O	B-File_Name
.	O	O

In	O	O
that	O	O
case	O	O
you	O	O
can	O	O
send	O	O
the	O	O
file	O	O
over	O	O
FD	O	O
#3	O	O
instead	O	O
of	O	O
standard	O	O
input	O	O
with	O	O
while	B-Code_Block	B-Code_Block
read	I-Code_Block	I-Code_Block
-u3	I-Code_Block	I-Code_Block
..	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
done	I-Code_Block	I-Code_Block
3	I-Code_Block	I-Code_Block
<	I-Code_Block	I-Code_Block
Words.txt	I-Code_Block	I-Code_Block
.	O	O

The	O	O
second	O	O
problem	O	O
is	O	O
this	O	O
bit	O	O
:	O	O

which	O	O
..	O	O
creates	O	O
3	O	O
subprocesses	O	O
(	O	O
echo	B-Code_Block	B-Code_Block
,	O	O
grep	B-Code_Block	B-Code_Block
,	O	O
and	O	O
wc	B-Code_Block	B-Code_Block
)	O	O
,	O	O
which	O	O
is	O	O
n't	O	O
too	O	O
bad	O	O
except	O	O
that	O	O
this	O	O
runs	O	O
26	O	O
times	O	O
for	O	O
each	O	O
and	O	O
every	O	O
word	O	O
in	O	O
the	O	O
file	O	O
.	O	O

Creating	O	O
processes	O	O
is	O	O
expensive	O	O
compared	O	O
to	O	O
most	O	O
shell	O	B-Application
operations	O	O
,	O	O
so	O	O
you	O	O
should	O	O
do	O	O
your	O	O
best	O	O
to	O	O
avoid	O	O
it	O	O
especially	O	O
in	O	O
loops	O	O
that	O	O
run	O	O
many	O	O
many	O	O
times	O	O
.	O	O

Try	O	O
this	O	O
instead	O	O
:	O	O

This	O	O
works	O	O
by	O	O
replacing	O	O
all	O	O
characters	O	O
that	O	O
are	O	O
n't	O	O
${letter[i]}	O	B-Variable
with	O	O
""	O	O
,	O	O
then	O	O
looking	O	O
at	O	O
the	O	O
length	O	O
of	O	O
the	O	O
resulting	O	O
string	O	B-Data_Type
.	O	O

The	O	O
parsing	O	O
happens	O	O
entirely	O	O
in	O	O
the	O	O
shell	O	B-Application
process	O	O
,	O	O
so	O	O
it	O	O
should	O	O
be	O	O
much	O	O
faster	O	O
.	O	O

Given	O	O
:	O	O

(	O	O
i.e	O	O
.	O	O
,	O	O
the	O	O
370,101	O	O
word	O	O
file	O	O
linked	O	O
HERE	O	O
)	O	O

In	O	O
Bash	O	B-Language
alone	O	O
,	O	O
start	O	O
with	O	O
a	O	O
loop	O	O
that	O	O
reads	O	O
the	O	O
file	O	O
line	O	O
by	O	O
line	O	O
:	O	O

To	O	O
count	O	O
the	O	O
lines	O	O
alone	O	O
in	O	O
Bash	O	B-Language
(	O	O
same	O	O
file	O	O
)	O	O
takes	O	O
over	O	O
7.8	O	O
seconds	O	O
on	O	O
my	O	O
computer	O	O
.	O	O

wc	B-Code_Block	B-Code_Block
in	O	O
comparison	O	O
executes	O	O
in	O	O
microseconds	O	O
.	O	O

So	O	O
the	O	O
Bash	O	B-Language
version	O	O
is	O	O
going	O	O
to	O	O
take	O	O
a	O	O
while	O	O
.	O	O

Once	O	O
you	O	O
have	O	O
the	O	O
file	O	O
word	O	O
by	O	O
word	O	O
,	O	O
you	O	O
can	O	O
read	O	O
each	O	O
word	O	O
character	O	O
by	O	O
character	O	O
and	O	O
find	O	O
the	O	O
index	O	O
of	O	O
that	O	O
character	O	O
in	O	O
a	O	O
string	O	B-Data_Type
of	O	O
the	O	O
alphabet	O	O
:	O	O

Prints	O	O
:	O	O

That	O	O
takes	O	O
about	O	O
1:55	O	O
on	O	O
the	O	O
370,101	O	O
word	O	O
file	O	O
.	O	O

As	O	O
a	O	O
comparison	O	O
,	O	O
consider	O	O
the	O	O
same	O	O
function	O	O
in	O	O
Python	O	B-Language
:	O	O

Far	O	O
easier	O	O
to	O	O
understand	O	O
and	O	O
executes	O	O
in	O	O
580	O	O
ms	O	O
.	O	O

Bash	O	B-Language
is	O	O
great	O	O
for	O	O
gluing	O	O
together	O	O
different	O	O
tools	O	O
.	O	O

Is	O	O
is	O	O
not	O	O
that	O	O
great	O	O
at	O	O
large	O	O
processing	O	O
tasks	O	O
.	O	O

Use	O	O
awk	B-Code_Block	B-Language
perl	I-Code_Block	I-Language
python	I-Code_Block	I-Language
ruby	I-Code_Block	I-Language
etc	O	O
for	O	O
larger	O	O
tasks	O	O
.	O	O

Easier	O	O
to	O	O
write	O	O
,	O	O
read	O	O
,	O	O
understand	O	O
and	O	O
faster	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
match	O	O
a	O	O
regex	O	O
string	O	B-Data_Type
against	O	O
a	O	O
data	O	O
file	O	O
in	O	O
perl	O	B-Language
,	O	O
but	O	O
it	O	O
constantly	O	O
keeps	O	O
skipping	O	O
the	O	O
exact	O	O
line	O	O
that	O	O
I	O	O
'm	O	O
heading	O	O
for	O	O
..	O	O
.	O	O
what	O	O
can	O	O
possibly	O	O
be	O	O
wrong	O	O
here	O	O
?	O	O

My	O	O
file	O	O
says	O	O
:	O	O

I	O	O
'm	O	O
going	O	O
for	O	O
the	O	O
class	O	O
"	O	B-Value
lydskrift	O	I-Value
"	O	I-Value
line	O	O
,	O	O
so	O	O
I	O	O
tried	O	O
to	O	O
grab	O	O
its	O	O
content	O	O
in	O	O
multiple	O	O
ways	O	O
until	O	O
I	O	O
ended	O	O
up	O	O
trying	O	O
to	O	O
match	O	O
just	O	O
everything	O	O
like	O	O
so	O	O
:	O	O

Surprisingly	O	O
it	O	O
keeps	O	O
giving	O	O
me	O	O
this	O	O
:	O	O

Interestingly	O	O
enough	O	O
,	O	O
it	O	O
matches	O	O
all	O	O
four	O	O
lines	O	O
if	O	O
I	O	O
put	O	O
them	O	O
in	O	O
a	O	O
DATA	O	O
area	O	O
inside	O	O
the	O	O
same	O	O
perl	O	B-File_Type
file	O	O
!	O	O

But	O	O
that	O	O
's	O	O
not	O	O
what	O	O
I	O	O
want	O	O
,	O	O
so	O	O
what	O	O
makes	O	O
the	O	O
difference	O	O
here	O	O
?	O	O

To	O	O
build	O	O
on	O	O
mu	O	B-User_Name
is	O	I-User_Name
too	O	I-User_Name
short	O	I-User_Name
's	O	O
solution	O	O
,	O	O
this	O	O
is	O	O
how	O	O
I	O	O
'd	O	O
write	O	O
it	O	O
:	O	O

or	O	O
,	O	O
if	O	O
you	O	O
also	O	O
want	O	O
to	O	O
skip	O	O
lines	O	O
consisting	O	O
only	O	O
of	O	O
whitespace	O	B-Value
:	O	O

First	O	O
of	O	O
all	O	O
,	O	O
I	O	O
think	O	O
your	O	O
file	O	O
has	O	O
one	O	O
more	O	O
line	O	O
at	O	O
the	O	O
top	O	O
that	O	O
you	O	O
're	O	O
not	O	O
including	O	O
.	O	O

The	O	O
reason	O	O
for	O	O
my	O	O
suspicion	O	O
is	O	O
below	O	O
.	O	O

Your	O	O
problem	O	O
is	O	O
n't	O	O
the	O	O
regex	O	O
,	O	O
your	O	O
problem	O	O
is	O	O
that	O	O
<FILE>	B-Code_Block	B-HTML_XML_Tag
reads	O	O
a	O	O
line	O	O
each	O	O
time	O	O
you	O	O
call	O	O
it	O	O
.	O	O

So	O	O
every	O	O
run	O	O
through	O	O
your	O	O
loop	O	O
reads	O	O
one	O	O
line	O	O
in	O	O
the	O	O
while(	B-Code_Block	B-Code_Block
<	I-Code_Block	I-Code_Block
FILE	I-Code_Block	I-Code_Block
>	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
and	O	O
then	O	O
another	O	O
one	O	O
in	O	O
the	O	O
if(	B-Code_Block	B-Code_Block
<	I-Code_Block	I-Code_Block
FILE	I-Code_Block	I-Code_Block
>	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
~	I-Code_Block	I-Code_Block
m/	I-Code_Block	I-Code_Block
(.+)/)	I-Code_Block	I-Code_Block
.	O	O

Your	O	O
if	B-Code_Block	B-Code_Block
should	O	O
be	O	O
just	O	O
this	O	O
:	O	O

so	O	O
that	O	O
it	O	O
uses	O	O
the	O	O
default	O	O
$_	B-Code_Block	B-Code_Block
variable	O	O
that	O	O
the	O	O
while(1)	B-Code_Block	B-Code_Block
will	O	O
be	O	O
populating	O	O
.	O	O

Furthermore	O	O
,	O	O
your	O	O
while	B-Code_Block	B-Code_Block
loop	O	O
is	O	O
doing	O	O
a	O	O
lot	O	O
more	O	O
work	O	O
than	O	O
it	O	O
has	O	O
to	O	O
,	O	O
you	O	O
could	O	O
just	O	O
do	O	O
this	O	O
:	O	O

or	O	O
even	O	O
this	O	O
:	O	O

If	O	O
you	O	O
're	O	O
trying	O	O
to	O	O
skip	O	O
blank	O	O
lines	O	O
,	O	O
then	O	O
maybe	O	O
this	O	O
:	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
upload	O	O
a	O	O
video	O	B-User_Interface_Element
while	O	O
using	O	O
Laravel	O	B-Library
.	O	O

Though	O	O
uploading	O	O
images	O	B-User_Interface_Element
work	O	O
fine	O	O
for	O	O
me	O	O
when	O	O
I	O	O
change	O	O
my	O	O
controller	O	O
line	O	O

to	O	O
:	O	O

I	O	O
only	O	O
see	O	O
uploaded	B-Code_Block	O
written	O	O
on	O	O
a	O	O
new	O	O
page	O	O
,	O	O
but	O	O
no	O	O
video	O	B-User_Interface_Element
.	O	O

Controller	O	O
:	O	O

Routes	O	O
:	O	O

View	O	O
:	O	O

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

Controller	O	O
:	O	O

php.ini	O	B-File_Name
files	O	O
contains	O	O
some	O	O
limits	O	O
that	O	O
might	O	O
affect	O	O
this	O	O
.	O	O

Try	O	O
changing	O	O
these	O	O
to	O	O
high	O	O
enough	O	O
values	O	O
:	O	O

I	O	O
'm	O	O
sure	O	O
this	O	O
question	O	O
has	O	O
been	O	O
asked	O	O
before	O	O
,	O	O
but	O	O
I	O	O
'm	O	O
unable	O	O
to	O	O
find	O	O
it	O	O
.	O	O

I	O	O
have	O	O
a	O	O
bunch	O	O
of	O	O
list	O	B-HTML_XML_Tag
elements	O	O
like	O	O
so	O	O
:	O	O

I	O	O
want	O	O
to	O	O
wrap	O	O
each	O	O
group	O	O
in	O	O
a	O	O
<ul></ul>	B-Code_Block	B-HTML_XML_Tag
element	O	O
.	O	O

How	O	O
do	O	O
I	O	O
do	O	O
that	O	O
?	O	O

This	O	O
is	O	O
what	O	O
I	O	O
've	O	O
tried	O	O
,	O	O
but	O	O
it	O	O
only	O	O
matches	O	O
the	O	O
individual	O	O
elements	O	O
:	O	O

/<li	B-Code_Block	B-Code_Block
[^>]*>.*<\/li>/g	I-Code_Block	I-Code_Block

https://regex101.com/r/KXEkJz/1	O	O

And	O	O
if	O	O
I	O	O
do	O	O
/<li	B-Code_Block	B-Code_Block
[^>]*>[\s\S]*<\/li>/g	I-Code_Block	I-Code_Block
,	O	O
it	O	O
produces	O	O
one	O	O
giant	O	O
match	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
group	O	O
them	O	O
by	O	O
new	O	B-Value
lines	O	I-Value
,	O	O
try	O	O
something	O	O
like	O	O
this	O	O
:	O	O

(	B-Code_Block	B-Code_Block
<li	I-Code_Block	I-Code_Block
[^>]*>.*<\/li>	I-Code_Block	I-Code_Block
\n?	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
+	I-Code_Block	I-Code_Block

The	O	O
only	O	O
difference	O	O
between	O	O
it	O	O
and	O	O
yours	O	O
is	O	O
that	O	O
it	O	O
tries	O	O
to	O	O
capture	O	O
multiple	O	O
<li>	B-Code_Block	B-HTML_XML_Tag
objects	O	O
and	O	O
does	O	O
n't	O	O
mind	O	O
if	O	O
there	O	O
is	O	O
a	O	O
new	O	B-Value
line	O	I-Value
.	O	O

If	O	O
there	O	O
's	O	O
a	O	O
new	O	B-Value
line	O	I-Value
followed	O	O
by	O	O
something	O	O
different	O	O
though	O	O
,	O	O
it	O	O
stops	O	O
matching	O	O
.	O	O

I	O	O
am	O	O
having	O	O
problem	O	O
in	O	O
populating	O	O
data	O	O
from	O	O
a	O	O
table	O	B-User_Interface_Element
in	O	O
one	O	O
screen	O	O
to	O	O
a	O	O
Text	O	B-Class
Field	O	I-Class
in	O	O
the	O	O
other	O	O
screen	O	O
.	O	O

I	O	O
have	O	O
two	O	O
classes	O	O
FirstClass	O	B-Class
containing	O	O
a	O	O
textbox	O	B-User_Interface_Element
and	O	O
a	O	O
button	O	B-User_Interface_Element
.	O	O

On	O	O
pressing	O	O
a	O	O
button	O	B-User_Interface_Element
a	O	O
second	O	O
window	O	B-User_Interface_Element
is	O	O
opened	O	O
containing	O	O
a	O	O
Table	O	B-User_Interface_Element
of	O	O
values	O	O
.	O	O

As	O	O
the	O	O
user	O	O
double	O	O
clicks	O	O
a	O	O
row	O	B-User_Interface_Element
the	O	O
value	O	O
of	O	O
the	O	O
second	O	O
column	O	B-Data_Structure
of	O	O
the	O	O
row	O	B-Data_Structure
should	O	O
be	O	O
inserted	O	O
into	O	O
the	O	O
textbox	O	B-User_Interface_Element
of	O	O
the	O	O
FirstClass	O	B-Class
.	O	O

Code	O	O
of	O	O
both	O	O
the	O	O
classes	O	O
is	O	O
attached	O	O
.	O	O

Thanking	O	O
you	O	O
in	O	O
anticipation	O	O
.	O	O

The	O	O
quick	O	O
and	O	O
easy	O	O
way	O	O
(	O	O
but	O	O
it	O	O
introduces	O	O
coupling	O	O
between	O	O
the	O	O
2	O	O
classes	O	O
)	O	O
would	O	O
be	O	O
to	O	O
pass	O	O
userNameFld	B-Code_Block	B-Variable
to	O	O
your	O	O
showDialog	B-Code_Block	B-Function
method	O	O
and	O	O
make	O	O
it	O	O
a	O	O
member	O	O
of	O	O
TableClass	O	B-Class
.	O	O

You	O	O
can	O	O
then	O	O
change	O	O
its	O	O
value	O	O
from	O	O
the	O	O
TableClass	O	B-Class
class	O	O
.	O	O

A	O	O
better	O	O
way	O	O
would	O	O
be	O	O
to	O	O
bind	O	O
the	O	O
value	O	O
of	O	O
userNameFld	B-Code_Block	B-Variable
to	O	O
value	B-Code_Block	B-Variable
.	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
programmatically	O	O
fire	O	O
a	O	O
key	O	O
event	O	O
to	O	O
go	O	O
left	O	O
in	O	O
a	O	O
text	O	B-User_Interface_Element
box	O	I-User_Interface_Element
,	O	O
but	O	O
not	O	O
having	O	O
any	O	O
luck	O	O
.	O	O

The	O	O
input	O	O
element	O	O
has	O	O
focus	O	O
and	O	O
the	O	O
cursor	O	B-User_Interface_Element
is	O	O
at	O	O
the	O	O
end	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
get	O	O
the	O	O
cursor	O	B-User_Interface_Element
to	O	O
move	O	O
left	O	O
one	O	O
step	O	O
-	O	O
before	O	O
the	O	O
letter	O	O
"	O	B-Value
F	O	I-Value
"	O	I-Value
*	O	O
programmatically	O	O
by	O	O
firing	O	O
a	O	O
Keyboard	O	B-Device
event	O	O
(	O	O
keydown/keyup/keypress	O	B-Keyboard_IP
)	O	O
with	O	O
the	O	O
corresponding	O	O
keystroke	O	O
←	O	B-Keyboard_IP
or	O	O
→	O	B-Keyboard_IP
targeted	O	O
at	O	O
the	O	O
input	O	B-User_Interface_Element
box	O	I-User_Interface_Element
.	O	O

ABCDEF|	B-Keyboard_IP	B-Keyboard_IP

Here	O	O
's	O	O
the	O	O
code	O	O
so	O	O
far	O	O
:	O	O

HTML	O	B-Language

Javascript	O	B-Language

Saved	O	O
a	O	O
quick	O	O
demo	O	O
on	O	O
jsfiddle	O	B-Application
if	O	O
you	O	O
want	O	O
to	O	O
see	O	O
the	O	O
whole	O	O
code	O	O
-	O	O
http://jsfiddle.net/Vsafv/	O	O

I	O	O
am	O	O
not	O	O
interested	O	O
in	O	O
making	O	O
this	O	O
cross-browser	O	B-Application
(	O	O
just	O	O
get	O	O
it	O	O
working	O	O
in	O	O
Chrome	O	B-Application
)	O	O
.	O	O

Thanks	O	O
for	O	O
any	O	O
help	O	O
.	O	O

And	O	O
for	O	O
those	O	O
not	O	O
viewing	O	O
jQuery	O	B-Library
as	O	O
the	O	O
solution	O	O
to	O	O
everything	O	O
:)	O	O

From	O	O
http://blog.josh420.com/archives/2007/10/setting-cursor-position-in-a-textbox-or-textarea-with-javascript.aspx	O	O

where	O	O
"	O	B-Value
input	O	I-Value
"	O	I-Value
is	O	O
your	O	O
textarea	O	B-User_Interface_Element

37	O	B-Value
-	O	O
left	O	B-Keyboard_IP

38	O	B-Value
-	O	O
up	O	B-Keyboard_IP

39	O	B-Value
-	O	O
right	O	B-Keyboard_IP

40	O	B-Value
-	O	O
down	O	B-Keyboard_IP

So	O	O
when	O	O
you	O	O
record	O	O
your	O	O
"	O	O
events	O	O
"	O	O
you	O	O
record	O	O
the	O	O
values	O	O
for	O	O
the	O	O
keys	O	O
pressed	O	O
.	O	O

I	O	O
'm	O	O
sure	O	O
you	O	O
already	O	O
figured	O	O
out	O	O
a	O	O
way	O	O
to	O	O
do	O	O
this	O	O
but	O	O
just	O	O
in	O	O
case	O	O
,	O	O
here	O	O
's	O	O
an	O	O
idea	O	O
of	O	O
how	O	O
i	O	O
would	O	O
tackle	O	O
it	O	O
:	O	O

Hope	O	O
this	O	O
helps	O	O

I	O	O
need	O	O
to	O	O
get	O	O
the	O	O
bounding	O	B-User_Interface_Element
box	O	I-User_Interface_Element
(	O	O
in	O	O
scene	O	O
space	O	O
)	O	O
of	O	O
QGraphicsItems	B-Code_Block	B-Class
that	O	O
have	O	O
the	O	O
QGraphicsItem::ItemIgnoresTransformations	B-Code_Block	B-Variable
flag	O	O
set	O	O
.	O	O

According	O	O
to	O	O
the	O	O
docs	O	O
,	O	O
you	O	O
need	O	O
to	O	O
use	O	O
QGraphicsItem::deviceTransform()	O	B-Function
to	O	O
do	O	O
that	O	O
.	O	O

I	O	O
tried	O	O
this	O	O
:	O	O

But	O	O
something	O	O
is	O	O
wrong	O	O
,	O	O
the	O	O
bounding	O	B-User_Interface_Element
boxes	O	I-User_Interface_Element
appear	O	O
smaller	O	O
and	O	O
far	O	O
to	O	O
the	O	O
right	O	O
of	O	O
the	O	O
items	O	B-Variable
..	O	O
.	O	O

Just	O	O
figured	O	O
it	O	O
out	O	O
,	O	O
QGraphicsView::viewportTransform()	O	B-Function
doc	O	O
says	O	O
"	O	O
Returns	O	O
a	O	O
matrix	O	B-Data_Structure
that	O	O
maps	O	O
viewport	O	B-User_Interface_Element
coordinates	O	O
to	O	O
scene	O	O
coordinates	O	O
"	O	O
,	O	O
but	O	O
in	O	O
fact	O	O
it	O	O
returns	O	O
the	O	O
scene	O	O
to	O	O
viewport	O	B-User_Interface_Element
transform	O	O
.	O	O

Inverting	O	O
vp_trans	O	B-Variable
in	O	O
the	O	O
last	O	O
step	O	O
fixed	O	O
my	O	O
problem	O	O
.	O	O

In	O	O
version	O	O
2.0.4	O	B-Version
of	O	O
Twitter	O	B-Library
Bootstrap	O	I-Library
I	O	O
added	O	O
a	O	O
box	O	B-User_Interface_Element
shadow	O	I-User_Interface_Element
to	O	O
my	O	O
nav-bar	O	B-User_Interface_Element
and	O	O
it	O	O
worked	O	O
great	O	O
.	O	O

(	O	O
see	O	O
the	O	O
image	O	B-User_Interface_Element
below	O	O
)	O	O

I	O	O
recently	O	O
upgraded	O	O
to	O	O
version	O	O
2.2.1	O	B-Version
and	O	O
tried	O	O
doing	O	O
the	O	O
same	O	O
but	O	O
I	O	O
fail	O	O
to	O	O
see	O	O
the	O	O
box	O	B-User_Interface_Element
shadow	O	I-User_Interface_Element
below	O	O
my	O	O
navbar	O	B-User_Interface_Element
.	O	O

Here	O	O
is	O	O
my	O	O
current	O	O
style	O	O
:	O	O

Any	O	O
ideas	O	O
why	O	O
the	O	O
drop	O	B-User_Interface_Element
shadow	O	I-User_Interface_Element
is	O	O
n't	O	O
appearing	O	O
in	O	O
2.2.1	O	B-Version
?	O	O

In	O	O
the	O	O
bug	O	O
reported	O	O
,	O	O
the	O	O
possible	O	O
solution	O	O
would	O	O
be	O	O
:	O	O

And	O	O
the	O	O
latest	O	O
version	O	O
2.1.2-WIP	O	B-Version
has	O	O
this	O	O
code	O	O
:	O	O

I	O	O
need	O	O
to	O	O
limit	O	O
the	O	O
radius	O	B-Variable
of	O	O
the	O	O
great	O	O
circle	O	O
problem	O	O
.	O	O

The	O	O
circle	O	O
will	O	O
extend	O	O
until	O	O
it	O	O
hits	O	O
another	O	O
item	O	O
.	O	O

I	O	O
need	O	O
it	O	O
to	O	O
limit	O	O
the	O	O
range	O	O
of	O	O
the	O	O
circle	O	O
to	O	O
5	O	B-Value
miles	O	I-Value

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

First	O	O
,	O	O
it	O	O
is	O	O
surprising	O	O
you	O	O
use	O	O
a	O	O
function	O	O
that	O	O
returns	O	O
a	O	O
radius	O	B-Variable
in	O	O
km	O	O
,	O	O
and	O	O
then	O	O
want	O	O
to	O	O
limit	O	O
it	O	O
to	O	O
5	O	B-Value
miles	O	I-Value
.	O	O

You	O	O
should	O	O
make	O	O
up	O	O
your	O	O
mind	O	O
:	O	O
either	O	O
write	O	O
the	O	O
function	O	O
to	O	O
return	O	O
miles	O	O
and	O	O
add	O	O
the	O	O
limit	O	O
in	O	O
miles	O	O
,	O	O
or	O	O
leave	O	O
the	O	O
function	O	O
as-is	O	O
and	O	O
limit	O	O
it	O	O
by	O	O
km	O	O
(	O	O
8	O	B-Value
km	O	I-Value
is	O	O
roughly	O	O
5	O	B-Value
miles	O	I-Value
)	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
use	O	O
miles	O	O
,	O	O
then	O	O
change	O	O
this	O	O
line	O	O
:	O	O

to	O	O
:	O	O

and	O	O
replace	O	O
:	O	O

by	O	O
:	O	O

Alternatively	O	O
,	O	O
if	O	O
you	O	O
want	O	O
to	O	O
stick	O	O
to	O	O
km	O	O
,	O	O
then	O	O
only	O	O
replace	O	O
:	O	O

by	O	O
:	O	O

When	O	O
I	O	O
install	O	O
the	O	O
module	O	O
using	O	O
pip	B-Code_Block	B-Code_Block
install	I-Code_Block	I-Code_Block
module_name	I-Code_Block	I-Code_Block
,	O	O
I	O	O
am	O	O
able	O	O
to	O	O
see	O	O
the	O	O
size	O	O
of	O	O
either	O	O
wheel	O	O
or	O	O
the	O	O
package	O	O
.	O	O

so	O	O
the	O	O
question	O	O
is	O	O
,	O	O
is	O	O
it	O	O
possible	O	O
to	O	O
know	O	O
just	O	O
the	O	O
size	O	O
of	O	O
each	O	O
module	O	O
?	O	O

something	O	O
like	O	O
this	O	O
.	O	O

I	O	O
want	O	O
to	O	O
know	O	O
estimated	O	O
size	O	O
of	O	O
the	O	O
distribution	O	O
so	O	O
that	O	O
I	O	O
can	O	O
remove	O	O
them	O	O
from	O	O
winpython	O	B-Application
distribution	O	O
.	O	O

I	O	O
know	O	O
this	O	O
is	O	O
vague	O	O
but	O	O
this	O	O
is	O	O
what	O	O
I	O	O
wanted	O	O
:	O	O

or	O	O
you	O	O
can	O	O
get	O	O
list	O	B-Data_Structure
at	O	O
:	O	O

http://hastebin.com/qiconesoje.apache	O	O

If	O	O
you	O	O
're	O	O
in	O	O
virtualenv	O	B-Application
,	O	O
you	O	O
can	O	O
use	O	O
first	O	O
option	O	O
to	O	O
get	O	O
more	O	O
:	O	O

I	O	O
have	O	O
a	O	O
array	O	B-Data_Structure
now	O	O
i	O	O
want	O	O
to	O	O
create	O	O
a	O	O
copy	O	O
of	O	O
that	O	O
array	O	B-Data_Structure
so	O	O
that	O	O
i	O	O
can	O	O
retain	O	O
the	O	O
previous	O	O
value	O	O
of	O	O
my	O	O
array	O	B-Data_Structure
if	O	O
i	O	O
want	O	O
to	O	O
;	O	O

I	O	O
tried	O	O
something	O	O
like	O	O
this	O	O

But	O	O
it	O	O
giving	O	O
me	O	O
a	O	O
null	O	B-Error_Name
pointer	O	I-Error_Name
exception	O	I-Error_Name
i.e	O	O
.	O	O

Please	O	O
suggest	O	O
me	O	O
how	O	O
could	O	O
i	O	O
do	O	O
this	O	O
now	O	O

Very	O	O
simple	O	O
Try	O	O
this	O	O

As	O	O
the	O	O
exception	O	B-Class
stands	O	O
you	O	O
have	O	O
not	O	O
allocate	O	O
memory	O	O
for	O	O
the	O	O
destination	O	O
.	O	O

Before	O	O
System.arrayCopy	O	B-Function
call	O	O

if	O	O
secondArray	B-Code_Block	B-Variable
is	O	O
of	O	O
the	O	O
String	O	B-Data_Type
type	O	O
.	O	O

Otherwise	O	O
you	O	O
have	O	O
to	O	O
change	O	O
it	O	O
accordingly	O	O

I	O	O
want	O	O
to	O	O
Convert	O	O
My	O	O
Data	O	B-Class
Table	O	I-Class
to	O	O
XML	O	B-Language
.	O	O

I	O	O
Have	O	O
two	O	O
data	O	B-Class
Table	O	I-Class
Similar	O	O
like	O	O
this	O	O
.	O	O

I	O	O
want	O	O
to	O	O
convert	O	O
similar	O	O
like	O	O
this	O	O
.	O	O

I	O	O
Have	O	O
tried	O	O
Below	O	O
,	O	O
but	O	O
I	O	O
need	O	O
to	O	O
do	O	O
this	O	O
with	O	O
looping	O	O
with	O	O
datatable	O	B-Class
select	O	O
statement	O	O
for	O	O
refid	O	B-HTML_XML_Tag
.	O	O

can	O	O
anyone	O	O
please	O	O
help	O	O
me	O	O
on	O	O
this	O	O
.	O	O

I	O	O
hope	O	O
it	O	O
will	O	O
help	O	O
you	O	O

You	O	O
can	O	O
use	O	O
the	O	O
writeXML	O	B-Function
method	O	O
to	O	O
save	O	O
it	O	O
as	O	O
XML	O	B-Language
Here	O	O
is	O	O
useful	O	O
link	O	O
http://msdn.microsoft.com/en-us/library/system.data.datatable.writexml.aspx	O	O

I	O	O
tried	O	O
using	O	O
the	O	O
regex.syntax	B-Code_Block	B-Library
module	O	O
to	O	O
access	O	O
the	O	O
individual	O	O
tokens	O	O
of	O	O
a	O	O
parsed	O	O
regular	O	O
expression	O	O
without	O	O
success	O	O
:	O	O
the	O	O
only	O	O
thing	O	O
I	O	O
'm	O	O
able	O	O
to	O	O
output	O	O
is	O	O
a	O	O
simplified/optimized	O	O
version	O	O
of	O	O
the	O	O
regex	O	B-Library
.	O	O

Code	O	O
:	O	O

Output	O	O
:	O	O

Can	O	O
someone	O	O
give	O	O
me	O	O
a	O	O
simple	O	O
example	O	O
of	O	O
how	O	O
to	O	O
traverse	O	O
and	O	O
output	O	O
its	O	O
parse	O	O
tree	O	B-Data_Structure
?	O	O

The	O	O
Parse	B-Code_Block	B-Function
function	O	O
you	O	O
're	O	O
calling	O	O
is	O	O
right	O	O
.	O	O

When	O	O
you	O	O
call	O	O
fmt.Println(p)	B-Code_Block	B-Function
,	O	O
the	O	O
parse	O	O
tree	O	B-Data_Structure
is	O	O
being	O	O
converted	O	O
to	O	O
a	O	O
string	O	B-Data_Type
,	O	O
which	O	O
is	O	O
why	O	O
the	O	O
output	O	O
you	O	O
're	O	O
seeing	O	O
is	O	O
just	O	O
an	O	O
equivalent	O	O
regexp	O	B-Variable
.	O	O

The	O	O
return	O	O
value	O	O
of	O	O
Parse	B-Code_Block	B-Function
is	O	O
a	O	O
pointer	O	B-Data_Type
to	O	O
a	O	O
syntax.Regexp	B-Code_Block	B-Variable
struct	O	O
.	O	O

To	O	O
traverse	O	O
the	O	O
returned	O	O
parse	O	O
tree	O	B-Data_Structure
you	O	O
want	O	O
to	O	O
look	O	O
at	O	O
the	O	O
Sub	B-Code_Block	B-Variable
field	O	O
of	O	O
the	O	O
returned	O	O
struct	O	B-Data_Structure
which	O	O
lists	O	O
all	O	O
the	O	O
subexpressions	O	O
(	O	O
a	O	O
slice	O	O
of	O	O
pointers	O	B-Data_Type
to	O	O
syntax.Regexp	B-Code_Block	B-Variable
structs	O	B-Data_Structure
)	O	O
.	O	O

For	O	O
example	O	O
:	O	O

See	O	O
the	O	O
syntax	O	O
package	O	O
reference	O	O
for	O	O
more	O	O
fields	O	O
worth	O	O
inspecting	O	O
:	O	O
Op	B-Code_Block	B-Variable
and	O	O
Rune	B-Code_Block	B-Variable
are	O	O
major	O	O
ones	O	O
.	O	O

I	O	O
have	O	O
problem	O	O
with	O	O
event	O	O
in	O	O
Java	O	B-Language
.	O	O

I	O	O
have	O	O
got	O	O
two	O	O
jade	O	B-Library
's	O	O
class	O	O
:	O	O

First	O	O
class	O	O

Second	O	O
class	O	O

Problem	O	O
is	O	O
that	O	O
when	O	O
I	O	O
click	O	O
Add	O	O
in	O	O
gui	O	O
i	O	O
want	O	O
to	O	O
view	O	O
"	O	O
it	O	O
is	O	O
work	O	O
"	O	O
.	O	O

Why	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
?	O	O

I	O	O
do	O	O
n't	O	O
know	O	O
Jade	O	B-Library
but	O	O
in	O	O
your	O	O
code	O	O
,	O	O
var	O	B-Variable
is	O	O
set	O	O
to	O	O
true	O	B-Value
when	O	O
the	O	O
add	O	O
button	O	B-User_Interface_Element
is	O	O
clicked	O	O
.	O	O

If	O	O
you	O	O
put	O	O
a	O	O
System.out.println("something")	B-Code_Block	B-Function
after	O	O
the	O	O
line	O	O
var	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
true	I-Code_Block	I-Code_Block
in	O	O
the	O	O
second	O	O
class	O	O
you	O	O
will	O	O
see	O	O
that	O	O
it	O	O
happens	O	O
as	O	O
expected	O	O
when	O	O
you	O	O
click	O	O
the	O	O
button	O	B-User_Interface_Element
.	O	O

If	O	O
you	O	O
change	O	O
the	O	O
first	O	O
class	O	O
like	O	O
this	O	O
:	O	O

you	O	O
will	O	O
also	O	O
see	O	O
that	O	O
var	O	B-Variable
is	O	O
still	O	O
false	O	B-Value
when	O	O
that	O	O
condition	O	O
is	O	O
tested	O	O
because	O	O
you	O	O
have	O	O
not	O	O
had	O	O
time	O	O
to	O	O
click	O	O
the	O	O
add	O	O
button	O	B-User_Interface_Element
yet	O	O
.	O	O

The	O	O
proper	O	O
way	O	O
to	O	O
handle	O	O
this	O	O
would	O	O
be	O	O
to	O	O
have	O	O
the	O	O
first	O	O
class	O	O
listen	O	O
to	O	O
the	O	O
second	O	O
class	O	O
so	O	O
that	O	O
it	O	O
gets	O	O
alerted	O	O
when	O	O
the	O	O
button	O	B-User_Interface_Element
is	O	O
clicked	O	O
and	O	O
runs	O	O
something	O	O
appropriate	O	O
when	O	O
that	O	O
happens	O	O
.	O	O

Im	O	O
simply	O	O
trying	O	O
to	O	O
upload	O	O
this	O	O
image	O	B-User_Interface_Element
to	O	O
iCloud	O	B-Application
.	O	O

It	O	O
keeps	O	O
giving	O	O
me	O	O
the	O	O
error	O	O
"	O	O
The	O	B-Output_Block
operation	O	I-Output_Block
could	O	I-Output_Block
n't	O	I-Output_Block
be	O	I-Output_Block
completed	O	I-Output_Block
.	O	I-Output_Block
Operation	O	I-Output_Block
not	O	I-Output_Block
permitted	O	I-Output_Block
"	O	O
.	O	O

I	O	O
took	O	O
this	O	O
code	O	O
right	O	O
out	O	O
of	O	O
the	O	O
Document	O	O
Based	O	O
App	O	O
Programming	O	O
Guide	O	O
and	O	O
I	O	O
believe	O	O
I	O	O
've	O	O
set	O	O
all	O	O
my	O	O
certificates	O	O
,	O	O
identifiers	O	O
,	O	O
profiles	O	O
,	O	O
and	O	O
entitlements	O	O
correctly	O	O
.	O	O

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

This	O	O
is	O	O
insanely	O	O
frustrating	O	O
.	O	O

Welcome	O	O
to	O	O
iCloud	O	B-Application
.	O	O

You	O	O
'll	O	O
get	O	O
used	O	O
to	O	O
that	O	O
feeling	O	O
after	O	O
a	O	O
while	O	O
.	O	O

In	O	O
the	O	O
meantime	O	O
though	O	O
,	O	O
you	O	O
have	O	O
other	O	O
problems	O	O
.	O	O

This	O	O
is	O	O
not	O	O
going	O	O
to	O	O
give	O	O
you	O	O
a	O	O
valid	O	O
URL	O	O
,	O	O
which	O	O
is	O	O
going	O	O
to	O	O
be	O	O
a	O	O
problem	O	O
.	O	O

What	O	O
you	O	O
need	O	O
is	O	O
:	O	O

That	O	O
will	O	O
give	O	O
you	O	O
a	O	O
valid	O	O
file://	B-Code_Block	B-Value
URL	O	I-Value
.	O	O

Below	O	O
are	O	O
my	O	O
configuration	O	O

inputFromKafka	B-Code_Block	B-Code_Block
goes	O	O
through	O	O
transformation	O	O
below	O	O

The	O	O
print	O	B-Code_Block
statement	O	O
from	O	O
above	O	O
prints	O	O
only	O	O
two	O	O
consistent	O	O
headers	O	B-User_Interface_Element
regardless	O	O

KAFKA	B-Code_Block	B-Code_Block
Message	I-Code_Block	I-Code_Block
Headers	I-Code_Block	I-Code_Block
{	I-Code_Block	I-Code_Block
id	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
9c8f09e6-4b28-5aa1-c74c-ebfa53c01ae4	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
timestamp	I-Code_Block	I-Code_Block
=	I-Code_Block	I-Code_Block
1437066957272}	I-Code_Block	I-Code_Block

While	O	O
Sending	O	O
a	O	O
Kafka	O	B-Library
message	O	O
some	O	O
headers	O	B-User_Interface_Element
were	O	O
passed	O	O
including	O	O
KafkaHeaders.MESSAGE_KEY	B-Code_Block	B-Variable
but	O	O
I	O	O
am	O	O
not	O	O
getting	O	O
back	O	O
that	O	O
either	O	O
,	O	O
wondering	O	O
if	O	O
there	O	O
is	O	O
away	O	O
to	O	O
accomplish	O	O
this	O	O
?	O	O

Unfortunately	O	O
it	O	O
does	O	O
n't	O	O
work	O	O
that	O	O
way	O	O
..	O	O
.	O	O

The	O	O
Producer	B-Code_Block	O
part	O	O
(	O	O
KafkaProducerMessageHandler	B-Code_Block	B-Class
)	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

As	O	O
you	O	O
see	O	O
we	O	O
do	O	O
n't	O	O
send	O	O
any	O	O
messageHeaders	B-Code_Block	B-Class
to	O	O
the	O	O
Kafka	O	B-Library
topic	B-Code_Block	O
.	O	O

Only	O	O
payload	B-Code_Block	O
and	O	O
exactly	O	O
under	O	O
that	O	O
messageKey	B-Code_Block	B-Class
as	O	O
it	O	O
specified	O	O
by	O	O
Kafka	O	B-Library
protocol	O	O
.	O	O

From	O	O
other	O	O
side	O	O
the	O	O
Consumer	B-Code_Block	O
side	O	O
(	O	O
KafkaHighLevelConsumerMessageSource	B-Code_Block	B-Class
)	O	O
does	O	O
this	O	O
logic	O	O
:	O	O

As	O	O
you	O	O
see	O	O
we	O	O
do	O	O
n't	O	O
care	O	O
here	O	O
about	O	O
messageKey	B-Code_Block	B-Class
.	O	O

The	O	O
KafkaMessageDrivenChannelAdapter	B-Code_Block	B-Code_Block
(	O	I-Code_Block
<int-kafka:message-driven-channel-adapter>	B-Code_Block	I-Code_Block
)	O	I-Code_Block
is	O	O
for	O	O
you	O	O
!	O	O

It	O	O
does	O	O
this	O	O
before	O	O
sending	O	O
the	O	O
message	O	O
to	O	O
the	O	O
channel	O	O
:	O	O

As	O	O
stated	O	O
before	O	O
there	O	O
's	O	O
no	O	O
concept	O	O
of	O	O
message	O	O
headers	O	B-User_Interface_Element
in	O	O
Kafka	O	B-Library
.	O	O

Because	O	O
I	O	O
struggled	O	O
with	O	O
that	O	O
same	O	O
problem	O	O
in	O	O
the	O	O
past	O	O
I	O	O
've	O	O
compiled	O	O
a	O	O
small	O	O
library	O	O
that	O	O
helps	O	O
tackle	O	O
this	O	O
issue	O	O
.	O	O

It	O	O
may	O	O
come	O	O
handy	O	O
to	O	O
you	O	O
.	O	O

I	O	O
am	O	O
building	O	O
a	O	O
calculator	O	B-Application
with	O	O
flexbox	O	B-Library
.	O	O

I	O	O
want	O	O
one	O	O
of	O	O
its	O	O
keys	O	O
twice	O	O
the	O	O
height	O	B-Variable
and	O	O
another	O	O
key	O	O
twice	O	O
the	O	O
width	O	B-Variable
.	O	O

I	O	O
googled	O	O
much	O	O
about	O	O
it	O	O
but	O	O
could	O	O
n't	O	O
find	O	O
both	O	O
cases	O	O
together	O	O
.	O	O

For	O	O
twice	O	O
height	O	B-Variable
key	O	O
,	O	O
only	O	O
answers	O	O
I	O	O
found	O	O
was	O	O
to	O	O
make	O	O
flex-direction	B-Code_Block	B-Variable
as	O	O
column	B-Code_Block	B-Data_Structure
.	O	O

But	O	O
in	O	O
that	O	O
case	O	O
I	O	O
will	O	O
not	O	O
be	O	O
able	O	O
to	O	O
make	O	O
double	O	O
width	O	B-Variable
key	O	O
.	O	O

Here	O	O
is	O	O
my	O	O
code	O	O
(	O	O
on	O	O
codepen.io	O	B-Application
)	O	O
.	O	O

Please	O	O
help	O	O
.	O	O

There	O	O
is	O	O
n't	O	O
a	O	O
generic	O	O
answer	O	O
I	O	O
can	O	O
come	O	O
up	O	O
with	O	O
,	O	O
but	O	O
this	O	O
is	O	O
as	O	O
close	O	O
as	O	O
I	O	O
can	O	O
get	O	O
.	O	O

I	O	O
have	O	O
modified	O	O
your	O	O
code	O	O
to	O	O
use	O	O
floating	O	O
instead	O	O
of	O	O
the	O	O
flexbox	O	B-Library
layout	O	O
model	O	O
.	O	O

This	O	O
is	O	O
less	O	O
modern	O	O
,	O	O
but	O	O
seems	O	O
to	O	O
be	O	O
a	O	O
viable	O	O
workaround	O	O
to	O	O
this	O	O
particular	O	O
problem	O	O
,	O	O
with	O	O
little	O	O
to	O	O
no	O	O
negative	O	O
effects	O	O
.	O	O

https://codepen.io/anon/pen/VjOKGX	O	O

Wrap	O	O
the	O	O
uneven	O	O
keys	O	B-User_Interface_Element
in	O	O
their	O	O
own	O	O
flex	O	B-Class
containers	O	I-Class
and	O	O
go	O	O
from	O	O
there.	O	O
.	O	O

Revised	O	O
Codepen	O	B-Application
(	O	O
with	O	O
compiled	O	O
CSS	O	B-Language
)	O	O

Notes	O	O
:	O	O

Include	O	O
padding	O	B-User_Interface_Element
and	O	O
borders	O	B-User_Interface_Element
in	O	O
width	B-Code_Block	B-Variable
/	O	O
height	B-Code_Block	B-Variable
calculations	O	O
.	O	O

Wrap	O	O
uneven	O	O
keys	O	O
in	O	O
a	O	O
separate	O	O
flex	O	B-Class
container	O	I-Class
(	O	O
with	O	O
defaults	O	O
flex-direction	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
row	I-Code_Block	I-Code_Block
and	O	O
flex-wrap	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
nowrap	I-Code_Block	I-Code_Block
)	O	O

Wrap	O	O
long	O	O
key	O	B-User_Interface_Element
in	O	O
a	O	O
separate	O	O
flex	O	B-Class
container	O	I-Class
with	O	O
wrapping	O	O
enabled	O	O
(	O	O
and	O	O
take	O	O
enough	O	O
siblings	O	O
to	O	O
create	O	O
equal	O	O
height	O	B-Variable
with	O	O
tall	O	O
key	O	B-User_Interface_Element
)	O	O
.	O	O

Force	O	O
three	O	O
keys	O	B-User_Interface_Element
per	O	O
row	O	B-User_Interface_Element
max	O	O
.	O	O

Make	O	O
long	O	O
key	O	B-User_Interface_Element
twice	O	O
the	O	O
width	O	B-Variable
of	O	O
siblings	O	O
.	O	O

(	O	O
Did	O	O
n't	O	O
use	O	O
simpler	O	O
long	B-Code_Block	B-Class
class	O	O
selector	O	O
due	O	O
to	O	O
weaker	O	O
specificity	O	O
.	O	O
)	O	O

Wrap	O	O
tall	O	O
key	O	B-User_Interface_Element
in	O	O
a	O	O
separate	O	O
flex	O	B-Class
container	O	I-Class
with	O	O
vertical	O	O
orientation	O	O
.	O	O

Make	O	O
tall	O	O
key	O	B-User_Interface_Element
consume	O	O
all	O	O
available	O	O
width	O	B-Variable
and	O	O
height	O	B-Variable
of	O	O
container	O	B-Class
.	O	O

UPDATE	O	O

From	O	O
the	O	O
comments	O	O
:	O	O

Question	O	O
#1	O	O
:	O	O

The	O	O
keys	O	B-User_Interface_Element
in	O	O
the	O	O
first	O	O
sub-section	O	O
container	O	O
(	O	O
containing	O	O
.long	B-Code_Block	B-Class
)	O	O
are	O	O
sized	O	O
with	O	O
flex	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
33.33	I-Code_Block	I-Code_Block
%	I-Code_Block	I-Code_Block
.	O	O

This	O	O
is	O	O
shorthand	O	O
for	O	O
flex-grow	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
1	I-Code_Block	I-Code_Block
,	O	O
flex-shrink	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
0	I-Code_Block	I-Code_Block
,	O	O
and	O	O
flex-basis	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
33.33	I-Code_Block	I-Code_Block
%	I-Code_Block	I-Code_Block
.	O	O

For	O	O
the	O	O
.long	B-Code_Block	B-Class
key	O	B-User_Interface_Element
we	O	O
are	O	O
simply	O	O
overriding	O	O
the	O	O
flex-basis	B-Code_Block	B-Variable
component	O	O
with	O	O
66.67	B-Code_Block	B-Value
%	I-Code_Block	I-Value
.	O	O

(	O	O
there	O	O
's	O	O
no	O	O
need	O	O
to	O	O
re-declare	O	O
the	O	O
other	O	O
two	O	O
components	O	O
)	O	O
.	O	O

Also	O	O
,	O	O
there	O	O
's	O	O
really	O	O
no	O	O
difference	O	O
in	O	O
this	O	O
case	O	O
between	O	O
width	B-Code_Block	B-Variable
and	O	O
flex-basis	B-Code_Block	B-Variable
,	O	O
but	O	O
since	O	O
we	O	O
're	O	O
overriding	O	O
flex-basis	B-Code_Block	B-Variable
,	O	O
I	O	O
used	O	O
flex-basis	B-Code_Block	B-Variable
.	O	O

Using	O	O
width	B-Code_Block	B-Variable
would	O	O
leave	O	O
the	O	O
original	O	O
flex-basis	B-Code_Block	B-Code_Block
:	I-Code_Block	I-Code_Block
33.33	I-Code_Block	I-Code_Block
%	I-Code_Block	I-Code_Block
intact	O	O
,	O	O
creating	O	O
two	O	O
width	B-Code_Block	B-Variable
rules	O	O
which	O	O
may	O	O
,	O	O
therefore	O	O
,	O	O
fail	O	O
to	O	O
expand	O	O
the	O	O
.long	B-Code_Block	B-Class
key	O	B-User_Interface_Element
,	O	O
depending	O	O
on	O	O
which	O	O
rule	O	O
prevails	O	O
in	O	O
the	O	O
cascade	O	O
.	O	O

For	O	O
a	O	O
complete	O	O
explanation	O	O
of	O	O
flex-basis	B-Code_Block	B-Variable
vs	O	O
.	O	O
width	B-Code_Block	B-Variable
,	O	O
see	O	O
What	O	O
are	O	O
the	O	O
differences	O	O
between	O	O
flex-basis	O	B-Variable
and	O	O
width	O	B-Variable
?	O	O

Question	O	O
#2	O	O
:	O	O

Because	O	O
the	O	O
initial	O	O
value	O	O
of	O	O
the	O	O
flex-grow	B-Code_Block	B-Variable
component	O	O
is	O	O
0	B-Code_Block	B-Value
(	O	O
source	O	O
)	O	O
.	O	O

The	O	O
following	O	O
query	O	O

returns	O	O
the	O	O
error	O	O
:	O	O

Why	O	O
cant	O	O
the	O	O
subquery	O	O
use	O	O
the	O	O
variable	O	O
from	O	O
the	O	O
parent	O	O
query	O	O
in	O	O
this	O	O
case	O	O
?	O	O

I	O	O
have	O	O
tried	O	O
various	O	O
combinations	O	O
to	O	O
try	O	O
and	O	O
fix	O	O
this	O	O
,	O	O
but	O	O
have	O	O
had	O	O
no	O	O
luck	O	O
so	O	O
far	O	O
.	O	O

You	O	O
should	O	O
consider	O	O
the	O	O
following	O	O
part	O	O
of	O	O
the	O	O
select	O	O
as	O	O
if	O	O
you	O	O
're	O	O
defining	O	O
another	O	O
Table	O	B-Data_Structure
(	O	O
that	O	O
you	O	O
call	O	O
x	B-Code_Block	B-Variable
)	O	O
:	O	O

when	O	O
this	O	O
Table	O	B-Data_Structure
is	O	O
defined	O	O
,	O	O
which	O	O
a.Lat	B-Code_Block	B-Variable
should	O	O
be	O	O
used	O	O
?	O	O

The	O	O
way	O	O
to	O	O
fix	O	O
it	O	O
is	O	O
have	O	O
the	O	O
"	O	O
outer	O	B-Code_Block
"	O	O
query	O	O
run	O	O
,	O	O
and	O	O
use	O	O
its	O	O
results	O	O
when	O	O
you	O	O
run	O	O
the	O	O
second	O	O
query	O	O
on	O	O
AWE_Propvids	B-Code_Block	B-Variable
.	O	O

It	O	O
should	O	O
look	O	O
something	O	O
like	O	O
:	O	O

Q	O	O
:	O	O
Why	O	O
cant	O	O
the	O	O
subquery	O	O
use	O	O
the	O	O
variable	O	O
from	O	O
the	O	O
parent	O	O
query	O	O
in	O	O
this	O	O
case	O	O
?	O	O

A	O	O
:	O	O
Because	O	O
that	O	O
subquery	O	O
is	O	O
an	O	O
inline	O	O
view	O	O
.	O	O

MySQL	O	B-Application
will	O	O
run	O	O
that	O	O
query	O	O
and	O	O
create	O	O
a	O	O
temporary	O	O
table	O	B-Data_Structure
,	O	O
the	O	O
"	O	O
derived	O	B-Variable
table	O	I-Variable
"	O	O
(	O	O
as	O	O
MySQL	O	B-Application
calls	O	O
it	O	O
)	O	O
is	O	O
a	O	O
row	O	B-Data_Structure
source	O	O
for	O	O
the	O	O
outer	O	O
query	O	O
.	O	O

The	O	O
inline	O	O
view	O	O
query	O	O
has	O	O
to	O	O
be	O	O
run	O	O
before	O	O
the	O	O
query	O	O
that	O	O
references	O	O
it	O	O
.	O	O

A	O	O
correlated	O	O
subquery	O	O
can	O	O
be	O	O
used	O	O
in	O	O
a	O	O
WHERE	O	B-Code_Block
clause	O	O
,	O	O
a	O	O
HAVING	O	B-Code_Block
clause	O	O
,	O	O
an	O	O
IN	O	B-Code_Block
clause	O	O
,	O	O
or	O	O
in	O	O
the	O	O
SELECT	O	B-Code_Block
list	O	B-Data_Structure
,	O	O
but	O	O
it	O	O
is	O	O
n't	O	O
valid	O	O
in	O	O
the	O	O
FROM	O	B-Code_Block
clause	O	O
,	O	O
as	O	O
an	O	O
inline	O	O
view	O	O
query	O	O
.	O	O

I	O	O
have	O	O
a	O	O
panel	O	B-User_Interface_Element
that	O	O
contains	O	O
a	O	O
checkboxTree	O	B-Class
,	O	O
I	O	O
populate	O	O
the	O	O
tree	O	B-Data_Structure
when	O	O
open	O	O
the	O	O
panel	O	B-User_Interface_Element
,	O	O
the	O	O
problem	O	O
is	O	O
when	O	O
i	O	O
have	O	O
to	O	O
much	O	O
items	O	O
to	O	O
be	O	O
selected	O	O
in	O	O
the	O	O
checkboxtree	O	B-Class
(	O	O
about	O	O
4000	O	O
)	O	O
the	O	O
panel	O	B-User_Interface_Element
take	O	O
a	O	O
long	O	O
time	O	O
to	O	O
open	O	O
.	O	O

this	O	O
is	O	O
my	O	O
code	O	O
:	O	O

checkBoxTree.getCheckBoxTreeSelectionModel().setDigIn(true)	O	B-Function
;	O	I-Function

any	O	O
suggestions	O	O
will	O	O
be	O	O
welcomed	O	O
:)	O	O
,	O	O

Now	O	O
that	O	O
the	O	O
JQM	O	B-Library
1.1	O	B-Version
RC	O	I-Version
is	O	O
out	O	O
,	O	O
I	O	O
would	O	O
like	O	O
to	O	O
migrate	O	O
my	O	O
1.0	O	B-Version
mobile	O	O
app	O	O
to	O	O
this	O	O
1.1	O	B-Version
version	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
that	O	O
?	O	O

Do	O	O
I	O	O
have	O	O
to	O	O
replace	O	O
every	O	O
file	O	O
or	O	O
just	O	O
some	O	O
specific	O	O
files	O	O
?	O	O

What	O	O
should	O	O
be	O	O
my	O	O
migration	O	O
path	O	O
?	O	O

Edit	O	O
:	O	O
I	O	O
plan	O	O
to	O	O
use	O	O
my	O	O
app	O	O
using	O	O
PhoneGap	O	B-Application
,	O	O
which	O	O
means	O	O
,	O	O
that	O	O
I	O	O
will	O	O
want	O	O
to	O	O
have	O	O
all	O	O
resources	O	O
locally	O	O
,	O	O
so	O	O
no	O	O
external	O	O
references	O	O
.	O	O

Adjust	O	O
your	O	O
jqm	O	B-Library
css	O	B-Language
and	O	O
js	O	B-Language
references	O	O
.	O	O

Also	O	O
,	O	O
you	O	O
'll	O	O
need	O	O
jquery	O	B-Library
1.7.1	O	B-Version

I	O	O
have	O	O
a	O	O
small	O	O
issue	O	O
but	O	O
I	O	O
have	O	O
been	O	O
battling	O	O
for	O	O
two	O	O
days	O	O
now	O	O
to	O	O
resolve	O	O
it	O	O
.	O	O

I	O	O
have	O	O
recently	O	O
recreated	O	O
a	O	O
new	O	O
category	O	O
(	O	O
www.site.co.za/mens-clothing-3	O	O
)	O	O
which	O	O
is	O	O
populated	O	O
and	O	O
working	O	O
.	O	O

I	O	O
want	O	O
to	O	O
redirect	O	O
(	O	O
www.site.co.za/mens-clothing	O	O
)	O	O
to	O	O
the	O	O
new	O	O
category	O	O
(	O	O
www.site.co.za/mens-clothing-3	O	O
)	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
implementing	O	O
the	O	O
following	O	O
in	O	O
the	O	O
htacess	O	B-File_Type
file	O	O
,	O	O
but	O	O
nothing	O	O
happens	O	O
.	O	O

The	O	O
old	O	O
category	O	O
links	O	O
(	O	O
mens-clothing	O	O
)	O	O
goes	O	O
obviosuly	O	O
now	O	O
to	O	O
a	O	O
404	O	B-Error_Name
and	O	O
it	O	O
is	O	O
still	O	O
being	O	O
picked	O	O
up	O	O
by	O	O
Google	O	B-Website
(	O	O
main	O	O
concern	O	O
)	O	O
.	O	O

My	O	O
htaccess	O	B-File_Type
rule	O	O
looks	O	O
like	O	O
this	O	O
:	O	O

You	O	O
could	O	O
use	O	O
magento	O	B-Application
url	O	O
redirect	O	O
instead	O	O

http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/urlrewrite/index	O	O

:)	O	O

Can	O	O
i	O	O
achieve	O	O
a	O	O
many-to-many	O	O
relationship	O	O
without	O	O
using	O	O
a	O	O
junction	O	O
table	O	B-Data_Structure
with	O	O
the	O	O
below	O	O
2	O	O
tables	O	B-Data_Structure
?	O	O

Airports	O	B-Variable
table	O	B-Data_Structure
:	O	O

Aeroplanes	O	B-Variable
Table	O	B-Data_Structure

If	O	O
not	O	O
then	O	O
why	O	O
?	O	O

Well	O	O
,	O	O
yes	O	O
you	O	O
can	O	O
,	O	O
but	O	O
you	O	O
shouldn't	O	O
!	O	O

Without	O	O
an	O	O
extra	O	O
relation	O	O
,	O	O
you	O	O
would	O	O
need	O	O
a	O	O
copy	O	O
of	O	O
the	O	O
whole	O	O
entry	O	O
.	O	O

So	O	O
in	O	O
your	O	O
case	O	O
:	O	O
every	O	O
airport	O	B-Variable
has	O	O
zero	O	O
(	O	O
or	O	O
one	O	O
)	O	O
or	O	O
more	O	O
planes	O	B-Variable
.	O	O

And	O	O
every	O	O
plane	O	B-Variable
was	O	O
at	O	O
one	O	O
or	O	O
more	O	O
airports	O	B-Variable
.	O	O

When	O	O
saving	O	O
this	O	O
in	O	O
one	O	O
relation	O	O
your	O	O
data	O	O
will	O	O
look	O	O
like	O	O
this	O	O
:	O	O

(	O	O
and	O	O
similar	O	O
for	O	O
the	O	O
areoplanes	B-Code_Block	B-Variable
table	O	B-Data_Structure
)	O	O

This	O	O
would	O	O
cause	O	O
some	O	O
problems	O	O
in	O	O
your	O	O
DB	O	O
:	O	O

The	O	O
Primary	O	O
Key	O	O
for	O	O
airport	O	B-Variable
is	O	O
n't	O	O
unique	O	O
anymore	O	O

You	O	O
will	O	O
need	O	O
to	O	O
maintain	O	O
a	O	O
lot	O	O
of	O	O
copies	O	O
of	O	O
your	O	O
data	O	O
and	O	O
make	O	O
sure	O	O
that	O	O
you	O	O
update	O	O
all	O	O
of	O	O
them	O	O
!	O	O

So	O	O
the	O	O
better	O	O
table	O	B-Data_Structure
design	O	O
in	O	O
your	O	O
scenario	O	O
would	O	O
be	O	O

Where	O	O
in	O	O
airports_and_planes	B-Code_Block	B-Variable
:	O	O

both	O	O
fields	O	O
are	O	O
foreign	O	O
keys	O	O
to	O	O
their	O	O
repsective	O	O
tables	O	B-Data_Structure

both	O	O
fields	O	O
form	O	O
the	O	O
primary	O	O
key	O	O
together	O	O
!	O	O

We	O	O
're	O	O
hosting	O	O
the	O	O
script	O	O
in	O	O
out	O	O
app	O	O
.	O	O

On	O	O
exceptions/crashes	O	B-Class
,	O	O
we	O	O
'd	O	O
like	O	O
to	O	O
see	O	O
the	O	O
line	O	O
number	O	O
in	O	O
the	O	O
stacktrace	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
find	O	O
if	O	O
there	O	O
is	O	O
a	O	O
setting	O	O
to	O	O
include	O	O
debug	O	O
info	O	O
when	O	O
setting	O	O
up	O	O
the	O	O
CSScript	O	B-Application
compiler	O	I-Application
?	O	O

I	O	O
believe	O	O
you	O	O
mean	O	O
CS-Script	O	B-Application
(	O	O
if	O	O
not	O	O
please	O	O
correct	O	O
me	O	O
)	O	O
.	O	O

I	O	O
am	O	O
not	O	O
sure	O	O
how	O	O
you	O	O
are	O	O
calling	O	O
it	O	O
but	O	O
I	O	O
did	O	O
find	O	O
this	O	O
command	O	B-Application
line	O	I-Application
documentation	O	O
(	O	O
it	O	O
seems	O	O
that	O	O
the	O	O
position	O	O
in	O	O
their	O	O
help	O	O
file	O	O
is	O	O
not	O	O
reflected	O	O
in	O	O
their	O	O
URL	O	O
,	O	O
you	O	O
need	O	O
to	O	O
navigate	O	O
to	O	O
Overview	B-Code_Block	O
->	I-Code_Block	O
Command-line	I-Code_Block	O
interface	I-Code_Block	O
)	O	O
.	O	O

With	O	O
.net	O	B-Library
the	O	O
line	O	O
number	O	O
is	O	O
included	O	O
in	O	O
the	O	O
stack	O	O
trace	O	O
if	O	O
you	O	O
have	O	O
a	O	O
corresponding	O	O
.pdb	B-Code_Block	B-File_Type
file	O	O
and	O	O
the	O	O
line	O	O
number	O	O
will	O	O
also	O	O
be	O	O
correct	O	O
if	O	O
there	O	O
is	O	O
no	O	O
optimization	O	O
done	O	O
at	O	O
compile	O	O
time	O	O
(	O	O
this	O	O
should	O	O
not	O	O
be	O	O
a	O	O
problem	O	O
for	O	O
CS-Script	O	B-Application
)	O	O
.	O	O

In	O	O
the	O	O
documentation	O	O
for	O	O
cscs.exe	B-Code_Block	B-File_Name
there	O	O
is	O	O
a	O	O
switch	O	O
/dbg	B-Code_Block	B-Code_Block
or	I-Code_Block	O
/d	I-Code_Block	B-Code_Block
.	O	O

When	O	O
you	O	O
include	O	O
this	O	O
switch	O	O
the	O	O
corresponding	O	O
.pdb	B-Code_Block	B-File_Type
file	O	O
will	O	O
be	O	O
included	O	O
with	O	O
your	O	O
.exe	B-Code_Block	B-File_Type
(	O	O
or	O	O
with	O	O
the	O	O
.dll	O	B-File_Type
if	O	O
building	O	O
a	O	O
library	O	O
)	O	O
.	O	O

Once	O	O
you	O	O
have	O	O
both	O	O
files	O	O
line	O	O
numbers	O	O
will	O	O
now	O	O
be	O	O
available	O	O
in	O	O
the	O	O
stack	O	O
trace	O	O
of	O	O
any	O	O
given	O	O
exception	O	B-Class
that	O	O
hits	O	O
an	O	O
operation	O	O
in	O	O
that	O	O
assembly	O	O
.	O	O

Assume	O	O
we	O	O
have	O	O
a	O	O
file	O	O
called	O	O
Test.cs	B-Code_Block	B-File_Name
with	O	O
some	O	O
test	O	O
code	O	O
:	O	O

This	O	O
will	O	O
output	O	O
2	O	O
files	O	O
:	O	O

Test.exe	O	B-File_Name

Test.pdb	O	B-File_Name

Here	O	O
is	O	O
the	O	O
sample	O	O
content	O	O
of	O	O
Test.cs	B-Code_Block	B-File_Name
,	O	O
when	O	O
you	O	O
execute	O	O
it	O	O
you	O	O
will	O	O
see	O	O
the	O	O
line	O	O
numbers	O	O
.	O	O

For	O	O
Executing	O	O
inline	O	O

This	O	O
should	O	O
also	O	O
be	O	O
possible	O	O
with	O	O
the	O	O
DebugBuild	B-Code_Block	B-Variable
flag	O	O
in	O	O
the	O	O
EvaluatorConfig	B-Code_Block	B-Class
section	O	O
set	O	O
to	O	O
true	O	B-Value
.	O	O

In	O	O
my	O	O
example	O	O
below	O	O
you	O	O
will	O	O
get	O	O
everything	O	O
expected	O	O
BUt	O	O
when	O	O
using	O	O
LoadCode	B-Code_Block	B-Function
it	O	O
uses	O	O
a	O	O
temporary	O	O
file	O	O
name	O	O
so	O	O
the	O	O
file	O	O
name	O	O
looks	O	O
funny	O	O
although	O	O
the	O	O
line	O	O
number	O	O
is	O	O
correct	O	O
.	O	O

There	O	O
are	O	O
also	O	O
LoadXXX	O	B-Code_Block
commands	O	O
for	O	O
loading	O	O
one	O	O
or	O	O
more	O	O
files	O	O
which	O	O
will	O	O
give	O	O
a	O	O
prettier	O	O
stack	O	O
trace	O	O
as	O	O
the	O	O
file	O	O
name	O	O
is	O	O
now	O	O
known	O	O
.	O	O

I	O	O
did	O	O
test	O	O
this	O	O
all	O	O
to	O	O
ensure	O	O
that	O	O
it	O	O
does	O	O
work	O	O
.	O	O

If	O	O
you	O	O
have	O	O
problems	O	O
just	O	O
let	O	O
me	O	O
know	O	O
.	O	O

I	O	O
have	O	O
cells	O	O
that	O	O
have	O	O
an	O	O
if	O	B-Code_Block
statement	O	O
linked	O	O
to	O	O
a	O	O
different	O	O
sheet	O	O
using	O	O
importrange	O	O
.	O	O

However	O	O
,	O	O
when	O	O
the	O	O
status	O	O
changes	O	O
to	O	O
"	O	B-Value
YES	O	I-Value
"	O	I-Value
on	O	O
my	O	O
sheet	O	O
,	O	O
the	O	O
onedit	O	B-Function
script	O	O
which	O	O
logs	O	O
time	O	O
and	O	O
date	O	O
does	O	O
not	O	O
run	O	O
.	O	O

However	O	O
when	O	O
I	O	O
manually	O	O
type	O	O
"	O	B-Value
YES	O	I-Value
"	O	I-Value
the	O	O
script	O	O
successfully	O	O
logs	O	O
time	O	O
and	O	O
date	O	O
.	O	O

Is	O	O
there	O	O
a	O	O
workaround	O	O
or	O	O
an	O	O
alternative	O	O
to	O	O
onEdit	O	B-Function
to	O	O
make	O	O
this	O	O
work	O	O
?	O	O

OnEdit	B-Code_Block	B-Function
trigger	O	O
does	O	O
n't	O	O
care	O	O
if	O	O
value	O	O
,	O	O
returned	O	O
by	O	O
formula	O	O
,	O	O
changes	O	O
.	O	O

It	O	O
will	O	O
react	O	O
only	O	O
if	O	O
different	O	O
value	O	O
or	O	O
formula	O	O
will	O	O
be	O	O
entered	O	O
.	O	O

You	O	O
may	O	O
use	O	O
Time-driven	O	O
triggers	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
content	O	O
below	O	O
in	O	O
a	O	O
file	O	O
:	O	O

I	O	O
have	O	O
use	O	O
vim	O	B-Code_Block
/text	O	I-Code_Block
\n[\t].\n[\t]	O	I-Code_Block
and	O	O
the	O	O
"	O	O
text	O	B-Value
"	O	O
word	O	O
and	O	O
the	O	O
left	O	O
parentheses	O	O
was	O	O
highlighted	O	O
.	O	O

But	O	O
when	O	O
I	O	O
use	O	O
egrep	O	B-Code_Block
'	O	I-Code_Block
text	O	I-Code_Block
\n[\t].\n[\t]	O	I-Code_Block
'	O	B-Code_Block
there	O	O
is	O	O
NO	O	O
output	O	O
.	O	O

Just	O	O
wondering	O	O
how	O	O
can	O	O
I	O	O
grep	O	B-Code_Block
until	O	O
the	O	O
right	O	B-Value
parentheses	O	I-Value
.	O	O

Thank	O	O
you	O	O
.	O	O

Instead	O	O
of	O	O
egrep	B-Code_Block	B-Code_Block
you	O	O
can	O	O
use	O	O
sed	B-Code_Block	B-Code_Block
.	O	O

sed	B-Code_Block	B-Code_Block
-n	I-Code_Block	I-Code_Block
'	I-Code_Block	I-Code_Block
/	I-Code_Block	I-Code_Block
^	I-Code_Block	I-Code_Block
text/	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
/	I-Code_Block	I-Code_Block
^($/p	I-Code_Block	I-Code_Block
'	B-Code_Block	B-Code_Block
yourfile	I-Code_Block	I-Code_Block
will	O	O
print	O	O
all	O	O
lines	O	O
starting	O	O
from	O	O
where	O	O
text	B-Code_Block	B-Value
is	O	O
found	O	O
until	O	O
the	O	O
(	B-Code_Block	B-Value
is	O	O
found	O	O
at	O	O
the	O	O
beginning	O	O
of	O	O
a	O	O
line	O	O
.	O	O

If	O	O
you	O	O
know	O	O
how	O	O
long	O	O
the	O	O
sample	O	O
is	O	O
going	O	O
to	O	O
be	O	O
,	O	O
you	O	O
can	O	O
use	O	O
the	O	O
After	O	O
flag	O	O
,	O	O
using	O	O
-AN	B-Code_Block	B-Code_Block
where	O	O
N	O	B-Variable
is	O	O
the	O	O
number	O	O
of	O	O
lines	O	O
after	O	O
the	O	O
match	O	O
you	O	O
want	O	O
to	O	O
grab	O	O
.	O	O

is	O	O
there	O	O
any	O	O
free	O	O
tool	O	O
to	O	O
read	O	O
excel	O	B-Application
without	O	O
using	O	O
Excel	O	B-Application
Interop	O	I-Application
.	O	O

I	O	O
am	O	O
creating	O	O
a	O	O
website	O	O
using	O	O
Visual	O	B-Application
studio	O	I-Application
2010	O	B-Version
,	O	O
and	O	O
I	O	O
am	O	O
using	O	O
c#	O	B-Language
and	O	O
asp	O	B-Library
.	O	O

I	O	O
cant	O	O
install	O	O
any	O	O
software	O	O
on	O	O
server	O	B-Application
so	O	O
I	O	O
want	O	O
to	O	O
use	O	O
some	O	O
third	O	O
party	O	O
free	O	O
tool	O	O
.	O	O

I	O	O
read	O	O
the	O	O
file	O	O
and	O	O
have	O	O
to	O	O
use	O	O
the	O	O
contents	O	O
to	O	O
update	O	O
the	O	O
db	O	O
,	O	O
.	O	O

I	O	O
want	O	O
to	O	O
read	O	O
Both	O	O
XLSX	O	B-File_Type
and	O	O
XLS	O	B-File_Type
Need	O	O
some	O	O
suggestions	O	O
for	O	O
that	O	O
.	O	O

Thanks	O	O

There	O	O
are	O	O
many	O	O
options	O	O
to	O	O
read/edit/create	O	O
Excel	O	B-Application
files	O	O
without	O	O
Interop	O	B-Application
:	O	O

MS	O	B-Organization
provides	O	O
the	O	O
free	O	O
OpenXML	O	B-Application
SDK	O	I-Application
V	O	B-Version
2.0	O	I-Version
-	O	O
see	O	O
http://msdn.microsoft.com/en-us/library/bb448854%28office.14%29.aspx	O	O
(	O	O
XLSX	O	B-File_Type
only	O	O
)	O	O

This	O	O
can	O	O
read+write	O	O
MS	O	B-Application
Office	O	I-Application
files	O	O
(	O	O
including	O	O
Excel	O	B-Application
)	O	O
.	O	O

Another	O	O
free	O	O
option	O	O
see	O	O
http://www.codeproject.com/KB/office/OpenXML.aspx	O	O
(	O	O
XLSX	O	B-File_Type
only	O	O
)	O	O

IF	O	O
you	O	O
need	O	O
more	O	O
like	O	O
handling	O	O
older	O	O
Excel	O	B-Application
versions	O	O
(	O	O
like	O	O
XLS	O	B-File_Type
,	O	O
not	O	O
only	O	O
XLSX	O	B-File_Type
)	O	O
,	O	O
rendering	O	O
,	O	O
creating	O	O
PDFs	O	B-File_Type
,	O	O
formulas	O	O
etc	O	O
.	O	O

then	O	O
there	O	O
are	O	O
different	O	O
free	O	O
and	O	O
commercial	O	O
libraries	O	O
like	O	O
ClosedXML	O	B-Library
(	O	O
free	O	O
,	O	O
XLSX	O	B-File_Type
only	O	O
)	O	O
,	O	O
EPPlus	O	B-Library
(	O	O
free	O	O
,	O	O
XLSX	O	B-File_Type
only	O	O
)	O	O
,	O	O
Aspose.Cells	O	B-Library
,	O	O
SpreadsheetGear	O	B-Library
,	O	O
LibXL	O	B-Library
and	O	O
Flexcel	O	B-Library
etc	O	O
.	O	O

BTW	O	O
:	O	O
Interop	O	B-Application
is	O	O
not	O	O
supported	O	O
in	O	O
sever-scenarios	O	O
by	O	O
MS	O	B-Organization
.	O	O

I	O	O
used	O	O
ExcelDataReader	O	B-Library
on	O	O
a	O	O
recent	O	O
project	O	O
,	O	O
worked	O	O
great	O	O
for	O	O
reading	O	O
the	O	O
XLS/XLSX	O	B-File_Type
files	O	O
.	O	O

Excel	O	B-Library
Data	O	I-Library
Reader	O	I-Library

Can	O	O
someone	O	O
explain	O	O
me	O	O
why	O	O
this	O	O
is	O	O
happening	O	O
?	O	O

Silverlight	O	B-Application
4	O	B-Version
application	O	O
using	O	O
WCF	O	B-Application
Ria	O	I-Application
Services	O	I-Application

SL	O	B-Application
app	O	O
calls	O	O
StartLongOperation	B-Code_Block	B-Function
[	B-Code_Block	B-Code_Block
Invoke	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
operation	O	O
.	O	O

Due	O	O
to	O	O
synchronization	O	O
issues	O	O
with	O	O
external	O	O
components	O	O
there	O	O
is	O	O
a	O	O
Thread.Sleep	B-Code_Block	B-Function
(	B-Code_Block	B-Function
30	I-Code_Block	I-Function
*	I-Code_Block	I-Function
1000	I-Code_Block	I-Function
)	I-Code_Block	I-Function
in	O	O
the	O	O
server-side	O	B-Application
code	O	O
.	O	O

SL	O	B-Application
app	O	O
calls	O	O
GetStatus	B-Code_Block	B-Function
(	O	O
standard	O	O
query	O	O
)	O	O
operation	O	O
.	O	O

These	O	O
calls	O	O
appear	O	O
to	O	O
be	O	O
blocked	O	O
server-side	O	B-Application
and	O	O
are	O	O
waiting	O	O
for	O	O
the	O	O
StartLongOperation	B-Code_Block	B-Function
to	O	O
complete	O	O
.	O	O

Why	O	O
?	O	O
?	O	O

I	O	O
was	O	O
assuming	O	O
that	O	O
serverside	O	B-Application
,	O	O
the	O	O
StartLongOperation	B-Code_Block	B-Function
runs	O	O
an	O	O
a	O	O
worker	O	O
thread	O	O
and	O	O
each	O	O
call	O	O
to	O	O
GetStatus	B-Code_Block	B-Function
would	O	O
run	O	O
on	O	O
a	O	O
seperate	O	O
worker	O	O
thread	O	O
.	O	O

Client-side	O	B-Application
the	O	O
calls	O	O
are	O	O
async	O	O
so	O	O
SL	O	B-Application
fires	O	O
off	O	O
the	O	O
StartLongOperation	B-Code_Block	B-Function
and	O	O
then	O	O
continues	O	O
to	O	O
poll	O	O
the	O	O
GetStatus	B-Code_Block	B-Function
.	O	O

But	O	O
the	O	O
GetStatusCompleted	B-Code_Block	B-Function
does	O	O
n't	O	O
get	O	O
fired	O	O
until	O	O
the	O	O
StartLongOperation	B-Code_Block	B-Function
has	O	O
completed	O	O
.	O	O

Since	O	O
all	O	O
Silverlight	O	B-Application
network	O	O
communication	O	O
happens	O	O
on	O	O
the	O	O
UI	O	O
thread	O	O
,	O	O
only	O	O
one	O	O
WCF	O	B-Library
call	O	O
can	O	O
happen	O	O
at	O	O
a	O	O
time	O	O
.	O	O

Meaning	O	O
your	O	O
StartLongOperation	O	B-Function
has	O	O
to	O	O
complete	O	O
,	O	O
and	O	O
then	O	O
the	O	O
client	O	B-Application
will	O	O
start	O	O
the	O	O
GetStatus	O	B-Function
call	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
test	O	O
this	O	O
behavior	O	O
,	O	O
fire	O	O
up	O	O
Fiddler	O	B-Application
.	O	O

You	O	O
will	O	O
find	O	O
that	O	O
Silverlight	O	B-Application
will	O	O
not	O	O
send	O	O
an	O	O
HTTP	O	O
request	O	O
to	O	O
the	O	O
GetStatus	O	B-Function
method	O	O
until	O	O
it	O	O
first	O	O
gets	O	O
a	O	O
StartLongOperation	O	B-Function
response	O	O
from	O	O
the	O	O
server	O	B-Application
.	O	O

So	O	O
the	O	O
problem	O	O
is	O	O
n't	O	O
server-side	O	B-Application
.	O	O

It	O	O
's	O	O
a	O	O
limitation	O	O
of	O	O
Silverlight	O	B-Application
.	O	O

I	O	O
want	O	O
to	O	O
retrieve	O	O
two	O	O
columns	O	B-Data_Structure
from	O	O
database	O	O
namely	O	O
system_name	B-Code_Block	B-Variable
and	O	O
arrival_time	B-Code_Block	B-Variable
and	O	O
display	O	O
these	O	O
in	O	O
tabular	O	O
format	O	O
.	O	O

Now	O	O
along	O	O
with	O	O
these	O	O
two	O	O
columns	O	B-Data_Structure
,	O	O
I	O	O
want	O	O
to	O	O
display	O	O
a	O	O
third	O	O
column	O	B-Data_Structure
which	O	O
will	O	O
represent	O	O
the	O	O
number	O	O
of	O	O
times	O	O
system_name	B-Code_Block	B-Variable
appears	O	O
in	O	O
the	O	O
table	O	B-Data_Structure
.	O	O

I	O	O
'm	O	O
using	O	O
sql	O	B-Application
server	O	I-Application
2012	O	B-Version
and	O	O
for	O	O
display	O	O
I	O	O
use	O	O
JSP	O	B-Library
AND	O	O
JSTL	O	B-Library
.	O	O

I	O	O
tried	O	O
to	O	O
write	O	O
code	O	O
for	O	O
displaying	O	O
two	O	O
columns	O	B-Data_Structure
,	O	O
but	O	O
the	O	O
output	O	O
shows	O	O
only	O	O
the	O	O
last	O	O
data	O	O
entries	O	O
.	O	O

The	O	O
java	O	B-Language
code	O	O
is	O	O
:	O	O

Jsp	O	B-Library
code	O	O
is	O	O
:	O	O

I	O	O
have	O	O
an	O	O
event	O	B-Class
listener	O	I-Class
on	O	O
a	O	O
button	O	B-User_Interface_Element
.	O	O

The	O	O
button	O	B-User_Interface_Element
is	O	O
inside	O	O
div	O	B-HTML_XML_Tag
div1	B-Code_Block	I-HTML_XML_Tag
.	O	O

When	O	O
I	O	O
click	O	O
on	O	O
another	O	O
button	O	B-User_Interface_Element
,	O	O
I	O	O
make	O	O
the	O	O
div1	B-Code_Block	B-HTML_XML_Tag
position:absolute	I-Code_Block	I-HTML_XML_Tag
.	O	O

However	O	O
,	O	O
the	O	O
event	O	B-Class
listener	O	I-Class
on	O	O
the	O	O
button	O	B-User_Interface_Element
disappears	O	O
.	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
nothing	O	O
happens	O	O
.	O	O

Does	O	O
anyone	O	O
know	O	O
why	O	O
this	O	O
is	O	O
happening	O	O
or	O	O
how	O	O
I	O	O
can	O	O
debug	O	O
it	O	O
?	O	O

I	O	O
have	O	O
a	O	O
directory	O	O
on	O	O
network	O	O
drive	O	O
with	O	O
million	O	O
of	O	O
files	O	O
.	O	O

If	O	O
I	O	O
try	O	O
to	O	O
read	O	O
it	O	O
with	O	O

it	O	O
will	O	O
take	O	O
a	O	O
lot	O	O
of	O	O
time	O	O
until	O	O
resulting	O	O
array	O	B-Data_Structure
will	O	O
be	O	O
filled	O	O
with	O	O
files	O	B-Class
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
receive	O	O
files	O	B-Class
by	O	O
one	O	O
and	O	O
printout	O	O
a	O	O
progress	O	O
.	O	O

How	O	O
can	O	O
I	O	O
do	O	O
this	O	O
in	O	O
Java	O	B-Language
?	O	O

You	O	O
might	O	O
try	O	O
with	O	O
DirectoryStream	B-Code_Block	B-Class
:	O	O

You	O	O
can	O	O
also	O	O
make	O	O
the	O	O
DirectoryStream	B-Code_Block	B-Class
filter	O	O
files	O	B-Class
for	O	O
you	O	O
if	O	O
you	O	O
need	O	O
to	O	O
:	O	O
all	O	O
you	O	O
need	O	O
to	O	O
do	O	O
is	O	O
add	O	O
a	O	O
parameter	O	O
to	O	O
the	O	O
Files.newDirectoryStream	B-Code_Block	B-Function
call	O	O
:	O	O

You	O	O
can	O	O
use	O	O
the	O	O
NIO.2	O	B-Library
API	O	O
:	O	O

How	O	O
can	O	O
I	O	O
iterate	O	O
through	O	O
each	O	O
of	O	O
these	O	O
hidden	O	O
fields	O	O
and	O	O
change	O	O
each	O	O
one	O	O
's	O	O
value	O	O
with	O	O
JQuery	O	B-Library
?	O	O

You	O	O
can	O	O
do	O	O
it	O	O
by	O	O
combining	O	O
:hidden	B-Code_Block	B-Code_Block
selector	O	O
and	O	O
attribute	B-Code_Block	O
starts	I-Code_Block	O
with	I-Code_Block	O
selector	O	O
,	O	O

DEMO	O	O

To	O	O
make	O	O
sure	O	O
that	O	O
the	O	O
ID	O	O
not	O	O
change	O	O
use	O	O
also	O	O
the	O	O
ClientIDMode	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
Static	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
on	O	O
each	O	O
control	O	O
.	O	O

The	O	O
ID	O	O
can	O	O
change	O	O
if	O	O
you	O	O
place	O	O
that	O	O
code	O	O
on	O	O
any	O	O
page	O	O
that	O	O
use	O	O
any	O	O
master	O	O
page	O	O
,	O	O
or	O	O
is	O	O
inside	O	O
any	O	O
custom	O	O
control	O	O
.	O	O

So	O	O
your	O	O
control	O	O
must	O	O
be	O	O
:	O	O

I	O	O
'm	O	O
facing	O	O
an	O	O
issue	O	O
installing	O	O
angular-cli	O	B-Application
locally	O	O
.	O	O

I	O	O
'm	O	O
on	O	O
Ubuntu	O	B-Operating_System
16.04.2	O	B-Version
LTS	O	I-Version
with	O	O
following	O	O
versions	O	O
of	O	O
node.js	O	B-Library
and	O	O
npm	O	B-Application
:	O	O

I	O	O
tried	O	O
to	O	O
install	O	O
angluar-cli	O	B-Application
using	O	O
the	O	O
following	O	O
command	O	O
:	O	O

this	O	O
worked	O	O
fine	O	O
and	O	O
completed	O	O
with	O	O
following	O	O
warnings	O	O
:	O	O

Now	O	O
when	O	O
I	O	O
'm	O	O
trying	O	O
'	O	O
ng	O	B-Code_Block
'	O	O
command	O	O
:	O	O

npm	O	B-Code_Block
install	O	I-Code_Block
@angular	O	I-Code_Block
/cli	O	I-Code_Block
@latest	O	I-Code_Block

will	O	O
not	O	O
install	O	O
angular-cli	O	B-Application
globally	O	O
but	O	O
it	O	O
works	O	O
for	O	O
you	O	O
user	O	O
.	O	O

I	O	O
resolve	O	O
this	O	O
problem	O	O
by	O	O
learning	O	O
this	O	O
article	O	O
:	O	O

Fixing	O	O
npm	O	B-Application
permissions	O	O

I	O	O
'm	O	O
creating	O	O
a	O	O
word	O	O
game	O	O
in	O	O
Java	O	B-Language
for	O	O
practice	O	O
.	O	O

I	O	O
've	O	O
got	O	O
a	O	O
txt	O	B-File_Type
file	O	O
containing	O	O
all	O	O
the	O	O
four-letter	O	O
words	O	O
in	O	O
the	O	O
English	O	O
language	O	O
.	O	O

They	O	O
are	O	O
length-delimited	O	O
,	O	O
i.e	O	O
.	O	O
every	O	O
4th	O	O
character	O	O
starting	O	O
from	O	O
the	O	O
1st	O	O
is	O	O
the	O	O
first	O	O
letter	O	O
of	O	O
a	O	O
word	O	O
.	O	O

What	O	O
is	O	O
a	O	O
good	O	O
way	O	O
to	O	O
go	O	O
about	O	O
checking	O	O
to	O	O
see	O	O
if	O	O
a	O	O
word	O	O
exists	O	O
in	O	O
the	O	O
dictionary	O	B-Data_Structure
?	O	O

You	O	O
can	O	O
read	O	O
the	O	O
file	O	O
into	O	O
a	O	O
TreeSet	B-Code_Block	B-Class
then	O	O
use	O	O
the	O	O
contains	B-Code_Block	B-Function
method	O	O
.	O	O

For	O	O
a	O	O
Set	B-Code_Block	B-Data_Structure
contains	O	O
runs	O	O
in	O	O
constant	O	O
time	O	O
.	O	O

I	O	O
have	O	O
added	O	O
a	O	O
.toUpperCase()	B-Code_Block	B-Function
conversion	O	O
so	O	O
that	O	O
there	O	O
are	O	O
no	O	O
case	O	O
related	O	O
issues	O	O
,	O	O
this	O	O
can	O	O
easily	O	O
be	O	O
a	O	O
.toLowerCase()	B-Code_Block	B-Function
also	O	O
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
sum	O	O
minutes	O	O
up	O	O
in	O	O
Excel	O	B-Application
,	O	O
and	O	O
show	O	O
the	O	O
resulting	O	O
hours	O	O
.	O	O

Currently	O	O
if	O	O
for	O	O
example	O	O
,	O	O
I	O	O
sum	O	O
0.45	O	B-Value
+	O	I-Value
0.45	O	I-Value
,	O	O
I	O	O
get	O	O
90	O	B-Value
.	O	O

I	O	O
should	O	O
get	O	O
1.30	O	B-Value
.	O	O

Is	O	O
this	O	O
possible	O	O
?	O	O

You	O	O
need	O	O
TimeSerial	O	B-Function
:	O	O

As	O	O
i	O	O
mentioned	O	O
on	O	O
the	O	O
question	O	O
title	O	O
,	O	O
I	O	O
want	O	O
to	O	O
know	O	O
the	O	O
best	O	O
approach	O	O
to	O	O
get	O	O
this	O	O
to	O	O
work	O	O
and	O	O
i	O	O
'll	O	O
need	O	O
and	O	O
example	O	O
(	O	O
very	O	O
simple	O	O
one	O	O
as	O	O
the	O	O
follow	O	O
:	O	O
)	O	O

Let	O	O
's	O	O
say	O	O
i	O	O
have	O	O
an	O	O
API	O	B-Library
which	O	O
has	O	O
1	O	O
controller	O	O
and	O	O
1	O	O
action	O	O
for	O	O
example	O	O
simplicity	O	O

and	O	O
inside	O	O
the	O	O
index	O	O
action	O	O
i	O	O
have	O	O

Then	O	O
i	O	O
have	O	O
another	O	O
rails	O	B-Library
app	O	O
which	O	O
will	O	O
work	O	O
for	O	O
front-end	O	O
rendering	O	O

How	O	O
can	O	O
i	O	O
pass	O	O
this	O	O
@date	O	O
as	O	O
JSON	O	B-File_Type
from	O	O
the	O	O
API	O	B-Library
to	O	O
the	O	O
other	O	O
app	O	O
to	O	O
render	O	O
it	O	O
?	O	O

Should	O	O
i	O	O
have	O	O
same	O	O
controller	O	O
on	O	O
the	O	O
other	O	O
app	O	O
?	O	O

How	O	O
can	O	O
i	O	O
connect	O	O
and	O	O
send	O	O
http	O	O
request	O	B-Function
and	O	O
receive	O	O
response	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O

For	O	O
such	O	O
a	O	O
simple	O	O
example	O	O
,	O	O
you	O	O
can	O	O
do	O	O
something	O	O
as	O	O
simple	O	O
as	O	O
:	O	O

However	O	O
,	O	O
you	O	O
're	O	O
most	O	O
likely	O	O
going	O	O
to	O	O
want	O	O
to	O	O
deal	O	O
with	O	O
more	O	O
complicated	O	O
JSON	O	B-File_Type
responses	O	O
,	O	O
so	O	O
before	O	O
long	O	O
you	O	O
'll	O	O
probably	O	O
want	O	O
to	O	O
use	O	O
something	O	O
like	O	O
the	O	O
Jbuilder	O	B-Application
gem	O	O
or	O	O
ActiveModel	O	B-Class
Serializers	O	I-Class
(	O	O
my	O	O
preferred	O	O
approach	O	O
)	O	O
.	O	O

On	O	O
the	O	O
other	O	O
end	O	O
,	O	O
your	O	O
front-end	O	O
will	O	O
need	O	O
to	O	O
make	O	O
an	O	O
HTTP	O	B-Function
GET	O	I-Function
request	O	B-Variable
.	O	O

Lots	O	O
of	O	O
ways	O	O
(	O	O
and	O	O
gems	O	O
)	O	O
to	O	O
do	O	O
this	O	O
,	O	O
but	O	O
one	O	O
common	O	O
approach	O	O
is	O	O
just	O	O
to	O	O
use	O	O
the	O	O
built	O	O
in	O	O
Net::HTTP	B-Code_Block	B-Class
class	O	O
.	O	O

In	O	O
your	O	O
situation	O	O
,	O	O
a	O	O
better	O	O
approach	O	O
might	O	O
be	O	O
to	O	O
use	O	O
the	O	O
Active	O	B-Application
Resource	O	I-Application
gem	O	O
.	O	O

This	O	O
gem	O	O
allows	O	O
you	O	O
to	O	O
create	O	O
models	O	O
that	O	O
are	O	O
backed	O	O
by	O	O
a	O	O
REST	O	B-Library
API	O	I-Library
rather	O	O
than	O	O
a	O	O
database	O	O
.	O	O

For	O	O
example	O	O
,	O	O
if	O	O
your	O	O
API	O	B-Library
app	O	O
provides	O	O
basic	O	O
Create-Read-Update-Destroy	O	O
actions	O	O
for	O	O
a	O	O
particular	O	O
model	O	O
(	O	O
let	O	O
's	O	O
call	O	O
it	O	O
Widget	B-Code_Block	B-Class
)	O	O
at	O	O
the	O	O
following	O	O
URLs	O	O
:	O	O

then	O	O
in	O	O
your	O	O
front-end	O	O
app	O	O
you	O	O
could	O	O
declare	O	O
an	O	O
Active	O	B-Application
Resource	O	I-Application
like	O	O
this	O	O
:	O	O

which	O	O
will	O	O
auto-magically	O	O
access	O	O
all	O	O
of	O	O
those	O	O
methods	O	O
in	O	O
your	O	O
API	O	B-Library
,	O	O
and	O	O
behave	O	O
much	O	O
like	O	O
a	O	O
regular	O	O
Active	O	B-Application
Record	O	I-Application
model	O	O
.	O	O

That	O	O
way	O	O
,	O	O
you	O	O
basically	O	O
design	O	O
your	O	O
front-end	O	O
app	O	O
like	O	O
a	O	O
"	O	O
normal	O	O
"	O	O
rails	O	B-Library
app	O	O
,	O	O
but	O	O
using	O	O
ActiveResource-based	O	O
models	O	O
in	O	O
place	O	O
of	O	O
ActiveRecord	O	B-Application
.	O	O

I	O	O
would	O	O
note	O	O
,	O	O
however	O	O
,	O	O
that	O	O
a	O	O
more	O	O
common	O	O
thing	O	O
to	O	O
do	O	O
these	O	O
days	O	O
would	O	O
be	O	O
to	O	O
build	O	O
your	O	O
API	O	O
in	O	O
Rails	O	B-Library
,	O	O
and	O	O
build	O	O
your	O	O
front-end	O	O
with	O	O
client-side	O	O
Javascript	O	B-Language
,	O	O
using	O	O
something	O	O
like	O	O
JQuery	O	B-Library
or	O	O
Angular	O	B-Library
to	O	O
make	O	O
requests	O	O
from	O	O
the	O	O
API	O	B-Library
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
what	O	O
you	O	O
're	O	O
gaining	O	O
by	O	O
splitting	O	O
API	O	O
and	O	O
front-end	O	O
,	O	O
where	O	O
both	O	O
of	O	O
them	O	O
are	O	O
Rails	O	B-Library
apps	O	O
-	O	O
unless	O	O
you	O	O
've	O	O
got	O	O
a	O	O
compelling	O	O
reason	O	O
,	O	O
I	O	O
'd	O	O
just	O	O
build	O	O
one	O	O
Rails	O	B-Library
app	O	O
that	O	O
handles	O	O
both	O	O
API	O	B-Library
and	O	O
front-end	O	O
,	O	O
or	O	O
build	O	O
a	O	O
Rails	O	B-Library
API	O	I-Library
+	O	O
Angular	O	B-Library
(	O	O
or	O	O
similar	O	O
)	O	O
front-end	O	O
.	O	O

I	O	O
am	O	O
able	O	O
to	O	O
set	O	O
up	O	O
AWS	O	B-Application
WorkMail	O	I-Application
to	O	O
receive	O	O
and	O	O
send	O	O
email	O	O
using	O	O
custom	O	O
domain	O	O
e.g	O	O
.	O	O
john@mycompany.com	B-Code_Block	B-Value

Now	O	O
I	O	O
'd	O	O
like	O	O
to	O	O
allow	O	O
our	O	O
users	O	O
to	O	O
login	O	O
and	O	O
access	O	O
emails	O	O
at	O	O
https://mail.mycompany.com	B-Code_Block	O
(	O	O
instead	O	O
of	O	O
the	O	O
AWS	O	B-Website
provided	O	O
access	O	O
url	O	O
https://mycompany.awsapps.com	B-Code_Block	O
)	O	O
.	O	O

The	O	O
document	O	O
I	O	O
can	O	O
find	O	O
seems	O	O
only	O	O
handle	O	O
my	O	O
first	O	O
case	O	O
(	O	O
which	O	O
is	O	O
already	O	O
done	O	O
)	O	O
.	O	O

Thanks	O	O

Create	O	O
a	O	O
sub-domain	O	O
"	O	O
mail.mycompany.com	O	B-Value
"	O	B-Value
and	O	O
redirect	O	O
it	O	O
to	O	O
"	O	O
mycompany.awsapps.com	O	B-Value
"	O	O
.	O	O

I	O	O
resolved	O	O
this	O	O
by	O	O
using	O	O
the	O	O
built-in	O	O
CloudFront	O	B-Application
interface	O	O
.	O	O

I	O	O
admit	O	O
the	O	O
documentation	O	O
on	O	O
this	O	O
is	O	O
pretty	O	O
poor	O	O
,	O	O
but	O	O
the	O	O
aim	O	O
behind	O	O
it	O	O
is	O	O
to	O	O
get	O	O
people	O	O
to	O	O
pay	O	O
for	O	O
this	O	O
redirection	O	O
.	O	O

To	O	O
have	O	O
your	O	O
mywebmail.mydomain.com	O	B-Value
mapped	O	O
into	O	O
myaws.awsapps.com/workmail	O	B-Value
then	O	O
please	O	O
follow	O	O
the	O	O
steps	O	O
below	O	O
:	O	O

1)	O	O
You	O	O
might	O	O
have	O	O
done	O	O
this	O	O
step	O	O
already	O	O
:	O	O
On	O	O
your	O	O
DNS	O	O
server	O	O
(	O	O
where	O	O
that	O	O
is	O	O
)	O	O
,	O	O
create	O	O
a	O	O
CNAME	O	O
to	O	O
map	O	B-Value
mywebmail.mydomain.com	O	I-Value
into	O	O
myaws.awsapps.com	O	B-Value

2)	O	O
Login	O	O
into	O	O
your	O	O
CloudFront	O	B-Application
interface	O	O
https://console.aws.amazon.com/cloudfront/	O	O

3)	O	O
Click	O	O
on	O	O
"	O	O
Create	O	O
Distribution	O	O
"	O	O

4)	O	O
On	O	O
the	O	O
Origin-Domain	O	O
put	O	O
myaws.awsapps.com	O	B-Value

5)	O	O
On	O	O
the	O	O
Origin-URI	O	O
put	O	O
/workmail	O	B-Value

6	O	O
)	O	O
Adjust	O	O
the	O	O
setting	O	O
to	O	O
what	O	O
you	O	O
like	O	O
such	O	O
as	O	O
redirecting	O	O
from	O	O
HTTP	O	O
into	O	O
HTTPS	O	O
or	O	O
use	O	O
as-is	O	O
etc	O	O
.	O	O

7	O	O
)	O	O
Scroll	O	O
down	O	O
to	O	O
the	O	O
CNAME	O	O
and	O	O
enter	O	O
the	O	O
aliases	O	O
you	O	O
need	O	O
,	O	O
for	O	O
this	O	O
example	O	O
you	O	O
need	O	O
to	O	O
put	O	O
in	O	O
mywebmail.mydomain.com	O	B-Value

8	O	O
)	O	O
Save	O	O

9	O	O
)	O	O
Notice	O	O
that	O	O
this	O	O
might	O	O
take	O	O
a	O	O
while	O	O
to	O	O
get	O	O
created	O	O
,	O	O
mine	O	O
took	O	O
about	O	O
30	O	O
minutes	O	O
to	O	O
complete	O	O
,	O	O
also	O	O
every	O	O
time	O	O
I	O	O
needed	O	O
to	O	O
edit	O	O
something	O	O
it	O	O
would	O	O
take	O	O
around	O	O
10-20	O	O
minutes	O	O
to	O	O
complete	O	O
.	O	O

10	O	O
)	O	O
Once	O	O
done	O	O
,	O	O
browse	O	O
your	O	O
mywebmail.mydomain.com	O	O
,	O	O
your	O	O
CNAME	O	O
on	O	O
your	O	O
original	O	O
DNS	O	O
(	O	O
step	O	O
1	O	O
above	O	O
)	O	O
should	O	O
ask	O	O
your	O	O
browser	O	B-Application
to	O	O
redirect	O	O
and	O	O
then	O	O
with	O	O
AWS	O	B-Application
CloundFront	O	I-Application
setting	O	O
it	O	O
would	O	O
add	O	O
the	O	O
URI	O	O
afterwards	O	O
,	O	O

1	O	O
1)	O	O
If	O	O
you	O	O
get	O	O
a	O	O
blank	O	O
page	O	B-User_Interface_Element
,	O	O
then	O	O
check	O	O
your	O	O
headers	O	O
,	O	O
in	O	O
particular	O	O
(	O	O
?	O	O
organization	O	O
=	O	O
YourDomainName	O	O
)	O	O
,	O	O
you	O	O
might	O	O
need	O	O
to	O	O
manually	O	O
add	O	O
it	O	O
there	O	O
from	O	O
the	O	O
behaviours	O	O
menu	O	B-User_Interface_Element
of	O	O
the	O	O
item	O	O
you	O	O
created	O	O
above	O	O
.	O	O

I	O	O
hope	O	O
this	O	O
helps	O	O

Kind	O	O
Regards	O	O

Heider	O	B-User_Name
Sati	O	I-User_Name

I	O	O
was	O	O
wondering	O	O
if	O	O
something	O	O
like	O	O
this	O	O
,	O	O
is	O	O
safe	O	O
in	O	O
Zend	O	B-Library
:	O	O

I	O	O
'm	O	O
not	O	O
checking	O	O
the	O	O
content	O	O
of	O	O
$postid	B-Code_Block	B-Variable
is	O	O
here	O	O
.	O	O

Zend	O	B-Library
does	O	O
this	O	O
automatically	O	O
when	O	O
you	O	O
make	O	O
queries	O	O
like	O	O
this	O	O
:	O	O

But	O	O
I	O	O
do	O	O
n't	O	O
like	O	O
this	O	O
way	O	O
of	O	O
working	O	O
,	O	O
just	O	O
writing	O	O
queries	O	O
is	O	O
much	O	O
faster	O	O
for	O	O
me	O	O
.	O	O

So	O	O
should	O	O
I	O	O
be	O	O
manually	O	O
escaping	O	O
or	O	O
is	O	O
this	O	O
done	O	O
for	O	O
me	O	O
?	O	O

And	O	O
what	O	O
are	O	O
the	O	O
easiest	O	O
ways	O	O
to	O	O
do	O	O
this	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
Zend_Db_Select	O	B-Class
you	O	O
can	O	O
do	O	O
:	O	O

Where	O	O
the	O	O
2nd	O	O
param	O	O
is	O	O
an	O	O
array	O	B-Data_Structure
of	O	O
values	O	O
to	O	O
be	O	O
dropped	O	O
into	O	O
the	O	O
placeholders	O	O
.	O	O

See	O	O
:	O	O
http://framework.zend.com/manual/en/zend.db.statement.html	O	O

Zend	O	B-Library
cannot	O	O
be	O	O
escaping	O	O
your	O	O
variable	O	O
because	O	O
it	O	O
never	O	O
sees	O	O
it	O	O
.	O	O

Your	O	O
variable	O	O
is	O	O
being	O	O
appended	O	O
to	O	O
a	O	O
string	O	B-Data_Type
,	O	O
and	O	O
the	O	O
$	O	B-Function
db->query	O	I-Function
method	O	O
gets	O	O
to	O	O
see	O	O
the	O	O
string	O	B-Data_Type
as	O	O
a	O	O
whole	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
think	O	O
that	O	O
the	O	O
query()	O	B-Function
method	O	O
does	O	O
any	O	O
sanitization	O	O
anyway	O	O
.	O	O

I	O	O
have	O	O
a	O	O
folder	O	O
that	O	O
contains	O	O
multiple	O	O
sub-directories	O	O

The	O	O
version	O	O
format	O	O
is	O	O
[	B-Code_Block	B-Code_Block
major	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
[	I-Code_Block	I-Code_Block
minor	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
.	I-Code_Block	I-Code_Block
[	I-Code_Block	I-Code_Block
update	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
[	B-Code_Block	B-Code_Block
phase	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
[	B-Code_Block	B-Code_Block
build	I-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
,	O	O
like	O	O
1.0.0d0	B-Code_Block	B-Value
.	O	O

And	O	O
valid	O	O
phases	O	O
are	O	O
d(ev)	O	B-Value
,	O	O
a(lpha)	O	B-Value
,	O	O
b(eta)	O	B-Value
,	O	O
f(inal)	O	B-Value
,	O	O
please	O	O
note	O	O
d	O	B-Value
<	O	O
a	O	B-Value
<	O	O
b	O	B-Value
<	O	O
f	O	B-Value
.	O	O

I	O	O
'd	O	O
like	O	O
to	O	O
get	O	O
the	O	O
latest	O	O
version	O	O
number	O	O
which	O	O
is	O	O
16.0.0a2	O	B-Version
using	O	O
batch	O	B-Language
script	O	I-Language
.	O	O

I	O	O
write	O	O
such	O	O
codes	O	O
,	O	O
but	O	O
does	O	O
n't	O	O
work	O	O
,	O	O
because	O	O
the	O	O
sub-directories	O	O
are	O	O
sorted	O	O
by	O	O
alphabetical	O	O
order	O	O
.	O	O

So	O	O
it	O	O
will	O	O
give	O	O
a	O	O
result	O	O
16.0.0d24	O	B-Version
.	O	O

The	O	O
following	O	O
script	O	O
does	O	O
what	O	O
you	O	O
want	O	O
:	O	O

The	O	O
basic	O	O
concept	O	O
is	O	O
to	O	O
adapt	O	O
the	O	O
version	O	O
numbers	O	O
so	O	O
that	O	O
(	O	O
alpha	O	O
-	O	O
)	O	O
numeric	O	O
sorting	O	O
provides	O	O
the	O	O
same	O	O
result	O	O
as	O	O
alphabetic	O	O
sorting	O	O
.	O	O

This	O	O
can	O	O
be	O	O
achieved	O	O
by	O	O
adding	O	O
a	O	O
great	O	O
number	O	O
to	O	O
every	O	O
numeric	O	O
part	O	O
of	O	O
the	O	O
version	O	O
numbers	O	O
so	O	O
that	O	O
each	O	O
one	O	O
always	O	O
has	O	O
got	O	O
the	O	O
same	O	O
number	O	O
of	O	O
digits	O	O
.	O	O

In	O	O
addition	O	O
,	O	O
since	O	O
the	O	O
priority	O	O
of	O	O
the	O	O
phase	O	O
figure	O	O
is	O	O
not	O	O
of	O	O
alphabetical	O	O
order	O	O
,	O	O
adequate	O	O
replacements	O	O
are	O	O
done	O	O
.	O	O

The	O	O
core	O	O
idea	O	O
is	O	O
taken	O	O
from	O	O
this	O	O
answer	O	O
and	O	O
is	O	O
credited	O	O
to	O	O
Aacini	O	B-User_Name
.	O	O

Similar	O	O
code	O	O
to	O	O
the	O	O
one	O	O
posted	O	O
by	O	O
aschipfl	O	B-User_Name
.	O	O

Same	O	O
value	O	O
padding	O	O
approach	O	O
for	O	O
each	O	O
segment	O	O
,	O	O
just	O	O
a	O	O
different	O	O
handling	O	O
of	O	O
name	O	O
splitting	O	O
and	O	O
value	O	O
padding	O	O
.	O	O

Does	O	O
anyone	O	O
know	O	O
how	O	O
to	O	O
use	O	O
a	O	O
"	O	O
like	O	B-Function
"	O	O
or	O	O
"	O	O
contains	O	B-Function
"	O	O
function	O	O
in	O	O
Ampscript	O	B-Library
?	O	O

Example	O	O
:	O	O
GetContent	O	O
where	O	O
name	O	O
contains	O	O
"	O	B-Value
LOY	O	I-Value
"	O	I-Value

Perhaps	O	O
you	O	O
're	O	O
looking	O	O
for	O	O
the	O	O
IndexOf()	O	B-Function
function	O	O
?	O	O

BTW	O	O
,	O	O
there	O	O
are	O	O
many	O	O
more	O	O
people	O	O
answering	O	O
SFMC	O	O
questions	O	O
over	O	O
at	O	O
the	O	O
dedicated	O	O
SF	O	B-Website
site	O	O
:	O	O
http://salesforce.stackexchange.com	O	O

I	O	O
want	O	O
to	O	O
make	O	O
a	O	O
search	O	O
function	O	O
to	O	O
my	O	O
android	O	B-Operating_System
app	O	O
.	O	O

I	O	O
want	O	O
the	O	O
things	O	O
that	O	O
you	O	O
are	O	O
going	O	O
to	O	O
search	O	O
from	O	O
in	O	O
the	O	O
app	O	O
,	O	O
not	O	O
a	O	O
database	O	O
or	O	O
something	O	O
like	O	O
that	O	O
!	O	O

:)	O	O
So	O	O
yeah	O	O
,	O	O
maby	O	O
someone	O	O
could	O	O
link	O	O
me	O	O
a	O	O
tutorial	O	O
or	O	O
something	O	O
?	O	O

:)	O	O

Thanks	O	O
!	O	O

(	O	O
REALLY	O	O
sorry	O	O
for	O	O
bad	O	O
english	O	O
!	O	O
)	O	O

You	O	O
should	O	O
look	O	O
at	O	O
this	O	O
tutorial	O	O
:	O	O

searching	O	O
employees	O	O

and	O	O
this	O	O
one	O	O
from	O	O
android	O	B-Website
developer	O	I-Website
site	O	I-Website

(	O	O
I	O	O
do	O	O
hope	O	O
my	O	O
question	O	O
still	O	O
fits	O	O
into	O	O
what	O	O
is	O	O
allowed	O	O
to	O	O
ask	O	O
here	O	O
)	O	O

Having	O	O
successfully	O	O
developed	O	O
and	O	O
deployed	O	O
iPhone	O	B-Device
applications	O	O
using	O	O
MonoTouch	O	B-Application
,	O	O
I	O	O
was	O	O
looking	O	O
for	O	O
ways	O	O
to	O	O
do	O	O
it	O	O
for	O	O
OS	O	B-Operating_System
X	O	B-Version
,	O	O
too	O	O
.	O	O

What	O	O
I	O	O
found	O	O
was	O	O
MonoMac	O	B-Application
(	O	O
also	O	O
on	O	O
Github	O	B-Website
)	O	O
which	O	O
looks	O	O
promising	O	O
to	O	O
me	O	O
.	O	O

Since	O	O
most	O	O
stuff	O	O
seems	O	O
to	O	O
be	O	O
from	O	O
2010/2011	O	O
I	O	O
'm	O	O
unsure	O	O
whether	O	O
this	O	O
is	O	O
still	O	O
up-to-date	O	O
.	O	O

My	O	O
questions	O	O
therefore	O	O
are	O	O
:	O	O

Are	O	O
there	O	O
any	O	O
real-world	O	O
applications	O	O
out	O	O
there	O	O
that	O	O
were	O	O
recently	O	O
successfully	O	O
submitted	O	O
to	O	O
the	O	O
Mac	O	B-Operating_System
OS	O	I-Operating_System
X	O	B-Version
AppStore	O	B-Application
?	O	O

Would	O	O
you	O	O
recommend	O	O
using	O	O
it	O	O
for	O	O
commercial	O	O
projects	O	O
nowadays	O	O
?	O	O

Are	O	O
there	O	O
any	O	O
working	O	O
alternatives	O	O
?	O	O

(	O	O
beside	O	O
learning	O	O
Objective	O	B-Language
C	O	I-Language
,	O	O
which	O	O
I	O	O
'm	O	O
currently	O	O
doing	O	O
)	O	O

I	O	O
stumbled	O	O
upon	O	O
an	O	O
interesting	O	O
behavior	O	O
in	O	O
the	O	O
Trackbar	O	B-Class
Winforms	O	B-Library
control	O	O
.	O	O

On	O	O
a	O	O
horizontal	O	O
trackbar	O	B-User_Interface_Element
,	O	O
the	O	O
left/right	O	B-Keyboard_IP
arrow	O	I-Keyboard_IP
keys	O	O
work	O	O
as	O	O
expected	O	O
.	O	O

(	O	O
Left	O	B-Keyboard_IP
arrow	O	I-Keyboard_IP
moves	O	O
the	O	O
slider	O	B-User_Interface_Element
to	O	O
the	O	O
left	O	O
and	O	O
decreases	O	O
the	O	O
value	O	O
,	O	O
right	O	B-Keyboard_IP
arrow	O	I-Keyboard_IP
does	O	O
the	O	O
opposite	O	O
)	O	O

It	O	O
is	O	O
also	O	O
possible	O	O
to	O	O
manipulate	O	O
the	O	O
slider	O	B-User_Interface_Element
using	O	O
the	O	O
up/down	O	B-Keyboard_IP
arrow	O	I-Keyboard_IP
keys	O	O
and	O	O
PageUp/PageDown	O	B-Keyboard_IP
.	O	O

However	O	O
,	O	O
the	O	O
behavior	O	O
seem	O	O
counter-intuitive	O	O
:	O	O
arrow	O	B-Keyboard_IP
up	O	I-Keyboard_IP
and	O	O
page	O	B-Keyboard_IP
up	O	I-Keyboard_IP
move	O	O
the	O	O
slider	O	B-User_Interface_Element
to	O	O
the	O	O
left	O	O
and	O	O
consequently	O	O
decrease	O	O
the	O	O
value	O	O
.	O	O

Arrow	O	B-Keyboard_IP
down	O	I-Keyboard_IP
and	O	O
page	O	B-Keyboard_IP
down	O	I-Keyboard_IP
move	O	O
the	O	O
slider	O	B-User_Interface_Element
to	O	O
the	O	O
right	O	O
and	O	O
increase	O	O
the	O	O
value	O	O
.	O	O

When	O	O
using	O	O
a	O	O
vertical	O	O
trackbar	O	B-User_Interface_Element
,	O	O
up/down	O	B-Keyboard_IP
keys	O	I-Keyboard_IP
work	O	O
as	O	O
expected	O	O
but	O	O
arrow	O	B-Keyboard_IP
left	O	I-Keyboard_IP
=	O	O
increase	O	O
and	O	O
arrow	O	B-Keyboard_IP
right	O	I-Keyboard_IP
=	O	O
decrease	O	O
.	O	O

This	O	O
is	O	O
the	O	O
default	O	O
behavior	O	O
in	O	O
C#	O	B-Language
Winforms	O	B-Library
,	O	O
and	O	O
apparently	O	O
in	O	O
native	O	O
Windows	O	B-Operating_System
.	O	O

(	O	O
Not	O	O
sure	O	O
about	O	O
the	O	O
latter	O	O
,	O	O
the	O	O
slider	O	B-User_Interface_Element
for	O	O
UAC	O	B-User_Interface_Element
does	O	O
work	O	O
this	O	O
way	O	O
)	O	O

In	O	O
WPF	O	B-Library
the	O	O
slider	O	B-User_Interface_Element
control	O	O
works	O	O
"	O	O
properly	O	O
"	O	O
i.e	O	O
.	O	O
the	O	O
value	O	O
increases	O	O
with	O	O
arrow	O	B-Keyboard_IP
up	O	I-Keyboard_IP
,	O	O
arrow	O	B-Keyboard_IP
right	O	I-Keyboard_IP
und	O	O
PgUp	O	B-Keyboard_IP
.	O	O

Also	O	O
the	O	O
slider	O	B-User_Interface_Element
in	O	O
Internet	O	B-Application
Explorer	O	I-Application
Privacy	O	O
settings	O	O
works	O	O
properly	O	O
.	O	O

Not	O	O
sure	O	O
why	O	O
,	O	O
but	O	O
I	O	O
suspect	O	O
a	O	O
custom	O	O
handling	O	O
of	O	O
the	O	O
keys	O	O
.	O	O

From	O	O
an	O	O
ergonomics	O	O
standpoint	O	O
,	O	O
it	O	O
is	O	O
clear	O	O
that	O	O
up	O	O
,	O	O
right	O	O
,	O	O
forward	O	O
and	O	O
clockwise	O	O
manipulation	O	O
of	O	O
anything	O	O
is	O	O
supposed	O	O
to	O	O
increase	O	O
the	O	O
value	O	O
.	O	O

(	O	O
This	O	O
nothing	O	O
new	O	O
,	O	O
compare	O	O
A	O	O
Guide	O	O
to	O	O
Human	O	O
Factors	O	O
and	O	O
Ergonomics	O	O
,	O	O
Second	O	O
Edition	O	O
Page	O	O
100	O	O
)	O	O

Now	O	O
to	O	O
my	O	O
Question	O	O
:	O	O
Does	O	O
anyone	O	O
know	O	O
why	O	O
this	O	O
is	O	O
the	O	O
way	O	O
it	O	O
is	O	O
?	O	O

I	O	O
'm	O	O
strongly	O	O
inclined	O	O
to	O	O
think	O	O
this	O	O
behavior	O	O
was	O	O
chosen	O	O
to	O	O
keep	O	O
the	O	O
trackbar	O	B-Class
control	O	I-Class
consistent	O	O
with	O	O
the	O	O
scrollbar	O	B-Class
control	O	I-Class
.	O	O

These	O	O
two	O	O
controls	O	O
have	O	O
very	O	O
much	O	O
in	O	O
common	O	O
(	O	O
their	O	O
thumb	O	O
can	O	O
be	O	O
moved	O	O
by	O	O
"	O	O
line	O	O
"	O	O
or	O	O
"	O	O
page	O	O
"	O	O
increments	O	O
,	O	O
both	O	O
controls	O	O
can	O	O
be	O	O
laid	O	O
out	O	O
horizontally	O	O
or	O	O
vertically	O	O
,	O	O
both	O	O
use	O	O
WM_HSCROLL	O	B-Function
and	O	O
WM_VSCROLL	O	B-Function
to	O	O
notify	O	O
their	O	O
parent	O	O
when	O	O
the	O	O
thumb	O	O
position	O	O
changes	O	O
)	O	O
.	O	O

From	O	O
the	O	O
control	O	O
's	O	O
point	O	O
of	O	O
view	O	O
,	O	O
the	O	O
thumb	O	O
can	O	O
move	O	O
"	O	O
up	O	O
"	O	O
or	O	O
"	O	O
down	O	O
"	O	O
(	O	O
"	O	O
left	O	O
"	O	O
or	O	O
"	O	O
right	O	O
"	O	O
respectively	O	O
)	O	O
.	O	O

The	O	O
keyboard	O	B-Device
navigation	O	O
for	O	O
scrollbars	O	B-User_Interface_Element
used	O	O
Left	B-Keyboard_IP	B-Keyboard_IP
and	O	O
Up	B-Keyboard_IP	B-Keyboard_IP
for	O	O
upwards	O	O
(	O	O
leftwards	O	O
)	O	O
movement	O	O
,	O	O
as	O	O
well	O	O
as	O	O
Right	B-Keyboard_IP	B-Keyboard_IP
and	O	O
Down	B-Keyboard_IP	B-Keyboard_IP
for	O	O
downwards	O	O
(	O	O
rightwards	O	O
)	O	O
movement	O	O
.	O	O

It	O	O
must	O	O
have	O	O
made	O	O
sense	O	O
for	O	O
the	O	O
trackbar	O	B-Class
control	O	I-Class
to	O	O
follow	O	O
the	O	O
same	O	O
conventions	O	O
,	O	O
so	O	O
developers	O	O
used	O	O
to	O	O
the	O	O
scrollbar	O	B-Class
control	O	I-Class
's	O	O
implementation	O	O
could	O	O
apply	O	O
the	O	O
same	O	O
principles	O	O
to	O	O
the	O	O
trackbar	O	B-Class
control	O	I-Class
.	O	O

I	O	O
'm	O	O
experimenting	O	O
with	O	O
OrientDB	O	B-Application
and	O	O
I	O	O
would	O	O
like	O	O
to	O	O
model	O	O
a	O	O
non	O	O
disjunctive	O	O
inheritance	O	O
.	O	O

For	O	O
example	O	O
:	O	O

-	O	O
there	O	O
are	O	O
Person	O	B-Class

-	O	O
a	O	O
Student	O	B-Class
is	O	O
a	O	O
Person	O	B-Class

-	O	O
a	O	O
Worker	O	B-Class
is	O	O
a	O	O
Person	O	B-Class

-	O	O
"	O	B-Value
Alberto	O	I-Value
"	O	I-Value
is	O	O
both	O	O
a	O	O
Student	O	B-Class
and	O	O
Worker	O	B-Class
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
model	O	O
this	O	O
situation	O	O
with	O	O
only	O	O
the	O	O
three	O	O
classes	O	O
I	O	O
defined	O	O
(	O	O
Student	O	B-Class
,	O	O
Worker	O	B-Class
,	O	O
Person	O	B-Class
)	O	O
or	O	O
shall	O	O
I	O	O
introduce	O	O
a	O	O
new	O	O
class	O	O
WorkingStudent	O	B-Class
,	O	O
extending	O	O
both	O	O
Worker	O	B-Class
and	O	O
Student	O	B-Class
,	O	O
containing	O	O
"	O	B-Value
Alberto	O	I-Value
"	O	I-Value
?	O	O

I	O	O
suppose	O	O
a	O	O
vertex	O	B-Class
cannot	O	O
be	O	O
instance	O	O
of	O	O
more	O	O
than	O	O
one	O	O
class	O	O
since	O	O
the	O	O
system	O	O
would	O	O
not	O	O
know	O	O
in	O	O
which	O	O
cluster	O	B-Class
to	O	O
put	O	O
it	O	O
but	O	O
I	O	O
have	O	O
n't	O	O
found	O	O
an	O	O
explicit	O	O
answer	O	O
to	O	O
my	O	O
question	O	O
,	O	O
yet	O	O
.	O	O

Cheers	O	O
,	O	O

Alberto	O	B-User_Name
(	O	O
the	O	O
working	O	O
student	O	O
:-)	O	O
)	O	O

I	O	O
think	O	O
you	O	O
may	O	O
trying	O	O
to	O	O
solve	O	O
this	O	O
the	O	O
wrong	O	O
way	O	O
.	O	O

For	O	O
instance	O	O
,	O	O
Alberto	O	B-Value
will	O	O
presumably	O	O
always	O	O
be	O	O
a	O	O
Person	O	B-Class
.	O	O

But	O	O
when	O	O
Alberto	O	B-Value
graduates	O	O
,	O	O
he	O	O
will	O	O
no	O	O
longer	O	O
be	O	O
a	O	O
Student	O	B-Class
.	O	O

In	O	O
fact	O	O
,	O	O
he	O	O
might	O	O
also	O	O
lose	O	O
his	O	O
job	O	O
and	O	O
no	O	O
longer	O	O
be	O	O
a	O	O
Worker	O	B-Class
.	O	O

Moving	O	O
him	O	O
from	O	O
one	O	O
class	O	O
to	O	O
another	O	O
is	O	O
a	O	O
considerable	O	O
issue	O	O
.	O	O

I	O	O
'd	O	O
create	O	O
separate	O	O
,	O	O
smaller	O	O
nodes	O	O
of	O	O
Worker	O	B-Class
and	O	O
Student	O	B-Class
.	O	O

Then	O	O
create	O	O
edges	O	O
from	O	O
Person	O	B-Class
to	O	O
Worker	O	B-Class
,	O	O
or	O	O
Person	O	B-Class
to	O	O
Student	O	B-Class
.	O	O

The	O	O
edge	O	O
can	O	O
be	O	O
named	O	O
"	O	O
Is	O	O
A	O	O
"	O	O
.	O	O

Now	O	O
,	O	O
it	O	O
is	O	O
very	O	O
easy	O	O
to	O	O
add	O	O
new	O	O
categories	O	O
,	O	O
for	O	O
instance	O	O
"	O	O
Parent	O	O
"	O	O
or	O	O
"	O	O
Spouse	O	O
"	O	O
,	O	O
without	O	O
having	O	O
to	O	O
worry	O	O
about	O	O
changing	O	O
your	O	O
class	O	O
inheritance	O	O
.	O	O

One	O	O
of	O	O
the	O	O
fantastic	O	O
advantages	O	O
of	O	O
a	O	O
Graph	O	B-Library
database	O	I-Library
..	O	O
.	O	O

in	O	O
OrientDb	O	B-Library
a	O	O
vertex	O	B-Class
can	O	O
be	O	O
an	O	O
instance	O	O
of	O	O
multiple	O	O
class	O	O
.	O	O

Use	O	O
this	O	O
command	O	O

Kind	O	O
regards	O	O
.	O	O

I	O	O
am	O	O
getting	O	O
a	O	O
Net::SMTPAuthenticationError	B-Code_Block	B-Class
both	O	O
on	O	O
my	O	O
development	O	O
(	O	O
local	O	O
)	O	O
env	O	O
as	O	O
well	O	O
as	O	O
when	O	O
I	O	O
host	O	O
on	O	O
Heroku	O	B-Application
,	O	O
when	O	O
I	O	O
try	O	O
to	O	O
send	O	O
mails	O	O
from	O	O
my	O	O
rails	O	B-Library
application	O	O
.	O	O

This	O	O
started	O	O
after	O	O
sending	O	O
the	O	O
first	O	O
couple	O	O
of	O	O
email	O	O
(	O	O
2	O	O
mails	O	O
to	O	O
be	O	O
specific	O	O
)	O	O
.	O	O

All	O	O
research	O	O
so	O	O
far	O	O
made	O	O
me	O	O
think	O	O
that	O	O
this	O	O
should	O	O
could	O	O
be	O	O
due	O	O
to	O	O
having	O	O
a	O	O
2-factor	B-Code_Block	O
auth	I-Code_Block	O
enabled	O	O
on	O	O
the	O	O
gmail	O	B-Application
account	O	O
,	O	O
but	O	O
when	O	O
I	O	O
checked	O	O
the	O	O
account	O	O
,	O	O
2-factor	B-Code_Block	O
autt	I-Code_Block	O
was	O	O
not	O	O
enabled	O	O
.	O	O

below	O	O
is	O	O
my	O	O
smtp	O	O
setting	O	O
both	O	O
in	O	O
config/development.rb	B-Code_Block	B-File_Name
and	O	O
config/production.rb	B-Code_Block	B-File_Name
:	O	O

My	O	O
mailer	O	O
is	O	O
set	O	O
up	O	O
as	O	O
follow	O	O
:	O	O

On	O	O
calling	O	O
PushWatir::StackoMailer.success_mail.deliver_now	B-Code_Block	B-Function
!	I-Code_Block	I-Function
,	O	O
I	O	O
get	O	O
the	O	O
following	O	O
error	O	O
:	O	O

What	O	O
could	O	O
be	O	O
causing	O	O
this	O	O
?	O	O

How	O	O
can	O	O
I	O	O
make	O	O
this	O	O
work	O	O
?	O	O

Big	O	O
thanks	O	O
for	O	O
responses	O	O

One	O	O
of	O	O
the	O	O
solutions	O	O
that	O	O
worked	O	O
for	O	O
me	O	O
is	O	O
by	O	O
allowing	O	O
"	O	O
less	O	O
secure	O	O
apps	O	O
"	O	O
from	O	O
my	O	O
google	O	B-Website
account	O	O
.	O	O

Steps	O	O
to	O	O
do	O	O
this	O	O
are	O	O
as	O	O
follow	O	O
:	O	O
-	O	O

From	O	O
your	O	O
Google	O	B-Website
Account	O	O
settings	O	O
,	O	O
find	O	O
"	O	O
Sign	O	O
In	O	O
&	O	O
Security	O	O
"	O	O
->	O	O
"	O	O
Allow	O	O
less	O	O
secure	O	O
apps	O	O
"	O	O
,	O	O
enable	O	O
it	O	O
.	O	O

Reference	O	O
-	O	O
https://support.google.com/accounts/answer/6010255	O	O

I	O	O
am	O	O
currently	O	O
building	O	O
a	O	O
module	O	O
for	O	O
an	O	O
ecommerce	O	O
website	O	O
(	O	O
Lemonstand	O	B-Website
)	O	O
.	O	O

My	O	O
shop	O	O
sells	O	O
both	O	O
normal	O	O
books	O	O
and	O	O
ebooks	O	O
,	O	O
and	O	O
charge	O	O
different	O	O
rates	O	O
of	O	O
for	O	O
shipping	O	O
based	O	O
on	O	O
the	O	O
subtotal	O	O
of	O	O
all	O	O
items	O	O
in	O	O
the	O	O
cart	O	O
(	O	O
$7	O	O
shipping	O	O
cost	O	O
for	O	O
subtotal	O	O
of	O	O
less	O	O
than	O	O
$20	O	O
,	O	O
$14	O	O
shipping	O	O
cost	O	O
for	O	O
between	O	O
$20	O	O
and	O	O
$	O	O
50	O	O
..	O	O
etc	O	O
)	O	O
.	O	O

Currently	O	O
the	O	O
website	O	O
just	O	O
uses	O	O
the	O	O
subtotal	O	O
of	O	O
all	O	O
items	O	O
in	O	O
the	O	O
cart	O	O
to	O	O
determine	O	O
which	O	O
rate	O	O
should	O	O
be	O	O
applied	O	O
.	O	O

The	O	O
problem	O	O
is	O	O
,	O	O
I	O	O
want	O	O
only	O	O
the	O	O
subtotal	O	O
of	O	O
normal	O	O
books	O	O
to	O	O
be	O	O
used	O	O
for	O	O
calculating	O	O
shipping	O	O
,	O	O
because	O	O
obviously	O	O
ebooks	O	O
do	O	O
n't	O	O
need	O	O
shipping	O	O
.	O	O

Lemonstand	O	B-Website
platform	O	O
has	O	O
some	O	O
built_in	O	O
functions	O	O
that	O	O
I	O	O
'm	O	O
using	O	O
to	O	O
help	O	O
with	O	O
this	O	O
.	O	O

update_shipping_quote	O	B-Function
function	O	O
is	O	O
called	O	O
just	O	O
before	O	O
shipping	O	O
cost	O	O
is	O	O
calculated	O	O
.	O	O

It	O	O
will	O	O
be	O	O
used	O	O
to	O	O
change	O	O
the	O	O
subtotal	O	O
of	O	O
cart	O	O
items	O	O
so	O	O
that	O	O
shipping	O	O
cost	O	O
can	O	O
be	O	O
calculated	O	O
using	O	O
the	O	O
subtotal	O	O
of	O	O
non-ebooks	O	O
instead	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
API	O	B-Library
documentation	O	O
for	O	O
the	O	O
function	O	O
:	O	O
https://v1.lemonstand.com/api/event/shop:onupdateshippingquote/	O	O

Here	O	O
is	O	O
the	O	O
bit	O	O
of	O	O
code	O	O
that	O	O
's	O	O
giving	O	O
me	O	O
trouble	O	O
.	O	O

I	O	O
want	O	O
to	O	O
know	O	O
if	O	O
the	O	O
value	O	O
I	O	O
get	O	O
at	O	O
the	O	O
end	O	O
($non_ebook_subtotal)	O	B-Variable
actually	O	O
contains	O	O
the	O	O
value	O	O
it	O	O
's	O	O
supposed	O	O
to	O	O
.	O	O

If	O	O
anyone	O	O
can	O	O
come	O	O
up	O	O
with	O	O
a	O	O
better	O	O
method	O	O
for	O	O
doing	O	O
what	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
do	O	O
,	O	O
please	O	O
share	O	O
.	O	O

public	O	B-Code_Block
function	O	I-Code_Block
update_shipping_quote	O	I-Code_Block
(	O	I-Code_Block
$shipping_option	O	I-Code_Block
,	O	I-Code_Block
$params	O	I-Code_Block
)	O	I-Code_Block
{	O	B-Code_Block

Thanks	O	O

I	O	O
want	O	O
to	O	O
execute	O	O
a	O	O
function	O	O
that	O	O
is	O	O
sent	O	O
over	O	O
AJAX	O	B-Variable
request	O	I-Variable
from	O	O
the	O	O
server	O	B-Application
.	O	O

The	O	O
function	O	O
body	O	O
is	O	O
n't	O	O
in	O	O
the	O	O
calling	O	O
page	O	O
.	O	O

For	O	O
example	O	O
:	O	O
(	O	O
the	O	O
complete	O	O
code	O	O
is	O	O
given	O	O
below	O	O
)	O	O

1.calling	O	O
PHP	O	B-Language
script	O	O
:	O	O

2.ajax_js2.php	O	B-File_Name
script	O	O
:	O	O

I	O	O
know	O	O
putting	O	O
the	O	O
function	O	O
definition	O	O
of	O	O
"	O	O
test	O	B-Variable
"	O	O
in	O	O
the	O	O
calling	O	O
script	O	O
will	O	O
do	O	O
.	O	O

But	O	O
I	O	O
want	O	O
to	O	O
keep	O	O
it	O	O
in	O	O
the	O	O
second	O	O
script.What	O	O
should	O	O
I	O	O
do	O	O
?	O	O

The	O	O
server	O	B-Application
returns	O	O
the	O	O
span	O	B-HTML_XML_Tag
as	O	O
a	O	O
response	O	O
to	O	O
the	O	O
client	O	B-Application
.	O	O

While	O	O
clicking	O	O
upon	O	O
the	O	O
span	O	B-HTML_XML_Tag
"	O	B-Value
Test	O	I-Value
AJAX	O	I-Value
"	O	I-Value
the	O	O
function	O	O
should	O	O
be	O	O
called	O	O
.	O	O

<script>	B-Code_Block	B-HTML_XML_Tag
tags	O	O
inserted	O	O
into	O	O
the	O	O
DOM	O	B-Library
will	O	O
not	O	O
be	O	O
executed	O	O
,	O	O
unless	O	O
you	O	O
run	O	O
eval()	B-Code_Block	B-Function
.	O	O

Read	O	O
more	O	O
here	O	O
:	O	O
Can	O	O
scripts	O	O
be	O	O
inserted	O	O
with	O	O
innerHTML	O	B-Variable
?	O	O

So	O	O
in	O	O
your	O	O
case	O	O
,	O	O
test()	B-Code_Block	B-Function
will	O	O
be	O	O
undefined	O	O
when	O	O
you	O	O
try	O	O
to	O	O
click	O	O
on	O	O
the	O	O
span	O	B-HTML_XML_Tag
because	O	O
the	O	O
script	O	O
code	O	O
has	O	O
not	O	O
been	O	O
executed	O	O
(	O	O
thus	O	O
never	O	O
defined	O	O
the	O	O
test	B-Code_Block	B-Function
function	O	O
)	O	O
.	O	O

You	O	O
can	O	O
get	O	O
around	O	O
it	O	O
using	O	O
something	O	O
like	O	O
this	O	O
(	O	O
after	O	O
the	O	O
DOM	O	O
injection	O	O
)	O	O
:	O	O

(	O	O
p.s	O	O
.	O	O

eval	B-Code_Block	B-Function
is	O	O
not	O	O
evil	O	O
)	O	O

I	O	O
am	O	O
from	O	O
brazil	O	O
and	O	O
im	O	O
trying	O	O
to	O	O
generate	O	O
a	O	O
keystore	O	B-Class
and	O	O
after	O	O
going	O	O
to	O	O
the	O	O
bin	O	B-File_Name
of	O	O
my	O	O
jre7/bin	O	B-File_Name
in	O	O
here	O	O
its	O	O
"	O	O
C:\Program	O	B-File_Name
Files	O	I-File_Name
\Java\jdk1.7.0_51\bin	O	I-File_Name
"	O	O
i	O	O
try	O	O
to	O	O
run	O	O
this	O	O
code	O	O
:	O	O

But	O	O
it	O	O
is	O	O
asking	O	O
me	O	O
for	O	O
a	O	O
password	O	O
after	O	O
that	O	O
and	O	O
i	O	O
cant	O	O
type	O	O
anything	O	O
like	O	O
,	O	O
i	O	O
pressed	O	O
all	O	O
the	O	O
keyboard	O	B-Device
keys	O	O
and	O	O
nothing	O	O
was	O	O
writen	O	O
all	O	O
i	O	O
can	O	O
do	O	O
is	O	O
press	O	O
enter	O	B-Keyboard_IP
and	O	O
the	O	O
key	O	O
is	O	O
not	O	O
generated	O	O
..	O	O
.	O	O
Has	O	O
anyone	O	O
ever	O	O
went	O	O
through	O	O
this	O	O
?	O	O

In	O	O
portuguese	O	O
he	O	O
asks	O	O
me	O	O
for	O	O
:	O	O
"	O	B-Output_Block
Informe	O	I-Output_Block
a	O	I-Output_Block
senha	O	I-Output_Block
da	O	I-Output_Block
área	O	I-Output_Block
de	O	I-Output_Block
armazenamento	O	I-Output_Block
de	O	I-Output_Block
chaves	O	I-Output_Block
:	O	I-Output_Block
"	O	I-Output_Block

You	O	O
have	O	O
to	O	O
type	O	O
password	O	O
,	O	O
which	O	O
will	O	O
be	O	O
used	O	O
to	O	O
encrypt	O	O
the	O	O
key	O	B-Class
store	O	I-Class
and	O	O
then	O	O
confirm	O	O
it	O	O
.	O	O

Passwords	O	O
are	O	O
not	O	O
shadowed	O	O
to	O	O
the	O	O
console	O	B-Application
,	O	O
so	O	O
it	O	O
looks	O	O
empty	O	O
for	O	O
you	O	O
.	O	O

You	O	O
may	O	O
specify	O	O
password	O	O
in	O	O
the	O	O
command	O	B-Application
line	O	I-Application
itself	O	O
with	O	O
storepass	B-Code_Block	B-Variable
and	O	O
keypass	B-Code_Block	B-Variable
parametrs	O	O

storepass	B-Code_Block	B-Variable
is	O	O
the	O	O
password	O	O
to	O	O
encrypt	O	O
the	O	O
whole	O	O
key	O	O
store	O	O
,	O	O
and	O	O
keypass	B-Code_Block	B-Variable
is	O	O
used	O	O
to	O	O
encrypt	O	O
the	O	O
key	O	O
entry	O	O
.	O	O

Their	O	O
values	O	O
do	O	O
not	O	O
have	O	O
to	O	O
be	O	O
the	O	O
same	O	O
.	O	O

if	O	O
in	O	O
debug	O	O
mode	O	O
use	O	O
android	O	B-Operating_System

I	O	O
hope	O	O
it	O	O
helped	O	O
you	O	O

So	O	O
I	O	O
start	O	O
my	O	O
thread	O	B-Class
like	O	O
this	O	O
:	O	O

And	O	O
this	O	O
function	O	O
has	O	O
a	O	O
loop	O	O
that	O	O
needs	O	O
to	O	O
execute	O	O
once	O	O
a	O	O
second	O	O
:	O	O

How	O	O
do	O	O
I	O	O
make	O	O
this	O	O
thread	O	B-Class
sleep	O	O
without	O	O
pausing	O	O
my	O	O
main	O	O
thread	O	B-Class
?	O	O

Ref	O	O
:	O	O
https://msdn.microsoft.com/en-us/library/d00bd51t(v=vs.110).aspx	O	O

According	O	O
to	O	O
MSDN	O	B-Website
,	O	O
Thread.Sleep	B-Code_Block	B-Function
pauses	O	O
the	O	O
current	O	O
thread	O	B-Class
for	O	O
a	O	O
given	O	O
amount	O	O
of	O	O
time	O	O
,	O	O
i.e	O	O
.	O	O
the	O	O
thread	O	B-Class
in	O	O
which	O	O
the	O	O
current	O	O
function	O	O
is	O	O
run	O	B-Function
.	O	O

In	O	O
NodeJS	O	B-Library
Hapi	O	I-Library
,	O	O
how	O	O
do	O	O
I	O	O
forward	O	O
a	O	O
route	O	O
to	O	O
another	O	O
route	O	O
,	O	O
without	O	O
an	O	O
HTTP	O	O
redirect	O	O
?	O	O

For	O	O
example	O	O
,	O	O
I	O	O
want	O	O
root	O	O
request	O	B-Variable
('/')	O	B-Value
to	O	O
get	O	O
the	O	O
index.html	O	B-File_Name
from	O	O
my	O	O
static	O	O
routes	O	O
handler	O	O
.	O	O

So	O	O
/	B-Code_Block	B-Value
will	O	O
get	O	O
the	O	O
same	O	O
reply	O	O
as	O	O
/public/index.html	B-Code_Block	B-File_Name
.	O	O

As	O	O
far	O	O
as	O	O
I	O	O
know	O	O
there	O	O
's	O	O
no	O	O
such	O	O
functionality	O	O
inside	O	O
the	O	O
handler	O	O
function	O	O
of	O	O
a	O	O
route	O	O
.	O	O

The	O	O
way	O	O
to	O	O
do	O	O
this	O	O
in	O	O
Hapi	O	B-Library
is	O	O
by	O	O
using	O	O
a	O	O
server	O	B-Application
extension	O	O
:	O	O

I	O	O
have	O	O
a	O	O
unique	O	O
need	O	O
where	O	O
I	O	O
need	O	O
to	O	O
perform	O	O
releases	O	O
from	O	O
Team	O	B-Application
Services	O	I-Application
using	O	O
a	O	O
Release	O	O
Pipeline	O	O
and	O	O
artifacts	O	O
that	O	O
have	O	O
been	O	O
created	O	O
in	O	O
a	O	O
previous	O	O
external	O	O
build	O	O
.	O	O

I	O	O
have	O	O
the	O	O
artifacts	O	O
that	O	O
were	O	O
created	O	O
,	O	O
dacpacs	O	B-File_Type
and	O	O
websites	O	O
ect	O	O
.	O	O

I	O	O
would	O	O
like	O	O
to	O	O
deploy	O	O
these	O	O
items	O	O
using	O	O
the	O	O
features	O	O
in	O	O
release	O	O
Pipelines	O	O
but	O	O
artifact	O	O
sources	O	O
only	O	O
come	O	O
from	O	O
a	O	O
build	O	O
or	O	O
some	O	O
other	O	O
version	O	O
control	O	O
.	O	O

My	O	O
approach	O	O
(	O	O
hack	O	O
)	O	O
was	O	O
to	O	O
use	O	O
a	O	O
build	O	O
to	O	O
copy	O	O
the	O	O
external	O	O
files	O	O
and	O	O
publish	O	O
them	O	O
into	O	O
the	O	O
artifact	O	O
container	O	O
for	O	O
the	O	O
build	O	O
.	O	O

I	O	O
could	O	O
then	O	O
use	O	O
the	O	O
release	O	O
pipelines	O	O
to	O	O
do	O	O
my	O	O
releases	O	O
.	O	O

But	O	O
.	O	O
.	O	O

Build	O	O
copy	O	O
tasks	O	O
only	O	O
seem	O	O
to	O	O
work	O	O
with	O	O
paths	O	O
into	O	O
a	O	O
repo	O	O
.	O	O

My	O	O
fall	O	O
back	O	O
will	O	O
be	O	O
to	O	O
use	O	O
the	O	O
release	O	O
pipeline	O	O
and	O	O
powershell	O	B-Application
to	O	O
do	O	O
the	O	O
releases	O	O
with	O	O
these	O	O
externally	O	O
created	O	O
artifacts	O	O
.	O	O

I	O	O
would	O	O
sure	O	O
like	O	O
to	O	O
avoid	O	O
this	O	O
since	O	O
there	O	O
is	O	O
nice	O	O
capability	O	O
in	O	O
the	O	O
release	O	O
pipeline	O	O
tasks	O	O
.	O	O

This	O	O
is	O	O
a	O	O
compliance	O	O
requirement	O	O
my	O	O
firm	O	O
has	O	O
which	O	O
results	O	O
in	O	O
the	O	O
rather	O	O
crazy	O	O
post	O	O
.	O	O

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

You	O	O
can	O	O
use	O	O
Copy	O	O
Files	O	O
task	O	O
and	O	O
Publish	O	O
Build	O	O
Artifacts	O	O
task	O	O
for	O	O
your	O	O
build	O	O
definition	O	O
.	O	O

Copy	O	O
Files	O	O
task	O	O

Source	O	O
Folder	O	O
:	O	O
you	O	O
can	O	O
specify	O	O
the	O	O
folder	O	O
which	O	O
has	O	O
your	O	O
external	O	O
build	O	O
artifacts	O	O
.	O	O

Such	O	O
as	O	O
C:\project\a	B-Code_Block	B-File_Name
.	O	O

Contents	O	O
:	O	O
you	O	O
can	O	O
use	O	O
wildcards	O	O
to	O	O
specify	O	O
which	O	O
files	O	O
to	O	O
copy	O	O
.	O	O

Such	O	O
as	O	O
**\*	B-Code_Block	B-File_Name
.dll	I-Code_Block	I-File_Name
,	O	O
this	O	O
will	O	O
copy	O	O
all	O	O
*	B-Code_Block	B-File_Type
.dll	I-Code_Block	I-File_Type
files	O	O
in	O	O
C:\project\a	B-Code_Block	B-File_Name
and	O	O
it	O	O
's	O	O
subfilder	O	O
.	O	O

Target	O	O
Folder	O	O
:	O	O
where	O	O
you	O	O
want	O	O
to	O	O
copy	O	O
these	O	O
files	O	O
.	O	O

Usually	O	O
it	O	O
's	O	O
$(build.artifactstagingdirectory)	B-Code_Block	B-Code_Block
.	O	O

Publish	O	O
Build	O	O
Artifacts	O	O
task	O	O

Path	O	O
to	O	O
Publish	O	O
:	O	O
set	O	O
as	O	O
the	O	O
same	O	O
with	O	O
Target	O	O
folder	O	O
in	O	O
Copy	O	O
files	O	O
task	O	O
.	O	O

Such	O	O
as	O	O
$(build.artifactstagingdirectory)	B-Code_Block	B-Code_Block
.	O	O

Note	O	O
:	O	O
Copy	O	O
files	O	O
task	O	O
will	O	O
find	O	O
the	O	O
source	O	O
folder	O	O
in	O	O
the	O	O
machine	O	O
where	O	O
the	O	O
private	O	O
agent	O	O
is	O	O
located	O	O
.	O	O

I	O	O
have	O	O
a	O	O
URL	O	O
like	O	O
:	O	O

The	O	O
hash	O	O
will	O	O
automatically	O	O
open	O	O
a	O	O
specific	O	O
tab	O	B-User_Interface_Element
on	O	O
the	O	O
page	O	B-User_Interface_Element
.	O	O

I	O	O
need	O	O
to	O	O
work	O	O
with	O	O
a	O	O
_GET	O	B-Variable
variable	O	O
,	O	O
and	O	O
the	O	O
URL	O	O
is	O	O
like	O	O
:	O	O

Then	O	O
on	O	O
the	O	O
page	O	B-User_Interface_Element
,	O	O
I	O	O
have	O	O
:	O	O

but	O	O
...	O	O
I	O	O
am	O	O
getting	O	O
an	O	O
undefined	O	B-Error_Name
index	O	I-Error_Name
error	O	I-Error_Name
.	O	O

How	O	O
do	O	O
I	O	O
get	O	O
PHP	O	B-Language
to	O	O
recognize	O	O
the	O	O
variable	O	O
?	O	O

Anything	O	O
after	O	O
the	O	O
hash	O	O
is	O	O
not	O	O
sent	O	O
to	O	O
the	O	O
server	O	B-Application
.	O	O

Regardless	O	O
,	O	O
you	O	O
should	O	O
probably	O	O
format	O	O
your	O	O
url	O	O
so	O	O
you	O	O
send	O	O
the	O	O
GET	O	O
parameters	O	O
correctly	O	O
.	O	O

http://www.example.com/page.php#tabname?color=red	O	O

should	O	O
be	O	O

http://www.example.com/page.php?color=red#tabname	O	O

You	O	O
need	O	O
to	O	O
put	O	O
the	O	O
query	O	O
string	O	B-Data_Type
before	O	O
the	O	O
hash	O	O
:	O	O

I	O	O
have	O	O
a	O	O
dll	O	B-File_Type
and	O	O
header	O	B-File_Type
files	O	O
but	O	O
nothing	O	O
else	O	O
,	O	O
and	O	O
I	O	O
want	O	O
to	O	O
use	O	O
the	O	O
library	O	O
's	O	O
functionality	O	O
in	O	O
a	O	O
C#	O	B-Language
project	O	O
.	O	O

I	O	O
could	O	O
not	O	O
use	O	O
"	O	O
DllImport	O	B-Function
"	O	O
because	O	O
the	O	O
functions	O	O
I	O	O
wanted	O	O
to	O	O
use	O	O
return	O	O
an	O	O
object	O	O
whose	O	O
class	O	O
also	O	O
is	O	O
of	O	O
the	O	O
library	O	O
.	O	O

The	O	O
wrapper	O	O
examples	O	O
I	O	O
found	O	O
include	O	O
the	O	O
examples	O	O
which	O	O
are	O	O
written	O	O
by	O	O
knowing	O	O
the	O	O
body	O	O
of	O	O
the	O	O
headers	O	B-File_Type
,	O	O
but	O	O
I	O	O
do	O	O
not	O	O
have	O	O
source	O	O
files	O	O
.	O	O

How	O	O
can	O	O
I	O	O
use	O	O
the	O	O
dll	O	B-File_Type
and	O	O
header	O	B-File_Type
files	O	O
?	O	O

I	O	O
will	O	O
be	O	O
thankful	O	O
if	O	O
anyone	O	O
can	O	O
help	O	O
me	O	O
.	O	O

I	O	O
am	O	O
printing	O	O
excel	O	B-File_Type
like	O	O
this	O	O
:	O	O

The	O	O
content	O	O
is	O	O
plain	O	O
html	O	B-Language
.	O	O

The	O	O
problem	O	O
,	O	O
when	O	O
I	O	O
download	O	O
this	O	O
,	O	O
I	O	O
get	O	O
an	O	O
initial	O	O
confirmation	O	B-User_Interface_Element
box	O	I-User_Interface_Element
written	O	O

The	B-Code_Block	O
file	I-Code_Block	O
you	I-Code_Block	O
are	I-Code_Block	O
trying	I-Code_Block	O
to	I-Code_Block	O
open	I-Code_Block	O
'	I-Code_Block	B-File_Name
File_name.xls	I-Code_Block	I-File_Name
'	I-Code_Block	O
,	I-Code_Block	O
is	I-Code_Block	O
in	I-Code_Block	O
a	I-Code_Block	O
different	I-Code_Block	O
format	I-Code_Block	O
than	I-Code_Block	O
specified	I-Code_Block	O
by	I-Code_Block	O
the	I-Code_Block	O
file	I-Code_Block	O
extension	I-Code_Block	O
.	I-Code_Block	O

Verified	B-Code_Block	O
that	I-Code_Block	O
the	I-Code_Block	O
file	I-Code_Block	O
is	I-Code_Block	O
not	I-Code_Block	O
corrupted	I-Code_Block	O
and	I-Code_Block	O
is	I-Code_Block	O
from	I-Code_Block	O
a	I-Code_Block	O
trusted	I-Code_Block	O
source	I-Code_Block	O
before	I-Code_Block	O
opening	I-Code_Block	O
the	I-Code_Block	O
file.	I-Code_Block	O
.	I-Code_Block	O
Do	I-Code_Block	O
you	I-Code_Block	O
want	I-Code_Block	O
to	I-Code_Block	O
open	I-Code_Block	O
the	I-Code_Block	O
file	I-Code_Block	O
now	I-Code_Block	O
?	I-Code_Block	O

When	O	O
I	O	O
do	O	O
'	O	O
yes	O	O
'	O	O
,	O	O
I	O	O
get	O	O
this	O	O
.	O	O

Bit	O	O
strange	O	O
,	O	O
any	O	O
input	O	O
here	O	O
friends	O	O
please	O	O
?	O	O

I	O	O
always	O	O
use	O	O
content	O	O
type	O	B-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
application/ms	O	I-Code_Block
-excel	O	I-Code_Block
"	O	I-Code_Block

Well	O	O
,	O	O
this	O	O
one	O	O
suddenly	O	O
got	O	O
solved	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
know	O	O
how	O	O
.	O	O

This	O	O
is	O	O
what	O	O
I	O	O
did	O	O
.	O	O

I	O	O
copied	O	O
and	O	O
pasted	O	O
codes	O	O
of	O	O
a	O	O
different	O	O
page	O	B-User_Interface_Element
where	O	O
the	O	O
excel	O	B-File_Type
thing	O	O
was	O	O
working	O	O
.	O	O

Then	O	O
,	O	O
I	O	O
changed	O	O
the	O	O
variables	O	O
manually	O	O
to	O	O
adapt	O	O
this	O	O
with	O	O
the	O	O
2nd	O	O
page	O	B-User_Interface_Element
.	O	O

After	O	O
some	O	O
hit	O	O
and	O	O
try	O	O
,	O	O
it	O	O
suddenly	O	O
worked	O	O
.	O	O

Thanks	O	O
for	O	O
all	O	O
the	O	O
answers	O	O
anyway	O	O
.	O	O

PS	O	O
.	O	O

By	O	O
solved	O	O
,	O	O
I	O	O
mean	O	O
that	O	O
excel	O	B-Application
is	O	O
not	O	O
crushing	O	O
anymore	O	O
,	O	O
though	O	O
I	O	O
am	O	O
still	O	O
getting	O	O
the	O	O
confirm	O	B-User_Interface_Element
box	O	I-User_Interface_Element
about	O	O
incorrect	O	O
format	O	O
.	O	O

Screen	O	O
Shot	O	O
I	O	O
am	O	O
developing	O	O
an	O	O
application	O	O
using	O	O
Xamarin	O	B-Library
Forms	O	I-Library
in	O	O
Visual	O	B-Application
Studio	O	I-Application
2013	O	B-Version
.	O	O

I	O	O
have	O	O
managed	O	O
to	O	O
change	O	O
the	O	O
Header	O	B-User_Interface_Element
Background	O	I-User_Interface_Element
color	O	I-User_Interface_Element
for	O	O
Android	O	B-Operating_System
but	O	O
I	O	O
am	O	O
failing	O	O
to	O	O
do	O	O
the	O	O
same	O	O
for	O	O
Windows	O	B-Operating_System
project	O	O
.	O	O

It	O	O
comes	O	O
with	O	O
the	O	O
Default	O	O
Dark	O	O
theme	O	O
.	O	O

Please	O	O
Assist	O	O
me	O	O
.	O	O

Thank	O	O
You	O	O

Your	O	O
question	O	O
is	O	O
not	O	O
very	O	O
clear	O	O
to	O	O
me	O	O
,	O	O
but	O	O
I	O	O
think	O	O
that	O	O
this	O	O
is	O	O
what	O	O
you	O	O
mean	O	O
.	O	O

With	O	O
"	O	O
Header	O	B-User_Interface_Element
Background	O	I-User_Interface_Element
color	O	I-User_Interface_Element
"	O	O
I	O	O
think	O	O
you	O	O
mean	O	O
the	O	O
background	O	B-User_Interface_Element
color	O	I-User_Interface_Element
of	O	O
the	O	O
title	O	O
of	O	O
a	O	O
page	O	O
.	O	O

This	O	O
is	O	O
the	O	O
code	O	O
I	O	O
use	O	O
in	O	O
my	O	O
Xamarin.Forms	O	B-Library
application	O	O
.	O	O

The	O	O
code	O	O
works	O	O
on	O	O
Android	O	B-Operating_System
,	O	O
iOS	O	B-Operating_System
and	O	O
UWP	O	B-Library
.	O	O

You	O	O
can	O	O
specify	O	O
the	O	O
color	O	O
of	O	O
the	O	O
background	O	B-User_Interface_Element
color	O	I-User_Interface_Element
on	O	O
every	O	O
page	O	B-User_Interface_Element
.	O	O

This	O	O
is	O	O
my	O	O
code	O	O
:	O	O

It	O	O
does	O	O
n't	O	O
work	O	O
.	O	O

When	O	O
I	O	O
debug	O	O
it	O	O
(	O	O
trying	O	O
to	O	O
search	O	O
a	O	O
number	O	O
that	O	O
appears	O	O
in	O	O
an	O	O
array	O	B-Data_Structure
)	O	O
,	O	O
I	O	O
see	O	O
that	O	O
it	O	O
goes	O	O
into	O	O
the	O	O
line	O	O
of	O	O
'	O	O
return	O	B-Code_Block
size	O	I-Code_Block
'	O	O
,	O	O
which	O	O
it	O	O
should	O	O
do	O	O
(	O	O
side	O	O
question	O	O
-	O	O
is	O	O
there	O	O
a	O	O
way	O	O
to	O	O
put	O	O
line	O	O
numbers	O	O
in	O	O
the	O	O
code.	O	O
.	O	O
)	O	O
but	O	O
then	O	O
it	O	O
keeps	O	O
going	O	O
to	O	O
the	O	O
last	O	O
line	O	O
and	O	O
returns	O	O
-1	O	B-Value
.	O	O

How	O	O
come	O	O
I	O	O
have	O	O
a	O	O
return	O	B-Code_Block
and	O	O
it	O	O
does	O	O
n't	O	O
go	O	O
out	O	O
of	O	O
the	O	O
function	O	O
?	O	O

I	O	O
first	O	O
tried	O	O
not	O	O
to	O	O
put	O	O
any	O	O
return	O	B-Code_Block
in	O	O
the	O	O
end	O	O
because	O	O
I	O	O
am	O	O
not	O	O
supposed	O	O
to	O	O
reach	O	O
to	O	O
the	O	O
end	O	O
,	O	O
but	O	O
the	O	O
compiler	O	B-Application
says	O	O
"	O	O
control	O	O
reaches	O	O
end	O	O
of	O	O
non-void	O	O
function	O	O
"	O	O
so	O	O
I	O	O
added	O	O
the	O	O
last	O	O
return	O	B-Code_Block
,	O	O
but	O	O
obviously	O	O
it	O	O
is	O	O
not	O	O
the	O	O
right	O	O
thing	O	O
to	O	O
do.	O	O
.	O	O

Thanks	O	O

You	O	O
should	O	O
return	O	O
the	O	O
results	O	O
of	O	O
the	O	O
recursive	O	O
call	O	O

Replaced	O	O
recursive	O	O
call	O	O
to	O	O
:	O	O

Currently	O	O
,	O	O
you	O	O
are	O	O
just	O	O
calling	O	O
the	O	O
function	O	O
and	O	O
ignoring	O	O
the	O	O
return	O	O
value	O	O
.	O	O

It	O	O
is	O	O
actually	O	O
the	O	O
parent	O	O
going	O	O
into	O	O
return	B-Code_Block	O
-1	I-Code_Block	B-Value

If	O	O
you	O	O
goto	O	O
blgz.co	O	B-Website
on	O	O
firefox	O	B-Application
on	O	O
a	O	O
mac	O	B-Device
,	O	O
the	O	O
right	O	O
side	O	O
bar	O	B-User_Interface_Element
is	O	O
sitting	O	O
on	O	O
top	O	O
of	O	O
the	O	O
main	O	O
content	O	O
.	O	O

It	O	O
works	O	O
on	O	O
firefox	O	B-Application
on	O	O
windows	O	B-Operating_System
,	O	O
just	O	O
the	O	O
mac	O	B-Device
version	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
pinpoint	O	O
what	O	O
the	O	O
problem	O	O
is	O	O
.	O	O

=(	O	O
Any	O	O
help	O	O
please	O	O
.	O	O

reformat	O	O
the	O	O
div	O	B-HTML_XML_Tag
hierarchy	O	O
like	O	O
this	O	O
:	O	O

and	O	O
float	O	O
them	O	O
all	O	O
left	O	O
.	O	O

the	O	O
issue	O	O
is	O	O
that	O	O
the	O	O
#content	O	B-Code_Block
-inner	O	I-Code_Block
is	O	O
now	O	O
inside	O	O
#content	O	B-Code_Block
and	O	O
as	O	O
I	O	O
understood	O	O
,	O	O
the	O	O
sidebar-second	O	B-Variable
should	O	O
float	O	O
to	O	O
the	O	O
#content	O	B-Code_Block
-inner	O	I-Code_Block
.	O	O

however	O	O
,	O	O
the	O	O
structure	O	O
of	O	O
divs	O	B-HTML_XML_Tag
seems	O	O
to	O	O
me	O	O
too	O	O
much	O	O
complicated	O	O
for	O	O
such	O	O
a	O	O
simple	O	O
layout.	O	O
.	O	O

Using	O	O
core	O	O
data	O	O
,	O	O
data	O	O
is	O	O
being	O	O
fetched	O	O
properly	O	O
and	O	O
shown	O	O
properly	O	O
,	O	O
issue	O	O
is	O	O
with	O	O
the	O	O
search	O	O
that	O	O
it	O	O
does	O	O
not	O	O
filter	O	O
the	O	O
results	O	O
,	O	O
whatever	O	O
I	O	O
type	O	O
in	O	O
the	O	O
search	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
,	O	O
it	O	O
does	O	O
show	O	O
the	O	O
same	O	O
table	O	B-User_Interface_Element
view	O	O
with	O	O
same	O	O
data	O	O
in	O	O
the	O	O
filtered	O	O
results.	O	O
.	O	O

Fetching	O	O
data	O	O
from	O	O
core	O	O
data	O	O
:	O	O

Search	O	B-User_Interface_Element
bar	O	I-User_Interface_Element
implementation	O	O
:	O	O

How	O	O
to	O	O
resolve	O	O
this	O	O
issue	O	O
?	O	O

Just	O	O
make	O	O
code	O	O
clear	O	O
before	O	O
and	O	O
define	O	O
every	O	O
methods	O	O
,	O	O
you	O	O
are	O	O
just	O	O
setting	O	O
predicate	O	O
,	O	O
not	O	O
firing	O	O
query	O	O
for	O	O
it	O	O
.	O	O

just	O	O
make	O	O
separate	O	O
method	O	O
and	O	O
just	O	O
pass	O	O
search	O	B-Variable
text	O	I-Variable
as	O	O
parameter	O	O
to	O	O
that	O	O
method	O	O
for	O	O
predicate	O	O
and	O	O
fire	O	O
fetch	O	O
query	O	O
then	O	O
reload	O	O
table	O	B-Data_Structure
.	O	O

I	O	O
'm	O	O
building	O	O
a	O	O
form	O	B-User_Interface_Element
that	O	O
let	O	O
the	O	O
user	O	O
enter	O	O
database	O	O
connection	O	O
parameters	O	O
.	O	O

Once	O	O
the	O	O
parameters	O	O
are	O	O
typed	O	O

the	O	O
user	O	O
can	O	O
test	O	O
(	O	O
btnTester	O	B-Value
)	O	O
if	O	O
connection	O	O
can	O	O
be	O	O
established	O	O
with	O	O
its	O	O
parameters	O	O
.	O	O

In	O	O
all	O	O
cases	O	O
,	O	O
a	O	O
message	O	O
is	O	O
produced	O	O
for	O	O
the	O	O
user	O	O
.	O	O

Here	O	O
the	O	O
example	O	O
of	O	O
a	O	O
failed	O	O
connection	O	O
attempt	O	O
from	O	O
backing	O	B-Library
bean	O	I-Library
code	O	O
:	O	O

Here	O	O
is	O	O
the	O	O
form	O	O
code	O	O
.	O	O

I	O	O
'd	O	O
like	O	O
the	O	O
message	O	O
to	O	O
appear	O	O
in	O	O
a	O	O
p:message	O	B-HTML_XML_Tag
.	O	O

Unfortunately	O	O
,	O	O
nothing	O	O
happen	O	O
.	O	O

No	O	O
message	O	O
(	O	O
connection	O	O
successful	O	O
or	O	O
not	O	O
)	O	O
is	O	O
displayed	O	O
after	O	O
the	O	O
button	O	B-User_Interface_Element
:\	O	O

Even	O	O
with	O	O
the	O	O
global	O	B-Data_Type
attribute	O	O
set	O	O
to	O	O
false	O	B-Value
or	O	O
true	O	B-Value
.	O	O

What	O	O
am	O	O
I	O	O
missing	O	O
?	O	O

I	O	O
use	O	O
a	O	O
growl	O	B-Library
instead	O	O
of	O	O
a	O	O
message	O	O
for	O	O
solving	O	O
my	O	O
problem	O	O
.	O	O

Here	O	O
"	O	O
for	O	O
"	O	O
attribute	O	O
wo	O	O
n't	O	O
work	O	O
for	O	O
p:message	O	B-HTML_XML_Tag
use	O	O
p:messages	O	B-HTML_XML_Tag
instead	O	O
.	O	O

I	O	O
have	O	O
inferred	O	O
from	O	O
my	O	O
searches	O	O
that	O	O
the	O	O
URI	O	O
for	O	O
a	O	O
Google	O	B-Application
Calendar	O	I-Application
feed	O	O
that	O	O
limits	O	O
the	O	O
date	O	O
range	O	O
should	O	O
include	O	O
timeMin	O	B-Variable
and	O	O
timeMax	O	B-Variable
and	O	O
should	O	O
also	O	O
include	O	O
singleEvents	O	B-Variable
and	O	O
orderBy	O	B-Variable
.	O	O

This	O	O
is	O	O
the	O	O
URI	O	O
that	O	O
I	O	O
've	O	O
constructed	O	O
:	O	O

https://www.google.com/calendar/ical/myuserid@gmail.com/public/full?singleEvents=true&orderBy=startTime&timeMin=2014-01-01T00:00:00&timeMax=2018-03-24T23:59:59	O	O

Regardless	O	O
of	O	O
what	O	O
query	O	O
parameters	O	O
I	O	O
put	O	O
after	O	O
the	O	O
projection	O	O
value	O	O
,	O	O
I	O	O
still	O	O
get	O	O
back	O	O
all	O	O
events	O	O
dating	O	O
from	O	O
8/2008	O	O
through	O	O
whatever	O	O
future	O	O
dates	O	O
I	O	O
have	O	O
in	O	O
the	O	O
calendar	O	B-Application
.	O	O

I	O	O
really	O	O
am	O	O
"	O	O
constructing	O	O
"	O	O
this	O	O
based	O	O
on	O	O
very	O	O
little	O	O
knowledge	O	O
.	O	O

Can	O	O
anyone	O	O
set	O	O
me	O	O
straight	O	O
,	O	O
please	O	O
?	O	O

Mastoll	O	O
,	O	O
I	O	O
think	O	O
you	O	O
are	O	O
using	O	O
calendar	O	B-Application
v3	O	B-Version
,	O	O
is	O	O
that	O	O
right	O	O
?	O	O

You	O	O
may	O	O
try	O	O
:	O	O

https://www.google.com/calendar/ical/myuserid@gmail.com/public/full?singleEvents=true&orderBy=startTime&start-min=2014-01-01T00:00:00&start-max=2018-03-24T23:59:59&	O	O

You	O	O
can	O	O
try	O	O
using	O	O
start-min	O	B-Variable
and	O	O
start-max	O	B-Variable
instead	O	O
of	O	O
timeMin	O	B-Variable
and	O	O
timeMax	O	B-Variable
.	O	O

This	O	O
is	O	O
the	O	O
parameter	O	O
for	O	O
calendar	O	B-Application
v2	O	B-Version
,	O	I-Version
I	O	O
do	O	O
n't	O	O
why	O	O
,	O	O
but	O	O
v2	O	B-Version
parameter	O	O
works	O	O
for	O	O
public	O	O
calendar	O	B-Application
.	O	O

You	O	O
can	O	O
also	O	O
add	O	O
the	O	O
futureevents	O	B-Code_Block
=	O	I-Code_Block
true	O	I-Code_Block
parameter	O	O
.	O	O

For	O	O
the	O	O
details	O	O
information	O	O
for	O	O
v2	O	B-Version
,	O	O
please	O	O
refer	O	O
to	O	O
the	O	O
following	O	O
:	O	O

https://developers.google.com/google-apps/calendar/v2/reference?hl=de&csw=1#Parameters	O	O

It	O	O
also	O	O
took	O	O
me	O	O
quite	O	O
some	O	O
trials	O	O
and	O	O
errors	O	O
to	O	O
realize	O	O
that	O	O
offset	O	B-Variable
is	O	O
actually	O	O
mandatory	O	O
,	O	O
not	O	O
optional	O	O
,	O	O
as	O	O
documented	O	O
in	O	O

https://developers.google.com/google-apps/calendar/concepts	O	O

Try	O	O
to	O	O
add	O	O
"	O	B-Value
Z	O	I-Value
"	O	I-Value
to	O	O
the	O	O
end	O	O
of	O	O
your	O	O
URL	O	O
:	O	O

https://www.google.com/calendar/ical/myuserid@gmail.com/public/full?singleEvents=true&orderBy=startTime&timeMin=2014-01-01T00:00:00Z&timeMax=2018-03-24T23:59:59Z	O	O

Given	O	O
an	O	O
XML	O	B-File_Type
file	O	O
of	O	O
offerings	O	O
that	O	O
is	O	O
then	O	O
loaded	O	O
into	O	O
a	O	O
class	O	O
called	O	O
Offerings	O	B-Class
via	O	O
JAXB	O	B-Library
.	O	O

This	O	O
class	O	O
has	O	O
the	O	O
following	O	O
:	O	O

Name	O	B-Variable
,	O	O
Price	O	B-Variable
sub-Class	O	O
,	O	O
Modifiers	O	B-Class
,	O	O
Ordering	O	O
Rules	O	O
etc	O	O
.	O	O

I	O	O
then	O	O
create	O	O
an	O	O
order	O	O
and	O	O
within	O	O
that	O	O
order	O	O

Order	O	B-Class

Order	O	B-Class
Item	O	I-Class

Offering	O	B-Class

The	O	O
Offering	O	B-Class
and	O	O
Modifiers	O	B-Class
are	O	O
classes	O	O
with	O	O
JAXB	O	B-Library
already	O	O
which	O	O
I	O	O
only	O	O
want	O	O
to	O	O
push	O	O
part	O	O
of	O	O
the	O	O
XML	O	B-Language
.	O	O

How	O	O
would	O	O
I	O	O
change	O	O
the	O	O
anotations	O	O
such	O	O
that	O	O
only	O	O
part	O	O
of	O	O
the	O	O
elements	O	O
are	O	O
sent	O	O
?	O	O

For	O	O
example	O	O
not	O	O
the	O	O
offering	O	B-Class
->	O	O
modifiers	O	B-Class
?	O	O

Use	O	O
@XmlTransient	B-Code_Block	B-Class
instead	O	O
of	O	O
the	O	O
@XmlElement	B-Code_Block	B-Class
tag	O	O
.	O	O

I	O	O
have	O	O
downloaded	O	O
this	O	O
twitter	O	B-Website
source	O	O
code	O	O

http://www.silverlightshow.net/items/Silvester-A-Silverlight-Twitter-Widget.aspx	O	O

After	O	O
opening	O	O
in	O	O
VS	O	B-Application
2010	O	B-Version
and	O	O
setting	O	O
the	O	O
web	O	O
project	O	O
as	O	O
startup	O	O
I	O	O
run	O	O
it	O	O
in	O	O
IE	O	B-Application
9	O	B-Version
but	O	O
then	O	O
IE	O	B-Application
9	O	B-Version
asks	O	O
me	O	O
to	O	O
install	O	O
silverlight	O	B-Library
I	O	O
said	O	O
OK	O	O
at	O	O
the	O	O
end	O	O
it	O	O
says	O	O
it	O	O
cannot	O	O
install	O	O
because	O	O
it	O	O
's	O	O
already	O	O
installed	O	O
so	O	O
in	O	O
the	O	O
end	O	O
I	O	O
cannot	O	O
run	O	O
the	O	O
app	O	O
.	O	O

Is	O	O
this	O	O
clearly	O	O
a	O	O
bug	O	O
?	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
fix	O	O
this	O	O
as	O	O
this	O	O
app	O	O
was	O	O
developer	O	O
maybe	O	O
in	O	O
older	O	O
version	O	O
of	O	O
silverlight	O	B-Library
?	O	O

Try	O	O
downloading	O	O
the	O	O
very	O	O
latest	O	O
(	O	O
Feb	O	O
201	O	O
1)	O	O
developer	O	O
runtime	O	O
for	O	O
Silverlight	O	B-Library
4	O	B-Version
which	O	O
is	O	O
found	O	O
here	O	O
.	O	O

http://ie.microsoft.com/testdrive/Browser/ActiveXFiltering/About.html	O	O

We	O	O
've	O	O
seen	O	O
this	O	O
code	O	O
around	O	O
the	O	O
net	O	O
at	O	O
one	O	O
point	O	O
or	O	O
another	O	O
and	O	O
has	O	O
proven	O	O
to	O	O
work	O	O
perfectly	O	O
fine	O	O
;	O	O
however	O	O
,	O	O
on	O	O
my	O	O
Windows	O	B-Operating_System
10	O	B-Version
machine	O	O
,	O	O
though	O	O
it	O	O
may	O	O
compile	O	O
,	O	O
there	O	O
is	O	O
no	O	O
audio	O	O
to	O	O
speak	O	O
of	O	O
once	O	O
running	O	O
.	O	O

On	O	O
Windows	O	B-Operating_System
7	O	B-Version
it	O	O
was	O	O
working	O	O
perfectly	O	O
,	O	O
but	O	O
once	O	O
I	O	O
moved	O	O
to	O	O
Windows	O	B-Operating_System
10	O	B-Version
,	O	O
there	O	O
is	O	O
no	O	O
audio	O	O
and	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
solution	O	O
for	O	O
months	O	O
.	O	O

Does	O	O
any	O	O
one	O	O
have	O	O
any	O	O
idea	O	O
why	O	O
this	O	O
does	O	O
not	O	O
wish	O	O
to	O	O
work	O	O
on	O	O
Windows	O	B-Operating_System
10	O	B-Version
?	O	O

Is	O	O
there	O	O
a	O	O
simple	O	O
settings	O	O
change	O	O
that	O	O
needs	O	O
to	O	O
be	O	O
made	O	O
that	O	O
I	O	O
'm	O	O
not	O	O
aware	O	O
of	O	O
?	O	O

Thank	O	O
you	O	O
!	O	O

I	O	O
am	O	O
trying	O	O
to	O	O
deploy	O	O
and	O	O
test	O	O
a	O	O
Universal	O	B-Application
Windows	O	I-Application
App	O	I-Application
to	O	O
a	O	O
Surface	O	B-Device
Pro	O	I-Device
3	O	B-Version
directly	O	O
from	O	O
Visual	O	B-Application
Studio	O	I-Application
2013	O	B-Version
(	O	O
Update	O	B-Version
4)	O	I-Version
and	O	O
I	O	O
am	O	O
unable	O	O
to	O	O
launch	O	O
the	O	O
App	O	O
(	O	O
by	O	O
hitting	O	O
F	O	B-Keyboard_IP
5)	O	I-Keyboard_IP
.	O	O

I	O	O
am	O	O
running	O	O
into	O	O
the	O	O
following	O	O
error	O	O
and	O	O
not	O	O
able	O	O
to	O	O
find	O	O
a	O	O
fix	O	O
to	O	O
it	O	O
.	O	O

There	O	O
are	O	O
a	O	O
bunch	O	O
of	O	O
solutions	O	O
of	O	O
DEP0700	O	B-Error_Name
errors	O	O
online	O	O
,	O	O
but	O	O
none	O	O
of	O	O
them	O	O
work	O	O
for	O	O
the	O	O
specific	O	O
sub-error	O	O
message	O	O
Cannot	O	O
map	O	O
the	O	O
serial	O	O
well-known	O	O
device	O	O
name	O	O
to	O	O
a	O	O
device	O	O
interface	O	O
GUID	O	O
(	O	O
blah	O	O
blah	O	O
blah	O	O
)	O	O

Here	O	O
is	O	O
the	O	O
error	O	O
that	O	O
I	O	O
am	O	O
seeing	O	O

Have	O	O
you	O	O
declared	O	O
any	O	O
serial	O	O
communication	O	O
in	O	O
your	O	O
AppxManifest	O	B-File_Name
file	O	O
?	O	O

If	O	O
your	O	O
other	O	O
apps	O	O
work	O	O
,	O	O
your	O	O
issue	O	O
might	O	O
be	O	O
because	O	O
opening/editing	O	O
ApxManifest	O	B-File_Name
file	O	O
in	O	O
the	O	O
designer	O	B-Application
.	O	O

Try	O	O
making	O	O
a	O	O
new	O	O
solution	O	O
,	O	O
and	O	O
edit	O	O
the	O	O
manifest	O	B-File_Name
through	O	O
only	O	O
through	O	O
XML	O	B-Application
Editor	O	I-Application
,	O	O
if	O	O
required	O	O
&	O	O
do	O	O
not	O	O
open	O	O
with	O	O
the	O	O
designer	O	B-Application
.	O	O

Reference	O	O
for	O	O
more	O	O
information	O	O
:	O	O

http://ms-iot.github.io/content/en-US/win10/samples/SerialSample.htm	O	O

"	O	O
Visual	O	B-Application
Studio	O	I-Application
2015	O	B-Version
has	O	O
a	O	O
known	O	O
bug	O	O
in	O	O
the	O	O
Manifest	O	B-Application
Designer	O	I-Application
(	O	O
the	O	O
visual	O	B-Application
editor	O	I-Application
for	O	O
appxmanifest	O	B-File_Name
files	O	O
)	O	O
that	O	O
affects	O	O
the	O	O
serialcommunication	O	O
capability	O	O
.	O	O

If	O	O

your	O	O
appxmanifest	O	B-File_Name
adds	O	O
the	O	O
serialcommunication	O	O
capability	O	O
,	O	O
modifying	O	O
your	O	O
appxmanifest	O	B-File_Name
with	O	O
the	O	O
designer	O	B-Application
will	O	O
corrupt	O	O
your	O	O
appxmanifest	O	B-File_Name
(	O	O
the	O	O
Device	O	O
xml	O	B-Language
child	O	O
will	O	O
be	O	O
lost	O	O
)	O	O
.	O	O

You	O	O
can	O	O
workaround	O	O
this	O	O
problem	O	O
by	O	O
hand	O	O
editting	O	O
the	O	O
appxmanifest	O	B-File_Name
by	O	O
right-clicking	O	O
your	O	O
appxmanifest	O	B-File_Name
and	O	O
selecting	O	O
View	O	O
Code	O	O
from	O	O
the	O	O
context	O	O
menu	O	B-User_Interface_Element
.	O	O
"	O	O

I	O	O
have	O	O
a	O	O
really	O	O
simple	O	O
bit	O	O
of	O	O
code	O	O
that	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
in	O	O
Ms	O	B-Application
Access	O	I-Application
2010	O	B-Version
.	O	O

I	O	O
want	O	O
a	O	O
control	O	O
on	O	O
a	O	O
form	O	B-User_Interface_Element
to	O	O
open	O	O
a	O	O
word	O	B-File_Type
document	O	O
.	O	O

I	O	O
've	O	O
tried	O	O
several	O	O
things	O	O
but	O	O
the	O	O
simplest	O	O
piece	O	O
of	O	O
code	O	O
I	O	O
've	O	O
cobbled	O	O
together	O	O
is	O	O
as	O	O
follows	O	O
:	O	O

This	O	O
compiles	O	O
but	O	O
when	O	O
I	O	O
run	O	O
it	O	O
without	O	O
Word	O	B-Application
being	O	O
open	O	O
I	O	O
get	O	O
"	O	O
run	O	B-Error_Name
time	O	I-Error_Name
429	O	I-Error_Name
error	O	I-Error_Name
:	O	O
activex	O	O
component	O	O
ca	O	O
n't	O	O
create	O	O
object	O	O
.	O	O

With	O	O
Word	O	B-Application
open	O	O
I	O	O
get	O	O
a	O	O
new	O	O
document	O	O
opening	O	O
.	O	O

I	O	O
have	O	O
tried	O	O
updating	O	O
references	O	O
to	O	O
ADO	O	B-Application
6.0	O	B-Version
to	O	O
no	O	O
avail	O	O
.	O	O

I	O	O
'm	O	O
new	O	O
to	O	O
VBA	O	B-Language
so	O	O
any	O	O
help	O	O
appreciated	O	O
.	O	O

You	O	O
can	O	O
generally	O	O
open	O	O
a	O	O
file	O	O
with	O	O
the	O	O
registered	O	O
application	O	O
with	O	O
FollowHyperlink	O	B-Function
.	O	O

Otherwise	O	O
,	O	O
you	O	O
can	O	O
use	O	O
CreateObject	O	B-Function
when	O	O
Word	O	B-Application
is	O	O
not	O	O
running	O	O
.	O	O

I	O	O
want	O	O
vim	O	B-Application
to	O	O
start	O	O
highlighting	O	O
matches	O	O
right	O	O
away	O	O
as	O	O
I	O	O
type	O	O
after	O	O
typing	O	O
'	O	O
/	O	B-Keyboard_IP
'	O	O
.	O	O

But	O	O
that	O	O
highlight	O	O
color	O	O
should	O	O
be	O	O
different	O	O
from	O	O
the	O	O
color	O	O
of	O	O
the	O	O
existing	O	O
matches	O	O
.	O	O

Example	O	O
,	O	O
I	O	O
have	O	O
the	O	O
following	O	O
text	O	O
:	O	O

foo	O	B-Value
bar	O	I-Value
baz	O	I-Value

After	O	O
the	O	O
end	O	O
of	O	O
this	O	O
sequence	O	O
:	O	O

(	O	O
Note	O	O
that	O	O
this	O	O
sequence	O	O
was	O	O
typed	O	O
in	O	O
normal	O	O
mode	O	O
and	O	O
no	O	O
<return>	B-Code_Block	B-Keyboard_IP
was	O	O
pressed	O	O
at	O	O
the	O	O
end	O	O
of	O	O
the	O	O
sequence	O	O
)	O	O

foo	O	B-Value
should	O	O
be	O	O
highlighted	O	O
with	O	O
one	O	O
color	O	O
(	O	O
call	O	O
it	O	O
"	O	O
found	O	O
match	O	O
"	O	O
color	O	O
)	O	O
and	O	O
bar	O	O
should	O	O
be	O	O
highlighted	O	O
with	O	O
another	O	O
color	O	O
(	O	O
the	O	O
incremental	O	O
search	O	O
color	O	O
)	O	O
.	O	O

You	O	O
cannot	O	O
do	O	O
this	O	O
with	O	O
the	O	O
built-in	O	O
search	O	O
.	O	O

Vim	O	B-Application
will	O	O
always	O	O
highlight	O	O
the	O	O
next	O	O
match	O	O
with	O	O
IncSearch	B-Code_Block	B-Code_Block
,	O	O
and	O	O
all	O	O
other	O	O
matches	O	O
(	O	O
of	O	O
the	O	O
same	O	O
,	O	O
currently	O	O
typed	O	O
pattern	O	O
)	O	O
with	O	O
the	O	O
Search	B-Code_Block	B-Code_Block
highlight	O	O
group	O	O
(	O	O
assuming	O	O
you	O	O
have	O	O
:set	B-Code_Block	B-Code_Block
hlsearch	I-Code_Block	I-Code_Block
incsearch	I-Code_Block	I-Code_Block
)	O	O
.	O	O

If	O	O
you	O	O
want	O	O
to	O	O
keep	O	O
the	O	O
previous	O	O
match	O	O
,	O	O
you	O	O
have	O	O
to	O	O
define	O	O
your	O	O
own	O	O
highlighting	O	O
,	O	O
e.g	O	O
.	O	O
like	O	O
this	O	O
(	O	O
in	O	O
the	O	O
current	O	O
window	O	B-User_Interface_Element
only	O	O
)	O	O
:	O	O

plugin	O	B-Application
recommendations	O	O

If	O	O
you	O	O
need	O	O
more	O	O
than	O	O
one	O	O
concurrent	O	O
match	O	O
,	O	O
and	O	O
a	O	O
more	O	O
robust	O	O
implementation	O	O
that	O	O
covers	O	O
all	O	O
windows	O	B-User_Interface_Element
and	O	O
tabs	O	B-User_Interface_Element
(	O	O
and	O	O
a	O	O
lot	O	O
of	O	O
extra	O	O
features	O	O
)	O	O
,	O	O
have	O	O
a	O	O
look	O	O
at	O	O
my	O	O
Mark	O	B-Application
plugin	O	I-Application
.	O	O

(	O	O
The	O	O
plugin	O	B-Application
page	O	B-User_Interface_Element
has	O	O
links	O	O
to	O	O
alternative	O	O
plugins	O	B-Application
.	O	O
)	O	O

The	O	O
explanation	O	O
:	O	O

Working	O	O
with	O	O
two	O	O
input	O	O
streams	O	O
streams	O	O
,	O	O
both	O	O
use	O	O
getline()	B-Code_Block	B-Function
to	O	O
capture	O	O
the	O	O
user	O	O
input	O	O
.	O	O

The	O	O
first	O	O
getline()	B-Code_Block	B-Function
is	O	O
called	O	O
in	O	O
the	O	O
userStringPrompt()	B-Code_Block	B-Function
function	O	O
:	O	O

That	O	O
sets	O	O
a	O	O
string	O	B-Data_Type
that	O	O
the	O	O
program	O	O
will	O	O
use	O	O
later	O	O
to	O	O
perform	O	O
functions	O	O
,	O	O
like	O	O
count	O	O
its	O	O
consonants	O	O
,	O	O
its	O	O
vowels	O	O
,	O	O
etc	O	O
.	O	O

The	O	O
second	O	O
input	O	O
is	O	O
used	O	O
in	O	O
the	O	O
menu	O	O
selection	O	O
(	O	O
choose	O	O
what	O	O
function/method	O	O
to	O	O
perform	O	O
on	O	O
the	O	O
above	O	O
string	O	B-Data_Type
)	O	O
:	O	O

This	O	O
takes	O	O
in	O	O
a	O	O
user	O	O
input	O	O
:	O	O
A	B-Code_Block	B-Value
,	I-Code_Block	O
B	I-Code_Block	B-Value
,	I-Code_Block	O
C	I-Code_Block	B-Value
,	I-Code_Block	O
D	I-Code_Block	B-Value
,	I-Code_Block	O
E	I-Code_Block	B-Value
and	O	O
performs	O	O
an	O	O
action	O	O
.	O	O

For	O	O
example	O	O
,	O	O
if	O	O
a	O	O
user	O	O
inputs	O	O
into	O	O
the	O	O
first	O	O
input	O	O
stream	O	O
:	O	O

and	O	O
then	O	O
enter	O	O
"	O	O
A	O	B-Value
"	O	O
in	O	O
the	O	O
second	O	O
input	O	O
stream	O	O
,	O	O
it	O	O
should	O	O
count	O	O
the	O	O
vowels	O	O
in	O	O
hello	O	B-Value
,	O	O
then	O	O
return	O	O
the	O	O
number	O	O
from	O	O
the	O	O
calculation	O	O
,	O	O
e.g	O	O
.	O	O
2	O	B-Value

The	O	O
issue	O	O
:	O	O

The	O	O
program	O	O
functions	O	O
correctly	O	O
when	O	O
the	O	O
input	O	O
in	O	O
userStringPrompt	B-Code_Block	B-Function
is	O	O
without	O	O
spaces	O	B-Value
.	O	O

For	O	O
example	O	O
,	O	O
Hello	O	B-Value
works	O	O
,	O	O
but	O	O
Hello	O	B-Value
World	O	I-Value
would	O	O
break	O	O
the	O	O
application	O	O
and	O	O
cause	O	O
a	O	O
force	O	O
close	O	O
.	O	O

I	O	O
'm	O	O
not	O	O
sure	O	O
why	O	O
,	O	O
since	O	O
I	O	O
am	O	O
capturing	O	O
the	O	O
stream	O	O
with	O	O
getline(cin,	O	B-Function
string)	O	I-Function
.	O	O

The	O	O
entire	O	O
code	O	O
:	O	O

Any	O	O
guidance/hints	O	O
would	O	O
be	O	O
greatly	O	O
appreciated	O	O
.	O	O

I	O	O
'm	O	O
absolutely	O	O
confused	O	O
.	O	O

I	O	O
guess	O	O
your	O	O
program	O	O
is	O	O
not	O	O
crushing	O	O
,	O	O
it	O	O
's	O	O
just	O	O
normally	O	O
exits	O	O
.	O	O

which	O	O
is	O	O
ok	O	O
,	O	O
no	O	O
error	O	O
code	O	O
returned	O	O
.	O	O

When	O	O
you	O	O
run	O	O
your	O	O
program	O	O
it	O	O
asks	O	O
for	O	O
input	O	O
,	O	O
do	O	O
its	O	O
work	O	O
and	O	O
because	O	O
there	O	O
is	O	O
no	O	O
more	O	O
work	O	O
for	O	O
it	O	O
-	O	O
exits	O	O
.	O	O

To	O	O
see	O	O
the	O	O
output	O	O
you	O	O
can	O	O
do	O	O
one	O	O
of	O	O
the	O	O
following	O	O
:	O	O

Try	O	O
to	O	O
run	O	O
it	O	O
with	O	O
Ctrl	O	B-Keyboard_IP
+	O	I-Keyboard_IP
F5	O	I-Keyboard_IP
in	O	O
VS	O	B-Application
,	O	O
it	O	O
will	O	O
add	O	O
pause	B-Code_Block	B-Code_Block
command	O	O
to	O	O
the	O	O
end	O	O
.	O	O

Another	O	O
way	O	O
to	O	O
run	O	O
it	O	O
is	O	O
to	O	O
open	O	O
command	O	B-Application
line	O	I-Application
and	O	O
run	O	O
it	O	O
from	O	O
there	O	O
.	O	O

Also	O	O
in	O	O
your	O	O
case	O	O
I	O	O
guess	O	O
the	O	O
problem	O	O
is	O	O
in	O	O
break	B-Code_Block	B-Code_Block
statements	O	O
.	O	O

When	O	O
you	O	O
choose	O	O
what	O	O
to	O	O
do	O	O
with	O	O
the	O	O
string	O	B-Data_Type
you	O	O
break	O	O
your	O	O
loop	O	O
(	O	O
which	O	O
should	O	O
run	O	O
while	O	O
user	O	O
enters	O	O
e	B-Code_Block	B-Value
)	O	O
.	O	O

Remove	O	O
all	O	O
breaks	B-Code_Block	B-Code_Block
and	O	O
it	O	O
will	O	O
be	O	O
fine	O	O
.	O	O

IN	O	O
my	O	O
program	O	O
,	O	O
I	O	O
am	O	O
setting	O	O
the	O	O
constraints	O	O
for	O	O
my	O	O
view	O	O
using	O	O
nslayoutconstraints.the	O	B-Class
view	O	O
consists	O	O
of	O	O
a	O	O
tableview	O	B-Variable
,	O	O
collectionview	O	B-Variable
and	O	O
a	O	O
main	O	B-Variable
view.When	O	I-Variable
the	O	O
view	O	O
is	O	O
loaded	O	O
,	O	O
the	O	O
app	O	O
crashes	O	O
with	O	O
the	O	O
following	O	O
error	O	O

***	O	O
First	O	O
throw	O	O
call	O	O
stack	O	B-Data_Structure
:	O	O

(	O	B-Output_Block
0x27126d67	O	I-Output_Block
0x34c61c77	O	I-Output_Block
0x27047237	O	I-Output_Block
0x2704701b	O	I-Output_Block
0xe1333	O	I-Output_Block
0xe0bc1	O	I-Output_Block
0x1c6ca7	O	I-Output_Block
0x1d24e1	O	I-Output_Block
0x9b59cb	O	I-Output_Block
0x9b59b7	O	I-Output_Block
0x9b9411	O	I-Output_Block
0x270ecc41	O	I-Output_Block
0x270eb361	O	I-Output_Block
0x27038981	O	I-Output_Block
0x27038793	O	I-Output_Block
0x2e3e8051	O	I-Output_Block
0x2a62a981	O	I-Output_Block
0x1d72b5	O	I-Output_Block
0x351fdaaf	O	I-Output_Block
)	O	I-Output_Block

libc++	O	B-Output_Block
abi.dylib	O	I-Output_Block
:	O	I-Output_Block
terminating	O	I-Output_Block
with	O	I-Output_Block
uncaught	O	I-Output_Block
exception	O	I-Output_Block
of	O	I-Output_Block
type	O	I-Output_Block
NSException	O	I-Output_Block

The	O	O
value	O	O
of	O	O
the	O	O
tableview	O	B-Variable
is	O	O
"	O	O
NIL	O	B-Value
"	O	O

This	O	O
dictionary	O	B-Data_Structure
is	O	O
used	O	O
to	O	O
set	O	O
the	O	O
height	O	O
constraint	O	O
in	O	O
the	O	O
tableview	O	B-Variable
as	O	O
below	O	O

Why	O	O
is	O	O
it	O	O
that	O	O
the	O	O
value	O	O
of	O	O
tableview	O	B-Variable
is	O	O
nil	O	O
?	O	O
This	O	O
tablview	O	B-Variable
is	O	O
an	O	O
IBOUTLET	O	B-Class
from	O	O
storyboard.When	O	B-Application
i	O	O
allocate	O	O
memory	O	O
programatically	O	O
the	O	O
code	O	O
runs.but	O	O
the	O	O
tableview	O	B-Variable
is	O	O
not	O	O
loaded	O	O
with	O	O
data.Can	O	O
anyone	O	O
get	O	O
me	O	O
the	O	O
reason	O	O
?	O	O

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

Make	O	O
sure	O	O
you	O	O
're	O	O
not	O	O
calling	O	O
this	O	O
too	O	O
early	O	O
and	O	O
the	O	O
table	O	B-Variable
view	O	I-Variable
has	O	O
not	O	O
yet	O	O
been	O	O
created	O	O
.	O	O

Perhaps	O	O
you	O	O
are	O	O
executing	O	O
this	O	O
code	O	O
in	O	O
"	O	O
viewDidLoad	O	B-Function
"	O	O
,	O	O
maybe	O	O
try	O	O
viewWillAppear	O	B-Function
,	O	O
or	O	O
viewDidLayoutSubviews	O	B-Function
.	O	O

Please	O	O
ensure	O	O
you	O	O
're	O	O
synthesizing	O	O
correctly	O	O
to	O	O
that	O	O
property	O	O
.	O	O

I	O	O
have	O	O
set	O	O
a	O	O
error	O	O
message	O	O
where	O	O
if	O	O
is	O	O
redirected	O	O
to	O	O
this	O	O
login	O	O
controller	O	O
then	O	O
shows	O	O
this	O	O
message	O	O
below	O	O
.	O	O

Using	O	O
the	O	O
user_agent	O	B-Library
library	O	O
which	O	O
I	O	O
have	O	O
auto	O	O
loaded	O	O
.	O	O

Question	O	O
:	O	O
I	O	O
would	O	O
like	O	O
to	O	O
know	O	O
if	O	O
possible	O	O
to	O	O
ignore	O	O
message	O	O
if	O	O
redirected	O	O
from	O	O
my	O	O
logout	O	O
controller	O	O
.	O	O

Try	O	O
something	O	O
like	O	O
:	O	O

This	O	O
should	O	O
work	O	O
,	O	O
it	O	O
can	O	O
be	O	O
optimized	O	O
a	O	O
little	O	O
but	O	O
this	O	O
give	O	O
you	O	O
the	O	O
idea	O	O
.	O	O

The	O	O
if	O	O
statement	O	O
should	O	O
evaluate	O	O
to	O	O
true	O	B-Value
on	O	O
all	O	O
referrers	O	O
except	O	O
from	O	O
ones	O	O
that	O	O
come	O	O
from	O	O
whatever	O	O
the	O	O
url	O	O
is	O	O
of	O	O
your	O	O
logout	O	O
page	O	O
.	O	O

Does	O	O
this	O	O
make	O	O
sense	O	O
?	O	O

I	O	O
want	O	O
to	O	O
get	O	O
the	O	O
Browser	O	B-Application
cookies	O	O
using	O	O
JavaScript.I	O	B-Language
tried	O	O
the	O	O
below	O	O
code	O	O
,	O	O
but	O	O
i	O	O
am	O	O
not	O	O
getting	O	O
the	O	O
cross	O	O
domain	O	O
cookies	O	O
.	O	O

Here	O	O
is	O	O
the	O	O
code	O	O
:	O	O

Does	O	O
anybody	O	O
solve	O	O
this	O	O
.	O	O

In	O	O
most	O	O
situations	O	O
,	O	O
you	O	O
cannot	O	O
read	O	O
cross	O	O
domain	O	O
cookies	O	O
,	O	O
for	O	O
security	O	O
reasons	O	O
.	O	O

Each	O	O
cookie	O	O
has	O	O
a	O	O
domain	O	O
of	O	O
definition	O	O
,	O	O
and	O	O
your	O	O
browser	O	B-Application
reads	O	O
those	O	O
to	O	O
decide	O	O
which	O	O
cookies	O	O
you	O	O
can	O	O
read	O	O
according	O	O
to	O	O
which	O	O
domain	O	O
you	O	O
're	O	O
on	O	O
.	O	O

If	O	O
you	O	O
have	O	O
control	O	O
of	O	O
both	O	O
domains	O	O
,	O	O
you	O	O
can	O	O
modify	O	O
cookie	O	O
settings	O	O
on	O	O
domain	O	O
B	O	B-Variable
to	O	O
allow	O	O
them	O	O
to	O	O
be	O	O
read	O	O
by	O	O
domain	O	O
A	O	B-Variable
,	O	O
or	O	O
code	O	O
a	O	O
cookie	O	O
getter	O	O
to	O	O
get	O	O
the	O	O
values	O	O
.	O	O

Be	O	O
creative	O	O
!	O	O

I	O	O
'm	O	O
using	O	O
the	O	O
Clean	O	B-Application
URLs	O	I-Application
Plugin	O	O
and	O	O
I	O	O
end	O	O
up	O	O
having	O	O
redundant	O	O
files	O	O
in	O	O
my	O	O
/out/	O	B-File_Name
directory	O	O
after	O	O
docpad	B-Code_Block	B-Code_Block
generate	I-Code_Block	I-Code_Block
--env	I-Code_Block	I-Code_Block
static	I-Code_Block	I-Code_Block
:	O	O
one	O	O
content.html	O	B-File_Name
and	O	O
the	O	O
same	O	O
in	O	O
/content/index.html	O	B-File_Name

I	O	O
suppose	O	O
that	O	O
's	O	O
a	O	O
wrong	O	O
behaviour	O	O
?	O	O

Does	O	O
it	O	O
result	O	O
because	O	O
docpad	B-Code_Block	B-Code_Block
run	I-Code_Block	I-Code_Block
creates	O	O
the	O	O
files	O	O
for	O	O
the	O	O
non	O	O
static	O	O
behavious	O	O
,	O	O
and	O	O
docpad	B-Code_Block	B-Code_Block
generate	I-Code_Block	I-Code_Block
--env	I-Code_Block	I-Code_Block
static	I-Code_Block	I-Code_Block
the	O	O
other	O	O
ones	O	O
afterwards	O	O
?	O	O

To	O	O
answer	O	O
my	O	O
own	O	O
question	O	O
:	O	O

I	O	O
was	O	O
looking	O	O
at	O	O
a	O	O
file	O	O
where	O	O
something	O	O
went	O	O
wrong	O	O
.	O	O

Now	O	O
there	O	O
are	O	O
still	O	O
the	O	O
redundant	O	O
html	O	B-File_Type
files	O	O
at	O	O
first	O	O
sight	O	O
,	O	O
but	O	O
the	O	O
ones	O	O
in	O	O
the	O	O
root	O	O
redirect	O	O
to	O	O
the	O	O
others	O	O
.	O	O

So	O	O
all	O	O
good	O	O
.	O	O

When	O	O
I	O	O
looked	O	O
before	O	O
for	O	O
some	O	O
reasons	O	O
I	O	O
caught	O	O
a	O	O
strange	O	O
glitch	O	O
.	O	O

Basically	O	O
no	O	O
users	O	O
with	O	O
iOS	O	B-Operating_System
6	O	B-Version
should	O	O
be	O	O
able	O	O
to	O	O
download	O	O
the	O	O
apps	O	O
.	O	O

That	O	O
's	O	O
it	O	O
.	O	O

I	O	O
also	O	O
want	O	O
to	O	O
use	O	O
iOS	O	B-Application
7	O	I-Application
sdk	O	I-Application
.	O	O

How	O	O
do	O	O
I	O	O
do	O	O
so	O	O
?	O	O

Put	O	O
it	O	O
on	O	O
the	O	O
main	O	O
screenshot	O	O
.	O	O

"	O	O
Only	O	O
supports	O	O
IOS	O	B-Operating_System
7	O	B-Version
"	O	O
.	O	O

1.Open	O	O
your	O	O
project	O	O
in	O	O
Xcode	O	B-Application
5.0	O	B-Version

2.Select	O	O
project->Targets->your	O	O
project->Search	O	O
For	O	O
IOS	O	B-Operating_System
Deployment	O	O
Target	O	O
and	O	O
change	O	O
it	O	O
to	O	O
"	O	O
7.0	O	B-Version
"	O	O

3.Also	O	O
your	O	O
Base	O	B-Application
SDK	O	I-Application
will	O	O
be	O	O
Latest	O	O
ios	O	B-Operating_System
(	O	O
IOS	O	B-Operating_System
7.0	O	B-Version
)	O	O
by	O	O
default	O	O
.	O	O

(	O	O
Check	O	O
this	O	O
in	O	O
project->Targets->your	O	O
project->Build	O	O
Settings->Base	O	B-Application
SDK	O	I-Application
.	O	O
)	O	O

Thats	O	O
it.then	O	O
nobody	O	O
with	O	O
ios	O	B-Operating_System
6	O	B-Version
will	O	O
be	O	O
able	O	O
to	O	O
download	O	O
your	O	O
app	O	O
:)	O	O
cool.	O	O
.	O	O

My	O	O
case	O	O
value	O	O
text	O	O
is	O	O
always	O	O
be	O	O
equals	O	O
to	O	O
the	O	O
relevant	O	O
OSResultStruct	O	B-Class
in	O	O
the	O	O
code	O	O
for	O	O
"	O	O
The	O	O
way	O	O
i	O	O
have	O	O
it	O	O
implemented	O	O
now	O	O
and	O	O
is	O	O
working	O	O
"	O	O
.So	O	O
for	O	O
example	O	O
if	O	O
the	O	O
case	O	O
is	O	O
osedition	O	O
then	O	O
the	O	O
property	O	O
is	O	O
OSResultStruct.OSEdition	O	B-Variable
.	O	O

Is	O	O
it	O	O
possible	O	O
to	O	O
do	O	O
something	O	O
like	O	O
the	O	O
line	O	O
of	O	O
code	O	O
below	O	O
?	O	O

If	O	O
so	O	O
then	O	O
i	O	O
can	O	O
replace	O	O
my	O	O
switch	O	O
statement	O	O
with	O	O
one	O	O
line	O	O
of	O	O
code	O	O
.	O	O

The	O	O
way	O	O
i	O	O
have	O	O
it	O	O
implimented	O	O
now	O	O
and	O	O
is	O	O
working	O	O

Try	O	O
Reflection	O	O
:	O	O
-	O	O

For	O	O
a	O	O
more	O	O
generic	O	O
approach	O	O
:	O	O
-	O	O

Define	O	O
an	O	O
extension	O	O
class	O	O
:	O	O
-	O	O

Use	O	O
it	O	O
for	O	O
any	O	O
instantiable	O	O
type	O	O
as	O	O
follows	O	O
:	O	O
-	O	O

You	O	O
can	O	O
use	O	O
reflection	O	O
-	O	O
get	O	O
property	O	O
accessor	O	O
(	O	O
Type.GetProperty	O	B-Function
)	O	O
by	O	O
name	O	O
(	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
specify	O	O
IgnoreCase	O	B-Variable
when	O	O
getting	O	O
one	O	O
as	O	O
your	O	O
names	O	O
seem	O	O
to	O	O
be	O	O
all	O	O
lower	O	O
case	O	O
)	O	O
and	O	O
than	O	O
GetValue	O	B-Function
of	O	O
property	O	O
using	O	O
accessor	O	O
.	O	O

I	O	O
want	O	O
to	O	O
know	O	O
that	O	O
,	O	O
when	O	O
I	O	O
click	O	O
on	O	O
next	O	O
button	O	B-User_Interface_Element
than	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
upper1	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
become	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
upper2	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
and	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
upper2	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
become	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
upper3	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
and	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
upper3	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
become	O	O
id	B-Code_Block	B-Code_Block
=	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
upper1	I-Code_Block	I-Code_Block
"	I-Code_Block	I-Code_Block
and	O	O
so	O	O
on	O	O
.	O	O

$('#next')	O	B-Code_Block
.click	O	I-Code_Block
(	O	I-Code_Block
function()	O	I-Code_Block
{	O	I-Code_Block

With	O	O
jQuery	O	B-Library
,	O	O
you	O	O
may	O	O
use	O	O
:	O	O

You	O	O
will	O	O
need	O	O
to	O	O
put	O	O
the	O	O
code	O	O
inside	O	O
a	O	O
block	O	O
that	O	O
waits	O	O
for	O	O
the	O	O
page	O	B-User_Interface_Element
to	O	O
load	O	O
like	O	O
:	O	O

The	O	O
use	O	O
of	O	O
attr	B-Code_Block	B-Function
allows	O	O
to	O	O
set	O	O
a	O	O
new	O	O
id	B-Code_Block	B-Variable
to	O	O
each	O	O
of	O	O
the	O	O
former	O	O
id	O	B-Variable
'	O	I-Variable
s	O	I-Variable
.	O	O

Check	O	O
the	O	O
jsFiddle	O	B-Application
.	O	O

Also	O	O
,	O	O
as	O	O
noted	O	O
by	O	O
other	O	O
people	O	O
,	O	O
this	O	O
would	O	O
be	O	O
better	O	O
done	O	O
by	O	O
having	O	O
fixed	O	O
id	O	B-Variable
's	O	O
and	O	O
changing	O	O
classes	O	O
that	O	O
defined	O	O
the	O	O
attributes	O	O
to	O	O
rotate	O	O
.	O	O

You	O	O
may	O	O
do	O	O
something	O	O
like	O	O
this	O	O
that	O	O
may	O	O
work	O	O
with	O	O
any	O	O
number	O	O
of	O	O
element	O	O
with	O	O
any	O	O
IDs	O	B-Variable
:	O	O

The	O	O
question	O	O
I	O	O
want	O	O
to	O	O
ask	O	O
is	O	O
thus	O	O
:	O	O

Is	O	O
casting	O	O
down	O	O
the	O	O
inheritance	O	O
tree	O	B-Data_Structure
(	O	O
ie	O	O
.	O	O
towards	O	O
a	O	O
more	O	O
specialiased	O	O
class	O	O
)	O	O
from	O	O
inside	O	O
an	O	O
abstract	O	O
class	O	O
excusable	O	O
,	O	O
or	O	O
even	O	O
a	O	O
good	O	O
thing	O	O
,	O	O
or	O	O
is	O	O
it	O	O
always	O	O
a	O	O
poor	O	O
choice	O	O
with	O	O
better	O	O
options	O	O
available	O	O
?	O	O

Now	O	O
,	O	O
the	O	O
example	O	O
of	O	O
why	O	O
I	O	O
think	O	O
it	O	O
can	O	O
be	O	O
used	O	O
for	O	O
good	O	O
.	O	O

I	O	O
recently	O	O
implemented	O	O
Bencoding	O	O
from	O	O
the	O	O
BitTorrent	O	B-Website
protocol	O	O
in	O	O
C#	O	B-Language
.	O	O

A	O	O
simple	O	O
enough	O	O
problem	O	O
,	O	O
how	O	O
to	O	O
represent	O	O
the	O	O
data	O	O
.	O	O

I	O	O
chose	O	O
to	O	O
do	O	O
it	O	O
this	O	O
way	O	O
,	O	O

We	O	O
have	O	O
an	O	O
abstract	B-Code_Block	B-Data_Type
BItem	I-Code_Block	B-Class
class	O	O
,	O	O
which	O	O
provides	O	O
some	O	O
basic	O	O
functionality	O	O
,	O	O
including	O	O
the	O	O
static	B-Code_Block	B-Code_Block
BItem	I-Code_Block	I-Code_Block
Decode(string)	I-Code_Block	I-Code_Block
that	O	O
is	O	O
used	O	O
to	O	O
decode	O	O
a	O	O
Bencoded	O	O
string	O	B-Data_Type
into	O	O
the	O	O
necessary	O	O
structure	O	O
.	O	O

There	O	O
are	O	O
also	O	O
four	O	O
derived	O	O
classes	O	O
,	O	O
BString	B-Code_Block	B-Class
,	O	O
BInteger	B-Code_Block	B-Class
,	O	O
BList	B-Code_Block	B-Class
and	O	O
BDictionary	B-Code_Block	B-Class
,	O	O
representing	O	O
the	O	O
four	O	O
different	O	O
data	O	O
types	O	O
that	O	O
be	O	O
encoded	O	O
.	O	O

Now	O	O
,	O	O
here	O	O
is	O	O
the	O	O
tricky	O	O
part	O	O
.	O	O

BList	B-Code_Block	B-Class
and	O	O
BDictionary	B-Code_Block	B-Class
have	O	O
this[int]	B-Code_Block	B-Data_Type
and	O	O
this[string]	B-Code_Block	B-Data_Type
accessors	O	O
respectively	O	O
to	O	O
allow	O	O
access	O	O
to	O	O
the	O	O
array-like	O	B-Data_Structure
qualities	O	O
of	O	O
these	O	O
data	O	O
types	O	O
.	O	O

The	O	O
potentially	O	O
horrific	O	O
part	O	O
is	O	O
coming	O	O
now	O	O
:	O	O

Well	O	O
,	O	O
you	O	O
get	O	O
the	O	O
picture	O	O
..	O	O
.	O	O
Ouch	O	O
,	O	O
that	O	O
's	O	O
hard	O	O
on	O	O
the	O	O
eyes	O	O
,	O	O
not	O	O
to	O	O
mention	O	O
the	O	O
brain	O	O
.	O	O

So	O	O
,	O	O
I	O	O
introduced	O	O
something	O	O
extra	O	O
into	O	O
the	O	O
abstract	O	O
class	O	O
:	O	O

Now	O	O
we	O	O
could	O	O
rewrite	O	O
that	O	O
old	O	O
code	O	O
as	O	O
:	O	O

Wow	O	O
,	O	O
hey	O	O
presto	O	O
,	O	O
MUCH	O	O
more	O	O
readable	O	O
code	O	O
.	O	O

But	O	O
did	O	O
I	O	O
just	O	O
sell	O	O
part	O	O
of	O	O
my	O	O
soul	O	O
for	O	O
implying	O	O
knowledge	O	O
of	O	O
subclasses	O	O
into	O	O
the	O	O
abstract	O	O
class	O	O
?	O	O

EDIT	O	O
:	O	O
In	O	O
response	O	O
to	O	O
some	O	O
of	O	O
the	O	O
answers	O	O
coming	O	O
in	O	O
,	O	O
you	O	O
're	O	O
completely	O	O
off	O	O
track	O	O
for	O	O
this	O	O
particular	O	O
question	O	O
since	O	O
the	O	O
structure	O	O
is	O	O
variable	O	O
,	O	O
for	O	O
instance	O	O
my	O	O
example	O	O
of	O	O
torrent["info"]["files"][0]["length"]	B-Code_Block	B-Variable
is	O	O
valid	O	O
,	O	O
but	O	O
so	O	O
is	O	O
torrent["announce-list"][0][0]	B-Code_Block	B-Variable
,	O	O
and	O	O
both	O	O
would	O	O
be	O	O
in	O	O
90%	O	O
of	O	O
torrent	O	B-File_Type
files	O	O
out	O	O
there	O	O
.	O	O

Generics	O	O
is	O	O
n't	O	O
the	O	O
way	O	O
to	O	O
go	O	O
,	O	O
with	O	O
this	O	O
problem	O	O
atleast	O	O
:(	O	O
.	O	O

Have	O	O
a	O	O
click	O	O
through	O	O
to	O	O
the	O	O
spec	O	O
I	O	O
linked	O	O
,	O	O
it	O	O
's	O	O
only	O	O
4	O	O
small	O	O
dot-points	O	O
large	O	O
.	O	O

The	O	O
way	O	O
I	O	O
see	O	O
it	O	O
,	O	O
not	O	O
all	O	O
BItems	O	B-Class
are	O	O
collections	O	O
,	O	O
thus	O	O
not	O	O
all	O	O
BItems	O	B-Class
have	O	O
indexers	O	O
,	O	O
so	O	O
the	O	O
indexer	O	O
should	O	O
n't	O	O
be	O	O
in	O	O
BItem	O	B-Class
.	O	O

I	O	O
would	O	O
derive	O	O
another	O	O
abstract	O	O
class	O	O
from	O	O
BItem	O	B-Class
,	O	O
let	O	O
's	O	O
name	O	O
it	O	O
BCollection	O	B-Class
,	O	O
and	O	O
put	O	O
the	O	O
indexers	O	O
there	O	O
,	O	O
something	O	O
like	O	O
:	O	O

and	O	O
make	O	O
BList	O	B-Class
and	O	O
BDictionary	O	B-Class
inherit	O	O
from	O	O
BCollection	O	B-Class
.	O	O

Or	O	O
you	O	O
could	O	O
go	O	O
the	O	O
extra	O	O
mile	O	O
and	O	O
make	O	O
BCollection	O	B-Class
a	O	O
generic	O	O
class	O	O
.	O	O

You	O	O
really	O	O
should	O	O
not	O	O
access	O	O
any	O	O
derived	O	O
classes	O	O
from	O	O
the	O	O
base	O	O
class	O	O
as	O	O
it	O	O
pretty	O	O
much	O	O
breaks	O	O
the	O	O
idea	O	O
of	O	O
OOP	O	O
.	O	O

Readibility	O	O
certainly	O	O
goes	O	O
a	O	O
long	O	O
way	O	O
,	O	O
but	O	O
I	O	O
would	O	O
n't	O	O
trade	O	O
it	O	O
for	O	O
reusability	O	O
.	O	O

Consider	O	O
the	O	O
case	O	O
when	O	O
you	O	O
'll	O	O
need	O	O
to	O	O
add	O	O
another	O	O
subclass	O	O
-	O	O
you	O	O
'll	O	O
also	O	O
need	O	O
to	O	O
update	O	O
the	O	O
base	O	O
class	O	O
accordingly	O	O
.	O	O

The	O	O
Macro	O	B-Application
Excel	O	I-Application
pointe	O	O
in	O	O
Cognos	O	B-Application
8	O	B-Version
Cube	O	B-Data_Structure
.	O	O

The	O	O
cube	O	B-Data_Structure
is	O	O
published	O	O
in	O	O
the	O	O
server	O	B-Device
of	O	O
the	O	O
company	O	O
.	O	O

I	O	O
want	O	O
to	O	O
make	O	O
these	O	O
process	O	O
local	O	O
.	O	O

Please	O	O
check	O	O
and	O	O
advice	O	O

NOTE-Cognos	O	B-Application
8	O	B-Version
is	O	O
unsupported	O	O
-	O	O
highly	O	O
suggest	O	O
you	O	O
upgrade	O	O
to	O	O
10	O	B-Version
as	O	O
soon	O	O
as	O	O
feasible	O	O
.	O	O

To	O	O
clarify	O	O
-	O	O
you	O	O
want	O	O
to	O	O
build	O	O
this	O	O
cube	O	B-Data_Structure
locally	O	O
?	O	O

On	O	O
your	O	O
desktop	O	B-Device
?	O	O

Depending	O	O
on	O	O
size	O	O
and	O	O
structure	O	O
it	O	O
can	O	O
take	O	O
up	O	O
all	O	O
your	O	O
local	O	O
resources	O	O
.	O	O

I	O	O
suggest	O	O
this	O	O
-	O	O

1	O	O
.	O	O

Build	O	O
the	O	O
cube	O	O
on	O	O
the	O	O
server	O	B-Device
and	O	O
copy	O	O
it	O	O
to	O	O
your	O	O
destination	O	O
.	O	O

d:\Cognos\PowerCubes\Build	O	B-File_Name
,	O	O
then	O	O
to	O	O
publish	O	O
them	O	O
-	O	O
copy	O	O
them	O	O
to	O	O
another	O	O
directory	O	O
d:\Cognos\PowerCubes\Live	O	B-File_Name

use	O	O
the	O	O
windows	O	B-Operating_System
copy	O	O
command	O	O
i.e	O	O
.	O	O

copy	O	B-Code_Block
d:\Cognos\PowerCubes\Build\yourcube.mdc	O	I-Code_Block
d:\Cognos\PowerCubes\Live	O	I-Code_Block
/Y	O	I-Code_Block
/B	O	I-Code_Block

Local	O	O
-	O	O
build	O	O
the	O	O
cube	O	B-Data_Structure
using	O	O
task	O	B-Application
scheduler	O	I-Application
on	O	O
your	O	O
local	O	O
machine	O	O
.	O	O

HTH	O	B-User_Name

Actually	O	O
I	O	O
build	O	O
mycube.mdc	O	B-File_Name
locally	O	O
but	O	O
the	O	O
publish	O	O
is	O	O
in	O	O
server	O	B-Device
.	O	O

I	O	O
want	O	O
the	O	O
diffrents	O	O
steps	O	O
to	O	O
take	O	O
to	O	O
publish	O	O
the	O	O
cube	O	B-Data_Structure
locally	O	O
.Hence	O	O
,	O	O
access	O	O
to	O	O
cube	O	B-Data_Structure
through	O	O
macro	O	B-Application
excel	O	I-Application
.	O	O

As	O	O
an	O	O
entity	O	O
class	O	O
,	O	O
I	O	O
want	O	O
to	O	O
add	O	O
an	O	O
attributes	O	O
at	O	O
run-time	O	O
,	O	O
how	O	O
should	O	O
I	O	O
do	O	O
?	O	O

What	O	O
needs	O	O
to	O	O
see	O	O
the	O	O
attributes	O	O
?	O	O

If	O	O
it	O	O
is	O	O
things	O	O
like	O	O
data-binding	O	O
etc	O	O
,	O	O
TypeDescriptor	B-Code_Block	B-Class
should	O	O
work	O	O
:	O	O

This	O	O
only	O	O
affects	O	O
System.ComponentModel	B-Code_Block	B-Class
usage	O	O
(	O	O
not	O	O
direct	O	O
reflection	O	O
)	O	O
,	O	O
but	O	O
that	O	O
is	O	O
often	O	O
enough	O	O
-	O	O
for	O	O
example	O	O
,	O	O
you	O	O
can	O	O
associate	O	O
a	O	O
TypeConverter	B-Code_Block	B-Class
via	O	O
the	O	O
above	O	O
.	O	O

If	O	O
by	O	O
"	O	O
attributes	O	O
"	O	O
you	O	O
mean	O	O
"	O	O
properties	O	O
"	O	O
,	O	O
then	O	O
(	O	O
again	O	O
,	O	O
as	O	O
far	O	O
as	O	O
data-binding	O	O
is	O	O
concerned	O	O
)	O	O
TypeDescriptor	B-Code_Block	B-Class
also	O	O
has	O	O
potential	O	O
there	O	O
-	O	O
but	O	O
it	O	O
is	O	O
non-trivial	O	O
;	O	O
you	O	O
need	O	O
to	O	O
either	O	O
implement	O	O
ICustomTypeDescriptor	B-Code_Block	B-Class
on	O	O
the	O	O
object	O	O
,	O	O
or	O	O
to	O	O
write	O	O
a	O	O
CustomTypeDescriptor	B-Code_Block	B-Class
for	O	O
the	O	O
type	O	O
-	O	O
and	O	O
in	O	O
either	O	O
case	O	O
,	O	O
you	O	O
need	O	O
to	O	O
write	O	O
your	O	O
own	O	O
PropertyDescriptor	B-Code_Block	B-Class
implementation	O	O
(	O	O
often	O	O
talking	O	O
to	O	O
a	O	O
per-instance	O	O
dictionary	O	B-Data_Structure
etc	O	O
)	O	O
.	O	O

This	O	O
will	O	O
get	O	O
used	O	O
by	O	O
anything	O	O
that	O	O
uses	O	O
:	O	O

Again	O	O
,	O	O
this	O	O
covers	O	O
a	O	O
wide	O	O
range	O	O
of	O	O
data-binding	O	O
and	O	O
similar	O	O
scenarios	O	O
.	O	O

For	O	O
an	O	O
example	O	O
of	O	O
this	O	O
,	O	O
see	O	O
here	O	O
-	O	O
it	O	O
is	O	O
far	O	O
from	O	O
trivial	O	O
,	O	O
however	O	O
.	O	O

The	O	O
example	O	O
usage	O	O
(	O	O
from	O	O
the	O	O
link	O	O
)	O	O
adds	O	O
two	O	O
properties	O	O
at	O	O
runtime	O	O
:	O	O

Use	O	O
a	O	O
hashtable	O	B-Class
to	O	O
store	O	O
your	O	O
attributes	O	O
.	O	O

If	O	O
you	O	O
want	O	O
more	O	O
runtime	O	O
flexibility	O	O
,	O	O
you	O	O
might	O	O
try	O	O
Ruby	O	B-Language
or	O	O
some	O	O
other	O	O
interpreted	O	O
language	O	O
.	O	O

I	O	O
'm	O	O
constrained	O	O
to	O	O
writing	O	O
C++11	O	B-Language
code	O	O
,	O	O
but	O	O
I	O	O
want	O	O
to	O	O
use	O	O
std::cbegin()	B-Code_Block	B-Function
.	O	O

So	O	O
,	O	O
I	O	O
'm	O	O
looking	O	O
at	O	O
GCC	O	B-Application
5.4.0	O	B-Version
'	O	O
s	O	O
implementation	O	O
,	O	O
in	O	O
/usr/include/c	B-Code_Block	B-File_Name
++	I-Code_Block	I-File_Name
/5/bits/range_access.h	I-Code_Block	I-File_Name
on	O	O
my	O	O
system	O	O
,	O	O
thinking	O	O
I	O	O
might	O	O
write	O	O
something	O	O
similar	O	O
,	O	O
and	O	O
I	O	O
see	O	O
:	O	O

is	O	O
that	O	O
all	O	O
there	O	O
is	O	O
to	O	O
it	O	O
?	O	O

Am	O	O
I	O	O
missing	O	O
something	O	O
?	O	O

If	O	O
that	O	O
's	O	O
it	O	O
,	O	O
how	O	O
come	O	O
it	O	O
was	O	O
n't	O	O
part	O	O
of	O	O
C++11	O	B-Language
like	O	O
std::begin()	B-Code_Block	B-Function
?	O	O

No	O	O
,	O	O
that	O	O
covers	O	O
it	O	O
.	O	O

Although	O	O
a	O	O
small	O	O
function	O	O
can	O	O
be	O	O
added	O	O
to	O	O
the	O	O
standard	O	O
with	O	O
a	O	O
relatively	O	O
small	O	O
amount	O	O
of	O	O
effort	O	O
,	O	O
time	O	O
is	O	O
finite	O	O
and	O	O
the	O	O
committee	O	O
does	O	O
n't	O	O
have	O	O
unlimited	O	O
resource	O	O
.	O	O

Another	O	O
example	O	O
of	O	O
a	O	O
reasonably	O	O
useful	O	O
and	O	O
trivial	O	O
function	O	O
that	O	O
was	O	O
omitted	O	O
until	O	O
C++14	O	B-Language
is	O	O
std::make_unique	B-Code_Block	B-Function
.	O	O

Things	O	O
improve	O	O
over	O	O
time	O	O
.	O	O

Yes	O	O
.	O	O

Not	O	O
that	O	O
I	O	O
'm	O	O
aware	O	O
of	O	O
.	O	O

The	O	O
global	O	O
templates	O	O
seem	O	O
to	O	O
have	O	O
been	O	O
part	O	O
of	O	O
the	O	O
original	O	O
proposal	O	O
as	O	O
an	O	O
alternative	O	O
to	O	O
the	O	O
member	O	O
functions	O	O
,	O	O
but	O	O
the	O	O
proposal	O	O
preferred	O	O
to	O	O
only	O	O
provide	O	O
the	O	O
member	O	O
functions	O	O
in	O	O
favour	O	O
of	O	O
providing	O	O
either	O	O
just	O	O
the	O	O
global	O	O
templates	O	O
,	O	O
or	O	O
both	O	O
the	O	O
templates	O	O
and	O	O
members	O	O
.	O	O

(	O	O
Assuming	O	O
this	O	O
is	O	O
the	O	O
original	O	O
proposal	O	O
:	O	O
N167	O	O
4)	O	O
.	O	O

The	O	O
committee	O	O
chose	O	O
to	O	O
include	O	O
the	O	O
member	O	O
function	O	O
alternative	O	O
in	O	O
C++11	O	B-Language
,	O	O
and	O	O
the	O	O
template	O	O
not	O	O
until	O	O
C++	O	B-Language
14	O	B-Version
.	O	O

I	O	O
'm	O	O
not	O	O
part	O	O
of	O	O
the	O	O
committee	O	O
,	O	O
and	O	O
cannot	O	O
speak	O	O
for	O	O
them	O	O
,	O	O
but	O	O
my	O	O
guess	O	O
is	O	O
that	O	O
the	O	O
attitude	O	O
of	O	O
the	O	O
proposal	O	O
may	O	O
have	O	O
affected	O	O
the	O	O
decision	O	O
:	O	O

Here	O	O
is	O	O
the	O	O
development	O	O
for	O	O
the	O	O
C++	O	B-Library
Standard	O	I-Library
Library	O	I-Library
Defect	O	O
Report	O	O
issue	O	O
(	O	O
2128	O	O
)	O	O
where	O	O
the	O	O
template	O	O
versions	O	O
were	O	O
decided	O	O
to	O	O
be	O	O
adopted	O	O
into	O	O
C++14	O	B-Language
after	O	O
all	O	O
.	O	O

I	O	O
ca	O	O
n't	O	O
find	O	O
the	O	O
appropriate	O	O
regex	O	O
to	O	O
extract	O	O
only	O	O
floats	O	B-Data_Type
from	O	O
a	O	O
string	O	B-Data_Type
.	O	O

Consider	O	O
the	O	O
following	O	O
string	O	B-Data_Type
:	O	O

I	O	O
want	O	O
to	O	O
extract	O	O
2.1	O	B-Value
,	O	O
I	O	O
tried	O	O
the	O	O
following	O	O
but	O	O
this	O	O
gives	O	O
me	O	O
integers	O	B-Data_Type
and	O	O
floats	O	B-Data_Type
:	O	O

i	O	O
then	O	O
tried	O	O
using	O	O
is_float	B-Code_Block	B-Function
to	O	O
check	O	O
for	O	O
floats	O	B-Data_Type
but	O	O
this	O	O
also	O	O
returns	O	O
the	O	O
integers	O	B-Data_Type
for	O	O
some	O	O
reason	O	O
.	O	O

Any	O	O
ideas	O	O
?	O	O

thanks	O	O

Consider	O	O
this	O	O
simple	O	O
example	O	O
:	O	O

Matches	O	O
"	O	O
one	O	O
or	O	O
more	O	O
digits	O	O
,	O	O
followed	O	O
by	O	O
exactly	O	O
one	O	O
full	O	O
stop	O	O
and	O	O
again	O	O
one	O	O
or	O	O
more	O	O
digits	O	O
"	O	O
.	O	O

The	O	O
output	O	O
obviously	O	O
is	O	O
:	O	O

Your	O	O
regex	O	O
matches	O	O
float	O	B-Data_Type
and	O	O
integers	O	B-Data_Type
,	O	O
and	O	O
even	O	O
strings	O	B-Data_Type
consisting	O	O
of	O	O
just	O	O
commas	O	O
.	O	O

[0-9,]+	B-Code_Block	B-Code_Block
-	O	O
1	O	O
or	O	O
more	O	O
digits	O	O
or	O	O
,	B-Code_Block	B-Code_Block

(?:\.	B-Code_Block	B-Code_Block
[	I-Code_Block	I-Code_Block
0-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
-	O	O
one	O	O
or	O	O
zero	O	O
sequences	O	O
of	O	O
.	O	B-Code_Block
+	O	O
zero	O	O
or	O	O
more	O	O
digits	O	O
.	O	O

You	O	O
need	O	O

That	O	O
will	O	O
match	O	O
1+	O	O
digits	O	O
,	O	O
.	O	B-Code_Block
and	O	O
1+	O	O
digits	O	O
.	O	O

Or	O	O
,	O	O
to	O	O
also	O	O
match	O	O
negative	O	O
and	O	O
positive	O	O
floats	O	B-Data_Type
,	O	O
add	O	O
an	O	O
optional	O	O
-	O	B-Code_Block
at	O	O
the	O	O
beginning	O	O
:	O	O

Details	O	O

-	O	B-Code_Block
?	B-Code_Block	I-Code_Block
-	O	O
one	O	O
or	O	O
zero	O	O
hyphens	O	O
(	O	O
?	O	B-Code_Block
means	O	O
match	O	O
one	O	O
or	O	O
zero	O	O
occurrences	O	O
)	O	O

\d+	B-Code_Block	B-Code_Block
-	O	O
one	O	O
or	O	O
more	O	O
digits	O	O
(	O	O
+	O	B-Code_Block
means	O	O
match	O	O
one	O	O
or	O	O
more	O	O
occurrences	O	O
,	O	O
\d	B-Code_Block	B-Code_Block
matches	O	O
a	O	O
digit	O	O
char	O	B-Data_Type
)	O	O

\	O	B-Code_Block
.	B-Code_Block	I-Code_Block
-	O	O
a	O	O
literal	O	O
dot	O	O
(	O	O
since	O	O
a	O	O
dot	O	O
in	O	O
a	O	O
regex	O	O
is	O	O
a	O	O
special	O	O
metacharacter	O	O
,	O	O
it	O	O
should	O	O
be	O	O
escaped	O	O
to	O	O
denote	O	O
a	O	O
literal	O	O
dot	O	O
)	O	O

\d+	B-Code_Block	B-Code_Block
-	O	O
one	O	O
or	O	O
more	O	O
digits	O	O

PHP	O	B-Language
demo	O	O
:	O	O

A	O	O
bonus	O	O
regex	O	O
that	O	O
will	O	O
also	O	O
match	O	O
only	O	O
float	O	B-Data_Type
numbers	O	O
with	O	O
optional	O	O
exponent	O	O
(	O	O
a	O	O
variant	O	O
of	O	O
the	O	O
regex	O	O
at	O	O
regular-expressions.info	O	O
)	O	O
:	O	O

Here	O	O
,	O	O
you	O	O
can	O	O
see	O	O
that	O	O
an	O	O
optional	O	O
+	O	B-Code_Block
or	O	O
-	O	B-Code_Block
is	O	O
matched	O	O
first	O	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
,	O	O
then	O	O
the	O	O
same	O	O
pattern	O	O
as	O	O
above	O	O
is	O	O
used	O	O
,	O	O
then	O	O
comes	O	O
an	O	O
optional	O	O
non-capturing	O	O
group	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	I-Code_Block
?	I-Code_Block	I-Code_Block
that	I-Code_Block	O
matches	O	O
1	O	O
or	O	O
0	O	O
occurrences	O	O
of	O	O
the	O	O
following	O	O
sequence	O	O
:	O	O
e	O	B-Code_Block
or	B-Code_Block	O
E	O	B-Code_Block
(	B-Code_Block	O
since	O	O
/i	O	B-Code_Block
is	B-Code_Block	O
a	O	O
case	O	O
insensitive	O	O
modifier	O	O
)	O	O
,	O	O
[	O	B-Code_Block
-+	B-Code_Block	I-Code_Block
]	I-Code_Block	I-Code_Block
?	B-Code_Block	B-Code_Block
matches	I-Code_Block	O
an	O	O
optional	O	O
+	O	B-Code_Block
or	B-Code_Block	O
-	O	B-Code_Block
,	O	O
and	O	O
\d+`	O	B-Code_Block
matches	O	O
1+	O	O
digits	O	O
.	O	O

I	O	O
have	O	O
the	O	O
following	O	O
vector	O	B-Data_Structure
:	O	O

All	O	O
its	O	O
values	O	O
are	O	O
between	O	O
1	B-Code_Block	B-Value
and	O	O
n	B-Code_Block	B-Variable
(	O	O
in	O	O
this	O	O
case	O	O
,	O	O
3)	B-Code_Block	B-Value
and	O	O
denote	O	O
different	O	O
options	O	O
.	O	O

I	O	O
want	O	O
to	O	O
create	O	O
a	O	O
matrix	O	B-Data_Structure
of	O	O
size	O	O
size(y,	B-Code_Block	B-Function
1)	I-Code_Block	I-Function
x	O	O
n	B-Code_Block	B-Variable
whose	O	O
rows	O	B-Data_Structure
correpond	O	O
to	O	O
y	B-Code_Block	B-Variable
values	O	O
:	O	O

One	O	O
way	O	O
to	O	O
do	O	O
this	O	O
would	O	O
be	O	O

Is	O	O
there	O	O
a	O	O
better	O	O
way	O	O
to	O	O
do	O	O
this	O	O
,	O	O
maybe	O	O
in	O	O
a	O	O
single	O	O
expression	O	O
?	O	O

Basically	O	O
,	O	O
what	O	O
I	O	O
need	O	O
is	O	O
to	O	O
generate	O	O
a	O	O
matrix	O	B-Data_Structure
with	O	O
boolean	O	B-Data_Type
predicate	O	O
(	B-Code_Block	B-Code_Block
i	I-Code_Block	I-Code_Block
,	I-Code_Block	I-Code_Block
j	I-Code_Block	I-Code_Block
)	I-Code_Block	I-Code_Block
=>	B-Code_Block	B-Code_Block
j	I-Code_Block	I-Code_Block
==	I-Code_Block	I-Code_Block
y(i)	I-Code_Block	I-Code_Block
.	O	O

You	O	O
can	O	O
try	O	O
this	O	O
if	O	O
a	B-Code_Block	B-Variable
is	O	O
a	O	O
column	O	O
vector	O	B-Data_Structure

and	O	O
this	O	O
if	O	O
it	O	O
is	O	O
a	O	O
row	O	O
vector	O	B-Data_Structure

In	O	O
Octave	O	B-Language
(	O	O
at	O	O
least	O	O
as	O	O
of	O	O
3.6.3	O	B-Version
,	O	O
not	O	O
sure	O	O
when	O	O
it	O	O
was	O	O
introduced	O	O
)	O	O
,	O	O
you	O	O
can	O	O
use	O	O
broadcasting	O	O
to	O	O
do	O	O
this	O	O
extremely	O	O
easily	O	O
.	O	O

It	O	O
works	O	O
like	O	O
this	O	O
:	O	O

(	O	O
if	O	O
y	O	B-Variable
is	O	O
a	O	O
row	O	O
matrix	O	B-Data_Structure
,	O	O
you	O	O
need	O	O
to	O	O
transpose	O	O
it	O	O
first	O	O
-	O	O
if	O	O
you	O	O
want	O	O
to	O	O
have	O	O
Y	O	B-Variable
transposed	O	O
instead	O	O
,	O	O
use	O	O
y==(1:3)')	O	B-Code_Block

I	O	O
have	O	O
a	O	O
custom	O	O
web	O	O
control	O	B-Class
having	O	O
two	O	O
labels	O	B-Class
.	O	O

On	O	O
the	O	O
display	O	O
page	O	B-User_Interface_Element
I	O	O
want	O	O
to	O	O
modify	O	O
the	O	O
text	O	B-User_Interface_Element
of	O	O
one	O	O
of	O	O
the	O	O
labels	O	B-Class
depending	O	O
on	O	O
a	O	O
condition	O	O
.	O	O

How	O	O
to	O	O
achieve	O	O
?	O	O

The	O	O
answer	O	O
depends	O	O
on	O	O
how	O	O
your	O	O
control	O	B-Class
in	O	O
defined	O	O
.	O	O

If	O	O
the	O	O
label	O	B-Class
is	O	O
public	O	B-Data_Type
you	O	O
simply	O	O
access	O	O
the	O	O
label	O	B-Class
through	O	O
the	O	O
control	O	B-Class
instance	O	O

If	O	O
it	O	O
private	O	B-Data_Type
you	O	O
will	O	O
need	O	O
a	O	O
public	O	B-Data_Type
method	O	O
in	O	O
the	O	O
control	O	B-Class
to	O	O
change	O	O
the	O	O
text	O	B-Variable
,	O	O
e.g	O	O
.	O	O

and	O	O
then	O	O
call	O	O
the	O	O
method	O	O

I	O	O
would	O	O
like	O	O
to	O	O
rename	O	O
all	O	O
the	O	O
jpg	O	B-File_Type
files	O	O
in	O	O
a	O	O
folder	O	O
to	O	O
uniform	O	O
convention	O	O
like	O	O
Picture00000001.jpg	O	B-File_Name
where	O	O
00000001	O	B-Value
is	O	O
a	O	O
counter	O	O
.	O	O

It	O	O
would	O	O
be	O	O
a	O	O
walk	O	O
in	O	O
the	O	O
park	O	O
in	O	O
C#	O	B-Language
but	O	O
I	O	O
would	O	O
think	O	O
this	O	O
is	O	O
the	O	O
kind	O	O
of	O	O
bread	O	O
and	O	O
butter	O	O
stuff	O	O
that	O	O
PowerShell	O	B-Application
was	O	O
made	O	O
for	O	O
.	O	O

I	O	O
'm	O	O
guessing	O	O
something	O	O
like	O	O

But	O	O
before	O	O
I	O	O
hit	O	O
the	O	O
gas	O	O
on	O	O
this	O	O
I	O	O
would	O	O
like	O	O
to	O	O
1)	O	O
format	O	O
the	O	O
counter	O	O
,	O	O
and	O	O
2)	O	O
have	O	O
some	O	O
sense	O	O
that	O	O
this	O	O
is	O	O
in	O	O
fact	O	O
even	O	O
a	O	O
good	O	O
idea	O	O
.	O	O

If	O	O
this	O	O
sounds	O	O
more	O	O
like	O	O
OCD	O	O
than	O	O
a	O	O
good	O	O
idea	O	O
please	O	O
speak	O	O
up	O	O
.	O	O

Try	O	O
this	O	O
to	O	O
get	O	O
the	O	O
FilenameWithOutExtension	O	B-Class

$	O	B-Code_Block
f.DirectoryName	O	I-Code_Block
+	O	I-Code_Block
"	O	I-Code_Block
\	O	I-Code_Block
"	O	B-Code_Block
+	O	I-Code_Block
$	O	I-Code_Block
f.BaseName	O	I-Code_Block

You	O	O
can	O	O
do	O	O
this	O	O
fairly	O	O
simply	O	O
in	O	O
PowerShell	O	B-Application
:	O	O

If	O	O
you	O	O
're	O	O
looking	O	O
for	O	O
the	O	O
"	O	O
basename	O	O
"	O	O
and	O	O
if	O	O
you	O	O
're	O	O
on	O	O
PowerShell	O	B-Application
2.0	O	B-Version
just	O	O
use	O	O
the	O	O
Basename	O	B-Variable
property	O	O
that	O	O
PowerShell	O	B-Application
adds	O	O
to	O	O
each	O	O
FileInfo	O	B-Class
object	O	O
:	O	O

Note	O	O
that	O	O
on	O	O
PowerShell	O	B-Application
1.0	O	B-Version
,	O	O
the	O	O
PowerShell	O	B-Application
Community	O	O
Extensions	O	O
adds	O	O
this	O	O
same	O	O
Basename	O	B-Variable
property	O	O
.	O	O

If	O	O
the	O	O
intent	O	O
is	O	O
to	O	O
append	O	O
a	O	O
counter	O	O
string	O	B-Data_Type
to	O	O
the	O	O
file	O	O
's	O	O
basename	O	O
during	O	O
the	O	O
rename	O	O
operation	O	O
then	O	O
try	O	O
this	O	O
:	O	O

I	O	O
have	O	O
attached	O	O
joomla	O	B-Application
's	O	O
Menu	O	B-User_Interface_Element
module	O	O
in	O	O
my	O	O
template	O	O
.	O	O

But	O	O
I	O	O
needed	O	O
it	O	O
to	O	O
load	O	O
in	O	O
footer	O	B-User_Interface_Element
position	O	O
at	O	O
the	O	O
same	O	O
time	O	O
.	O	O

So	O	O
that	O	O
if	O	O
I	O	O
add	O	O
another	O	O
menu	O	B-User_Interface_Element
it	O	O
should	O	O
be	O	O
get	O	O
added	O	O
in	O	O
both	O	O
the	O	O
positions	O	O
in	O	O
Header	O	B-User_Interface_Element
and	O	O
in	O	O
the	O	O
footer	O	B-User_Interface_Element
..	O	O
.	O	O
What	O	O
i	O	O
want	O	O
to	O	O
do	O	O
to	O	O
load	O	O
a	O	O
menu	O	B-User_Interface_Element
module	O	O
to	O	O
two	O	O
different	O	O
positions	O	O
in	O	O
a	O	O
page	O	B-User_Interface_Element
,	O	O
in	O	O
header	O	B-User_Interface_Element
and	O	O
in	O	O
footer	O	B-User_Interface_Element
.	O	O

I	O	O
had	O	O
tried	O	O
to	O	O
add	O	O
multiple	O	O
positions	O	O
in	O	O
administrator	O	O
section	O	O
for	O	O
a	O	O
menu	O	B-User_Interface_Element
module	O	O
..	O	O
.	O	O

screen	O	O
shots	O	O
are	O	O
as	O	O
follows	O	O

For	O	O
latest	O	O
version	O	O
.	O	O

Joomla3.x	O	B-Application
:	O	O

Get	O	O
all	O	O
the	O	O
modules	O	O
by	O	O
template	O	O
position	O	O
(	O	O
replace	O	O
position	O	O
with	O	O
your	O	O
template	O	O
position	O	O
)	O	O
:	O	O

Other	O	O
Solution	O	O
:	O	O
you	O	O
can	O	O
define	O	O
position	O	O
in	O	O
the	O	O
template	O	O
and	O	O
assign	O	O
module	O	O
to	O	O
that	O	O
position	O	O

Steps	O	O
:	O	O

1.Customize	O	O
templateDetails.xml	O	B-File_Name
file	O	O
add	O	O
newposition	O	O

2.create	O	O
position	O	O
in	O	O
index	O	B-File_Name
file	O	O
of	O	O
template	O	O
in	O	O
templates/your_template/index.php	O	B-File_Name

If	O	O
I	O	O
understand	O	O
correctly	O	O
,	O	O
you	O	O
should	O	O
simply	O	O
be	O	O
able	O	O
to	O	O
duplicate	O	O
your	O	O
menu	O	B-User_Interface_Element
module	O	O
(	O	O
in	O	O
extensions->modules	O	O
)	O	O
and	O	O
add	O	O
the	O	O
duplicate	O	O
module	O	O
to	O	O
a	O	O
module	O	O
position	O	O
in	O	O
the	O	O
footer	O	B-User_Interface_Element
of	O	O
your	O	O
template	O	O
.	O	O

If	O	O
there	O	O
is	O	O
no	O	O
module	O	O
position	O	O
in	O	O
the	O	O
footer	O	B-User_Interface_Element
,	O	O
you	O	O
add	O	O
one	O	O
to	O	O
the	O	O
-	O	O
list	O	B-Data_Structure
in	O	O
templateDetails.xml	O	B-File_Name
,	O	O
and	O	O
add	O	O
it	O	O
to	O	O
index.php	O	B-File_Name
in	O	O
your	O	O
template	O	O
,	O	O
like	O	O
:	O	O

PYTHON	O	B-Language
3.3	O	B-Version

I	O	O
have	O	O
my	O	O
HDD	O	B-Device
partitioned	O	O
with	O	O
programmes	O	O
on	O	O
"	O	B-File_Name
C	O	I-File_Name
"	O	I-File_Name
and	O	O
data	O	O
on	O	O
"	O	B-File_Name
D	O	I-File_Name
"	O	I-File_Name
one	O	O
NTFS	O	O
and	O	O
the	O	O
other	O	O
fat32	O	O
.	O	O

I	O	O
've	O	O
downloaded	O	O
examples	O	O
of	O	O
code	O	O
from	O	O
one	O	O
of	O	O
the	O	O
popular	O	O
manuals	O	O
onto	O	O
"	O	B-File_Name
D	O	I-File_Name
"	O	I-File_Name
.	O	O

Running	O	O
sys.path	O	B-File_Name
does	O	O
not	O	O
show	O	O
these	O	O
.	O	O

I	O	O
've	O	O
looked	O	O
,	O	O
but	O	O
cannot	O	O
find	O	O
the	O	O
sys.path	O	B-File_Name
file	O	O
to	O	O
permanently	O	O
add	O	O
my	O	O
"	O	O
path	O	O
"	O	O
.	O	O

I	O	O
can	O	O
have	O	O
the	O	O
sys.path	O	B-File_Name
come	O	O
up	O	O
in	O	O
IDLE	O	B-Value
,	O	O
but	O	O
making	O	O
changes	O	O
here	O	O
are	O	O
only	O	O
temporary	O	O
I	O	O
believe	O	O
.	O	O

It	O	O
is	O	O
a	O	O
small	O	O
irritation	O	O
to	O	O
have	O	O
to	O	O
"	O	O
go	O	O
looking	O	O
"	O	O
each	O	O
time	O	O
.	O	O

I	O	O
'd	O	O
really	O	O
appreciate	O	O
some	O	O
comments	O	O
,	O	O
and	O	O
apologize	O	O
if	O	O
this	O	O
has	O	O
already	O	O
been	O	O
answered	O	O
somewhere	O	O
else	O	O
.	O	O

For	O	O
instance	O	O
,	O	O
to	O	O
add	O	O
the	O	O
directory	O	O
/home/me/mypy	O	B-File_Name
to	O	O
the	O	O
path	O	O
,	O	O
just	O	O
do	O	O
:	O	O

source	O	O
:	O	O
http://www.johnny-lin.com/cdat_tips/tips_pylang/path.html	O	O

You	O	O
can	O	O
modify	O	O
the	O	O
environment	O	O
variable	O	O
PYTHONPATH	B-Code_Block	B-Variable
to	O	O
adjust	O	O
the	O	O
default	O	O
path	O	O
Python	O	B-Language
looks	O	O
for	O	O
modules	O	O
when	O	O
importing	O	O
.	O	O

so	O	O
I	O	O
am	O	O
developing	O	O
a	O	O
google	O	B-Application
chrome	O	I-Application
extension	O	O
for	O	O
my	O	O
chromebook	O	B-Device
.	O	O

The	O	O
idea	O	O
is	O	O
to	O	O
make	O	O
a	O	O
"	O	O
magnifying	O	O
"	O	O
type	O	O
of	O	O
effect	O	O
wherever	O	O
the	O	O
mouse	O	B-Device
goes	O	O
on	O	O
the	O	O
current	O	O
webpage	O	O
in	O	O
order	O	O
to	O	O
zoom	O	O
in	O	O
on	O	O
text/images	O	B-User_Interface_Element
or	O	O
whatever	O	O
the	O	O
mouse	O	B-Device
hovers	O	O
.	O	O

I	O	O
have	O	O
the	O	O
code	O	O
for	O	O
this	O	O
effect	O	O
working	O	O
on	O	O
a	O	O
webpage	O	O
,	O	O
it	O	O
does	O	O
exactly	O	O
what	O	O
I	O	O
want	O	O
.	O	O

Where	O	O
I	O	O
'm	O	O
confused	O	O
is	O	O
how	O	O
to	O	O
integrate	O	O
this	O	O
to	O	O
a	O	O
chrome	O	B-Application
extension	O	O
.	O	O

I	O	O
would	O	O
want	O	O
an	O	O
extension	O	O
like	O	O
button	O	B-User_Interface_Element
to	O	O
show	O	O
up	O	O
in	O	O
the	O	O
upper	O	O
right	O	O
corner	O	O
of	O	O
the	O	O
chrome	O	B-Application
browser	O	I-Application
and	O	O
then	O	O
you	O	O
can	O	O
click	O	O
it	O	O
and	O	O
then	O	O
a	O	O
"	O	O
box	O	B-User_Interface_Element
or	O	O
magnifying	O	B-User_Interface_Element
glass	O	I-User_Interface_Element
"	O	O
would	O	O
appear	O	O
and	O	O
then	O	O
you	O	O
could	O	O
click	O	O
and	O	O
drag	O	O
it	O	O
around	O	O
the	O	O
page	O	B-User_Interface_Element
.	O	O

The	O	O
box	O	B-User_Interface_Element
would	O	O
go	O	O
away	O	O
if	O	O
you	O	O
clicked	O	O
the	O	O
extension	O	O
button	O	B-User_Interface_Element
again	O	O
.	O	O

This	O	O
is	O	O
what	O	O
I	O	O
know	O	O
after	O	O
a	O	O
bit	O	O
of	O	O
online	O	O
searching	O	O
..	O	O
.	O	O

-	O	O
I	O	O
need	O	O
a	O	O
manifest.json	O	B-File_Name
file	O	O
,	O	O
my	O	O
current	O	O
file	O	O
looks	O	O
like	O	O
this	O	O
..	O	O
.	O	O

}	O	O

I	O	O
've	O	O
tried	O	O
a	O	O
few	O	O
different	O	O
things	O	O
,	O	O
but	O	O
i	O	O
'm	O	O
sure	O	O
I	O	O
have	O	O
a	O	O
few	O	O
things	O	O
that	O	O
I	O	O
do	O	O
n't	O	O
need	O	O
.	O	O

Also	O	O
you	O	O
can	O	O
go	O	O
to	O	O
http://www.supertecho.com/background.html	O	O
in	O	O
order	O	O
to	O	O
see	O	O
what	O	O
the	O	O
current	O	O
code	O	O
is	O	O
for	O	O
my	O	O
magnification	O	O
idea	O	O
.	O	O

I	O	O
have	O	O
a	O	O
popup.html	O	B-File_Name
file	O	O
but	O	O
I	O	O
'm	O	O
not	O	O
sure	O	O
if	O	O
the	O	O
popup.html	O	B-File_Name
or	O	O
the	O	O
background.html	O	B-File_Name
code	O	O
would	O	O
be	O	O
more	O	O
necessary	O	O
or	O	O
not	O	O
(	O	O
or	O	O
maybe	O	O
both	O	O
is	O	O
needed	O	O
)	O	O
.	O	O

Let	O	O
me	O	O
know	O	O
if	O	O
I	O	O
am	O	O
unclear	O	O
about	O	O
things	O	O
and	O	O
I	O	O
will	O	O
clarify	O	O
!	O	O

Thanks	O	O
a	O	O
lot	O	O
in	O	O
advance	O	O
:-)	O	O

The	O	O
magnifying	O	O
effect	O	O
code	O	O
should	O	O
be	O	O
a	O	O
content	O	O
script	O	O
,	O	O
running	O	O
in	O	O
the	O	O
DOM	O	O
of	O	O
the	O	O
browsed	O	O
pages	O	B-User_Interface_Element
(	O	O
effectively	O	O
injected	O	O
into	O	O
each	O	O
page	O	B-User_Interface_Element
)	O	O
.	O	O

See	O	O
http://code.google.com/chrome/extensions/content_scripts.html	O	O

I	O	O
want	O	O
to	O	O
send	O	O
information	O	O
of	O	O
1	O	O
variable	O	O
with	O	O
javascript	O	B-Language
into	O	O
PHP	O	B-Language
.	O	O

So	O	O
,	O	O
i	O	O
used	O	O
this	O	O
code	O	O
(	O	O
in	O	O
index.php	O	B-File_Name
)	O	O
:	O	O

But	O	O
i	O	O
see	O	O
this	O	O
error	O	O
:	O	O

What	O	O
can	O	O
i	O	O
do	O	O
?	O	O

also	O	O
,	O	O
In	O	O
using	O	O
jQuery	O	B-Library
,	O	O
you	O	O
did	O	O
n't	O	O
closed	O	O
the	O	O
tag	O	O
:	O	O

close	O	O
like	O	O
this	O	O
and	O	O
use	O	O
this	O	O
code	O	O
:	O	O

$name	B-Code_Block	B-Variable
is	O	O
not	O	O
defined	O	O
.	O	O

You	O	O
have	O	O
the	O	O
echo	O	B-Code_Block
outside	O	O
of	O	O
the	O	O
if	O	O
statement	O	O
,	O	O
move	O	O
it	O	O
inside	O	O
the	O	O
braces	O	O
.	O	O

Also	O	O
,	O	O
you	O	O
post	O	O
to	O	O
submit.php	O	B-File_Name
but	O	O
this	O	O
code	O	O
is	O	O
for	O	O
php	O	B-File_Name
..	O	I-File_Name
.	O	I-File_Name
so	O	I-File_Name
you	O	I-File_Name
need	O	O
to	O	O
fix	O	O
that	O	O
,	O	O
too	O	O
.	O	O

For	O	O
highcharts	O	B-Library
,	O	O
I	O	O
need	O	O
to	O	O
generate	O	O
parse	O	O
data	O	O
in	O	O
order	O	O
to	O	O
generate	O	O
series	O	O
.	O	O

The	O	O
data	O	O
from	O	O
API	O	B-Application
looks	O	O
like	O	O
this	O	O
:	O	O

First	O	O
,	O	O
the	O	O
user	O	O
have	O	O
to	O	O
select	O	O
a	O	O
team	O	O
and	O	O
players	O	O
,	O	O
but	O	O
sometimes	O	O
there	O	O
is	O	O
no	O	O
result	O	O
.	O	O

For	O	O
example	O	O
,	O	O
for	O	O
the	O	O
date	O	O
XX	O	B-Variable
,	O	O
I	O	O
selected	O	O
4	O	O
team	O	O
ID	O	B-Variable
but	O	O
the	O	O
API	O	B-Application
returns	O	O
only	O	O
2	O	O
of	O	O
them	O	O
.	O	O

I	O	O
have	O	O
to	O	O
take	O	O
this	O	O
in	O	O
consideration	O	O
.	O	O

I	O	O
'm	O	O
trying	O	O
to	O	O
different	O	O
types	O	O
of	O	O
series	O	O
,	O	O
the	O	O
first	O	O
one	O	O
represents	O	O
all	O	O
the	O	O
team	O	O
scores	O	O
,	O	O
the	O	O
second	O	O
one	O	O
all	O	O
the	O	O
players	O	O
scores	O	O
,	O	O
and	O	O
the	O	O
other	O	O
for	O	O
the	O	O
score	O	O
each	O	O
team	O	O
did	O	O
.	O	O

So	O	O
there	O	O
are	O	O
many	O	O
graphs	O	B-Data_Structure
.	O	O

I	O	O
'm	O	O
using	O	O
Ampserand.js	O	B-Library
,	O	O
the	O	O
the	O	O
model	O	O
is	O	O
the	O	O
same	O	O
but	O	O
he	O	O
is	O	O
called	O	O
as	O	O
much	O	O
time	O	O
as	O	O
the	O	O
number	O	O
of	O	O
teams	O	O
selected	O	O
in	O	O
the	O	O
form	O	O
.	O	O

I	O	O
did	O	O
something	O	O
like	O	O
this	O	O
:	O	O

I	O	O
have	O	O
a	O	O
problem	O	O
with	O	O
the	O	O
series	O	O
generated	O	O
when	O	O
there	O	O
is	O	O
no	O	O
result	O	O
for	O	O
a	O	O
team	O	O
in	O	O
the	O	O
api	O	B-Application
's	O	O
result	O	O
.	O	O

An	O	O
usable	O	O
array	O	B-Data_Structure
should	O	O
be	O	O
like	O	O
this	O	O
for	O	O
example	O	O
:	O	O

Moreover	O	O
,	O	O
the	O	O
code	O	O
looks	O	O
redundant	O	O
,	O	O
is	O	O
there	O	O
a	O	O
trick	O	O
with	O	O
some	O	O
Array	O	B-Data_Structure
function	O	O
to	O	O
do	O	O
that	O	O
more	O	O
easily	O	O
?	O	O

Thanks	O	O
in	O	O
advance	O	O
,	O	O
big	O	O
problem	O	O
for	O	O
me	O	O
here	O	O
!	O	O

Does	O	O
your	O	O
code	O	O
work	O	O
for	O	O
you	O	O
?	O	O

I	O	O
just	O	O
tried	O	O
this	O	O
:	O	O
http://jsfiddle.net/ma50685a/5/	O	O
-	O	O
looks	O	O
strange	O	O
.	O	O

Anyway	O	O
,	O	O
I	O	O
would	O	O
suggest	O	O
to	O	O
improve	O	O
a	O	O
bit	O	O
your	O	O
if-else	B-Code_Block	B-Code_Block
statements	O	O
,	O	O
for	O	O
example	O	O
:	O	O

This	O	O
can	O	O
be	O	O
made	O	O
as	O	O
one	O	O
function	O	O
:	O	O

Now	O	O
simply	O	O
:	O	O

Note	O	O
:	O	O
Code	O	O
is	O	O
not	O	O
tested	O	O
,	O	O
because	O	O
I	O	O
could	O	O
n't	O	O
setup	O	O
working	O	O
demo	O	O
according	O	O
to	O	O
the	O	O
info	O	O
you	O	O
provided	O	O
,	O	O
sorry	O	O
.	O	O

Okay	O	O
,	O	O
so	O	O
I	O	O
'm	O	O
running	O	O
a	O	O
small	O	O
test	O	O
webserver	O	B-Application
on	O	O
my	O	O
private	O	O
network	O	O
.	O	O

I	O	O
've	O	O
got	O	O
a	O	O
machine	O	O
running	O	O
Windows	O	B-Operating_System
2000	O	B-Version
Pro	O	I-Version
,	O	O
and	O	O
I	O	O
'm	O	O
trying	O	O
to	O	O
run	O	O
an	O	O
ASP.NET	O	B-Library
app	O	O
through	O	O
IIS	O	B-Application
.	O	O

I	O	O
wrote	O	O
it	O	O
so	O	O
that	O	O
the	O	O
webpage	O	O
would	O	O
use	O	O
the	O	O
registry	O	O
to	O	O
store	O	O
certain	O	O
settings	O	O
(	O	O
connection	O	O
strings	O	B-Data_Type
,	O	O
potentially	O	O
volatile	O	O
locations	O	O
of	O	O
other	O	O
web	O	O
services	O	O
,	O	O
paths	O	O
in	O	O
the	O	O
local	O	O
filesystem	O	O
where	O	O
certain	O	O
information	O	O
is	O	O
stored	O	O
etc	O	O
..	O	O
.	O	O
)	O	O
Of	O	O
course	O	O
,	O	O
it	O	O
worked	O	O
fine	O	O
when	O	O
testing	O	O
with	O	O
VStudio.NET	O	B-Application
2005	O	B-Version
,	O	O
because	O	O
the	O	O
user	O	O
running	O	O
the	O	O
app	O	O
has	O	O
elevated	O	O
privileges	O	O
.	O	O

However	O	O
,	O	O
running	O	O
it	O	O
on	O	O
IIS	O	B-Application
I	O	O
get	O	O
a	O	O
"	O	B-Output_Block
Access	O	I-Output_Block
to	O	I-Output_Block
the	O	I-Output_Block
registry	O	I-Output_Block
key	O	I-Output_Block
'	O	I-Output_Block
HKEY_LOCAL_MACHINE\Software	O	I-Output_Block
'	O	B-Output_Block
is	O	I-Output_Block
denied	O	I-Output_Block
.	O	I-Output_Block
"	O	I-Output_Block
,	O	O
which	O	O
suggests	O	O
the	O	O
IIS	O	B-Application
user	O	O
does	O	O
n't	O	O
have	O	O
read	O	O
access	O	O
to	O	O
that	O	O
part	O	O
of	O	O
the	O	O
registry	O	O
(	O	O
I	O	O
only	O	O
do	O	O
reads	O	O
through	O	O
the	O	O
website	O	O
itself	O	O
,	O	O
never	O	O
writes	O	O
)	O	O
.	O	O

I	O	O
was	O	O
like	O	O
"	O	O
okay	O	O
,	O	O
simple	O	O
enough	O	O
,	O	O
I	O	O
'll	O	O
just	O	O
go	O	O
give	O	O
that	O	O
user	O	O
rights	O	O
to	O	O
that	O	O
part	O	O
of	O	O
the	O	O
registry	O	O
through	O	O
regedit	O	B-Application
.	O	O
"	O	O

The	O	O
problem	O	O
is	O	O
,	O	O
I	O	O
do	O	O
n't	O	O
see	O	O
an	O	O
option	O	O
anywhere	O	O
in	O	O
regedit	O	B-Application
to	O	O
change	O	O
security	O	O
settings	O	O
..	O	O
.	O	O
at	O	O
all	O	O
.	O	O

Which	O	O
got	O	O
me	O	O
thinking	O	O
..	O	O
.	O	O

I	O	O
do	O	O
n't	O	O
think	O	O
I	O	O
've	O	O
ever	O	O
actually	O	O
had	O	O
to	O	O
change	O	O
security	O	O
settings	O	O
for	O	O
registry	O	O
hives/keys	O	O
before	O	O
,	O	O
and	O	O
I	O	O
do	O	O
n't	O	O
think	O	O
I	O	O
know	O	O
how	O	O
to	O	O
do	O	O
it	O	O
.	O	O

Half	O	O
an	O	O
hour	O	O
of	O	O
searching	O	O
the	O	O
web	O	O
later	O	O
,	O	O
I	O	O
have	O	O
n't	O	O
found	O	O
any	O	O
usable	O	O
information	O	O
on	O	O
this	O	O
subject	O	O
.	O	O

What	O	O
I	O	O
'm	O	O
wondering	O	O
is	O	O
..	O	O
.	O	O
how	O	O
DO	O	O
you	O	O
change	O	O
security	O	O
rights	O	O
to	O	O
portions	O	O
of	O	O
the	O	O
registry	O	O
?	O	O

I	O	O
'm	O	O
stumped	O	O
,	O	O
and	O	O
it	O	O
seems	O	O
my	O	O
ability	O	O
to	O	O
find	O	O
the	O	O
answer	O	O
on	O	O
Google	O	B-Website
is	O	O
failing	O	O
me	O	O
utterly	O	O
..	O	O
.	O	O
and	O	O
since	O	O
I	O	O
just	O	O
signed	O	O
up	O	O
here	O	O
,	O	O
I	O	O
figured	O	O
I	O	O
'd	O	O
see	O	O
if	O	O
anyone	O	O
here	O	O
knew	O	O
.	O	O

=)	O	O

Oh	O	O
,	O	O
let	O	O
me	O	O
try	O	O
that	O	O
!	O	O

I	O	O
did	O	O
n't	O	O
realize	O	O
you	O	O
could	O	O
remotely	O	O
connect	O	O
to	O	O
another	O	O
registry	O	O
.	O	O

(	O	O
EDIT	O	O
:	O	O
I	O	O
was	O	O
wrong	O	O
,	O	O
it	O	O
did	O	O
work	O	O
..	O	O
.	O	O
it	O	O
just	O	O
took	O	O
several	O	O
minutes	O	O
to	O	O
respond	O	O
to	O	O
my	O	O
request	O	O
to	O	O
change	O	O
permissions	O	O
remotely	O	O
)	O	O

The	O	O
remote	O	O
connection	O	O
idea	O	O
did	O	O
it	O	O
!	O	O

You	O	O
're	O	O
good	O	O
!	O	O

Thanks	O	O
so	O	O
much	O	O
for	O	O
your	O	O
help	O	O
!	O	O

I	O	O
never	O	O
realized	O	O
you	O	O
could	O	O
remote	O	O
connect	O	O
with	O	O
RegEdit	O	B-Application
..	O	O
.	O	O
you	O	O
learn	O	O
something	O	O
new	O	O
every	O	O
day	O	O
,	O	O
they	O	O
say	O	O
!	O	O

=)	O	O
Thanks	O	O
again	O	O
for	O	O
your	O	O
assistance	O	O
!	O	O

=)	O	O

On	O	O
another	O	O
note	O	O
though	O	O
,	O	O
about	O	O
copying	O	O
the	O	O
XP	O	B-Version
version	O	O
of	O	O
RegEdit	O	B-Application
to	O	O
Windows	O	B-Operating_System
2000	O	B-Version
..	O	O
.	O	O
is	O	O
that	O	O
safe	O	O
?	O	O

I	O	O
figured	O	O
they	O	O
would	O	O
be	O	O
coded	O	O
in	O	O
such	O	O
a	O	O
way	O	O
as	O	O
to	O	O
be	O	O
incompatible	O	O
..	O	O
.	O	O
but	O	O
I	O	O
could	O	O
be	O	O
assuming	O	O
too	O	O
much	O	O
.	O	O

=)	O	O

If	O	O
your	O	O
having	O	O
touble	O	O
with	O	O
RegEdit	O	B-Application
in	O	O
Windows	O	B-Operating_System
2000	O	B-Version
you	O	O
can	O	O
try	O	O
the	O	O
following	O	O
:	O	O

Copy	O	O
the	O	O
Windows	O	B-Operating_System
XP	O	B-Version
RegEdt32.exe	O	B-File_Name
to	O	O
the	O	O
Windows	O	B-Operating_System
2000	O	B-Version
Machine	O	O

Using	O	O
a	O	O
Windows	O	B-Operating_System
XP	O	B-Version
Machine	O	O
,	O	O
connect	O	O
to	O	O
the	O	O
Windows	O	B-Operating_System
2000	O	B-Version
registry	O	O
remotely	O	O
:	O	O
File	O	O
>	O	O
Connect	O	O
Network	O	O
Registry	O	O

I	O	O
am	O	O
using	O	O
the	O	O
following	O	O
code	O	O
for	O	O
uploading	O	O
picture	O	B-User_Interface_Element
from	O	O
android	O	B-Application
avd	O	I-Application
.	O	O

but	O	O
this	O	O
code	O	O
adds	O	O
few	O	O
extra	O	O
header	O	O
info	O	O
into	O	O
the	O	O
file	O	O
.	O	O

like	O	O
following	O	O

--*	O	O

Content-Disposition	O	B-Code_Block
:	O	I-Code_Block
form-data	O	I-Code_Block
;	O	I-Code_Block
name	O	I-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
value1	O	I-Code_Block
"	O	I-Code_Block
;	O	I-Code_Block

test	O	O

--*	O	O

Content-Disposition	O	B-Code_Block
:	O	I-Code_Block
form-data	O	I-Code_Block
;	O	I-Code_Block
name	O	I-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
value2	O	I-Code_Block
"	O	I-Code_Block
;	O	I-Code_Block

param	O	O

--*	O	O

Content-Disposition	O	B-Code_Block
:	O	I-Code_Block
form-data	O	I-Code_Block
;	O	I-Code_Block
name	O	I-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
file	O	I-Code_Block
"	O	I-Code_Block
;	O	I-Code_Block
filename	O	I-Code_Block
=	O	I-Code_Block
"	O	I-Code_Block
1.jpg	O	I-Code_Block
"	O	O

Content-Type	O	O
:	O	O
image/jpeg	O	B-User_Interface_Element

therefore	O	O
when	O	O
the	O	O
file	O	O
stored	O	O
into	O	O
the	O	O
server	O	B-Device
,	O	O
it	O	O
can	O	O
not	O	O
be	O	O
opened	O	O
as	O	O
JPEG	O	B-File_Type
Image	O	O
.	O	O

I	O	O
have	O	O
found	O	O
that	O	O
the	O	O
options	O	O
object	O	O
is	O	O
responsible	O	O
for	O	O
adding	O	O
those	O	O
extra	O	O
header	O	O
info	O	O
.	O	O

i	O	O
tried	O	O
without	O	O
the	O	O
options	O	O
object	O	O
by	O	O
assigning	O	O
null	O	B-Value
.	O	O

but	O	O
still	O	O
there	O	O
are	O	O
few	O	O
extra	O	O
info	O	O
into	O	O
the	O	O
file	O	O
.	O	O

Looking	O	O
forward	O	O
for	O	O
suggestions	O	O
to	O	O
upload	O	O
file	O	O
without	O	O
any	O	O
extra	O	O
info	O	O
within	O	O
the	O	O
file	O	O
.	O	O

Well	O	O
if	O	O
you	O	O
take	O	O
out	O	O
these	O	O
lines	O	O
:	O	O

you	O	O
wo	O	O
n't	O	O
see	O	O
:	O	O

anymore	O	O
.	O	O

However	O	O
you	O	O
will	O	O
still	O	O
see	O	O
:	O	O

as	O	O
the	O	O
web	O	B-Application
server	O	I-Application
needs	O	O
to	O	O
know	O	O
how	O	O
to	O	O
handle	O	O
the	O	O
incoming	O	O
file	O	O
.	O	O

I	O	O
believe	O	O
the	O	O
problem	O	O
to	O	O
be	O	O
on	O	O
the	O	O
web	O	B-Application
server	O	I-Application
end	O	O
i.e	O	O
.	O	O
the	O	O
script	O	O
that	O	O
receives	O	O
the	O	O
file	O	O
.	O	O

try	O	O

and	O	O
what	O	O
do	O	O
these	O	O
mean	O	O
?	O	O

in	O	O
the	O	O
.jjt	O	B-File_Type
file.I	O	O
could	O	O
n't	O	O
even	O	O
make	O	O
any	O	O
understand	O	O
of	O	O
it	O	O
..	O	O
.	O	O

`	O	O

jjtThis.setName()	O	B-Function
;	O	O

jjtThis.type	O	B-Variable
;	O	O

jjtThis.setLength()	O	B-Function
;	O	O

jjtThis.correlationName	O	B-Variable
;	O	O

jjtThis.setScale()	O	B-Function
;	O	O

jjtThis.setPrecision()	O	B-Function
;	O	O

jjtThis.add()	O	B-Function
;	O	O

jjtThis.tableName	O	B-Variable
;	O	O

jjtThis.name	O	B-Variable
;	O	O

jjtThis.position	O	B-Variable
;	O	O

jjtThis.length	O	B-Variable
;	O	O

..	O	O
.	O	O

`	O	O

what	O	O
do	O	O
these	O	O
methods	O	O
and	O	O
fields	O	O
of	O	O
jjtThis	O	B-Class
come	O	O
from	O	O
?	O	O
why	O	O
I	O	O
can	O	O
n't	O	O
figure	O	O
out	O	O
the	O	O
meanings	O	O
of	O	O
these	O	O
things	O	O
?..	O	O
.	O	O

It	O	O
refers	O	O
to	O	O
the	O	O
current	O	O
node	O	O
.	O	O

See	O	O
the	O	O
documentation	O	O
https://javacc.java.net/doc/JJTree.html	O	O
for	O	O
more	O	O
detail	O	O
.	O	O

