Software needs good hardware, so if you accidentally own a Lenovo Ideapad Y580 notebook, here’s what hardware worked fine for me
RAM upgrade from 8GB (2x4GB Ramaxel, came with the notebook) to 16 GB: Corsair Vengeance 16GB (2x8GB) DDR3 1600 MHz (PC3 12800) Laptop memory (CMSX16GX3M2A1600C10). Didn’t notice any difference when working (Windows 7 upgrade vom 7.7 to 7.9 rating, wow) except that I don’t run out of RAM anymore when doing development or having VMs running (and allocating a 8GB array in Java works 😉 )
Hard disk change from a conventional-SATA 256 GB Samsung SSD EVO 840 to a micro-STA Samsung MZ-M5E250BW internal SSD 250GB (mSATA) aka EVO 850 Boot time is from about 14 seconds down to 8, also working is a bit faster – the main benefit is that the conventional-SATA slot is now available for a larger standard harddisk
“You don’t currently have permission to access this folder” – this error happens sometimes on my Windows 7 machine – seemingly in conjunction with cygwin – somehow the ownership of folders/directories gets broken.
Here’s the command to fix this quickly – run as administrator via cmd:
for /D %f in (*) do takeown /R /D Y /f %f
It loops through all directories within the current directory, and takes ownership of the folders (the /R is for recursion, the /D Y (Y will be J on German-language windowses, and the last part just specified that it concerns the folder that’s the current one in the for loop)
In case you run into the following exception when using mocks in a Spock test:
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.Integer#multiply.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
It might be that the mistake is simply that you need to use the rightshift operator (>>) instead of leftshift (<<) for adding the mocked return value. Here's how I produced the (not really obvious) error:
service.publicRESTCategoriesService = Mock(PublicRESTCategoriesService)
1 * service.publicRESTCategoriesService.getCustomDesignsCategories(12L, false, ‘test’) <<  // '<<' is wrong, use '>>’