Wednesday, June 04, 2008
Checkout from googlecode: svn problem
I was trying to have a checkout from one of googlecode project and I was getting the following error:
- while using eclipse
- RA layer request failed...could not connect to server
- while using command prompt
- svn: PROPFIND request failed on '/svn/trunk'
- svn: PROPFIND of '/svn/trunk': could not connect to server <my url>
After searching for a while, I found that my system is behind a firewall/proxy, so I need to give the proxy settings to svn client. Below are snapshot on how to give proxy settings in svn client, Tortoise SVN.
Press Apply and then ok.
I hope this helps someone around. One useful link with step by step approach to checkout from googlecode.
Tuesday, June 03, 2008
Error 1084
1084: Syntax error: expecting colon before leftbrace.
1084: Syntax error: expecting identifier before rightbrace.
1084: Syntax error: expecting rightbrace before semicolon.
1084: Syntax error: expecting rightparen before rightbrace.
1084: Syntax error: expecting semicolon before rightparen.
Possible Reasons:
- Some typo mistake could lead to this error.
e.g. - for(var z:int = 0; z<items, z++)
instead of semicolon, you put comma - if(a==0{
missed right parentheses before left brace
Do you know any other possible reason for this ?
Error 1180
1180: Call to a possibly undefined method doPrint.
Here doPrint is my Method Name.
Possible Reason:
- Trying to invoke the method which is not available. Define that method and problem gets fixed.
Do you know any other possible reason for this ?
Error 1061
A Basic Error:
1061: Call to a possibly undefined method through a reference with static type Class.
Severity and Description Path Resource Location Creation Time Id
1061: Call to a possibly undefined method addObject through a reference with static type FlexPrintJob. FlexPrintJobExample/src FlexPrintJob.mxml line 11 1212473910669 732
Possible Reasons:
- I named my MXML file as FlexPrintJob, but as its an internal class, so I got this error. Rename the file and error gets fixed.
Do you know any other possible reasons ?
Monday, June 02, 2008
One more MGPT
I had one more MGPT(Machine Graded Programming Test), on 24th May. Below, is what I can remember from the problem.
- Input is two integers
- First integer is to have a 2D array of that size
- second integer, to find the numbers by that that number is surrounded
e.g. I input 11 and 11 So I will have a circular array as shown below:
111 112 113 114 115 116 117 118 119 120 121
110 73 74 75 76 77 78 79 80 81 82
109 72 43 44 45 46 47 48 49 50 83
108 71 42 21 22 23 24 25 26 51 84
107 70 41 20 7 8 9 10 27 52 85
106 69 40 19 6 1 2 11 28 53 86
105 68 39 18 5 4 3 12 29 54 87
104 67 38 17 16 15 14 13 30 55 88
103 66 37 36 35 34 33 32 31 56 89
102 65 64 63 62 61 60 59 58 57 90
101 100 99 98 97 96 95 94 93 92 91
and second input say 11 then my output should be
9 10 27
2 11 28
3 12 29
A number can have a minimum of 3 surrounded and a max of 8 numbers. First number will be an Odd number only (to have a middle starting position).
Will be posting my solution, later on
Second Problem
Its like a social network. e.g.
A -> B (A is connected to B)
B -> C (B is connected to C)
then C is indirectly connected to A. In middle there can be many other also. So to reach from A to C, there is one person. Input will be
A C and output should go like, the mediator name and number of hops to pass to reach the required person.