When is it a good idea to use SingleThreadModel?
Can anyone tell me a concrete example of when the SingleThreadModel is a better idea then simply using the default behaviour and synchronizing critical code?
Thanks,
I certainly cannot. It's inefficient and only helps in single-threading instance variables, which you shouldn't be using to pass info between methods anyway. You still need to synchronize on external resources. Besides that, it's deprecated in Servlet spec 2.4. Don't ever use it.
Similar Messages
-
Is it a good idea to use ABAP objects for reports?
Hello Experts,
Is it a good idea to use ABAP objects instead of the traditional ABAP for coding reports?Hi,
Go throught Document it will Give you eight Reasons why OOABAP Should be used.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/37c5db90-0201-0010-3a9b-d0a5288f3c15
Must go through
Regards,
Gurpreet -
Is it good idea to use style sheet for the bgcolor of a table that is just
is it good idea to use style sheet for the bgcolor of a table that is just being used for formatting
Hi,
CSS is a way to do so. I don't think that there is any problem with using CSS on any kind of table
Frank -
Is it a good idea to use the A/C adapter without the battery installed?
Hi everyone!
I have a question. When using my iBook, is it a good idea or is it adviceable to power my iBook using the A/C adapter only, without the battery installed - for the purpose of preserving my battery? I tend to use my iBook heavily and as a desktop computer replacement.
My iBook is a G4 1.33 Ghz 12" model running OS X Version 10.4.10 and my peripherals are optical mouse, keyboard, powered speakers and an external hard drive.
Thanks.
iBook G4 Mac OS X (10.4.10)Well the service manual says:
"Warning: Never turn on the computer unless all of its internal parts are in place and it is fully reassembled. Operating the missing parts can damage the computer or cause injury."
Without a battery in place the battery connector would be exposed and things always find their way into the opening. I've heard of people keeping a bad battery in place just for that reason. Also if you keep it plugged in all the time it won't lose it's date/time.
If you check "set Date & Time automatically" in the "Date & Time" system preferences the iBook will automatically reset the time if you have a internet connection.
Richard -
Is it a good idea to use oracle database to process the geometry data?
I am working on a map related project. Here are the stops I need to do.
1. load geometry information from a table with spatial filter and other conditions (where clause)
2. get the points from the geometry column (sdo_geometry)
3. transform the coordinates
4. encoding the coordinates
5. output
We have a third party applicaiton that can do both #2 and #3. However the process is slow. Some quick tests show that all the steps from #1 to #4 can be done within oracle and the speed is faster. My concern is if it is a good approach to use oracle, a database server, to do all the data processing that can be done and normally shoudl be done on a web server.
Any adivce please?
(BTW, we use oracle 10g on windows 2008R2 64bit, and we may upgrate to 11g in about a year.)Hi Simon,
Thanks for your help.
Yes all the steps can be done within the database side (Oracle). However I could do the same (extracting the coordinates from the sdo_geometry column, transforming the coordinates and encoding the coordinates) in .net code (web server side) by making use of the new verison of the odp.net. So I have to make a decision now to choose which approach to go, relying on Oracle server to do all the data processing or .net code. I am pretty sure Oracle can process a single request fairly quick, but if tens or even more concurrent requests for the process, I have concerns over the performance or reliability of the database server, especially the server is (a kind of ) beyond of our control (in control of the midware, IS and network team). Somebody said database is just a database and for data storing and retrieving, but may not for processing the data.
Here is more information regarding what we are doing. We use Google Map API to disply parcels. Each time the map is loaded, panned, zoomed, or refreshed (and so on), we need to query the database with spatial filter and some other criteria. The result will be tens or up to handreds of parcels containing hundreds to thousands of coordinates that are extracted from the parcel table that has a sdo_geometry column. We are expecting tens to hundreds of these requests every minute.
Now I am trying to chain every step together and do some tests using both appoachs in order to see which way is more effient and promising. I am guessing there won't be too much difference in terms of the performance for some simple testing unless I run some load testing, or if somebody like you guys can help me out.
1. load geometry information from a table with spatial filter and other conditions (where clause)
Regarding the issues you asked:
====================================
I assume you mean something like: Yes
CREATE TABLE load_table AS SELECT ID, GEOM FROM base_table where SDO_INSIDE(....) = 'TRUE';
2. get the points from the geometry column (sdo_geometry)
I assume you mean something like: Yes
SELECT ID, v.x, v.y FROM load_table l, TABLE(sdo_util.getVertices(l.geom)) t;
(See last comment about data.)
The problem is that we need a lot more information on what it is that you want to do in steps 3 - 5.
3. Transform the coordinates.
What sort of transformation? Rotation, Shift, Scale, Coordinate rounding? Transform from UTM to LatLng
4. Encoding the coordinates
What do you mean by this? Write them out as WKT/KML/GML? Google map encoded polylines
5. Output
Again, output to what, where? A new table? A shapefile? A text file? JSONP formatted data
Also, if you can provide a single sdo_geometry object + data and some example SQL it would help as well.
Here is an example where I take a geometry, rotate it (cf 3. Transform), extract vertices (2. get points), encode it (4. Encoding), and then output to screen (5. Output).
WITH myGeom As (
SELECT 1 as id,
MDSYS.SDO_GEOMETRY(2006, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1,5,2,1), MDSYS.SDO_ORDINATE_ARRAY(355600.52, 5407396.19, 361365.32, 5408106.36, 356488.27, 5409242.37, 357437.46, 5406457.67)) as geom
FROM DUAL
SELECT g.id || ',' || t.x || ',' || t.y as csv
FROM myGeom g,
TABLE (sdo_util.getVertices(
GEOM.Rotate(p_geometry => g.geom,
p_tolerance => 0.005,
p_rotatePt => MDSYS.SDO_Point_Type(357437.46,5406457.67,NULL),
p_rotation => 45 ))) t;
-- Results
CSV
1,355474.91,5405822.39
1,359049.08,5410400.89
1,354797.2,5407755.57
1,357437.46,5406457.67
Now show us what it is you want to do!!
Edited by: James Dong on May 31, 2012 11:41 AM -
When is it a good idea, if ever, to use the font tag?
Wonder if there is ever a need to use the <font> tag since it is deprecated in HTML 3.801.
<font size="3" color="red">This is some text!</font>(sidenote: this was a trick question...it was deprecated in HTML 4.01 )
I'm still on my first cup of coffee, but wasn't it deprecated in 4.0?
http://www.w3.org/TR/REC-html40-971218/present/graphics.html#h-15.2.2
http://www.w3.org/TR/REC-html40/present/graphics.html#edef-FONT
And obsoleted in 4.01 Strict (recommended since 1999)
http://www.w3.org/TR/html401/struct/global.html#version-info
and obsolete in XHTML 1.01 (if not XHTML 1.0)?
http://www.w3.org/TR/xhtml11/doctype.html#s_doctype
Mark A. Boyd
Keep-On-Learnin' -
Is it good idea to use external for bootup disc ?
I'm noticing a slight slow down when my internal HD is being accessed a lot ( 120Gb with 70Gb free on the hd,(4 GbRAM)
Soo, I'd like to speed up the disc speed a little and wondered if it was possible to use my FW800 external HD for running as my bootupdisc and working from that.......this Mini would fly if I could do this ...
It's a G-Tech, Gdrive Q using a 500 Gb 7200 rpm Hitachi disc
So, basically will it speed up my Mini if I use an external 7200 rpm HD as my system drive?
Side question: If so,... The internal 120Gb, Is there a way to configure all this so I could still use the space on the 5200rpm (or is it 4200?) the Mini has inside ?
thanks for looking
kindest,
beccaWell, I thought that I was answering that question, that yes it can be done, yes it should be faster, and that yes, because of both things being true, I planned to do it myself later this month. But perhaps my English is not so good.
The internal should show up on your Mac as a second attached HDD.
As far as the 7200 rpm external FW 800 drive vs the stock 5400 rpm internal sata drive, Dan Frakes, senior MacWorld editor, had this idea tested and he says;
Still, it’s worth noting that the relatively slow laptop drives used in the mini line remain among its limiting factors compared to a traditional desktop Mac. In fact, when we ran the same Finder tests on the $599 Mac mini while booted from a FireWire 800 drive, the results were notably better than with either stock mini; for example, our Finder Unzip Archive test came in at just 1:01 (compared to 1:19 and 1:41 for the two minis booted from their stock drives).
That is why I am going to test using my miniStack as the boot drive when I get it later this month. -
Team,
There is a problem using verizon email as your primary email. If your account is suspended, all email addressed to you is rejected by the verizon servers. This, as a service, is unacceptable. I suggest not using your verizon email as your primary email source since there is a chance that Verizon suspends your account and no email gets to you. I guess sometimes free accounts like gmail, hotmail, and others provide more of a service than those taking your money.
What do you think?
Here is my exchange with a verizon tech support person in a online chat. I will let you know if the emails are retrieved as the tech support person suggests. What do you think?
Chat Subject: FiOS Internet (E-Mail)
Your Question: Team, I opened an issue on 2 September and to date I have not received a reply. The issue number is {edited for privacy}. Until this issue is resolved I cannot receive any email and all emails sent to me are rejected by your servers. This is unsatifactory and I wish it to be resolved asap. thanks.
A Verizon Service Representative will be with you shortly. Thank you. (18:14:30)
Agent Kavita has joined. (18:14:44)
Kavita : Chat ID for this session is 09041020386. (18:14:44)
Kavita(18:15:30): Thank you for contacting the Verizon FIOS technical chat Support. My name is Kavita and I will assist you regarding the technical concerns. We appreciate your patience in reaching us. May I confirm your FIOS telephone number as 703xxxxxxxx ?
ben breeland(18:15:50): Yes. that is correct.
Kavita(18:16:10): Thank you.
ben breeland(18:16:18): you are welcome.
Kavita(18:16:28): For account security reasons, I need to confirm few things quickly. May I have the name and address on the account?
ben breeland(18:17:05): I typed that in earlier, but I will do it again. You should access to it if you work for Verizon.
ben breeland(18:17:31): xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Kavita(18:17:41): In case the chat gets disconnected due to any issue at either end, please re-initiate the chat through the same channel or call our FIOS phone support at 888-553-1555, whichever is convenient.
Kavita(18:17:56): May I have a preferred Email Address where I can send you few troubleshooting steps for future reference?
ben breeland(18:18:45): troubleshooting steps will not resolve this issue, Kavita. Your script is boring me. When do we get to the issue.
ben breelandxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Kavita(18:19:35): Thank you.
ben breeland(18:19:50): You are welcome.
Kavita(18:20:45): I went through your issue description, as I understand you have an open ticket and the issue is not yet resolved. , and that?s the reason that you are contacting us, correct?
ben breeland(18:21:34): Yes. That is correct. I have an open issue, {edited for privacy} , opened 2 September for my emal access and I am contacting you to determine the status of the resolution.
Kavita(18:22:09): You have reached the right person, I will be more than glad to assist you today
ben breeland(18:22:52): Great. You are a super star! Show me how you work it.
Kavita(18:24:52): Please give me a minute while I check the updates on the open ticket.
ben breeland(18:25:07): Sure. Thank you.
Kavita(18:25:47): You are welcome.
Kavita(18:26:02): I truly appreciate your patience.
ben breeland(18:26:58): By the way, did you know that when an account is suspended, all new email is rejected by your servers? So since I opened this issue, all email addressed to my address has been rejected. Is this the policy on all email accounts with your company? If so, why is this the policy?
Kavita(18:28:08): Yes I do see that your account is suspended.
Kavita(18:29:18): Ad regarding the update of the open ticket I see that out technicians are working on it and they will definately get back to by tommorrow morning.
ben breeland(18:29:41): so it will be resolved by tomorrow morning?
ben breeland(18:29:52): Or will I get a call by tomorrow morning?
Kavita(18:30:27): You got it absolutely correct.
ben breeland(18:30:47): what is correct, Kavita. a call? Or resolution?
Kavita(18:32:08): You will get a resolution with a call.
ben breeland(18:32:42): thank you. can you address my question regarding all of the lost email during this period? thank you.
ben breeland(18:33:42): suspended does not mean cancelled. Yet during the suspension all email sent to me was rejected by your servers. This is not a good thing.
Kavita(18:35:43): Alright sir, what I would suggest you is tommorrow morning when you will get a call from the advanced technical support, please do ask thenm about the lost emails because as they were working on the issue, they will be able to answer your question in a better way.
Kavita(18:36:08): Great, I can see your screen now.
ben breeland(18:36:24): Kavita, why do you need to see my screen?
ben breeland(18:37:06): Also, if I am not home - tomorrow is Sunday - will they call until they reach me or leave a message if I am not here? Thanks.
Kavita(18:37:36): I am sorry. I typed by mistake.
Kavita(18:37:51): Yes they can still reach you on sunday,
ben breeland(18:38:03): No problem. And if I am not home, what will they do?
Kavita(18:39:54): They will arrange a call back back and once you reach home you will get the call.
ben breeland(18:40:24): Ok. Thank you very much. I look forward to a resolution sometime tomorrow.
Kavita(18:40:39): Sure.
ben breeland(18:40:50): Sure what?
Kavita(18:41:05): I truly appreciate your patience
Kavita(18:41:20): Surely you will get the resolution.
Kavita(18:41:30): Trust me , you will never have to call back for this resaon .
Kavita(18:41:40): Verizon always wants you to have the best service experience.
ben breeland(18:41:51): Thank you. However, I remain frustrated that all of my emails coming to your servers are rejected and that it continues until tomorrow sometime.
ben breeland(18:42:14): Kavita, I am not so sure Verizon cares about my experience.
Kavita(18:42:49): Verizon believes in permanent resolutions, so we will make sure that you will get the lost emails also.
ben breeland(18:43:11): Thanks, Kavita. I am not sure that is possible.
Kavita(18:43:41): As you are a valued verizon customer, we do care for your experience.
Kavita(18:44:01): My Sincere apologies for the inconvenience caused.
ben breeland(18:44:07): OK. Thanks for your help. I look forward to having this resolved tomorrow.
Kavita(18:44:37): It was noce chatting with you.
Kavita(18:45:12):
Our goal is for you to be completely satisfied with the service you have received and that you recommend us to your friends and colleagues, thank you for choosing Verizon.
Kavita(18:45:28): If you have any other questions, feel free to access live chat again, available daily 8am - 9p, CST or call us 24/7 at 1-888-553-1555. Have a great day
ben breeland(18:46:47): Thanks.
Kavita(18:47:12): You are welcome.You don't go into the details as to why the account was suspended ... that background might be helpful since you're asking others for their opinion. In general it sounds like the account was "deleted" at which point all mail is bounced because the address no longer exists -- but Verizon holds the name in reserve for some period of time to prevent someone from re-registering it in case an error was made and for some level of security, I suppose.
Anyhow ... on your commentary about not using an @verizon.net address as your primary address ... I think you will have this with many providers. Hotmail, Yahoo, and Gmail all do this if you terminate the account (they do have a suspended account due to inactivity feature which operates differently, but pretty much do the same thing for deletions and such. I don't use the @verizon.net account as my primary for a different reason however -- my primary address is provider agnostic. I can move providers (although I'm quite happy with FiOS at the moment) -or- if at some point down the road I have to move out of Verizon territory, my email address will not need to change. I used this little fact to my advantage when I moved from Comcast to Verizon a few years ago -- no one knew I changed providers because my email address didn't change. Now .. I don't use one of the free services for email, I own my own domain name (about $10/year from the likes of GoDaddy) and have my domain hosted on the Google Apps tier (but even without that, GoDaddy will do basic forwarding for you of any email address to whatever mail account you're presently using). Something to think about. -
Ikeep getting offers to clean my imac, the offer is from mackeeper, one should a person clean the mac, and if so is this the product to use or not.
If it were that good, every-other post here would be recommending it. (None do.)
Instead, it is like online SPAM -- in your face, trying to sell you garbage.
Everything you have to have to keep your Mac working right is already installed at the factory. In certain unusual situations, you may need another program or two. Nothing is needed to clean your Mac -- it does not get filthy. -
Is it a good idea to use BRE for Message transformation instead of using Maps?
We are thinking about a scenario of constructing multiple versions of hl7 messages from a source schema. We thought of constructing BRE vocabulary for both source schema and HL7 2.6 schema and then use policy per version with bunch of rules for
transforming the source schema to hl7 schema. We think this will provide more maintainability to tackle future changes but in other way this seems a over kill. Any suggestions or opinions would be highly appreciated. Thanks youIf you are using BizTalk 2010 and above, you can think of using BRE pipeline framework.
Pls read the description below and see if this fits into your requirement.
https://brepipelineframework.codeplex.com/
http://adventuresinsidethemessagebox.wordpress.com/2014/08/16/using-the-bre-pipeline-framework-to-execute-maps-dynamically/
Alternatively, refer:
https://social.msdn.microsoft.com/Forums/en-US/043527f4-cb1f-47b2-ab82-e412c149b9b3/dynamic-mapping-in-biztalk-using-bre?forum=biztalkgeneral
Rachit -
Using layoutmanagers in a game. Good idea?
Is it a good idea to use a layoutmanager to provide the layout for a map and use another layer where I draw the movements? Any suggestions what I should or should not do, techniques? This is for a 2d game schoolproject, but I have no experience in this area.
Forget about using swing/awt components. Check out some of the posts on javagaming.org.
The normal way to draw a map is making a grid of tiles that cover your map, with each grid or tile having a image.
Search dubble buffering, smooth scrolling, and tilesets.
Image[] images; // image for each ground type;
int[][] tiles; // contains the type of ground for each tile.
// tiles = new int[worldWidth / tileSize][worldHeight / tileSize];
int minTileX = cameraX; // where we in the level.
int minTileY = cameraY; // camera is in tile coordinates. ( keeping it simple :) )
for (int x = 0, tileX = 0; tileX < tilesAcross; x += tileSize, tileX++)
for (int y = 0, tileY = 0; tileY < tilesDown; y += tileSize, tileY++)
Image image = images[tiles[minTileX + tileX][minTileY + tileY]];
g.drawImage(image, x, y, tileSize, tileSize, null); -
I like the new iOS 7 for iphone... But i think it's not a good idea to allow switch the iphone on flight mode when it is locked.. What happens if your iphone is stolen or lost? You couldn't be able to locate it using find my iphone... Can i remove this from the bottom menu?
And have your phone set to require a passcode before it can be accessed.
-
when you double click the circle buttom, and the little bar pops up from what you have been using... is it using data while being in there? is it a good idea to minimize evertthing out of there often so its not using more data ? or does it not matter?
thanks!Not sure if it uses data, but that allows you to multitask. To save battery life you should close out of all the apps.
-
I want to get a Mac Air and use my MacBook as a slave when using GoToMyPC. Good idea?
I want to get a Mac Air and use my MacBook as a slave when using GoToMyPC. Good idea?
Why?
-
My client wants an alert system and his focus is on the taskbar. He wants the icon to change, (and ideally even blink) and also to have some beeping when a new work request comes in. It needs to run constantly, and grab the attention of an operator
who may not be paying much attention to the screen.
I’m excited to develop this, but after years of web development, I feel paralyzed. I must be making this harder than it needs to be, but here’s my plan… I'll start with a windows form, which will run minimized, and have an icon that looks like
a hammer in the taskbar. A timer would continually check for a new service requests. When it sees one it would change the toolbar icon to a red x and sent a few dozen beeps out to the operator. I think I need a windows service running that
checks periodically to see if my windows exe is running. If not, it should start it up. Perhaps this could be a scheduled task, rather than a service.
Some of my questions are;
How do I change the taskbar icon on the fly?
Is this a good idea, or is there an easier way?
Snippets of code or related articles are most welcome!
Thanks!So I created a windows form and added a timer to check for unacknowledged requests. If it finds any, it changes the icon on for the taskbar, and makes a beep. Simple, but it works. However, I'm having a beep of a time trying to figure out
where to put the ico files so they are where they need when I publish it. Others seem to suggest adding them using the properties of the application, under application / resources / Icon and manigest blah blah blah. But I can only seem to add one
there. I need the three different ones. I'm confused! Any suggestions?
private bool iconBig = true;
private Icon redcross = new Icon("..\\NewRequest.ico");
private Icon redcross2 = new Icon("..\\NewRequest2.ico");
private Icon hammer = new Icon("..\\Hammer.ico");
private void timer1_Tick(object sender, EventArgs e)
List<WorkRequest> myWorkRequests = WorkRequestData.WorkRequest_unAcknowledged();
if (myWorkRequests.Count > 0)
for (int i = 0; i < 5; i++)
SystemSounds.Beep.Play();
if (iconBig == true)
iconBig = false;
this.Icon = redcross;
this.Refresh();
else
iconBig = true;
this.Icon = redcross2;
this.Refresh();
else
this.Icon = hammer;
this.Refresh();
Maybe you are looking for
-
Oracle AP - Check Printing formats
Hi, I want to know about the different formats that Oracle supports for check printing. I am aware of the Evergrn check printing facility, but am looking for other possible ways of printing checks in pre-defined formats. Also wanted to know whether a
-
How to make a mass change for incoterms of a scheduling agreement at item level.
Hi SAP Guru, There are many wrongly assigned incoterms in the scheduling agreement at item level by a user exit which was implemented recently in production. May i know if there is any way that we can revert those changes back to the original incoter
-
Keynote Movie Export with Manual Advance doesn't work posted on MobileMe
Hi, After exporting a Keynote Presentation to Quicktime with Manual Advance function checked the Manual Advance function is working perfectly. However, after I post the same Quicktime movie on my Mobile Me gallery (or a webpage via iWeb) the Manual A
-
QT movie suddenly becomes jittery in logic pro! Is this a bug? Please Help
OK, this is very odd behavior, I must have changed some song setting here. My Quick time movie jumps frames and doesn't play smoothly on one song but if i open it in another session it plays fine. I first thought it was a CPU or hardrive problem but
-
Username and password problems
All data appears To be correct. Mail appears at log on despite statement that password/username is wrong. What can be done.