Questions tagged [cyclic]

119 questions
0
votes
1 answer

How to get a Spinner with non cyclic behaviour? (stop on max value)

I have a Spinner, which behaviour is cyclic by default: Spinner spinner = new Spinner(composite, SWT.WRAP | SWT.BORDER); spinner.setMaximum(5); The objective is that when the user press the next button on 5, the 5 must not change to 0, and when the…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
1 answer

Periodic task (message to send through Bluetooth)

In my mobile robot project, which have 2 servo motors to rotate the camera in two planes I want to control them in my android app by rotation the smartphone (through readings yaw/pitch/roll from the smartphone accelometer). For that I have to send…
0
votes
1 answer

Serializing a graph with bidirectional links, (dll) imported types and versioning ..?

Okay, I've asked some questions before on SO about serializing, but I'm still stuck - so I figure I'll just spit out my entire case instead of sub-problems in the hope someone can point my nose in the right direction :) My application is similar to…
Pygmy
  • 1,268
  • 17
  • 33
0
votes
1 answer

Using polyarea to calculate the area of a subcycle

I was wondering how to use polyarea in MATLAB at different intervals. For example, I have disp=[1,2,3,4,5.....] and load = [3,4,5,6,7,8....]. I would like to calculate polyarea(disp,load) at every 40 rows (or intervals). disp and load are cyclic…
fifa09
  • 25
  • 3
0
votes
1 answer

What makes this class requirement a cyclic class definition?

The typechecker considers this class requirement by the interface IBase to be cyclic:
concat
  • 3,107
  • 16
  • 30
0
votes
1 answer

Understanding unusual behaviour with Java's cyclic inheritance

Consider the following two classes A and B (java) with various package considerations: Both classes in the default package public class A extends B { public static class C {} } ------------- public class B extends A.C { public B()…
Tyler Durden
  • 575
  • 7
  • 23
0
votes
1 answer

Cyclic group generator of [1, 2, 3, 4, 5, 6] under modulo 7 multiplication

Find all the generators in the cyclic group [1, 2, 3, 4, 5, 6] under modulo 7 multiplication. I got <1> and <5> as generators. The answer is <3> and <5>. Can somebody please tell why is 3 a generator?
Sumi
  • 11
  • 1
  • 1
  • 2
0
votes
1 answer

Cyclic number field in html

I want to set my number field in html back to minimum value once the maximum limit is exceeded by incrementing it or the other way. The field I am currently trying is number with min and max. This does not let the user to increment or decrement…
0
votes
2 answers

How do i reverse engineer a known Cyclic Redundancy Check value?

So I have problem finding the CRC value for a series of commands, I already have the CRC values for some of the commands but I need to figure out how they were calculated. After carefully going over the data stream and attempting to calculate the…
Jon
  • 1
  • 1
0
votes
1 answer

Java put one array into another

Hello guys it might be a dumb question but I am stuck. I am working on cyclic numbers code. After completing I put all the integers in the array however after that there are some empty cells at the beginning of array that have to be cleaned or put…
0
votes
2 answers

Decimal right cyclic shift in cpp

I need to do so called "decimal right cyclic shift". For example, if input is 8652 output will be 2865. Is there a way to do this operation in CPP without converting to strings and string operations? Just using arithmetic operations, loops and…
Alex Dvoretskiy
  • 317
  • 2
  • 9
0
votes
1 answer

Minimum cyclic (forward or backward) shifts to be performed to the string to make it a palindrome

Below is the problem statement and Solution. Two test cases failed for me. Help me figure it out. A string is said to be palindrome, if it reads the same from both the ends. Given a string S, you are allowed to perform cyclic shifts. More formally,…
J.Selva
  • 171
  • 1
  • 14
0
votes
1 answer

create a cyclic auto increment column in mysql

I have a table that's used to store some temporary bookkeeping stuff. It needs a unique id for each row, so I used an autoincremented column. However, after a while the column reaches it's max value and then I cannot enter new rows into the table.…
olamundo
  • 23,991
  • 34
  • 108
  • 149
0
votes
0 answers

Strange Java compilation issue involving cyclic inheritance

So this will be a long story so I thank you in advance for reading. Let me start by saying that I've been working with java for more than 15 years and I've been working on this specific project for over 5 years and I'm stumped. I compile the…
rjcarr
  • 2,072
  • 2
  • 22
  • 35
0
votes
5 answers

Generating Cyclic Words in Python

I have an array like myarray = 'ABCDE' and I want output as required_output = [AB,BC,CD,DE,EA] ## A cyclic form of array 'ABCDE' I used following code for i in range(len(myarray) + 1): a = i % len(myarray) ; b = i % len(myarray) + 2 …
Ashutosh
  • 425
  • 1
  • 5
  • 18