Search Results

Search found 20883 results on 836 pages for 'wont say'.

Page 12/836 | < Previous Page | 8 9 10 11 12 13 14 15 16 17 18 19  | Next Page >

  • Eliminating Magic Numbers: When is it time to say "No"?

    - by oosterwal
    We're all aware that magic numbers (hard-coded values) can wreak havoc in your program, especially when it's time to modify a section of code that has no comments, but where do you draw the line? For instance, if you have a function that calculates the number of seconds between two days, do you replace seconds = num_days * 24 * 60 * 60 with seconds = num_days * HOURS_PER_DAY * MINUTES_PER_HOUR * SECONDS_PER_MINUTE At what point do you decide that it is completely obvious what the hard-coded value means and leave it alone?

    Read the article

  • Why do Git users say that Subversion does not have all the source code locally?

    - by johnny
    I'm only going on what I've read on SO, so forgive me, but all I read says that one major advantage of Git over Subversion is that Git gives all the source code to the developer locally, not having to do anything on the server. With my limited using of SVN and TortoiseSVN, I had all the source code, or at least I thought I did. For example, I have a website. I upload it to SVN. I am still running my website locally, aren't I? If someone submits a change and I'm not connected, it wouldn't matter if I had Git or not, until I reconnect to the server. I do not understand. I'm not asking for a rehash of one vs. the other except this one point.

    Read the article

  • Failed to allocate memory - What is it trying to say?

    - by asprin
    In my early days of programming I often used to get memory related fatal errors in the following format: Fatal error: Allowed memory size of <some big number> bytes exhausted (tried to allocate <some small number> bytes) in /path/to/filename.php on line <some line number> I'm a little embarrassed to state that even though I have figured out how to solve them and take steps to avoid them altogether, I'm still not quite sure what exactly does the message translate to in simple words. For example, if I get a message such as: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4000 bytes) in ........ on line 34 As things stand at the moment, I assume it to be stating that the script consumes 67108864 bytes of data, but only 4000 bytes are available during runtime. Am I right in my assumption? If not, what's the correct interpretation?

    Read the article

  • Can I stop battery charging at say 80% and switch to AC?

    - by elim
    While I was looking for a battery management utility for my Dell E5420, I came to read this post - How can I limit battery charging to 80% capacity? . Sofar, I haven't found one that relates to my laptop. So, I wonder now if any battery manager utility can be found for my laptop specified above. I would be happy if someone could point me if such utility is available under Ubuntu 12.04 that can stop charging a battery at a certain percentage and to ONLY use A/C mode. Again, to start using battery mode when the A/C is off or when the battery level reaches at certain level. Thanks for all your help. Elim.

    Read the article

  • I need to iterate a loop to every time find the string appearing after a particular string say "if(O

    - by Parth
    I need to iterate a loop to every time find the string appearing after a particular string say "if(OLD.", then which PHP function will be helpful for me? Suppose I have a variable say, $string, according to any select query say "select * friends", Now any of its value contain a string say "how are you Jack?" Now I want to iterate a loop around the above value containing variable to get the varying name of friends after a string "how are you "... Hence I need a function of PHP to accomplish it... Please help

    Read the article

  • Remove ubuntu and install windows 8 on ultrabook

    - by Vegard Lokreim
    My computer (ultraboook : HP Envy 4 ) wont find the bootable windows usb. Unless its a ubuntu usb it wont show in boot selection (F9). I installed ubnutu as the one and only OS, and now i want to install windows as the only OS. The only problm is that my computer wont boot from the bootable usb. I think it has something to do with the boot settings that ubuntu has made to my computer.... I really need an answare as soon as possible, please help. Ive created a bootable windows usb in both windows and ubunut, and it still wont boot from the bootable usb, i also have a 300gb NTFS partition at the beginning of the harddrive, and it still wont boot into windows. I have a 32gb SSD and 500 gb SATA-HDD How can i get the system to recognize the bootable USB?

    Read the article

  • Why wont Ubuntu recognize Rogers LTE Rocket stick 330U Sierra wireless modem?

    - by rob lawson
    I tried to plug the rocket stick into the USB slot, and Ubuntu does not recognize that there is anything in the drive. I plug in a standard USB thumbdrive and it is recognized right away. Are there any applications to help me open the rogers folders to see the files, and maybe connect to the Internet using said rocket stick 330U? I've been searching for this answer for almost a week now, seems no one knows how to get the net using this piece of technology.

    Read the article

  • Why wont SVN work on the Google Code Source? [closed]

    - by BluFire
    I installed SVN Toroise. I then proceeded to the desktop and right clicked and clicked on SVN checkout. I then entered under the URL of Repository "http://apple-crunch.googlecode.com/svn/trunk/ apple-crunch-read-only" but after a few seconds the checkout fails saying that the URL doesn't exist. I got the command line from http://code.google.com/p/apple-crunch/source/checkout I'm trying to get a direct copy instead of browsing through the source.

    Read the article

  • World of warcraft wont install because of error concerning "agent.exe"?

    - by Stanton.Sculpture
    I've been trying to install World of Warcraft with no luck. I looked in the forums and this guy has been having the same problem: http://us.battle.net/wow/en/forum/topic/7005434029#new-post I can't get past the checking for updates screen until I get this error message: https://us.battle.net/support/en/article/BLZPTS00007 Tried installing it through Playonlinux too and its the same problem for the most part. Looking for any help. Thank you!

    Read the article

  • Why wont the LibGDX's main class Initialize on Android Launcher?

    - by BluFire
    So I was searching for different ways that could suit me in programming and came across LibGDX. Naturally I looked at the tutorial. As I was doing it, I was following the steps word for word, except naming the classes. In the end, I was able to create the desktop launcher for the game but not the android launcher. The following error is my error: Cannot instantiate the type Game (Game is the name of the class) I got the tutorial from http://steigert.blogspot.com.au/2012/02/1-libgdx-tutorial-introduction.html The link in the tutorial is the original but it uses jogl instead of lwjgl.

    Read the article

  • I installed ubuntu, the installer told me to reboot afterwards. I dd, and now linux wont boot

    - by mandy
    Im trying to dual boot between mac 10.6.8 and ubuntu 11.10. I have a macbook pro 8,1. So i installed from a 10.04 disk because the install window makes more sense to me, and it doesnt give me errors or anything. Also, any versions of ubuntu after that dont boot from disk for whatever reason. (i think its having to do with the efi boot thing. i have to get ubuntu 11.10 to boot from a usb with folders bootefiboot.iso) Then my plan after that was after the ubuntu 10.04 install took care of all the swap and stuff for me without being messy, to upgrade to 11.10. So here i have 10.04 booting successfully back and forth from mac osx no problem. I put in my 11.10 usb and the installer gives me the option to "update 10.04 to 11.10" bingo, jackpot, thats what i want. Everything proceeds as normal, as EVERY OTHER install of ubuntu i have ever done, then the installer finishes and says HEY! im finished! Continue testing or reboot now! So i reboot, and what do i get??? A black screen that says the file system isnt found, to enter a boot disk and press any key. WHAT THE HELL????? so i boot the 11.10 installer again from usb, and select "erase 11.10 and install 11.10", installer proceeds normally, and asks me to reboot. I reboot and get the SAME THING. Please, someone, help me get this right here. This is my first time actually dual booting between mac and linux. Usually i just wipe off osx completely and install ubuntu but i actually need to keep my mac partition this time. I have successfully installed 11.10 on this machine before, but that was when i did a clean install. Help?

    Read the article

  • Laptop with Ubuntu 12.04, connected to television with hdmi-cable wont show any content from pc on televison. Nothing happens

    - by Bauta72
    Hello :) I have a laptop with Unbuntu 12.04 I have connected my laptop with my hdmi-cable to the television. But, unlike in Windows 7 i cant find HDMI as an output anywhere in the settings, neither for video nor audio. can anyone please tell me step by step how i do this ? I just want to "stream" videos, youtube etc from my laptop to my telly :) I appreciate all the help that i can get :) Best regards

    Read the article

  • What is the easiest way to make your browser refresh a page every say, 5 seconds?

    - by Oren A
    Is there a browser that supports refreshing a page every say, 5 seconds? Is there an add-on? If not, is there a more simple way than writing a full (C# or Java) program in order to do that? Added: Opera is horrible! I set Stack Overflow to refresh every 5 seconds, but when I click on a post, it refreshes it every 5 secs too! I just wanted the main page to refresh every 5 seconds. Another "Added": apparently it refreshes the current tab, so as long as I open the post in a new tab, it works great.

    Read the article

  • Is it possible to restrict the connection duration per client on the router (say with OpenWRT)?

    - by static
    How to limit the connection duration per client per period (say, one MAC-address can connect only for 3 hours per week to the network). Where could be defined such a rule? In the firewall? So the rule should define not statically times (this is simple), when the client is allowed to access the network, but the duration of the connection per day/week/month, etc. How/where to implement such rules? Is it possible to do so with OpenWRT/DD-WRT?

    Read the article

  • Pc freezes then wont boot. The fans spin, but HDD activity light is off

    - by Stuart
    I'm having a problem with my PC and this isn't the first time it's happened. For a few days now, when I turned my PC on, it didn't immediately start to boot up. The monitor said "No signal" and the machine just sat there although the power light was on and the fans were running. Then, after a few minutes, it would begin to boot as if nothing was wrong. Today I started my machine and it ran ok for about 10 minutes. Then the whole thing froze up and I had to shut it down and restart by holding the power button. When it rebooted, the same thing happened again and again and now finally it wont boot up at all. This happened before about 8 months ago. I ended up taking it to the shop after getting a blue screen. They replaced the HDD and upgraded it to windows 7 and it has worked fine since then. However, they charged an arm and a leg for the work and I dont want to have to go back there again. As this is a recurring fault I figure its a mechanical problem of some sort but I'm not sure what. Any ideas? Thanks for your help.

    Read the article

  • find window text and save txt to file named that wont work.

    - by blood
    hi, my code wont work and idk why. the point of my code is to find the top window and save a text file with the name the same as the text on the top menu bar (task bar i think?). then save some data to that text file. but everytime i try to use it the write fails if i set the name of the text file before hand so it wont change it will write the data to the file. but if i don't set it before hand it will make the text doc but not write anything to it. or sometimes it will just write numbers for the name (i think it's the handle number) then it will write the data. :\ it's odd can anyone help? #include <iostream> #include <windows.h> #include <fstream> #include <string> #include <sstream> #include <time.h> using namespace std; string header_str = ("NULL"); #define DTTMFMT "%Y-%m-%d %H:%M:%S " #define DTTMSZ 21 char buff[DTTMSZ]; fstream filestr; string ff = ("C:\\System logs\\txst.txt"); TCHAR buf[255]; int main() { GetWindowText(GetForegroundWindow(), buf, 255); stringstream header(stringstream::in | stringstream::out); header.flush(); header << ("C:\\System logs\\"); header << buf; header << (".txt"); header_str = header.str(); ff = header_str; cout << header_str << "\n"; filestr.open (ff.c_str(), fstream::in | fstream::out | fstream::app | ios_base::binary | ios_base::out); filestr << "dfg"; filestr.close(); Sleep(10000); return 0; }

    Read the article

  • CSS menu bar wont show!!! class or ID problem?

    - by Tran
    Hello everyone, Please help me with this insanity: http://imageoneads.com/zenliver/ My menu bar worked fine & I accidently deleted or moved one of class or ID. Now it disappeared. All browsers Wont display the menu, except Firefox for Mac. This drives me nut....Cant believe I have to start over if I can't figure it out....Please help....Thanks ahead tran006

    Read the article

  • How to determinate prerequisite of a setup ? DisplayLink on WindowsXP embedded wont start

    - by user35320
    Hi, I want to install DisplayLink on an embedded Windows XP device. The problem is that the setup starts and asked for my approval and after I confirmed it nothing happend. The setup just dissapear. On the official DisplayLink site there they say that they dont support embedded system but there must be a way to get this working on it. So I am searching for a tool to see what the setup is trying to open or what the preerequisite of it are to install it and try to get this working. Thanks for you help

    Read the article

< Previous Page | 8 9 10 11 12 13 14 15 16 17 18 19  | Next Page >