circular

Circular Shifts on Strings in Bash

I have a homework assignment where I need to take input from a file and continuously remove the first word in a line and append it to the end of the line until all combinations have been done. I really don't know where to begin and would be thankful for any sort of direction. The part that has me confused is that this is suppose to be pe...

Avoiding circular project/assembly references in Visual Studio with statically typed dependency configuration

First, I want to say that I am not interested in debating about any non-helpful "answers" to my question, with suggestions to putting everything in one assembly, i.e. there is no need for anyone to provide webpages such as the page titled with "Separate Assemblies != Loose Coupling". Now, my question is if it somehow (maybe with some Vi...

Database design: circular references

I have three database tables: users emails invitations Emails are linked to users by a user_id field. Invitations are also linked to users by a user_id field Emails can be created without an invitation, but every invitation must have an email. I would like to link the emails and invitations tables so it is possible to find the ema...

An exception for a circular reference database - is this one?

I have 4 tables, linked in a circular reference - I remember from college that I was told this is bad however there are exceptions...I am hoping that this is one of them :) My database contains 4 tables; teachers, classes, subjects and teachers_classes. The following sums up my relationships: A teacher can have many classes A class ...

Circular NSSlider with stop (non-continuous)

I am not sure how to phrase this better as a title but I need to make an NSSlider that functions as a normal volume knob. At the moment it will spin around as many times as I hold the mouse down and move it around the control. I need it to stop at the "0" position and the "100" position, I cannot have it jumping from 0 to 100 when I dr...

StructureMap problems with bidirectional/circular dependencies

I am currently integrating StructureMap within our business layer but have problems because of bidirectional dependencies. The layer contains multiple manager where each manager can call methods on each other, there are no restrictions or rules for communication. This also includes possible circular dependencies like in the example belo...

Horizontal Circular Scroller in XCODE

How can I use or make a horizontal circular scroller in an iphone application? which works like a slide view ...

Seaching for an element in a circular sorted array

We want to search for a given element in a circular sorted array in complexity not greater than O(Log n). ex: search for 13 in {5,9,13,1,3}. My idea was to convert the circular array into a regular sorted array then do a binary search on the resulting array, but my problem was the algorithm i came up was stupid that it takes O(n) in the ...

C++ Template Classes Circular Dependency Problem

We have two classes: template<typename T, typename Size, typename Stack, typename Sparse> class Matrix and template<typename T, typename Size> class Iterator Matrix should be able to return begin and end iterators and Iterator will keep a referrence to the Matrix to access the elements via it's interface. We don't want Iterator t...

iPhone Circular Progress Indicator

I'm trying to create a circular progress indicator like Shazam. It will represent progress during recording. There will be a finite amount of time and I want it to react to the sound level like Shazam's does. Any clues where to begin? Thanks ...

iTunes app preview player

Hey there, Any ideas where to begin if I'm trying to create a preview player like the one in the iTunes app for the iPhone? Essentially I'm looking to build a circular progression player that uses the AVAudioPlayer. I have no idea where to begin. Thanks, Howie ...

Updating GUI from a different class?

Perhaps this is a very basic question, please pardon me if it is --- I'm a beginner in C#. I have a WPF GUI for sending commands to a receiver. The commands are ASCII texts. Now, I separated the communication part into a separate project because I have console applications that use the communication methods in addition to the GUI. The c...

Circular reference among two .net assemblies

I have two assemblies A & B. A has existing reference to B and it must be kept that way. Right now I made some changes to B that need to refer to A. So circular reference occurs. Bit of details: A has a few property grids that the dialog in B needs to be hosted. So to avoid this circular reference issue I tried to define interfaces to...

Why I cant set the position in this code (AS3)?

Hi guys, First of all, I am new to AS3. What I am trying to do is to make the ball, rotate in circular form. This is my current code: this is the Circular.as public class Circular extends Sprite { private var ball:Ball; private var centerX:Number = stage.stageWidth / 2; private var centerY:Number = stage.stageHeight / 2; ...

Can I use java.util.LinkedList to construct a circular/cyclic linked list?

I would like to create a circular/cyclic linked list where the tail of the list would point back to the head of the list. So can I use java.util.LinkedList and modify the tail node after creation of the list to make it circular/cyclic? If so, can you show me some code on how that would happen? If I can't use java.util.LinkedList, how sh...

C++ Game - Signalling a parent class, circular dependency issue

I'm having a little circular-dependency problem. It works fine, but it makes for ugly-seeming code. It's in the context of a Snake game. I have a class, Snake, which contains a vector of SnakeSegments, and manages their interaction (for instance moving and growing as a unit, rather than as separate entities). When a SnakeSegment collid...

C++: Circularity and shared_ptr

Hi all, I have a question regarding shared_ptrs and ownership in C++: I have a bunch of objects created on the heap. Each one has a container which holds pointers to some of these objects, and sometimes, even a pointer to the same object the container belongs to. Since I read about the risks of using shared_ptr under such circumstances...

Logic to move an item in the circular boundary only

I'm newbie to Game programming. I'm trying to develp a simple shooting game. The game ground which I'm trying is a circular one. The game has one shooter and 5 driods. The shooter and the driods have to move with-in the circular area only. Following is the code snippet i tried. I tried implementing the game using the State design patter...

Is JCarousel Circular Dynamic Content still supported?

It seems as though legacy versions supported this feature but the latest version appears to only have examples for circular static content. Has anybody figured out a way to set up circular action with dynamic content (e.g. loaded from a PHP file) without too many hacks? I've searched a number of different forums and haven't even found ...