Hello y'all,
A general question on what everyone's opinion is on storing SQL queries within a configuration file?
Is this just another bike shed?
Cheers,
Ben
Hi, I'm using the Scanner class in java to go through a a text file and extract each sentence. I'm using the setDelimiter method on my Scanner to the regex:
Pattern.compile("[\\w]*[\\.|?|!][\\s]")
This currently seems to work, but it leaves the whitespace at the end of the sentence. Is there an easy way to match the whitespace at the end but not include it in the result?
I realize this is probably an easy question but I've never used regex before so go easy :)
So this is a really simple question, I just can't find the answer. I have some text in a UITextView, that I would like to have show as blue, and serve as a link to a website. How do I do that in interface builder? Thanks
If think my question is pretty obvious and almost every developer working with UserProfile should be able to answer it.
However, I could not find any help on the django documentation or in the Django Book.
When you want to do a UserProfile form in with Django Forms, you'd like to modify the profile fields as well as some User field.
But there is no forms.UserProfileForm (yet?) !
How do you do that ?
Is there a way to merge column headers on click of a button but the values in the cell should get appeneded with each other?
For instance:
10 15 20 25 30
A B C D E
B C D A E
10 20 30
AB CD E
BC DA E
Actually the value A represents 10-15 B represents 15-20 and so on.Is this possible in JTable?
Please don't confuse my earlier question with this.Here we try to merge two column headers not cells at the same time we append the values of the cell.
I'm currently attempting to create a tabbed interface in a web application, and based on my search, there aren't any 'built in' tab controls in ASP.NET. There are some in the ASP.NET AJAX downloadable toolkit, as well as a wealth of 'pay for use' third party Tab Controls.
My question is: What Tab control have you used for ASP.NET applications, and why do you use it?
Hey,
Quick VHDL question, I don't have access to Xilinx at the moment due to dead laptop, so can't test this.
I was wondering if it's possible to use variables and arithmetic in 'downto' statements, e.g:
proc: process (x)
begin
y <= z(x downto 0) & z(7 downto x);
end process;
Thanks.
The reason I asked this question is that I wanted to create a helper class for Remoting instantiation, and wanted to pass the appropriate app.exe.config (or web.config) file path to the RemotingConfiguration.Configure method, depending on the caller.
Is there a way I could get the name of the config file for both Win and Web apps without checking if the application is Web or WinForms?
Hi. I'm not sure if this question is appropriate for SO but I guess other programmers will run into this issue as well from time to time, so here we go.
I'm building a site where people can sign up, upload content etc. and I was wondering, I probably need some sort of T&C's and Privacy Policy for a site like this. Since I'm just a poor programmer and don't have money for expensive lawyers, where would I get T&C's and a Privacy Policy that would applicable to my site?
My question is why this query does not work?
Cursor c = db.rawQuery("SELECT * FROM tbl_staff WHERE PMajor = '%" + spin.getSelectedItem().toString() + "%'", null);
Cursor c: it is a cursor for handling my query
tbl_staff: my table that consist of PName,PMajor,PCert
spin: is spinner that has values which I need for my database query.
When I use:
if (c.moveToNext())
else (log.d("error query","couldn't do the query!");)
It goes to else statement and moveToNext() doesn't work.
using
System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE.9.0");
i can get hold of the type for an instance of Visual Studio. My question is where was it specified that the type of Visual Studio 2008 instance is "VisualStudio.DTE.9.0".
Can any one direct me how to find it using Ole/Com viewer. I believe the ProgId can be found from there.
That's the question xD
Given an instance of a CCSprite in cocos2d in iphone, what method can I use to obtain the image width and height?
Thanks!
Manuel
Hi,
I use a UITabBarController with 4 views. The first of those 4 views should be able to rotate, the other three not. And now the problem is, when having a tab bar controller you have to set all used views to rotatable (i.e. returning TRUE in shouldAutorotateToInterfaceOrientation).
So, my question is now, can I prevent the three views from rotation even though the shouldAutorotateToInterfaceOrientation method returns TRUE?
Thanks for your help.
Regards
Matthias
Hi, I'm interested in using Google App Engine to host a wiki. I've already seen the question here: http://stackoverflow.com/questions/478760/what-cms-runs-on-google-app-engine about what's a good cms. That's really too broad for me. On my LAMP server I run dokuwiki and I'd really like something akin for the GAppEngine.
Anyone know of something already developed or in development?
Thanks, Grant
StackOverflow implements it like this:
<link rel="stylesheet" href="http://sstatic.net/so/all.css?v=4542">
Every time the referenced files change, the href attribute of the link tag is updated in the HTML code, thus supporting caching and updated referenced files.
My question - how do you retrieve the subversion version of that css file to include in the link? Subversion keywords only tell you the revision of the file you are currently in.
I'm working with PHP/CodeIgniter + jQuery.
Specifically, I want to use IShellFolder, IExtractImage and ShellInterop in order to extract thumbnails from PDF and DOC files.
Also, the namespace I need to import would be handy too
Thanks so much for taking a look at this newbie question :)
Iain
I am using Ubuntu 9.10 and I am a bit of a robotics enthusiast. I have used KiKS (in MATLAB for simulating Khepera robots), MobotSim (in Windows, simulates a point like robot using a BASIC editor) and Player Stage/Gazebo (with C/C++ on Ubuntu Linux).
My question, can MS Robotics Studio be installed in Ubuntu Linux using Wine (I am using 1.1.31) ? Has anyone done it ?
Thanks for your reply !
Hi All,
I have created a static library following this link.
But I am facing Problems in using the library. For reference on how to use static libraries in an iPhone project I followed this link .
But I am stil struggling with the "How to implement static libraries in any other iPhone project?" question.
Thank you all.
I'm looking into developing a game using the flex SDK instead of flash. I'm kind of not sure how to start.
One question I have - does Flex have a timeline like Flash, with frames etc? Is there a main/root timeline?
Its not specific perl question
I am building a perl gui/wxperl application that connect to DB .
I want my application to be a password protected i.e first the user should enter the user and password and then use the appication .
what is the best secure method to store the password could someone provide an idea what is the best method to how should i store the user and the password and how should i retrieve them for authentication ?
if possible could someone provide some perl code how to do this ?
hi guys,
I need a final answer to the following question! :-)
I was wondering if you can enable Health Monitoring for WCF Web services. I'm hosting a number of services in IIS and configured it to send the team email notification when any exceptions are thrown. I feel that Health Monitoring does not work with WCF Services and that I have to configure WCF Tracing http://msdn.microsoft.com/en-us/library/ms733025.aspx
Thank you
To continue to question further I'm more interested in blogs, websites who once in a while release a tutorial, tip or best-practice on the topics I mentioned. For ex :
http://net.tutsplus.com/ is very good website to follow if you wanna learn about or upgrade your knowledge about CSS, HTML, Javascript, PHP .. Is there a website like this for Java and related technologies?
I need to render pdf file to a webbrowser control like how ie render it. question is, i need to get the content of the pdf file from the webbrowser control. how can i do it? help please.
Jepe
Hi,
I want to delete one ABPerson (say, person) in address book then add another one (say new), since some parts of attributes may be reused, I want to clone 'person' to 'new', here is my question, it seems there is NO function to do this clone, I found ABRecordCreateCopy but it seems to be MAC specified, Is there any api I could use to avoid copy each properties one by one ?
Thanks in advance!
Jeff