• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 00:59
CEST 06:59
KST 13:59
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence10Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 8-14): herO & MaxPax split cups Team Liquid Map Contest #21 - Presented by Monster Energy SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris SC4ALL $6,000 Open LAN in Philadelphia Sparkling Tuna Cup - Weekly Open Tournament WardiTV TL Team Map Contest #5 Tournaments RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
[ASL20] Ro16 Preview Pt2: Turbulence BW General Discussion ASL20 General Discussion Diplomacy, Cosmonarchy Edition BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues SC4ALL $1,500 Open Bracket LAN
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1172 users

The Big Programming Thread - Page 648

Forum Index > General Forum
Post a Reply
Prev 1 646 647 648 649 650 1031 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
BisuDagger
Profile Blog Joined October 2009
Bisutopia19262 Posts
July 10 2015 16:25 GMT
#12941
Anyone have experience with Unity and the Oculus Rift?

My Specs:
I'm developing in Unity5+ on Windows 8 OS.
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
FFGenerations
Profile Blog Joined April 2011
7088 Posts
July 14 2015 09:48 GMT
#12942
so like 2 months after i tried to host my project on amazon for like 2 hours just trying to see if it would work

they bill me $76 with an additional $10 usage last month and $40 forecast usage for this month

i have no fucking clue what is going on
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
July 14 2015 12:50 GMT
#12943
On July 14 2015 18:48 FFGenerations wrote:
so like 2 months after i tried to host my project on amazon for like 2 hours just trying to see if it would work

they bill me $76 with an additional $10 usage last month and $40 forecast usage for this month

i have no fucking clue what is going on


How have you hosted it? There are specific setups to be eligible for a 'free tier'. I've had to change my DB instance for example. So far I've been successfully hosting a website for 6 months without paying a dime.
Time is precious. Waste it wisely.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
July 14 2015 12:54 GMT
#12944
i have no idea . i just clicked buttons until i could upload it. then when i screwed it up i switched onto a different country server (there are like 8 countries/regions) coz i didn't know which one i was using and uploaded it again there. then i uploaded like a 50kb file in like 3 different places on their cloud aswell. i sent them this email + Show Spoiler +
Hi, I have just seen the email that you sent me saying that you charged me $76.

I have no idea why you have charged me this.

I used your amazon cloud storage thing for 1 afternoon several months ago to see what it was and if I could use it for a project.

There was absolutely ZERO indication anywhere that I would be charged any sort of fee for doing this.

Two months later I see a bill for $76 and don't even know how to cancel this because I have no clue why it is there in the first place. I am NOT a technical person, all I done was upload a project and a file and see if it would run one day.

I have no idea what this dashboard screen means when it says I am running "1 instance, 1 volume, 1 load balancer and 3 security groups". I have never seen this dashboard screen before in my life.

Please delete whatever this is and refund my money.

Looking at the Billing & Cost Management Dashboard it says I am "spent" $10 last month and am forecast another $46 this month. This is completely insane. Please remove the account and refund. I cannot afford $76 to be taken without my consent.
so hopefully they will do it themselves and get back to me.... i haven't touched anything so far, will wait to see if they reply. i can't fucking afford random £100 coming out of my account for no reason -_-
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Acrofales
Profile Joined August 2010
Spain18049 Posts
July 14 2015 13:15 GMT
#12945
On July 14 2015 21:54 FFGenerations wrote:
i have no idea . i just clicked buttons until i could upload it. then when i screwed it up i switched onto a different country server (there are like 8 countries/regions) coz i didn't know which one i was using and uploaded it again there. then i uploaded like a 50kb file in like 3 different places on their cloud aswell. i sent them this email + Show Spoiler +
Hi, I have just seen the email that you sent me saying that you charged me $76.

I have no idea why you have charged me this.

I used your amazon cloud storage thing for 1 afternoon several months ago to see what it was and if I could use it for a project.

There was absolutely ZERO indication anywhere that I would be charged any sort of fee for doing this.

Two months later I see a bill for $76 and don't even know how to cancel this because I have no clue why it is there in the first place. I am NOT a technical person, all I done was upload a project and a file and see if it would run one day.

I have no idea what this dashboard screen means when it says I am running "1 instance, 1 volume, 1 load balancer and 3 security groups". I have never seen this dashboard screen before in my life.

Please delete whatever this is and refund my money.

Looking at the Billing & Cost Management Dashboard it says I am "spent" $10 last month and am forecast another $46 this month. This is completely insane. Please remove the account and refund. I cannot afford $76 to be taken without my consent.
so hopefully they will do it themselves and get back to me.... i haven't touched anything so far, will wait to see if they reply. i can't fucking afford random £100 coming out of my account for no reason -_-


So you didn't read the user guide for a service you know can cost money and then clicked random buttons and did random stuff for a while, and are now surprised that some of the buttons you clicked on cost money. Most of the things you do on Amazon come with quite clear warnings that they cost money. You have a limited bandwidth and couple of environments that are free. Anything else and their ticker starts ticking. They also don't just take your site down if you don't tell them to, so if you chose some unusual configuration that charges X per month, you will pay X per month even if you get 0 traffic on it. And yes, everything is clearly marked with the charge model that the service uses (per X calls, per X time period, per X megabytes transferred, or stored, are the usual models), and in my experience not only is it clearly marked, but you get a popup dialog that asks you to confirm that you are requesting the service. The only one that can cause unforeseen costs is the bandwidth usage, but that is clearly stated in the initial agreement you okay to in order to use the service at all. I remember you were playing around with an anime database. I find it very hard to believe that your total usage was two times 50kb, which is smaller than even a single decent-sized image usually is nowadays.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-07-14 14:27:21
July 14 2015 14:22 GMT
#12946
ok so i just tried it,

1) click on Elastic Beanstalk hub link and it takes you to this page

+ Show Spoiler +

[image loading]


2) select a server type and click launch

+ Show Spoiler +

[image loading]


3) wait a while then upload your application which is like 2mb in size and doesn't really do anything and has 1 user which used it for like 2 hours max 2 months ago

+ Show Spoiler +

[image loading]


4) go to the Bucket hub link and either see your uploaded ap there or upload it there (shows three instances of 2.7 mb currently, within one of those folders)

+ Show Spoiler +

[image loading]


5) get charged $76 two months later with a $10 bonus charge and $40 forecast charge

6) wonder where it says that you need to pay for anything
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Acrofales
Profile Joined August 2010
Spain18049 Posts
Last Edited: 2015-07-14 14:54:50
July 14 2015 14:49 GMT
#12947
Insofar as I can see, all of that falls within the free pricing model (first 12 months, but even after that, you would, at most, be charged a pittance for storage), therefore that is not the only thing that you did. When I got charged by Amazon, they sent me a detailed overview of what I was being charged for. If it wasn't attached to the email, you can get to that somewhere in your user profile.

Edit: yup, extremely easy. Log in and just go to your billing and costs overview. Then your current bill. If that is insufficiently detailed, you can open Costs Explorer to figure out exactly what you spent money on.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-07-14 14:57:14
July 14 2015 14:56 GMT
#12948
the breakdown shows

+ Show Spoiler +

(Ireland)
$0.020 per On Demand Linux t1.micro Instance Hour 738 Hrs $14.76

(North Virginia)
$0.025 per LoadBalancer-hour (or partial hour) 738 Hrs $18.45

(Oregon)
$0.020 per On Demand Linux t1.micro Instance Hour 744 Hrs $14.88
$0.025 per LoadBalancer-hour (or partial hour) 744 Hrs $18.60


so basically i clicked on random stuff to get to that same "Launch" page a few times and had zero indications or warnings that anything i was doing was resulting in charges
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
Last Edited: 2015-07-14 15:18:23
July 14 2015 15:06 GMT
#12949
Click on your username (top-right), select Billing & Cost Management. There you can get details on your costs.

Just did that and saw my costs went up to $0.03 because of transfer.

Edit:

Also, how the hell did you get t1.micro? I thought that free tier EC2 instances start at t2. And why the hell would you need load balancers for your small app?
Time is precious. Waste it wisely.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-07-14 16:26:17
July 14 2015 16:25 GMT
#12950
and what the hell is a load balancer anyway
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
Last Edited: 2015-07-14 16:40:39
July 14 2015 16:39 GMT
#12951
On July 15 2015 01:25 FFGenerations wrote:
and what the hell is a load balancer anyway


It's this magic stuff on the server that distributes your traffic among different servers so that they don't get clogged up.

https://f5.com/glossary/load-balancer

[image loading]
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18049 Posts
July 14 2015 16:44 GMT
#12952
On July 15 2015 01:25 FFGenerations wrote:
and what the hell is a load balancer anyway

It seems like you either clicked on too many buttons and contracted a number of services you didn't want or need (by mistake). Probably what you did when switching servers was, instead of actually switching servers, got some magic load balancing service to do magic for you, balancing your (nonexistent) load between Ireland and the US. This is probably not included in the free service (I don't see any reason why it should be: your application is quite serious by the time it needs this kind of load balancing).

Contact Amazon support, explain (politely, and in a less inflammatory way than most of your posts here) what you were trying to do, how something must have gone wrong, and ask them to fix it. Generally their customer support is pretty good, but I haven't dealt with billing, so it might be different.
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
Last Edited: 2015-07-14 16:54:13
July 14 2015 16:49 GMT
#12953
On July 15 2015 01:44 Acrofales wrote:
Show nested quote +
On July 15 2015 01:25 FFGenerations wrote:
and what the hell is a load balancer anyway

It seems like you either clicked on too many buttons and contracted a number of services you didn't want or need (by mistake). Probably what you did when switching servers was, instead of actually switching servers, got some magic load balancing service to do magic for you, balancing your (nonexistent) load between Ireland and the US. This is probably not included in the free service (I don't see any reason why it should be: your application is quite serious by the time it needs this kind of load balancing).

Contact Amazon support, explain (politely, and in a less inflammatory way than most of your posts here) what you were trying to do, how something must have gone wrong, and ask them to fix it. Generally their customer support is pretty good, but I haven't dealt with billing, so it might be different.


I'm not sure you're eligible for a refund if you say something along the lines of "I created an account, clicked some random stuff without checking what it does and now I get charged for leaving it like that for 2 months".

Lesson to be learned here: Don't set up servers yourself if you don't know what you're doing or are willing to pay the price of errors.

Servers are complicated things, not something every person can set up properly (even with wizards).

For example, I'm sure that when I was setting up stuff over at Amazon AWS it has clearly (maybe not so clearly, but it did none the less) shown me if my desired EC2 and RDS instances were eligible for a free tier. The first time I set them up they weren't so I made sure to change them and set them up accordingly before launching said instances.
Time is precious. Waste it wisely.
bardtown
Profile Joined June 2011
England2313 Posts
Last Edited: 2015-07-14 17:14:12
July 14 2015 17:02 GMT
#12954
I'm writing a multithreaded python chat script. In one thread I am receiving information from a server (other peoples messages) and in the other I am accepting input from the client (so they can write their own messages). What I need to be able to do is this: when the server sends a message, the client needs to store whatever input the client has typed so far, clear the line, print the message from the server, then print the client's input back on the screen and allow them to continue typing their message. The problem is that the input function is blocking, so I can't check for some value (e.g. a bool which is only true when there are messages queued from the server).

Is there an obvious solution for this? Can I access the information in the input function from the other thread? Or perhaps copy the current console line and then kill the input thread?
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
Last Edited: 2015-07-14 21:47:19
July 14 2015 21:39 GMT
#12955
On July 15 2015 02:02 bardtown wrote:
I'm writing a multithreaded python chat script. In one thread I am receiving information from a server (other peoples messages) and in the other I am accepting input from the client (so they can write their own messages). What I need to be able to do is this: when the server sends a message, the client needs to store whatever input the client has typed so far, clear the line, print the message from the server, then print the client's input back on the screen and allow them to continue typing their message. The problem is that the input function is blocking, so I can't check for some value (e.g. a bool which is only true when there are messages queued from the server).

Is there an obvious solution for this? Can I access the information in the input function from the other thread? Or perhaps copy the current console line and then kill the input thread?


I guess that input polling is what you're looking for here.

This might also be useful (especially the last sentence).
Time is precious. Waste it wisely.
warding
Profile Joined August 2005
Portugal2394 Posts
Last Edited: 2015-07-14 22:53:28
July 14 2015 22:49 GMT
#12956
I'm a major noob who has been working more with hardware. I do have experience with HTML, CSS and limited Javascript. I'm building a smart lighting device with Particle Photon as the MCU and now I need to build an app to control it.

I'm looking for a front-end/(UI?) framework for mobile apps that will let me make nice looking apps with responsive UI. I've been looking at PhoneGap and came across Polymer (with its paper elements) which looked like just what I needed, except that I can't get any app to work on Phonegap Build, not to mention that being fairly recent there's not a lot of documentation and help for a noob like me.

Which framework would you recommend for someone who only really wants to make an app with a good looking header, some buttons, some sliders and not much else? There seem to be so many nowadays that I don't really know where to start.
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
Last Edited: 2015-07-14 23:14:28
July 14 2015 23:05 GMT
#12957
On July 15 2015 07:49 warding wrote:
I'm a major noob who has been working more with hardware. I do have experience with HTML, CSS and limited Javascript. I'm building a smart lighting device with Particle Photon as the MCU and now I need to build an app to control it.

I'm looking for a front-end/(UI?) framework for mobile apps that will let me make nice looking apps with responsive UI. I've been looking at PhoneGap and came across Polymer (with its paper elements) which looked like just what I needed, except that I can't get any app to work on Phonegap Build, not to mention that being fairly recent there's not a lot of documentation and help for a noob like me.

Which framework would you recommend for someone who only really wants to make an app with a good looking header, some buttons, some sliders and not much else? There seem to be so many nowadays that I don't really know where to start.


You don't really need a big framework for that. If all you want is a simple app that's looking pretty you need not look any further than Bootstrap and jQuery. Both of those tools provide you with a nice set of css and js tools to really tweak out any front-end part of a mobile/web app. The best thing is that you can also customize them to better suit your needs (like including only the parts of Bootstrap that you're actually using to make it more lightweight - not that it's heavy in any way, it just comes with many tools that you might not necessarily need).

Just a brief overview of them:

Bootstrap

Has all the css and js necessary to make a modern, good looking, responsive app. You get css classes to easily build your scaffolding, predefined buttons, typography and other nice things like that. You can also enable nice js things in it really easily. Stuff like modal windows, popover/under tooltips etc. take minutes to add to your app.

jQuery

It's basically a big library with wrappers for regular JS so that you don't have to worry about browser compatibility. It also adds a lot of nice functionality and simplifies a lot of things. Totally compatible with Bootstrap (I think that some parts of Bootstrap might actually require jQuery).

Both of them are also pretty much industry standard so there's ton of help, guides and documentation readily available.

Just head over to the examples section and see if you like it.
Time is precious. Waste it wisely.
teamamerica
Profile Blog Joined July 2010
United States958 Posts
Last Edited: 2015-07-15 07:41:36
July 15 2015 07:33 GMT
#12958
On July 15 2015 06:39 Manit0u wrote:
Show nested quote +
On July 15 2015 02:02 bardtown wrote:
I'm writing a multithreaded python chat script. In one thread I am receiving information from a server (other peoples messages) and in the other I am accepting input from the client (so they can write their own messages). What I need to be able to do is this: when the server sends a message, the client needs to store whatever input the client has typed so far, clear the line, print the message from the server, then print the client's input back on the screen and allow them to continue typing their message. The problem is that the input function is blocking, so I can't check for some value (e.g. a bool which is only true when there are messages queued from the server).

Is there an obvious solution for this? Can I access the information in the input function from the other thread? Or perhaps copy the current console line and then kill the input thread?


I guess that input polling is what you're looking for here.

This might also be useful (especially the last sentence).


Adding a bit to this - Python has a few libraries for async/coroutine IO. Twisted (I've used a bit), Tornado, asyncio, gevent? Anyway, can't speak to others but I liked working with Twisted - might help you on the "server" part of your chat app. I'd write some small code for you but Windows 10 and VirtualBox aren't playing nice with my VMs for now but you can see lots of sample Twisted code (there's some for reading stdin, you can see how they implement LineProtocol and modify that as you need).


edit: nm, I can look into this more myself.
+ Show Spoiler +


Any suggestions on how to make Python code run faster on Windows? I downloaded Anaconda (scipy distro) and am running some code to cluster data points but I have 2500 datapoints to cluster and clustering 100 is taking minutes so I can't really deal with this.

I hoped Anaconda out of box would have some stuff to run on GPU but maybe I need to integrate PyPy or something???

On clustering note - is there a good way to do clustering like kmeans without knowing k in advance?

Finally - sorry if anything here is glaringly wrong, it's the culmination of a few hours of googling mostlyso thanks in advance!


Also since it's been floating around in head -
On a single core processor is there any advantage to multithreading over coroutines?
RIP GOMTV. RIP PROLEAGUE.
Incognoto
Profile Blog Joined May 2010
France10239 Posts
Last Edited: 2015-07-15 22:44:30
July 15 2015 22:43 GMT
#12959
I have a question. bear with me, I'm just a guy using google and messing around with html and css


.circ {
border-radius: 50%;
width: 10px;
height: 10px;
position: relative;
-webkit-animation-name: example; /* Chrome, Safari, Opera */
-webkit-animation-duration: 1s; /* Chrome, Safari, Opera */
-webkit-animation-iteration-count: infinite; /* Chrome, Safari, Opera */
animation-name: example;
animation-duration: 7s;
animation-iteration-count: infinite;
-webkit-transition: opacity 0.35s ease-in-out;
-moz-transition: opacity 0.35s ease-in-out;
transition: opacity 0.35s ease-in-out;
}


I'm looking to possibly write a javascript line to randomize "animation-duration: 7s;"


but i have no idea how to do that. i've looked into google but's it's friggin' gibberish to me (maybe it's because it's getting late :p)



<script>
var wrapper = document.getElementById('wrapper');
var ele = wrapper.children;
var delay = wrapper.getAttribute('data-delay');

for (var i=0;i<ele.length;i++) {

alert(ele[i].style.animationDelay);

ele[i].style.animationDelay = delay;

alert(ele[i].style.animationDelay);
}
</script>


Maybe something along those lines?
maru lover forever
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
July 16 2015 06:36 GMT
#12960
On July 16 2015 07:43 Incognoto wrote:
I have a question. bear with me, I'm just a guy using google and messing around with html and css


.circ {
border-radius: 50%;
width: 10px;
height: 10px;
position: relative;
-webkit-animation-name: example; /* Chrome, Safari, Opera */
-webkit-animation-duration: 1s; /* Chrome, Safari, Opera */
-webkit-animation-iteration-count: infinite; /* Chrome, Safari, Opera */
animation-name: example;
animation-duration: 7s;
animation-iteration-count: infinite;
-webkit-transition: opacity 0.35s ease-in-out;
-moz-transition: opacity 0.35s ease-in-out;
transition: opacity 0.35s ease-in-out;
}


I'm looking to possibly write a javascript line to randomize "animation-duration: 7s;"


but i have no idea how to do that. i've looked into google but's it's friggin' gibberish to me (maybe it's because it's getting late :p)



<script>
var wrapper = document.getElementById('wrapper');
var ele = wrapper.children;
var delay = wrapper.getAttribute('data-delay');

for (var i=0;i<ele.length;i++) {

alert(ele[i].style.animationDelay);

ele[i].style.animationDelay = delay;

alert(ele[i].style.animationDelay);
}
</script>


Maybe something along those lines?


http://stackoverflow.com/questions/26132086/unable-to-change-animation-duration-css-on-body-with-jquery
Time is precious. Waste it wisely.
Prev 1 646 647 648 649 650 1031 Next
Please log in or register to reply.
Live Events Refresh
PiGosaur Monday
00:00
#49
Liquipedia
OSC
23:00
OSC Elite Rising Star #16
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft519
StarCraft: Brood War
Leta 571
Noble 54
ajuk12(nOOB) 41
Icarus 9
Dota 2
NeuroSwarm138
Counter-Strike
Stewie2K448
semphis_45
Super Smash Bros
Mew2King37
Other Games
summit1g5047
C9.Mang0302
XaKoH 152
ViBE145
SortOf48
Trikslyr34
Organizations
Other Games
gamesdonequick705
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• OhrlRock 98
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1138
• Lourlo996
• Stunt420
Other Games
• Scarra1197
Upcoming Events
LiuLi Cup
6h 1m
OSC
14h 1m
RSL Revival
1d 5h
Maru vs Reynor
Cure vs TriGGeR
The PondCast
1d 8h
RSL Revival
2 days
Zoun vs Classic
Korean StarCraft League
2 days
BSL Open LAN 2025 - War…
3 days
RSL Revival
3 days
BSL Open LAN 2025 - War…
4 days
RSL Revival
4 days
[ Show More ]
Online Event
4 days
Wardi Open
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.