|
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. |
On October 15 2013 00:35 bangsholt wrote:Show nested quote +On October 14 2013 22:57 Tobberoth wrote:On October 14 2013 22:16 Zocat wrote:Optimization is most of the time not worth the cost. I even heard Eclipse is running fine on today's systems. Time will solve some problems  You're free to use a more lightweight PDF reader. Since you still use Adobe Reader, apparently the problem isnt big enough. This is probably a huge issue right there: Why would developers develop optimized software when it's not being picked over non-optimized software? Tons of people prefer foobar2000 to other music players because of the speed and optimization, but it's not even close to the market share of non-optimized crap like iTunes. Do you really think that the layman knows / cares / picks based on optimization? Speed I can agree with, if I can change it to response time. What people tend to care about, is that the UI feels responsive and that things happen in a reasonable time frame after you pressed the song that you want to listen to, and if not, that the UI is clearly showing that it is loading the song currently.
Most people are of the mindset: "It came bundled with the other thing I got so it has to be the thing". They also usually install stuff by pressing next->next->next->finish without even bothering to look what's there.
90% of computer users won't bother with optimization as they have absolutely no idea what does it mean and how their computer works anyway. That's why you can safely assume that most people's setup will be non-optimized Windows with iTunes and QuickTime installed (iPad/Pod/Phone), most likely Nero (which comes bundled with most RW drives and pre-configured computer setups) and some crappy anti-virus that got shoved down their throat when purchasing computer (do people really use anti-virus software this days? I got rid of mine years ago and never looked back). Things like that.
Optimization is the last thing you want to worry about, unless you target a specific group of people who can appreciate it (like awesome looking game with superb graphics that's available on multiple platforms, has relatively low hardware requirements and doesn't take 30+GB bite out of your HDD).
|
On October 15 2013 03:05 Manit0u wrote:
That's why you can safely assume that most people's setup will be non-optimized Windows with iTunes and QuickTime installed (iPad/Pod/Phone), most likely Nero (which comes bundled with most RW drives and pre-configured computer setups) and some crappy anti-virus that got shoved down their throat when purchasing computer (do people really use anti-virus software this days? I got rid of mine years ago and never looked back). Things like that.
I'll let you in on a secret. In order for an anti-virus to detect a root kit or side-bootloader, then it must install a kernel driver of its own. Every bit of software must be verified by this kernel driver, and so it can affect performance on everything.
Thats not the worst of it though. This driver is usually the easiest piece of software on your computer to exploit as it has to deal with arbitrary executable input, and it's sitting directly in the kernel, so it makes quite the easy target. I've seen three accidental cases where simply changing the name of an executable caused the unsigned software to run with total kernel privileges (Way worse that running as an administrator).
Yet still people use anti-virus. *Shrug* + Show Spoiler +This is just one anecdote. There is actual research done that focuses on anti-virus exploits.
|
CSS PEEPS
I can't get keyframe animation to work, All I want is an image of a cloud in the background of my site to move back and forth a set distance slowly forever....but I've read like 5 different tutorials and explanations and tried to adapt them and the damn thing just wont move.
<img class= "cloud1" src="cloud1.png" width="500" height= "200"> object
.cloud1 { position: relative; margin-top: -500px; top: 200px; left: -80px; }
css
its so basic
|
On October 15 2013 03:19 RoyGBiv_13 wrote:Show nested quote +On October 15 2013 03:05 Manit0u wrote:
That's why you can safely assume that most people's setup will be non-optimized Windows with iTunes and QuickTime installed (iPad/Pod/Phone), most likely Nero (which comes bundled with most RW drives and pre-configured computer setups) and some crappy anti-virus that got shoved down their throat when purchasing computer (do people really use anti-virus software this days? I got rid of mine years ago and never looked back). Things like that.
I'll let you in on a secret. In order for an anti-virus to detect a root kit or side-bootloader, then it must install a kernel driver of its own. Every bit of software must be verified by this kernel driver, and so it can affect performance on everything. Thats not the worst of it though. This driver is usually the easiest piece of software on your computer to exploit as it has to deal with arbitrary executable input, and it's sitting directly in the kernel, so it makes quite the easy target. I've seen three accidental cases where simply changing the name of an executable caused the unsigned software to run with total kernel privileges (Way worse that running as an administrator). Yet still people use anti-virus. *Shrug* + Show Spoiler +This is just one anecdote. There is actual research done that focuses on anti-virus exploits.
Well, if you have a kid or really illiterate PC users, e.g. your grandfather/mother, then an anti-virus is a good approach to count on. Yes, you can add a limited account for them but then you will constantly hear "Why can't I install X?". But you're at work so you can't do much, especially if you're busy.
|
On October 15 2013 10:14 sob3k wrote:CSS PEEPS I can't get keyframe animation to work, All I want is an image of a cloud in the background of my site to move back and forth a set distance slowly forever....but I've read like 5 different tutorials and explanations and tried to adapt them and the damn thing just wont move. <img class= "cloud1" src="cloud1.png" width="500" height= "200"> object .cloud1 { position: relative; margin-top: -500px; top: 200px; left: -80px; }
css its so basic
Sobek, I think you need position: absolute on cloud1, I'll post code in a minute. Here maybe this will get you headed in the right direction, I pretty much copied this from a Jfiddle because I'm no expert, but it works on my localhost
+ Show Spoiler + <style>
.cloud1 {
position: absolute;
-webkit-animation: moveLeft 12s; -webkit-animation-delay:2s; -webkit-animation-iteration-count: infinite;
-moz-animation: moveLeft 12s; -moz-animation-iteration-count: infinite;
-ms-animation: moveLeft 12s; -ms-animation-iteration-count: infinite;
-o-animation: moveLeft 12s; -o-animation-iteration-count: infinite;
animation: moveLeft 12s; animation-iteration-count: infinite; }
@-webkit-keyframes moveLeft { 0% { right: -500px; } 50% { right: 2000px; } 100% { right: -500px; } }
@-moz-keyframes moveLeft { 0% { right: -500px; } 50% { right: 2000px; } 100% { right: -500px; } }
@-ms-keyframes moveLeft { 0% { right: -500px; } 50% { right: 2000px; } 100% { right: -500px; } }
@keyframes moveLeft { 0% { right: -500px; } 50% { right: 2000px; } 100% { right: -500px; }
} </style>
|
^yeeeeeee it worked tyy. Now I'll just tweak and add a few more so its not bouncing back and forth like a ball. Should look nice.
|
So now I have that cloud image moving on the screen but when it goes off of the edge of the site it extends the site and makes the scrollbar shrink etc. How do I make this not happen? I tried setting the overflow on the cloud to hidden but that was not effective.
|
What is a good tool to share code between 2 or more people who work on the same project? Im looking for some sort of real time update online editor/compiler :-/
|
On October 16 2013 05:03 NB wrote: What is a good tool to share code between 2 or more people who work on the same project? Im looking for some sort of real time update online editor/compiler :-/
It sounds like you need SVN. TortoiseSVN offers a GUI solution.
|
On October 16 2013 05:03 NB wrote: What is a good tool to share code between 2 or more people who work on the same project? Im looking for some sort of real time update online editor/compiler :-/
Use github/bitbucket
|
Anyone with advanced knowledge in the area of finite state machines here?
Context: I'm currently writing an algorithm to calculate the so-called "shanten" of a hand in the game Mahjong. The direct, recursive approach is very slow. It would be fast enough for single hands, but for what I actually want to do I need to calculate it thousands, maybe millions of times. So I developed an algorithm that uses finite state machines. A single state machine with all possible hands as the language is multiple GB large, but I managed to split the algorithm into 2 phases and now have just a size of 5-10 MB for the 9 state machines I use combined. I don't have a real problem with the size anymore, but I'm still intested in some specifics.
I use minimized deterministic classifying finite state machines with words of equal length (varying per state machine) and alphabet sizes of 5 and 2. Since my languages are static, I can for example apply the same permutation to all words of a language and construct a state machine for the permuted language. I know by example that such a permutation can have a significant effect on the size of the mimized state machine. I would like to know how certain aspects of a language effect the size of the minimized state machine.
For example: If a certain position in all words, say the third letter, can only assume a subset of the alphabet, while other positions can assume more different characters, I suspect that swapping the third letter with the first will reduce the size of the state machine (sorting the letters based on this approach has yielded good results for me). If a position can only assume a single character, I can obviously remove it completely.
Does anyone know of any papers that deal with such things? I haven't found anything at all in that direction, but I might just be searching for the wrong things.
|
On October 16 2013 05:31 darkness wrote:Show nested quote +On October 16 2013 05:03 NB wrote: What is a good tool to share code between 2 or more people who work on the same project? Im looking for some sort of real time update online editor/compiler :-/ It sounds like you need SVN. TortoiseSVN offers a GUI solution. Or preferably Git. But in general use versioning system, not some sharing system.
|
On October 16 2013 05:03 NB wrote: What is a good tool to share code between 2 or more people who work on the same project? Im looking for some sort of real time update online editor/compiler :-/ It's extremely unusual to work several people on the same files in real time. What you do is you use version control. You have a central repository where you keep the source code, then people download copies which they edit. They then check in their local edits to the central repository, the version control system makes sure changes aren't lost, files which have been edited in by several people can be merged etc.
I would recommend either SVN or Git. SVN is slightly easier to learn and has a system most similar to what I mentioned above. Git is slightly harder to learn, but has several pros over SVN. In Git, you don't download local copies of the central repository, instead, everyone has their own local repository which they can check into whenever they want. They then send patches or pull requests to the central repository.
You can either host the central repository yourself (with git this is easy since every copy is a repository), with SVN you need server software for it (VisualSVN is free). There's tons of websites where you can get remote repositories, Github is a very popular site if you use Git.
|
On October 16 2013 03:21 sob3k wrote: So now I have that cloud image moving on the screen but when it goes off of the edge of the site it extends the site and makes the scrollbar shrink etc. How do I make this not happen? I tried setting the overflow on the cloud to hidden but that was not effective.
Put it in a container and give the container the max-width property?
|
Anyone has experience using Octave? First time i heard of it and the prof of the Machine Learning course is recommending it over MatLab.
|
On October 16 2013 05:37 mcc wrote:Show nested quote +On October 16 2013 05:31 darkness wrote:On October 16 2013 05:03 NB wrote: What is a good tool to share code between 2 or more people who work on the same project? Im looking for some sort of real time update online editor/compiler :-/ It sounds like you need SVN. TortoiseSVN offers a GUI solution. Or preferably Git. But in general use versioning system, not some sharing system.
I recommend Git as well. If you do want a "live" editor (although its not recomended two people work in the same files at same time, for example if you want to compile something you just did, you need to wait for the other persons to make their code compilable.) for peer programming, I would recommend Saros with Eclipse. The creators of saros also have something for Visual Studio but i cant remember the name of that one.
|
On October 16 2013 06:06 NB wrote: Anyone has experience using Octave? First time i heard of it and the prof of the Machine Learning course is recommending it over MatLab. Use R or matlab. Octave is free language supposed to mimic matlab but Octave has so few users and libraries it's not worthwhile. Also Octave is buggy. If the prof is going to teach you using sample code from Octave then go ahead with it, but it's not a good idea.
You can ask for student evaluation versions of matlab or do what other people did and use it in school or something.
|
I'm doing a student project management website project for school capstone. Has anyone ever made/seen one of these for student groups before? Has anyone used one?
We're considering using Ruby because we hear it is newer and shinier than PHP or ASP.net. We know PHP and Asp.net already.
What hosts are free and available for this? I'm considering Heroku and Amazon and Sitegrounds. Siteground only has it for very expensive dedicated hosting and still seems new to providing ruby support. Heroku is free but I'm worried about speed and scalability. Amazon is cheap for development purposes but I'm worried about scalability in the future.
|
On October 16 2013 07:08 obesechicken13 wrote: I'm doing a student project management website project for school capstone. Has anyone ever made/seen one of these for student groups before? Has anyone used one?
We're considering using Ruby because we hear it is newer and shinier than PHP or ASP.net. We know PHP and Asp.net already.
What hosts are free and available for this? I'm considering Heroku and Amazon and Sitegrounds. Siteground only has it for very expensive dedicated hosting and still seems new to providing ruby support. Heroku is free but I'm worried about speed and scalability. Amazon is cheap for development purposes but I'm worried about scalability in the future.
Don't you want to use something like Redmine or gitlab? I don't like ruby but my college uses Redmine (they started using Trac on some courses this year but I think it's still new and buggy), me and some students formed a student group for extra-curricular developement so we needed a way to manage the projects and source repos on our own private server (college redmine only teachers can create projects and assign students, its easier if we could do everything we wanted), so we deployed redmine there under <host>/redmine and we modified the project creation source so it would also automatically create a bare git repo on the server under /srv/git/reponame that we can acess through https://host/git/reponame . Redmine does this natively for SVN IIRC but we wanted to use git instead.
|
On October 16 2013 03:21 sob3k wrote: So now I have that cloud image moving on the screen but when it goes off of the edge of the site it extends the site and makes the scrollbar shrink etc. How do I make this not happen? I tried setting the overflow on the cloud to hidden but that was not effective. overflow: hidden needs to be set on the container, not the element. If your cloud image is absolute, and no div around it, you need to set it to the body
|
|
|
|
|
|