• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:45
CEST 21:45
KST 04:45
  • 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
[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3
Community News
Stellar Fest TWO the Moon (Dec 16-20)6Weekly Cups (August 24-30): Patches' balance mod takes over2New 3v3 BGH Ladder (and more) on ShieldBattery!38Weekly Cups (August 17-23): Zerg dominate the week6Weekly Cups (August 10-16): SHIN doubles3
StarCraft 2
General
SC4ALL II: SC2 Player Announcement 6/8 - Maru Weekly Cups (August 10-16): SHIN doubles Weekly Cups (August 24-30): Patches' balance mod takes over How would you feel about frequent/monthly balance patches for SC2? Weekly Cups (August 17-23): Zerg dominate the week
Tourneys
2026 GSTL Announcement Stellar Fest TWO the Moon (Dec 16-20) PIG STY FESTIVAL 8.0! (13 - 23 August) Sparkling Tuna Cup - Weekly Open Tournament IntoTheTV X SOOP SC2 League : Weekly & Monthly
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This Mutation # 539 Thunder Dome
Brood War
General
[Personal Project Share] Terran Defense v0.60 Which box art did your first copy of StarCraft 1 have? BW General Discussion ASL22 General Discussion New 3v3 BGH Ladder (and more) on ShieldBattery!
Tourneys
[ASL22] Ro24 Group F [Megathread] Daily Proleagues Small VOD Thread 2.0 Escore Tournament - Season 3
Strategy
Replay Review Process - What do you do? Game Theory for Starcraft Odyssey Mineral Stack Saturation Fighting Spirit mining rates
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Anyone here play Quakeworld back in the day? EVE Corporation
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Regacy Esports: The Bh…
regacyesports
Violent Games and Crime Rate…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Please support my new stand…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 7288 users

The Big Programming Thread - Page 648

Forum Index > General Forum
Post a Reply
Prev 1 646 647 648 649 650 1032 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
Bisutopia19383 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
Poland17835 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
Spain18425 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
Spain18425 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
Poland17835 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
Poland17835 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
Spain18425 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
Poland17835 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
Poland17835 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
Portugal2397 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
Poland17835 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
Poland17835 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 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 4h 15m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 423
BRAT_OK 145
Railgan 47
JuggernautJason41
MindelVK 20
StarCraft: Brood War
Britney 17293
Shuttle 1075
Horang2 165
Sexy 43
Light 20
Dota 2
420jenkins626
Pyrionflax140
Counter-Strike
edward34
Other Games
Liquid`RaSZi2090
Grubby1733
mouzStarbuck310
Mlord293
TKL 224
IndyStarCraft 208
XaKoH 175
C9.Mang0161
ArmadaUGS147
Trikslyr68
QueenE43
Mew2King38
Organizations
Other Games
WardiTV507
BasetradeTV51
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• Pr0nogo 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV1412
• masondota2910
League of Legends
• TFBlade999
Other Games
• imaqtpie1227
• Shiphtur346
Upcoming Events
PiGosaur Cup
4h 15m
Kung Fu Cup
15h 15m
Replay Cast
1d 4h
The PondCast
1d 14h
IntoTheTV X SOOP
2 days
CranKy Ducklings
3 days
Sparkling Tuna Cup
4 days
OSC
4 days
Afreeca Starleague
5 days
Soma vs Shuttle
BeSt vs Rush
WardiTV Weekly
5 days
[ Show More ]
Afreeca Starleague
6 days
Leta vs ggaemo
Jaedong vs Queen
GSL
6 days
Liquipedia Results

Completed

BSL 2026 LAN: Kraków
PiG Sty Festival 8.0
Light Tournament 2026

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Proleague 2026-09-01
RSL Revival: Season 6
Big Dog Cup 2026 Div 1
BLAST Open Fall 2026
Esports World Cup 2026
Esports World Cup 2026: LCQ
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026

Upcoming

Acropolis #5
Acropolis #5 - TRS
Escore Tournament S3: King of Kings
Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Calamity Invitational
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
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 © 2026 TLnet. All Rights Reserved.