If I select a db db1 with mysql_select_db() is it possible to access another db db2 in a query? I am looking for something like SELECT * FROMdb2.sometableWHERE 1
Is it possible to do indexed element access in JPQL like in HQL :
select o from Order o where o.items[0].id = 1234
I couldn't find something related in the JPA 2 specs,
I am targeting EclipseLink JPA here, so if you come up with an EclipseLink solution, that's ok as well, although a JPQL standard solution is preferred.
Hi. I am trying to open a few links in a new window using Jquery rather than _blank so my html remains valid. My code looks like this:
$(document).ready(function() {
$('a[id="external-url"]').click(function(){
$(this).attr('target','_blank');
});
});
This works just fine except when the link is contained within html I have placed on the page using the Jquery load() method. Can anyone explain why and please help with a solution?
I am looking for a library which I can plug into a distributed application which implements any gossip-based membership protocol.
Such a library would allow me to send/receive membership lists, merge received membership lists, etc... Even better would be if the library implemented a protocol with performance O(logn) performance guarantees.
Does anyone know of any open source library like this? It doesn't need to meet all of the aforementioned requirements; even something partially implemented would be helpful.
Hello,
I'm running into a scenario where at random times I am getting "Access Denied" when executing javascript. It is not repeatable and occurs in random places of my application. There is not indication of what is causing it in the logs and I'm really at a loss on this. It seems to be UI problem only. However, there is no reason it should appear as I do not have any such permission checking to could be getting triggered.
Thanks in advance
I had applied the following code as said by you :
byte[] b = YourByteArrayFromDb;
File.WriteAllBytes(MyFilePath, b);
But I am receiving an exception "Access to the path is denied". How do I solve this using ASP.Net with C# ? And is there any format to set the path as string ?
I am using CodeProject's well known Open Session in View to handle NHibernate Sessions. Does it works well with Level 2 Cache? Anyone has succeeded doing it? Should I use NH.Burrow instead? Any advice on l2 cache in asp.net best practices is appreciated.
Edit: link to CodeProject's article: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx
Hi,
Are there any open source implementations of the Ribbon interface available? I need to use them in a GPL licensed software, so the library should be compatible with GPL. The software is in VC++ 2005.
I have a script running on Ruby 1.9.1 on Windows 7
I've distilled my script down to
File.open("????.txt")
and still can't get it to work. I know there are issues with Ruby 1.9 filename handling on windows (Using the Windows ANSI library), but would be happy enough with a work around that is callable from Ruby
I am using <%# MyFormatClass(Eval("fieldname")) % to display data in a grid view on my page. MyFormatClass works fine, but now I want to move it to a central location that can be used by many pages. When I try to access the class <%# Utils.MyFormatClass(Eval("fieldname")) % it no longer works. Is this something we are allowed to do?
I got a bunch of Pictures and Videos in a directory and needs to be displayed in the WPF application, I am thinking about displaying the Win7 Large Icon itself as the preview image. Because that will save me the work of grabbing an appropriate frame from the video file since Windows is doing that job pretty well already.
Any code snippet to access this Shell Icon image data?
Hi,
I have android open home running on my google android phone. I'd like to close it but I can't see how to. I don't want to un-install it just close it. I've tried turning my phone off and on but it boots up with it loaded. Anyone have any ideas?
Thanks
I have a WCF service which I would like to access using ASP.NET. The binding used in the WCF service is basicHttpBinding. How may I do it? Any examples will be really appreciated.
We are looking for open source tool for hosting our internal projects like "Google Project Hosting". The tool should support individual wiki and version control for each project and it should be easy to configure for each project like in google code. We explored trac but seems it lack good support for multiple projects. The tool will be installed in our internal host and cannot use hosted service. A java based tool will be ideal.
I'm working on a multi-lingual search engine. I need to map keywords in English to corresponding words in following languages:
Bulgarian
Catalan
Chinese
Crotian
Czech
Danish
Dutch
Finish
French
German
Greek
Hungarian
Italian
Japanese
Korean
Lithuanian
Litvian
Norwegian
Polish
Portuguese
Romanian
Russian
Slovak
Slovenian
Spanish
Swedish
Thai
Ukrainian
Vietnamese
I already known eudict and stardict. Could you recommend some other free or open source dictionaries cover one or more above languages?
I'm setting up an online ordering system but I'm in Australia and for international customers I'd like to show prices in US dollars or Euros so they don't have to make the mental effort to convert from Australian dollars.
Does anyone know if I can pull up to date exchange rates off the net somewhere in an easy-to-parse format I can access from my PHP script ?
UPDATE: I have now written a PHP class which implements this. You can get the code from my website.
I have an element for my side bar navigation being called from my layouts/default.ctp file, I need to access some data about categories from my Photos controller. How would I go about doing this?
i have one coral draw file and i don't have coral draw software with me.
is this possible to open that file in PSD or convert into PSD or image format.
i search on internet but didn't find any free software or plug in.
Thanks
I have windows 7 prof on a aspire acer one netbook.
I want to access the "Manage wireless networks" panel from
Control Panel - Network and Internet - Network and Sharing Center - Manage wireless networks (on the left bar)
I click it, but it just won't open!
At a certain time each day, I'd like my browser to pop open a tab to a certain URL.
My goals:
1. be able to set the URL from the scheduled task
2. use the default browser (rather than hard-coding it)
I can't seem to accomplish both of these goals at once. I'll post my partial solutions as answers, but I'm hoping someone will have something better.
Hello,
I need to open photo library from my iPhone app just like standard iPhone Camera application does. Is it possible?
I don't want picking-style interface of UIImagePickerController - it has unnecessary controls like "Use" and "Cancel" buttons and does not have full photo library viewing functionality - zooming and sliding between photos etc. My goal is to navigate user to the photo library for viewing photos (with full functionality of viewing photos) and - when user has finished - return to my app - just like standard Camera application does when you preview last-taken photos.
Hello i have problem accessing HttpContext.Current.Application From global.asax its seems to be null every time i try to access it.
How can i to this?
HttpContext.Current.Application.Lock();
HttpContext.Current.Application["Actions"] = "hello";
HttpContext.Current.Application.UnLock();
Thanks
Ho will I go about writing a light weight agent to be installed on machines (windows to begin with) that controls Internet access
Also these agents need to communicate to central server over the Internet.
What areas of technology I should start reading/learning in order to develop it myself?