Is there a case insensitive version of the :contains jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?
I want to start learning Zend Framework. My only concern is that the most recent ZF book on Amazon with good reviews teaches version 1.8 of the framework, which is now about a year old. Do you think it would be a good idea to still pick up that book or is it too old now?
I am packing bytes into a struct, and some of them correspond to a Unicode string. The following works fine for an ASCII string:
[StructLayout(LayoutKind.Sequential)]
private struct PacketBytes
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
public string MyString;
}
I assumed that I could do
…
Now i have a problem below:
i've added a div on my page to forbid user to click buttons, links or fields when user click the DOWNLOAD button. So i need to remove this div when the IE file download prompt pops up or when user clicks "save", "save as" or "cancel" on it.
How can I reach this?
When inheriting classes in C++ I understand members are inherited. But how does one inherit the methods as well?
For example, in the below code, I'd like the method "getValues" to be accessible not through just CPoly, but also by any class that inherits it. So one can call "getValues" on CRect directly.
class…
Is there an easy way to limit the total selection of rows in a JTable? I mean I'd like to allow the user to use shift and ctrl to select a maximum of X rows. If he clicks again on a row it would cancel out all the selections. Sort of how it currently behaves, but while limiting the total amount of selected rows.…
How should I go about collecting exceptions and putting them into an AggregateException to re-throw?
For my specific code, I have a loop and will have zero or more exceptions thrown from a part of the code. I was hoping to just add the new exceptions to the AggregateException as they arise, but the…
Discussion: Public, Private, and Hybrid Clouds
A conversation about the similarities and differences between public, private, and hybrid clouds; the connection between cows, condos, and cloud computing; and what architects need to know in order to take advantage of cloud computing. (OTN ArchBeat…
Andy Mulholland: Rethinking the narrow and deep expertise model
"We increasingly realise that we have to read requirements in a more open way to decide what techniques can be used, what business experience can be added, etc, so the whole idea of encouraging ‘cross’ discipline…
My processor is not detected intel core 2 duo
When I type
$uname -m -p
I get this
i686 unknown
I have Ubuntu 10.10 netbook remix
but the cat /proc/cpuinfo gives right identification of two processors as below
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model …
I have recently installed 4Gb of ram for an existing 12.04 32bit Ubuntu. It's not being recognised, only 3.2Gb is showing, See:
administrator@Root2:~$ free
total used free shared buffers cached
Mem: 3355256 1251112 2104144 0 …
Complexity of Social Computing - Is it a Consideration for EA's? | Pat Shepherd blogs.oracle.com
Pat Shepherd asks, "Does Enterprise Architecture need to consider Social Computing in its scope?"
Who should own the Enterprise Architecture? | Michael Glas blogs.oracle.com
…
I was wondering if anyone could offer up rough estimates that could tell me how many hits a day move you into a given Alexa rank ?
Top 5,000
Top 10,000
Top 50,000
Top 100,000
Top 500,000
Top 1,000,000
I know this is incredibly subjective and thus the broad brush…
Hi I like using streamripper to rip music from the web. I have a favorite radio station that doesn't have the metadata for the songs, so I have to screen scrape it from its website manually. I created this neat python script in the format that the docs suggest, and linked the…
Hi there!
I was wondering if anyone could offer up rough estimates that could tell me how many hits a day move you into a given Alexa rank ?
Top 5,000
Top 10,000
Top 50,000
Top 100,000
Top 500,000
Top 1,000,000
I know this is incredibly subjective and…
From my understanding from reading about ASP.NET asynchronous pages, the method which executes when the asynchronous task begins ALWAYS EXECUTES between the prerender and the pre-render Complete events. So because the page's controls' events run between the page's load…
I've added WCF Service reference to my asp.net application and configured that reference to support asncronious calls.
From asp.net code behind files, i'm able to call the service methods asyncroniously like the bellow sample code.
protected void Button1_Click(object…
I saw this on reddit, and it reminded me of one of my vim gripes: It shows the UI in German. Damn you, vim! I want English, but since my OS is set up in German (the standard at our office), I guess vim is actually trying to be helpfull.
What magic incantations must I…
I have a text file that has lines representing some data sets. The file itself is fairly long but it contains certain sections of the following format:
Series_Name INFO Number of teams : n1
| Team | # | …
Check if zip is 5 digit number, if not then display 'zip is invalid'. I want to use onBlur event to trigger the display. But it's not working.
<script>
$(function(){
function valid_zip()
{
var pat=/^[0-9]{5}$/;
if ( !pat.test( $('#zip').val() ) )
…
From my understanding from reading about ASP.NET asynchronous pages, the method which executes when the asynchronous task begins ALWAYS EXECUTES between the prerender and the pre-render Complete events. So because the page's controls' events run between the page's…
I've got the following query:
select distinct a.id, a.name
from Employee a
join Dependencies b on a.id = b.eid
where not exists
(
select *
from Dependencies d
where b.id = d.id
and d.name = 'Apple'
)
and exists
(
select *
…
I need to do a recursive diff using cygwin that needs do exclude all .xml files from certain directories, but not from other directories. According to the --help option I should be able to do this with with the --exclude=PAT option where PAT is a pattern…
Lua's tonumber function is nice but can only convert unsigned integers unless they are base 10. I have a situation where I have numbers like 01.4C that I would like to convert to decimal.
I have a crummy solution:
function split(str, pat)
local t =…
I'm trying to match the username with a regex. Please don't suggest a split.
USERNAME=geo
Here's my code:
String input = "USERNAME=geo";
Pattern pat = Pattern.compile("USERNAME=(\\w+)");
Matcher mat = pat.matcher(input);
…