SQL Server transaction log reported full when it isn't
Transaction log reported full but is not
In how many ways can we pick three different numbers out of the group $1,2,3,\dots,100$ such that the largest number is larger than the product of the two smaller ones? (The order in which we pick the numbers does not matter.) Skip empty rasters in ArcGIS I'm trying to write some code to skip over empty raster sets when converting rasters to point (the empty sets stop the conversion, leaving me with a half complete model run).  I know that I can identify empty rasters using the ALLNODATA result from "Get Raster Properties" .  I know I can delete rasters using the Delete.management tool.  I know I should be able to create a branch using calculate value.  But I'm inexperienced with python and modelbuilder, and haven't been able to put this all together. Could someone help me figure out what I am doing wrong? My code and an image of the modelbuilder setup are below.  def fn(Property):  #Import modules      import arcpy  #ifelse statement if Property == "1":             return "true" elif Property == "0":            return "false" Can a third type of electrical charge exist? Upon reading my book on physics, it mentions that there are only two discovered types of electric charges. I wonder if there could be a third type of elusive charge, and what type of effects could it have upon matter or similarly? I've tried to install Ubuntu on a VMWare Virtual Machine, but it never gets past the  bootloader :  ISOLINUX 4.01 debian-20100714 ETCD Copyright (C) 1994-2010 H. Peter Anvin et al No DEFAULT or UI configuration directive found! boot: _   I've also tried to burn this .iso image to a CD and go from therem but I got the same problem.  Some more details :   VMWare Server 2.0.2 Build 203138 on Windows 2008 R2 ubuntu-10.10-desktop-i386.iso image used (downloaded yesterday evening) Extracting intersection areas in R I have two polygons. One contains fields(X,Y,Z) and the other contains soil types (A,B,C,D). I want to know what  area of every field contains which type of soil. I tried the following:    library(rgdal) library(rgeos) Field&lt;-readOGR("./","Field") Soil&lt;-readOGR("./","Soil") Results&lt;-gIntersects(Soil,Field,byid=TRUE) rownames(Results)&lt;-Field@data$FieldName colnames(Results)&lt;-Soil@data$SoilType  &gt; Results       A     B     C     D Z  TRUE FALSE FALSE FALSE Y FALSE  TRUE  TRUE FALSE X  TRUE  TRUE  TRUE  TRUE   and achieved good results with it telling me which field contains which soil type. However, how do I get the area instead? Is it possible to migrate programs from 32 bit Windows to a new 64 bit Windows machine (both Windows 7)? I've got a Windows 7 Pro 32 bit PC. Getting a new Windows 7 Home 64 bit.  Is there anything I can use to transfer my  programs (the ones that don't come in a 64 bit flavor)  to the new PC? There is a related  that doesn't address the programs part. With regards to Plymouth --  Are there alternative boot screens available?  What's the easiest way to change the boot screen? Why does pdfTeX hang on this file? The difference between 'credit' and 'accredit'? Both verbs seem to mean the same thing -- to attribute 'X' to Mr. 'Y'. On looking it up, I found:  credit - publicly acknowledge a contributor's role in the production of (something published or broadcast).  accredit - give credit to (someone) for something.  Am I overthinking this, or is there really a difference I should know of? How do I sort a MySQL table by two columns? What I want are articles sorted by highest ratings first, then most recent date.  As an example, this would be a sample output (left # is the rating, then the article title, then the article date)  +================+=============================+==============+ | article_rating | article                     | article_time | +================+=============================+==============+ | 50             | This article rocks          | Feb 4, 2009  | +----------------+-----------------------------+--------------+ | 35             | This article is pretty good | Feb 1, 2009  | +----------------+-----------------------------+--------------+ | 5              | This Article isn't so hot   | Jan 25, 2009 | +================+=============================+==============+  The relevant SQL I'm using is: ORDER BY article_rating, article_time DESC  I can sort by one or the other, but not both. Get all categories and posts in those categories I am looking for a solution that allows me to print the following:  Cat 1        Cat 2        Cat 3  Post 1       Post 1       Post 1  Post 2       Post 2       Post 2  Post 3                    Post 3                            Post 4   EDIT  I am looking for something that will only require one database query! So if you have a foreach in your code followed by a new WP_Query then that is not what I am looking for (I am planning to put this onto my website's homepage). Decrease Backlight Below Minimum I have this laptop that doesn't handle the backlight very well.  In /etc/default/grub, I have added a acpi_backlight=vendor function to get it to work at all. Which is cool, and the backlight now actually works, but the minimum backlight setting is still pretty high.  Is there any way to decrease the backlight below minimum? I don't mind having to type in the terminal to do that, as I won't need to do it often (just at night etc.) Custom Tools not Saving in Toolbar on Startup/ Normal.mxt? Can Superman see through his eyelids? Given that his x-ray vision allows him to see though skin, can he use this ability with his eyes closed? Or do they prevent it somehow? Is there an injective function $f :\mathbb{R}^2\rightarrow\mathbb{R}$?  I approached this problem from the perspective of $f^{-1}$, from which I showed there exists a surjective function $f^{-1}:\mathbb{R}\rightarrow\mathbb{R}^2$. Would this imply that there exists an injective function for the inverse mapping? Ifstream read function doesn't load into vector Variables in batch file not being set when inside IF? I have two examples of very simple batch files:  Assigning a value to a variable:  @echo off set FOO=1 echo FOO: %FOO% pause echo on   Which, as expected, results in:  FOO: 1  Press any key to continue . . .   However, if I place the same two lines inside an IF NOT DEFINED block:  @echo off IF NOT DEFINED BAR (     set FOO=1     echo FOO: %FOO% ) pause echo on   This unexpectedly results in:  FOO:  Press any key to continue . . .   This shouldn't have anything to do with the IF, clearly the block is being executed.  If I define BAR above the if, only the text from the PAUSE command is displayed, as expected.    What gives?    Follow up question: Is there any way to enable delayed expansion without setlocal?   If I were to call this simple example batch file from inside another, the example sets FOO, but only LOCALLY.   For example:   testcaller.bat   @call test.bat  @echo FOO: %FOO%  @pause    test.bat   @setlocal EnableDelayedExpansion  @IF NOT DEFINED BAR (      @set FOO=1      @echo FOO: !FOO!  )    This displays:   FOO: 1  FOO:  Press any key to continue . . .    In this case, it appears that I have to enable delayed expansion in the CALLER, which may be a hassle. food safety regarding re freezing twice cooked chicken I use wubi to install Ubuntu 10.10 on my ntfs partition. So I want to change the home folder to a folder on the ntfs partition. I could keep the personal configuration, software and so on after reinstalling the Ubuntu.  So I use ntfs-config to manage the disk partition, it's mounted when system is startup. And the permission of all files and directories are 777.  Then I modified the /etc/passwd to set the home folder to the folder on the ntfs partition. I can successfully login the account, however it looks like the .bashrc and .profile are not loaded correctly. I can't use the input method(even can't configure ibus), no sound device. However everything works well after changing the home folder back to /home/.  Could anybody give me a hint to make it work? Thanks. I execute quite a lot of sudo commands.  I noticed that if I execute one and then another one within few minutes, the 2nd time I don't get the message:     [sudo] password for my_username:   but I do get it when there is more time between the execution of the two commands.  What's the period of time in which the message is not appearing? How can we check it / update it?