Re: [nox-dev] Error in send a string using messenger component

2011-06-18 Thread kk yap
Hi Ricardo,

You might want to add a length and type in front of the string.  :)

Regards
KK

On 18 June 2011 14:46, Ricardo Bennesby  wrote:
> Hi.
>
> I am writing component in C++ that uses messenger component.
>
> I have a client function that send a string to the own component. As
> follows:
>
>   void comp::sendMessageOtherAs(){
>     ClientSocket theSocket ("localhost", 2603 );
>     string request;
>     request = "Test";
>     theSocket << request << "\n";
>     lg.dbg("Echo sent");
>   }
>
> The server part is did by messenger component, calling the handle_message
> function;
>
> But the result, when the handle_message is invoked is:
>
> 00108|messenger_core|DBG:Starting connection with idleInterval 0
> 00109|messenger_core|DBG:Received packet of length 0
> 00110|messenger|DBG:Message posted as Msg_event
> 00111|messenger_core|DBG:TCP socket connection accepted
> 00112|messenger_core|DBG:Copy 2 bytes to message
> 00113|messenger|DBG:Check message completeness 2 (expected 21349)
> 00114|messenger_core|DBG:Copy 31 bytes to message
> 00115|messenger|DBG:Check message completeness 33 (expected 21349)
> 00116|messenger_core|DBG:Received packet of length 3
> 00117|messenger_core|DBG:Received disconnection request
> 00118|messenger|DBG:Message posted as Msg_event
> 00119|messenger_core|DBG:socket closed
>
> And the handler messenger has the code:
>
> switch (me.msg->type)
>     {
>     case MSG_DISCONNECT:
>   return STOP;
>   break;
>     case MSG_ECHO:
>   VLOG_DBG(lg, "Got echo request");
>   reply_echo(me);
>   return STOP;
>   break;
>     case MSG_ECHO_RESPONSE:
>   VLOG_DBG(lg, "Echo reply received");
>   return STOP;
>   break;
>     case MSG_NOX_STR_CMD:
>   char mstring[ntohs(me.msg->length)-sizeof(messenger_msg)+1];
>   memcpy(mstring, me.msg->body,
> ntohs(me.msg->length)-sizeof(messenger_msg));
>   mstring[ntohs(me.msg->length)-sizeof(messenger_msg)] = '\0';
>   VLOG_DBG(lg, "Received string %s", mstring);
>   break;
>     }
>
> Shouldn't the message be of MSG_NOX_STR_CMD type and prints the string sent?
> Or the way I am sending the string is wrong?
>
> Sorry if I did'n made me clear.
> Thanks for help.
> Regards.
>
> --
> Ricardo Bennesby da Silva
> Ciência da Computação - UFAM
> LabCIA - Laboratório de Computação Inteligente e Autônoma
>
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[algogeeks] Re: STL MAP HELP

2011-06-18 Thread KK
but in a set elements are not in any order...and also set cannot be
indexed...

if u want to sort in the basis of key use vector with pair...
Correct me if m wrong

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [nox-dev] NOX architecture schemes

2011-06-17 Thread kk yap
Hi Andrea,

The usefulness of the components that provide network-wide view can varies
widely/wildly depending on your purpose.  Being components themselves, they
can be easily extended, replaced, etc. That's why I think the doxygen
documentation can be useful in navigating what these components provide.

However, I do understand and believe that at some point we need a network
API.  I do not believe we are there yet though.

Regards
KK

On 17 June 2011 03:00, andrea simeoni  wrote:

> Hi KK,
>
> I understand that what I only need to build my components is:
>
> 1) The class 'Component',  that provides an API to register handlers and to
> issue OF commands toward the network
> 2)  openflow.hh,  that defines all data-structures and message formats
> needed to implement the OF protocol and to use the API in 1.
>
> However some implemented components come in with NOX installation; that I
> can choose to instantiate at runtime. Such components are useful as they
> implement basic control-plane functions (i.e. maintain routes) and provide
> an high level wide-view of the network.
>
> I would like to understand in detail what is the provided wide-view, and
> what is the API (functions and variables) provided by components that I can
> access to retrieve such information.
>
>
> Please tell me if I'm getting wrong in some reasoning step.
>
>
> Thank you
>
>
>
>
> 2011/6/16 kk yap 
>
>> Hi Andrea,
>>
>> Beyond the component class, there is nothing particular abstract about
>> the API of NOX IMHO.  You might of course also be interested in the
>> OpenFlow messaging API.  Is there anything beyond that?  If not, then
>> the doxygen page of Component is what you are looking for?
>>
>> Regards
>> KK
>>
>> On 16 June 2011 13:36, andrea simeoni  wrote:
>> > Hi KK,
>> >
>> > Thank you for answering...the architectural design that you suggested me
>> was
>> > already clear in my mind.
>> > I think it is useful for understanding how NOX basically works; however
>> an
>> > high level design of the API
>> > provided by main components is completely missing.
>> > Now I'm working to produce such high level scheme, and to develop some
>> > use-cases diagrams showing the functionality actually provided by NOX
>> > components.
>> >
>> > If I'll produce something useful I'll be glad to share it.
>> >
>> > Regards
>> >
>> >
>> >
>> > 2011/6/16 kk yap 
>> >>
>> >> Hi Andrea,
>> >> I am assuming you are trying to get started on NOX with the
>> description?
>> >>  I had a short introduction to NOX a while back (which can be
>> outdated),
>> >> since I am fairly out of touch. You can check it out here
>> >> https://docs.google.com/present/view?id=dfsbt2qf_327f9688ngr&ncl=true
>> ..
>> >> Maybe you can provide some suggestions on how to make this clearer for
>> >> others too.  That would be appreciated.
>> >> Regards
>> >> KK
>> >>
>> >> On 13 June 2011 15:09, andrea simeoni 
>> wrote:
>> >>>
>> >>> Hi guys,
>> >>> Do you know were I can find an architectural description of NOX? (
>> >>> I mean  a paper or some images describing what are the API provided by
>> >>> basic components and what are the main events generated by the network
>> and
>> >>> by components.
>> >>> I've already found the doxygen documentation
>> >>> at http://noxrepo.org/noxwiki/ and I'm looking for some more clear
>> schemes.
>> >>> Any suggestions?
>> >>> Thank you
>> >>>
>> >>> --
>> >>> Andrea Simeoni
>> >>>
>> >>> ___
>> >>> nox-dev mailing list
>> >>> nox-dev@noxrepo.org
>> >>> http://noxrepo.org/mailman/listinfo/nox-dev
>> >>>
>> >>
>> >
>> >
>> >
>> > --
>> > Andrea Simeoni
>> >
>>
>
>
>
> --
> Andrea Simeoni
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[algogeeks] Minimum Rotations

2011-06-17 Thread KK
http://www.spoj.pl/problems/MINMOVE/
This code is showing TLE after some 20th test  case what else can be
optimized???

try:
import psyco
psyco.full()
except ImportError:
pass

string = input()
minlen = string
length = len(string)

string += string[:]
#print(string)

index = 0
for i in range(1, length):
if string[i : i+length] < minlen:
minlen = string[i : i+length]
index = i

print(index)


-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Tic Tac Toe

2011-06-17 Thread KK
oops !! :) i'll look into that.. thx

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Fiddling with Bits

2011-06-17 Thread KK
To remove all digits left of the rightmost digit one in the binary
representation of some integer what we need to do is this:
ans = no & -no
and this is what is exactly asked in this problem of SPOJ:
www.spoj.pl/problems/MZVRK/


#include
using namespace std;
int main()
{
unsigned long long int a, b, sum;
while(scanf("%lld%lld", &a, &b) != EOF)
{
  sum = 0;
  while(a != (b+1))
  {
  sum += (a & -a);
  a++;
  }
  printf("%lld\n", sum);
}
return 0;
}

Its giving TLE on some 10th case...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Tic Tac Toe

2011-06-17 Thread KK
@sunny: why the answer for the case u mentioned is no.. those are
possible set of moves according to me and hence my program outputs
"yes"

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Tic Tac Toe

2011-06-17 Thread KK
@sunny:
This test:
 if(! ( (countx == counto + 1) || (countx == counto) ) )
cout << "no" << endl;
prints no if countx > counto

and this one
 if(o && x)
 cout << "no" << endl;
  else
 cout << "yes" << endl;

prints no if both have won or else yes
correct me if m wrong...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Tic Tac Toe

2011-06-16 Thread KK
https://www.spoj.pl/problems/TOE1/
For which test case does this program fail


#include
#include
using namespace std;

bool isWin(vector< vector > &v, char ch);

int main()
{
vector col(3);
vector< vector > v(3, col);
int t, i, j;
bool x, o;

cin >> t;
while(t--)
{
  int counto = 0, countx = 0;
  for(i=0; i<3; i++)
 for(j=0; j<3; j++)
 {
cin >> v[i][j];
if(v[i][j] == 'O')
   counto++;
else if(v[i][j] == 'X')
   countx++;
 }

  //cout << countx << " " << counto << endl;
  if(! ( (countx == counto + 1) || (countx == counto) ) )
cout << "no" << endl;
  else
  {
  x = isWin(v, 'X');
  o = isWin(v, 'O');

  //cout << "x = " << x << " o = " << o<< endl;
  if(o && x)
 cout << "no" << endl;
  else
 cout << "yes" << endl;
  }
}
return 0;
}

bool isWin(vector< vector > &v, char ch)
{
 int i, j=0;
 for(i=0; i<3; i++)
 {
 if(v[i][j] == v[i][j+1] && v[i][j+1] == v[i][j+2] && v[i]
[j] == ch)
return true;
 }

 i=0;
 for(j=0; j<3; j++)
 {
 if(v[i][j] == v[i+1][j] && v[i+1][j] == v[i+2][j] && v[i]
[j] == ch)
return true;
 }

 if(v[0][0] == v[1][1] && v[1][1] == v[2][2] && v[0][0] == ch)
   return true;

 if(v[2][0] == v[1][1] && v[1][1] == v[0][2] && v[1][1] == ch)
   return true;

 return false;

}

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [nox-dev] NOX architecture schemes

2011-06-16 Thread kk yap
Hi Andrea,

Beyond the component class, there is nothing particular abstract about
the API of NOX IMHO.  You might of course also be interested in the
OpenFlow messaging API.  Is there anything beyond that?  If not, then
the doxygen page of Component is what you are looking for?

Regards
KK

On 16 June 2011 13:36, andrea simeoni  wrote:
> Hi KK,
>
> Thank you for answering...the architectural design that you suggested me was
> already clear in my mind.
> I think it is useful for understanding how NOX basically works; however an
> high level design of the API
> provided by main components is completely missing.
> Now I'm working to produce such high level scheme, and to develop some
> use-cases diagrams showing the functionality actually provided by NOX
> components.
>
> If I'll produce something useful I'll be glad to share it.
>
> Regards
>
>
>
> 2011/6/16 kk yap 
>>
>> Hi Andrea,
>> I am assuming you are trying to get started on NOX with the description?
>>  I had a short introduction to NOX a while back (which can be outdated),
>> since I am fairly out of touch. You can check it out here
>> https://docs.google.com/present/view?id=dfsbt2qf_327f9688ngr&ncl=true..
>> Maybe you can provide some suggestions on how to make this clearer for
>> others too.  That would be appreciated.
>> Regards
>> KK
>>
>> On 13 June 2011 15:09, andrea simeoni  wrote:
>>>
>>> Hi guys,
>>> Do you know were I can find an architectural description of NOX? (
>>> I mean  a paper or some images describing what are the API provided by
>>> basic components and what are the main events generated by the network and
>>> by components.
>>> I've already found the doxygen documentation
>>> at http://noxrepo.org/noxwiki/ and I'm looking for some more clear schemes.
>>> Any suggestions?
>>> Thank you
>>>
>>> --
>>> Andrea Simeoni
>>>
>>> ___
>>> nox-dev mailing list
>>> nox-dev@noxrepo.org
>>> http://noxrepo.org/mailman/listinfo/nox-dev
>>>
>>
>
>
>
> --
> Andrea Simeoni
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[algogeeks] Re: is it correct??

2011-06-16 Thread KK
Use sprintf(string, formatSpecifier, variable) instead
u can even use %o %x for changing integer to corresponding oct and
hex...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [nox-dev] NOX architecture schemes

2011-06-16 Thread kk yap
Hi Andrea,

I am assuming you are trying to get started on NOX with the description?  I
had a short introduction to NOX a while back (which can be outdated), since
I am fairly out of touch. You can check it out here
https://docs.google.com/present/view?id=dfsbt2qf_327f9688ngr&ncl=true..

Maybe you can provide some suggestions on how to make this clearer for
others too.  That would be appreciated.

Regards
KK

On 13 June 2011 15:09, andrea simeoni  wrote:

> Hi guys,
>
> Do you know were I can find an architectural description of NOX? (
>
> I mean  a paper or some images describing what are the API provided by
> basic components and what are the main events generated by the network and
> by components.
> I've already found the doxygen documentation at
> http://noxrepo.org/noxwiki/ and I'm looking for some more clear schemes.
>
> Any suggestions?
>
> Thank you
>
>
> --
> Andrea Simeoni
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[algogeeks] MST (BLINNET) problem on SPOJ

2011-06-16 Thread KK
www.spoj.pl/problems/BLINNET/
Here is the code for the same... Its not getting AC in SPOJ
m not able to figure out wheres the hole in this... plzz help

#include
#include
#include
#include
#include

#define MAXINT (int)9e9
#define TR(a,it)for(typeof((a).begin()) it=(a).begin(); it!
=(a).end(); ++it)
using namespace std;

struct node
{
   long int data;
   string name;
   long int cost;
   long int distance;
   long int parent;

   friend bool operator>(const node &a, const node& b);
};

long int prims(vector< list > &adjlist, int n);

int main()
{
 freopen("input.txt", "r", stdin);
 freopen("output.txt", "w", stdout);
 long int n, t, no_neigh;
 cin >> t;
 while(t--)
 {
   vector< list > adjlist;
   node temp;
   getchar();
   cin >> n;
   adjlist.resize(n + 1);
   for(long int i=1; i<=n; i++)
   {
cin >> temp.name;
//temp.data = i;
//adjlist[i].push_back(temp);

cin >> no_neigh;
for(long int j=1; j<=no_neigh; j++)
{
 cin >> temp.data >> temp.cost;
 adjlist[i].push_back(temp);
}
   }

   /*for(int i=1; i<=n; i++)
   {
   cout << i << ":" << endl;
   TR(adjlist[i], it)
  cout << it->data << " " << it->cost << endl;
   }*/

   cout << prims(adjlist, n) << endl;
 }
}

bool operator>(const node &a, const node& b)
{
 return a.distance > b.distance;
}

long int prims(vector< list > &adjlist, int n)
{
  priority_queue, greater > pq;
  node heap[n+1];
  for(long int i=1; i<=n; i++)
  {
heap[i].data = i;
heap[i].distance = MAXINT;
heap[i].parent = -1;
  }

  long int start = 1;
  heap[start].distance = 0;
  pq.push(heap[start]);

  while(!pq.empty())
  {
node top = pq.top();   pq.pop();
//cout << "popped :" << top.data << " " << endl;
if(top.distance <= heap[top.data].distance)
{
  //cout << "Traversed " << endl;
  TR(adjlist[top.data], it)
  {
   if(heap[it->data].distance > it->cost)
   {
heap[it->data].distance = it->cost;
heap[it->data].parent = top.data;
pq.push(heap[it->data]);
   }
  }
}
  }

  long int sum = 0;
  for(int i=1; i<=n; i++)
  sum += heap[i].distance;
  return sum;
}

/*
Input:
2

4
gdansk
2
2 1
3 3
bydgoszcz
3
1 1
3 1
4 4
torun
3
1 3
2 1
4 1
warszawa
2
2 4
3 1

3
ixowo
2
2 1
3 3
iyekowo
2
1 1
3 7
zetowo
2
1 3
2 7

Output:
3
4
*/

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Fast Python in Programming Contests

2011-06-16 Thread KK
How can the execution time of python program be increased in
programming contest so that we dont get TLE for gud algos..
-- 
http://mail.python.org/mailman/listinfo/python-list


[algogeeks] Re: spoj NKTM

2011-06-15 Thread KK
This q increased my score by directly 3 points... and thats a huge
one.. :D
@ kartik - Do it by priorty queue for better efficiency..

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Finding total number of inversions in an array in O(nlogn) complexity .

2011-06-15 Thread KK
Thanks Harshal!!
Actually changing juzz count from int to long long suffices

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: HASHIT

2011-06-15 Thread KK
Thanks dude!!

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Finding total number of inversions in an array in O(nlogn) complexity .

2011-06-14 Thread KK
This code is not getting AC on spoj.. m not able to point out the
error plzzz help.
Here is the link to this problem at spoj : http://www.spoj.pl/problems/INVCNT/


#include
#include
#include
#include
using namespace std;

void MergeSort(vector &v, int p, int r);
void Merge(vector &v, int p, int q, int r);
void PrintArray(vector v);

int count;

int main()
{
extern int count;
int n, i, t;
vector v;

//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);

cin >> t;
while(t--)
{
getchar();
count = 0;
scanf("%d",&n);
v.resize(n);

for(i=0; i &v, int p, int r)
{
 if(p < r)
 {
  int q = (p+r)/2;
  MergeSort(v,p,q);
  MergeSort(v,q+1,r);
  Merge(v,p,q,r);
 }
}

void Merge(vector &v, int p, int q, int r)
{
 extern int count;
 int i, j, k;
 vector v1, v2;
 v1.resize(q-p+1);
 v2.resize(r-q);

 k=0;
 for(i=p; i<=q; i++)
 v1[k++] = v[i];

 k=0;
 for(i=q+1; i<=r; i++)
 v2[k++] = v[i];

 v1.push_back(INT_MAX);
 v2.push_back(INT_MAX);

 i=0; j=0;
 for(k=p; k<=r ;k++)
 {
  if(v1[i] < v2[j])
  {
  v[k] = v1[i++];
  count += j;  // when taking element from 1st array
Incrementing count by no of elements already taken from 2nd array
  }
  else
  v[k] = v2[j++];
 }
}
void PrintArray(vector &v)
{
 int i,n = v.size();
 for(i=0; ihttp://groups.google.com/group/algogeeks?hl=en.



Re: [openflow-discuss] OpenRoads: implementation in a virtual environment

2011-06-13 Thread kk yap
Hi Landy,

I am not sure if mininet support wireless emulation.  The last time I asked,
the answer was no.  You can ask on mininet-discuss mailing list.
 OpenFlowVMS is a deprecated package, so I would discourage that.

One other way to get started is to use Openwrt with OpenFlow, but that would
involve some hacking to get the SNMP through and so on.

Sorry, I don't seem to have a clean solution for your situation at this
point.

Regards
KK

On 13 June 2011 12:15, man monaco  wrote:

> Hello,
>
> I was trying to test OpenRoads, but i couldn't obtain all required physical
> resources (i.e: OF switches AP's, WiMAX BS).
>
> Is there a way to implement OpenRoads in a virtual environment? using
> mininet to simulate the wireless network and to create wireless hosts who
> can hand off from on AP to another?
>
> Thanks,
> Landy
>
> ___
> openflow-discuss mailing list
> openflow-discuss@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[hexayurt] Re: Ferrocement

2011-06-13 Thread KK
A few companies make this type of deal. I saw them YEARS ago:

http://www.solarcrete.com/insulated-concrete-wall.php

They can be very large slabs with foam core and wire "skeleton" on
them.
You spray a few inches of concrete on the inside and outside.
The foam slab core creates the thermal break for you.
There are versions that don't use a steel frame, just interlocking
wire.

Look at this page and the following pics:
http://www.solarcrete.com/pre-fabrication-wall-panels.php


The reason I suggest Doug Lacy's thin shell method is that complete
DIY is in YOUR hands.
Plus, 4" foam slabs are EXPENSIVE. They are made from oil, nuff said.
His foamed concrete core might have good enough insulation value. It
gets COLD here in NM at high altitude. His buildings are being done at
7,000 ft. It snows, etc.

http://flic.kr/s/aHsjuqtG6e

Check this pic. He is building HUGE structures:
http://flic.kr/p/5VKUZR

He had his mix tested. 12,000psi:
http://flic.kr/p/9CCbtD




On Jun 13, 5:47 am, "Vinay Gupta (Hexayurt Shelter Project)"
 wrote:
> Ah that's interesting stuff, the Buildblock.com - different in that
> the concrete goes inside of the form, where as I'm hoping to spray it
> outside, but the same basic routine.
>
> Good find!
>
> V>
>
>
>
>
>
>
>
>
>
> On Sun, Jun 12, 2011 at 1:04 AM, Cody Firestone <4x4c...@gmail.com> wrote:
> > they make commercial forms for this already, here is a link.
> > they have these big foam blocks which snap together, and they have webbings
> > to be able to drill into the called furring strips..
> >http://www.buildblock.com
>
> > On Sat, Jun 11, 2011 at 9:11 AM, Vinay Gupta (Hexayurt Shelter Project)
> >  wrote:
>
> >> Oh, wow, you've done ferro, Cody! I've only read about it, but from
> >> what I've read, I'm convinced it's the Right Answer for permanent
> >> hexayurts!
>
> >> What do you think? 4" of polyiso or polystyrene (even
> >> pinkboard/blueboard), wire ties to hold it all together, then
> >> ferrocement over the top and on the inside? Is that plausible?
>
> >> V>
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "hexayurt" group.
> >> To post to this group, send email to hexayurt@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> hexayurt+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/hexayurt?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "hexayurt" group.
> > To post to this group, send email to hexayurt@googlegroups.com.
> > To unsubscribe from this group, send email to
> > hexayurt+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/hexayurt?hl=en.
>
> --
> Vinay Gupta
> Free Science and Engineering in the Global Public Interest
>
> http://hexayurt.com- free/open next generation human 
> shelteringhttp://hexayurt.com/plan- the whole systems, big picture vision
>
> "In the midst of winter, I finally learned that there was in me an
> invincible summer" - Albert Camus
>
> Twitter/Skype/Gizmo/Gtalk/AIM: hexayurt
> UK Cell : +44 (0) 7500 895568 / USA VOIP (+1) 775-743-1851

-- 
You received this message because you are subscribed to the Google Groups 
"hexayurt" group.
To post to this group, send email to hexayurt@googlegroups.com.
To unsubscribe from this group, send email to 
hexayurt+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/hexayurt?hl=en.



[algogeeks] Re: Swapping two variables without using a temporary variable

2011-06-12 Thread KK
@kunal
Actually its not same value its the same variable and it arises only
if u code the given way(and some people do it this way)

void swap(int &a, int &b)
{
 a ^= b ^= a ^= b;
}

now we have
int a = 10;

swap(a, a)

This will set a's value to 0...and this happens while sorting arrays
when u pass the same index values...
Conclusion:  Either code as given in above Q or use the temporary
var...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: FOR ALL INDIANS PLZ READ IT

2011-06-11 Thread KK
It works!!
Shame on u Umer Farooq u cant even give a call a no for ur nation
whereas other are on hunger strike... even if this is algo group so
whats the problem???...  m sorry to say this...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Swapping two variables without using a temporary variable

2011-06-11 Thread KK
It wont give correct answer when u pass same values of a and b and
such conditions arises in sorting


--
***
Kunal Kapadia
Computer Science and Engineering
B.Tech 2nd yr
NIT Trichy
***

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[hexayurt] Re: Ferrocement

2011-06-11 Thread KK
Doug Lacy in Silver City, NM does thin shell ferrocement type things.
Using cellular "foamed" concrete (air bubble filled) for insulation
between the "shells".
Cellular concrete can be used for bullet stops.

http://www.shambhalavillage.com/index.html

Youtube vids explaining his method and how to mix:
http://www.youtube.com/user/ShambhalaVillage#p/u

I think he took the idea from "Ferrocement" boat hulls?
His method looks perfect. I was supposed to go in July to film a few
things.
It's $3 a square foot in materials to use his method. Direct info from
him.



On Jun 11, 8:11 am, "Vinay Gupta (Hexayurt Shelter Project)"
 wrote:
> Oh, wow, you've done ferro, Cody! I've only read about it, but from
> what I've read, I'm convinced it's the Right Answer for permanent
> hexayurts!
>
> What do you think? 4" of polyiso or polystyrene (even
> pinkboard/blueboard), wire ties to hold it all together, then
> ferrocement over the top and on the inside? Is that plausible?
>
> V>

-- 
You received this message because you are subscribed to the Google Groups 
"hexayurt" group.
To post to this group, send email to hexayurt@googlegroups.com.
To unsubscribe from this group, send email to 
hexayurt+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/hexayurt?hl=en.



Re: PyQt

2011-06-10 Thread KK
Thanks for the reply!!
i ve installed the binary
but when i import anything of PyQt in my prog it says error??
i think there is some problem with folders
-- 
http://mail.python.org/mailman/listinfo/python-list


[algogeeks] Re: SPOJ THRBL

2011-06-10 Thread KK
Search Topcoder Tutorial Range Minimum Query @ Google...
By few intuitive changes u can implement Range Maximum Query as well...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] HASHIT

2011-06-10 Thread KK
This is the link to the SPOJ problem HASHIT : 
http://www.spoj.pl/problems/HASHIT/
i donno whts the mistake... i keep getting wrong answer even though
the Q is Straightforward :(

#include
#include
using namespace std;

int hash(string str)
{
int sum = 0;
int len = str.size();
for(int i=0; i> t;
while(t--)
{
 int n, count = 0;
 string array[101], temp;
 for(int i=0; i<101; i++)
  array[i] = "";
 cin >> n;

 while(n--)
 {
  cin >> temp;
  string opr = temp.substr(0, 3);
  if(opr == "ADD")
  add(array, temp.substr(4, temp.size() - 4), count);
  else
  d(array, temp.substr(4, temp.size() - 4), count);
 }

 cout << count << endl;

 for(int i=0; i<101; i++)
 {
   if(array[i] != "")
   cout << i << ":" << array[i] << endl;
 }
}
//system("pause");
return 0;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



PyQt

2011-06-10 Thread KK
I have python 3.2 installed m not able to install PyQt.
i have downloaded and configured sip but how to build it???
whats the make and make install given on the installation
Plzzz help m a newbie to python
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [openflow-discuss] OpenRoads:SNMP

2011-06-08 Thread kk yap
Hi Landy,

As explained (probably deep in the details), some configuration and event
are triggered using SNMP.

For example, for a switch to know of a client in OpenFlow, we have to look
at packet-in from the client.  This can take a while, esp. for clients that
does not perform DHCP upon association.

By using something like SNMP, we can send a SNMP trap/inform when the client
associate with the AP or base-station.  This allows for a much faster
reaction to a client association, thus improving handover.

Hope the explanation is clear.

Regards
KK

On 8 June 2011 22:47, man monaco  wrote:

> Hello,
>
> Am trying to understand the details about what/when messages are exchanged
> between AP's and controller that creates the smooth hand off. Specifically,
> how SNMP contributed in improving the hand off in OpenRoads?
>
> I'll Appreciate it, if you could guide me to a paper/wiki-page that explain
> the procedure.
>
> Note that, i already read the following papers.
>
> 1. OpenRoads-Empowering Research in Mobile Networks Abstract-(Best Poster
> at SIGComm 2009)
> 2. The Stanford OpenRoads Deployment presented at WiNTECH 2009.
> 3. Blueprint for Introducing Innovation into Wireless Mobile
> Networks presented at VISA 2010.
>
> Thanks,
> Landy
>
> ___
> openflow-discuss mailing list
> openflow-discuss@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[openflow-discuss] Inconsistency of semantics in match and action for ARP

2011-06-08 Thread kk yap
Hi,

Just wanted to bring this up to archive the issue for consideration
later and as a cautionary note to those dealing with ARP using
OpenFlow.  The specific issue pertains to clarity and consistency of
the OpenFlow specs.

In OpenFlow (up till v1.1), we allow IP addresses in ARP to be match
using ofp_match's nw_src and nw_dst.  This is very useful for working
with ARP in an actual network. However, the corresponding rewrite
action (i.e., set_nw_src and set_nw_dst) does not work with ARP, since
ARP is not an IP packet with the addresses located in the payload.
This creates an inconsistency from the view of the programmer:

E.g., I wanted to match on a certain IP address and rewrite it to
another.  Naively, I would send a flow_mod with
 (if nw_dst == A, then rewrite_nw_dst to B).
The flow will match fine, but no rewrite action would be done.
However, the same semantics will work perfectly for all IP packets.
This inconsistency extends to the Ethernet addresses in the ARP
packets too, because the hardware addresses in the ARP payload will
not be updated.

While "non-detrimental", this behavior might catch people by surprise,
so I hope those who work on the next iteration of the spec can look
into how the situation can be improved (if applicable).

FYI.

Regards
KK
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [QUAD-L] I was evacuated from my apartment (almost)

2011-06-07 Thread KK
Bobbie, I live in Houston area.  When there is a hurricane there is a special 
team that will evacuate me & any others on their list of special needs 
clients.  Now I have newer had to use this service so not sure it works well.  
It is supposed to have places for me & my care taker.  

If we ever have another hurricane, I'll keep you informed.

KK


Re: [QUAD-L] table top hand bike

2011-06-07 Thread KK
I use an Oxy Cycle that cost $100 from Allegromedical.com

KK

--- On Tue, 6/7/11, bob quinn  wrote:

From: bob quinn 
Subject: Re: [QUAD-L] table top hand bike
To: "Todd Daugherty" , "quad list" 

Date: Tuesday, June 7, 2011, 1:09 PM


 
I bought a "Magneciser" for about $150 that I like very
much.



http://www.amazon.com/Chattanooga-Magneciser-Arm-Pedal-Exerciser/dp/B003YR6DDE/ref=sr_1_1?ie=UTF8&qid=1307469804&sr=8-1
 


My only complaint is that one strap broke after about a year.


p.s. It is sad how so-o-o-o many companies seek to profit off the
disabled and infirm.




At 12:15 PM 6/7/2011, Todd Daugherty wrote:

I am looking around for a hand
cycle that will fit on a table and they are all over $800?  wtf is
the matter with these people?   




[hexayurt] Cutting guides and contact cement

2011-06-06 Thread KK
Regarding cutting guides, you can buy a 8 foot aluminum cutting guide
in the ruler/bubble level section of Home Depot. They clamp to wood
and allow you to run a knife along to do long straight cuts.

This model is the only one shown online:

Empire No. 900, 8 ft. x 6 in. Pro's Edge Wide Aluminum Cutting Guide

http://www.homedepot.com/h_d1/N-5yc1v/R-100134266/h_d2/ProductDisplay?langId=-1&storeId=10051&catalogId=10053

Mine was different and does not "bow in the middle". Investigate these
types of cutting guides on your own. Or go to a metal retailer and buy
a 8 foot piece of 1/8" thick aluminum to make your own super long
straight edge. Get one that's wide so it's easier to pin down with
your hand. Though $20 at Home Depot is cheap. I'm sure you can make it
work for handheld knife cuts. Also find Tajima cutter knives like this
one:

http://www.tajimatool.com/products/snapblade/rh_single_blade/view.php?page=all

The Tajima LC-650 and LC-661 are great. Get the 10 pack of blades for
them if you find one.
Dial lock is superior to the Stanley lock, but a Stanley MAX cutter
from HD will work fine if it's all you can get.


Contact cement $40 a gallon:
http://www.amazon.com/25316-Weldwood-Formula-Contact-Cement/dp/accessories/B0006MUPY8

Now, some say the DAP stuff is not good. For $75 a gallon you can get
Barge brand:

http://www.amazon.com/GALLON-BARGE-Contact-Adhesive-GLUE/dp/B0032Z39TO/ref=pd_rhf_p_t_2

The more expensive, nastier stuff works. Talk to flooring and laminate
cabinet/countertop shop guys. You are "laminating" after all ;)

Look in better local hardware stores. The big box places are a fail
most days.

-- 
You received this message because you are subscribed to the Google Groups 
"hexayurt" group.
To post to this group, send email to hexayurt@googlegroups.com.
To unsubscribe from this group, send email to 
hexayurt+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/hexayurt?hl=en.



[hexayurt] Re: Walls

2011-06-05 Thread KK
On Jun 3, 11:22 am, Cheese  wrote:
  If anyone
> knows what type of adhesive will work best attaching the wood wall
> panel to the 3/4" Thermasheath, I would love to hear it.

Fiberglass RV's use Stabond contact adhesive for Filon siding to foam/
wood. I don't know what exact Stabond part number is foam compatible:

http://www.all-rite.com/stabond-t440-p-130.html

http://www.outbackteardrop.com/body4.html

Apply with roller to both pieces and let it dry slightly 5-45 mins.
Then stick foam to wood. It will grab instantly and permanently.
Test first for foam compatibility then practice before gluing.

Also, use pink or blue foam board. It keeps it's R value WAY longer
than foil foam board. Foil foam boards absorb moisture and degrade
over time. Pink and blue do not. Dow has all the math and documents on
this.

Plus pink and blue foam are much less flammable.

There is another way to make your own super tough bonded panels. I
won't go into it here though.

More info on foam to wood:

Foam pads should be glued to your kayak with contact cement, but not
all of these glues are suitable. Some brands have recently been
reformulated for safety or environmental reasons. Many are not
waterproof and lack holding power. Use a commercial-grade waterproof
contact cement. It is flammable, nasty-smelling stuff! Hydrogrip
Adhesive, Shore Adhesive, Sea Bond, Sta-Bond, and Shoemaker's "Barge
Cement" are all good choices. No smoking in the shop, please!

Contact cement can be pretty unforgiving to work with. You only get
one chance to position a pad correctly; then, like it or not, it's
stuck.

There was another common contact cement I found in gallons. It was for
RV use too. Will have to look for the link.

-- 
You received this message because you are subscribed to the Google Groups 
"hexayurt" group.
To post to this group, send email to hexayurt@googlegroups.com.
To unsubscribe from this group, send email to 
hexayurt+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/hexayurt?hl=en.



Re: [openflow-discuss] LAVI : Installing a sample flow in a open flow switch using NOX

2011-06-02 Thread kk yap
And I did not know that.  Fantastic!  Thanks!  This will help all of us greatly.

Regards
KK

On 2 June 2011 15:19, Ben Pfaff  wrote:
> On Thu, Jun 02, 2011 at 01:30:31PM -0700, kk yap wrote:
>> Is there any reason why ovs-ofctl does not work for you (e.g., you
>> don't use ovs)?
>
> For what it's worth, ovs-ofctl is intended to work with any OpenFlow
> 1.0 switch, whether that switch is Open vSwitch or not (and I'd accept
> bug reports on that basis).
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [nox-dev] [openflow-discuss] LAVI : Installing a sample flow in a open flow switch using NOX

2011-06-02 Thread kk yap
Hi,

Starting with a rant: I believe this is related (or the same) as the
thread on nox-dev
(http://noxrepo.org/pipermail/nox-dev/2011-June/007611.html).  It
might be advisable not to cross-post questions.

To be clear, LAVI is a GUI backend in NOX.  And nox-gui.py and ENVI
are the front end GUI.  The short answer here is no, you cannot
install flow rules using GUI in NOX---as Kyriakos has previously
mentioned in nox-dev.  The GUI shows statistics and the topology of
the network.

Is there any reason why ovs-ofctl does not work for you (e.g., you
don't use ovs)?

Regards
KK

Disclosure>> I wrote LAVI, so I can be irritating when it comes to
reference to it.  Pardon me here.

On 2 June 2011 11:23, kashyap TA  wrote:
> Hi,
>     I read that LAVI is a GUI for NOX. How do I install this along with nox.
> I am not able to find much installation guide. Can I program flows using
> LAVI into NOX which intunr would intall flows into the openflow switch. I
> need to program a smaple flow where a packet coming from a particular port
> and with a particular mac need to forwarded to a particular port and
> remaining all traffic needs to be flooded in the vlan. Please do let me
> know.
>
>
> Thans and Regards
> Kashyap
>
> ___
> openflow-discuss mailing list
> openflow-disc...@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [openflow-discuss] LAVI : Installing a sample flow in a open flow switch using NOX

2011-06-02 Thread kk yap
Hi,

Starting with a rant: I believe this is related (or the same) as the
thread on nox-dev
(http://noxrepo.org/pipermail/nox-dev/2011-June/007611.html).  It
might be advisable not to cross-post questions.

To be clear, LAVI is a GUI backend in NOX.  And nox-gui.py and ENVI
are the front end GUI.  The short answer here is no, you cannot
install flow rules using GUI in NOX---as Kyriakos has previously
mentioned in nox-dev.  The GUI shows statistics and the topology of
the network.

Is there any reason why ovs-ofctl does not work for you (e.g., you
don't use ovs)?

Regards
KK

Disclosure>> I wrote LAVI, so I can be irritating when it comes to
reference to it.  Pardon me here.

On 2 June 2011 11:23, kashyap TA  wrote:
> Hi,
>     I read that LAVI is a GUI for NOX. How do I install this along with nox.
> I am not able to find much installation guide. Can I program flows using
> LAVI into NOX which intunr would intall flows into the openflow switch. I
> need to program a smaple flow where a packet coming from a particular port
> and with a particular mac need to forwarded to a particular port and
> remaining all traffic needs to be flooded in the vlan. Please do let me
> know.
>
>
> Thans and Regards
> Kashyap
>
> ___
> openflow-discuss mailing list
> openflow-discuss@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [nox-dev] nox_core command line options

2011-06-02 Thread kk yap
This?  :)

http://noxrepo.org/~yapkke/doc/classnox_1_1lib_1_1core_1_1Component.html

Regards
KK

On 2 June 2011 00:45, Murphy McCauley  wrote:
> Oh, great thought, KK!
>
> Note, however, that this does not show Python-only components.
>
> -- Murphy
>
> On Jun 2, 2011, at 12:41 AM, kk yap wrote:
>
>> For list of components, you can try this:
>>
>> http://noxrepo.org/~yapkke/doc/classvigil_1_1container_1_1Component.html
>>
>> Regards
>> KK
>>
>> On 2 June 2011 00:36, Murphy McCauley  wrote:
>>> Probably the best resource is on the wiki: 
>>> http://noxrepo.org/noxwiki/index.php/Using_NOX
>>>
>>> There is also a little about it in the rst-based manual.  The source for 
>>> this in the repository (doc/manual/source/using.rst), and there's an old 
>>> version online at http://noxrepo.org/manual/using.html .  I don't think 
>>> this tells you much that isn't in "nox --help", though.
>>>
>>> Probably the most interesting part of the commandline isn't anything to do 
>>> with options, though, and has to do with which NOX components you run 
>>> (e.g., pyswitch, routing, etc.).  The wiki article above and 
>>> http://noxrepo.org/noxwiki/index.php/NOX_Components talk some about this, 
>>> but the definitive reference about which components are available is in the 
>>> meta.json files.
>>>
>>> Hope that helps.
>>>
>>> -- Murphy
>>>
>>> On Jun 1, 2011, at 3:25 AM, xbalaji wrote:
>>>
>>>> Is there a man/info page for nox_core which describes various command line
>>>> options available?
>>>>
>>>> Thanks and Regards,
>>>> Balaji
>>>>
>>>> ___
>>>> nox-dev mailing list
>>>> nox-dev@noxrepo.org
>>>> http://noxrepo.org/mailman/listinfo/nox-dev
>>>
>>> ___
>>> nox-dev mailing list
>>> nox-dev@noxrepo.org
>>> http://noxrepo.org/mailman/listinfo/nox-dev
>>>
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] nox_core command line options

2011-06-02 Thread kk yap
For list of components, you can try this:

http://noxrepo.org/~yapkke/doc/classvigil_1_1container_1_1Component.html

Regards
KK

On 2 June 2011 00:36, Murphy McCauley  wrote:
> Probably the best resource is on the wiki: 
> http://noxrepo.org/noxwiki/index.php/Using_NOX
>
> There is also a little about it in the rst-based manual.  The source for this 
> in the repository (doc/manual/source/using.rst), and there's an old version 
> online at http://noxrepo.org/manual/using.html .  I don't think this tells 
> you much that isn't in "nox --help", though.
>
> Probably the most interesting part of the commandline isn't anything to do 
> with options, though, and has to do with which NOX components you run (e.g., 
> pyswitch, routing, etc.).  The wiki article above and 
> http://noxrepo.org/noxwiki/index.php/NOX_Components talk some about this, but 
> the definitive reference about which components are available is in the 
> meta.json files.
>
> Hope that helps.
>
> -- Murphy
>
> On Jun 1, 2011, at 3:25 AM, xbalaji wrote:
>
>> Is there a man/info page for nox_core which describes various command line
>> options available?
>>
>> Thanks and Regards,
>> Balaji
>>
>> ___
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/listinfo/nox-dev
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Nox Application with dijkastra

2011-05-25 Thread kk yap
Sorry.  None of this make sense to me.  This is my understanding of
how the modules work in NOX:

* The spanning tree module calculates the spanning tree and set the
flood bits for the port config accordingly.  That's all it does.  No
path calculation, etc.

* And the routing module is really just calculating the shortest path
routing, like Dijkstra.  Nothing else there.  Read the paper if you
want to know why this implementation is better than pure Dijkstra
algorithm.

* However, if you look at the sprouting module and its Python
equivalent, they install routes.  The problem here with loops is that
these modules (not routing_mod) is not handling multicast and
broadcast packets (along with packets with unknown destinations)
properly for a topology with loop.

Feel free to correct me.  I might just be super out of touch here.

Regards
KK

On 25 May 2011 14:55, Murphy McCauley  wrote:
> If you wanted to compare against something that already exists, the only thing
> I can think if would be the routing module along with the spanning tree
> module.
>
> -- Murphy
>
> On Sunday, May 22, 2011 06:44:15 AM marwen mechtri wrote:
>> Hi all,
>>
>> could you tell me please if there is a module that calculates the shortest
>> path (it handles loops).
>>
>> Best regards
>> Marwen
>>
>> 2011/5/20 marwen mechtri 
>>
>> > Hi all
>> >
>> > Thank you for your replay.
>> >
>> > I said "the module don't give any result" because when I ping form source
>> > host the destination is not reachable. I think it's a problem of loop,
>> > because in a partial mesh I have many path from source to destination.
>> >
>> > I developed a Nox application and one of the feature of this application
>> > is to instantiate path from source to destination. And I would like to
>> > evaluate my module with another existing module in Nox. that's why I'm
>> > looking for an application developed with Nox to do this evaluation.
>> >
>> > Thanks in advance
>> > Marwen
>> >
>> > 2011/5/19 Murphy McCauley 
>> >
>> >> What do you mean by "don't give any result"?
>> >>
>> >> Do you have NOX working on topologies besides your partial mesh one?
>> >>
>> >> You'll need to have the topology component and probably the discovery
>> >> component running, so please make sure they are (start nox with -v or -v
>> >> -v).
>> >>
>> >> Your problem may be that the routing module does not deal well with
>> >> loops. There is a spanning tree component that aims to fix this.  You
>> >> can find it at
>> >> http://www.openflow.org/wk/index.php/Basic_Spanning_Tree .  It will take
>> >> a
>> >> little tweaking to get it running on current releases of NOX, but I
>> >> think it's
>> >> mostly just changing the meta file (you can try the meta file conversion
>> >> script,
>> >> which should be in the scripts directory in the destiny branch if I
>> >> remember
>> >> right).
>> >>
>> >> -- Murphy
>> >>
>> >> On Thursday, May 19, 2011 05:13:17 AM marwen mechtri wrote:
>> >> > Hi all,
>> >> >
>> >> > I'm exploring "routing", "sample_routing" and "switch" module of Nox
>> >> > but when I configure a partial mesh network this modules don't give
>> >> > any
>> >>
>> >> result.
>> >>
>> >> > Could you tell me if this modules use dijkstra to calculate Path
>> >> > between source and destination. And if not, do you know a module that
>> >> > use
>> >>
>> >> dijkstra
>> >>
>> >> > or any kind of method to calculate source to destination Path, could
>> >> > you please give me its name.
>> >> >
>> >> > Thinks
>> >> > Best regards
>> >> > Marwen
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [openflow-discuss] openFlowVMS!!!

2011-05-25 Thread kk yap
Hi Ali,

First thing (and I think I have said to you a few times now),
OpenFlowVMS is a deprecated package.  Take a look at mininet.

OpenFlowVMS uses a read-only filesystem so that all the VM can share
an image.  So, you have two choice.  Make VMS run in read-write mode
(i.e., remove the -snapshot option) or make your code only read and
send, and not write to the filesystem.

Hope that helps.

Regards
KK

On 25 May 2011 07:50, Ali hussain  wrote:
> Hey,
>Well i am having trouble running my own client-server code on
> Openflow VMS. i have created an xml topology(giveb below) in which there are
> 2 clients a server and an openflow switch.i have stored the .c files of
> server and client in the Client1.cd and Server1.cd folder in openflow vms
> respectively.After giving the command vms-start.py i try to run the
> gcc-server -o server command after going in the /cdrom directory but it
> gives an error as file cannot be file:Read only file system.But by
> copying(moving) both client .c and server .c  in a /tmp directory the
> command runs but the server is unable to transfer any data to any of the
> client.Running packet dump shows no packet.
>
> Commands on Serverside
> gcc server -o server
> ./server 23456(port)
>
> Command on CLient side
> gcc client -o client
> ./client localhost 23456(port)
>
> Whereas if u run the same client server code on the linux terminal it works
> fine.
>
> Thank you
> Ali Hussain
>
> XML
> 
> 32
>
> 
> true
> 
> -
>
> 
> true
> 
> -
> 
> 192.168.0.1
> 
> 
>
> -
> 
> true
> -
> 
> 192.168.0.10
> 
> 
> -
>
> 
> true
> -
> 
> 192.168.0.100
> 
> 
> -
>
> 
> 
> 
>
>
> 
>
>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [openflow-discuss] How do you handle error messages? As

2011-05-23 Thread kk yap
Hi Ward,

Won't this all depends on the TCP state the connection is in when the
message is sent?  E.g., is Nagle bring turned on?  What is the window
size? And so on.  If you want, one way to understand this better is to
look at the messages on wireshark.

Regards
KK

PS>> OpenFlow ia a protocol that can theoretically be associated with
any transport mechanism.  You would have an easier time understanding
them independently before deciphering their interaction.

On 23 May 2011 03:17, Ward hussen  wrote:
> HI KK
>
>>>You do not need to tweak TCP options for this.  It is usu. done in an
>>> async manner.  If you are using a controller like NOX, then this
> should not really be of much concern.  Are you whipping up a new controller?
>
> I did not understand the above statement completely. Do you mean that NOX
> sends flow_mod packets asynchronously? Does TCP connection not wait for ack
> of first FLOW_MOD and then send the 2nd packet?
>
>  If it is asynchrous. Is the TCP connection at NOX just wait for propagation
> time for sending second FLOW_MOD?
>
> thanks,
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [ovs-discuss] Bug Report: Cookie returned is always zero

2011-05-20 Thread kk yap
Thanks for the clarification.

Regards
KK

On 20 May 2011 16:44, Ben Pfaff  wrote:
> I pushed the patch.
>
> You can tell that both "cookie" members are in network byte order by
> looking at the types: both are declared as type ovs_be64 (the "be"
> stands for "big-endian").
>
> On Fri, May 20, 2011 at 04:41:21PM -0700, kk yap wrote:
>> Hi Ben,
>>
>> The patch works!  Thanks.
>>
>> One strange thing is the lack of htonll.  It would seems like fr is in
>> host order and ofr is in network order, so the function is needed.
>> However, adding the function gives the wrong result.  FYI.
>>
>> Regards
>> KK
>>
>> On 20 May 2011 16:08, Ben Pfaff  wrote:
>> > On Fri, May 20, 2011 at 04:03:49PM -0700, kk yap wrote:
>> >> We are sending flow_mod with some cookie value (e.g., deadbeef), but
>> >> all the flow_removed returns with cookie 0. ?A sample tcpdump of the
>> >> OpenFlow control traffic is attached.
>> >
>> > I like bugs that are easy to track down. ?Please try this patch:
>> >
>> > --8<--cut here-->8--
>> >
>> > From: Ben Pfaff 
>> > Date: Fri, 20 May 2011 16:07:12 -0700
>> > Subject: [PATCH] ofp-util: Include cookie when encoding OFPT_FLOW_REMOVED
>> > ?messages.
>> >
>> > Reported-by: kk yap 
>> > ---
>> > ?lib/ofp-util.c | ? ?1 +
>> > ?1 files changed, 1 insertions(+), 0 deletions(-)
>> >
>> > diff --git a/lib/ofp-util.c b/lib/ofp-util.c
>> > index 5004063..b376d14 100644
>> > --- a/lib/ofp-util.c
>> > +++ b/lib/ofp-util.c
>> > @@ -1378,6 +1378,7 @@ ofputil_encode_flow_removed(const struct 
>> > ofputil_flow_removed *fr,
>> > ? ? ? ? ofr = make_openflow_xid(sizeof *ofr, OFPT_FLOW_REMOVED, htonl(0),
>> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? &msg);
>> > ? ? ? ? ofputil_cls_rule_to_match(&fr->rule, &ofr->match);
>> > + ? ? ? ?ofr->cookie = fr->cookie;
>> > ? ? ? ? ofr->priority = htons(fr->rule.priority);
>> > ? ? ? ? ofr->reason = fr->reason;
>> > ? ? ? ? ofr->duration_sec = htonl(fr->duration_sec);
>> > --
>> > 1.7.4.4
>> >
>> >
>
___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


Re: [ovs-discuss] Bug Report: Cookie returned is always zero

2011-05-20 Thread kk yap
Hi Ben,

The patch works!  Thanks.

One strange thing is the lack of htonll.  It would seems like fr is in
host order and ofr is in network order, so the function is needed.
However, adding the function gives the wrong result.  FYI.

Regards
KK

On 20 May 2011 16:08, Ben Pfaff  wrote:
> On Fri, May 20, 2011 at 04:03:49PM -0700, kk yap wrote:
>> We are sending flow_mod with some cookie value (e.g., deadbeef), but
>> all the flow_removed returns with cookie 0.  A sample tcpdump of the
>> OpenFlow control traffic is attached.
>
> I like bugs that are easy to track down.  Please try this patch:
>
> --8<--cut here-->8--
>
> From: Ben Pfaff 
> Date: Fri, 20 May 2011 16:07:12 -0700
> Subject: [PATCH] ofp-util: Include cookie when encoding OFPT_FLOW_REMOVED
>  messages.
>
> Reported-by: kk yap 
> ---
>  lib/ofp-util.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/ofp-util.c b/lib/ofp-util.c
> index 5004063..b376d14 100644
> --- a/lib/ofp-util.c
> +++ b/lib/ofp-util.c
> @@ -1378,6 +1378,7 @@ ofputil_encode_flow_removed(const struct 
> ofputil_flow_removed *fr,
>         ofr = make_openflow_xid(sizeof *ofr, OFPT_FLOW_REMOVED, htonl(0),
>                                 &msg);
>         ofputil_cls_rule_to_match(&fr->rule, &ofr->match);
> +        ofr->cookie = fr->cookie;
>         ofr->priority = htons(fr->rule.priority);
>         ofr->reason = fr->reason;
>         ofr->duration_sec = htonl(fr->duration_sec);
> --
> 1.7.4.4
>
>
___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


[ovs-discuss] Bug Report: Cookie returned is always zero

2011-05-20 Thread kk yap
Hi,

We are back!  :P

We are sending flow_mod with some cookie value (e.g., deadbeef), but
all the flow_removed returns with cookie 0.  A sample tcpdump of the
OpenFlow control traffic is attached.

The OVS version we are using has last commit
c64540e3fe43a83bbe8687c53fb7fdec95b94195.  It was previously working,
FYI.

Regards
KK and TY


cookie-bug.pcap
Description: application/extension-pcap
___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


Re: [openflow-discuss] How do you handle error messages? As Sync or Async ?

2011-05-20 Thread kk yap
Hi,

The choice is yours.

To do a synchronous call, send the flow_mod followed up a
barrier_request.  You will get the barrier_reply back.

To do asynchronous calls, just send the flow_mod and wait for error
messages.  The error messages should carry the same xid (transaction
id) as the flow_mod and the flow_mod generated the error.

You do not need to tweak TCP options for this.  It is usu. done in an
async manner.  If you are using a controller like NOX, then this
should not really be of much concern.  Are you whipping up a new
controller?

Regards
KK

On 20 May 2011 13:11, G A  wrote:
> Hi all
>
> What is the expected/standard way to handle error messages to flow_mod 
> requests?
>
> If they are treated as SYNC messages, then my application would have to wait 
> for
> an ack. But if the switch has happily accepted the flow_mod, it does not send
> back anything - causing my app to hang forever.
>
> If they are treated as ASYNC messages, then my application fires off a 
> flow_mod
> and hopes all's well and goes about doing other things.  Sometime later an 
> async
> error message might be received.  Now my app's in trouble since I have already
> done things I shouldn't have and rolling back can be messy.
>
> One workaround to this might be:  Send a flow_mod message. Set socket.timeout
> for a second maybe and if nothing arrived yet, then we can safely assume all's
> well.  But this seems to be a very bad hack since the app has to wait
> unnecessarily even if things have gone well.
>
> Any other suggestions ?
>
> regards
> Gopal Agrawal
>
>
> ___
> openflow-discuss mailing list
> openflow-discuss@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [nox-dev] Res: Nox Application with dijkastra

2011-05-19 Thread kk yap
Hi,

I am not sure what is meant by OSPF here.  Routing_module uses the
method described in "A New Approach to Dynamic All Pairs Shortest
Paths" by C. Demetrescu.  A little more description can be found in
the documentation:

http://noxrepo.org/~yapkke/doc/classvigil_1_1applications_1_1Routing__module.html#_details

Regards
KK

On 19 May 2011 07:45, fernando farias  wrote:
> Hi Marwen
> There is a project called initially of QuagFlow and now RouteFlow that is
> able to use route protocols (OSPF, BGP, RIP ...) together with NOX.
> http://chesteve.wordpress.com/2010/07/07/quagflow-the-softrouter-reloaded-or-partnering-quagga-with-openflow/
> Thx
> Fernando N. N. Farias
>
> Electrical Engineer PhD. Student
> Member of the Research Group on Computer Networks and Multimedia
> Communications - GERCOM/UFPA
> Optical Research Team - GERCOM
> Federal University of Pará
> "Primeiro eles o ignoram.
> Depois, riem de você.
> Chega um ponto em que lutam contra voce.
> Ate o dia em que você vence." Gandhi
>
> 
> De: Ricardo Bennesby 
> Para: marwen mechtri 
> Cc: nox-dev@noxrepo.org
> Enviadas: Quinta-feira, 19 de Maio de 2011 9:57:21
> Assunto: Re: [nox-dev] Nox Application with dijkastra
>
> Hi Marwen.
>
> Nox routing implements OSPF protocol and It is based on Dijkstra algorithm
> (also called SPF). In this algorithm, the component knows the data of all
> nodes in the network.
>
> Hope it helped.
>
> Best Regards.
>
> 2011/5/19 marwen mechtri 
>>
>> Hi all,
>>
>> I'm exploring "routing", "sample_routing" and "switch" module of Nox but
>> when I configure a partial mesh network this modules don't give any result.
>> Could you tell me if this modules use dijkstra to calculate Path between
>> source and destination. And if not, do you know a module that use dijkstra
>> or any kind of method to calculate source to destination Path, could you
>> please give me its name.
>>
>> Thinks
>> Best regards
>> Marwen
>>
>>
>>
>> ___
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/listinfo/nox-dev
>>
>
>
>
> --
> Ricardo Bennesby da Silva
> Ciência da Computação - UFAM
> LabCIA - Laboratório de Computação Inteligente e Autonoma
>
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [ovs-discuss] Inaccurate statistics in flow_removed struct using OpenvSwitch

2011-05-18 Thread kk yap
Hi,

Thanks for the very fast response.  TY tested the code and it worked.

Regards
KK

On 18 May 2011 12:55, Ethan Jackson  wrote:
>> Looking at the code, ovs-openflowd returns facet + stat as packet
>> count for the flow removed.  The number recorded by facet is correct,
>> but the sum of the value exceed the real value.  This occurs at the
>> facet_update_stats function.  What is the purpose of the addition?
>> Can we expect accurate statistics from OVS?
>
> I should have responded to this question in my previous email.  Packet
> statistics are recorded in a best-effort fashion.  In general they
> should be accurate, but there is no hard guarantee that they are
> especially in certain edge cases involving complex flow tables
> including resubmit actions.  In short, you should expect accurate
> statistics from OVS noting the aforementioned caveat.
>
> Thanks again for reporting this bug.
> Ethan
>
___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


Re: [openflow-discuss] Dynamic IP Address for tap0 in Openwrt OpenFlow

2011-05-16 Thread kk yap
This is Openwrt specific.  From the Pantou wiki page, "Due to the way
inband control is implemented you won't be able to route dns and dhcp
requests/replies from/to the local-port (tap0).".  Thus, I wonder if
there is other ways to get a dynamic address on the interface.  Hoping
that Yiannis would know.

Regards
KK

On 16 May 2011 15:08, Rob Sherwood  wrote:
> I'm not really sure what you're asking: `dhclient tap0` doesn't do the
> right thing for you?  Or, are you asking for the interface to come up
> at boot time?
>
> - Rob
> .
>
>
>
> On Mon, May 16, 2011 at 3:06 PM, kk yap  wrote:
>> Hi,
>>
>> I need to control to a remote controller and therefore need to config
>> an IP address for the AP on tap0.  Can I config tap0 to receive a
>> dynamic IP address?  If yes, how?
>>
>> Thanks.
>>
>> Regards
>> KK
>> ___
>> openflow-discuss mailing list
>> openflow-discuss@lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[openflow-discuss] Dynamic IP Address for tap0 in Openwrt OpenFlow

2011-05-16 Thread kk yap
Hi,

I need to control to a remote controller and therefore need to config
an IP address for the AP on tap0.  Can I config tap0 to receive a
dynamic IP address?  If yes, how?

Thanks.

Regards
KK
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[algogeeks] Python

2011-05-07 Thread KK
I have juz started python and finished "A Byte of Python"
Now to which book should i switch too???
Also recommend Python books to master it!!

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [nox-dev] host deathentication

2011-05-06 Thread kk yap
ARP is a great idea.  Someone should give it a try, though I know some
routers sometimes do funny things with ARP for their own devices, but that
would not be too big an issue I guess.

Regards
KK

On 6 May 2011 03:59, Murphy McCauley  wrote:

> I don't consider this a big issue, but what about ARPing at it?  I bet even
> machines that are set to not respond to ICMP echo will still usually answer
> an
> ARP.  Moreover, if they respond once, I'd think it's probably safe to
> assume
> they will continue to do so.  So if something never responds to an ARP, it
> could just timeout after five minutes of inactivity like it does now.  If
> it
> responds to an ARP once, we could periodially check that it still does --
> if
> it goes silent, assume it's gone.
>
> -- Murphy
>
> On Thursday, May 05, 2011 06:03:24 PM kk yap wrote:
> > Yeah, hosttracker simply timeout.  To the best of my knowledge, there is
> no
> > good way to ensure the host is there or not if it is completely silent.
> > You can try sending an icmp echo request but that is not guaranteed to
> > work all the time either.
> >
> > Regards
> > KK
> >
> > On 5 May 2011 17:40, Murphy McCauley  wrote:
> > > Maybe take a look at hosttracker.  It raises events when a host is
> first
> > > seen,
> > > moves, or is lost.  I don't think it actively checks for the host -- I
> > > think
> > > it just has like a five minute timer where if it doesn't see any
> packets
> > > from a
> > > host, it assumes it is gone.
> > >
> > > -- Murphy
> > >
> > > On Thursday, May 05, 2011 06:43:00 AM karim torkmen wrote:
> > > > Hi,
> > > > Is there any component allowing to detect when a host  detaches from
> > > > the network (e.g. host failure).
> > > > Unfortunately, the authenticator is able just to detect when a new
> host
> > > > joins the network.
> > > > Thanks a lot,
> > > > Karim
> > > > ___
> > > > nox-dev mailing list
> > > > nox-dev@noxrepo.org
> > > > http://noxrepo.org/mailman/listinfo/nox-dev
> > >
> > > ___
> > > nox-dev mailing list
> > > nox-dev@noxrepo.org
> > > http://noxrepo.org/mailman/listinfo/nox-dev
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] host deathentication

2011-05-05 Thread kk yap
Yeah, hosttracker simply timeout.  To the best of my knowledge, there is no
good way to ensure the host is there or not if it is completely silent.  You
can try sending an icmp echo request but that is not guaranteed to work all
the time either.

Regards
KK

On 5 May 2011 17:40, Murphy McCauley  wrote:

> Maybe take a look at hosttracker.  It raises events when a host is first
> seen,
> moves, or is lost.  I don't think it actively checks for the host -- I
> think
> it just has like a five minute timer where if it doesn't see any packets
> from a
> host, it assumes it is gone.
>
> -- Murphy
>
> On Thursday, May 05, 2011 06:43:00 AM karim torkmen wrote:
> > Hi,
> > Is there any component allowing to detect when a host  detaches from the
> > network (e.g. host failure).
> > Unfortunately, the authenticator is able just to detect when a new host
> > joins the network.
> > Thanks a lot,
> > Karim
> > ___
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[Koha] Problem with koha Authority

2011-05-03 Thread sunitha kk
Hi, I have a problem with koha authority.

I have added  a new authority record (using  Home › Authorities › Adding
authority Personal Name). But when I am searching for that record it returns
'No Result Found'.
Could someone tell me what is the problem?

With Thanks n regards
Sunitha
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha


Re: [nox-dev] strange ethernet type returned by authenticator

2011-05-02 Thread kk yap
One thing that I never got to doing is to change all the parsing to go
through the openflow-pack library which will fix the byte order issue.
 If someone would do that, it would be a great service to people using
NOX.

Regards
KK

On 2 May 2011 10:48, Murphy McCauley  wrote:
> So I'm not sure if this is a bug or a feature.  If NOX has a really coherent
> strategy towards byte order, I've never really figured it out. :)  But the
> problem is just that your bytes are getting swapped.  I'd say just call
> ntohs() on event.flow_dl_type.  (Equivalently, call htons() on whatever you're
> comparing it with... this probably makes more sense, but may be slightly less
> convenient.)
>
> -- Murphy
>
> On Monday, May 02, 2011 10:25:22 AM karim torkmen wrote:
>> Hi,
>> I am using the authenticator module.
>> I registered to the flow in event :
>> self.register_handler(Flow_in_event.static_get_name(),self.flow_in_call_bac
>> k) When I try to get the EtherType of a flow through calling this
>> parameter: type = event.flow.dl_type
>> I get EtherType equal to "25480" which is "0x6388", however I am
>> expecting to get a PPP type "34915 (0x8863)".
>> Does any one have an idea about this, could it be a bug ?
>> Thanks a lot for the help,
>> Karim
>> ___
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/listinfo/nox-dev
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[algogeeks] Re: Need help on fenwick trees

2011-05-02 Thread KK
Search Topcoder Tutorial on Google..

On Apr 17, 9:06 pm, naga vinod kumar  wrote:
> Hi Guys ,
>                    Can any one give link for  tutorial or videos about
> segment trees. I am unable to understand the basic idea  behind it .
> Regards,
> vinod

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [openflow-discuss] Simple Handover(Without using AP's)‏‏

2011-04-28 Thread kk yap
Hi Ali,

I have been trying to get to this and realized this is getting pushed
back more and more on my plate.  So short answers

> What do you mean by checking the flow entries of the switches???

Use dpctl dump-flows to see what flows are in the switches.  You can
bring up the terminals for the switches using screen -r of.

> By switches
> you mean Openflow switches and kindly explain what is the procedure to check
> them???

Yes, I am referring to OpenFlow switches.  Knowing the dpctl options
can be useful for these debugging.  Wireshark would help a lot too.

I noticed that NS-3 has started to support OpenFlow.  That might be a
viable option for you too.

Sorry, I really wanted to spend some time on this but just don't see
when that would be at this moment.

Regards
KK


2011/4/17 Ali hussain :
>
> Hi
>     I havent been yet successful in re-establishing the wirefilter as yet
> when you kill it.i iam using the same procedure as described in my previous
> mail below.I noted something that when you create a double wirefilter in xml
> i.e host 1 attached to both OF 1 and OF 2, by adding the code ,BELOWthe OF 1
> wirefilter code the hosts ping but as soon as you delete the wire filter
> attached to OF 1, the pings stop although the host is still connected to OF
> 2. But if u add this code above OF 1 than the ping continue after deleting
> OF1 but ends when deleting OF2. I have also tried deleting both wirefilter
> and then creating them but it attaches to the same OF switch that is above
> the other  in the code.
>
> So how do i create a new wirefilter after killing the old one.
>
> What do you mean by checking the flow entries of the switches???By switches
> you mean Openflow switches and kindly explain what is the procedure to check
> them???
>
>
> Regard Ali
>
>> From: yap...@stanford.edu
>> Date: Sat, 26 Feb 2011 09:15:35 -0800
>> Subject: Re: [openflow-discuss] Simple Handover(Without using AP's)‏‏
>> To: alihussain...@hotmail.com
>> CC: openflow-discuss@lists.stanford.edu
>>
>> Hi Ali,
>>
>> I might sound repetitive here. But check the flow entries on the
>> switches and see if the re-route was done successfully!
>>
>> One thing that is hard to do is to detect the handover in the control
>> plane. What OpenRoads/OpenFlow Wireless does is to use WiFi
>> association to do that. Can't do this in the virtual environment
>> though.
>>
>> Regards
>> KK
>>
>> 2011/2/26 Ali hussain :
>> >
>> > Hi KK,
>> >     Thanks for your reply.Well after killing the wirefilter and
>> > than
>> > creating a new o ne with the other openflow switch the arp packet of
>> > ping
>> > dont reach the controller .Is there a problem in the creation procedure
>> > of
>> > the wirefilter?Im using nox-zaku (0.9).
>> >
>> >> From: yap...@stanford.edu
>> >> Date: Fri, 25 Feb 2011 13:41:14 -0800
>> >> Subject: Re: [openflow-discuss] Simple Handover(Without using AP's)‏‏
>> >> To: alihussain...@hotmail.com
>> >> CC: openflow-discuss@lists.stanford.edu
>> >>
>> >> Hi Ali,
>> >>
>> >> I suggest re-routing the flow since your host has "handed over" from
>> >> one switch to another. Check the flow entries on the switches and see
>> >> if the re-route was done successfully. Which controller are you using
>> >> here?
>> >>
>> >> Regards
>> >> KK
>> >>
>> >> 2011/2/25 Ali hussain :
>> >> > He llo KK
>> >> >     Thanks for you reply.At first i was having some
>> >> > trouble
>> >> > running the code but they all have been sorted out as the 2 hosts are
>> >> > pinging .
>> >> >
>> >> > When i type the command ps ax | grep wire  i can see the wire filter
>> >> > and
>> >> > can
>> >> > kill it using the command sudo kill -9  (the id of the wire
>> >> > filter).After killing it the pinging stop.After that i use the
>> >> > following
>> >> > command to establish a new wire filter command between host 1 and
>> >> > open
>> >> > flow
>> >> > switch 2:
>> >> >
>> >> > dpipe vde_plug $PWD/vde/ctlhost1of2 = wirefilter  --mgmt
>> >> > $PWD/vde/wiremgmthost1of2of2host1 --mgmtmode 700 = vde_plug
>> >> > $PWD/vde/ctlof2host1 &
>> >> >
>> >> >
>> >> > It say: wirefilter

Re: [QUAD-L] pontoon boat?

2011-04-27 Thread KK
Check out YouTube.com.  I know that wheelchairjunkie has a few video's of his 
boat.  Not a pontoon tho.  There are video's of wheelchair users & pontoons 
there also.

Mark works for Pride Mobility & has a great web site himself.

http://www.wheelchairjunkie.com/whatsnew.html

KK





From: Nancy Pritchard 
To: quad-list@eskimo.com
Sent: Wed, April 27, 2011 5:39:38 AM
Subject: [QUAD-L] pontoon boat?

Thinking of purchasing a used pontoon boat for my son (C5/C6 23 yrs old 3.5 
years post) so he can return to a sport he loves...boating and fishing...any 
suggestions for ease boarding there isn't always a dock at some of the smaller 
lakes in Vermont?

Also as far as a trust...is a boat considered sporting good equipment, which is 
allowed?


Peace 

Nancy


Re: [nox-dev] [openflow-discuss] Pyswitch & VLAN

2011-04-27 Thread kk yap
Hi Max,

Something like this?

http://noxrepo.org/noxwiki/index.php/Main_Page
http://noxrepo.org/~yapkke/doc/

Regards
KK

On 27 April 2011 00:15, Max Ott  wrote:
>
> On 26/04/2011, at 4:20 PM, kk yap wrote:
>
>> Hi Max,
>>
>> Can you elaborate on what you mean by pyswitch being aware or unaware
>> of VLAN?  Do you expect the switch to rewrite the VLAN so that hosts
>> on different VLAN can ping each other?
>
> No, I wanted to stay within the same VLAN.
>
> However, my primary objective is to find out on how one could develop new 
> functionality. So some form of documentation would be wonderful.
>
> Cheers,
> -max
>
>>
>> Regards
>> KK
>>
>> On 25 April 2011 22:44, Srini Seetharaman  wrote:
>>> Hi Max
>>> This mail is more appropriate for the nox-dev list that I've copied here.
>>>
>>>> I now can ping two machines across a VLAN using NOX and pyswitch. However, 
>>>> the latter does not seem to create a flow for the VLAN pings as each of 
>>>> them shows up at the controller. I assume the pyswitch isn't aware of VLAN.
>>>
>>> Yes, pyswitch and much of the code in NOX does not track VLANs.
>>>
>>>> Now having looked at the code, I was wondering where I could find a 
>>>> writeup on how to add my own extensions and documentation on all the 
>>>> relevant API calls and their options.
>>>
>>> If no one wrote to you thus far, I guess there is nothing ready for
>>> public use. Please mail the nox-dev list if you manage to get this
>>> resolved and working on your own. Thanks!
>>>
>>> Srini.
>>> ___
>>> openflow-discuss mailing list
>>> openflow-disc...@lists.stanford.edu
>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>>>
>
>
> The information in this e-mail may be confidential and subject to legal 
> professional privilege and/or copyright. National ICT Australia Limited 
> accepts no liability for any damage caused by this email or its attachments.
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [openflow-discuss] Pyswitch & VLAN

2011-04-27 Thread kk yap
Hi Max,

Something like this?

http://noxrepo.org/noxwiki/index.php/Main_Page
http://noxrepo.org/~yapkke/doc/

Regards
KK

On 27 April 2011 00:15, Max Ott  wrote:
>
> On 26/04/2011, at 4:20 PM, kk yap wrote:
>
>> Hi Max,
>>
>> Can you elaborate on what you mean by pyswitch being aware or unaware
>> of VLAN?  Do you expect the switch to rewrite the VLAN so that hosts
>> on different VLAN can ping each other?
>
> No, I wanted to stay within the same VLAN.
>
> However, my primary objective is to find out on how one could develop new 
> functionality. So some form of documentation would be wonderful.
>
> Cheers,
> -max
>
>>
>> Regards
>> KK
>>
>> On 25 April 2011 22:44, Srini Seetharaman  wrote:
>>> Hi Max
>>> This mail is more appropriate for the nox-dev list that I've copied here.
>>>
>>>> I now can ping two machines across a VLAN using NOX and pyswitch. However, 
>>>> the latter does not seem to create a flow for the VLAN pings as each of 
>>>> them shows up at the controller. I assume the pyswitch isn't aware of VLAN.
>>>
>>> Yes, pyswitch and much of the code in NOX does not track VLANs.
>>>
>>>> Now having looked at the code, I was wondering where I could find a 
>>>> writeup on how to add my own extensions and documentation on all the 
>>>> relevant API calls and their options.
>>>
>>> If no one wrote to you thus far, I guess there is nothing ready for
>>> public use. Please mail the nox-dev list if you manage to get this
>>> resolved and working on your own. Thanks!
>>>
>>> Srini.
>>> ___
>>> openflow-discuss mailing list
>>> openflow-discuss@lists.stanford.edu
>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>>>
>
>
> The information in this e-mail may be confidential and subject to legal 
> professional privilege and/or copyright. National ICT Australia Limited 
> accepts no liability for any damage caused by this email or its attachments.
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [nox-dev] QoS in OpenFlow/Nox

2011-04-26 Thread kk yap
Hi Nauman (and Yiannis),

I am not up-to-date with NOX.   But I did previously push support for
all OpenFlow v1.0 messages, which includes whatever support OpenFlow
provides to queues.  That would exclude configuration of the queue,
but include how to forward packets into queues.  That support is in
C/C++.

I am not sure about the Python API.  So, maybe someone can update us on it.

Regards
KK

On 26 April 2011 14:45, Yiannis Yiakoumis  wrote:
> Hi Nauman,
> Which OpenFlow implementation do you use? The rererence code (1.0) supports
> queue set-up through dpctl commands (out-of-band CLI). Setup takes place as
> a vendor extension which means that they could be integrated to a
> controller.
> I haven't used queues with Nox though. I think somebody was working on an
> extension, but not sure what the status is.
> KK, any insights?
>
> Thanks,
> Yiannis
> On Wed, Apr 20, 2011 at 9:43 AM,  wrote:
>>
>> Hello all,
>>
>> I just started looking into OpenFlow and Nox and particularly interested
>> in QoS for flows so have a question about the support in nox.
>>
>> Does nox support setting up the queues and then mapping a flow to
>> particular queue? I was going through
>> http://www.openflow.org/wk/index.php/Slicing#Flow-Queue_Mapping_and_Forwarding
>> and wondering if nox implements it.
>>
>> I'm using the latest stable (HEAD) version of nox.
>>
>> thanks,
>> Nauman
>> ___
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
>
> --
> Yiannis .
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] [openflow-discuss] Pyswitch & VLAN

2011-04-25 Thread kk yap
Hi Max,

Can you elaborate on what you mean by pyswitch being aware or unaware
of VLAN?  Do you expect the switch to rewrite the VLAN so that hosts
on different VLAN can ping each other?

Regards
KK

On 25 April 2011 22:44, Srini Seetharaman  wrote:
> Hi Max
> This mail is more appropriate for the nox-dev list that I've copied here.
>
>> I now can ping two machines across a VLAN using NOX and pyswitch. However, 
>> the latter does not seem to create a flow for the VLAN pings as each of them 
>> shows up at the controller. I assume the pyswitch isn't aware of VLAN.
>
> Yes, pyswitch and much of the code in NOX does not track VLANs.
>
>> Now having looked at the code, I was wondering where I could find a writeup 
>> on how to add my own extensions and documentation on all the relevant API 
>> calls and their options.
>
> If no one wrote to you thus far, I guess there is nothing ready for
> public use. Please mail the nox-dev list if you manage to get this
> resolved and working on your own. Thanks!
>
> Srini.
> ___
> openflow-discuss mailing list
> openflow-disc...@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [openflow-discuss] Pyswitch & VLAN

2011-04-25 Thread kk yap
Hi Max,

Can you elaborate on what you mean by pyswitch being aware or unaware
of VLAN?  Do you expect the switch to rewrite the VLAN so that hosts
on different VLAN can ping each other?

Regards
KK

On 25 April 2011 22:44, Srini Seetharaman  wrote:
> Hi Max
> This mail is more appropriate for the nox-dev list that I've copied here.
>
>> I now can ping two machines across a VLAN using NOX and pyswitch. However, 
>> the latter does not seem to create a flow for the VLAN pings as each of them 
>> shows up at the controller. I assume the pyswitch isn't aware of VLAN.
>
> Yes, pyswitch and much of the code in NOX does not track VLANs.
>
>> Now having looked at the code, I was wondering where I could find a writeup 
>> on how to add my own extensions and documentation on all the relevant API 
>> calls and their options.
>
> If no one wrote to you thus far, I guess there is nothing ready for
> public use. Please mail the nox-dev list if you manage to get this
> resolved and working on your own. Thanks!
>
> Srini.
> ___
> openflow-discuss mailing list
> openflow-discuss@lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[algogeeks] Re: Cracking the IT interview: jump start your career with confidence

2011-04-25 Thread KK
But i think here's no one to forward :p


Kunal Kapadia
Computer Science and Enggneering
2nd yr
NIT Trichy


-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Link for sartaj sahni video lectures

2011-04-25 Thread KK
Hey it seems to be a fake link... It directs to some site which
shorten URLs

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Sartaj Sahni ebook

2011-04-24 Thread KK
@ Carl Barton:
I also know that site... i want a shared link u stupid...

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Sartaj Sahni ebook

2011-04-23 Thread KK
Please give link to:
Data Structures,Algorithms and Applications by Sartaj Sahni...
or directly mail to me.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: Flipping Coins

2011-04-23 Thread KK
Hey guys n gals WAKE UP
No reply on this topic???
Do any knows here about segment tree??

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Flipping Coins

2011-04-21 Thread KK
Pls have a look at this Question on codechef
http://www.codechef.com/problems/FLIPCOIN/
i tried this using Segment tree...
i implemented segment updating properly
but dont know how to do segment Querying in this particular Question
although point Querying is easy..
and please suggest links and ebooks for topics such as segment tree.
Interval tree , Binary Indexed tree , Suffix trees(Other than Topcoder
Tutorials)
This is how i implemented Segment updating:

void update(int beg,int end,int ind)//segment updating
{
if(beg>B || end=A && end<=B) m[ind]+=k;
else
{
update(beg,((beg+end)>>1),(ind<<1));
update(1+((beg+end)>>1),end,1+(ind<<1));
}
}

may be u need to change for Querying

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Ebooks Sites

2011-04-21 Thread KK
Hello people please share sites from where good programming ebooks can
be downloaded...
i use   library.nu and 4shared.com

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[jbehave-dev] [jira] Commented: (JBEHAVE-488) Scenario with nested or recursive example table

2011-04-20 Thread kk sure (JIRA)

[ 
http://jira.codehaus.org/browse/JBEHAVE-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264227#action_264227
 ] 

kk sure commented on JBEHAVE-488:
-

Hmm. Looks like a good solution.

> Scenario with nested or recursive example table
> ---
>
> Key: JBEHAVE-488
> URL: http://jira.codehaus.org/browse/JBEHAVE-488
> Project: JBehave
>  Issue Type: New Feature
>Reporter: kk sure
>
> We have a UI functionality that repeats on many pages (say it is a JSPF 
> component that is reusable, with configurable variation). But it is important 
> to test this on all pages since the functionality is slightly different on 
> each of these pages.
> h2. How we have to code this today:
> Scenario: Food widget in Home page
> Given I am on Home page
> When I enter  in the menu field
> Then I see  in the dropdown
> Examples:
> |food_item|related_food_items|
> |pizza|"cheese, chicken, bacon"|
> |fruit_salad|"mangoes, strawberry, grapes"|
> |rice|"brown, white, fried"|
> The exact same test will repeat on a different page like below
> Scenario: Food widget in OrderFood page
> Given I am on OrderFood page
> When I enter  in the menu field
> Then I see  in the dropdown
> Examples:
> |food_item|related_food_items|
> |pizza|"cheese, chicken, bacon"|
> |fruit_salad|"mangoes, strawberry, grapes"|
> |rice|"brown, white, fried"|
> h2. Problem Statement: We want to run a particular scenario with 'examples' 
> over another parametrized value (e.g 'Page' here).
> h2. Proposed solution: foreach meta-tag at scenario level that has processing 
> implications.
> Scenario: 
> Meta:
> @foreach Page: Home, OrderFood, CheckStatus, CancelOrder
> Given I am on the  page
> When I enter  in the menu field
> Then I see  in the dropdown
> Examples:
> |food_item|related_food_items|
> |pizza|"cheese, chicken, bacon"|
> |fruit_salad|"mangoes, strawberry, grapes"|
> |rice|"brown, white, fried"|

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email




[jbehave-dev] [jira] Created: (JBEHAVE-488) Scenario with nested or recursive example table

2011-04-20 Thread kk sure (JIRA)
Scenario with nested or recursive example table
---

 Key: JBEHAVE-488
 URL: http://jira.codehaus.org/browse/JBEHAVE-488
 Project: JBehave
  Issue Type: New Feature
Reporter: kk sure


We have a UI functionality that repeats on many pages. But it is important to 
test this on all pages since the functionality is slightly different on each of 
these pages.

For eg.

Scenario: 

Given I am on Home page
When I enter  in the menu field
Then I see  in the dropdown

Examples:
|food_item|related_food_items|
|pizza|"cheese, chicken, bacon"|
|fruit_salad|"mangoes, strawberry, grapes"|
|rice|"brown, white, fried"|

The exact same test will repeat on a different page like below


Scenario: 

Given I am on OrderFood page
When I enter  in the menu field
Then I see  in the dropdown

Examples:
|food_item|related_food_items|
|pizza|"cheese, chicken, bacon"|
|fruit_salad|"mangoes, strawberry, grapes"|
|rice|"brown, white, fried"|


h2. Problem Statement: We want to run a particular test with examples over 
another parametrized value (e.g 'Page' here).

h2. Proposed solution

Scenario: 

Meta:

@foreach Page: Home, OrderFood, CheckStatus, CancelOrder

Given I am on the Page page
When I enter  in the menu field
Then I see  in the dropdown

Examples:
|food_item|related_food_items|
|pizza|"cheese, chicken, bacon"|
|fruit_salad|"mangoes, strawberry, grapes"|
|rice|"brown, white, fried"|


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email




[algogeeks] Re: If any one have algorithms for interviews by adnan aziz ebook... Please mail ...

2011-04-17 Thread KK
Hey plzz mail me too..

On Apr 14, 9:29 am, Rajeev Kumar  wrote:
> check this 
> link:https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=1B5...
>
> If you have any problem in access,please inform me
>
> On Thu, Apr 14, 2011 at 1:04 AM, Abhishek Goswami 
> wrote:
>
>
>
>
>
>
>
>
>
> > Hi,
> > I tried to open this book in google docs and got message that file is not
> > avaliable. does this file not available in google docs
> > if yes , can anybody share this book again
>
> > On Tue, Mar 22, 2011 at 10:41 PM, Himanshu Neema <
> > potential.himansh...@gmail.com> wrote:
>
> >> Turns out that I cant send file larger than 4 MB , please download it from
> >> here , let me know if you're still unable to download:
>
> >>http://dl.dropbox.com/u/2681370/Algorithms%2Bfor%2BInterviews%2B%28sc...
>
> >> have fun !
>
> >> On Tue, Mar 22, 2011 at 10:21 PM, Himanshu Neema <
> >> potential.himansh...@gmail.com> wrote:
>
> >>> Enjoy :)
>
> >>> On Tue, Mar 22, 2011 at 10:09 PM, Saravanan T 
> >>> wrote:
>
>  ++
>
>  On Tue, Mar 22, 2011 at 9:51 PM, Anurag atri 
>  wrote:
>
> > and me too :)
>
> > On Tue, Mar 22, 2011 at 9:28 PM, Nikhil Mishra 
> > wrote:
>
> >> count me too
>
> >> On Tue, Mar 22, 2011 at 11:16 AM, kunal srivastav <
> >> kunal.shrivas...@gmail.com> wrote:
>
> >>> plz send it to me too
>
> >>> On Tue, Mar 22, 2011 at 11:14 AM, D.N.Vishwakarma@IITR <
> >>> deok...@gmail.com> wrote:
>
>  --
>
>  *With Regards
>  Deoki Nandan Vishwakarma
>  IITR MCA
>  Mathematics Department
>  *
>
>  --
>  You received this message because you are subscribed to the Google
>  Groups "Algorithm Geeks" group.
>  To post to this group, send email to algogeeks@googlegroups.com.
>  To unsubscribe from this group, send email to
>  algogeeks+unsubscr...@googlegroups.com.
>  For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
> >>> --
> >>> thezeitgeistmovement.com
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Algorithm Geeks" group.
> >>> To post to this group, send email to algogeeks@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> algogeeks+unsubscr...@googlegroups.com.
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/algogeeks?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> Groups "Algorithm Geeks" group.
> >> To post to this group, send email to algogeeks@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> algogeeks+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/algogeeks?hl=en.
>
> > --
> > Regards
> > Anurag Atri
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.
>
>   --
>  You received this message because you are subscribed to the Google
>  Groups "Algorithm Geeks" group.
>  To post to this group, send email to algogeeks@googlegroups.com.
>  To unsubscribe from this group, send email to
>  algogeeks+unsubscr...@googlegroups.com.
>  For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Algorithm Geeks" group.
> >> To post to this group, send email to algogeeks@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> algogeeks+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/algogeeks?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.
>
> --
> Thank You
> Rajeev Kumar

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: If any one have algorithms for interviews by adnan aziz ebook... Please mail ...

2011-04-17 Thread KK
Hey can u mail it to me plzzz??

On Mar 23, 7:55 am, Anand  wrote:
> Thanks!!
>
> On Tue, Mar 22, 2011 at 7:11 PM, D.N.Vishwakarma@IITR 
> wrote:
>
>
>
>
>
>
>
> > thanx...
>
> > On 3/22/11, Himanshu Neema  wrote:
> > > -- Forwarded message --
> > > From: Himanshu Neema 
> > > Date: Tue, Mar 22, 2011 at 11:13 PM
> > > Subject: Re: [algogeeks] If any one have algorithms for interviews by
> > adnan
> > > aziz ebook... Please mail ...
> > > To: Abhishek Goswami 
>
> > > Its a 15.4MB pdf so would take time to download if you have slow internet
> > > connection , otherwise i checked the link its working.
>
> > > But I have also uploaded it on Google docs as Abhishek suggested  here :
>
> >https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B-...
>
> > > On Tue, Mar 22, 2011 at 11:01 PM, Abhishek Goswami
> > > wrote:
>
> > >> can you upload this file into google docs or attach this file. i tried
> > to
> > >> download this file but did not get any success for
> > >> open this file
> > >> Thanks
> > >> Abhishek
>
> > >> On Tue, Mar 22, 2011 at 10:41 PM, Himanshu Neema <
> > >> potential.himansh...@gmail.com> wrote:
>
> > >>> Turns out that I cant send file larger than 4 MB , please download it
> > >>> from
> > >>> here , let me know if you're still unable to download:
>
> >http://dl.dropbox.com/u/2681370/Algorithms%2Bfor%2BInterviews%2B%28sc...
>
> > >>> have fun !
>
> > >>> On Tue, Mar 22, 2011 at 10:21 PM, Himanshu Neema <
> > >>> potential.himansh...@gmail.com> wrote:
>
> >  Enjoy :)
>
> >  On Tue, Mar 22, 2011 at 10:09 PM, Saravanan T
> >  wrote:
>
> > > ++
>
> > > On Tue, Mar 22, 2011 at 9:51 PM, Anurag atri
> > > wrote:
>
> > >> and me too :)
>
> > >> On Tue, Mar 22, 2011 at 9:28 PM, Nikhil Mishra
> > >> wrote:
>
> > >>> count me too
>
> > >>> On Tue, Mar 22, 2011 at 11:16 AM, kunal srivastav <
> > >>> kunal.shrivas...@gmail.com> wrote:
>
> >  plz send it to me too
>
> >  On Tue, Mar 22, 2011 at 11:14 AM, D.N.Vishwakarma@IITR <
> >  deok...@gmail.com> wrote:
>
> > > --
>
> > > *With Regards
> > > Deoki Nandan Vishwakarma
> > > IITR MCA
> > > Mathematics Department
> > > *
>
> > > --
> > > You received this message because you are subscribed to the
> > Google
> > > Groups "Algorithm Geeks" group.
> > > To post to this group, send email to algogeeks@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > algogeeks+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/algogeeks?hl=en.
>
> >  --
> >  thezeitgeistmovement.com
>
> >   --
> >  You received this message because you are subscribed to the Google
> >  Groups "Algorithm Geeks" group.
> >  To post to this group, send email to algogeeks@googlegroups.com.
> >  To unsubscribe from this group, send email to
> >  algogeeks+unsubscr...@googlegroups.com.
> >  For more options, visit this group at
> > http://groups.google.com/group/algogeeks?hl=en.
>
> > >>>  --
> > >>> You received this message because you are subscribed to the Google
> > >>> Groups "Algorithm Geeks" group.
> > >>> To post to this group, send email to algogeeks@googlegroups.com.
> > >>> To unsubscribe from this group, send email to
> > >>> algogeeks+unsubscr...@googlegroups.com.
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/algogeeks?hl=en.
>
> > >> --
> > >> Regards
> > >> Anurag Atri
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Algorithm Geeks" group.
> > >> To post to this group, send email to algogeeks@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> algogeeks+unsubscr...@googlegroups.com.
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/algogeeks?hl=en.
>
> > >  --
> > > You received this message because you are subscribed to the Google
> > > Groups "Algorithm Geeks" group.
> > > To post to this group, send email to algogeeks@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > algogeeks+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/algogeeks?hl=en.
>
> > >>>  --
> > >>> You received this message because you are subscribed to the Google
> > Groups
> > >>> "Algorithm Geeks" group.
> > >>> To post to this group, send email to algogeeks@googlegroups.com.
> > >>> To unsubscribe from this group, send email to
> > >>> algogeeks+unsubscr...@googlegroups.com.
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/algogeeks?hl=en.
>
> > > --
> > > You recei

[algogeeks] Re: [brain teaser] Sequence Puzzle 13april

2011-04-17 Thread KK
Dont worry got it!!!

On Apr 13, 2:57 pm, vaibhav shukla  wrote:
> On Wed, Apr 13, 2011 at 1:02 PM, Lavesh Rawat wrote:
>
> > * Sequence Puzzle *
> > *
> > *
> > *The below is a number puzzle. It should be read left to right, top to
> > bottom.
> > Question 1 What is the next two rows of numbers.
> > Question 2 How was this reached.
> > 1 1
> > 2 1
> > 1 2 1 1
> > 1 1 1 2 2 1*
>
> next two rows:
>     *3 1 2 2 1 1
>     1 3 1 1 2 2 2 1
>
> *
>
>
>
>
>
>
>
>
>
> > 
> > *Update Your Answers at* : Click 
> > Here
>
> > Solution:
> > Will be updated after 1 day
>
> > --
>
> >                     "Never explain yourself. Your friends don’t need it and
> > your enemies won’t believe it" .
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.
>
> --
>   best wishes!!
> Vaibhav Shukla
>     DU-MCA

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Re: [brain teaser] Sequence Puzzle 13april

2011-04-17 Thread KK
@vaibhav shukla:
3 1 2 2 1 1 is ok
but how 1 3 1 1 2 2 2 1 came
Thanks

On Apr 13, 2:57 pm, vaibhav shukla  wrote:
> On Wed, Apr 13, 2011 at 1:02 PM, Lavesh Rawat wrote:
>
> > * Sequence Puzzle *
> > *
> > *
> > *The below is a number puzzle. It should be read left to right, top to
> > bottom.
> > Question 1 What is the next two rows of numbers.
> > Question 2 How was this reached.
> > 1 1
> > 2 1
> > 1 2 1 1
> > 1 1 1 2 2 1*
>
> next two rows:
>     *3 1 2 2 1 1
>     1 3 1 1 2 2 2 1
>
> *
>
>
>
>
>
>
>
>
>
> > 
> > *Update Your Answers at* : Click 
> > Here
>
> > Solution:
> > Will be updated after 1 day
>
> > --
>
> >                     "Never explain yourself. Your friends don’t need it and
> > your enemies won’t believe it" .
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/algogeeks?hl=en.
>
> --
>   best wishes!!
> Vaibhav Shukla
>     DU-MCA

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [QUAD-L] 38 year's ago today!

2011-04-17 Thread KK
I'm going to say congrats for every year.  

YEAH!!!!!

KK






From: Bobbie Humphreys 
To: "Quad-list@eskimo.com" 
Sent: Sun, April 17, 2011 1:39:30 AM
Subject: [QUAD-L] 38 year's ago today!

Hi All,
 I can't believe it's been 38 freaking YEARS!! It seems like 99 
looong years. Every year it get's harder and harder. Bobbie

Sent from my iPad


Re: [openflow-discuss] Ask Help for Openflow IPv6 Extension

2011-04-14 Thread kk yap
Oops.  my fault.  So, we are down to ofps as choice?

Regards
KK

On 14 April 2011 09:10, Justin Pettit  wrote:
> On 4/14/11 8:55 AM, "Ben Pfaff"  wrote:
>
>>On Thu, Apr 14, 2011 at 08:29:12AM -0700, kk yap wrote:
>>> The only 1.1 compatible software switch out there is OVS and ofps.
>>
>>I just want to mention, for the benefit of others on this list (I'm
>>sure that you know already, kk), that the Nicira-maintained version of
>>Open vSwitch does not support OpenFlow 1.1.
>
> The full context of the original discussion is not in the thread, but
> based on the subject line, there is interest in having support for IPv6
> matching.  Open vSwitch added support for an extensible match OpenFlow
> vendor extension, which has support for matching IPv6 headers.  If you are
> interested at looking at its approach, it is available in version 1.1.0,
> which was released last week:
>
>        http://openvswitch.org/pipermail/announce/2011-April/36.html
>
> (As Ben noted, Open vSwitch 1.1 does not support OpenFlow 1.1; the version
> numbers are coincidental.)
>
> --Justin
>
>
>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [openflow-discuss] Ask Help for Openflow IPv6 Extension

2011-04-14 Thread kk yap
Hi Ben,

> I just want to mention, for the benefit of others on this list (I'm
> sure that you know already, kk), that the Nicira-maintained version of
> Open vSwitch does not support OpenFlow 1.1.

I actually don't.  I was referring to the recent mail sent out by
Justin (http://openvswitch.org/pipermail/announce/2011-April/36.html).
 Can you elaborate what you mean by that?  Thanks!

Regards
KK

On 14 April 2011 08:55, Ben Pfaff  wrote:
> On Thu, Apr 14, 2011 at 08:29:12AM -0700, kk yap wrote:
>> The only 1.1 compatible software switch out there is OVS and ofps.
>
> I just want to mention, for the benefit of others on this list (I'm
> sure that you know already, kk), that the Nicira-maintained version of
> Open vSwitch does not support OpenFlow 1.1.
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: [openflow-discuss] Ask Help for Openflow IPv6 Extension

2011-04-14 Thread kk yap
Hi Wang,

cc-ing the mailing list for expert advices from those who knows better.

git://gitosis.stanford.edu host the reference implementation.
Honestly, I don't think that would be maintained.  Moreover, OpenFlow
1.1 is already released, and there is no implementation for OpenFlow
1.1 in that reference implementation.  The only 1.1 compatible
software switch out there is OVS and ofps.  As for which is the
appropriate codebase to work on, I would let others advice on that.
Rob, can you comment on ofps?

As for controller, I believe there is no OpenFlow 1.1 compatible
controllers yet.  I guess you have to stay tuned for something there.
If you really need something soon, trying to flush the pylibopenflow
output and integrating it into NOX is going to be the fastest thing to
do.  However, it is not clear to me if NOX would be maintained and
supported for long.  Nick Bastin might have some opinion here.

Hope this helps you get along. Let us know if there is more questions.

Regards
KK
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


Re: Question about multi client ability on server side

2011-04-11 Thread KK
Dear Bryan, Mark,

first of all sorry for the two threads, I copied the whole subject, without
the Re: (...)

Yes I am using SimpleServer and did not see (till now) that there are such
great other implementations. With ThreadPoolServer my application works
fine. Thank you very much for your help!

2011/4/8 Mark Slee 

> Which server implementation are you using? It sounds like you are using the
> TSimpleServer. We have a number of threaded implementations available.
>
> ~/local/thrift-apache/trunk/lib/cpp/src/server $ls
> TNonblockingServer.cpp  TSimpleServer.cppTThreadPoolServer.cpp
> TNonblockingServer.hTSimpleServer.h  TThreadPoolServer.h
> TServer.cpp TThreadedServer.cpp
> TServer.h   TThreadedServer.h
>
> You probably want to go with a TThreadPoolServer or TThreadedServer. It
> should be very straightforward to swap those out for the TSimpleServer, it
> won't require changing your application implementation code (though you'll
> need to ensure that any shared data structures are thread-safe).
>
> Cheers,
> mcslee
>
> -Original Message-
> From: KK [mailto:kartoffelkif...@gmx.de]
> Sent: Friday, April 08, 2011 10:30 AM
> To: user
> Subject: Question about multi client ability on server side
>
> Hi Brian,
>
> you mean that I have to implement multi client support for myself?
>
> I think cpp supports threads :) I hope I can use OpenMP in this project!
>


Question about multi client ability on server side

2011-04-08 Thread KK
Hi Brian,

you mean that I have to implement multi client support for myself?

I think cpp supports threads :) I hope I can use OpenMP in this project!


Question about multi client ability on server side

2011-04-08 Thread KK
Hello,

I am a new thrift user since about 24 hours and have to say: I am thrilled.

While testing I have a scenario with a cpp server and a php client.

The server has a function like

  void sayHello(string &ret, const string &name, const int32_t age)
  {

char buffer[2];
sprintf(buffer, "%d", age);

if (strcmp(name.data(), "ABC") == 0)
{
while(1){ usleep(1000); }
}

ret.append("Hello ");
ret.append(name.c_str());
ret.append(" (");
ret.append(buffer);
ret.append(")");
  }

and the client looks like the following

  $socket = new TSocket('192.168.3.72', 9090);
  $transport = new TBufferedTransport($socket, 1024, 1024);
  $protocol = new TBinaryProtocol($transport);
  $client = new CalculatorClient($protocol);

  $transport->open();

  $hello = $client->sayHello("Test", 99);
  print $hello;

  $transport->close();

But when I copy the phpClient.php to phpClient2.php and uses "ABC" as name
for function "sayHello", the server will hang in that infinite loop and will
not give access to phpClient.php where name is "Test" (TException: TSocket:
timed out reading 4 bytes from 192.168.3.72:9090). So the server is blocked
by the client who opens function sayHello with parameter "ABC".

Is there any possibility to make the server "multi-client-able" that every
client gets its own instance?

Best regards, KK


Re: [openflow-discuss] Openroads!!!

2011-04-05 Thread kk yap
Hi Ali,

If the driver for the dongle works on Linux, you should be fine.
However, you want to note that some dongle does interfere with
built-in WiFi of laptops, so you may experience some difficulties
there.  We have not tried the TP-Link dongle ourselves, so you are on
your own.

Regards
KK

On 5 April 2011 15:00, Ali hussain  wrote:
> Hello,
>  I am installing the client side of openroads on my Dell laptop
> using (Ubuntu 10.10)and want to ask that cant we use simple Tp-Link Wifi-usb
> (Link given below) instead of D link card with the Atheros chip for multiple
> radio interface?What is the basic purpose of Atheros chip(while it is
> understood that D link card is a Wifi card) and secondly what do you mean by
> that a custom kernel is required?
>
> Waiting for your reply.
>
> Regards
> Ali Hussain
>
> TP-link-
> http://www.shopmania.co.uk/shopping~online-system-accessories~buy-tp-link-wireless-usb-adaptor-tl-wn321g-54mbps-2-4ghz-supports-sony-p~p-8071215.html
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[QUAD-L] No Touch Gate & Door Access

2011-04-04 Thread KK
I really have to learn about IR.  Have several items that are capable to be set 
up for it but don't know much about it.

http://www.smarthome.com/77596/Enforcer-SD-9263-KSQ-No-Touch-Outdoor-Request-to-Exit-Plate-w-Delay-and-Override-Button-Single-Gang/p.aspx?src=RSS200511

Re: [openflow-discuss] Openflow-Openroads

2011-04-03 Thread kk yap
Hi Richard,

The requirements depends on if you want a physical setup.  If yes, you
need two access points and a laptop and a peer for the laptop.  If no,
you can try to use the deprecated package OpenFlowVMS to emulate a
handover. Preferably mininet should be usable for this purpose.  I am
not sure if mininet supports handover emulation at this point, so you
have to ask someone more knowledgeable on the subject matter.

Regards
KK


On 2 April 2011 04:52, Richard Berry  wrote:
> Hey KK,
>          I am working on openflow-openroads.I wanted to ask that how should
> i proceed if i need to transfer an ongoing session of a laptop from one AP
> to another AP using Openflow. i want to do a simple Handover and transfer my
> ongoing session proving that handover in Openflow gives better results.
> i have read Openroads documentation and papers from your website and have
> successfully installed Nox-Zaku on my system(Laptop).
> How do i need to start and what things will i require?
> waiting for your reply.
>
> Regards,
> Richard
>
>
>
>
___
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss


[jira] [Created] (COUCHDB-1117) Querying view with group parameter after group_level parameter is ignoring group_level parameter

2011-04-02 Thread Sameer Babu KK (JIRA)
Querying view with group parameter after group_level parameter is ignoring 
group_level parameter


 Key: COUCHDB-1117
 URL: https://issues.apache.org/jira/browse/COUCHDB-1117
 Project: CouchDB
  Issue Type: Bug
  Components: HTTP Interface
Affects Versions: 1.1
 Environment: {"couchdb":"Welcome","version":"1.1.0a771dd47-git"}
Reporter: Sameer Babu KK


Query with 

http://localhost:5984/t24-pmdata/_design/pm/_view/report?startkey=[3,%22temperature%22,2011,2,1]&endkey=[3,%22temperature%22,2011,2,29]&group_level=3&group=true

returns different results than

http://localhost:5984/t24-pmdata/_design/pm/_view/report?startkey=[3,%22temperature%22,2011,2,1]&endkey=[3,%22temperature%22,2011,2,29]&group=true&group_level=3
 

or just

http://localhost:5984/t24-pmdata/_design/pm/_view/report?startkey=[3,%22temperature%22,2011,2,1]&endkey=[3,%22temperature%22,2011,2,29]&group_level=3
 


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: [nox-dev] 00005|nox|ERR:Application

2011-04-01 Thread kk yap
Try editing configure.ac.in and rerunning ./boot.sh, ../configure and make.

Regards
KK

On 1 April 2011 01:30, Kyriakos Zarifis  wrote:
> Hey,
> you only need to rebuild NOX the first time you introduce a new python
> component (after following the instructions on the wiki), so that the links
> are created to the build/src/ directory. After that, you can simply run NOX
> each time you edit your python component.
>
> On Thu, Mar 31, 2011 at 11:32 PM, Bill Liao  wrote:
>>
>> On Fri, Apr 1, 2011 at 5:29 AM, Kyriakos Zarifis 
>> wrote:
>> > Hi Karim,
>> > did you rerun ../configure and make after you edited configure.ac and
>> > Makefile.am?
>> >
>> > On Thu, Mar 31, 2011 at 7:42 AM, karim torkmen
>> > 
>> > wrote:
>> >>
>> >> Hi,
>> >> I developed a component when I try to run it, I get the following error
>> >> message :
>> >>
>> >> 
>> >> 1|nox|INFO:Starting nox_core (/nox/build/src/.libs/lt-nox_core)
>> >> 2|nox|DBG:Application installation report:
>> >> 3|nox|DBG:built-in DSO deployer:
>> >>    Current state: INSTALLED
>> >>    Required state: INSTALLED
>> >>    Dependencies:
>> >>
>> >> 4|nox|DBG:built-in event dispatcher:
>> >>    Current state: INSTALLED
>> >>    Required state: INSTALLED
>> >>    Dependencies:
>> >>
>> >> 5|nox|ERR:Application 'try_topology' description not found.
>> >> ***
>> >> To add my component I tried two methods:
>> >> The first one is through executing the script : nox-new-c-app.py
>> >> The second one is by editing meta.json, configure.ac and Makefile.am.
>> >> Unfortunately, none of them was able to make me run my component.
>> >>
>> >> Thank you for your help.
>> >> Regards,
>> >> Karim
>> >>
>> >>
>> >> ___
>> >> nox-dev mailing list
>> >> nox-dev@noxrepo.org
>> >> http://noxrepo.org/mailman/listinfo/nox-dev
>> >
>> >
>> > ___
>> > nox-dev mailing list
>> > nox-dev@noxrepo.org
>> > http://noxrepo.org/mailman/listinfo/nox-dev
>> >
>> >
>>
>> Hi, Kyriakos
>>   Sorry to interrupt. But I'm wondering is it necessary to re-make
>> after building a new python component.
>>   As far as I know after reading some source, there is no such
>> requirement right?
>>   The python component is managed by PyRt, just as Dso-deployer. So,
>> for c++ component, maybe we should make to produce the *.so dynamic
>> library, but what will MAKE produce for new python component?
>>
>>   Regards
>>   wliao
>
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [QUAD-L] ideas

2011-03-31 Thread KK
CamelBak - I have several -  2 that hold 20 oz, 2 that hold 50 oz. I tried a 
generic brand - too hard to deal with.  So yesterday I got a CamelBak brand.  
It 
is much easier to get the filled bladder in & out.

I hang it on my wheelchair & on bed rails & suck on it when ever I am thirsty.

KK






From: Ismael 
To: quad-list@eskimo.com
Sent: Wed, March 30, 2011 10:14:43 PM
Subject: [QUAD-L] ideas

High my friends I have a question for you I drink a lot of water instead of
calling somebody all the time to give me water we try to put a big glass on
the side bed rail tie it with a long sprawl where I could reach it drink
water but it didn't work half if you guys have a better idea

Re: [nox-dev] Have any application in NOX supports multicast?

2011-03-27 Thread kk yap
Hi Jen-Wei,

OpenFlow 1.1 (implemented) is released, so it is quite final for me.

Also, if you are not constrained to using the group semantics (in
OpenFlow 1.1), you can do multicast by listing all the ports you want
to multicast to in the flow_mod command.

If you are looking for IGMP multicast support, then you are looking
for someone to do some work.

Regards
KK

On 27 March 2011 17:41, James "Murphy" McCauley  wrote:
> So this is certainly not an official statement of any sort, but I would
> not expect to see OpenFlow 1.1 support in NOX for a while.  I believe
> there's some consensus that supporting both 1.0 and 1.1 well will
> require some nontrivial API changes (and we're due for some API changes
> anyway), and there will be a focus on getting some of that right rather
> than incrementally updating NOX as has been done for previous OpenFlow
> versions.
>
> And before we even have 1.1 compatibility, I really would not hazard a
> guess about what we'd be releasing supporting multicast.  Sorry!
>
> Hopefully we'll have more of an idea about this in the coming months, as
> well as more actual OpenFlow 1.1 implementations.
>
> (Also, as far as my limited understanding goes, OpenFlow 1.1 is still
> not final...)
>
> -- Murphy
>
> On Sat, 2011-03-26 at 11:33 +0800, Jen-Wei Hu wrote:
>> Hi all,
>>
>> We are glad to hear the version 1.1 of OpenFlow is released because
>> this version create a Group table for supporting multicast. Although
>> we use the NOX that support OpenFlow 1.0, would any plan to develop an
>> application or example which supports multicast? Or give us
>> some advices to do it? Thank you!
>>
>> Bests,
>>
>> Jen-Wei
>> ___
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Flow collection- error

2011-03-22 Thread kk yap
I should have mentioned that the OpenFlow pack library in NOX does
this for you, with the correct byte order.  For details, check out:

http://noxrepo.org/~yapkke/doc/classvigil_1_1openflow__pack.html
http://noxrepo.org/~yapkke/doc/openflow-pack-raw_8hh.html

Regards
KK

On 21 March 2011 13:11, Ricardo Bennesby  wrote:
> Hi Paulo and kk!
>
> You are right!
> Problem solved.
> Thank you very much for your help.
>
> Best Regards.
>
> 2011/3/21 Paulo César 
>>
>> Hi, Ricardo.
>> I solved this problem.
>> Try to use ntohll() to uint64 and ntohs() to uint32.
>> Best regards.
>> 2011/3/21 Paulo César 
>>>
>>> Hi,
>>> I am having the same problem.
>>> Any help?
>>> Best regards.
>>>
>>>
>>> 2011/3/20 Ricardo Bennesby 
>>>>
>>>> Sorry, forgot to paste that...
>>>>   fsie is from Flow_stats_in event, declared in a
>>>> handle_flow_stats_in method (a handler):
>>>>
>>>> Disposition newcomp::handle_flow_stats_in(const Event& e){
>>>>     const Flow_stats_in_event& fsie
>>>>     = assert_cast(e);
>>>>
>>>> So, fsie.flows has that informations about the flows, that can be used
>>>> to collect statistcs.
>>>>
>>>> Thanks for help.
>>>> Regards.
>>>>
>>>> 2011/3/20 kk yap 
>>>>>
>>>>> Ricardo,
>>>>>
>>>>> Can you explain which component is fsie as with
>>>>> * fsie.flows.at(i)
>>>>>
>>>>> Regards
>>>>> KK
>>>>>
>>>>> On 20 March 2011 13:11, Ricardo Bennesby 
>>>>> wrote:
>>>>> > Thanks kk.
>>>>> >
>>>>> > I think I did what you suggested:
>>>>> >
>>>>> >     uint32_t ds; //duration_sec
>>>>> >     uint64_t pc; //packet_count
>>>>> >     uint16_t pri; //priority
>>>>> >     uint64_t bc; //byte_count
>>>>> >     uint16_t len; //legth
>>>>> >     uint8_t tid; //table_id
>>>>> >
>>>>> >     for(int i=0;i>>>> >             lg.dbg("i value: %d",i);
>>>>> >         ds = ntohl(fsie.flows.at(i).duration_sec);
>>>>> >         pc = ntohl(fsie.flows.at(i).packet_count);
>>>>> >         pri = ntohl(fsie.flows.at(i).priority);
>>>>> >         bc = ntohl(fsie.flows.at(i).byte_count);
>>>>> >         len = ntohl(fsie.flows.at(i).length);
>>>>> >         tid = ntohl(fsie.flows.at(i).table_id);
>>>>> >             lg.dbg("duration_sec: %"PRIu32,ds);
>>>>> >             lg.dbg("packet_count: %"PRIu64,pc);
>>>>> >             lg.dbg("priority: %"PRIu16,pri);
>>>>> >             lg.dbg("byte_count: %"PRIu64,bc);
>>>>> >             lg.dbg("length: %"PRIu16,len);
>>>>> >             lg.dbg("table_id: %"PRIu8,tid);
>>>>> >     }
>>>>> >
>>>>> > But now only number of flows and duration in seconds are non-zero:
>>>>> >
>>>>> > 00238|newcomp|DBG:Size of flows: 2
>>>>> > 00239|newcomp|DBG:i value: 0
>>>>> > 00240|newcomp|DBG:duration_sec: 8
>>>>> > 00241|newcomp|DBG:packet_count: 0
>>>>> > 00242|newcomp|DBG:priority: 0
>>>>> > 00243|newcomp|DBG:byte_count: 0
>>>>> > 00244|newcomp|DBG:length: 0
>>>>> > 00245|newcomp|DBG:table_id: 0
>>>>> > 00246|newcomp|DBG:i value: 1
>>>>> > 00247|newcomp|DBG:duration_sec: 7
>>>>> > 00248|newcomp|DBG:packet_count: 0
>>>>> > 00249|newcomp|DBG:priority: 0
>>>>> > 00250|newcomp|DBG:byte_count: 0
>>>>> > 00251|newcomp|DBG:length: 0
>>>>> > 00252|newcomp|DBG:table_id: 0
>>>>> >
>>>>> > What am I missing?
>>>>> >
>>>>> > Sorry to bother.
>>>>> >
>>>>> > Regards.
>>>>> >
>>>>> >
>>>>> > 2011/3/20 kk yap 
>>>>> >>
>>>>> >> Hi Ricardo,
>>>>> >>

Re: [nox-dev] Flow collection- error

2011-03-21 Thread kk yap
Oops... should have spotted that.  Thanks Paulo, that saved me.

Regards
KK

PS>> This email comes 20 sec before I decide to spend a few mins on this.  :)

On 21 March 2011 12:24, Paulo César  wrote:
> Hi, Ricardo.
> I solved this problem.
> Try to use ntohll() to uint64 and ntohs() to uint32.
> Best regards.
> 2011/3/21 Paulo César 
>>
>> Hi,
>> I am having the same problem.
>> Any help?
>> Best regards.
>>
>>
>> 2011/3/20 Ricardo Bennesby 
>>>
>>> Sorry, forgot to paste that...
>>>   fsie is from Flow_stats_in event, declared in a
>>> handle_flow_stats_in method (a handler):
>>>
>>> Disposition newcomp::handle_flow_stats_in(const Event& e){
>>>     const Flow_stats_in_event& fsie
>>>     = assert_cast(e);
>>>
>>> So, fsie.flows has that informations about the flows, that can be used to
>>> collect statistcs.
>>>
>>> Thanks for help.
>>> Regards.
>>>
>>> 2011/3/20 kk yap 
>>>>
>>>> Ricardo,
>>>>
>>>> Can you explain which component is fsie as with
>>>> * fsie.flows.at(i)
>>>>
>>>> Regards
>>>> KK
>>>>
>>>> On 20 March 2011 13:11, Ricardo Bennesby 
>>>> wrote:
>>>> > Thanks kk.
>>>> >
>>>> > I think I did what you suggested:
>>>> >
>>>> >     uint32_t ds; //duration_sec
>>>> >     uint64_t pc; //packet_count
>>>> >     uint16_t pri; //priority
>>>> >     uint64_t bc; //byte_count
>>>> >     uint16_t len; //legth
>>>> >     uint8_t tid; //table_id
>>>> >
>>>> >     for(int i=0;i>>> >             lg.dbg("i value: %d",i);
>>>> >         ds = ntohl(fsie.flows.at(i).duration_sec);
>>>> >         pc = ntohl(fsie.flows.at(i).packet_count);
>>>> >         pri = ntohl(fsie.flows.at(i).priority);
>>>> >         bc = ntohl(fsie.flows.at(i).byte_count);
>>>> >         len = ntohl(fsie.flows.at(i).length);
>>>> >         tid = ntohl(fsie.flows.at(i).table_id);
>>>> >             lg.dbg("duration_sec: %"PRIu32,ds);
>>>> >             lg.dbg("packet_count: %"PRIu64,pc);
>>>> >             lg.dbg("priority: %"PRIu16,pri);
>>>> >             lg.dbg("byte_count: %"PRIu64,bc);
>>>> >             lg.dbg("length: %"PRIu16,len);
>>>> >             lg.dbg("table_id: %"PRIu8,tid);
>>>> >     }
>>>> >
>>>> > But now only number of flows and duration in seconds are non-zero:
>>>> >
>>>> > 00238|newcomp|DBG:Size of flows: 2
>>>> > 00239|newcomp|DBG:i value: 0
>>>> > 00240|newcomp|DBG:duration_sec: 8
>>>> > 00241|newcomp|DBG:packet_count: 0
>>>> > 00242|newcomp|DBG:priority: 0
>>>> > 00243|newcomp|DBG:byte_count: 0
>>>> > 00244|newcomp|DBG:length: 0
>>>> > 00245|newcomp|DBG:table_id: 0
>>>> > 00246|newcomp|DBG:i value: 1
>>>> > 00247|newcomp|DBG:duration_sec: 7
>>>> > 00248|newcomp|DBG:packet_count: 0
>>>> > 00249|newcomp|DBG:priority: 0
>>>> > 00250|newcomp|DBG:byte_count: 0
>>>> > 00251|newcomp|DBG:length: 0
>>>> > 00252|newcomp|DBG:table_id: 0
>>>> >
>>>> > What am I missing?
>>>> >
>>>> > Sorry to bother.
>>>> >
>>>> > Regards.
>>>> >
>>>> >
>>>> > 2011/3/20 kk yap 
>>>> >>
>>>> >> Hi Ricardo,
>>>> >>
>>>> >> I mean the result.  Did you run  ntoh on them.
>>>> >>
>>>> >> Regards
>>>> >> KK
>>>> >>
>>>> >> On 20 March 2011 10:50, Ricardo Bennesby 
>>>> >> wrote:
>>>> >> > Hi kk, thanks for quick reply.
>>>> >> >
>>>> >> > I changed request.match.wildcards = htonl(0x) to:
>>>> >> >
>>>> >> > request.match.wildcards = htons(0x); -> but it didn't work.
>>>> >> > No

[google-appengine] Charging for App and custom domain

2011-03-21 Thread kk
Hello

The scenario is that i developed application
and i would like to rent to users.

Requirement for this would be that users
can submit their own domains and get
billed for their usage.

In short i would like to offer all features
of Google App Engine but not disclose the my code of app.

Is there a way to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[QUAD-L] FCC Launches Online Survey to Learn About Emergency Calling by Individuals with Disabilities

2011-03-21 Thread KK
FCC Launches Online Survey to Learn About Emergency Calling by Individuals with 
Disabilities - Deadline April 24
The Federal Communications Commission (FCC) has launched an online national 
survey (also in Spanish)  of individuals with disabilities to determine the 
most 
effective and  efficient technologies and ways to access emergency services. 
The 
survey  asks questions to help figure out the best ways for Americans with  
disabilities to call and get help from 9-1-1 services. Comment deadline  is 
April 24, 2011. This link opens a PDF document and is also available in Word 
format.
*

https://www.disability.gov/technology/accessible_technology



http://www.fcc.gov/Daily_Releases/Daily_Business/2011/db0316/DOC-305233A1.pdf


[QUAD-L] FDA Alcohol & Iodine recalls Notices

2011-03-21 Thread KK
>From what I can understand these are both about pads & not bottled items.

http://www.fda.gov/Safety/Recalls/ucm247596.htm

Lilly Announces Important Action Regarding Recall 
of Alcohol Prep Pads Made by Triad Group Included in Forteo Starter Kits 
This Recall Does Not Affect or Involve Forteo Delivery 
Devicehttp://www.fda.gov/Safety/Recalls/ucm247658.htm


H&P Industries, Inc. Issues a Voluntary Nationwide Recall of All Lots of 
Povidine Iodine Prep Pads Due to Potential Microbial Contamination


Re: [nox-dev] Flow collection- error

2011-03-20 Thread kk yap
Ricardo,

Can you explain which component is fsie as with
* fsie.flows.at(i)

Regards
KK

On 20 March 2011 13:11, Ricardo Bennesby  wrote:
> Thanks kk.
>
> I think I did what you suggested:
>
>     uint32_t ds; //duration_sec
>     uint64_t pc; //packet_count
>     uint16_t pri; //priority
>     uint64_t bc; //byte_count
>     uint16_t len; //legth
>     uint8_t tid; //table_id
>
>     for(int i=0;i             lg.dbg("i value: %d",i);
>         ds = ntohl(fsie.flows.at(i).duration_sec);
>         pc = ntohl(fsie.flows.at(i).packet_count);
>         pri = ntohl(fsie.flows.at(i).priority);
>         bc = ntohl(fsie.flows.at(i).byte_count);
>         len = ntohl(fsie.flows.at(i).length);
>         tid = ntohl(fsie.flows.at(i).table_id);
>             lg.dbg("duration_sec: %"PRIu32,ds);
>             lg.dbg("packet_count: %"PRIu64,pc);
>             lg.dbg("priority: %"PRIu16,pri);
>             lg.dbg("byte_count: %"PRIu64,bc);
>             lg.dbg("length: %"PRIu16,len);
>             lg.dbg("table_id: %"PRIu8,tid);
>     }
>
> But now only number of flows and duration in seconds are non-zero:
>
> 00238|newcomp|DBG:Size of flows: 2
> 00239|newcomp|DBG:i value: 0
> 00240|newcomp|DBG:duration_sec: 8
> 00241|newcomp|DBG:packet_count: 0
> 00242|newcomp|DBG:priority: 0
> 00243|newcomp|DBG:byte_count: 0
> 00244|newcomp|DBG:length: 0
> 00245|newcomp|DBG:table_id: 0
> 00246|newcomp|DBG:i value: 1
> 00247|newcomp|DBG:duration_sec: 7
> 00248|newcomp|DBG:packet_count: 0
> 00249|newcomp|DBG:priority: 0
> 00250|newcomp|DBG:byte_count: 0
> 00251|newcomp|DBG:length: 0
> 00252|newcomp|DBG:table_id: 0
>
> What am I missing?
>
> Sorry to bother.
>
> Regards.
>
>
> 2011/3/20 kk yap 
>>
>> Hi Ricardo,
>>
>> I mean the result.  Did you run  ntoh on them.
>>
>> Regards
>> KK
>>
>> On 20 March 2011 10:50, Ricardo Bennesby 
>> wrote:
>> > Hi kk, thanks for quick reply.
>> >
>> > I changed request.match.wildcards = htonl(0x) to:
>> >
>> > request.match.wildcards = htons(0x); -> but it didn't work.
>> > Nothing
>> > was printed about the packets
>> >
>> > request.match.wildcards = ntohs(0x); -> the same that happened
>> > with
>> > htons
>> >
>> > request.match.wildcards = ntohl(0x); -> the same result of use
>> > htonl
>> >
>> > Sorry kk, but still I missing something?
>> >
>> > 2011/3/20 kk yap 
>> >>
>> >> Hi Ricardo,
>> >>
>> >> Did you consider network/host byte order?
>> >>
>> >> Regards
>> >> KK
>> >>
>> >> On 20 March 2011 10:01, Ricardo Bennesby 
>> >> wrote:
>> >> > Hi.
>> >> >
>> >> > I am running a C++ component that prints statistics of flows
>> >> > collected
>> >> > in
>> >> > switches with the flow_stats_in_event.
>> >> > I am also running the dpctl dump-flows command in mininet to compare
>> >> > the
>> >> > values and they are very different.
>> >> >
>> >> > The request is as follows:
>> >> >   request.table_id = 0xff;
>> >> >       request.out_port = OFPP_NONE;
>> >> >       request.match.wildcards = htonl(0x);
>> >> >
>> >> > Some values printed with dpctl dump-flows are:
>> >> >   cookie=0, duration_sec=6s, table_id=1, priority=32768, n_packets=9,
>> >> > n_bytes=882
>> >> > And it seems correct.
>> >> >
>> >> > In Flow_stats_in_event handler I wrote:
>> >> >     if(fsie.flows.size()>0){
>> >> >             lg.dbg("duration_sec:
>> >> > %"PRIu32,fsie.flows.at(0).duration_sec);
>> >> >             lg.dbg("packet_count:
>> >> > %"PRIu64,fsie.flows.at(0).packet_count);
>> >> >             lg.dbg("priority:
>> >> > %"PRIu16,fsie.flows.at(0).priority);
>> >> >             lg.dbg("byte_count:
>> >> > %"PRIu64,fsie.flows.at(0).byte_count);
>> >> >             lg.dbg("length: %d",fsie.flows.at(0).length);
>> >> >             lg.dbg("table_id:

Re: [nox-dev] Flow collection- error

2011-03-20 Thread kk yap
Hi Ricardo,

I mean the result.  Did you run  ntoh on them.

Regards
KK

On 20 March 2011 10:50, Ricardo Bennesby  wrote:
> Hi kk, thanks for quick reply.
>
> I changed request.match.wildcards = htonl(0x) to:
>
> request.match.wildcards = htons(0x); -> but it didn't work. Nothing
> was printed about the packets
>
> request.match.wildcards = ntohs(0x); -> the same that happened with
> htons
>
> request.match.wildcards = ntohl(0x); -> the same result of use htonl
>
> Sorry kk, but still I missing something?
>
> 2011/3/20 kk yap 
>>
>> Hi Ricardo,
>>
>> Did you consider network/host byte order?
>>
>> Regards
>> KK
>>
>> On 20 March 2011 10:01, Ricardo Bennesby 
>> wrote:
>> > Hi.
>> >
>> > I am running a C++ component that prints statistics of flows collected
>> > in
>> > switches with the flow_stats_in_event.
>> > I am also running the dpctl dump-flows command in mininet to compare the
>> > values and they are very different.
>> >
>> > The request is as follows:
>> >   request.table_id = 0xff;
>> >       request.out_port = OFPP_NONE;
>> >       request.match.wildcards = htonl(0x);
>> >
>> > Some values printed with dpctl dump-flows are:
>> >   cookie=0, duration_sec=6s, table_id=1, priority=32768, n_packets=9,
>> > n_bytes=882
>> > And it seems correct.
>> >
>> > In Flow_stats_in_event handler I wrote:
>> >     if(fsie.flows.size()>0){
>> >             lg.dbg("duration_sec:
>> > %"PRIu32,fsie.flows.at(0).duration_sec);
>> >             lg.dbg("packet_count:
>> > %"PRIu64,fsie.flows.at(0).packet_count);
>> >             lg.dbg("priority: %"PRIu16,fsie.flows.at(0).priority);
>> >             lg.dbg("byte_count:
>> > %"PRIu64,fsie.flows.at(0).byte_count);
>> >             lg.dbg("length: %d",fsie.flows.at(0).length);
>> >             lg.dbg("table_id: %d",fsie.flows.at(0).table_id);
>> >    }
>> >
>> > But the values printed are:
>> > 00533|openflow-event|DBG:received stats reply from 0001
>> > 00534|newcomp|DBG:Size of flows: 2
>> > 00535|newcomp|DBG:duration_sec: 922746880
>> > 00536|newcomp|DBG:packet_count: 7710162562058289152
>> > 00537|newcomp|DBG:priority: 128
>> > 00538|newcomp|DBG:byte_count: 17737427132398698496
>> > 00539|newcomp|DBG:length: 24576
>> > 00540|newcomp|DBG:table_id: 1
>> >
>> > What am I missing?
>> > If I wasn't detailed enough please let me know.
>> >
>> > Best Regards.
>> >
>> > --
>> > Ricardo Bennesby da Silva
>> > Ciência da Computação - UFAM
>> > LabCIA - Laboratório de Computação Inteligente e Autonômica
>> >
>> >
>> > ___
>> > nox-dev mailing list
>> > nox-dev@noxrepo.org
>> > http://noxrepo.org/mailman/listinfo/nox-dev
>> >
>> >
>
>
>
> --
> Ricardo Bennesby da Silva
> Ciência da Computação - UFAM
> LabCIA - Laboratório de Computação Inteligente e Autonômica
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


Re: [nox-dev] Flow collection- error

2011-03-20 Thread kk yap
Hi Ricardo,

Did you consider network/host byte order?

Regards
KK

On 20 March 2011 10:01, Ricardo Bennesby  wrote:
> Hi.
>
> I am running a C++ component that prints statistics of flows collected in
> switches with the flow_stats_in_event.
> I am also running the dpctl dump-flows command in mininet to compare the
> values and they are very different.
>
> The request is as follows:
>   request.table_id = 0xff;
>       request.out_port = OFPP_NONE;
>       request.match.wildcards = htonl(0x);
>
> Some values printed with dpctl dump-flows are:
>   cookie=0, duration_sec=6s, table_id=1, priority=32768, n_packets=9,
> n_bytes=882
> And it seems correct.
>
> In Flow_stats_in_event handler I wrote:
>     if(fsie.flows.size()>0){
>             lg.dbg("duration_sec:
> %"PRIu32,fsie.flows.at(0).duration_sec);
>             lg.dbg("packet_count:
> %"PRIu64,fsie.flows.at(0).packet_count);
>             lg.dbg("priority: %"PRIu16,fsie.flows.at(0).priority);
>             lg.dbg("byte_count: %"PRIu64,fsie.flows.at(0).byte_count);
>             lg.dbg("length: %d",fsie.flows.at(0).length);
>             lg.dbg("table_id: %d",fsie.flows.at(0).table_id);
>    }
>
> But the values printed are:
> 00533|openflow-event|DBG:received stats reply from 0001
> 00534|newcomp|DBG:Size of flows: 2
> 00535|newcomp|DBG:duration_sec: 922746880
> 00536|newcomp|DBG:packet_count: 7710162562058289152
> 00537|newcomp|DBG:priority: 128
> 00538|newcomp|DBG:byte_count: 17737427132398698496
> 00539|newcomp|DBG:length: 24576
> 00540|newcomp|DBG:table_id: 1
>
> What am I missing?
> If I wasn't detailed enough please let me know.
>
> Best Regards.
>
> --
> Ricardo Bennesby da Silva
> Ciência da Computação - UFAM
> LabCIA - Laboratório de Computação Inteligente e Autonômica
>
>
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
>
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[QUAD-L] Stylus?

2011-03-19 Thread KK
I am attempting to use a stylus on my DynaVox speech machine.  Does anyone use 
a 
stylus on there computer?  The one that was given is large enough to hold on to 
but the point is the size of a marker.  I really want one with a point on it to 
be sure I hit what I am aiming for.  LOL!

Anybody?

KK


[algogeeks] Re: Spoj Problem

2011-03-17 Thread KK
i m getting TLE for this soln and m not getting the concept used in
the above soln can anyone help??
#include
using namespace std;
int main()
{
int t,n,k,no,flag;
scanf("%d",&t);
while(t--)
{
  scanf("%d",&n);
  k = n;
  int a[100] = {0};
  flag = 0;
  while(k--)
  {
scanf("%d",&no);
a[no + 1000]++;
if(a[no + 1000] > n/2)
{
 printf("YES %d\n",no);
 flag = 1;
 break;
}
  }
  if(flag == 0)
  printf("NO\n");
}
return 0;
}


On Mar 16, 12:13 am, UTKARSH SRIVASTAV 
wrote:
> tahnks balaji i have got ac in this problem my prog is same only in
> the end i have taken a loop and
> @ akshata the link for the prob ishttps://www.spoj.pl/problems/MAJOR/
> MY CODE IS
> #include
> main()
> {
>     long long int n,t,r[100],count,major,i;
>     scanf("%lld",&t);
>     while(t--)
> {
>     scanf("%lld",&n);
>     scanf("%lld",&r[0]);
>     major=r[0];
>     count=1;
>     for(i=1;i     {
>         scanf("%lld",&r[i]);
>         if(r[i]!=major)
>         {
>             count--;
>             if(count<0)
>             {        count=1;
>                     major=r[i];
>             }
>         }
>         else
>         {
>             count++;
>         }
>     }
>     /*if(count<=0)
>     printf("NO\n");
>     else
>     printf("YES%lld\n",major);*/
>    count=0;
>     for(i=0;i     {
>                     if(r[i]==major)
>                     count++;
>     }
>     if(count>n/2)
>     printf("YES %lld\n",major);
>     else
>     printf("NO\n");}
>
> scanf("%lld",&r[0]);
> return 0;
>
> }
>
> On Tue, Mar 15, 2011 at 10:34 AM, Balaji Ramani
> wrote:
>
>
>
>
>
>
>
>
>
> >http://www.spoj.pl/problems/MAJOR/
>
> > Thanks,
> > Balaji.
>
> > On Tue, Mar 15, 2011 at 11:00 PM, Akshata Sharma <
> > akshatasharm...@gmail.com> wrote:
>
> >> hey link to the problem??
>
> >> On Tue, Mar 15, 2011 at 10:50 PM, Balaji Ramani <
> >> rbalaji.psgt...@gmail.com> wrote:
>
> >>> It fails for input 1,2,3. I think there needs to be one more iteration to
> >>> check if the candidate is actually a majority element or not.
>
> >>> Thanks,
> >>> Balaji.
>
> >>> On Tue, Mar 15, 2011 at 9:50 PM, UTKARSH SRIVASTAV <
> >>> usrivastav...@gmail.com> wrote:
>
>  CAN ANYONE PLEASE TELL ME WHY MY CODE IS GIVING WRONG ANSWER OR SOMEONE
>  WHO HAS GOT AC IN THIS PROBLEM MAY POST HIS SOLUTION
>
>  #include
>  main()
>  {
>      long long int n,t,r,count,major,i;
>      scanf("%lld",&t);
>      while(t--)
>  {
>      scanf("%lld",&n);
>      scanf("%lld",&r);
>      major=r;
>      count=1;
>      for(i=1;i      {
>          scanf("%lld",&r);
>          if(r!=major)
>          {
>              count--;
>              if(count<0)
>              {        count=1;
>                      major=r;
>              }
>          }
>          else
>          {
>              count++;
>          }
>      }
>      if(count<=0)
>      printf("NO\n");
>      else
>      printf("YES%lld\n",major);
>  }
>  return 0;
>  }
>
>  --
>  *UTKARSH SRIVATAV*
>  *CSE-3
>  B-Tech 2nd Year
>  @MNNIT ALLAHABAD*
>
>   --
>  You received this message because you are subscribed to the Google
>  Groups "Algorithm Geeks" group.
>  To post to this group, send email to algogeeks@googlegroups.com.
>  To unsubscribe from this group, send email to
>  algogeeks+unsubscr...@googlegroups.com.
>  For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
> >>>  --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Algorithm Geeks" group.
> >>> To post to this group, send email to algogeeks@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> algogeeks+unsubscr...@googlegroups.com.
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/algogeeks?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Algorithm Geeks" group.
> >> To post to this group, send email to algogeeks@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> algogeeks+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/algogeeks?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Algorithm Geeks" group.
> > To post to this group, send email to algogeeks@googlegroups.com.
> > To unsubscribe from this group, send email to
> > algogeeks+unsubscr...@googlegroups.com.
> > For more opt

<    5   6   7   8   9   10   11   12   13   14   >