I'm a web designer with a good amount of knowledge in html and css. I have some js knowledge, mainly just basic site interaction. I teach my son's T-ball team and the league has asked me to make a tool on their website to randomly assign positions and batting order for the team. This needs to be random for every player but not repeating a position in the lineup or fielding position until everyone has been in all of them. I need it to make sure everyone has an equal amount of time in every spot.
The coach would go to the league website go to the lineup/position tool put in there team names and then a lineup and position assignments would be generated and could be saved as a pdf.
I need this to be saved so that the next week the players wouldn't get the same position or spot in the lineup.
I know this is a lot, whatever help I get would really be appreciated.
Thank You!
Related
I have a spreadsheet that I will share with the example results.
https://docs.google.com/spreadsheets/d/19PHynK8e-hsDichaoeYmXFpPiWrj67j0iJ1-FwvVUNY/edit?usp=sharing
I need to enter in the number of teams and the number of games each team must play.
Then I need a script or formula to give me a schedule.
In cell A1 is the number of teams
In Cell A2 is the number of games.
In range A4:B I need it to put matchups of each game together so there are even number of home games and away games.
The Test sheet has the desired results.
Try not to have teams play each other more than once if possible. Maybe Alternate then choose if you need to a second time playing one another.
On the test sheet I have formulas to count for even number of games and team names D3:G8
Any help would be greatly appreciated!
Thank you
Michael D
I have reached out in the Google Sheets forum but there has been no reply and they actually locked the post. :sad:
There are some samples of me trying and others who have interjected.
I'll do my best to explain my question clearly so apologies if it isn't crystal clear.
What I want to know (if it's possible) is how you would create a generic video, and somehow pass variables into some form of method, that would turn the video into a personalized video for the user based on their details. A good example of this is the Facebook videos that pop up every now and again saying "Hey, you've been friends with this person for x number of years! here's a video!" then the video is maybe 30 seconds of details about the friendship.
I can't imagine Facebook manually create those videos for billions of users, and that is my question, How is this done?
I'm looking at building an android app and potentially IOS as well.
Any help or pointers in the right direction would be greatly appreciated!
Thanks in advance
Facebook knows who your friends are and has access to both timelines and may look for tags or optical recognition to collect together a bunch of photos.
You can then put together process like a slideshow with variable text holders, the kind of thing you can find as an after effects template that will then output a video. There are a number of services who will do this for you too.
https://spark.adobe.com/make/slideshow-maker/
Animoto is another. If you look more in this direction I am sure you will be able to learn more about how it's done or find a third party who will do it for you.
You may find this the answer you are looking for: Javascript - Adding Full Screen Video to Image Slideshow
I'm not using Airtime Sourcefabric, but one of my clients do.
I'm working on the radio station's website, and found out that my client has some short "spots" between EACH song.
You can check the WIP site here: http://wickedradionet.com/new/
Below the slider, there is a dark gray line showing the current show's title, and below, the previous, the current and the next track. My problem is that the previous and next titles are not really songs, but short radio spots, for example: "You currently listening to XY show on Wicked Radio.".
I just want to know if there is any way to let Airtime know that these are not songs, so not put these titles to the list here: http://music.wickedradionet.com/api/live-info
Don't know if it's even possible, but I appreciate any suggestions from someone who has a little knowledge about IceCast. Thanks in advice!
I'm not sure if javascript is the best solution but here's what i want to achieve.
The web page is divided in 3 columns...
The left column should have links in picture format like Arts, History, Science etc
Clicking on any of these link should generate a series of links in the rightmost column say clicking on history should generate links for Civilization, World war etc Science should generate links like Physics chemistry represented by pictures etc and so on
Finally Clicking on these links say World war should display the content in the central column giving a brief history on World war....
Also each time a user clicks on an image link say Science it should get highlighted so the user can navigate easily from one topic to another.
I'm a novice to programming, not sure if javascript is the best approach. Also I'm very confused as to how to go about this problem where to begin and how. Any help in terms of code chunks or references or algorithms or advice on how to approach this problem would be most appreciated. If solving this problem means learning a new programming language i'm open to try.....
In case if i'm not clear in explaining the problem let me know
JavaScript would be appropriate for this. The appropriate approach will depend on how much content you have.
If it's reasonably short, you can achieve all of this by simply changing the display property on your elements (use JavaScript to set the CSS of certain page elements to show (display:block) or to hide (display:none).
If you have pages of text, you may want to look into Ajax. It is a bit more advanced that simply showing and hiding elements that are already there.
I'm trying to create a random maze generator in javascript.
There may already be working examples out there but I'm trying to solve this one myself (well, as much as possible)
The problem I'm having is my script only runs for a few blocks then stops.
I think the issue is with my understanding of the explanation I'm following (from this Wikipedia page http://en.wikipedia.org/wiki/Maze_generation_algorithm)
This algorithm is a randomized version of Prim's algorithm.
Start with a grid full of walls.
Pick a cell, mark it as part of the maze.Add the walls of the cell to the wall list.
While there are walls in the list:
Pick a random wall from the list. If the cell on the opposite side isn't in the maze yet:
Make the wall a passage and mark the cell on the opposite side as part of the maze.
Add the neighboring walls of the cell to the wall list.
If the cell on the opposite side already was in the maze, remove the wall from the list.
As I've hi-lighted my problem is with the opposite side part of this. Does this mean any adjacent cell that is in our wall list? Or does it mean something else?
I've tried it with adjacent cells and it ends up just blocking itself in.
Any idea's would be appreciated.
If I can get it working I'll post the code when it's done. Just as I said I want to get as far by myself before getting help with a full solution.
A wall represents the connection between two different cells. When you add a wall to your wall list, it's because you are visiting a cell that will be part of your maze, so when it refers to the opposite one it means the cell 'behind' that wall, where a passage would lead to if that wall was not there.