One asian in Britian (Part III)
Comes to the third part, Last night I joined the ABACUS group of UKC. It was really fun. The party at chinese restaurant, CHOM CHOM. The restaurant is very different that I pictured in mind. I thought it would be a very old traditional chinese restaurant, you know dirty, rubbish, bad manner staff. But actually??it is very modern, decorated with fashionable furnitures. It is a buffet thought, but it also serves regular chinese-thai-indian food. I will try it again next time, I didn’t have much time to enjoy last night though.
I have seen lots of asian people migrate to Britian. None of them have never had a problem with verbal abuse or anything physical before. So, I might be wrong about Britons hate Asian people. Somebody told me it is a Xenophobic. I think it is true. There are so minority people who think that they belong to their country, nobody comes in to my country. I think it’s wrong, we are human beings, we grew up in the same planet, why we can’t live together?
And then I come to London, I saw many people living together, Black, White, Yellow. So, I think back how am I going to live in this country. I love this country. I know it’s hard, I know it’s impossible, but at least I could try. Let’s see what’s next…
One asian in Britian (Part II)
Hello Mate!!, now I become a MSc student in Kent now. I still find some racism here. British kids abuse or tease asian people like we are a crown or something funny. I don’t know why those jerks are still living in this planet. Because we are now on the globalisation era. We are on the same planet. Right!!!!
I am now trying to pursue my life to live in this country. Let’s see how it goes!!
My experience Error 99 with Canon 400D
I have to admit that I accidently dropped my camera into the river while I was on a trip with my friends. But after I dropped my camera into the river, I suddenly took out the batteries and the grip and CF card. Afterwards, I sit the camera in a camera bag with a silicon bag for a day. Everything worked like a charm. However, after two weeks I came to the UK to study and all of a sudden the bloody error 99 shown.
I google and have a camera checked with an expert. They told me that “you have to turn the camera to Canon to change the shutter and a main circuit board. But my can shoot the picture as nothing with my camera except that the error 99 occur when I turn on the camera.
Here how I solve my problem and I used my camera ever since without problem. Because if I have to send the camera away, it’s very costly.
1. Before turn on the camera press the JUMP button and hold and then turn on the camera. The error 99 disappeared. At least it works for me.
2. Take out the battery, the grip, the CF card, and leave for 20 mins. Insert the battery with only fully charged. And see if it can solve your error.
3. Try to clean the contact len with a pencil rubber, carefully clean the surface with the camera down, so the bits don’t get in to the camera.
4. Try to change the CF card.
You should try. But if you still have a warranty, just send the camera to Canon and change everything they said.
Good luck!!!
How to deal with java.util.ConcurrentModificationException with ArrayList
It is literally occurred when you needed to modify the list while you are iterating it in the same time.
I have two options for you to consider and use at your own risk.
This is the example that cause an error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This is the first option you could use CopyOnWriteArrayList but there are some drawbacks too. This is the modified result and it worked for me.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class TestAddRemoveList
{
public static void main( String args[] )
{
List< String > list = new CopyOnWriteArrayList< String >();
list.add("A");
list.add("B");
for( String str : list )
{
if( str.equals( "B" ) )
{
list.remove( new String("B" ) );
}
}
}
}
This is the other option. You could you iterator to modify the list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class TestAddRemoveList
{
public static void main( String args[] )
{
List< String > list = new ArrayList< String >();
list.add("A");
list.add("B");
list.add("C");
for( Iterator< String > it = list.iterator(); it.hasNext() ; )
{
String str = it.next();
if( str.equals( "B" ) )
{
it.remove();
}
}
for( String str : list )
{
System.out.println( str );
}
}
}