« first day (27 days earlier)      last day (866 days later) » 

00:54
0
Q: singleton list hasn't been re-initialized until restart IIS

danmiaoI have a problem about a singleton list inside my asp.net website. Based on design, the singleton list is used to store all the customized information, so the first user access the website and the singleton list is called, if it is empty then it will be initialized (call a select sql script and f...

 
6 hours later…
06:55
1
Q: Notifying all the waiting threads in case the instance is created in case of singleton double lock check

Campublic static Singleton getInstance() { if (instance == null) { synchronized(Singleton.class) { //1 if (instance == null) //2 instance = new Singleton(); //3 } } return instance; //4 } In the code above, suppose ten threads are calling this method, a...

 
3 hours later…
10:15
@Zoidberg Now there are 29 :)
user142019
cool
user142019
I'm going to write a wrapper around epoll using Boost.Coroutine so you can do non-blocking I/O without any callbacks and on only one thread.
@Zoidberg Tell that to your girl and she will drag you to bed.
user142019
lolwot
It reads like poetry. Also, sounds like a great achievement. Plus a bit of sarcasm on my side ;)
user142019
10:20
Once upon a time there was a coroutine …
That would be a story for your children :)
user142019
No wait I probably need Boost.Context.
user142019
Boost.Coroutine is too high-level.
Boobs.Context
user142019
I hope I can make another thread switch context using Boost.Context.
user142019
10:22
Boost.Context is so full of UB.
user142019
It swaps stack pointers and stuff. :)
How does it do that portably? :)
user142019
Not.
And doesn't that fuck big with RAII?
user142019
It has parts written in assembly.
user142019
10:27
@FredOverflow exception propagating through the function is UB, but besides that RAII works.
user142019
(So you must wrap it in try-catch and call std::terminate() or whatever.)
user142019
Though I don't want to see anyone using it with longjmp. xD
I just got a wedding invitation. longjmp has proposed to unsafePerformIO, and she said yes!
user142019
What I'll basically do is keeping an std::unordered_map<int, boost::context::fcontext_t*> of (file descriptor, context) pairs and switch contexts whenever the file descriptor it belongs to becomes available.
13:13
-6
Q: Example of Singleton pattern in JavaScript

testndtvCould someone help me with a very basic example of using Singleton pattern in JavaScript ?

13:50
0
Q: Getting GoogleAnalytics working in all activities

user1866707I want to track all activities and button clicks throughout my 7 activities in my app. Right now I am at the beginning of implementing GA. I have it working in my opening main menu screen and can view it online on google.com/analytics. My question is how to implement this into all activities? ...

 
9 hours later…
23:03
0
Q: ASP.NET MVC object access

JuddlingI have an object which I want to use in filters, controllers and domain logic. I will need to edit the object in the domain logic. I've been looking at Ninject but that just seems to be binding the object too early. I wanted to do it in a filter after my Authorize attirbute. [Authorize] [ValidA...


« first day (27 days earlier)      last day (866 days later) »