Posts

Showing posts from September, 2013

scope - Why does one JavaScript closure work and the other doesn't? -

It is believed that when the user clicks on the first link, it will "1", and the second link will warn, "2", etc.: Version 1: & lt; A href = "#" id = "link1" & gt; Click me & lt; / A & gt; & Lt; A href = "#" id = "link2" & gt; Click me & lt; / A & gt; & Lt; A href = "#" id = "link3" & gt; Click me & lt; / A & gt; & Lt; A href = "#" id = "link4" & gt; Click me & lt; / A & gt; & Lt; A href = "#" id = "link5" & gt; Click me & lt; / A & gt; & Lt; Script type = "text / javascript" & gt; (I = 1; i & lt; = 5; i ++) {document.getElementById ('link' + i) .click = (function () {return function () {var n = i; alert (n); Return false;}}) (); } & Lt; / Script & gt; Version 2: & lt; A href = "#" id = "link1" & gt; Click me ...

iphone - Asynchronous IO with CFWriteStream -

मैं सीएफड्राइटस्ट्रीम शेड्यूल्यूथ रीनल लूप और सीएफड्राइटस्ट्रीम वाइट का उपयोग एसिंक्रोनस आईओ करने के लिए कर रहा हूँ। यहाँ प्रश्न है: ऐसा लगता है कि केवल एक CFWriteStreamWrite कॉल सुरक्षित है (ब्लॉकिंग से मुक्त) प्रति प्रत्येक kCFStreamEventCanAcceptBytes अधिसूचना, क्योंकि दूसरे कॉल से, हम गारंटी नहीं दे सकते कि सॉकेट अधिक डेटा स्वीकार करने के लिए तैयार है। इसलिए यदि हम n CFWriteStreamWrite कॉल करना चाहते हैं, तो हमें "केसीएफस्ट्रीमइवेंटकैनएक्सेप्टबाइट्स" और "कॉलिंग CFWriteStreamWrite" एन बार दोहराना होगा। क्या यह सही है? धन्यवाद! cfwritestreamCanAcceptBytes () स्ट्रीम पर देखने के लिए कि क्या यह है कि / div> अभी भी उस पर लिखना सुरक्षित है।

can not find a declaration for NSXMLElement while working with xmpp framework in iphone sdk -

I am trying to develop the chatting application on the iPhone. For this, I have used the XMPP framework, but when I am trying to integrate it with the encoded project, so I'm getting an error like "I can not find the interface announcement for NSXMLElement" when I see the NSXML document it is a class of Mac OS SDK, not IPhone So how do I solve this problem ??? probably check

WCF REST + WebHttpRelayBinding (Azure AppFabric Service Bus) -

I have a self-hosted WCF REST application that allows JSM to accept and return as a stream with WebMessageBodyStyle Is designed for. I am bypassing DataContractSerializer using WebContentTypeMapper and WebContentFormat.Raw. This works locally well via webHTbbinding, and works fine when I use webhetting relaying and content-type: text / plain Fiddler2, but whenever I use content I use - Type: Application / JS I get the following: 500 Tracking ID: e0281df8-12b4-4914-ab87-314956fb0df3, Timestamp: 07 / 27/2010 12: 32:47 Anyone no My references say that WebHttpBinding came in support of XML and Jason Format and REST services.

linux - Accessing a cygwin symlink from windows -

I am quite new to Sagvin I have created a symlink as follows $ ln -s / var / www / cygdrive / d / foo and when I drive through windows D , Then I see the system code foo is there any way to operate as a folder for windows instead of a file foo ? It is not what I know that does not update the OS for the sync key, rather, it does not Sigwin allows 'simulated' simunes from within the shell. You can set up a shell to use Windows LNK files that you want but ... From: Creating a Shortcut Another problem area is between Unix-style links, which links one file to another, and Microsoft .lnk files, which provides a shortcut for a file. They look the same at first glance, but in reality, quite different. By default, Saigwin does not create a symlink as .lnk files, but there is an alternative to doing this, see the section called "CYGWIN Environment Variables" These are the symlinks. Lnk files are compatible with Windows-built .lnk files, but they are s...

.net - FTPWebRequest behind NAT (PASV,SSL) -

Has anyone used FTP ftps on a remote server behind a NAT Net FTPWebRequest class? My code is as follows: dim URI = "ftp: //" & amp; SRemoteDir & amp; "/" FtpWebRequest = as a dim feet, nothing is resolved servicepoint manager. ServerCertificateValidationCallback = Addressed Valid Certificate FTP = CType (FtpWebRequest.Create (URI), FtpWebRequest) FTP. Cash Policy = New System.Net.Cache.RequestCachePolicy (System.Net.Cache.RequestCacheLevel NoCacheNoStore) ftp.Credentials = New NetworkCredential (sUID, sPw) ftp.EnableSsl = True ftp.Method = WebRequestMethods.Ftp.ListDirectoryDetailsFtpWebResponse = CType Retarded reaction in form (ftp.GetResponse (), FtpWebResponse) Response = Response in the form of stream response. Dim Stream Reader (responses) as GETResponseStream New Stream Reader Dim SB New StringBuilder () sb.Append (streamReader.ReadToEnd) as streamReader.Close () Response Turn off () return sb.ToString () Expiration Return (ex. and I get the...

amazon s3 - s3 Bucket Policy Malformed error -

The following bucket policy is returning a malformed error: {"version": "" "", "ID": "S3 Policy", "Statement": [{"Sid": "1", "Effect": "Allow", "Principal": {"AWS": ["AWS:"], "Action": ["s3: GetObject", "s3: PutObject"], "Resource": "arn: aws: s3 ::: BUCKETNAME / *"]}}} I am trying to create a policy where all files in the BUCKETNAME user AWSID - can be readable by a 65-character hex ID / write I know that works. Any ideas which are returning specifically to the error? I think the brackets have been merged. Try it: {"version": "2008-10 "", "ID": "S3 Policy", "Statement": [{"Sid": "1", "Impact": "Allow", "Principal": {"AWS": ["AWSID" ], "Action": ["S3...

Java Regex Problem -

I have a string that I am trying to remove from the pattern, the string is as follows: (ELT2N (ELTOK wpSA910 wpSA909 wpSA908 wpSA474)) The problem is, I do not know how much effort is being made in the string of strings starting with 'wp' Search, however, I want to remove them all by using a statement. I am currently using the pattern below: personal last static string STARS_LINE_PATTERN = "\\ (\\ s +? (\\ w +?) \\ s +? \\ (\\ s + (\ \ w +) \\ s + (\\ w + \\ s ??) {1,} \\ s + \\) \\ s + \\) "??? The pattern matches the string and 'ELT2N' and 'ELTOK' are returning the string, but 'wp' is not returning the prefixel string. thanks Simon

performance - How to fastly select data from Oracle -

मेरे पास निम्नलिखित ओरेकल तालिका है: खेल id_game int id_user int dt_game DATE एक नया रिकॉर्ड बनाने से पहले मुझे यह अवश्य देखना चाहिए कि एक ही उपयोगकर्ता ने एक गेम को और अधिक नहीं जोड़ा है, जो कि दिन में एन बार होता है। मैं वास्तव में खेला जाने वाला गेम की संख्या का चयन कर रहा हूं आज इस तरह से: गेम के चयन से गिनती (1) के रूप में num_user = ID_USER और to_char (dt_game, 'DD / MM / YYYY') = to_char (sysdate, 'डीडी / एमएम) / YYYY ') मुझे यह बहुत पसंद नहीं है: क्या ऐसा करने का एक बेहतर तरीका है? अग्रिम धन्यवाद c। तिथि रूपांतरण थोड़ा सा व्यर्थ हैं और उस स्तंभ का उपयोग किए जाने वाले किसी भी सूचकांक को रोकने के लिए; आप उस कोड को dt_game & gt; के साथ सरल कर सकते हैं Trunc (sysdate) ।

c# - Kill some processes by .exe file name -

How can I delete some active processes by searching their .exe filenames in C # .net or C ++ Am I quick answer: foreach (process process in GETProcessesByName ( "Whatever")} {Process.Kill (); } (Exclude .exe by process name)

Python: drawbacks to using `signal.alert` to timeout I/O? -

What is the harm to Python I / O timeout? I ask because I have found that socket.settimeout is not completely reliable [0] and I need better control over timeouts for various tasks. [1]. Therefore, as far as I can tell, there are drawbacks: Added signal call overhead (but if you are doing I / O, this is a surprise Should not be) This can be "more complex" if using application threading (but if threading is already being used, then it would be easier to increase a monitor thread). Am I missing anything? [0]: For example, it will not be time to slow down DNS lookups. For example, I want some time to finish reading some time, while others should have more time to read. You probably will not get away from using signals and threads. From: ... Only the main thread can set a new signal handler, and there will be only one in getting the main thread signal (this is implemented by the Python signal module, even so That if the built-in thread implementation s...

jquery - show/hide checkbox based on select option value -

How to show / hide a checkbox based on the selection option value? I want to show a check box on the basis of a single value in the chosen option and when it is chosen another value, then hide it. I'm trying to jquery solution $ ('# abcselect'). Change (function () {$ ('# unknownness'). Toggle ($ (this) .val () = = 'first')}); $ (document) .ready (function () {$ (" Select "). Change (function () {$ (" #Foo ") Toggle ($ (this) .val () ==" something "))}}. Change (); // if the first option is selected on page load}}; Try it out: Also, see and

OSMF YouTube AS3 API -

I am working on an application that needs to load the flyover and youtube video. I'm actually using OSMF and I'm trying to avoid duplication of works by creating a YouTube component and an FLV component. How will you go about it? Ideally, I want to end up with a YouTube category which extends to MediaAlement. Thank you! You can check the source code of the YouTube OSMF plugin developed by the Flash / Strobe Media Playback team: The plugin creates a YouTubeElement class that provides MediaElement, which uses the YouTube API. - Andrew Cuke

Android : References to a Context and memory leaks -

I read that this is a mistake and the source of memory leaks in the Android application is a reference. But it does not explain to me whether it is okay to create a class that looks like this: Public class HelperClass {Private context context; Public HelperClass (reference reference) {this.context = context; } Public Zero myHelperMethod () {// This uses. Context}} And call it with any activity: Public class expands MyActivity activity {Crate on Public Zero (bundled savedinstenstate ) {Helperclass h = new helperclass (this); H.myHelperMethod (); } ... This is fine, and the reason for the memory leak will not be the reason. As soon as on ends, h will end and become eligible for garbage collection. If h was stable, then you will take part in problems only when the references to references come out of the life cycle of reference, then the memory leak will occur. Some useful pointers: Use Context.getApplicationContext () when possible. Be careful while usi...

arm - Why is a GCC cross compile not building `crti.o`? -

In an attempt to create a GCC 4.xx cross compiler for the hand, I lost crti $ BUILD_DIR / File in the subdirectory of gcc . Is saying as a logic with the "crti.o" . I'm assuming that if the cross linking ld is being called, then native /usr/lib/crti.o is not required. I can see that there are many potential sources for a Kritti object in GCC source tree (in which $ SRC_DIR / gcc / config / arm / crti.asm ). How can I configure GCC build to insure this file (left with the ld command)? Here is my configurable line: /x-tools/build/gcc-4.5.0$ ../../ Src / gcc-4.5.0 / configure --target = arm -linux --prefix = / opt / arm-tools --disable-threads --enable-languages ​​= c The real answer is that it should compile crti.o If someone had to make a hand-elf target In creating an arm-linux target, GCC people believe that glibc has already been compiled and This crti.o startup is perfectly appropriate, if you are upgrad...

camera - iPhone Screenshots -

I am using UIGetScreenImage () to get a screenshot of UIImagePickerController. Actually I use the camera overlay and then when I take a screenshot, I have a picture showing the preview of the camera and there was also my overlay on it, which is exactly what I want. UIGetScreenImage () has been banned now, I have not been able to find a way to do this. It just shows black for the camera. EDIT: All my other scenes look fine, not the actual camera preview. Any thoughts ??!?!? At this time I am using that code. UIGFFIBIGIEGGE CONTACTS (Picker.bugs.bds.image); [Elapsed. picture. Layer RenderIncontext: UIGraphicsGreatCertain Contex ()]; CGContextDrawImage (Reference, Limit, camView.CGImage); UIImage * screen image = uGraphicsGetimageFrenchIntegrateTextEX (); UIImageWriteToSavedPhotosAlbum (screen image, zero, zero, zero); UIGraphicsEndImageContext (); Any ideas how can I get the overlay + camera image? Thank you! This is slightly different from yours. CGRCT ScreenTr...

java - tdd with non-trivial algorithms -

In these days I'm coding some data structures in Java (if not all) a lot The only simple interface (add, include, delete) present, but there are non-trivial algorithms under the hood. How can I use TDD technology in this situation? I think the problem is that the tdd (and general unit test) is about testing the interface and the implementation is not that right? If you know any technology to handle this matter, please tell me this. Thank you for your help. You are right that TDD is about testing the interface, and not implementation. He said, why do you check the actual implementation? The point is that if you adequately test the interface, the implementation does not matter . When you find a bug in the implementation, it means that it infringes the interface, exposing it to the outside world, you need to track it down where it infringes the interface is. This is where you write your test case.

iphone - Set UITextView in focus -

I have a UITextView that is editable on the parental scene with some other things. How can I set UITextView to focus on the parental view? call [textfield] First Responder] From Sector

SOLR Tika: add text of file to existing record (ExtractingRequestHandler) -

I am indexing posts in SOLR with "name", "title", and "description" field. I know that I can add documents like this: (or through other interface) / P> Curl ' Post 1 & amp; Commit = true '-f "myfile=@tutorial.html" But this place is the correct post (post 1 above) - is there any parameter that I can pass by just adding to the record Am I In Solar (see literal ), that is, the query for the document and then: / P> http: // localhost: 8983 / solr / update / extract? Literal.id = post1 and literal.name = myName and literal.title = myTitle & literal.description = myDescription & amp; Command = true

localization - Are currency formatting functions actually useful? -

With many languages, such as the built-in currency formatting feature Whatever he does, he uses a number-specific number format to format a number and adds a currency symbol of the culture. The problem here is that the number format is strongly coupled with the currency symbol, number of behaviors in practice should be correct for the surrounding text language, whereas the symbol of currency is the currency being talked about must have to. For example, you will not use American thousand separators while talking about US Dollars in German. Can you think of a practical use for this type of currency formatting, or are they present in the money-oriented management to influence people? The symbol can be overridden as needed. Like your example, if I am embedding the currency value in a string, then I use the string culture for the format, but override the appropriate currency symbol. The rest of the formatting has been omitted. On the other hand, if I am doing a...

python - Efficient way of setting Logging across a Package Module -

I have a package that has many components in it, which will be of great benefit to logging and outputing useful information. What I do not want to do is 'Setup' proper logging for each file anywhere with these lines: Import logging logging. BasicConfig (level = debug) my_function = logging .getLogger ("my_function") my_class = logging.getLogger ("my_class") I have tried some approaches, one of them is a boilerplate code Is adding a class within a utility to a module and try and do something like: from importing from importing set_logging () but here As far as the solutions given above do not appear to me and causes the reasons because there is no __ call __ method in the setLogger. What I liked was that my "set_logging" class reads a config file and reads some basic values, it will not make any difference to what level or type of logging format that I wanted to do in the right way Set from Is there any way to start proper logg...

ruby on rails - authlogic current_user tracking -

I use authlogic for certification and paperclip to the user's profile picture handling attachments. I use the following method to get the current_use defined def current_user_session return @ current_user_session? (@current_user_session) @current_user_session = UserSession.find End Def Current_User return @current_user if defined? (@ Current_user) @current_user = current_user_session & amp; Amp; If the image has changed then the current_user_session.record end and the following after_save callback to recreate the profile image. after_save do | User | If user.image_changed? Delay :: Job.enqueue ImageJob.new (user.id) and end currently used Ughrsasnkfnd call in user mode and see it Ughrseshn docs. Which would update some fields (updated, tokens, etc. but no profile image), resulting in saved user records, which results in a callback firing in my case later. After saving the callback check, to see if there has been a change in the user profile image, which consum...

mysql - lock down view to be uneditable -

I am creating a database that includes public, private (limited to internal) and confidential data (to a lesser extent Limited). There are very specific requirements that the data security is managed by the database, but I am working in an environment where I do not have direct control of the permissions, and requesting change will take time (2-3 days) ). That's why I created a structure to meet our structures without the need of many structures. I created two databases on the same server, which is an internal, table which is just something within some of our network's subnets The second public database can be edited by users, where using an administrator account, I want to highlight the public data in the internal database. Make limited thoughts to the public areas of the girls and it works well. However the data should flow on one side and the idea should not be able to write in the source table. And I can not lock public databases only for silting because public databa...

osx - How can I move MySQL data directory on Mac OS 10.5? (and related questions) -

I have been able to disturb my MySQL database (Mac OS X 10.5) and need help to fix me ! I tried to add an index to a large table (190 million records) and during this time, I had to walk out of disk space. Afterwards realized that the partition with the data directory is very small and so I need to move it. In the beginning I thought I would just copy the data directory to another place, then pressing a symlink in place of the original data directory. But it refused to move! Sudo CP-R / USR / Local / ISSLL / Data Cp: ./data: Permission denied (I did this move Before attempting the mysqld process has stopped) Help! This is not a mysql question, but rather an OS question. I think that you do not have permission to write in the current directory, or there is already a directory in which the 'data' has been given, which you do not have permission, etc. In my experience, MySQL does not like to walk out of disk space Make sure the final record is fine afte...

c# - Throwing exceptions in switch statements when no specified case can be handled -

I've been writing C # for the past 8 years and have become a very protective OOP programmer. Working in a statically typed language, you validate the arguments in such methods and leave the exception, where you will not be in dynamic and more liberal languages. I consider myself a specialist in C # and others are looking for feedback from best C # developers on best practices. Let's say we have an MVC app which is a function.: public JsonResult ChangePassword (string username, string currentPassword, string newPassword) {switch (this. membershipService.ValidateLogin (username, currentPassword)) {case UserValidationResult.BasUsername: case UserValidationResult.BadPassword: // abort: invalid JsonResult return // wrong password username / pass case combo UserValidationResult.TrialExpired // abortion: local Returns JsonResult // with error message that is user Can not log in because he UserValidationResult.Success: Break case ended its trial period; } // Now password is no...

windows mobile - ERROR_DEV_NOT_EXIST when ::CreateFile in C++ MFC? -

I am writing to open a port using this function: handle HFile = :: CreateFile (pszComName, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0,0); // Check whether we can open the tool if (hFile == INVALID_HANDLE_VALUE) {DWORD hh = :: GetLastError (); Error. Format (_T ("Test - [% d]"), HH); AfxMessageBox (error, MB_ICONSTOP); } I can not obtain the port and system error code 55: ERROR_DEV_NOT_EXIST 55 (0x37) from this What can I do to open the port? Thanks Edit: I calculate ports like this: For (UINT i = 1; i I also examined these formats: sPort1.Format (_T ("URT% d"), i); sPort3. Format (_T ("\.. COM% d"), i); sPort4.Format (_T ("\\. \ COM% d"), i); and sPort5.Format (_T ("\ COM% d"), i); But no one could find me.

sorting - how to sort durations with Qt? -

I'm trying to create a QSortFilterProxyModel sorted item from the duration. Prerequisite: Must not be leading zero in hours and minutes If the period is less than one hour, hours will not be displayed If the duration is less than one minute, then 0 minutes and related number seconds should be displayed [0:42] Attempted to store H: mm: ss () as one of the source models, they are one hour or more, and M: SS - if less than an hour What QStrings is alphabetical After sorting, for example, 5:20 "12" than the "more" because its first points higher What a great way to sorting? To set the data for an item, call "SetData", q Set the qetime object straight Display the subclass QItemDelegate and just drag a text, override the size hunt if necessary to set your representative for the column QAbstractItemView :: setItemDelegateForColumn Call. From this perspective, you can display your quarter data from your perspective, and sort corre...

svn ignore not working -

I am using SVN on Mac for iPhone development, and I accidentally added build directory to source control So, I thought I could add folders to the list ignored, and find an article on how to do this. So I run the command: svn propedit svn: ignore ./build as specified here: Then came in the form of Pico Editor , And I added * the first and only line of the file. Then I want to save, but then I go into the step which is not talking about anyone, the file name of the file which I have just edited ... What is this? I have tried ignore.txt, ignore, and others, but ever I try that the build directory (and its subdir / file) can not be added to the ignore list. How do I do this? You should set that property to the directory that you want the pattern, most likely: Excerpt: The solution is to store those unseen patterns that are unique to resources that appear in the directory provided with the directory is likely to. Therefore, the command that follows you is: ...

svn - Subversion commands to add new user and grant all permissions -

Currently, I can not commit to the SVN user. I manually tried to edit the svnserve.conf and passwd files. passwd decreased the line added a line, harry = harrysecret , passwd password-db = passwd in svnserve.conf Added a system user, Harry , password = harrysecret As with the following: - UserAddressHerry passwd harry I am using the SVN + SSH protocol and am able to checkout , But updating, while I'm getting the error is getting the error - Directory 'is not rejected in the path / / repository / permission DB / transaction / 1852-1.txn' But root user. I googled to find the command and found the following. sudo htpasswd -m / etc / subversion / svn-auth-file sally New password: ******* Retype new password: ******* User Adding a password to () This does not work for me. cd ~ mkdir SSIM CMD 700 SSIS touch. Edit any text editor, 'svn-access.conf', by adding the 'permission line' for 'news'...

flex - Actionscript, BorderContainer.addElement(...) doesn't work? -

मेरे पास यह है: पब्लिक क्लास एडेशनलपेन बॉर्डर कॉन्टैनेयर को बढ़ाता है {/ .... निजी फ़ंक्शन संग्रहितडेटाडेटा (ई: इवेंट): शून्य {var titleLabel: Label = new Label (); TitleLabel.text = "सदस्य:"; TitleLabel.height = 100; TitleLabel.x = 1; TitleLabel.y = 1; //titleLabel.visible = true; super.addElement (titleLabel); // .....} समस्या यह है कि यह स्क्रीन पर कुछ भी प्रदर्शित नहीं करता है जहां titleLabel के लिए जगह है। केवल सामग्री के बिना, केवल फलक (आइटम) क्या समस्या है? क्या आप निश्चित हैं कि आपके शीर्षकलेबल की चौड़ाई है? एक शून्य चौड़ाई प्रभावी रूप से, इसे अदृश्य बना देती। कुछ अन्य विचार: क्या आप "this.addElement ()" के बजाय "super.addElement ()" करना चाहते हैं? मैं दोनों काम करने की उम्मीद करता था, लेकिन यह असामान्य वाक्यविन्यास है सामान्य परिस्थितियों में, आपकी त्वचा वर्ग को पोजिशनिंग होना चाहिए और शीर्षक लेबेल को आकार देना चाहिए क्या आपकी त्वचा की कक्षा है? आम तौर पर आप अन्य गुणों को सेट कर सकते हैं, जैसे कि 'पाठ', भाग में जो...

Oracle Forms - Display message blocks rest of the code execution or message doesn't show -

I am trying to show a message on a form of no success what I am doing: when on a new line When I click on, I use WHEN-NEW-RECORD-INSTANCE to enable / disable some form and show the message sometimes it enable / disable, but the message No, then I click on another row and this last message Ikhata, but does not enable / disable ... Some Like I've already tried things: message ( "message"); N: = show _ alert ('message'); Without and without syncronis; I do not think this code is blocking the message ... or I'm missing something ... Did anyone face this problem is? Can anyone tell me different options to show the message and their differences? Thank you. I have been able to fix this by using the WHEN-MOUSE-CLICK trigger instead. I did not want to use it earlier because when I clicked the selected line, it will show this message again, but I did some code verification and fixed it. Someone can turn it off. Thank you.

Calculate time between two times Android -

मूल रूप से मेरे पास एक समय है currentTime = dateFormat.getTimeInstance ()। प्रारूप (नया तारीख()); और मैं गणना करना चाहता हूं कि वर्तमान समय से कितना समय पिछले है किसी भी विचार? ऊपर के रूप में आपका वर्तमान टाइम स्ट्रिंग होगा, इसलिए काम करना कठिन है। यदि आप इसके बजाय दिनांक ऑब्जेक्ट का उपयोग करते हैं: दिनांक दिलचस्प दिनांक = नया दिनांक (); तब आप वास्तविक वर्तमान दिनांक और दिलचस्प दिनांक के बीच मिलीसेकंड में भिन्न पा सकते हैं: (नया दिनांक ())। GetTime () - दिलचस्प डट.टाटाइम () साथ ही टाइम क्लास भी देखें जो कि आप दिनांक श्रेणी के बजाय उपयोग कर सकते हैं।

java - What changes needed to support IPv6 -

What website is needed to support IPv6 and IPv4? What type of connection do I have to accept even when using the socket service in Java? Environment OS - Linux Webbers - Tomek 5.5 If your OS supports IPv6 and is configured correctly, then you do not need to do anything Java / Tomcat side.

Techniques for dependency injection into a domain model -

I have a domain model type I Can I use the ITRs service in the domain model type constructor I will inject (thereby changing everywhere in such a way ITRanslationService requires one of its many properties. I should be concerned about beginners and it should be obtained through NHibenet), even if it is a type of Small portions (many One of the properties); Or can I use any other functional patterns? Do anyone have any relevant experience that they can share? Should I inject the ITRanslationService in the manufacturer of the domain model type Yes, it may be depending on your situation. If you always avoid injections of services in institutions, then this may have an anti pattern. Code which needs to be created instantly, using a factory can be saved from additional manufacturer logic. , Which takes care of dependency injection. NHibernate can also inject services in a single unit through the Creator:

multithreading - delphi zip file within a thread (using TZipMaster) -

I want to zip a file within a thread using the TZipMaster component. The problem is, when I run the program with IDE, I get the error (from Windows) "The program no longer answers. -> Search Online for a solution -> Programs Close "" (I do not know the correct message in English like somehting. " However, zip files were created successfully. Last debugger output Delphi 2009 From: Unload Module: DelZIp179.dll When I go directly to .exe It works fine and I do not get this error, although I am not sure whether I can ignore this error or it is better to fix it? For your answer Thank you! You get this error because your application is doing some heavy processing (zipping) in the main thread And it is not processing Windows messages. This is better to fix this - Either you should process Windows messages while zipping (if Tizp supports the booster) or should move the zip in the background thread More information: I inspect the TZipMaster...

objective c - NSString and NSData Memory Management -

I have the following code to create NSString in which the body of the text file is included and then convert it to NSDT Do it and output it to a file. NSString * particleString = [[NSString alloc] initWithFormat: @ "% @", @ "This is the main part of my file"]; NSDTA * Metawals = [Graphical Data UDP encoding: NSISLTin1 string encoding]; Since I have created the particle string using alloc, I thought I need to release it after converting it to NSDT, so I added But when I add this line my app crashes, however, when I extract that line where I use it to make metaways, then I can secure it I can release the form. Can anyone explain why passing it to NSDT is prevented from issuing it to me? I believe my particle is straightening, what's going on? According to your comment, "Some other string"]; which loses the context of the original particle string, and replaces it with an autoreled version, then you go to release the autorelase versio...

javascript - Can't select HTML5 element's children in IE8 with jQuery selector -

I got some posts with similar issues, but this is something different I read another post after reading jQuery 1.4 I have upgraded to 1.4.2, but the problem still presents itself. I tried to run IE 8 in compatibility mode and nothing seemed to work. Of course, it works perfectly in Chrome. Here's the markup: & lt; Section square = "please wait button" & gt; & Lt; P & gt; & Lt; Img src = "picture / please_white" alt = "please wait" /> & Lt; / P & gt; & Lt; P & gt; & Lt; Input type = "image" src = "image / add_to_cart.png" alt = "add to cart" / & gt; & Lt; / P & gt; & Lt; / Section & gt; Here's just a jQuery selector that does work in this scenario ... $ ('. Please 'Watubutan') Length // 1 And here are the jQuery selectors that will not work! $ ('. PleaseWaitButton'). (Find 'Input') Length // 0 $ ('Please...

r - How to select a subset of rows and columns from a data.frame -

I have it d [d $ age & gt; "2",] And it gives all the rows on which the age is greater than 2 but I only want to return the value in some columns, d $ x and thanks itemprop = "text"> d [d $ age & Gt; "2", c ("x", "y")]

admob - Advertising in my iPhone app -

What do you suggest for advertising platforms in the USA? IAD is advertised outside of the USA. I tried the i'v AdMob, the ad does not even seem to work, most of the time fails to show it, and when showing ads, the ad only shows one advertisement repeatedly ( Some hotel booking) any ideas? Have you tried? I recommend being pasted on a platform such as You have a special service in the ad but if you do not have an advertisement for it, then ask another platform if it is not next. # Google-MobileAds # Pseudo Code: Code to use Google Mobile Ads with #IAd: # To use the code IAd and if AdMob: # code to AdMob other Use: # Your own promotion or your last option Edit: You may have to handle the transition and animation on your own. You may also need to create a new AdMobView for each of your advertising requests made following a quote from the Google Groups discussion. If you need a response from SDK for each ad request, then we recommend that you create a new AdMobVie...

Searching for ultra low power microcontroller options -

I am searching for an ultra low power microcontroller for my upcoming project. Rome ~ 128 Rama ~ 64 Internal ADC ~ 10 Beat etc. Regards Danny Something like MSP 430 ... how about?

linux - how to translate fedora yum source into RHEL? -

I use Fedora 13 on my laptop, and I use 'Yum' to set a "record mediastop" for fun. One day, my boss calls me to install "recordmydesktop" in my computer (whose operating system is Redhat Enterprise 5.2). Yum does not work in your computer! I can not record yum record mydesktop ! I know that the reason for this is in Yama's source, but how can I use Yama in the field at RHEL (RedHat Enterprise) in feedara? Try rpmforge as repository ... a file in /etc/repo.d Edit and add repository as rpmforge ... This should work

c - How to force OpenMPI to use GCC instead of ICC? Is recompiling OpenMPI necessary? -

I have a C-code for parallel computing written for GCC , and I I want to compile the cluster, which apparently uses mpicc via icc . I also wonder if I'm going to openmpi to use GCC for the time being appropriate for the code to be corrected by the ICC Code> ask instead. I do not have admin rights on that cluster, and I really do not want to mess up the original configuration. If it is not possible to set it for example Makefile , then I hope that I can compile the openmpi in my home directory, but After this I need some guidance what should be done after that. Can you help me UPDATE1 Makefile in cc = mpicc CFLAGS + = -DMPI and here are some openmpi files $ mpicc / usr / bin / mpicc lrwxr-xr-x / usr / bin / mpicc - & Gt; Opal_wrapper -rwxr-xr-x / usr / bin / opal_wrapper I know, if I can provide you more information. was able to find the OpenMPI settings for UPDATE2 mpicc $ more / , usr / local / share / openmpi / mpicc- w...

visual studio - How to eliminate certain annoying message during framework source code debugging -

While debugging framework source code, I always get this annoying message from the studio: While loading the file, some bytes have been replaced by the Unicode replacement character C: \ users \ markk \ AppData \ Local \ Temp \ SymbolCache \ src \ source.NET \ 4 \ DEVDIV_TFS \ Dev10 \ Relay \ RTMRel \ ndp \ fx \ Src \ core \ microsoft \ scripting \ compiler \ VariableBinder.cs \ 1305376 \ VariableBinder.cs Unicode (UTF-8) Save file with encoding Original file content Will not preserve RI. As a result, the source code is in modified mode (with an asterisk in the name). It is very disturbing. Does anyone know how to get it away? I am using VS2010. Thank you. It seems that an explosion 2.0 bug I tried but I can not reproduce it. This may be a simple solution: Go to Visual Studio Options -> Debugging in the General Options to get you the exact match to the original version. The need for files should be unchecked. Hope this helps

oracle - How to get HL7 templates for Mirth Connect? -

I'm new to this HL7 standard, but first I worked on the NCPDP standard. I am now trying to find a Mirth Connect open source tool. When I am trying to configure according to the document (user guide) that is provided in the URL, but this document mentions using this HL7 template where I do not find these templates. Can you please help me. I searched in the Internet and some such platforms whose examples I found under the template MSH | ^ ~ \ & | MIRTH_1.7 | DOMAIN | LABTEST || $ {Date.get ('yyyyMMddHHmm')} || ADT ^ A08 | $ {UUID} | P | 1.7 ||| AL | NE | EVN | A08 | $ {Date.get ('yyyyMMddHHmm')} |||| PID ||| $ {Patno} || $ {FAMILY_NAME} ^ $ {first_name} ^ $ {middle_name} ^^^^ || $ {D_o_b} | $ {Sex} ||| $ {Address1} ^ $ {address2} ^ $ {address3} ^^^^ || $ {Phone} | $ {Emp_phone} || $ {Marital_status} | $ {Religion} |||||||||||| PV1 ||||||||||||||||||||||||||||||||||||||||||||||| -00911: invalid character query: select as the PATIENTINFO.PATIEN...

eclipse - question about GwT -

मैं निम्नलिखित है कोड पैकेज e.vogella.gwt.helloworld; Import com.google.gwt.core.client.EntryPoint; Import com.google.gwt.event.dom.client.ClickEvent; Import com.google.gwt.event.dom.client.ClickHandler; Import com.google.gwt.user.client.Window; Import com.google.gwt.user.client.ui.Button; Import com.google.gwt.user.client.ui.Label; Import com.google.gwt.user.client.ui.RootPanel; सार्वजनिक श्रेणी HelloGwt लागू EntryPoint {@Override सार्वजनिक शून्य पर मॉड्यूललोड () {लेबल लेबल = नया लेबल ("हैलो दुनिया"); बटन बटन = नया बटन ("कुछ कहना"); button.addClickHandler (नई ClickHandler () {@Override सार्वजनिक शून्य onClick (ClickEvent घटना) {Window.alert ( "हैलो फिर");}}); । RootPanel.get () (लेबल) जोड़ने; । RootPanel.get () (बटन) को जोड़ने; }} कैसे मुझे ऐसा करने के लिए स्क्रीन पर आउटपुट देता है जब मैं रन पर क्लिक करता हूं मुझे आउटपुट नहीं दिखाता आपको GWT कंपाइलर का उपयोग करके इस कोड को जावास्क्रिप्ट में संकलित करना होगा, और एक ब्राउज़र में कोड को चलाने ...

coldfusion - File upload too large -

I use cffile action = "upload", and it works fine for small files. But yesterday, I tried to upload a 42 meg pdf and it just sat all night. Q: Should I know something about uploading large files? The bigger I define: the one who was sitting all night and never had time off and never uploaded. For example, is there any CFIF or RiaForce routine that was written to handle large files? I'm currently at hosting.com on version 8. In addition to the file upload limit in CF, most web servers (Apache, IIS, etc.) have one Upload limit is. Also check it out.

iphone - how to compare 2 strings -

I have two strings that are started with using nsstring * name1, * name2 ... if ([name1 isEqualToString: name2]) {NSLog ("These are the same names"); } This type of API is the best place to feature

formatting - vertical alignment for FORM INPUT FIELDS in safari and chrome -

I have a selection box with height: 60px When I click on an option for the user, I would like to show on the lower bottom of the selected box ... though Safari and Chrome automatically aligns text in the middle. I have tried increasing line-height, padding-top, margin-top ... but they do not work for Safari / Chrome Please help, if Safari / Please check this kind of style in "impossible" for Chrome, please also thank you in advance! Unfortunately you can not select elements generated by safari and chrome. Unfortunately you can not select elements generated by safari and chrome. What you're working with is the Shadow DOM Wrought: The page that originally creates the browser elements that is being rendered to work as the selection box, but these elements are CSS Can not be styled by. I would recommend using a device as chosen: If you are looking at some heavy styling of the selected box It uses Javascript, allows to move elements at the top of the selection...

osx - Finding the architectures that Python was built for, but from within Python itself -

Basically I am looking for a way to find the following, but without running the system commands from within Python: $ file `which python2.7` / library /.../2.7/bin/python2.7: 2 architecture with Mac-O universal binary / library /.../2.7/ Bin / python2.7 (for architecture i386): Mac-o Executable i386 / library /.../2.7/bin/python2.7 (x86_64 for architecture): Mac OS 64-bit executable x86_64 Something like this: & gt; & Gt; & Gt; Get_mac_python_archs () ['i386', 'x86_64'] & gt; & Gt; & Gt; Possible? As far as I know, in other words, the file Does not, in addition to checking executable files together to see the architecture, is not truly reliable. Although distutils.util.get_platform () comes somewhere nearby, it is based on the configuration information on the Python Build time and the criteria used to be used are between release and distribution of the same release Has changed between also. For example, if you have a Py...

android - Is there a way to expand the notifications with a key press, instead of touch? -

Reason: I'm trying to work Android on a device without touch screen. This is available through the Home screen menu (Home key, Menu key, "Notifications"), The effect is similar to pulling information bars. This lets you use trackball (or equivalent) to select personalized notifications.

perl - Bash: Chroot command passing 2 string parameters or better run a series of commands -

मैं कुछ ऐसा करना चाहूंगा: chroot / mount-point / path / To / script $ var1 $ var 2 क्या यह काम करेगा? क्या इन 2 मापदंडों पर क्रॉल पर्ल लिपि को पारित किया जाएगा? यदि नहीं, तो यह कैसे करें? अन्यथा, बस स्क्रिप्ट में chroot को करने का कोई तरीका है, और फिर perl script.pl $ var1 $ var2 आदि? जैसा कि मैं इसे समझता हूँ, बस उन्हें bash में क्रमिक रूप से लिखना chroot समाप्त होने के बाद ही निष्पादित हो जाएंगे, और नियंत्रण वापस आ जाएगा वापस करने के लिए मेरे पास perl स्थापित नहीं है (यह एक रैमडिस्क PXE से चल रहा है)। चु्रोट को इसे ठीक करना चाहिए। सिर्फ यह सुनिश्चित कर लें कि आपकी पर्ल स्क्रिप्ट क्रोईट संदर्भ से पर्ल इंटरप्रेटर को पा सकते हैं, कि पर्ल एक्जीक्यूटेबल साझा लाइब्रेरीज़ की आवश्यकता है, और यह कि आपके वेरिएबल्स, यदि वे पथ में हैं, तो नए रूट के सापेक्ष पथ हैं, न कि पुराने । आप एक स्थैतिक रूप से जुड़े पर्ल एक्जीक्यूटेबल संकलित करना चाहते हैं, अगर आपके लिए यह आवश्यक है कि chroot में आवश्यक साझा पुस्तकालयों की प्रतिलिपि बनाने से।

.net - SQLDatareader via CLR not returning SQL Message right way -

I execute the following code via CLR, there is no reason why the message has not been printed on the SQL Server , It is required unless the stored procedure returns all the rows (there are approximately 7 billion rows to return) SqlCommand cmd = new SqlCommand (); Cmd.Connection = conn; Cmd.CommandType = CommandType.StoredProcedure; Cmd.CommandText = "spCommand_Select_Rows_For_Delete"; CMD. Comma timeout = 41600; SqlDataReader Reader = cmd.ExecuteReader (); {String strSQL = ""; SqlContext.Pipe.Send (DateTime.Now.ToString () + "- Start working with ProductTable"); While (reader.Read ()) {strSQL = "Remove from product qualified product product =" + Reader ["Product ID"] Toasting (); SqlCommand cmdDelete = New SqlCommand (strSQL, conn); CmdDelete.Connection = conn; CmdDelete.CommandTimeout = 20800; CmdDelete.ExecuteNonQuery (); } SqlContext.Pipe.Send (DateTime.Now.ToString () + "- Completed work with ProductTable"); } Fina...

C# string parsing problem -

I have a file that has been exported with the rows of a ton, in order to parse the file in a systematic order I want to be able to use it easily. I have a sample string: & lt; A href = "http: //www.foxnews.com/us/2010/07/28/cemetery-allows-father-war-veteran-fly-flag-grave/? Test = latestnews" & gt; Agreement reached the graveyard flag & lt; / A & gt; | & Lt; A href = "#" onclick = "foxgrabplayer ('4295654', '' Humiliated humiliated family ''); Return back;" & Gt; & Lt; Img src = "/ i / redes / icon-video gif" & gt; & Lt; / A & gt; & Lt; Br> - & lt; A href = "http://www.foxnews.com/politics/2010/07/27/obama-missing-historic-boy-scout-jamboree-fundraisers-view-taping/" & gt; Obama gets out Scout for 'Scene' & lt; / A & gt; & Lt; Br> - & lt; Strong class = "em" & gt; You decide: & lt; / Strong> & Lt; ...

jQuery multiple character replace -

I have a very simple question. Unfortunately, I could not find an answer. I have just created 2 simple input functions Input 1: & lt; Br / & gt; & Lt; Input type = "text" id = "i1" name = "i1" /> Input 2: & lt; Br / & gt; & Lt; Input type = "text" id = "i2" name = "i2" /> When changing the input 1, I want to reveal the result in Input 2. Apart from this, I should change some characters and I want to make the letter less case (in order to use it) a url). So I have created the following jQuery code: $ ("# i1"). Key (function () {var ptitle = $ ("# I1"). Val (); $ ("# 2"). Val (ptitle.replace ("", "-"). ToLowerCase ());}) ; This works fine, except that when I type a string that has the same character several times to replace it. Then it only changes for the first time. For example: When I write in Input 1: 'About this company'...

c# - Need help understanding how the List<T>.Sort(IComparer(T)) knows the value to sort on -

I am working on a program (learning C #) which creates an object (card) and in the program the deck Like the card from the value which is amazed by the fact that it is able to sort the card deck through the value of the card, when the example of the object is not the passed parameter of the method, but the class object Below is the code to help answer my question - if I were passing the instant object then I would complete it. Class to create an object: class card {public suit suit {get; Set; } Receive public value values; Set; } Public card (suit of suit, value value) {this.Suit = suit; this. Value = value; } Public string name {get {return Value.ToString () + "of" + suit.toString (); }} Public override string toasting () {return name; }} In the second category, I call that method that instantizes an object (CardComparer_byValue) that comes from the interface ICPPrier. This is where my illusion comes in. Sort public zeros () {cards.Sort (new CardComparer_byVal...

Crazy C++ Vector iterator -

मैं घोषणा करता हूं: typedef std :: tr1 :: shared_ptr & lt; वर्ग ए & gt; SharedPtr; और फिर: std :: vector & lt; SharedPtr & gt; Mlist; और: टाइपिंगफ़ास्ट std :: vector & lt; SharedPtr & gt; :: इटरेटर लिस्टइटरेटर; mList.size () की वापसी 0 है, लेकिन जब मैं इटेरेटर का उपयोग करता हूँ, तो यह वेक्टर पर चलता है जो खाली है! यह मैं कैसे इटरेटर का उपयोग करता हूं: के लिए (ListIterator = mList.begin (); it! = MList.end (); यह ++) (* यह) - & gt; कुछ विधि () ; यह " someMethod () " निष्पादित करता है और फिर सेगमेंटेशन फॉल्ट फेंकता है कैसे एक खाली सदिश में चलती है Iterator ???? अधिक जानकारी मैं जीटीके का उपयोग कर रहा हूं, इसलिए मैं मुख्य ऑब्जेक्ट को कैसे पास करता हूँ: g_signal_connect (G_OBJECT (विजेट), "ईवेंट", G_CALLBACK (और क्लासबी :: मज़ेदार), यह यह क्लासबी ही है । और फिर मैं इसे इसे इस तरह से प्राप्त करता हूं: gboolean ClassB :: fun (GtkWidget * विजेट, GdkEvent * event, Classb * डेटा) {// mList यहां है, ...

php - How to make a Joomla "build"? -

In Drupal, it is possible to create "build", which is also known as "Installation Profile" or "Distribution" For those who basically combines several modules for them and your settings, next time you set up the exact site, you do not need to reconfigure all the modules. What is the similar concept of Joomla, and what is it called? If possible please refer to the document. The concept is very simple - you just have a clean installation, you want all the extensions installed and Configure the way you need them. Then copy the files and the database to a new location and the configuration file ( configuration.php ). This is all. This is a very simple process and can be easily automated with a simple php script. I used to do an ASP.NET app that was deploying new installation of Joomla within seconds.

What CSS frameworks have you found useful? -

My excessive frustration with CSS is the inability to work well in different browsers (and different versions of browsers - yes, I'm talking about you IE). What CSS frameworks do people come and what are their specific advantages? I have heard about Object Oriented CSS Structure today, but I do not have the time to look into it anymore. is a CSS framework that aims at reducing the purpose of your development at the time of your development, Gives a solid foundation for making a stylish sheet for sensible typography, useful plug-ins and even printing. What does the Blueprint offer? * A CSS reset which eliminates the difference in the browser * A solid grid that can support the most complex of the layout * Typography based on expert principles, which talk to the web before Are there. * Form styles for great looking user interfaces * Print styling * Plugins for buttons, tabs and sprites to create any webpage ready for paperwork * Tool, Editors and Templates...

debugging - apply decorator to all django error views -

I have my HTTP basic as a decorator who is wrapped around my most of the ideas in the testing venue and on my production There is no BasicAuth site. If debug = false then it only gives the view, otherwise it checks a BasicAuth password. I have just figured out that good debug error pages are still visible to any hacker, though. (Obviously not wrapped in the decorator.) Which exposes all my super secret callbacks! ;) It is not good to highlight things like PayPal IPN callback. (Although I callback PayPal to verify every transaction, obviously (actually Django-PayPal does this for me, thanks for the awesome open source projects!)) My question : How would I wrap all of those error pages in the decorator, too? I do not want to live without my beautiful debug output, it is very useful. Thanks Rainer

silverlight - RadGridView Template Resource -

संसाधन में डालने के लिए टेम्पलेट कैसे बनाएं: & lt; telerikGridView: RadGridView x: नाम = "MyGridView" आइटमसोर्स = "{बाध्यकारी माइस्सोर्स}" स्वत: उत्पन्न कॉलम = "गलत" & gt; & LT; Telerik: RadGridView.Columns & gt; & Lt; टेलीरीकग्रिड दृश्य: ग्रिडव्यूकॉलम हेडर = "आईडी" & gt; & LT; telerikGridView: GridViewColumn.CellTemplate & gt; & LT; DataTemplate & gt; & Lt; TextBlock Text = "{बाध्यकारी आईडी}" / & gt; & Lt; / DataTemplate & gt; & Lt; / telerikGridView: GridViewColumn.CellTemplate & gt; & Lt; / telerikGridView: GridViewColumn & gt; & Lt; telerikGridView: ग्रिडव्यूकॉलम हेडर = "नाम" & gt; & LT; telerikGridView: GridViewColumn.CellTemplate & gt; & LT; DataTemplate & gt; & Lt; TextBlock Text = "{बाध्यकारी NAME}" / & gt; & Lt; / DataTemplate & gt; & Lt; / telerikGridView: GridViewColumn.CellTemplate ...

iphone - How to work with the CABasicAnimations -

I'm very new to animation, I need a CABasicAnimation how to move the image from left to left Implement from top to right. I tried with various examples but I have not succeeded. Allos I'm not using the interface builder. I am using a view controller to implement it. Please help me. Thanks in advance, Shekhar. Something like this should be: CABasicAnimation * anim = [ CABasic Animation Animation]; Anim.fromValue = [NSValue value withCGP: CGPointMake (0,460)]; // Start position anim.toValue = [NSValue value withCGP: CGPointMake (320,0)]; // end position anim.duration = 1.0; [VourImageView.layer addAnimation: For Anime: @ "MoveoverUpRight"]; coded in the browser, there is no guarantee for syntax. See the chapter clear animation

android - com.google.gson.JsonParseException: Failed parsing JSON source: java.io.BufferedReader to Json - perplexed with this problem -

I am trying to parse a Jason object while using GSN in the Android application, the test is very much in the emulator The systematic passage, while I am starting the actual device, the problems start, I get an exception as follows .....: com.google.gson.JsonParseException: unsuccessful Parsing JSON source: java.io. Jason from BufferedReader @ 44848f38 ......: Print Stack Failed Failure JSON Source: Jason from java.io.BufferedReader@44848f38 .......: com.google.gson.JsonParseException: unsuccessful parsing JSON Source: Java From .io.bufferedReader @ 44848f38 to Jason .......: at com.google.gson.JsonParser.parse (JsonParser.java59) ........: In com ... xx .. Allmenus. DiningDetailDetail $ 3.run (Dineridated.Java 361) ........: done by: com.google.gson.ParseException: on row 1, "IDENTIFIER_SANS_EXPONENT> 07-29 on column 1 11: 33: 55.186: Warne / Systems. ARR (2110): One was expected: 07-29 11: 33: 55.186: Warne / Er. (2110): 07-29 11: 33: 55.186: Warns / Syllabus M.Arr (2...

c# - asp.net DropDownList event not firing -

I have a problem with a dropdown list that does not appear as "notice" when the selected index has changed. It looks like something on the form: & asp: dropdown list id = "DDL responseable" runat = "server" & gt; & Lt; / Asp: dropdownlists & gt; There is another dropdown list on the form and when the selected index changes in that index, it reloads using a JavaScript. It works fine but when I select an item from this list and press the Save button on the form, the selected value does not seem to change. I tried to use Autopost = True, but he tried to reload both the lists on their original values. If someone understands what is happening, please tell me please. Do you see the page on the page? Use the ipstbox.Download? If you think this will be the reason for this behavior .. Can you post more code?

java - How to implement the "Shared database, separate schema" multi-tenant strategy -

Through a different schema approach to shared databases I have to enable a web application multi-tenant application Java / J2EE and Oracle Made using 10g. I need to have multiple schemas, a single appessor to use a shared database with one schema per customer. What is the best implementation approach to achieving this? > What should be done at the middle level (app-server) level? Do I need to have multiple host headers per client? How can I join the right schema based on the client, which is accessing the application? At the higher level, there are some things to consider: You probably want to hide the tenancy ideas with the development of employment. In this way, you would probably hide it as much as possible in your infrastructure and keep it aside from your business logic. You do not always want to check that you are in the context of which tenant ... you just want to be in that context. If you are using a unit of work method, then make sure that any unit...

java - Relative path for the Subreport -

I am working with iReport 3.5.0, and I am using a subreport within my main report . I do not want to give full path to the subreport expression, but for example if i have to give "bpSubReport.jasper" as sub-port expression (because sub and main are in the same directory), iReport can find bpSubReport.jasper And compile the main report in bPReport.jasper, but my Java can not apply. It throws an exception net.sf.jasperreports.engine.JRException: the object could not be loaded from place: bpSubReport.jasper You can help me with a relative path for the subreport and give it to the Java app. also know? Thank you. OK I got an answer. You can not do this. You can not use relative paths for your sub-report, you can try compiling the .jrxml files in runtime or something, but relative paths with external servers or file systems do not work.