Hi, i've got stuck with substring.
On input i've got a string that looks like Sometext (123456). Those digits at the end are random. I need to get only text from that string.
I am learning objective c and am making some small programs. for my current project i am taking a NSBox and changing it's location based on a randomnumber. How do I change the box's location? With C# it was a simple "box.location = anotherLocation" but I can't figure out how to do this in objective c. Any help would be greatly appreciated.
Thanks.
I have a basic html form that adds some data to the page using PHP. I want to make this form field a "Price" field. My html is:
<input class="bids" name="comment" id="comment" tabindex="4" />
How can I fix this field so that users can't enter random letters, dollar signs, dashes, or other weird formats. I want the output to be whole dollars. Sorry I'm a complete programming moron. :)
When I tried to install the openid plugin, I do not get any confirmation msg about the installation.Even I specify some random .git plugin name, It does not give out any error.
Can someone please tell me what about to do to rectify the problem?
I used the following syntax
ruby script/plugin install git://github.com/rails/open_id_authentication.git
Hi,
I am not very strong in "legal or not" questions so I hope someone can help me here. How legal is the following: I create my forum, then choose a random existing forum (not mine), take a user from that forum (username, avatar, etc) and create an identical account at my forum. I know that this is extremely hard to prove and everything but anyway: how legal are the described actions?
Thanks!
Hello,
When the user sets the focus to an edit control on my HTML page, I want some other text to appear "around" it, to give some hints for how to fill out the edit control, and some buttons to fill it with random data. What's the best way to do this with javascript or jquery or whatever?
Thanks.
This is kinda like my earlier question:
http://stackoverflow.com/questions/2451175/c-vector3-type-wall
Except, now, I want to do this to a builtin rather then a user created type.
So I want a type "Length" that behaves just like float -- except I'm going to make it's constructor explicit, so I have to explicitly construct Length objects (rather than have random conversions flying around).
Basically, I'm going into the type-a-lot camp.
Hello,
I can select the first item in the div using
$('.class:first')
Now since I will have random id values, and the class remains the same, I want to access the id of the fourth element, will it be something like this
$('.class:fourth')
using jQuery.
Thanks
Jean
I have a data file which contains integers say in range 0-255 containing about 1000 integers which are random in nature.I want to use that as a mask or to multiply an image which is in RGb and another image which is in gray format. HOw do i go about this, how do i convert/represent this data file in matrix format of image dimension ?Kindly suggest.
also is it possible to obtain a 3D histogram?
Me and my friends play Age of Empires every weekend and create an Ad-hoc network each time before playing. But each time we all get the SAME IP Address even if a new ad-hoc network is created. Is this something to do with the Game's algorithm or does the laptop remember our previous IP Address.
EDIT:
What is the algorithm that is used to distribute the IP Addresses? If the algorithm uses random function how come same IP addresses are being allocated.
hi , i am popualte the data from MS access To Excel Using VBA during the population excel sheet it automatically set random width for thier cells. it is possible to set width equally for all cells using VBA thanks in advance
How do I dynamically detect what profile/configuration is being used? I know that you can dynamically detect supported classes, but I would be surprised if picking a random class that should only be in a particular profile/configuration were the proper way of doing this.
This page work in Firefox but not in IE7
http://www.robwalshonline.com/demos/randomImageDemo/randomImage_plugin.html
This is page of plugin http://www.robwalshonline.com/posts/jquery-plugin-random-image-on-page-load/
How to get this work in all browser FF, safari, chrome and IE 6, 7 ,8
I have two dropdowns in my JSP page
1. lstA
test1
test2
test3
test4
2. lstB
Now on selection of lstA, I want to populate all the items of lstA into lstB except the select one, also the content of lstA should remain the same.
How can I achieve this?
I tried to do it, but from lstA some random items get removed, which is quite wired.
Supposing that memory is not an issue does targeting a 64 bit OS make a C/C++ Windows console application run faster?
Update: Prompted by a few comments/answers the application involves statistical algorithms (e.g., linear algebra, randomnumber draws etc).
I have a bunch of strings which may of may not have random symbols and numbers in them. Some examples are:
contains(reserved[j])){
close();
i++){
letters[20]=word
I want to find any character that is NOT a letter, and replace it with a white space, so the above examples look like:
contains reserved j
close
i
letters word
What is the best way to do this?
Hi,
If I have a column, set as primary index, and set as INT.
If I don't set it as auto increment and just insert random integers which are unique into it, does that slow down future queries compared to autincrementing?
Does it speed things up if I run OPTIMIZE on a table with its primary and only index as INT? (assuming only 2 columns, and second column is just some INT value)
(the main worry is the upper limit on the autoincrement as theres lots of adds and deletes in my table)
Hello everybody,
JQuery accordion animation (as well as simple hides / shows) looks weird with some browsers (IE, Opera). But Fire Fox and Chrome renders animation perfectly without artifacts.
Html layout tends to shake with IE / Opera during animation as if surrounding paddings / margins are changed for small random value.
How can I minimize this effect.
Is it jquery bug or browsers issue?
Hi,
Just started my first MVC 2.0 .net application. And I set up some default pages like:
/Loa/Register
/Loa/About
But when I request for /Loa/sdfqsdf (random string) I get the "The resource cannot be found." error, how can I redirect this non-existing action to a default action?
Like an "action not found" default action?
thx!
How do I dynamically detect what profile/configuration is being used and what JSRs are supported? I know that you can dynamically detect supported classes, but I would be surprised if picking a random class that should only be in a particular profile/configuration were the proper way of doing this.
I have a script that has a GET variable: $_GET['percentage']
I have a MySQL table of data.
Now lets say that there are 100 rows of data in this table.
In pseudo-code:
SELECT data FROM table
Now would it be possible to select $_GET['percentage'] of random data from table?
For example (again in pseudo-code):
$_GET['percentage'] = 10;
SELECT 10% of data from table order by rand()
If this IS possible, how could I do it?
Do you know a good guide for Java, such as "dive into python" for python?
If I searched google I expect I would find tons of random guides, but trying them all until I found a good one could take ages... that's why I am asking: do you already know one in particular? one you KNOW is good?
I already know C, PHP and a bit of Python, if that matters.
I have table with advertisement in MySQL. I would like to rotate banners by order (NOT RANDOM). What function or mechanism I need to SELECT advertisement from MySQL table to show it in order, like 1, then 2, then 3 ... then again 1,2,3... ?
I am building a website on top of nhibernate. Is there any efficient way to build reports? BY reports, I mean is there anyway to execute a complicated query that grabs random pieces of data? StoreProcedures? Hql?
Can I get single, non mapped values from hql?
I want to run my ruby script x times a day (the number might change) on my linux box. What would be the best way to do so if I do not what it happen at the same time? I want the time (hour and minute) to be random