Previous Thread
Next Thread
Print Thread
Page 65 of 116 1 2 63 64 65 66 67 115 116
Joined: Mar 2008
Posts: 1,049
Very Senior Member
OP Offline
Very Senior Member
Joined: Mar 2008
Posts: 1,049
Understood. What can I do to solve this problem in software template?


"A user interface is like a joke. If you have to explain it, it's not that good."
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
I've just added these DAT-info access functions (here you need qmc2NEO.softwareInfo()) to the notes editor in SVN r6402 and made the necessary changes to your template. The $xxxx_INFO$ macros aren't really suitable within <script>'s smile.



A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Mar 2008
Posts: 1,049
Very Senior Member
OP Offline
Very Senior Member
Joined: Mar 2008
Posts: 1,049
Would you please provide an alternative to get the text from software info without having to run these queries?
The cost in terms of processing is very significant and the task is very simple in this case (I only have to put it inside a script because I haven't choice if I want the showing of the software_info configurable...)
The alternative could be as a implementation in QMC2 to support that or even as a programming tip which I could implement that thing configurable but without the need to call a new demanding query... (because I don't know what to do to implementation stay non demanding as it was...)


"A user interface is like a joke. If you have to explain it, it's not that good."
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Sorry but, that's BS smile.. the cost of "all these queries" is literally nothing, even before I changed it to use a database. Believe me, it's extremely fast.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
The issue you have is caused by the fact that the text which the macro gets expanded to may contain single- and double-quotation marks (' and "), and the way you're using the macro causes JS interpreter errors then, which is why nothing gets displayed.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Mar 2008
Posts: 1,049
Very Senior Member
OP Offline
Very Senior Member
Joined: Mar 2008
Posts: 1,049
Ok, I'll send you a PM wink


"A user interface is like a joke. If you have to explain it, it's not that good."
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
And here's a screen shot from latest code to prove that it works smile :



A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Mar 2008
Posts: 1,049
Very Senior Member
OP Offline
Very Senior Member
Joined: Mar 2008
Posts: 1,049
I compiled QMC2 and tested the new implementation here.
Ok, speed is fine smile Thank you!
Maybe I'll do some updates to templates if I find something which worth the work in the code!
I'm open for suggestions wink


"A user interface is like a joke. If you have to explain it, it's not that good."
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Originally Posted By Shideravan
I compiled QMC2 and tested the new implementation here.
Ok, speed is fine smile Thank you!

I'm glad to hear that smile.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Mar 2008
Posts: 1,049
Very Senior Member
OP Offline
Very Senior Member
Joined: Mar 2008
Posts: 1,049
Let me ask...
It's already possible to exclude devices and bios sets from machine search in recent versions of QMC2?


"A user interface is like a joke. If you have to explain it, it's not that good."
Page 65 of 116 1 2 63 64 65 66 67 115 116

Moderated by  qmc2 

Link Copied to Clipboard
Who's Online Now
1 members (judge), 26 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,103
Posts119,286
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com