A user will provide a function with three unknown values: a, b and c. For example:
sin(a+b)+ln(5)*(log(ab)-32/sqrt(abc))
How should I store the function so as to best be able to work with it?
sifr3 text doesn't load many time first time on FF 3.5? I haven't checked on other browser.
If i reload page again then it loads properly.
this is my code
sIFR.replace(futura, {
selector: '#Homepage h1', ratios: [6, 1.24, 9, 1.13, 10, 1.15, 16, 1.09, 21, 1.06, 22, 1.07, 25, 1.04, 26, 1.06, 29, 1.03, 30, 1.05, 31, 1.03, 32, 1.05, 41, 1.04, 58, 1.03, 97, 1.02, 1.01],
wmode: 'transparent',
css: '.sIFR-root { background-color: none; color: #ffffff; }'
});
What exactly does setting the length on a column do in JPA?
@Column(name = "middle_name", nullable = false, length = 32)
public String getMiddleName() {
return this.middleName;
}
I understand that you can use the annotations to generate the database schema based on the entity objects, but does length do any sort of check or truncation when persistence happens, or it solely used for schema creation?
I also realize that JPA can sit on top of various implementations, the implementation I am concerned with in this case, is Hibernate.
I know that if I want to compile a 32 bit .exe for windows on Linux I can just install and use the mingw32 package (e.g. apt-get install mingw32) on linux. What if I want to compile a windows .exe that is 64 bit? Is there tools or a method to do this?
On Ruby 1.8.7 a fresh Rails 2.3.5 environment loads in 4.325 seconds, but on Ruby 1.9.1p378
it takes 15.701s - does anyone have any ideas why?
This is on a 32-bit single core laptop running Ubuntu.
In x86 GNU Assembler there are different suffixes for memory related operations. E.g.:
movb, movs, movw, movl, movq, movt(?)
Now my question is the following:
Does the suffix has ANY effect on how the processor is getting the data out of main memory or will always be one or more 32-bit (x86) chunks loaded into the cache ?
What are the effects beside the memory access?
Hello,
I would like to generate a random filename in unix shell (say tcshell). The filename should consist of random 32 hex letters, e.g.:
c7fdfc8f409c548a10a0a89a791417c5
(to which I will add whatever is neccesary). The point is being able to do it only in shell without resorting to a program.
Im trying to compare these two chars but on win 32 Visual Studio 2008:
if(mychar1 == 'ä' || mychar2 == 'Ä')
Erromess:
Debug Assertion Failed!
File:f\dd\vctools\crt_bld\self_x86\crt\src\xstring
Line 1575
Expression: string subscript out of range
I got a new machine whose OS is windows XP professional x64 edition. Which version of Apache should I install? There doesn't seem to be a build for win 64, I can just see a build for win 32, will it work with win 64?
I have the following schema on MySQL 5.1
CREATE TABLE `mytest` (
`category` varchar(32) ,
`item_name` varchar(255)
KEY `key1` (`category`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
category column is filled with like that
[:parent_parent_cat_id][:parent_cat_id][:leaf_cat_id]
"10000200003000"
if you can search all of the under categories :parent_parent_category_id
SELECT * FROM mytest WHERE category LIKE "10000%";
it's using index key1;
but
How to use index when I wanna search :parent_cat_id?
SELECT * FROM mytest WHERE category LIKE "%20000%";
Do you have a better solutions?
I have created a simple win 32 application..in which it has a textbox and a button in a dialog window..first when I created this..it didnt display the dialog window and then what I did is added the code below to handle the close(WM_CLOSE) of the dialog window...but I want to know, how to handle the button click event..
LRESULT WINAPI myProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if(message == WM_CLOSE )
{
PostQuitMessage(0);
}
return 0;
}
to call the above in my main pgm I used
SetWindowLong(hwnd,DWL_DLGPROC, (long)myProc)
I realise there aren't any official ones, but I was hoping I could grab an unofficial one from somewhere?
I'm running 32-bit Windows XP on x86 hardware (Core 2 Duo).
got some keys with patterns like 4AC59BAA63A64327DCE12C0B2CD1A397 and B9E685495FECFC9854E7DBA508D91213
they have 32 chars and i would like not to decrypt then but to be able to make my own, its something like a hash of a file
In x86 GNU Assembler there are different suffixes for memory related operations. E.g.:
movb, movs, movw, movl, movq, movt(?)
Now my question is the following:
Does the suffix has ANY effect on how the processor is getting the data out of main memory or will always be one or more 32-bit (x86) chunks loaded into the cache ?
What are the effects beside the memory access?
Hi!
I'm learning C right now and so I'm fiddling about with pointers. Is there a way to determine the word width of the CPU in C because I'm writing a small program which prints it's own stack (Because I'm curious how it is structured), so that information would come in handy. Right now I'm using an int pointer, as an integer is 4 Bytes wide and I'm using a 32-bit Intel Atom CPU.
Thanks in advance, C gurus ;o)
example some array {2,8,9,10,21,32,1,6,3...}
first child take (data size / 2) and sort
second chile take (data size / 2) and sort after combine 2 child data and give us a sorted full data, is it possible with some algorithms?
A user will provide a function with three unknown values: a, b and c. For example: sin(a+b)+ln(5)*(log(ab)-32/sqrt(abc)) How should I store the function so as to best be able to work with it?
I am trying to find out the version of Visual Study that is used to compile the python on my computer
It says
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32
What I do not understand is that MSC V.1500. Does it mean it is compiled with 2005?
I cannot find this information on `python.org' neither. Any help is appreciated!
I am using the magic __call method in PHP. Sometimes the function I call is a number. For example the class name is example, then sometimes I want to call example::32
Is this possible or should I look at another alternative.
I have a model:
class Example(models.Model):
unique_hash = models.CharField(max_length=32,unique=True)
content = models.FileField(upload_to='source',blank=True,verbose_name="HTML Content File")
I would like to be able to set the content filename to default to a callable, but I don't see any way to have the callable reference unique_hash (or vice versa). Is this possible?
I have a page where I need to display a pdf and an "I agree" button.
Q: Do I use cfpdf to create a thumbnail of the pdf and display the resulting output?
Chapter 32 of cfWack 8 talks about using cfpdf.
Hi,
I'd like to handle directly 64-bit words on the CUDA platform (eg. uint64_t vars).
I understand, however, that addressing space, registers and the SP architecture are all 32-bit based.
I actually found this to work correctly (on my CUDA cc1.1 card):
__global__ void test64Kernel( uint64_t *word )
{
(*word) <<= 56;
}
but I don't know, for example, how this affects registers usage and the operations per clock cycle count.
Using this jquery code I am trying to change the display from none to block for the
second ul under Sale which is under Belts (It has a belts-1 href). The below code
should be accessing the second element but its not. What am I doing wrong?
$currentCategory = "Belts";
$(".sideCatMenu a:contains('" + currentCategory + "') ul").next(ul).eq(2).css('display', 'block');
I am searching this list
<li class="active"><a href="/sale/" class="parentSide">Sale</a><ul style="display: block;" class="subcat">
<li><a href="/accessories-3/">Accessories</a><ul style="display: none;">
<li><a href="/bags-1/">Bags</a></li>
<li><a href="/wristbands/">Wristbands</a></li>
<li><a href="/dog-collars/">Dog Collars</a></li>
<li><a href="/wallets/">Wallets</a></li>
</ul>
</li>
<li><a href="/ten-dollar-buckles/">Ten Dollar Buckles</a></li>
<li><a href="/belts-1/">Belts</a><ul style="display: none;">
<li><a href="/28-belts/">28" Belts</a></li>
<li><a href="/30-belts/">30" Belts</a></li>
<li><a href="/32-belts/">32" Belts</a></li>
<li><a href="/34-belts/">34" Belts</a></li>
<li><a href="/36-belts/">36" Belts</a></li>
<li><a href="/38-belts/">38" Belts</a></li>
<li><a href="/40-belts/">40" Belts</a></li>
<li><a href="/42-belts/">42" Belts</a></li>
<li><a href="/44-belts/">44" Belts</a></li>
<li><a href="/46-belts/">46" Belts</a></li>
<li><a href="/48-and-larger-belts/">48" and Larger Belts</a></li>
</ul>
</li>
</ul>
</li>
Hi,
I need a function by which I will be able to convert a number to a nearest value of a given multiple.
Eg i want an array of number to be set to the neareast multiple of 16, so 2 = 0, 5 = 0, 11 = 16, 17 = 16, 30 = 32 etc
thanks
Is there a hash function that returns a 16-digit hex value (as MD5 returns 32-digit), or is there a library (for C++) in which I can use MD5 or SHA-1 which returns a 16-digit value