-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I realize there are dozens of "apt-get update: failure to fetch" questions (I read through all I could find), but my present circumstance is unique to 12.04 and it affects all sources; not just launchpad. Additionally, I've tried several different servers in Europe and the U.S. as well as the "main…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I realize there are dozens of "apt-get update: failure to fetch" questions (I read through all I could find), but my present circumstance is unique to 12.04 and it affects all sources; not just launchpad. Additionally, I've tried several different servers in Europe and the U.S. as well as the "main…
>>> More
-
as seen on Geeks with Blogs
- Search for 'Geeks with Blogs'
The .NET Framework version 4 includes enhancements for ASP.NET 4 in targeted areas. Visual Studio 2010 and Microsoft Visual Web Developer Express also include enhancements and new features for improved Web development. This document provides an overview of many of the new features that are included…
>>> More
-
as seen on Simple Talk
- Search for 'Simple Talk'
By now you may well have noticed that .NET Reflector 6 and .NET Reflector Pro are out in the wild. The official launch happened today, although we actually put the software out last Thursday as part of a phased release plan to ensure that everything went smoothly today which, so far, it seems to have…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I installed Redmine and run it in Apache2 with the Passenger module.
Apache2 boots, Passenger module gets loaded and the Redmine welcome page is shown, however when trying to login or navigate to other parts of the Redmine site, the browser keeps loading and loading and loading forever, although the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
Currently I have the following class:
public class PluginManager
{
private static bool s_initialized;
private static object s_lock = new object();
public static void Initialize() {
if (!s_initialized) {
lock (s_lock) {
if (!s_initialized)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Why is locking a type considered very bad?
For example, lock(typeof(DateTime)) I understand that static methods of any class in .net is considered thread safe, and that instance members are not. So it isn't necessary to lock DateTime while you are using it. The book I am reading doesn't explain why…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I still feel a bit unsafe about the topic and hope you folks can help me -
For passing data (configuration or results) between a worker thread polling something and a controlling thread interested in the most recent data, I've ended up using more or less the following pattern repeatedly:
Mutex…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
After upgrading PHP from 5.1x to 5.2.10, there are a lot of warning when php -v:
[root@localhost ~]# php -v
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to work with PDO, through PHP command line.
It works perfect through the PHP web API, but not through the command line.
But when I execute the command: php test.php, it says unknown class PDO.
I think it has something to do with the thread-safety difference.
Because, when I execute the above…
>>> More