print_r($pages);
print max($pages);
print min($pages);
shows me
Array ( [0] => 1 [1] => 2 [2] => 3 ) 1 2
While I was expecting the last two numbers to be 3 and 1. How come?
With the recent announcement of .NET 4.0 and Visual Studio 2010, it is becoming ever more difficult to keep track of what .NET Framework versions build on what version of the CLR and belong with which version(s) of Visual Studio.
Is there a definative table that shows these relationships?
I need change all standart error message on my message in Zend_Element_Text
when i use validator('EmailAddress') this validator trows several differnt message.
Value is required and can't be empty
'' is no valid email address in the
basic format local-part@hostname
When i set options setErrorMessage('some my error text')
it string shows on any error several times.
the error looks like
some my error text
some my error text
What the best way to solve this problem ?zf version 1.10.3
Hi, I have a rewrite rule to get clean urls.. the only problem is, google shows some dynamic url and i dont want to serve dynamic urls.
What I want: if a user types in the dynamic url, he gets redirected to the clean url.. example:
http://www.example.com/?index=bananas
(if someone types that in, he gets redirect to the url above)
http://www.examplcom/bananas/
this is my htacces:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond $1 !apple\+banana
RewriteRule ^(.*)\+apple\+banana/$ ?q=$1 [L]
thank you!!
I havve been looking around for something that shows the progress of an upload using Paperclip. I can't find any solutions is there any out there? If not is there any particular progress uploader that can be recommended?
I have to show records in such a way that some selected records should come first. After this, another records come in sorted manner from the same table.
For example, If I select state having stateID = 5 then the corresponding record should come first. after this another records should come in sorted manner.
For this, I tried union but it shows all in sorted.
select state from statemaster where stateid=5
union all
select state from statemaster
where not stateid =5
order by state
Thanks
Hi all,
I'm low level as3 programmer and I need help whit this code:
I have gallery XML file:
1
0
Lokacije
1
1.jpg
2
2
Coaching
1
2.jpg
3
0
0
3.jpg
And:
var loader: URLLoader = new URLLoader();
loader.load(new URLRequest("gallery.xml");
var xml = new XML(evt.target.data);
for each(var item in xml..item) {
centralniText.htmlText = item.slika;
}
only shows last item from XML file:
3.jpg
I want all. Please help.
I've checked my elisp files to make sure that I do not have any bindings that contain Shift+R (and I have not found any). I expect SHIFT+R to print an uppercase character, but instead I get R R undefined inside of the Emacs command line. This is only in C/C++ major modes.
Any suggestions?
Update: Describing the key shows that it is undefined. How would I define it for the normal, expected use (capitalizing the letter R)?
I often read about dependency injection and I did research on google and I understand in theory what it can do and how it works, but I'd like to see an actual code base using it (Java/guice would be preferred).
Can anyone point me to an open source project, where I can see, how it's really used? I think browsing the code and seeing the whole setup shows me more than the ususal snippets in the introduction articles you find around the web. Thanks in advance!
>> I = imread('D:\Works\matlab\SecCode.php.png','png');
>> imshow(I);
The above code always shows an all-black image. What's wrong with it?
The image I'm using is this one:
I'm facing problem in showing FolderBrowserDialog instance created and called from a non-UI thread. It doesn't get renders properly.
Being more specific, it doesn't shows the folder tree but displays only the Make New Folder OK and Cancel
I am very confused something shows 'Changed database context dbname' when I am try to use stored procedure with my php application.Please help me with any idea to overcome.
<a href="link.html" title="Titletext">
...is the code.
I need to use the title attribute because of slimbox, but I want to hide the title-text that shows up when hovering the mouse over the link.
Any ideas?
In visual basic code works as below
MyWorksheet.Range("A1:D1").Formula = "A1B2"
In excel it shows in
A1 as A1B2
B1 as A1B2
C1 as A1B2
D1 as A1B2
what i want do
A1 as A1B2
B1 as A1B3
C1 as A2B4
D1 as A2B5
Thanks in Advance
I have a table of data which represents a series of events that persons do over time, sometimes people do the same thing several times in a row. How to select a result using MS SQL 2008 that shows only disambiguated sequences of those events?
Source data:
Person Event Time
1 2 1
1 2 20
1 2 33
2 1 34
1 4 43
1 2 44
2 3 45
1 2 46
1 3 50
1 3 55
Result:
Person Event
1 2
2 1
1 4
1 2
2 3
1 3
A z buffer is just a 3d array that shows what object should be written in front of another object. each element in the array represents a pixel that holds a value from 0.0 to 1.0. My question is if that is all a z buffer does, then why are some buffers 24bit, 32bit, and 16 bit ??
In my routes.rb I have this:
map.namespace :admin do |admin|
admin.resources :galleries do |galleries|
galleries.resources :gallery_images, :as=>'images'
end
end
rake routes shows the route created like this:
admin_gallery GET /admin/galleries/:id
and when I go to this url in my browser:
http://192.168.2.2:3000/admin/galleries/11/
I get this error:
Unknown action
No action responded to 11
But I would have expected it to use the show action/view, what am I doing wrong?
Is there an easy way to apply CSS/icons to the modal buttons on a jQuery UI modal dialog box?
If I include the HTML to display an icon with the button text, it shows the HTML as text rather than rendering the code.
I'm guessing I could write some jQuery to find the button and overwrite the HTML with what I want, but I'm hoping there's an easier more direct way.
Lately I've been seeing behavior where after an update svn shows certain files as "conflicted" but when I try to edit the conflicts, there are none (The "next conflict" and "previous conflict" buttons are disabled and if I scroll through the file, none of the lines are marked red).
This seems to have started after I started working from a different repository than I had been working with, but I'm not sure if that's related.
I am uploading files(any type) in MySql tables's blob field. Now I am able to get binary data from that field and when I print it, it shows binary data in firbug console. But I want to download that file as it was uploaded.
How can I convert this binary data into orignal file? How to do it in zend?
Thanks
we have several pages as tabs where datatable is used in most of the pages.when we sort on a particular coulmn and exit the page and re enter this page the arrow appears(up /down based on how we left) Although the data is not sorted in the direction the arrow shows.i have set preserveSort and preserveDataMode to false. The arrow is set to true in the column's t:commandSortHeader tag in all the pages. is this a bug or am i missing any setting?I have tried to set forceId to false in t:commandSortHeader but of now use.
is it possible to show/hid a div on a webpage if say three keys are pressed in the correct order on a normal keyboard....
Im trying to hide my login div in drupal and only want it to show if I press say three keys on the keyboard. Dosnt matter if it shows up in source.
any thoughts/links?
cheers
Hi Friends
Can you please send me any example code on label color , by default it shows black color i want to change the color for look and feel in UI please help me ..
Thanking you
My xampp installation 1.7.1 does not seem to work.
http://localhost returns not found error.
Xampp Control panel shows both mysql & apache service running fine.
I'am on windows vista. Frustrated since past 2 weeks to find a solution to this. Any pointers and support will be appreciated!
Thanks a ton folks.
Hi,
The Grails manual shows this example of dependency injecting domain classes:
class Book {
def bookService
def buyBook() {
bookService.buyBook(this)
}
}
However, I tried this out, and bookService is null. My guess is that the dependency injection happens when an object is loaded from the DB, so the following will always return null
new Book().bookService
Can someone confirm this?