section

Executable sections marked as "execute" AND "read"?

I've noticed (on Win32 at least) that in executables, code sections (.text) have the "read" access bit set, as well as the "execute" access bit. Are there any bonafide legit reasons for code to be reading itself instead of executing itself? I thought this was what other sections were for (such as .rdata). (Specifically, I'm talking abou...

Latex: Citations in section headings put into table of contents first

I have some citations for sections of my document that I have put in the section heading: \section{The title \cite{abc}, \cite{def}} Text I am also using the table of contents function, but Latex must look at the citations in the headings (for the table of contents) first and assign them the first citation rankings, regardless of their...

Critical section negative lock count

I am debugging a deadlock issue and call stack shows that threads are waiting on some events. Code is using critical section as synchronization primitive I think there is some issue here. Also the debugger is pointing to a critical section that is owned by some other thread,but lock count is -2. As per my understanding lock count>0 mea...

Does java allow you to grab a segment of an array?

Hi all, I'm looking for a method that will return a section or segment of an array - like if I wanted only the 4th and 5th bytes of a byte array. I don't want to have to create a new byte array in the heap memory just to do that. Right now I have the following code: doSomethingWithTwoBytes(byte[] twoByteArray); void someMethod(byte[...

jQuery, html5, append()/appendTo() and IE

How to replicate: Create an html5 page. Make sure you have the script from remysharp.com/2009/01/07/html5-enabling-script/ added so that IE will notice the tags. Create an hardcoded <section id='anything'></section> tag. Using jQuery 1.3.2, append another section tag: $('#anything').append('<section id="whatever"></section>'); So far, ...

How to get specific section inside a MAN page??

Hi, I want to get only specific sections of MAN page inside a shell (or perl) script and print it. For eg: only the SYNOPSIS section of MAN page Is there any standard way to do that? Regards, Anandan ...

Xcode - Using #pragma mark

I'm pretty sure this isn't a duplicate. Do you use #pragma mark? I've seen multiple ways, which is correct? #pragma mark - #pragma mark === Actions === #pragma mark - #pragma mark - #pragma mark === Actions === #pragma mark - === Actions === #pragma mark Actions ? What is the way you do it? How do you suggest dividing it up? What d...

UITableView section header height for non-grouped table

Greetings! I know that UITableView sectionHeaderHeight is only used for grouped tables, but I'll ask anyway (in case there's some way to do this that isn't obvious) ... Is there a way to change the section header height (and with it, the font/size) for a NON-grouped table? Hoping "yes" or at least a "maybe" ... but fearing it might be ...

How do I return an array with the initial letters of all the objects in another array?

I am working on converting a plain tableview to a sectioned tableview. I would like the section titles to be the first letter for the items in the section. This is what I have so far in my titleForHeaderInSection method: NSSortDescriptor *sortDescriptor; sortDescriptor = [[[NSSortDescriptor alloc] initWithKey:@"Name" asce...

Best way to grab an array of dictionaries from a plist and create sections based on the values for a key.

I have a plist that contains an array with a collection of dictionaries. The dictionaries in the array are used to create a fairly complex tableview with 2 images and 2 lines of text in each cell. I am wanting to create sections in the tableview based on the first letter for the value corresponding to the "MainText" key. Here is the p...

how to create custom sections in a tableview based on coredata entities

I'm just starting to learn coredata. In my core data model I have a date stamp (of type NSDate) which includes the date and time (I need this information). Now I would like to organize the Core Data table into sections by days. How can I do this. The only samples I found directly use a core data entity to create the sections, in this ca...

joomla section error

I have a site http://alternex.onlineja.com I am using gavick pro modules (www.gavickpro.com) The products menu is linked to a section/blog layout, I have two modules on it, whenever I click an article from any of the modules, it doesnt show the article, it shows the section, i.e. it doesnt go anywhere. If I create a new menu and mod...

How to underline section-headings in LaTeX?

EDIT: As I see in the first answer, underline is the wrong word. I want a line under the section heading, separating the heading from the following text. I want to separate section headings from the following text with a horizontal line. At the moment I use the following: \newcommand{\tmpsection}[1]{} \let\tmpsection=\section \renewcom...

No newline after (sub)section?

I want my text to appear right after the call to \subsection{Name} but I can't find how to do it. I'm using the article class. An example of command: \subsection{a)} Blah blah bla... produces: a) Blah blah bla... instead of what I want: a) Blah blah bla... Anything I could do? Thanx a lot! ...

How to reorder section in UITableView by dragging similar to row?

Is there any way to reorder section in UITAbleView by dragging similar to row? Is there any trick to do so? ...

How do i change color of letters of sectionIndexTitlesForTableView? is it possible in iphone???

hi I have to change the color of sectionIdexTitle for table view??how to do this? any one knows it ??please tell me?? ...

moveRowAtIndexPath: how to delete section once last row is moved to another section

I have a tableview with several sections. I would like to be able to move rows from one section into another and to delete a section once it has no rows. I am trying to do this through moveRowAtIndexPath but the code I have doesn't work and throws an NSRangeException exception. Here is a code sample: - (void)tableView:(UITableView *)ta...

Keep a UITableView section from showing up as editing while the table is in edit mode

I've got 2 sections in a UITableView. The tableview needs to stay in edit mode, but only the first section is editable. Specifically, I want the second section to display as it would if the table were not in edit mode (tableviewcells are their original widths in stead of the left side being in line with the cells of the first (editable...

jQuery validation per multiple fieldsets, how to use different event to trigger validation per section

Hi All! I have a really, really long form (about 300 fields) that I broke down into different sections using this slick jQuery plugin Form Wizard. If you group your form into different fieldsets, the FormWizard will automagically display one section at a time, with a Next hyperlink to take you to the next section: <a id="step0Next" ...

"Unrecognized configuration section connectionStrings."

I had been working on a project in VS2005 that utilized a local connection to an Access DB. In the past week, I installed .NET framework 3.5 for use w/ a different project as well as VS6. I went back to my VS2005 application and suddenly there are big issues: In the designer for any class utilizing my OLEDB connection showed this: Un...