As far as I understand the wording in 5.2.9 Static cast, the only time the result of a void*-to-object-pointer conversion is allowed is when the void* was a result of the inverse conversion in the first place.
Throughout the standard there is a bunch of references to the representation of a pointer, and the representation of a void pointer being…
Hi guys,
I got a little scope related problem with some js code, maybe somebody can explain to me what I'm making wrong:
I'm using extJs and got this snippet:
Ext.onReady(function(){
// Form for filter selection
var formFilter = new Ext.FormPanel({
// ...
items: [
cbGroup = new Ext.form.ComboBox({
fieldLabel:…
Hi,
I have a web application with a backing bean which has the context of the current logged in user. It is implemented on JSF.
When the user logs out he is forwarded to a login screen (in another JSP page). I would like the current session to be erased when that happens and a new one to be created the next time the user logs in and enters the…
I'm tinkering with an app that doesn't use the UINavigation root view control system, so I don't have natural ownership for each app "view". I essentially have two basic views, a document list view, and a document edit view.
I'm playing with UIView animation for getting from a selected document to the edit view.
I also have a toolbar that…
We are writing an ASP.NET MVC application. By default, if the client browser has Javascript, the handler for every form on the page is set, by Javascript, to be one that sends the submission down an Ajax "pipe" (progressive enhancement).
But, for one form (on a page of several), I'd like this handler to be bypassed/ignored. Is there a…
I am working with jQuery Pagination, and a popup form. On saving the data in the form, how would I go about forcing the Pagination plugin to reload the data it would load for whatever page I am on, without reloading the entire webpage?
Ex:
Item 1
Item 2
Item 3
Add Item-Item 23-Save-Reload List
Item 1
Item 2
Item 3
Item 23
…
I am working on a search query in PostgreSQL, and one of the things I do is sort my query results by the number of parameters matched. I have no clue how this can be done. Does anyone have a suggestion or solution?
Table
brand color type engine
Ford Blue 4-door V8
Maserati Blue 2-door V12
…
Hi all.
Xcode keeps an archive of all the versions of my apps that I've submitted to the app store in the 'archived applications' section. I assumed using this I could install an old version of an app to my device, in order to reproduce any problems my client may have had with that particular version.
However, when I try…
Where does current technology fall short of industry demands in the context of data and information management?
In other words, where should the software engineering industry as a whole be focusing its efforts in these areas?
I currently have this:
<?php echo preg_replace('/\n/','<br />', $review->getComments()); ?>
and would very much like to be able to make all getters add html line breaks so i don't have to pepper my code with preg_replace. What is the best approach here?
Hi I've played a little with Box2D before and have just started using QuickBox2D which makes things heaps easier. I am however getting different behaviour with a specific poly shape than I am with a box. All other properties are the same. I've included 3 simple examples and their source below.
What I really want to work is…
Below is my code in Matlab I am having trouble with the line sum = (h/2) * (f(a) + f(b)) + h; Matlab says I have to many outputs when I try to call the f(x) function. Is my problem with the f(x) function
function Trapezoid_Uniform(a,b,n)
h = (b - a)/n;
sum = (h/2) * (f(a) + f(b)) + h;
for i = 1:n-1
x =…
I'm using application.html.erb in the views/layouts folder of my Ruby on Rails web app as a template. But there's one page in which I don't want the template to be used. Is this possible?
I'd like to convert this JSON to a data model in Cassandra, where each of the arrays is a set with no duplicates:
var data = {
"data1": {
"100": [1, 2, 3],
"200": [3, 4]
},
"data2": {
"k1", [1],
"k2", [4, 5]
}
}
I'd like to query like this: data["data1"]["100"] to retrieve the sets. Anyone know…
I'm developing an Android app that is a client to a JSON webservice API.
I have classes of resource objects (some are nested) and I pass results from an IntentService that access the webserive using the Parcelable interface for all the resource classes.
the webservice returns arrays or results that can be potentially…
i'm trying to create a small nasm program which do this operation in floating point
while(input <= 10^5) do
begin
input = input * 10
i = i - 1
end
the equivilant program in nasm is as following
section .data
input: resd 1
n10: dd 0x41200000 ; 10
_start:
mov eax, 200 ;…
This is the strangest problem I've faced in flash so far. I have no idea what's causing it. I can provide a .swf if someone wants to actually see it, but I'll describe it as best I can.
I'm creating bullets for a tank object to shoot. The tank is a child of the document class. The way I am creating the bullet is:…
When you run git branch -r why the blazes does it list origin/HEAD? For example, there's a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do git clone to grab it and then go into my new directory and list the branches, I see this:
$ git branch -r
origin/HEAD
origin/master…
I'm just learning JS, trying to do things without jQuery, and I want to make something similar to this however I want to use an array of images instead of just the one.
My image array is formed like this
var image_array = new Array()
image_array[0] = "image1.jpg"
image_array[1] = "image2.jpg"
And the…
I'm having some difficulties converting this old mailer api to rails 3:
content_type "multipart/mixed"
part :content_type => "multipart/alternative" do |alt|
alt.part "text/plain" do |p|
p.body = render_message("summary_report.text.plain.erb",
:message =
…
Hey all,
I have a very basic texture map problem in GL on iPhone, and I'm wondering what strategies there are for debugging this kind of thing.
(Frankly, just staring at state machine calls and wondering if any of them is wrong or misordered is no way to live-- are there tools…
Can Maven Wagon plugin be configured to use a private key for ssh/scp? Everything I've tried still leaves maven to ask me for a password when it gets to the point of scp-ing.
My app polls a server every 15 seconds to see if there are any new items to display, then downloads the new items and disposes of the old items so that there are always exactly 100 items in the GridView. Unfortunately, this process can be confusing to the user if they see a page…