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 January 28 2016 10:14 Cyx. wrote: ugh... moved to vs2015 at work last week, and it takes siginificantly more memory to link... and since we statically link LIKE FUCKING EVERYTHING in this place linking some of our exes takes over 15 minutes now, consuming 5.5GB of memory in the process. Oh well, at least it gets people talking about using DLLs for some of our shit...
Is it Visual Studio really? What more is it doing then?
I'm a bit fuzzy on the exact details (someone described it to me earlier today) but it involves the PDB generation, as well as the /profile option to the linker. First problem is PDB generation requires a fair bit more memory for statically linked libraries, don't ask me why - don't ask me why we link so much shit statically either, I just work here. Second problem is that the /profile option to link.exe (which our dev build has turned on by default) triggers full PDB generation now (or something close to it), which it didn't do before.
So we would be fine with just turning off profiling, which most devs have been doing - unfortunately I kind of needed to debug one of our bigger exes over the last few days and I also have a couple VMs running most of the time, so every build is taking up ~6GB, my VMs take up ~8GB, and I have around 2GB left for Emacs, Chrome, my IMs, ... my workstation basically shuts down every time I need to rebuild.
EDIT: all this not to mention I have to pipe my build to "grep -v \(warning\|note\)" in order to see any sort of progress messages...
Our new project is pretty nice so far. Symfony 3 on PHP7 + nginx, and it's blazing fast. Getting all the assets installed was tricky since all the docs are still basically written for Symfony 2, but we got it working. AdminLTE is beautiful too :D
On January 30 2016 10:55 Nesserev wrote: Does anyone know any resources to pick up Java quickly and thoroughly? My background is mostly C++ and Python.
Thinking in Java is actually a pretty good book if you're able to ignore all of the "Java teh bestest thing in the world!" propaganda in it.
On January 30 2016 10:55 Nesserev wrote: Does anyone know any resources to pick up Java quickly and thoroughly? My background is mostly C++ and Python.
If you can read German Java ist auch eine Insel is what we used in university and I think it's the go-to book nowadays in German universities. The online version is also free. I doubt that quickly and thoroughly is possible though
Hey I never really posted on this thread before, I'm just wondering If I could find a mentor or something I've been learning Java, yes I watch videos and read about java, and practice, however hopefully I can find a mentor I can skype here and there with questions =D
I know this question has been asked probably countless times, however i can't find the right search criteria on google to get the answer i need. I'm trying to figure out how to show the difference between 2 times in php ( i know javascript would be ideal but for this project of mine its php only) So What i'm trying to accomplish is find the difference between current time and 12 PM or 12 noon EST, and then just echo it out in the header " You have X Hours X Minutes and X seconds left" and if some one is viewing the page they get a reminder how much time is left when page is refreshed.
If you could please put the answer in procedural code after the timer runs out of time (if some one refreshes the page) I want to then have it say a message for the next hour, lets say between 12pm est and 1pm est it says for example "time is up"
Then the timer resets and returns to showing
"You have X Hours X Minutes and X seconds left"
again after it reaches 1pm est and starts the process over again.
I have been at this for almost 2 hrs because i don't want to accept defeat but its getting late and i gotta go to work tom so i'm sure this is super easy for some one who has more experience then me. Thanks
On February 09 2016 18:18 hooktits wrote: I know this question has been asked probably countless times, however i can't find the right search criteria on google to get the answer i need. I'm trying to figure out how to show the difference between 2 times in php ( i know javascript would be ideal but for this project of mine its php only) So What i'm trying to accomplish is find the difference between current time and 12 PM or 12 noon EST, and then just echo it out in the header " You have X Hours X Minutes and X seconds left" and if some one is viewing the page they get a reminder how much time is left when page is refreshed.
If you could please put the answer in procedural code after the timer runs out of time (if some one refreshes the page) I want to then have it say a message for the next hour, lets say between 12pm est and 1pm est it says for example "time is up"
Then the timer resets and returns to showing
"You have X Hours X Minutes and X seconds left"
again after it reaches 1pm est and starts the process over again.
I have been at this for almost 2 hrs because i don't want to accept defeat but its getting late and i gotta go to work tom so i'm sure this is super easy for some one who has more experience then me. Thanks
The client just stabbed me in the heart. They've changed stuff at their servers and logic of storing some voip files on their server. They're stored as .wav until 11PM, at which point they're converted to .mp3. This required some stupid ifology to let them save/download correct files (and I'm still not sure it's 100% correct):
The client just stabbed me in the heart. They've changed stuff at their servers and logic of storing some voip files on their server. They're stored as .wav until 11PM, at which point they're converted to .mp3. This required some stupid ifology to let them save/download correct files (and I'm still not sure it's 100% correct):
If you're keeping file name, date and time around, can't you store the format too?
The client just stabbed me in the heart. They've changed stuff at their servers and logic of storing some voip files on their server. They're stored as .wav until 11PM, at which point they're converted to .mp3. This required some stupid ifology to let them save/download correct files (and I'm still not sure it's 100% correct):
If you're keeping file name, date and time around, can't you store the format too?
Date and time are stored within the filename...
The heart of the problem:
- for the past 5 years all files were stored as .wav - user-related filenames are stored in the db - all filenames in the db are added when the file is created, this includes the .wav extension
I've had to choose between changing how filenames are stored in the db (without extension) and updating 5 years worth of records or dynamically switching file extension based on timestamps.
On February 11 2016 05:32 tofucake wrote: Uh...probably simpler to just use DateTime object
Not really, I'd have to create multiple DateTime objects, then use ->diff on them and then calculate stuff.
$extension = ftp_size($ftpStream, $filenameWithoutExtension . '.wav') > 0 ? '.wav' : '.mp3'; // might add another line here to test if mp3 actually exists (returns > 0 and not -1) just to be sure
Figured it out way too late... Will still do it this way as this makes the code immune to random time of file conversion to another format server-side.
Thanks a lot for all your answers, To the timer question, i got it solved and it works perfectly and i also better understand how it works thanks to your replies, so thanks for all the feed back... (Morfildur, Manit0u, and any one else that helped or is going to help in the future.) One more question?
1. i'm currently using XAMPP to test my site. I'm curious is there some kind testing server where i can test my code on a linux based server. (reason being, there is a php extension i wanna experiment with and its gunna be a while till i will have access to the final server to test on (which will be linux based). However the php extension i wanna play with only works on linux based server.(It won't work testing on xampp) So i looked up something called LAMP dunno if i can run it on my windows computer(or maybe it just plain sucks really bad, i have no experience with it so i dunno) or i would i have to use virtual box or vmware or something like that or again are there any other options other then lamp, just want a simple easy to use linux based testing server so i can test a php extension that only works on linux.?? what are my options?
On February 11 2016 16:57 hooktits wrote: Thanks a lot for all your answers, To the timer question, i got it solved and it works perfectly and i also better understand how it works thanks to your replies, so thanks for all the feed back... (Morfildur, Manit0u, and any one else that helped or is going to help in the future.) One more question?
1. i'm currently using XAMPP to test my site. I'm curious is there some kind testing server where i can test my code on a linux based server. (reason being, there is a php extension i wanna experiment with and its gunna be a while till i will have access to the final server to test on (which will be linux based). However the php extension i wanna play with only works on linux based server.(It won't work testing on xampp) So i looked up something called LAMP dunno if i can run it on my windows computer(or maybe it just plain sucks really bad, i have no experience with it so i dunno) or i would i have to use virtual box or vmware or something like that or again are there any other options other then lamp, just want a simple easy to use linux based testing server so i can test a php extension that only works on linux.?? what are my options?
I would recommend setting up a virtualbox. There are already pre-configured boxes available that you just have to download and run. Quick google resulted in a good selection of boxes.
Alternatively you can rent a vhost for a few bucks a month, which allows you to also have your projects available to others.
On February 11 2016 16:57 hooktits wrote: Thanks a lot for all your answers, To the timer question, i got it solved and it works perfectly and i also better understand how it works thanks to your replies, so thanks for all the feed back... (Morfildur, Manit0u, and any one else that helped or is going to help in the future.) One more question?
1. i'm currently using XAMPP to test my site. I'm curious is there some kind testing server where i can test my code on a linux based server. (reason being, there is a php extension i wanna experiment with and its gunna be a while till i will have access to the final server to test on (which will be linux based). However the php extension i wanna play with only works on linux based server.(It won't work testing on xampp) So i looked up something called LAMP dunno if i can run it on my windows computer(or maybe it just plain sucks really bad, i have no experience with it so i dunno) or i would i have to use virtual box or vmware or something like that or again are there any other options other then lamp, just want a simple easy to use linux based testing server so i can test a php extension that only works on linux.?? what are my options?
Also, LAMP stands for Linux Apache MySQL PHP, it's just an acronym for OS and programs