How to share an associative array throughout the entire instance?
Hi all,
I have an associative array with much data, and it would barely change, I want to keep it in the memory and share it throughout the entire instance, and make sure all sessions of all users get the same associative array, is it possible?
Thanks in advanced.
>
I want to keep it in the memory and share it throughout the entire instance, and make sure all sessions of all users get the same associative array, is it possible?
Why do you want to keep it in memory?
Will using a table for that, which being accessed frequently, will practically always be in the buffer cache, cause performance problems for you?
The only other way to keep data in memory globally accesable to all database sessions is to use the global application context feature. With that you can store [name;value] pairs in memory and easily access (read) them using the SYS_CONTEXT built-in.
Toon
Similar Messages
-
How to share a resource bundle throughout the faces application
adf faces 11g release 1
I want to implement the resource bundle as a java class extending the ListResourceBundle . That works fine for the local project.
I then made one global "resource project" that should be shared in all projects. I tried first deploying the project to a adflib jar file,
but i found that the resource class was not included ! I then deployed to a ordinary jar file and that works fine.
My question is : Is that the way to make a shared resource bundle ?
Regards,
JanHi.
Check following
http://andrejusb.blogspot.com/2009/12/reusing-resource-bundles-from-different.html -
Code for how to read an integer array from the command prompt...
hello,
Could anyone give me the code for how to read an integer array from the command prompt...its very urgent!..If you are using a recent version of Java (5 or later) you can use Scanner:
http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
That page has some example code on it, too. -
Hi, i was wondering how to share movies for example, to the mac desktop from the macbook pro?
Share them how? View them? Copy them?
What kind of movies? DVDs? iTunes? Other MPEG, AVI files, etc... -
My iPad2 is only allowing me to email 30 sec clips of a video that I made which is saved in Photos on my iPad2. How can I get it to email the entire video?
It is most likely a size issue. I have a 3 minute video that's almost 200 megs. If you're just trying to show it, you might consider youtube. if you're wanting to upload/share it then you can try things like Dropbox or other onlilne file sharing programs.
-
Ical events got pushed back by one day throughout the entire calendar
Well, first of all, I can't find the iCal.plist file in my preferences folder.
Either way, I don't think that will solve my problem: the dates and days on my ical are correct, but the events and to-dos are all moved back by one day. It's as if the layer containing the events got accidentally moved around and misplaced on the layer containing dates. I mean, every single one of them throughout the entire calendar history!! I think I pressed something while I was doing something on ical the other day, but this has never happened in the past 4 years. How can I fix this?I've had this same issue 2 times now (I'm also on the same setup as you).
What has worked for me is the workaround listed here:
http://www.macosxhints.com/article.php?story=20070313180838582
To simplify, copy the script shown in the last post into a text file called:
correctBirthdays (no file extension such as .txt is necessary)
and save it into your home directory. Once you've done that:
1. Back up your Address Book with the 'File > Back up Address Book...' menu item
2. Open the Terminal application
3. In Terminal, type *chmod 755 correctBirthdays* to make the script executable.
4. Type *./correctBirthdays -1* and hit enter. If you're coming back from Japan, you'll want to use 1 instead of -1 to move the birthdays forward instead of back a day.
5. That's it. Terminal will report how many birthdays were corrected.
I'm guessing that this problem has been fixed in Mac OS X 10.5 Leopard, and that's why musicale can't reproduce the issue.
Hope this helps!
(and I take no responsibility if you mess something up! It should work though.)
Rafael -
GuiXT valid throughout the entire system
<b>GuiXT</b>
I need to customize my VA01 transaction using GuiXT. But I dont want it
to be user-specific on user's PC but throughout the entire system.
The document that i have seen says that put the GuiXT script file on application server
for the same.
But I have seen that for every user there is Script1 . . Script4
directory setting and this is where the VA01 will look before loading.
So even if I keep the script file on the server, if these Script directory
is not set to the required path, it will not reflect any changes that i have
made.
SO will i have to go on each user machine and give the path
or is there a way out.Hi Flora,
Have you looked transaction code <b>SHD0</b> to create transaction variant to customize SAP screen?
This transaction variant can be applied for user group or individual user.
For more information, please check this link.
http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
Hope this will help.
Regards,
Ferry Lianto -
How to share image and text in the share contract
Hi,
I want to share a movie( title and link of the movie ) from my app to another apps ( whatsapp,facebook etc ) for that i have used following code. but How can i add image to that share if i have web url of the image ( https://i.ytimg.com/vi/J-wiPP76FqQ/mqdefault.jpg
). Please help me
private void RegisterForShare()
DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView();
dataTransferManager.DataRequested += new TypedEventHandler<DataTransferManager,
DataRequestedEventArgs>(this.ShareTextHandler);
private void ShareTextHandler(DataTransferManager sender, DataRequestedEventArgs e)
DataRequest request = e.Request;
request.Data.Properties.Title = shareContent;
request.Data.SetWebLink(videoId);
public async Task share(string content, string videoId)
RegisterForShare();
this.shareContent = "Watch " + content + " on ";
this.videoId = new Uri("http://www.youtube.com/watch?v=" + videoId);
DataTransferManager.ShowShareUI();
Thank youHi Ashia Hassan,
Based on your description, I know that you want to share image and text in the share contract in the Windows Phone Runtime app, then please try to refer to the following article:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh871370.aspx .
Besides, this similar thread may help you, please try to check it:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/9bc7f8fd-0b0c-406e-875d-432d6f196419/need-to-share-image-text-using-share-contract?forum=winappswithcsharp
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I am working on a Garage Band Podcast. I have a 10 second video clip in the Movie track and want to loop it for the entire project. How can I co this?
Sounds like maybe you're using the same channel strip on multiple tracks? Make sure you're creating a new software instrument channel strip for each independent instance of Ultrabeat you want to have. If you use the same CS, then all tracks that use it will have to have the same kit.
-
How do I get a reference to the SecurityServices instance in my web appl?
I would like to use the audit provider of weblogic to log audit event that I send from my servlet. For writing a auditevent I need a reference to the AuditService instance. How do I obtain that? IS there any static class through with I can get references to the security services?
LakshmiPete,
The Thread class's public static Thread currentThread() method will return a reference to the Thread object that represents the thread of execution that is live when the method is invoked. More simply, it provides a reference to the currently executing thread.
So you could use this as a key in a hashtable to represent which thread has a lock on some entity:
// "hash" is a hashtable
// entity is an Object representing something that is locked (like
// a record number or a resource identifier)
hash.put(Thread.currentThread(),entity);I think this answers your question, unless I misunderstood you.
Damian -
Selecting just text fields throughout the entire document when editing forms in Acrobat Pro XI
I edit PDF's all day and it is seriously time consuming to edit the properties of text fields when you can only select a few at a time due to other elements (checkboxes, radio buttons etc.) prohibiting you from simply "Selecting All" elements and editing them all at once. I do not want to change the Appearance properties of all elements, just all of one type throughout the document. Is there a way to do this?
Long story short I would like to just edit all text fields at once, then all checkboxes at once etc.
Thanks for you time!
SeanIn the form edit mode, one can order the display of the fields by "name" or "tab order".
If I sort the fields by name order and then use the control key and left mouse button, I can select various field names and the right mouse click brings up the context menu and I can then select the "Properties" option and I now have the 5 tabs for the common properties for the selected fields. I believe using the control key and the left mouse button is the usual method for selecting specific items in a window listing. -
I Note with the iOS8 update when I now delete a msg from a contact thread it still shows up with the time as a recent msg. How do I delete this from recent without deleting the entire thread?
BC
My understanding is that music syncing is a one way process from computer iTunes to your iPhone. I think what you are asking is to have IOS synching back to an OSX or PC system. The software doesn't work that way.
You either have to uncheck the songs to be synced or create a separate playlist for "BC Canada iPhone" and only sync that playlist.
As well any purchases you made on your iPhone need to be transferred to your iTunes so they can come back to your phone when you re-sync.
Hope this helps, even though it's not the answer you might have wanted.
Cheers -
I purchased a song and when downloading there was an error. No error on the other 8 songs just one and now only plays the first 5 seconds of the song. How do you fix this and do the download again so the entire song is downloaded? Thanks!
Delete the song from your library and re-download it from the Purchases section of the iTunes Store.
http://support.apple.com/kb/PH12491 -
How to inject a mocked dependency into the tested instance?
Hey
my StringGenerator class accesses the workspace being able to look up certain information from different files in the workspace. Now I'm writing an isolated unit test that should work without the eclipse workspace. Unfortunately I'm not able to inject the mocked dependency.
How do I inject the mocked instance of ResourceLookUp into the StringGenerator instance?
The class to be tested:
class StringGenerator {
@Inject extension ResourceLookUp resourceLookUp
def dispatch initStep(TestRequired o) '''
Test Case «o.name.testNameLookUp» (Test Case ID: «o.name») has been successfully performed.'''
The Test:
import static org.mockito.Mockito.*
@RunWith(JUnitParamsRunner)
class StringGeneratorInitialisationTest {
@Inject extension ValidationTestHelper validationTestHelper = new ValidationTestHelper
@Inject extension StringGenerator stringGenerator = new StringGenerator
@Inject extension ParseHelper<Model> parseHelper = new ParseHelper
@Before
def void before() {
var i = new TestStandaloneSetup().createInjectorAndDoEMFRegistration
i.injectMembers(parseHelper)
val resourceLookUp = mock(ResourceLookUp)
when(resourceLookUp.testNameLookUp("TEST XYZ")).thenReturn("TEST NAME AS STRING")
// how do I get this mocked ResourceLookUp instances injected into StringGenerator instance?
i.injectMembers(stringGenerator)
i.injectMembers(validationTestHelper)
// here comes my test ....
I was playing around with the debugger but could not find any solution
Thank you!
KonHey,
noticed that the injection does not work completely as expected. The StringGenerator class gets the mocked ResourceLookUp instance.
class StringGenerator {
@Inject extension ResourceLookUp resourceLookUp
def dispatch initStep(TestRequired o) '''
Test Case «o.name.testNameLookUp» (Test Case ID: «o.name») has been successfully performed.'''
but if the test-case contains an error assertion like model.assertNoErrors my TestValidator gets called. Unfortunately the ResourceLookUp instance there is not the mocked one
class TestValidator extends AbstractTestValidator {
@Inject extension ResourceLookUp resourceLookUp
It somehow ignores my guice setup:
val mockedResourceLookUp = mock(ResourceLookUp)
when(mockedResourceLookUp.testNameLookUp("TEST XYZ")).thenReturn("TEST NAME AS STRING")
bind(ResourceLookUp).toInstance(mockedResourceLookUp)
and uses the "real" class for injection. Is there anything spezial about the dependency injection for the validator class?
Thank you.
Kon -
After scanning a document, I save the file in a PDF format. When attaching the PDF file to a New message it appears on the entire page instead of a PDF icon link that the recipient can click on to open. Why can't I get the PDF file to appear in a icon format? Thank you.
Control mouse click the document and select View as icon.
Maybe you are looking for
-
I've been using Steve Lambert's SelfControl to block myself from certain time-sucking internet sites for a certain period of time every day. I've automated the program launch using an AppleScript that runs based on an iCal alarm, but the problem is t
-
Validate search criteria before pressing Go button
Simple search panel .... PO# with lov and Receipt Number with lov .... search results in the bottom. When user presses Go to search, is there a way to disallow partial values? In other words, before they hit Go, I would like to make sure that there's
-
How can I export a file that may use in Final Cut Pro?
Hello friends, May I know how to export a file that I can use it Final Cut Pro???
-
Use the system lang of AIR applications auto update.
Hello, I recently used the auto update framework for my AIR application, this works fine but i have a small problem. I made some reasearches and i found AIR uses the system lang by default. When i install my package for the first time, the lang is my
-
Troubles with update mechanism in Photoshop CS6 installing Camera Raw 7.3 update
Greetings, Attempted an update using the update mechanism from Bridge. CS6 Design Premium on Mac. Received a couple error messages when it completed. Foolishly I did not write down the details. I thought I could just run the update again. When I