Hi,
with $("#TextInputElement").select()
I am able to select a text (mark it) in an in an input text field.
Now I only want to select the text in between brackets in that input field.
I have the regular expression match(/-[^-]*-/) to select, but how would I apply this to only select the text inside the input field between brackets?
[noselect]textToBeSelected[/noselect]
thx
I am currently undertaking software engineering program in one of the local universities at my country.
And i am interesting in software and hardware.
So i decided to learn it by myself.
One of my seniors told me to start with PIC 16 or 18 first.
Anyone of here has any links for the related website?
And where can i get a device to program PIC other than ebay?
thx in advance.
hi all,
i'm having a scrollable table with fixed header.
would it be possible to have "snapped scrolling" on the scrollbar - which means that the table rows won't scroll pixel by pixel but snap responding to its row height, for better viewing.
thx
My first question in here. I like the site so much :)
I've a SQL table called Product. In that table I want to make a column for the ID of the product, and I really like to now the right way of write ID because I make alot of ID columns in the long run.
So is it:
"ID"
or
"Id" ?
And also a foreign key in another table, is that called ProductID or ProductId?
Thx guys.
Hi,
Is there a way to know if a remote object implements an interface (I cannot change/add methods to the remote object).
Indeed I cannot use a IsAssignableFrom nor the "as" to test since it's a remote object. Then I have an exception when I try to call a non implemented methods.
Thx
Hi everybody, I have a form in swing with a lot of textfields receiving data, then, the idea is when a click on a botton, the app catch all the data from the textfields. Do you know a good practice for this?, or is it necessary to catch textfield by textfield to get the data?..
Thx for your time.
Is it possible to make a JButton take exactly the size of its text? Since by default, a JButton will have a small amount of padding (both horizontal and vertical) around its text. I would like to remove that padding.
thx
I added a mask to UIView's layer:
CGImageRef maskImageRef = [UIImage imageNamed:"Icon.png"].CGImage;
CALayer maskLayer = [CALayer layer];
maskLayer.contents = (__bridge id)maskImageRef;
self.layer.mask = maskLayer;
Then I use this code to get snapshot from a UIView:
[self.layer renderInContext:mainViewContentContext];
But the mask wasn't drawn.
How to draw self.layer with mask?
Special thx!
I have a main layer, which is the background, that can accepts touch, but it don't have any touch on a UIView layer that on top of the main layer. How can I enable the top UIView can accept touch, thx.
Hi,
Is it possible, if so how(!), to auto redirect a user that doesnt have access to a certain page?
I can see that in many cases this could be a complete pain for a user and confusing, but in my situation it would be ideal.
Thx in advance!
Steve
Yes it's Windows sorry.
I'm using mysqldump with the option -T which creates a sql and a txt file per table.
mysqldump -u user -ppass db -T path
I use that option to be able to restore easily one table.
Now I'd like to restore all the tables.
mysql -u user -ppass db < path/*.sql
Obvously doesn't work
Also, I don't know where do my funcs/procs go.
Thx
I'm developing a reader app for viewing and highlighting proprietary format documents. The documents are 2D. (Might add some cool page flip effects) The interface is similar to that of mobile safari. I have no prior experience with iOS development. Could you guys point me to the right direction? (Things I need to consider, tutorials, sample projects...) THX
I want to create a simple animation, that can only show in a specific area, such as triange. I already have the animation, a rotating picture. but I dont know how to put it into the triangle. the function texture() can only apply images into a specific area. is there other ways to do that? thx!
Maybe i have the wrong context but...
Is there a corelib site for mysql like http://corelib.rubyonrails.org/ for ruby on rails RoR?
Would be nice to have 1 stop shop. thx.
What is the upper limit of records for MySQL database table. I'm wondering about autoincrement field. What would happen if I add milions of records? How to handle this kind of situations?
Thx!
Hi.
I have made android app. my client ask me that change default language at soft keyboard case by case. one case, keyboard should be English keyboard, another, Korean keyboard.
how can i do?
thx.
Hi I wanted to write something basic in assembly under windows, I'm using nasm, but I can't get anything working.
How to write and compile hello world without help of c functions on windows?
thx
Hi all !
I'm using the Sequel (Taps) ruby gem for a remote backup of my production database (PostgreSQL).
I wonder if storing that backup with SQLite is a good solution.
What's your feeling ?
Thx !
Is it possible on an IIS to redirect all files with the file extension .asp to one single file (i.e. switch.php, switch.cfm) and how?
Thx in advance for the upcoming solutions :)
EDIT:
version of IIS is "IIS 6.0"
Hello,
i have a String list
List<String> listString = new ArrayList<String>();
listString.add("faq");
listString.add("general");
listString.add("contact");
I do some processing on the list and i want to sort this list but I want general is still in first position
Thx ;)
Hi,
I would like to select a random line in my database. I saw this solution on a website:
SELECT column FROM table
ORDER BY RAND()
LIMIT 1
This SQL query run but someone said me that it was a non performant query. Is there another solution ?
Thx