WHICH IS BETTER! (CASE POLL...please pic
http://us.creative.com/products/prod...y=27&product=5
<SPAN>[url="http://pdaden.com/shop/cart.php?target=product&action=view&product_id=690 2&substring=zen+micro">http://pdaden.com/shop/cart.php?target=product&action=view&product_id=690 2&substring=zen+micro[/url]
<SPAN>
<SPAN>What one is better? (excluding the price...just pretend they cost the same, because i dont care about price) tell me why too please
Hmmmm...
Rather than giving opinions, let's find out:
REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.
DATA: f(1) VALUE 'E',
start TYPE i,
end TYPE i,
dif TYPE i.
DO 5 TIMES.
GET RUN TIME FIELD start.
IF f = 'A'.
ELSEIF f = 'B'.
ELSEIF f = 'C'.
ELSEIF f = 'D'.
ELSEIF f = 'E'.
ELSEIF f = 'F'.
ELSEIF f = 'G'.
ELSEIF f = 'H'.
ELSEIF f = 'I'.
ELSEIF f = 'J'.
ENDIF.
GET RUN TIME FIELD end.
dif = end - start.
WRITE: /001 'Time for IF/ELSEIF', ':', dif, 'microseconds'.
GET RUN TIME FIELD start.
CASE f.
WHEN 'A'.
WHEN 'B'.
WHEN 'C'.
WHEN 'D'.
WHEN 'E'.
WHEN 'F'.
WHEN 'G'.
WHEN 'H'.
WHEN 'I'.
WHEN 'J'.
ENDCASE.
GET RUN TIME FIELD end.
dif = end - start.
WRITE: /001 'Time for CASE ', ':', dif, 'microseconds'.
SKIP 1.
ENDDO.
Rob
Similar Messages
-
Which is better smart cover or snugg case
hi i have both and i hate the snugg it makes the ipad look bad and takes the look away and i used the smart cover and i like it lot better so which is better smart cover or snugg case
Personal preference. You just voted for the smart cover.
Cheers, Tom -
Please tell me, which is better either BASE64 or Quoted-Printable.
Hello all.
Does anyone tell me, Which is better on MIME either BASE64 or Quoted-Printable?
I'm not so familiar with MIME.
Any Opinion will be appreciated.
Thanks.
p.s.
excuse me for my english.BASE64 is better for encoding a binary file, such as gifs, etc...
Quoted-printable is better for ASCII files with some extra chars, such as newlines, =, $, etc..., this algorithm encode only that chars, leaving all other chars unchanged..
look at http://pages.prodigy.net/michael_santovec/decode.htm for further information -
Nac framewwork or nac appliance which is better
hi all can someone just advise which is a better solution the nac appliance or the nac framework.
regards
sushilHi Sushil,
If you are taking a poll, please count me in for the appliance over the NAC framework. I've done both and there are more variables in the framework than when you use the appliances. From my experience, the more variables the harder it is to troubleshoot. Your mileage may vary.
I would also add that doing an implementation which employs a Virtual Gateway, Out-of-Band
for wired users, and Central Deployment is the best use of your time and money.
Of course, if you are using NAC for VPN and Wireless users you still need dedicated CAS devices for these require In-band deployments.
Hope this helps.
Paul -
Title
NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug or feature
Description
Problem Description:
NetStream.send can not send data to peerstreams when using with cirrus. Conflict with documents.
Sorry for tag the build as 11.0.1.3 while the bug is actually on 11.2 beta since the bug report system didn't have 11.2 beta yet.
If you are not responsible for 11.2 beta bug fix, please help a hand to handle this bug to 11.2 team.
This bug is "killing" to your application, so we really appreciate your help. Thanks.
==Publisher==
nc.connect("rtmfp://");
var ns:NetStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
ns.publish("sendtest");
...//after connection success.
ns.send("clientfunction", "ok"); // this line cannot reach subscribers. even if subscribers have client object correctly.
==Subscriber==
nc.connect("rtmfp://");
var ns:NetStream = new NetStream(nc, cirrusid);
var client:Object = new Object();
client.clientfunction = clientfunction; // target function
ns.client = client;
ns.play("sendtest");
Steps to Reproduce:
1. compile the code in the attachment to SendTestExample.swf (not be able to paste it here)
2. run it under flash player 11.2.202.19 beta
3. run it under flash player 11
Actual Result:
HeartBeat is:
Start HeartBeat:
send hello
send hello
send hello
which means NetStream.send was not able to call "clientfunction" as expected.
Expected Result:
Start HeartBeat:
send hello
in client function: hello
send hello
in client function: hello
send hello
in client function: hello
which can call into the clientfunction as flash player 11 did.
Any Workarounds:
I can not find it out since it's an api level bug. But this can be very important for lots of applications which rely on send to do rpc.
Test Configuration
IE8, Firefox under Windows 7
Also have problem under Windows XP (but not well tested on this platform)
App Language(s)
ALL
OS Language(s)
ALL
Platform(s)
Windows 7
Browser(s)
Internet Explorer 8.0
==Attachment==
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.NetStatusEvent;
import flash.events.TimerEvent;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.text.TextField;
import flash.utils.Timer;
import flash.utils.setTimeout;
public class SendTestExample extends Sprite
public static var statusArea:TextField;
var ncServer:NetConnection = new NetConnection();
var nsServer:NetStream;
var ncClient:NetConnection = new NetConnection();
var nsClient:NetStream;
var timer:Timer = new Timer(1000);
public function SendTestExample() {
ncServer.addEventListener("netStatus", onNCStatusServer);
ncServer.connect("rtmfp://p2p.rtmfp.net","99f72ccbed0948d7589dc38a-3ce1b2616680");
statusArea = new TextField();
status("status");
statusArea.x = 0;
statusArea.y = 0;
statusArea.border = true;
statusArea.width = 200;
statusArea.height = 350;
addChild(statusArea);
function onNCStatusServer(event:NetStatusEvent):void {
status("Step 1:");
status("server: " + event.info.code);
status("id: " + ncServer.nearID);
switch (event.info.code) {
case "NetConnection.Connect.Success":
nsServer = new NetStream(ncServer, NetStream.DIRECT_CONNECTIONS);
nsServer.addEventListener(NetStatusEvent.NET_STATUS, onNSStatusServer);
nsServer.publish("sendtest");
ncServer.removeEventListener(NetStatusEvent.NET_STATUS, onNCStatusServer);
ncClient.connect("rtmfp://p2p.rtmfp.net","99f72ccbed0948d7589dc38a-3ce1b2616680");
ncClient.addEventListener("netStatus", onNCStatusClient);
case "NetStream.Publish.BadName":
//status("Please check the name of the publishing stream" );
break;
function onNCStatusClient(event:NetStatusEvent):void {
status("Step 2:");
status("client: " + event.info.code);
status("id: " + ncClient.nearID);
switch (event.info.code) {
case "NetConnection.Connect.Success":
nsClient = new NetStream(ncClient, ncServer.nearID);
var c:Object = new Object();
c["clientfunction"] = clientfunction;
nsClient.client = c;
nsClient.play("sendtest");
ncClient.removeEventListener(NetStatusEvent.NET_STATUS, onNCStatusClient);
//setTimeout(sendHello, 5000);
case "NetStream.Publish.BadName":
//status("Please check the name of the publishing stream" );
break;
protected function onNSStatusServer(event:NetStatusEvent):void {
status("nsserver: " + event.info.code);
if (event.info.code == "NetStream.Play.Start") {
status("Start HeartBeat:");
this.timer.addEventListener(TimerEvent.TIMER, function (e:Event):void {
sendHello();
this.timer.start();
protected function sendHello():void {
status("send hello");
nsServer.send("clientfunction", "hello");
protected function status(msg:String):void
statusArea.appendText(msg + "\n");
trace("ScriptDebug: " + msg);
protected function clientfunction(event:Object):void {
status("in client function: " + event);Thanks for reporting. I can reproduce the bug in house. We will investigate.
Calise -
Which is better and why a = new String("AA") or a = "AA"
Hi,
Which is better and why
String a = new String("AA") or
String a = "AA"
Does invoking a construtor waste memory? Please explain in detail.
Thanks in advance
Deepak> So in case "AA" not there in string pool,
That is not correct.
does new creates "AA" on string pool as well as heap memory?Yes. The literal "AA" points to a pooled String object. The new operator creates a new String object with the same character sequence ("AA"). You can verify this with a little code...
String s = new String("AA");
assert s != "AA";
assert s.equals("AA");
assert s.intern() == "AA";~ -
Which is better for loading?
Hi,
In our applications, in most of the places we are loding some
animated swfs in our mxmls. So, in this place we are using
1.<mx:Loader source="...../xxx.swf" />
is this will be better or
2.<mx:Image sorce="@Embed(...)" >
3. <mx:Image contentPath="..../xx.swf" />
Which opetion will be more performance for our case. anyone
Please, give me soggession on this.
ThanksThe Embed directive will include your SWF (or image) into the
final application SWF, making it that much larger. This has the
benefit that once the application SWF has been loaded into the
Flash Player, the embedded SWF is immediately available. The
downside is that the main SWF will take a bit longer to fully
download.
A dynamic load will not increase the size of the main SWF,
making it faster to load. Once the main SWF has loaded it will
request any SWFs or images specified by the Image and SWFLoader
tags. If you have a lot of content to load, the end-user will have
to wait since only a handful of requests can be processed at once
(usually a browser limitation). The benefit is that your
application is usable and the content loads in the background.
Embed: larger SWF, longer start-up, but imagery immediately
available.
Dynamic: smaller SWF, faster start-up, but you have to wait
for images to be loaded
You have to decide which is best. If you have large content,
dynamically loading it is usually preferred so that the Flex app
starts right away and the user perceives the application as being
responsive. If you have lots of small content, embedding them might
be a better way to go as the user won't see a lot of blank space
and then your content popping in. -
Xerces or JDOM which is better?
hi all
i would like to ask for some opinions.
Xerces and JDOM which is better?
thanks!This dude is right. JDOM6 is the bomb.
here is a little present:
import java.io.*;
import java.io.File;
import java.util.List;
import java.util.Iterator;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.adapters.*;
import org.jdom.adapters.CrimsonDOMAdapter;
import org.jdom.input.DOMBuilder;
import org.jdom.output.XMLOutputter;
public class xmltest
// Global value so it can be ref'd by the tree-adapter
public static Document document;
public static DOMBuilder builder;
public static String product_name, description, price;
public static Double checkPrice;
public static void readDoc()throws IOException, JDOMException
builder = new DOMBuilder();
try {
FileInputStream in = new FileInputStream(new File("settings.xml"));
document = builder.build(in);
in.close();
} catch (IOException ioe) {
ioe.printStackTrace();
public static void listProducts()throws IOException, JDOMException
readDoc();
Element root = document.getRootElement();
List products = root.getChildren();
Iterator productsIterator = products.iterator();
System.out.println("Currently " + products.size() + " products.");
while(productsIterator.hasNext()){
Element productElement = (Element)productsIterator.next();
List product = productElement.getChildren();
System.out.println(productElement.getTextTrim());
Iterator productIterator = product.iterator();
while(productIterator.hasNext()){
Element attElement = (Element)productIterator.next();
System.out.println(attElement.getName() + " : " + attElement.getText());
public static void removeProduct(String productName)throws IOException, JDOMException
readDoc();
Element root = document.getRootElement();
List products = root.getChildren();
Iterator productsIterator = products.iterator();
root.removeChildren();
while(productsIterator.hasNext()){
Element tempElement = (Element)productsIterator.next();
if(!tempElement.getTextTrim().equals(productName)){
root.addContent(tempElement);
document.setRootElement(root);
saveChanges();
public static void addProduct(String product_name, String description, String price)throws IOException, JDOMException
readDoc();
Element product = new Element("product");
Element root = document.getRootElement();
product.addContent(product_name);
product.addContent(new Element("description").addContent(description));
product.addContent(new Element("price").addContent(price).addAttribute("currency", "US"));
root.addContent(product);
saveChanges();
public static void saveChanges(){
try {
XMLOutputter outputter = new XMLOutputter();
FileWriter writer = new FileWriter("settings.xml");
outputter.output(document, writer);
writer.close();
} catch (java.io.IOException e) {
e.printStackTrace();
public static void main(String argv[])throws IOException, JDOMException
int selection;
for(;;){
System.out.println("1. Add a product\n2. Remove a product\n3. View products\n4. exit program");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try{
selection = Integer.parseInt(in.readLine());
switch(selection){
case 1:
System.out.println("Enter product name.");
product_name = in.readLine();
System.out.println("Enter product description.");
description = in.readLine();
System.out.println("Enter product price.");
price = in.readLine();
try{
checkPrice = new Double(price);
addProduct(product_name, description, price);
}catch(Exception e){
System.out.println("The product's price must be a numeric value.");
break;
case 2:
System.out.println("Enter product name to remove.");
product_name = in.readLine();
removeProduct(product_name);
break;
case 3:
listProducts();
break;
case 4:
System.exit(1);
break;
default:
System.out.println("The number you have typed is incompatible with the menu.");
break;
}catch(Exception e){
System.out.println("Please type in a number that maches the menu.");
enjoy.... -
Droplet or Simple Nucleus component which is better ?
Hi,
1)Droplet or Simple Nucleus Component which is better as per memory utilization (performence wise).
2)extending one Droplet in another droplet is recomended or injecting droplet which is recomended ?
Please clear these issues if any body ASAP.
thanksHi,
Droplets are intended to connect front end (jsps) with the business functionality thro nucleus components. They are primarily used for presentation logic which involves business rules.
So, you need to decide to go for a mere nucleus component or droplet based on your requirement.
It is good to have any business logic / common code in a tools class and call that method from the droplet. In this case, you do not need to extend other droplet and can reuse the code from the tools class by injecting the tools component.
Please let me know if this helps. Or else, please specify the requirements more specifically.
Hope this helps.
Keep posting the updates.
Thanks,
Gopinath Ramasamy -
Which is better option to trigger data to XI
Hi Experts,
Happy new Year to all of you.
here I have one query, How we decide at the ERP side, whether we have to use IDOC, RFC and Proxy to trigger the Datafor the XI Interface. I know for the XI Performabce wise proxy is better option.
Please give more inputs of yours on this.
Many Thanks.>
> here I have one query, How we decide at the ERP side, whether we have to use IDOC, RFC and Proxy to trigger the Datafor the XI Interface. I know for the XI Performabce wise proxy is better option.
>
Suppose if you develope scenario between IDoc->PI> in this case you need to import IDoc from SAP System in to PI,when you triegegr IDoc in ERP/ECC the day will reacches PI System.
If you develop RFC>PI-> IN THIS CASE THE PROCEDURE ALSO SAME,like import RFC in to PI,trigger RFC in ERP system...
When you go for Prosy,you need to specify the logic in ABAP Proxy class which program,and interface going to use.
we can say Proxy performce better,but it depends on volume of Data.
Regards,
Raj -
In the below queries which gives better performance
Hi All,
In the below two queries which gives better performance.
Requirement is I need to find if all the 3 score columns are null then I need to assign -ve value -9999 else some +ve value 2
1)
select case when count(CUST_score1)+count(CUST_score2)+count(CUST_score3)=0 then -111111'
else 11 end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
2)
select case whenCUST_score1 is null and CUST_score2 is null and CUST_score3 is null then '-9999'
else '11' end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
Please help, because we have more data in table customer so I need to confirm which is better.
Regards,
Chandauser546757 wrote:
Hi All,
In the below two queries which gives better performance.
Requirement is I need to find if all the 3 score columns are null then I need to assign -ve value -9999 else some +ve value 2
1)
select case when count(CUST_score1)+count(CUST_score2)+count(CUST_score3)=0 then -111111'
else 11 end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
2)
select case whenCUST_score1 is null and CUST_score2 is null and CUST_score3 is null then '-9999'
else '11' end
from
customer
where subscriber_id=1050
and cust_system_code='1882484'
Please help, because we have more data in table customer so I need to confirm which is better.
Regards,
ChandaThe two statements aren't equivalent. If you know that your where condition is restricting to a single row then there is no point in doing a count as that will introduce an additional aggregate function that isn't required for a single row. If you are dealing with multiple rows from the where condition then the second query will return multiple rows whereas the first query returns 1 row, so they don't do the same thing anyway. -
Which is better to use: BEx query or Web Application as an iView in portal?
Hi gurus!
Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing?
What is the way of fixing for example filter item height if I publish BEx query in portal - is there a Web Application that it uses anyhow which I can fix? Or can I use in that case iView -properties in portal?
Thankful for advice
Sariok, means i can use jsp:useBean tag for all my
classes that are not actually bean. so it will be
instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
>
but when should i use import statement in my jsp and
it happen at translation time so will it create any
type of burden for my code if i import multiple
classes.For non-java beans, you need to import the classes, period.
It's not a burden, it's a necessity. -
Which is better for performance Azure SQL Database or SQL Server in Azure VM?
Hi,
We are building an ASP.NET app that will be running on Microsoft Cloud which I think is the new name for Windows Azure. We're expecting this app to have many simultaneous users and want to make sure that we provide excellent performance to end users.
Here are our main concerns/desires:
Performance is paramount. Fast response times are very very important
We want to have as little to do with platform maintenance as possible e.g. managing OS or SQL Server updates, etc.
We are trying to use "out-of-the-box" standard features.
With that said, which option would give us the best possible database performance: a SQL Server instance running in a VM on Azure or SQL Server Database as a fully managed service?
Thanks, Samhello,
SQL Database using shared resources on the Microsft data centre. Microsoft balance the resource usage of SQL Database so that no one application continuously dominates any resource.You can try the
Premium Preview
for Windows Azure SQL Database which offers better performance by guaranteeing a fixed amount of dedicated resources for a database.
If you using SQL Server instance running in a VM, you control the operating system and database configuration. And the
performance of the database depends on many factors such as the size of a virtual machine, and the configuration of the data disks.
Reference:
Choosing between SQL Server in Windows Azure VM & Windows Azure SQL Database
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Which is better??????
which is better?Dam really confused which speaker to buy??
i currently have a creative m2600.but am not getting enough performance or that feel while watching movies like avatar,step up 3 etc......so am planning to buy a 5.1.......not planning but i have decided to buy a 5.1....so..
which is better? the 6160 or 6060 or 6100.
which of these will provide me relly great exprience while playing games and most importantly while whatching hd movies and while listening to music.......
and other than this what i have to ask is...what is this "db" in speakers. i mean while looking at a speaker specs we can see it..like 65db,85db,75db..etc........
and when i compared specs of the three speakers i mentioned above i saw that the 6160 has low "db"........why is that?The specs is just a guide, you won't be able to tell the slight difference in db using just your ears. Besides, it is just a comparison between the level of a music to the level of background noise, it does not necessary mean which speaker sounds better. If possible, please make a trip to your local electronics store and try out the speakers system yourself.
-
Which is better for bulk message scenario in sap xi RFC or Proxy
which is better for bulk message scenario in ( RFC or Proxy ) ?
Edited by: prabhatxi on Aug 6, 2010 4:44 PMProxy will alwaays be better option in this case, as it is adapter less framework, and communication happens directly with XI central integration engine. So it is always fast communication and gives good performance.
But still you should consider other factors, you may consider using RFC as well, as sometime we go for RFC/IDOC as this are the standard interfaces already available rather than creating structure...
May be you can share more info on what type/volume data are you planning to send via XI?
Hope this cleart your doubt..
Divyesh -
Which is Better Mac or Windows?
Which is Better Mac or Windows?
I got told that Windows is better than Mac.
I need to know:
1. How long an iMac lasts and how long a Windows computer last till they die and not work. (Prediction will do)
2. Why lots of people hate Mac and say that Mac's are crap.
3. Is a iMac worth the cost?
4. Is an iMac harder to use than a Windows computer?
Thank You
From Apple is The Best!!!!!!!The case of Apple v. Windows is a subjective argument. Both systems have their merits, both have some aspects that some users don't like. Much depends on what you actually want to use them for.
Here is some reading material for you!
A Customer Experience Index report from Forrester Research came to the conclusion after studying almost 4,600 computer users' experiences from 2008 and asking them to score the ease of use of their computers, how enjoyable the experience is and whether or not the systems fulfill their owners' needs.
http://www.appleinsider.com/articles/09/04/17/apple_trumps_windows_pc_makers_in_ customer_experience_study.html
PC World (December 2010) has also found Apple products and after-sales service the most reliable:
http://www.pcworld.com/article/211074/the_tech_brands_you_can_trust.html
Switching from Windows to Mac:
http://support.apple.com/kb/HT2514?viewlocale=en_US
and
http://support.apple.com/kb/HT2518?viewlocale=en_US
Maybe you are looking for
-
IPod shuffle 2nd Gen. w/Windows Vista + iTunes
I just got my iPod shuffle today @ my work, as I tried out when I got it. I transfer some songs to my ipod shuffle, fully charged (orange light to green), and played some songs on ipod shuffle, itself, working fine. when I get home, as I want to addi
-
Hey, i want to open a Word Document "write protected" via ITS, until now I used the FM ALEWEB_DOWNLOAD". The combination of GUI_DOWNLOAD and WS_EXECUTE works, but the document is opened in the "normal" mode and before the word application opens I get
-
MainStage 2.2.1 released
Symptoms MainStage 2.2.1 is a software update for MainStage 2.2. MainStage 2.2 is a feature upgrade for MainStage 1.0 and 2.0 customers available for purchase on the Mac App Store. MainStage 2.2 includes several new features and fixes. Installation R
-
Hi just new to forum so bare with me. Bought my g10 recently and carried out system restore as instructed on update documents: 1 product recovery cd-rom 2 qosmioplayer recovery cd-rom 3 qosmioplayer update cd-rom 4 qosmio update cd-rom. Notebook has
-
Parse multilingual search string
I'm using Oracle Text to search a multilingual database. The languages include English & Spanish (= white-space delimited) and Chinese (= NON-white-space delimited). Suppose a user enters the following search string (quotes are mine): "word1 word2 wo