Re: [Interest] autosave on OSX

2012-10-24 Thread Lincoln Ramsay
On 25/10/12 00:29, Daniel Price wrote: Is it possible to implement autosave in Qt/mac applications as was introduced in OSX Lion (and refined in Mountain Lion)? Has anyone done this? I think what you want to know is: Does Qt provide an API that you can use, which results in Lion's autosav

[Interest] Help building qt5 from beta/git

2012-10-24 Thread Jeremy Swigart
Hey guys. I'm having a lot of trouble compiling Qt5. Whether I try the packaged qt-windows-opensource-5.0.0-beta1-x86-offline.exe source, or compiling from git, I can never get a complete compile to finish, and they don't necessarily fail at the same spot between the packaged beta and git. For

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread Graeme Gill
Thiago Macieira wrote: > I realised this because both ARM and IA-64 -- architectures with weak memory > ordering -- have no special instruction for this kind of activity. If all you > need is a flag signalling a condition, you'd use the standard "ld1" / "ld4" > instruction on IA-64 or the "ldrb

Re: [Interest] autosave on OSX

2012-10-24 Thread Peter Groen
Sure this is possible. Just start a timer and check if your document is changed. If both are true, save your document…. Open Systems Development Peter M. Groen Em : pgr...@osdev.nl http://www.osdev.nl Skype : peter_m_groen On 24 okt. 2012, at 16:29, Daniel Price wrote: > Is it possible to imp

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread Thiago Macieira
On quarta-feira, 24 de outubro de 2012 14.37.14, K. Frank wrote: > So, to summarize what you're saying, real world hardware is not > excessively perverse. > > Therefore the volatile-bool scheme for signalling a thread to stop will > work in practice (but volatile is not good enough for full-featur

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread K. Frank
Hello Thiago! Thank you for following up. On Wed, Oct 24, 2012 at 1:58 PM, Thiago Macieira wrote: > On quarta-feira, 24 de outubro de 2012 12.09.05, K. Frank wrote: >> On Wed, Oct 24, 2012 at 10:56 AM, Thiago Macieira >> >> wrote: >> > On terça-feira, 23 de outubro de 2012 17.19.13, Thiago Maci

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsLow,

2012-10-24 Thread d3fault
Time to split this thread. Since they took "Hi," (our spot!), we'll take "Low," haha On 10/24/12, Alan Ezust wrote: > There are LOTS of reasons why PrimeThreads is slower when it manages its > own threads and > creates mutexes. You listed some of them there, I listed others in my > book. > > Bu

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread Thiago Macieira
On quarta-feira, 24 de outubro de 2012 12.09.05, K. Frank wrote: > On Wed, Oct 24, 2012 at 10:56 AM, Thiago Macieira > > wrote: > > On terça-feira, 23 de outubro de 2012 17.19.13, Thiago Macieira wrote: > >> Well, that's not exactly how processors work. CPU A will eventually get > >> to > >> write

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread K. Frank
Hello Thiago! I still don't follow exactly what you are saying. On Wed, Oct 24, 2012 at 10:56 AM, Thiago Macieira wrote: > On terça-feira, 23 de outubro de 2012 17.19.13, Thiago Macieira wrote: >> Well, that's not exactly how processors work. CPU A will eventually get to >> write the data from i

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread K. Frank
Hi Daniel! On Wed, Oct 24, 2012 at 2:08 AM, Daniel Bowen wrote: >> >> Let me state for the record that I do not use volatiles for thread >> >> synchronization. But the issue at hand is not whether a volatile >> >> can be used for full-featured thread synchronization, but whether >> >> it can be

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-24 Thread Alan Ezust
On Wed, Oct 24, 2012 at 1:08 AM, d3fault wrote: > On 10/23/12, Alan Ezust wrote: > > > > http://www.ics.com/designpatterns is one place where you can see the > book's > > contents and download the code examples. It requires you to > register/login > > but it's free. > > > > Which example are you

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread Thiago Macieira
On terça-feira, 23 de outubro de 2012 17.19.13, Thiago Macieira wrote: > Well, that's not exactly how processors work. CPU A will eventually get to > write the data from its cache back to main RAM. And CPU B will eventually > get to notice that and discard its cache. So the code running on CPU B >

[Interest] autosave on OSX

2012-10-24 Thread Daniel Price
Is it possible to implement autosave in Qt/mac applications as was introduced in OSX Lion (and refined in Mountain Lion)? Has anyone done this? This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal ru

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread Till Oliver Knoll
2012/10/24 Daniel Bowen : >> ... > I'm also quite interested in this topic. There are a handful of places where > I've used a similar pattern > ... > bool A::stopAndWait(unsigned long timeoutMs) > { > m_stop = true; > m_waitCondition.wakeAll(); > return this->wait(timeoutMs)

Re: [Interest] Getting a hostname given the IP Address

2012-10-24 Thread Constantin Makshin
It's "C:\Windows\System32\drivers\etc\hosts". On Wed, Oct 24, 2012 at 5:00 PM, Dan White wrote: > On Linux, if you have no DNS, you can use /etc/hosts > > I do not know if there is a Windows equivalent. > > “Sometimes I think the surest sign that intelligent life exists elsewhere in > the univer

Re: [Interest] Getting a hostname given the IP Address

2012-10-24 Thread Dan White
On Linux, if you have no DNS, you can use /etc/hosts I do not know if there is a Windows equivalent. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message

Re: [Interest] Getting a hostname given the IP Address

2012-10-24 Thread Rainer Wiesenfarth
Am 24.10.2012 09:29, schrieb Joseph W Joshua: The computers in question are in a locked network that does not have Internet access. I will try 8.8.8.8 and get back to you. But all computers in the local networks, 192.168.0.xxx and 10.20.21.xxx respond with the IP address and not the hostname.

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread André Somers
Hi, First of all: thanks for all the insights that many of you'all here have shared in this interesting matter. I really learned something here. Op 24-10-2012 2:19, Thiago Macieira schreef: > Also note that you should not implement a busy-wait loop like that, > like a spinlock. At least on x86,

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,

2012-10-24 Thread Thomas McGuire
Hi, thanks a lot Thiago for expanding on this, especially on those areas I didn't have good knowledge about. I especially didn't know that all loads and stores on x86 are fully ordered, reading something about a "store buffer" made me believe otherwise. Quite interesting topic, this. Thanks, T

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-24 Thread d3fault
On 10/23/12, Alan Ezust wrote: > > http://www.ics.com/designpatterns is one place where you can see the book's > contents and download the code examples. It requires you to register/login > but it's free. > Which example are you referring to? Life or PrimeThreads? I read the whole chapter on QThr

[Interest] QWidget doesn't show on Qt5 and eglfs plugin

2012-10-24 Thread William Zeng
Hello, I'm trying to port my application to Qt5. It's fine on my desktop machine but fails on Beagleboard. I made a simplest application to test and the result is same. My environment is: 1. Qt 5.0 beta1 2. Beagleboard-xM And the simplest application code is : #include #include int main(int ar

Re: [Interest] Getting a hostname given the IP Address

2012-10-24 Thread Joseph W Joshua
On Oct 24, 2012, at 8:40 AM, Thiago Macieira wrote: > On quarta-feira, 24 de outubro de 2012 05.38.03, Joseph W Joshua wrote: >> Hello all, >> >> I am writing an application for our company, and at one point I need to get >> the hostname of a computer on the network given the IP address. If I

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-24 Thread Bo Thorsen
Den 23-10-2012 22:28, d3fault skrev: > On 10/22/12, Bo Thorsen wrote: >> Now I'm getting annoyed. You're the one spreading misinformation here. I >> mentioned the pure computation as one of the cases where I prefer >> subclassing. But that of course doesn't mean you can't do it in other ways. > Yo