question_id
int64
4
6.31M
answer_id
int64
7
6.31M
title
stringlengths
9
150
question_body
stringlengths
0
28.8k
answer_body
stringlengths
60
27.2k
question_text
stringlengths
40
28.9k
combined_text
stringlengths
124
39.6k
tags
listlengths
1
6
question_score
int64
0
26.3k
answer_score
int64
0
28.8k
view_count
int64
15
14M
answer_count
int64
0
182
favorite_count
int64
0
32
question_creation_date
stringdate
2008-07-31 21:42:52
2011-06-10 18:12:18
answer_creation_date
stringdate
2008-07-31 22:17:57
2011-06-10 18:14:17
6,227,219
6,227,233
How to block the main thread until all the other threads finish executing?
This is a newbie question. I start 10 threads from my main thread. How do I stop the main thread from continuing until all the other threads finish?
Join all threads: for t in threads: t.join() Here threads is the list of your threads.
How to block the main thread until all the other threads finish executing? This is a newbie question. I start 10 threads from my main thread. How do I stop the main thread from continuing until all the other threads finish?
TITLE: How to block the main thread until all the other threads finish executing? QUESTION: This is a newbie question. I start 10 threads from my main thread. How do I stop the main thread from continuing until all the other threads finish? ANSWER: Join all threads: for t in threads: t.join() Here threads is the list...
[ "python" ]
5
7
2,024
1
0
2011-06-03T12:43:21.443000
2011-06-03T12:44:37.900000
6,227,235
6,227,399
Restrict Cross Domain Ajax request
I have web application (In java) where I need to restrict Cross Domain request through Ajax call in any browser (Including IE restricting XDomainRequest object) through jquery or simple javaScript ajax call. My ultimate aim it to restrict it while the call is made either through some browser setting or setting response...
You can control which domains you accept AJAX requests from via the Access-Control-Allow-Origin response header. If the header is missing, only requests from the same domain are allowed. Update: if you want to disallow even the initiation of AJAX requests, you could try X-Content-Security-Policy: xhr-src 'none', but I ...
Restrict Cross Domain Ajax request I have web application (In java) where I need to restrict Cross Domain request through Ajax call in any browser (Including IE restricting XDomainRequest object) through jquery or simple javaScript ajax call. My ultimate aim it to restrict it while the call is made either through some ...
TITLE: Restrict Cross Domain Ajax request QUESTION: I have web application (In java) where I need to restrict Cross Domain request through Ajax call in any browser (Including IE restricting XDomainRequest object) through jquery or simple javaScript ajax call. My ultimate aim it to restrict it while the call is made ei...
[ "javascript", "browser", "xmlhttprequest", "cross-domain", "httpresponse" ]
1
5
3,012
1
0
2011-06-03T12:44:39.580000
2011-06-03T12:59:45.447000
6,227,239
6,227,266
event click in header of section of accordion
it's there a way to add an event click to a header of accordion, i tried using this selector but it doesn't work $("#accordion:h3").click(function () { if ($("#tblCheck").is(':hidden')) $("#tblCheck").fadeIn('slow'); else $("#tblCheck").hide(); }); also i tried like this $("#accordion h3") thanks
The accordion is probably created after you try to bind the event, so you could use.live(): $("#accordion h3").live('click', function() {... }); That should do it.
event click in header of section of accordion it's there a way to add an event click to a header of accordion, i tried using this selector but it doesn't work $("#accordion:h3").click(function () { if ($("#tblCheck").is(':hidden')) $("#tblCheck").fadeIn('slow'); else $("#tblCheck").hide(); }); also i tried like this ...
TITLE: event click in header of section of accordion QUESTION: it's there a way to add an event click to a header of accordion, i tried using this selector but it doesn't work $("#accordion:h3").click(function () { if ($("#tblCheck").is(':hidden')) $("#tblCheck").fadeIn('slow'); else $("#tblCheck").hide(); }); also ...
[ "jquery", "jquery-ui-accordion" ]
1
3
3,357
1
0
2011-06-03T12:44:46.027000
2011-06-03T12:46:56.120000
6,227,264
6,227,303
Using block galore?
I'd like your opinion on the following subject: Imagine we have a method that is responsible of achieving one specific purpose, but to do so, it needs the support of an important number of locally scoped objects, many of them implementing IDisposable. MS coding standards say that when using local IDisposable objects th...
You don't need the curly brackets if there's just one statement, for example: using (var disposableA = new DisposableObjectA()) using (var disposableB = new DisposableObjectB()) using (var disposableC = new DisposableObjectC()) { //And so on, you get the idea. } This does depend on nothing else happening in the outer b...
Using block galore? I'd like your opinion on the following subject: Imagine we have a method that is responsible of achieving one specific purpose, but to do so, it needs the support of an important number of locally scoped objects, many of them implementing IDisposable. MS coding standards say that when using local ID...
TITLE: Using block galore? QUESTION: I'd like your opinion on the following subject: Imagine we have a method that is responsible of achieving one specific purpose, but to do so, it needs the support of an important number of locally scoped objects, many of them implementing IDisposable. MS coding standards say that w...
[ "c#", "code-analysis" ]
7
16
247
3
0
2011-06-03T12:46:45.437000
2011-06-03T12:50:15.890000
6,227,268
6,227,284
Javascript doesn't work when textbox name contains square brackets
I've got this script for calculating square area, which works perfect: But my problem is that I need the name of the third box to be Area[ ] But I can't get the javascript to work, when I use brackets in the name.
Note that you should not add the brackets if you don't need them! It makes it unnecessary complex. In your posted code there is no indication that you need those brackets. You normally add them if you have several input fields with the same name and you want PHP to create an array. For more information please refer to ...
Javascript doesn't work when textbox name contains square brackets I've got this script for calculating square area, which works perfect: But my problem is that I need the name of the third box to be Area[ ] But I can't get the javascript to work, when I use brackets in the name.
TITLE: Javascript doesn't work when textbox name contains square brackets QUESTION: I've got this script for calculating square area, which works perfect: But my problem is that I need the name of the third box to be Area[ ] But I can't get the javascript to work, when I use brackets in the name. ANSWER: Note that yo...
[ "php", "javascript" ]
1
5
1,833
4
0
2011-06-03T12:47:00.493000
2011-06-03T12:48:41.113000
6,227,285
6,227,318
CPU: Program inside CPU that determines exact principal of instructions (?!)
At Computer Science lecture we’ve been told that there’s a special code (lower that assembler) that determines behavior of CPU which is written inside CPUs ROM. It was meant that is determines what exactly every instruction in boolean logic means… That sounds quite strange – I haven’t found any kind of information abou...
Do you mean microcode? http://en.wikipedia.org/wiki/Microcode
CPU: Program inside CPU that determines exact principal of instructions (?!) At Computer Science lecture we’ve been told that there’s a special code (lower that assembler) that determines behavior of CPU which is written inside CPUs ROM. It was meant that is determines what exactly every instruction in boolean logic me...
TITLE: CPU: Program inside CPU that determines exact principal of instructions (?!) QUESTION: At Computer Science lecture we’ve been told that there’s a special code (lower that assembler) that determines behavior of CPU which is written inside CPUs ROM. It was meant that is determines what exactly every instruction i...
[ "assembly", "cpu", "microcoding" ]
4
9
214
1
0
2011-06-03T12:48:44.990000
2011-06-03T12:51:23
6,227,305
6,244,566
SQL Server Copy Database Issue
I'm running the copy database wizard on a 2008 R2 instance of SQL Server. The database I want to copy is a SQL 2000 database. I'm copy that database to another SQL SErver 2008 R2. The wizard uses SQL authentication for both servers, and both are sysadmins. When I run it, I get the following error (FYI I have tried both...
The copy wizard had missed some security and IIRC it's caused by subtle differences in security tables, principals etc between the 2 versions. Frankly, the easiest way is to do one of these two: backup/restore detach, copy, attach
SQL Server Copy Database Issue I'm running the copy database wizard on a 2008 R2 instance of SQL Server. The database I want to copy is a SQL 2000 database. I'm copy that database to another SQL SErver 2008 R2. The wizard uses SQL authentication for both servers, and both are sysadmins. When I run it, I get the followi...
TITLE: SQL Server Copy Database Issue QUESTION: I'm running the copy database wizard on a 2008 R2 instance of SQL Server. The database I want to copy is a SQL 2000 database. I'm copy that database to another SQL SErver 2008 R2. The wizard uses SQL authentication for both servers, and both are sysadmins. When I run it,...
[ "sql-server", "sql-server-2008" ]
2
3
10,085
5
0
2011-06-03T12:50:41.623000
2011-06-05T17:27:20.133000
6,227,334
6,261,718
The new Async methods and performance
The socket classes in.NET have got some new async methods (like Socket.ReceiveAsync ). I'm trying to understand their purpose. As I understand it, they were created to avoid making a new IAsyncResult object for each operation. Let's say that I were to create a high performance HTTP server. Then I need to create a Reque...
Well in one socket lifetime each begin/end operation will allocate new sync object. For example, your logic is, // GET /default.aspx HTTP/1.1 ReadLine for Http Verb and Version // Headers ReadLine till you get empty line and process header // Data Read or process mime data Now if you notice, we will never read everythi...
The new Async methods and performance The socket classes in.NET have got some new async methods (like Socket.ReceiveAsync ). I'm trying to understand their purpose. As I understand it, they were created to avoid making a new IAsyncResult object for each operation. Let's say that I were to create a high performance HTTP...
TITLE: The new Async methods and performance QUESTION: The socket classes in.NET have got some new async methods (like Socket.ReceiveAsync ). I'm trying to understand their purpose. As I understand it, they were created to avoid making a new IAsyncResult object for each operation. Let's say that I were to create a hig...
[ ".net", "performance", "sockets", "asynchronous" ]
6
2
516
2
0
2011-06-03T12:52:57.163000
2011-06-07T07:08:24.367000
6,227,347
6,287,818
How to read bookmarks value in word document, C++\CLI using open xml sdk 2.0
I've created a word document using openXML SDK in C++\CLI in which I've entered Bookmarks, I need to open that word document and search for the bookmarks present in it and replace it with some text value. Please suggest the above with sample code or any links which I can refer. Thanks in advance
I suggest a lot more specific. A bookmark can have paragraphs, images, tables, textboxes, etc. all in it. It can also start in the middle of a table and end outside the table. So replacing what's inside it can be very problematic. So I'm going to take a guess as to what you want and from that might have an answer for y...
How to read bookmarks value in word document, C++\CLI using open xml sdk 2.0 I've created a word document using openXML SDK in C++\CLI in which I've entered Bookmarks, I need to open that word document and search for the bookmarks present in it and replace it with some text value. Please suggest the above with sample c...
TITLE: How to read bookmarks value in word document, C++\CLI using open xml sdk 2.0 QUESTION: I've created a word document using openXML SDK in C++\CLI in which I've entered Bookmarks, I need to open that word document and search for the bookmarks present in it and replace it with some text value. Please suggest the a...
[ "c#", "c++-cli", "openxml", "openxml-sdk" ]
0
2
685
1
0
2011-06-03T12:54:06.327000
2011-06-09T03:29:08.500000
6,227,349
6,227,379
Javascript redirect different link with ;
I am having that problem that I am getting a different redirect link: My code: The @link.link is: <%= @link.link %> = http://tracking.euroads.dk/system/tracking.php?sid=1&cpid=3082&adid=544034&acid=4123&eatrackid=47402 The page that the user gets redirected to is: http://tracking.euroads.dk/system/tracking.php?sid=1&cp...
Based on this <%= @link.link %> and your username I presume you are using Rails. Try to change this row: window.location.href = "<%= @link.link %>"; to this window.location.href = "<%= raw @link.link %>"; Your url is htmlencoded. Which means your & characters becomes &. raw should fix that I think
Javascript redirect different link with ; I am having that problem that I am getting a different redirect link: My code: The @link.link is: <%= @link.link %> = http://tracking.euroads.dk/system/tracking.php?sid=1&cpid=3082&adid=544034&acid=4123&eatrackid=47402 The page that the user gets redirected to is: http://tracki...
TITLE: Javascript redirect different link with ; QUESTION: I am having that problem that I am getting a different redirect link: My code: The @link.link is: <%= @link.link %> = http://tracking.euroads.dk/system/tracking.php?sid=1&cpid=3082&adid=544034&acid=4123&eatrackid=47402 The page that the user gets redirected to...
[ "javascript", "html", "ruby-on-rails" ]
0
0
461
3
0
2011-06-03T12:54:14.273000
2011-06-03T12:57:17.777000
6,227,373
6,227,412
How to open a file in memory?
I have see this term branded around but I don't really understand how you open a file in memory. I have the files written to disk in a temp location but this needs cleaning when a certain form closes and I can't do it when it's open. It's a must that this folder gets emptied. I was wondering if I opened files in memory...
MemoryStream inMemoryCopy = new MemoryStream(); using (FileStream fs = File.OpenRead(path)) { fs.CopyTo(inMemoryCopy); } // Now you can delete the file at 'path' and still have an in memory copy
How to open a file in memory? I have see this term branded around but I don't really understand how you open a file in memory. I have the files written to disk in a temp location but this needs cleaning when a certain form closes and I can't do it when it's open. It's a must that this folder gets emptied. I was wonderi...
TITLE: How to open a file in memory? QUESTION: I have see this term branded around but I don't really understand how you open a file in memory. I have the files written to disk in a temp location but this needs cleaning when a certain form closes and I can't do it when it's open. It's a must that this folder gets empt...
[ "c#", "file-io" ]
23
60
49,415
4
0
2011-06-03T12:56:46.013000
2011-06-03T13:00:49.907000
6,227,387
6,227,468
MVC Client Validation on InputModel rather than ViewModel
I have a View with a ViewModel. It has a form that posts back a completely different Model. I am try to get Client Validation working. I have My view looks like so: @Html.ValidationSummary() Forename: @Html.TextBox("Forename") @Html.ValidationMessage("Forename","*") I get the impression that Client Validation creates H...
The way client validation works out of the box is that it uses the ModelMetadata of the view model passed to the view to emit HTML5 data-* attributes on the input fields based on Data Annotation attributes you have used on your view model. If you are using a completely different view model as action argument in your PO...
MVC Client Validation on InputModel rather than ViewModel I have a View with a ViewModel. It has a form that posts back a completely different Model. I am try to get Client Validation working. I have My view looks like so: @Html.ValidationSummary() Forename: @Html.TextBox("Forename") @Html.ValidationMessage("Forename",...
TITLE: MVC Client Validation on InputModel rather than ViewModel QUESTION: I have a View with a ViewModel. It has a form that posts back a completely different Model. I am try to get Client Validation working. I have My view looks like so: @Html.ValidationSummary() Forename: @Html.TextBox("Forename") @Html.ValidationM...
[ "c#", "asp.net", "asp.net-mvc", "asp.net-mvc-3" ]
0
0
422
1
0
2011-06-03T12:58:19.513000
2011-06-03T13:06:51.657000
6,227,388
6,229,807
“dumb” version of Euler’s method using Matlab
I tried to write the 'dumb' version of Euler's method using Matlab but I always came up with nothing. My code was trash:-( See this pseudocode for this method: ‘set integration range xi = 0 xf = 0 ‘initialize variables x = xi y = 1 ‘set step size and determine ‘number of calculation steps dx = 0.5 nc = (xf – xi) / dx ‘...
I am not sure where you're failing, it would really help to know how you're failing or what's a complication. Otherwise this just seems like doing your homework. Here's my attempt at the MATLAB code. (Note: I do not have MATLAB on this computer and have not tested it) i = 0; stepsize =.1; % Define as what you want it t...
“dumb” version of Euler’s method using Matlab I tried to write the 'dumb' version of Euler's method using Matlab but I always came up with nothing. My code was trash:-( See this pseudocode for this method: ‘set integration range xi = 0 xf = 0 ‘initialize variables x = xi y = 1 ‘set step size and determine ‘number of ca...
TITLE: “dumb” version of Euler’s method using Matlab QUESTION: I tried to write the 'dumb' version of Euler's method using Matlab but I always came up with nothing. My code was trash:-( See this pseudocode for this method: ‘set integration range xi = 0 xf = 0 ‘initialize variables x = xi y = 1 ‘set step size and deter...
[ "matlab", "numerical-methods" ]
0
1
1,222
1
0
2011-06-03T12:58:21.580000
2011-06-03T16:16:56.177000
6,227,389
6,227,471
Problems on Compact Framework when communication is lost
I have a problem on a hand held device that should be listening for messages from my server application. When the device loses connection to the network my server is on, this background worker (implemented from OpenNetCF) stops responding. I've placed messages in the ProgressChanged and RunWorkerCompleted events to see...
Right from the docs on Socket.ReceiveFrom: If no data is available for reading, the ReceiveFrom method will block until data is available So when communication is lost, you're unable to receive and your ReceiveFrom call blocks indefinitely. It's going to stop reporting anything while it waits for data, but the thread i...
Problems on Compact Framework when communication is lost I have a problem on a hand held device that should be listening for messages from my server application. When the device loses connection to the network my server is on, this background worker (implemented from OpenNetCF) stops responding. I've placed messages in...
TITLE: Problems on Compact Framework when communication is lost QUESTION: I have a problem on a hand held device that should be listening for messages from my server application. When the device loses connection to the network my server is on, this background worker (implemented from OpenNetCF) stops responding. I've ...
[ "c#", "sockets", "compact-framework", "backgroundworker" ]
1
1
333
2
0
2011-06-03T12:58:22.427000
2011-06-03T13:07:32.233000
6,227,407
6,231,090
A problem when I try Solr in php
I have a problem when I run an example in PHP, the code is below: ping() ) { echo 'Solr service not responding.'; exit; } // // // Create two documents to represent two auto parts. // In practice, documents would likely be assembled from a // database query. // $parts = array( 'spark_plug' => array( 'partno' => 1, 'na...
You likely have either (a) bad query syntax, or (b) a misconfigured index. Checking Your Index Looks like you have fields for partno, model, etc. You need to make sure these are configured in your schema.xml. I might guess that you don't have them created there and so your document submission is failing, or that you ha...
A problem when I try Solr in php I have a problem when I run an example in PHP, the code is below: ping() ) { echo 'Solr service not responding.'; exit; } // // // Create two documents to represent two auto parts. // In practice, documents would likely be assembled from a // database query. // $parts = array( 'spark_p...
TITLE: A problem when I try Solr in php QUESTION: I have a problem when I run an example in PHP, the code is below: ping() ) { echo 'Solr service not responding.'; exit; } // // // Create two documents to represent two auto parts. // In practice, documents would likely be assembled from a // database query. // $parts...
[ "php", "solr" ]
3
7
10,070
1
0
2011-06-03T13:00:19.737000
2011-06-03T18:21:57.687000
6,227,431
6,227,485
Catch exception, validate input or both?
I'm working on obtaining RSS feeds like so: SyndicationFeed rss = SyndicationFeed.Load(XmlReader.Create(textBox1.Text)); XmlReader.Create() in this case can throw up to 4 exceptions related to things like the parameter being null, 404 error, etc. Should I try to validate the Uri (make sure it's not null, 404, correct d...
The Text property of a checkbox is never null, so you can skip that one. Check manually all the cases that are simple and not related to the process like string being empty and Url being correct and leave more obscure XML-specific stuff to the validation inside Create method. So the answer is to combine both. Also, let...
Catch exception, validate input or both? I'm working on obtaining RSS feeds like so: SyndicationFeed rss = SyndicationFeed.Load(XmlReader.Create(textBox1.Text)); XmlReader.Create() in this case can throw up to 4 exceptions related to things like the parameter being null, 404 error, etc. Should I try to validate the Uri...
TITLE: Catch exception, validate input or both? QUESTION: I'm working on obtaining RSS feeds like so: SyndicationFeed rss = SyndicationFeed.Load(XmlReader.Create(textBox1.Text)); XmlReader.Create() in this case can throw up to 4 exceptions related to things like the parameter being null, 404 error, etc. Should I try t...
[ "c#", ".net", "exception", "validation" ]
5
4
440
4
0
2011-06-03T13:03:17.343000
2011-06-03T13:08:20.810000
6,228,887
6,228,976
Is there a benefit to NOT using a public CDN to load Javascript libraries?
I've heard all the cases in favour of using a CDN like Google APIs to host JavaScript libraries like JQuery and Prototype for my web application. It's faster, saves bandwidth, permits parallel loading of scripts, and so on. But I recently came across the following comment in Douglas Crockford's json2.js script: USE YOU...
Assuming he's talking about professionally hosted CDNs like Google, then the best bet is to do this: (taken from http://html5boilerplate.com/ ) That way, you get all the benefits, without the risk of your website breaking if Google's CDN goes down. But, he said: USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FR...
Is there a benefit to NOT using a public CDN to load Javascript libraries? I've heard all the cases in favour of using a CDN like Google APIs to host JavaScript libraries like JQuery and Prototype for my web application. It's faster, saves bandwidth, permits parallel loading of scripts, and so on. But I recently came a...
TITLE: Is there a benefit to NOT using a public CDN to load Javascript libraries? QUESTION: I've heard all the cases in favour of using a CDN like Google APIs to host JavaScript libraries like JQuery and Prototype for my web application. It's faster, saves bandwidth, permits parallel loading of scripts, and so on. But...
[ "javascript", "cdn", "google-cdn" ]
7
10
2,434
8
0
2011-06-03T15:08:15.363000
2011-06-03T15:15:13.103000
6,228,892
6,229,426
How to get LINQ top(1) when accessing related entities? .Take() and .FirstOrDefault() are not working?
Using LINQ to Entities with Entity Framework and C#: I have a method that is called CanInactivateReason which checks that there are no active associated records before allowing the user to inactivate the reason. If the method returns false - then a 'DisabledDelete' image is displayed with a tooltip informing the user w...
Working via navigation properties like this can cause issues. Depends on how you have LazyLoading configured, what your underlying model is (e.g. use of inheritance associations) and what the base query for reasonToInactivate is. As a starting point I'd advise going back to basics with the query - just to prove the con...
How to get LINQ top(1) when accessing related entities? .Take() and .FirstOrDefault() are not working? Using LINQ to Entities with Entity Framework and C#: I have a method that is called CanInactivateReason which checks that there are no active associated records before allowing the user to inactivate the reason. If th...
TITLE: How to get LINQ top(1) when accessing related entities? .Take() and .FirstOrDefault() are not working? QUESTION: Using LINQ to Entities with Entity Framework and C#: I have a method that is called CanInactivateReason which checks that there are no active associated records before allowing the user to inactivate...
[ "c#", "linq", "entity-framework", "linq-to-entities", "entity" ]
3
1
926
1
0
2011-06-03T15:09:01.740000
2011-06-03T15:48:08.310000
6,228,897
6,228,942
Really simple PHP strlen/if question
I am trying to take 2 strings, see what length they are, and if one is larger than the other, set it as $phonenumber, and the other as $extension. See below: if(strlen($temp_ext) > 4) { $extension = $temp_cid; $phonenumber = $temp_ext; } else { $extension = $temp_ext; $phonenumber = $temp_cid; } This doesn't look like ...
Try this if(strlen($temp_ext) > strlen($temp_cid)) { $extension = $temp_cid; $phonenumber = $temp_ext; } else { $extension = $temp_ext; $phonenumber = $temp_cid; } Hope this helps.
Really simple PHP strlen/if question I am trying to take 2 strings, see what length they are, and if one is larger than the other, set it as $phonenumber, and the other as $extension. See below: if(strlen($temp_ext) > 4) { $extension = $temp_cid; $phonenumber = $temp_ext; } else { $extension = $temp_ext; $phonenumber =...
TITLE: Really simple PHP strlen/if question QUESTION: I am trying to take 2 strings, see what length they are, and if one is larger than the other, set it as $phonenumber, and the other as $extension. See below: if(strlen($temp_ext) > 4) { $extension = $temp_cid; $phonenumber = $temp_ext; } else { $extension = $temp_e...
[ "php", "if-statement", "strlen" ]
1
3
1,180
1
0
2011-06-03T15:09:17.733000
2011-06-03T15:12:01.830000
6,228,915
6,229,247
proper way to use lock file(s) as locks between multiple processes
I have a situation where 2 different processes(mine C++, other done by other people in JAVA) are a writer and a reader from some shared data file. So I was trying to avoid race condition by writing a class like this(EDIT:this code is broken, it was just an example) class ReadStatus { bool canRead; public: ReadStatus() ...
On Unices the traditional way of doing pure filesystem based locking is to use dedicated lockfiles with mkdir() and rmdir(), which can be created and removed atomically via single system calls. You avoid races by never explicitly testing for the existence of the lock --- instead you always try to take the lock. So: loc...
proper way to use lock file(s) as locks between multiple processes I have a situation where 2 different processes(mine C++, other done by other people in JAVA) are a writer and a reader from some shared data file. So I was trying to avoid race condition by writing a class like this(EDIT:this code is broken, it was just...
TITLE: proper way to use lock file(s) as locks between multiple processes QUESTION: I have a situation where 2 different processes(mine C++, other done by other people in JAVA) are a writer and a reader from some shared data file. So I was trying to avoid race condition by writing a class like this(EDIT:this code is b...
[ "c++", "filesystems", "race-condition" ]
5
9
9,379
3
0
2011-06-03T15:10:21.510000
2011-06-03T15:36:06.197000
6,228,921
6,229,002
Is it possible reuse android resource file parser to read custom resource file?
Imagine the following scenario: some xml file is downloaded from server and stored on device. Inside this file is the proper android resource xml markup, for example: text_string I wonder is it possible to somehow create a custom Resources object and make it read this custom xml file - so I can just reuse existing reso...
You can't reuse resource parser because it parses binary xml files, not text xml files. You probably could've converted your xml into Android binary format and then somehow trick resource parser (assuming this is possible). But converting text xml to binray xml on server-side is relatively harder task then just write y...
Is it possible reuse android resource file parser to read custom resource file? Imagine the following scenario: some xml file is downloaded from server and stored on device. Inside this file is the proper android resource xml markup, for example: text_string I wonder is it possible to somehow create a custom Resources ...
TITLE: Is it possible reuse android resource file parser to read custom resource file? QUESTION: Imagine the following scenario: some xml file is downloaded from server and stored on device. Inside this file is the proper android resource xml markup, for example: text_string I wonder is it possible to somehow create a...
[ "android", "xml", "resources" ]
0
0
520
1
0
2011-06-03T15:10:43.077000
2011-06-03T15:17:10.923000
6,228,923
6,228,995
How to control <iframe> based YouTube player?
YouTube allows to use to embed videos on sites in addition to flash based way of embedding. That has advantages especially for mobile devices. http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html Unfortunatly i could not find any API documentation similar to flash based way like http://code.google.co...
https://developers.google.com/youtube/iframe_api_reference#Operations We support a similar set of functions for the IFrame API as are currently supported for the JavaScript API. Please refer to that document for a list of functions. Please note that the functions that deal with video bytes behave differently when HTML5...
How to control <iframe> based YouTube player? YouTube allows to use to embed videos on sites in addition to flash based way of embedding. That has advantages especially for mobile devices. http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html Unfortunatly i could not find any API documentation similar...
TITLE: How to control <iframe> based YouTube player? QUESTION: YouTube allows to use to embed videos on sites in addition to flash based way of embedding. That has advantages especially for mobile devices. http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html Unfortunatly i could not find any API doc...
[ "javascript", "youtube", "html5-video" ]
4
3
12,018
1
0
2011-06-03T15:10:44.490000
2011-06-03T15:16:44.247000
6,228,924
6,229,011
using openmp in windows R, does rtools support openmp?
I got lots of error messages when trying to use openmp in a c++ code for building my R package on windows 7: c:/rtools/mingw/bin/../lib/gcc/mingw32/4.5.0/libgomp.a(parallel.o):(.text+0x19): undefined reference to `_imp__pthread_getspecific' c:/rtools/mingw/bin/../lib/gcc/mingw32/4.5.0/libgomp.a(parallel.o):(.text+0x7a)...
No, per discussions on the R-devel mailing list. It also came up on the Rcpp-devel list. R itself does not use OpenMP on Windows, so there is not support in Rtools. On other OSs R does of course have OpenMP support.
using openmp in windows R, does rtools support openmp? I got lots of error messages when trying to use openmp in a c++ code for building my R package on windows 7: c:/rtools/mingw/bin/../lib/gcc/mingw32/4.5.0/libgomp.a(parallel.o):(.text+0x19): undefined reference to `_imp__pthread_getspecific' c:/rtools/mingw/bin/../l...
TITLE: using openmp in windows R, does rtools support openmp? QUESTION: I got lots of error messages when trying to use openmp in a c++ code for building my R package on windows 7: c:/rtools/mingw/bin/../lib/gcc/mingw32/4.5.0/libgomp.a(parallel.o):(.text+0x19): undefined reference to `_imp__pthread_getspecific' c:/rto...
[ "c++", "windows", "r", "openmp" ]
5
3
1,925
3
0
2011-06-03T15:10:45.257000
2011-06-03T15:17:49.790000
6,228,925
6,229,673
No source attachment error when debugging Android applications
I have just started doing Android development on Mac OS X in Eclipse. When debugging an Activity, I keep getting the following errors: The JAR file /platforms/android-10/android.jar has no source attachment. This is starting to get very annoying, does it mean something is throwing an exception somewhere? (the message i...
It looks like you have some error in your application. And Android subsystem throws exception. Normally, if such exception originates from android, you'll see this behavior. What you should do: Turn on LogCat view to see logs. Launch your app without debugger (Ctrl+F11 on ubuntu/windows) Inspect those logs in LogCat ve...
No source attachment error when debugging Android applications I have just started doing Android development on Mac OS X in Eclipse. When debugging an Activity, I keep getting the following errors: The JAR file /platforms/android-10/android.jar has no source attachment. This is starting to get very annoying, does it me...
TITLE: No source attachment error when debugging Android applications QUESTION: I have just started doing Android development on Mac OS X in Eclipse. When debugging an Activity, I keep getting the following errors: The JAR file /platforms/android-10/android.jar has no source attachment. This is starting to get very an...
[ "android", "eclipse" ]
9
5
11,695
1
0
2011-06-03T15:10:46.700000
2011-06-03T16:05:26.063000
6,228,935
6,228,994
Processing conditional statements
I'm not looking for an implementation, just pseudo-code, or at least an algorithm to handle this effectively. I need to process statements like these: (a) # if(a) (a,b) # if(a || b) (a+b) # if(a && b) (a+b,c) # same as ((a+b),c) or if((a&&b) || c) (a,b+c) # same as (a,(b|c)) or if(a || (b&&c)) So the + operator takes p...
The shunting-yard algorithm is easily implementable in a relatively short amount of code. It can be used to convert an infix expression like those in your examples into postfix expressions, and evaluation of a postfix expression is Easy-with-a-capital-E (you don't strictly need to complete the infix-to-postfix conversi...
Processing conditional statements I'm not looking for an implementation, just pseudo-code, or at least an algorithm to handle this effectively. I need to process statements like these: (a) # if(a) (a,b) # if(a || b) (a+b) # if(a && b) (a+b,c) # same as ((a+b),c) or if((a&&b) || c) (a,b+c) # same as (a,(b|c)) or if(a ||...
TITLE: Processing conditional statements QUESTION: I'm not looking for an implementation, just pseudo-code, or at least an algorithm to handle this effectively. I need to process statements like these: (a) # if(a) (a,b) # if(a || b) (a+b) # if(a && b) (a+b,c) # same as ((a+b),c) or if((a&&b) || c) (a,b+c) # same as (a...
[ "c++", "algorithm", "parsing", "c++11" ]
2
6
834
3
0
2011-06-03T15:11:48.890000
2011-06-03T15:16:42.943000
6,228,941
6,230,313
iphone : unable to show back button on navigation bar
please help me with this this is really erratic I am unable to add a button to navigation bar of modalview UINavigationController *tempModalVC=[[UINavigationController alloc] init]; [tempModalVC.navigationBar setBarStyle:UIBarStyleBlack]; //UIBarButtonItem *tempDoneBTN=[[UIBarButtonItem alloc] initWithTitle:@"Done" sty...
It looks as if you want to display a mapView in a modal view. On iPhone, modal views occupy the entire screen, so there is no room for a nav bar. Thus you do not need a navigation controller. I assume the above code is inside a UIViewController instance. If so, just do this: [self presentModalViewController:mapView ani...
iphone : unable to show back button on navigation bar please help me with this this is really erratic I am unable to add a button to navigation bar of modalview UINavigationController *tempModalVC=[[UINavigationController alloc] init]; [tempModalVC.navigationBar setBarStyle:UIBarStyleBlack]; //UIBarButtonItem *tempDone...
TITLE: iphone : unable to show back button on navigation bar QUESTION: please help me with this this is really erratic I am unable to add a button to navigation bar of modalview UINavigationController *tempModalVC=[[UINavigationController alloc] init]; [tempModalVC.navigationBar setBarStyle:UIBarStyleBlack]; //UIBarBu...
[ "iphone", "uinavigationcontroller", "modalviewcontroller" ]
1
1
471
1
0
2011-06-03T15:11:59.147000
2011-06-03T17:06:49.583000
6,228,945
6,229,036
C programming: Using fread into char array - get very slightly different values from int array
I've started learning C in my course and I'm having some trouble debugging a program I'm making. The program is an emulator for a simplified MIPS language and basically I'm trying to read in a binary file of 32-bit instructions and store it directly into an array so that my program can go through the instructions with ...
Your char array should be aligned at a 32-bit boundary if you're going to be reading/writing 32-bit words from it. If you used malloc to allocate this array, then it's already aligned. Instead of this: int test = (vm.memory[16]) + (vm.memory[17] << 8) + (vm.memory[18] << 16) + (vm.memory[19] << 24); try this: int test ...
C programming: Using fread into char array - get very slightly different values from int array I've started learning C in my course and I'm having some trouble debugging a program I'm making. The program is an emulator for a simplified MIPS language and basically I'm trying to read in a binary file of 32-bit instructio...
TITLE: C programming: Using fread into char array - get very slightly different values from int array QUESTION: I've started learning C in my course and I'm having some trouble debugging a program I'm making. The program is an emulator for a simplified MIPS language and basically I'm trying to read in a binary file of...
[ "c", "char", "int", "emulation" ]
1
3
2,704
1
0
2011-06-03T15:12:06.967000
2011-06-03T15:20:08.833000
6,228,949
6,229,005
Simple Save/Load the entire array
I'm new. Been trying to save/load a couple of arrays but to no avail. I have "Global.h" and "Global.m" providing arrays for other classes. in Global.h extern NSMutableArray *arrayTable; extern NSMutableArray *arrayPurpose; @interface Global: NSObject { } in Global.m NSMutable *arrayTable; MSMutable *arrayPurpose; I hav...
Not very detailed but: in the suspend method of your appdelegate you can use: [NSKeyedArchiver archiveRootObject:arrayTable toFile:...]; and in the resume method: arrayTable = [[NSKeyedUnarchiver unarchiveObjectWithFile:...] retain];
Simple Save/Load the entire array I'm new. Been trying to save/load a couple of arrays but to no avail. I have "Global.h" and "Global.m" providing arrays for other classes. in Global.h extern NSMutableArray *arrayTable; extern NSMutableArray *arrayPurpose; @interface Global: NSObject { } in Global.m NSMutable *arrayTab...
TITLE: Simple Save/Load the entire array QUESTION: I'm new. Been trying to save/load a couple of arrays but to no avail. I have "Global.h" and "Global.m" providing arrays for other classes. in Global.h extern NSMutableArray *arrayTable; extern NSMutableArray *arrayPurpose; @interface Global: NSObject { } in Global.m N...
[ "iphone", "xcode3.2" ]
1
0
170
1
0
2011-06-03T15:12:26.903000
2011-06-03T15:17:33.580000
6,228,951
6,229,029
Casting Linq to IEnumerable <Datarow>
I'm creating winForm app,In that Onbutton click i gather Data Tables from of Two database Mysql and Sqlite database. I getting Casting error while on casting Linq query to IEnumerable to make fetch query values to DataTable to make display in DataGrid view. private void button1_Click(object sender, EventArgs e) { var ...
Looking at your code, I'd say, why cast it to IEnumerable at all? Just simply bind the query to your GridView. dataGridView1.DataSource = query.ToList();
Casting Linq to IEnumerable <Datarow> I'm creating winForm app,In that Onbutton click i gather Data Tables from of Two database Mysql and Sqlite database. I getting Casting error while on casting Linq query to IEnumerable to make fetch query values to DataTable to make display in DataGrid view. private void button1_Cli...
TITLE: Casting Linq to IEnumerable <Datarow> QUESTION: I'm creating winForm app,In that Onbutton click i gather Data Tables from of Two database Mysql and Sqlite database. I getting Casting error while on casting Linq query to IEnumerable to make fetch query values to DataTable to make display in DataGrid view. privat...
[ "c#", "linq" ]
0
6
26,456
5
0
2011-06-03T15:13:08.663000
2011-06-03T15:19:30.677000
6,228,960
6,229,984
How to set the "Content-Type ... charset" in the request header using a HTML link
I have a simple HTML-page with a UTF-8 encoded link. search for "ü" However, I don't get the browser to include Content-Type:application/x-www-form-urlencoded; charset=utf-8 into the request header. Therefore I have to configure the web server to assume all requests are UTF-8 encoded (URIEncoding="UTF-8" in the Tomcat ...
This is not possible from HTML on. The closest what you can get is the accept-charset attribute of the. Only Internet Explorer adheres that, but even then it is doing it wrong (e.g., CP-1252 is actually been used when it says that it has sent ISO-8859-1). Other browsers are fully ignoring it and they are using the char...
How to set the "Content-Type ... charset" in the request header using a HTML link I have a simple HTML-page with a UTF-8 encoded link. search for "ü" However, I don't get the browser to include Content-Type:application/x-www-form-urlencoded; charset=utf-8 into the request header. Therefore I have to configure the web s...
TITLE: How to set the "Content-Type ... charset" in the request header using a HTML link QUESTION: I have a simple HTML-page with a UTF-8 encoded link. search for "ü" However, I don't get the browser to include Content-Type:application/x-www-form-urlencoded; charset=utf-8 into the request header. Therefore I have to c...
[ "html", "character-encoding", "special-characters", "urlencode" ]
23
24
142,035
1
0
2011-06-03T15:13:52.723000
2011-06-03T16:33:35.730000
6,228,961
6,229,025
3 digits for alternative example of Keith Wood's Jquery Countdown
For the Jquery countdown plugin created by Keith Wood, we would like to use the "Alternative Images" version, but our countdown datetime is currently in 3 digits for the number of days. The script is currently only showing 2 digits of the 3 digits for the number of days left, cutting off hundreds digit. An example can ...
Did you try adding an image{d100} span? Based on the documentation, this should work: $('#glowingLayout').countdown({until: liftoffTime, compact: true, layout: ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' '});
3 digits for alternative example of Keith Wood's Jquery Countdown For the Jquery countdown plugin created by Keith Wood, we would like to use the "Alternative Images" version, but our countdown datetime is currently in 3 digits for the number of days. The script is currently only showing 2 digits of the 3 digits for th...
TITLE: 3 digits for alternative example of Keith Wood's Jquery Countdown QUESTION: For the Jquery countdown plugin created by Keith Wood, we would like to use the "Alternative Images" version, but our countdown datetime is currently in 3 digits for the number of days. The script is currently only showing 2 digits of t...
[ "jquery", "date", "timer", "countdown" ]
2
3
1,546
1
0
2011-06-03T15:13:57.697000
2011-06-03T15:19:17.870000
6,228,966
6,229,082
How to minimize a window to the taskbar? (i.e. not iconify)
i have a window that i want to minimize (to the taskbar), so i call ShowWindow: ShowWindow(Handle, SW_MINIMIZE); Except that rather than minimizing itself (to the taskbar), the window is iconified: The window is unparented: How do i minimize a window to the taskbar? Update: Following some advice from 2002, i try settin...
That icon on the taskbar is the icon of the Application (Handle) rather than that of the MainForm. Use: Application.Minimize; Edit: But out of both your links, I understand you knew that already...duh;) This works for the MainForm: TForm1 = class(TForm) private procedure WMSysCommand(var Msg: TWMSysCommand); message WM...
How to minimize a window to the taskbar? (i.e. not iconify) i have a window that i want to minimize (to the taskbar), so i call ShowWindow: ShowWindow(Handle, SW_MINIMIZE); Except that rather than minimizing itself (to the taskbar), the window is iconified: The window is unparented: How do i minimize a window to the ta...
TITLE: How to minimize a window to the taskbar? (i.e. not iconify) QUESTION: i have a window that i want to minimize (to the taskbar), so i call ShowWindow: ShowWindow(Handle, SW_MINIMIZE); Except that rather than minimizing itself (to the taskbar), the window is iconified: The window is unparented: How do i minimize ...
[ "windows", "delphi", "windows-7", "delphi-5", "windows-95" ]
7
12
23,310
2
0
2011-06-03T15:14:33.507000
2011-06-03T15:24:03.330000
6,228,967
6,229,027
Polymorphism C++
I'd like my code to print: B B A B B A But it prints Item Item Item Item Item Item The code: #include #include #include using namespace std; struct Item { Item(){} virtual void method1 (Item x, Item y) {cout << "Item Item\n";} }; struct A: public Item { A(){} }; struct B: public Item { B(){} virtual void method1 (B ...
Your overloads of method1 in B don't override the virtual method in Item. So, when you call someItem->method1, it is not going to use them. It looks like you want what is called "multiple dispatch", which C++ doesn't support directly. See http://en.wikipedia.org/wiki/Multiple_dispatch#C.2B.2B for some discussion and wo...
Polymorphism C++ I'd like my code to print: B B A B B A But it prints Item Item Item Item Item Item The code: #include #include #include using namespace std; struct Item { Item(){} virtual void method1 (Item x, Item y) {cout << "Item Item\n";} }; struct A: public Item { A(){} }; struct B: public Item { B(){} virtual...
TITLE: Polymorphism C++ QUESTION: I'd like my code to print: B B A B B A But it prints Item Item Item Item Item Item The code: #include #include #include using namespace std; struct Item { Item(){} virtual void method1 (Item x, Item y) {cout << "Item Item\n";} }; struct A: public Item { A(){} }; struct B: public It...
[ "c++", "polymorphism" ]
4
4
2,470
5
0
2011-06-03T15:14:51.900000
2011-06-03T15:19:19.487000
6,228,969
6,229,053
SQL picking same entry multiple times
SELECT p.* FROM StatusUpdates p JOIN FriendRequests fr ON (fr.From = p.AuthorId OR fr.To = p.AuthorId) WHERE fr.To = ".$Id." OR fr.From = ".$Id." AND fr.Accepted = 1 ORDER BY p.DatePosted DESC I'm using this SQL code at the moment which somone wrote for me on a different question. I'm using PHP, but that shouldn't make...
You need to use LEFT JOIN instead of join if you want to display post id regardless of number of friends. And GROUP BY p.id in order not to display the same posts more than 1 time: SELECT p.* FROM StatusUpdates p LEFT JOIN FriendRequests fr ON ((fr.From = p.AuthorId OR fr.To = p.AuthorId) AND fr.Accepted = 1) WHERE p.A...
SQL picking same entry multiple times SELECT p.* FROM StatusUpdates p JOIN FriendRequests fr ON (fr.From = p.AuthorId OR fr.To = p.AuthorId) WHERE fr.To = ".$Id." OR fr.From = ".$Id." AND fr.Accepted = 1 ORDER BY p.DatePosted DESC I'm using this SQL code at the moment which somone wrote for me on a different question. ...
TITLE: SQL picking same entry multiple times QUESTION: SELECT p.* FROM StatusUpdates p JOIN FriendRequests fr ON (fr.From = p.AuthorId OR fr.To = p.AuthorId) WHERE fr.To = ".$Id." OR fr.From = ".$Id." AND fr.Accepted = 1 ORDER BY p.DatePosted DESC I'm using this SQL code at the moment which somone wrote for me on a di...
[ "sql" ]
0
1
80
2
0
2011-06-03T15:14:55.130000
2011-06-03T15:22:11.413000
6,228,982
6,229,095
Is there an actual use case that requires getAttributeNode and/or getAttributeNodeNS?
Can someone think of an actual use case whereby we will ever require the use of getAttributeNode and/or getAttributeNodeNS? As far as I know, getAttribute and/or getAttributeNS settles all use cases, hence this question.
It lets you obtain the item as a Node, which is an interface shared by other DOM components like elements, processing instructions, comments, etc., so you could treat it similarly to other items. Not sure why, but u could...:) For example: choose attribute node choose text node get chosen node's value Even if you will ...
Is there an actual use case that requires getAttributeNode and/or getAttributeNodeNS? Can someone think of an actual use case whereby we will ever require the use of getAttributeNode and/or getAttributeNodeNS? As far as I know, getAttribute and/or getAttributeNS settles all use cases, hence this question.
TITLE: Is there an actual use case that requires getAttributeNode and/or getAttributeNodeNS? QUESTION: Can someone think of an actual use case whereby we will ever require the use of getAttributeNode and/or getAttributeNodeNS? As far as I know, getAttribute and/or getAttributeNS settles all use cases, hence this quest...
[ "javascript", "web-services", "web-applications" ]
2
1
685
3
0
2011-06-03T15:15:45.353000
2011-06-03T15:25:24.547000
6,228,991
6,273,157
Open XML Create Link to other Worksheet
I'm having a hard time finding out what the XML looks like for adding a link in one worksheet to another. I'd like something like this: MainSheet Cell Cell Cell data data LinkToSheet2 data data LinkToSheet3 data data LinkToSheet4 Sheet2 Cell Cell Cell... data... Sheet3 Cell Cell Cell... data... Sheet4 Cell Cell Cell.....
I created a blank Excel file and added in a link in Sheet1 A1 to Sheet2 A1 and here is the XML I got: 0 You pretty much want to pay attention to the element:
Open XML Create Link to other Worksheet I'm having a hard time finding out what the XML looks like for adding a link in one worksheet to another. I'd like something like this: MainSheet Cell Cell Cell data data LinkToSheet2 data data LinkToSheet3 data data LinkToSheet4 Sheet2 Cell Cell Cell... data... Sheet3 Cell Cell...
TITLE: Open XML Create Link to other Worksheet QUESTION: I'm having a hard time finding out what the XML looks like for adding a link in one worksheet to another. I'd like something like this: MainSheet Cell Cell Cell data data LinkToSheet2 data data LinkToSheet3 data data LinkToSheet4 Sheet2 Cell Cell Cell... data.....
[ "c#", ".net", "xml", "openxml" ]
1
1
1,147
1
0
2011-06-03T15:16:34.793000
2011-06-08T00:50:37.340000
6,228,996
6,229,168
Creating POCO classes that are compatible with NHibernate and EF 4.1
I know that all members of a POCO class for NHibernate must be defined as virtual, and in EF (code first), you only need to set the collection / reference objects as virtual for lazy loading. So if I want to create POCO objects that are compatible with both EF and NH should I just declare every member of my POCO classe...
Actually you're not forced to declare every property as virtual in NH. If you turn-off the lazy load behaviour ('on' by default) you no longer need to declare all those "virtuals", and may specify case-by-case which properties are lazy-loaded. So, if you want, you may have a POCO with just reference objects as virtual ...
Creating POCO classes that are compatible with NHibernate and EF 4.1 I know that all members of a POCO class for NHibernate must be defined as virtual, and in EF (code first), you only need to set the collection / reference objects as virtual for lazy loading. So if I want to create POCO objects that are compatible wit...
TITLE: Creating POCO classes that are compatible with NHibernate and EF 4.1 QUESTION: I know that all members of a POCO class for NHibernate must be defined as virtual, and in EF (code first), you only need to set the collection / reference objects as virtual for lazy loading. So if I want to create POCO objects that ...
[ "nhibernate", "data-modeling", "poco", "entity-framework-4.1" ]
2
1
844
3
0
2011-06-03T15:16:44.567000
2011-06-03T15:30:35.743000
6,228,999
6,229,491
Converting data from utf8_unicode to utf8_general in php
in php I'm getting data from an utf8_unicode_ci database and storing the same into utf8_general_ci db. That seems to be not possible when the text contains em dashes. Does anyone know if there is a way in php to convert the data from utf8_unicode to utf8_general? Thanks a lot.
Both utf8_general_ci instead of utf8_normal_ci are collations of the same character encoding/set (i.e. UTF-8). An a collation does define the order and equivalence of characters: A difference between the collations is that this is true for utf8_general_ci: ß = s Whereas this is true for utf8_unicode_ci, which supports ...
Converting data from utf8_unicode to utf8_general in php in php I'm getting data from an utf8_unicode_ci database and storing the same into utf8_general_ci db. That seems to be not possible when the text contains em dashes. Does anyone know if there is a way in php to convert the data from utf8_unicode to utf8_general?...
TITLE: Converting data from utf8_unicode to utf8_general in php QUESTION: in php I'm getting data from an utf8_unicode_ci database and storing the same into utf8_general_ci db. That seems to be not possible when the text contains em dashes. Does anyone know if there is a way in php to convert the data from utf8_unicod...
[ "php" ]
0
1
1,198
2
0
2011-06-03T15:17:03.643000
2011-06-03T15:52:19.633000
6,229,007
6,229,026
Remove modalViewController from view?
I have a view which pulls in another view using this code: secondView = [[SecondView alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:secondView]; navigationController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModal...
try: [self.navigationController dismissModalViewControllerAnimated:YES]
Remove modalViewController from view? I have a view which pulls in another view using this code: secondView = [[SecondView alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:secondView]; navigationController.modalTransitionStyle = UIModalTransitionSt...
TITLE: Remove modalViewController from view? QUESTION: I have a view which pulls in another view using this code: secondView = [[SecondView alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:secondView]; navigationController.modalTransitionStyle = U...
[ "iphone", "objective-c", "modalviewcontroller" ]
2
9
3,063
1
0
2011-06-03T15:17:36.900000
2011-06-03T15:19:18.977000
6,229,013
6,229,102
specializing on a subset of types in a C++ template
I have a question about template specialization in C++, and I am hoping someone here can help. I have a class that has 3 template parameters: template class myClass { public: void myFunc(); }; What I want to do is write several versions of myFunc that specialize on, say, type C, but are generic for types A and B. So I...
You can write a function template, and an overload, and delegate the work to it: template class myClass { //resolver doesn't need to define anything in it! template struct resolver {}; //empty, yet powerful! public: void myFunc() { doFun(resolver ()); } //this is a function template template void doFun(const resolver ...
specializing on a subset of types in a C++ template I have a question about template specialization in C++, and I am hoping someone here can help. I have a class that has 3 template parameters: template class myClass { public: void myFunc(); }; What I want to do is write several versions of myFunc that specialize on, ...
TITLE: specializing on a subset of types in a C++ template QUESTION: I have a question about template specialization in C++, and I am hoping someone here can help. I have a class that has 3 template parameters: template class myClass { public: void myFunc(); }; What I want to do is write several versions of myFunc th...
[ "c++", "templates", "specialization" ]
3
6
1,095
2
0
2011-06-03T15:17:55.640000
2011-06-03T15:26:04.610000
6,229,019
6,231,483
StructureMap Registry DSL for named instance scenario
I have a scenario in which I need to be able to get two different implementations of an interface IObjectContext from StructureMap. I know that using a named instance is the answer but I'm having trouble with the DSL for this because the class to "use" is also the same in each case, but with a different constructor par...
We came across a similar problem recently while attempting to register multiple named instances of the same concrete type (in our case this was within a custom Scanner) - Structuremap doesn't allow you to do this directly. In the end we had to use the ConstructedBy method, passing in an expression that explicitly insta...
StructureMap Registry DSL for named instance scenario I have a scenario in which I need to be able to get two different implementations of an interface IObjectContext from StructureMap. I know that using a named instance is the answer but I'm having trouble with the DSL for this because the class to "use" is also the s...
TITLE: StructureMap Registry DSL for named instance scenario QUESTION: I have a scenario in which I need to be able to get two different implementations of an interface IObjectContext from StructureMap. I know that using a named instance is the answer but I'm having trouble with the DSL for this because the class to "...
[ ".net", "structuremap" ]
0
1
615
2
0
2011-06-03T15:18:24.173000
2011-06-03T19:00:51.373000
6,229,024
6,229,695
NSDate Format outputting wrong date
I have a NSString (ex. "2011-04-12 19:23:39"), and what I did to format it to a NSDate was the following: [inputFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *date = [inputFormatter dateFromString:newDateString]; but what it outputs when I nslog the date is this: 2011-04-12 23:23:39 +0000 which is about 4 ho...
NSDateFormatter use the current device timezone when it created the NSDate object. NSDate stores the date/time in GMT. Therefore by default NSLog will output the date/time in GMT+0. So, there's nothing wrong with your code. Now if you want to output the NSDate to your current timezone, your will have to use a NSDateFor...
NSDate Format outputting wrong date I have a NSString (ex. "2011-04-12 19:23:39"), and what I did to format it to a NSDate was the following: [inputFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *date = [inputFormatter dateFromString:newDateString]; but what it outputs when I nslog the date is this: 2011-04-1...
TITLE: NSDate Format outputting wrong date QUESTION: I have a NSString (ex. "2011-04-12 19:23:39"), and what I did to format it to a NSDate was the following: [inputFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *date = [inputFormatter dateFromString:newDateString]; but what it outputs when I nslog the date ...
[ "iphone", "objective-c", "nsdate", "nsdateformatter" ]
9
2
6,904
5
0
2011-06-03T15:18:54.153000
2011-06-03T16:06:39.517000
6,229,046
6,229,077
How do I properly overload new?
My code is below. However before main() is run something simple such as a static std::string globalvar; will call new. Before MyPool mypool is initialized. MyPool mypool; void* operator new(size_t s) { return mypool.donew(s); } Is there anyway I can force mypool to be initialized first? I have no idea how overloading n...
Make mypool a static variable of your operator new function: void* operator new(size_t s) { static MyPool mypool; return mypool.donew(s); } It will be initialized upon first call of the function (i.e. the operator new ). EDIT: As the commenters pointed out, declaring the variable as static in the operator new functions...
How do I properly overload new? My code is below. However before main() is run something simple such as a static std::string globalvar; will call new. Before MyPool mypool is initialized. MyPool mypool; void* operator new(size_t s) { return mypool.donew(s); } Is there anyway I can force mypool to be initialized first? ...
TITLE: How do I properly overload new? QUESTION: My code is below. However before main() is run something simple such as a static std::string globalvar; will call new. Before MyPool mypool is initialized. MyPool mypool; void* operator new(size_t s) { return mypool.donew(s); } Is there anyway I can force mypool to be i...
[ "c++" ]
0
2
946
3
0
2011-06-03T15:21:17.080000
2011-06-03T15:23:40.453000
6,229,052
6,229,202
Difference in context this and getContext()
What is difference between this and getContext(), when I say this I mean this within an Activity.
In general there are two type of classes. Ones that extend ContextWrapper class ( Activity, Service, Application ) and those that do not extend it (like View ). If class extends ContextWrapper then you can use this as Context. Such classes normally do not have getContext() method. Those classes that do not extend Conte...
Difference in context this and getContext() What is difference between this and getContext(), when I say this I mean this within an Activity.
TITLE: Difference in context this and getContext() QUESTION: What is difference between this and getContext(), when I say this I mean this within an Activity. ANSWER: In general there are two type of classes. Ones that extend ContextWrapper class ( Activity, Service, Application ) and those that do not extend it (lik...
[ "android", "this", "android-context" ]
33
63
45,120
3
0
2011-06-03T15:22:05.040000
2011-06-03T15:33:16.250000
6,229,056
6,229,137
Comparing HTTP_REFERER to a value read from file fails
I'm attempting to pass a key via the $_SERVER['HTTP_REFERER'] (set via cURL) from one server to another, to then process some POST data and send an XML file back. I have the key stored in identical files on both servers (rotating them via cron job SCP) but when I read the key on the receiving end and compare to the ref...
As a first troubleshooting step, on both sides, replace $key with trim($key). Alternatively, on the receiving side, change your if condition to if (trim($refkey) == trim($key)) { The file may contain a newline/carriage-return after the key, and it may NOT send that extra character in the referrer variable. The receivin...
Comparing HTTP_REFERER to a value read from file fails I'm attempting to pass a key via the $_SERVER['HTTP_REFERER'] (set via cURL) from one server to another, to then process some POST data and send an XML file back. I have the key stored in identical files on both servers (rotating them via cron job SCP) but when I r...
TITLE: Comparing HTTP_REFERER to a value read from file fails QUESTION: I'm attempting to pass a key via the $_SERVER['HTTP_REFERER'] (set via cURL) from one server to another, to then process some POST data and send an XML file back. I have the key stored in identical files on both servers (rotating them via cron job...
[ "php", "curl" ]
0
1
283
1
0
2011-06-03T15:22:32.977000
2011-06-03T15:28:55.403000
6,229,057
6,229,498
Custom Class ToString() Override not showing up in WPF ComboBox
I have a WPF application built with MVVM and am trying to display a custom class in a combobox. I am still getting the Namespace.Asset despite overriding the ToString Method to something easier on the eyes. What am I doing wrong? XAML code ViewModel Code public List Drivers { get { return this.drivers; } set { this.dri...
You might need to set the ToString() on the base class Something like: public class Driver { protected string displayName; public override string ToString() { return displayName; } } Then your class constructors for your sub classes would simply set the displayName public class ExperimentalDriver: Driver { public Expe...
Custom Class ToString() Override not showing up in WPF ComboBox I have a WPF application built with MVVM and am trying to display a custom class in a combobox. I am still getting the Namespace.Asset despite overriding the ToString Method to something easier on the eyes. What am I doing wrong? XAML code ViewModel Code p...
TITLE: Custom Class ToString() Override not showing up in WPF ComboBox QUESTION: I have a WPF application built with MVVM and am trying to display a custom class in a combobox. I am still getting the Namespace.Asset despite overriding the ToString Method to something easier on the eyes. What am I doing wrong? XAML cod...
[ "wpf", "combobox" ]
1
2
1,387
2
0
2011-06-03T15:22:37.360000
2011-06-03T15:52:49.807000
6,229,060
6,249,789
AS2: attachmovie not working
Ok code so far: var Graphs:Array = new Array(contentMain.graph1, contentMain.graph2, contentMain.graph3, contentMain.graph4, contentMain.graph5, contentMain.graph6, contentMain.graph7, contentMain.graph8, contentMain.graph9); var Xcoords:Array = new Array(new Array(), new Array(), new Array(), new Array(), new Array(),...
it seems the instance name "dot" is reserved for something because as soon as i changed the linkage to graph_dot and used that they started to appear.
AS2: attachmovie not working Ok code so far: var Graphs:Array = new Array(contentMain.graph1, contentMain.graph2, contentMain.graph3, contentMain.graph4, contentMain.graph5, contentMain.graph6, contentMain.graph7, contentMain.graph8, contentMain.graph9); var Xcoords:Array = new Array(new Array(), new Array(), new Array...
TITLE: AS2: attachmovie not working QUESTION: Ok code so far: var Graphs:Array = new Array(contentMain.graph1, contentMain.graph2, contentMain.graph3, contentMain.graph4, contentMain.graph5, contentMain.graph6, contentMain.graph7, contentMain.graph8, contentMain.graph9); var Xcoords:Array = new Array(new Array(), new ...
[ "actionscript", "actionscript-2" ]
0
0
673
1
0
2011-06-03T15:23:03.097000
2011-06-06T09:07:56.220000
6,229,061
6,229,450
Typed vs typeless language
I am learning C and assembly language together. I noticed that assembly is a type-less language compared to the C which requires declaration of the data type before data can be processed. But also I learnt that even a code written in C is first compiled into a code written in assembly and then assembled into object cod...
In C, we have a simple type system but it's not particular sophisticated, can be (and frequently is, in practice) circumvented with completely unchecked casts, etc. (For these reasons, C is often called "weakly typed", which is ill-defined and usually used for bashing a language, but at least tells that types aren't th...
Typed vs typeless language I am learning C and assembly language together. I noticed that assembly is a type-less language compared to the C which requires declaration of the data type before data can be processed. But also I learnt that even a code written in C is first compiled into a code written in assembly and the...
TITLE: Typed vs typeless language QUESTION: I am learning C and assembly language together. I noticed that assembly is a type-less language compared to the C which requires declaration of the data type before data can be processed. But also I learnt that even a code written in C is first compiled into a code written i...
[ "types", "compiler-construction", "programming-languages", "declaration" ]
13
10
13,747
4
0
2011-06-03T15:23:04.270000
2011-06-03T15:49:25.713000
6,229,062
6,229,352
Finding a Resource Text File
Just to begin, I've read Read text file in a folder and other troubleshooting things on here, and I've followed the advice previously given. However, my program still can't find my.txt file. I've checked the name, the bundle resources, and the file itself, and everything seems to be in order. My code runs fine, and I g...
You're incorrectly using pathForResource:ofType:inDirectory:. This method should not include the extension in the first parameter. So it would be: NSString *stemFile = [[NSBundle mainBundle] pathForResource:@"stemList" ofType:@"txt" inDirectory:@"stemIDv0"];
Finding a Resource Text File Just to begin, I've read Read text file in a folder and other troubleshooting things on here, and I've followed the advice previously given. However, my program still can't find my.txt file. I've checked the name, the bundle resources, and the file itself, and everything seems to be in orde...
TITLE: Finding a Resource Text File QUESTION: Just to begin, I've read Read text file in a folder and other troubleshooting things on here, and I've followed the advice previously given. However, my program still can't find my.txt file. I've checked the name, the bundle resources, and the file itself, and everything s...
[ "objective-c", "resources", "xcode4" ]
2
2
736
1
0
2011-06-03T15:23:07.460000
2011-06-03T15:43:36.243000
6,229,068
6,229,096
what is the correct syntax to interpolate an object into a double quoted string?
"please contact your <%=@user.name %> mentor" I am using the above syntax and it is wrong. Can anyone please tell me the correct syntax for interpolating @user.name into a string using " ".
"please contact your #{@user.name } mentor" if you just want to call.to_s on @user you can do "please contact your #@user mentor" and omit the {} <%=...%> is for eRB files, use "#{}" to substitute in quotes
what is the correct syntax to interpolate an object into a double quoted string? "please contact your <%=@user.name %> mentor" I am using the above syntax and it is wrong. Can anyone please tell me the correct syntax for interpolating @user.name into a string using " ".
TITLE: what is the correct syntax to interpolate an object into a double quoted string? QUESTION: "please contact your <%=@user.name %> mentor" I am using the above syntax and it is wrong. Can anyone please tell me the correct syntax for interpolating @user.name into a string using " ". ANSWER: "please contact your #...
[ "ruby-on-rails", "ruby" ]
1
3
847
3
0
2011-06-03T15:23:17.410000
2011-06-03T15:25:25.740000
6,229,070
6,229,980
How to display FragmentBreadCrumbs in a Honeycomb app
I'd like to use breadcrumbs, but do not find any information how to use it. Is there a running example that uses breadcrumb titles?
The Google IO app has a good example of implementing breadcrumbs with fragments. You can get the source code from http://code.google.com/p/iosched/. Specifically, check out com.google.android.apps.iosched.ui.tablet.MapMultiPaneActivity in the project source. I've used in one of my apps following the framework of this a...
How to display FragmentBreadCrumbs in a Honeycomb app I'd like to use breadcrumbs, but do not find any information how to use it. Is there a running example that uses breadcrumb titles?
TITLE: How to display FragmentBreadCrumbs in a Honeycomb app QUESTION: I'd like to use breadcrumbs, but do not find any information how to use it. Is there a running example that uses breadcrumb titles? ANSWER: The Google IO app has a good example of implementing breadcrumbs with fragments. You can get the source cod...
[ "android", "android-layout", "android-3.0-honeycomb" ]
5
5
6,746
1
0
2011-06-03T15:23:23.740000
2011-06-03T16:33:12.470000
6,229,073
6,229,253
How to make a dictionary that returns key for keys missing from the dictionary instead of raising KeyError?
I want to create a python dictionary that returns me the key value for the keys are missing from the dictionary. Usage example: dic = smart_dict() dic['a'] = 'one a' print(dic['a']) # >>> one a print(dic['b']) # >>> b
dict s have a __missing__ hook for this: class smart_dict(dict): def __missing__(self, key): return key Could simplify it as (since self is never used): class smart_dict(dict): @staticmethod def __missing__(key): return key
How to make a dictionary that returns key for keys missing from the dictionary instead of raising KeyError? I want to create a python dictionary that returns me the key value for the keys are missing from the dictionary. Usage example: dic = smart_dict() dic['a'] = 'one a' print(dic['a']) # >>> one a print(dic['b']) # ...
TITLE: How to make a dictionary that returns key for keys missing from the dictionary instead of raising KeyError? QUESTION: I want to create a python dictionary that returns me the key value for the keys are missing from the dictionary. Usage example: dic = smart_dict() dic['a'] = 'one a' print(dic['a']) # >>> one a ...
[ "python", "dictionary", "data-structures", "dictionary-missing" ]
67
96
29,249
7
0
2011-06-03T15:23:37.210000
2011-06-03T15:36:40.537000
6,229,076
6,229,084
How do I reinitialise a UDT in VB6?
I've got a loop, which is reading in a stack of XML files, for each one, it validates the data that was in the XML and loads it into some UDTs and then does some work on the data. Then it gets back to the beginning of the loop and the UDTs still have data in from the previous XML. If that tag is defined in the new one,...
Dim a new variable as the UDT and set the old one equal to the new variable. For instance: Dim XEmpty as UDT X = XEmpty Will reinitialise a variable X that is a UDT of type UDT.
How do I reinitialise a UDT in VB6? I've got a loop, which is reading in a stack of XML files, for each one, it validates the data that was in the XML and loads it into some UDTs and then does some work on the data. Then it gets back to the beginning of the loop and the UDTs still have data in from the previous XML. If...
TITLE: How do I reinitialise a UDT in VB6? QUESTION: I've got a loop, which is reading in a stack of XML files, for each one, it validates the data that was in the XML and loads it into some UDTs and then does some work on the data. Then it gets back to the beginning of the loop and the UDTs still have data in from th...
[ "vb6", "user-defined-types" ]
6
5
1,171
2
0
2011-06-03T15:23:39.330000
2011-06-03T15:24:07.550000
6,229,079
6,229,269
Disposing a singleton instance (C#)
If a singleton implements IDisposable, what is the right way of disposing and re-creating an instance? One way would be to keep _disposed flag and check for it in the Instance property, but I'm not sure it is the right way to do this. A simple example: public sealed class Singleton: IDisposable { private static Singlet...
if you need to replace the instance of a singleton, you should think about your design. if you REALLY think you should do this, i'd suggest to use 2 objects... one singleton object that acts as a proxy, and is a real singleton (end of lifetime == end of process) this object needs public members for everything your sing...
Disposing a singleton instance (C#) If a singleton implements IDisposable, what is the right way of disposing and re-creating an instance? One way would be to keep _disposed flag and check for it in the Instance property, but I'm not sure it is the right way to do this. A simple example: public sealed class Singleton: ...
TITLE: Disposing a singleton instance (C#) QUESTION: If a singleton implements IDisposable, what is the right way of disposing and re-creating an instance? One way would be to keep _disposed flag and check for it in the Instance property, but I'm not sure it is the right way to do this. A simple example: public sealed...
[ "c#", ".net-3.5", "singleton" ]
3
6
14,164
4
0
2011-06-03T15:23:49.457000
2011-06-03T15:37:26.023000
6,229,098
6,229,170
How to use a structure in multple functions
I am using a structure such as struct IF_ID { int PC; string instruction; }; and then in the int main() { IF_ID stage1; stage1.PC=0; FETCH(stage1); DECODE(&stage1); return 0; } When I passe stage1 in the FETCH(stage1) function it works fine, the thing is that i need the values that has been calculated in the FETCH(stag...
You're passing the struct to FETCH() by value. This means it is COPIED to the function. If you want the actual struct to be passed, you need the method to receive its pointer or reference: By reference: void FETCH(IF_ID& ref_stage); pointer to struct: void FETCH(IF_ID* ref_stage); If you use by reference, the inner fun...
How to use a structure in multple functions I am using a structure such as struct IF_ID { int PC; string instruction; }; and then in the int main() { IF_ID stage1; stage1.PC=0; FETCH(stage1); DECODE(&stage1); return 0; } When I passe stage1 in the FETCH(stage1) function it works fine, the thing is that i need the value...
TITLE: How to use a structure in multple functions QUESTION: I am using a structure such as struct IF_ID { int PC; string instruction; }; and then in the int main() { IF_ID stage1; stage1.PC=0; FETCH(stage1); DECODE(&stage1); return 0; } When I passe stage1 in the FETCH(stage1) function it works fine, the thing is tha...
[ "c++", "function", "struct" ]
0
3
89
5
0
2011-06-03T15:25:28.163000
2011-06-03T15:30:45.520000
6,229,103
6,229,200
Javascript strange behaviour
Can anyone explain this code to me var ParentClass = function(){ } var ChildClass = function(){ } //ChildClass.prototype = new ParentClass(); var child = new ChildClass(); alert(child.constructor === ChildClass); // alert true But var ParentClass = function(){ } var ChildClass = function(){ } ChildClass.prototype ...
constructor is a property of the prototype object: var ChildClass = function(){ } alert(ChildClass.prototype.constructor == ChildClass); // alert true The relationship is now like this: +-------------------+ +--------------------+ | | | | |ChildClass instance|---------->|ChildClass protoype | | | | constructor prop | ...
Javascript strange behaviour Can anyone explain this code to me var ParentClass = function(){ } var ChildClass = function(){ } //ChildClass.prototype = new ParentClass(); var child = new ChildClass(); alert(child.constructor === ChildClass); // alert true But var ParentClass = function(){ } var ChildClass = functio...
TITLE: Javascript strange behaviour QUESTION: Can anyone explain this code to me var ParentClass = function(){ } var ChildClass = function(){ } //ChildClass.prototype = new ParentClass(); var child = new ChildClass(); alert(child.constructor === ChildClass); // alert true But var ParentClass = function(){ } var Ch...
[ "javascript", "inheritance" ]
3
4
122
4
0
2011-06-03T15:26:05.460000
2011-06-03T15:32:59.280000
6,229,107
6,229,163
Measuring method execution with JVMTI
Using the MethodEntry and MethodExit event hooks provided by the JVMTI how would I measure the time of a method executed in Java? In simple means it's just: time2 - time1 but the problem I see, how to I distinguish between the different methods? There is a methodID, but what about recursive calls? When is a method clos...
You will need a stack for every thread and and with every MethodEnter you push the timestamp on the stack and on MethodExit you pop the timestamp and calculate the difference to the current time. Although you should keep in mind that reading timestamps or tickcounts and also the surrounding logic is comparatively time ...
Measuring method execution with JVMTI Using the MethodEntry and MethodExit event hooks provided by the JVMTI how would I measure the time of a method executed in Java? In simple means it's just: time2 - time1 but the problem I see, how to I distinguish between the different methods? There is a methodID, but what about ...
TITLE: Measuring method execution with JVMTI QUESTION: Using the MethodEntry and MethodExit event hooks provided by the JVMTI how would I measure the time of a method executed in Java? In simple means it's just: time2 - time1 but the problem I see, how to I distinguish between the different methods? There is a methodI...
[ "java", "jvmti" ]
1
5
627
1
0
2011-06-03T15:26:26.747000
2011-06-03T15:30:13.977000
6,229,112
6,229,162
About the "force close/wait" notification
I have an app with a list view that downloads images on the fly. They are very small images and they are being stored after downloading. However, if the user has a very slow connection (and I mean very slow), it lags and the user is prompted with a "Force Close or Wait?" dialog. I am wondering if I can catch this befor...
You are getting an ANR (application not responding) dialog because you are blocking the UI thread. THIS IS BAD! Do all your long running tasks ( like network or file IO ) on a separate thread say AsyncTask. You can use Strict Mode to detect where you are misusing the UI thread. Suggest you to look for Painless Threadin...
About the "force close/wait" notification I have an app with a list view that downloads images on the fly. They are very small images and they are being stored after downloading. However, if the user has a very slow connection (and I mean very slow), it lags and the user is prompted with a "Force Close or Wait?" dialog...
TITLE: About the "force close/wait" notification QUESTION: I have an app with a list view that downloads images on the fly. They are very small images and they are being stored after downloading. However, if the user has a very slow connection (and I mean very slow), it lags and the user is prompted with a "Force Clos...
[ "android", "dialog", "wait" ]
1
5
1,983
3
0
2011-06-03T15:26:45.083000
2011-06-03T15:30:12.810000
6,229,113
6,229,294
iPhone/iPad app delopment and BundleId
Okay so here is my situation. About a year ago I released my very first iPhone app! (Yeah). Since then I have been working on making it into a universal app. In doing this, I actually went ahead and created a brand new universal app and then proceeded to code accordingly. So now I want to release this app but since the...
Should be absolutely fine. The devices will just replace the app with the new version - as long as your new one uses the same data storage / preferences etc there's no reason why that won't work. NB This answer assumes that you are going to release it as an upgrade to your previous app.
iPhone/iPad app delopment and BundleId Okay so here is my situation. About a year ago I released my very first iPhone app! (Yeah). Since then I have been working on making it into a universal app. In doing this, I actually went ahead and created a brand new universal app and then proceeded to code accordingly. So now I...
TITLE: iPhone/iPad app delopment and BundleId QUESTION: Okay so here is my situation. About a year ago I released my very first iPhone app! (Yeah). Since then I have been working on making it into a universal app. In doing this, I actually went ahead and created a brand new universal app and then proceeded to code acc...
[ "iphone", "objective-c", "xcode", "ipad" ]
1
1
262
1
0
2011-06-03T15:26:47.420000
2011-06-03T15:38:52.730000
6,229,115
6,229,169
Voting script (PHP Handler, jQuery POST-sender) problem
Hai there. I'm working on a voting script. I'll just post a code first. http://pastie.org/2014134 - php script http://pastie.org/2014137 - jquery script (I'm just testing so it handles only "yes") As you can see at the end of php code there are a couple of print();s, and it returns to the browser, as declared in jQuery...
You have an error here: if ($choice = 'yes') { (and well as in other two conditions). You should not use assigment operator = in your conditions but equality operator ==: if ($choice == 'yes') {
Voting script (PHP Handler, jQuery POST-sender) problem Hai there. I'm working on a voting script. I'll just post a code first. http://pastie.org/2014134 - php script http://pastie.org/2014137 - jquery script (I'm just testing so it handles only "yes") As you can see at the end of php code there are a couple of print()...
TITLE: Voting script (PHP Handler, jQuery POST-sender) problem QUESTION: Hai there. I'm working on a voting script. I'll just post a code first. http://pastie.org/2014134 - php script http://pastie.org/2014137 - jquery script (I'm just testing so it handles only "yes") As you can see at the end of php code there are a...
[ "php", "jquery" ]
1
1
328
3
0
2011-06-03T15:27:00.520000
2011-06-03T15:30:38.610000
6,229,117
6,232,494
Tradeoffs for using soft permutations in GWT?
I am exploring using soft permutations in my build of GWT because total file system size of the compiled app is important to me (read: sum of all permutations). Aside from increasing the file size the user has to download and potential runtime performance decreases, is there any other drawbacks to using soft permutatio...
I don't think there are others, except that there might be incompatibilities with existing generators/linkers (I recently proposed a patch to GWT using soft permutations and it got rolled back at least twice, before being revisited with a runtime check but no soft permutation). See commits r9970 through r10257.
Tradeoffs for using soft permutations in GWT? I am exploring using soft permutations in my build of GWT because total file system size of the compiled app is important to me (read: sum of all permutations). Aside from increasing the file size the user has to download and potential runtime performance decreases, is ther...
TITLE: Tradeoffs for using soft permutations in GWT? QUESTION: I am exploring using soft permutations in my build of GWT because total file system size of the compiled app is important to me (read: sum of all permutations). Aside from increasing the file size the user has to download and potential runtime performance ...
[ "gwt", "gwt2" ]
3
2
403
1
0
2011-06-03T15:27:03.390000
2011-06-03T20:46:46.330000
6,229,119
6,236,781
how to not enter deadlock in file system device driver?
i am creating file system filter driver and need to open some files to check attributes in dispatch routines. I am using ZwCreateFile(). But my dispatch routines is called at every file system request, so my ZwCreateFile() will then call again my dispatch routine. What is the best method to not enter deadlock? I think ...
Try IoCreateFileSpecifyDeviceObjectHint, IoCreateFileEx or FtlCreateFile.
how to not enter deadlock in file system device driver? i am creating file system filter driver and need to open some files to check attributes in dispatch routines. I am using ZwCreateFile(). But my dispatch routines is called at every file system request, so my ZwCreateFile() will then call again my dispatch routine....
TITLE: how to not enter deadlock in file system device driver? QUESTION: i am creating file system filter driver and need to open some files to check attributes in dispatch routines. I am using ZwCreateFile(). But my dispatch routines is called at every file system request, so my ZwCreateFile() will then call again my...
[ "c", "windows", "filesystems", "device-driver" ]
1
1
364
1
0
2011-06-03T15:27:16.040000
2011-06-04T12:39:21.763000
6,229,121
6,230,162
Entity Framework Confusion with `virtual`s
I am using Entity Framwwork and Code First and getting really confused. I have this class: public class Blocks { [Display(Name = "ID"),Required(ErrorMessage = "ID is required")] [Key,HiddenInput(DisplayValue=false)] public int BlockId { get;set; } [Display(Name = "Blocked By"),Required(ErrorMessage = "Blocked By is re...
Give EF a little hint what are your Foreign Key properties by putting annotations on the properties:... [ForeignKey("Profile")] public int ProfileId { get;set; }... [ForeignKey("ProfileBlocked")] public int ProfileBlockedId { get;set; }... I believe that this is always necessary when you have more than one navigation p...
Entity Framework Confusion with `virtual`s I am using Entity Framwwork and Code First and getting really confused. I have this class: public class Blocks { [Display(Name = "ID"),Required(ErrorMessage = "ID is required")] [Key,HiddenInput(DisplayValue=false)] public int BlockId { get;set; } [Display(Name = "Blocked By"...
TITLE: Entity Framework Confusion with `virtual`s QUESTION: I am using Entity Framwwork and Code First and getting really confused. I have this class: public class Blocks { [Display(Name = "ID"),Required(ErrorMessage = "ID is required")] [Key,HiddenInput(DisplayValue=false)] public int BlockId { get;set; } [Display(N...
[ "entity-framework", "linq-to-sql", "asp.net-mvc-3", "ef-code-first", "scaffolding" ]
3
3
2,946
2
0
2011-06-03T15:27:33.780000
2011-06-03T16:52:11.207000
6,229,131
6,231,921
Why can't C# infer type from this seemingly simple, obvious case
Given this code: class C { C() { Test (A); // fine Test((string a) => {}); // fine Test((Action )A); // fine Test(A); // type arguments cannot be inferred from usage! } static void Test (Action a) { } void A(string _) { } } The compiler complains that Test(A) can't figure out T to be string. This seems like a pretty...
Test(A); This fails because the only applicable method ( Test (Action ) ) requires type inference, and the type inference algorithm requires that each each argument be of some type or be an anonymous function. (This fact is inferred from the specification of the type inference algorithm (§7.5.2)) The method group A is ...
Why can't C# infer type from this seemingly simple, obvious case Given this code: class C { C() { Test (A); // fine Test((string a) => {}); // fine Test((Action )A); // fine Test(A); // type arguments cannot be inferred from usage! } static void Test (Action a) { } void A(string _) { } } The compiler complains that ...
TITLE: Why can't C# infer type from this seemingly simple, obvious case QUESTION: Given this code: class C { C() { Test (A); // fine Test((string a) => {}); // fine Test((Action )A); // fine Test(A); // type arguments cannot be inferred from usage! } static void Test (Action a) { } void A(string _) { } } The compil...
[ "c#" ]
73
40
4,341
5
0
2011-06-03T15:28:32.500000
2011-06-03T19:45:36.660000
6,229,136
6,229,199
Encrypting a file with a weak password, bcrypt or SHA-256 + AES-256?
I start with a weak password (8 lower case characters for ex) and a file. I need to encrypt that file using that password. Result has to be secure against known attacks. Approach 1: I could hash the password using SHA-256 and then use the resulting hash and file as inputs to AES-256, giving me an encrypted file. I unde...
Approach 4: Use PKCS#5 (PBKDF2 for deriving a key from a pass + a cipher of your choice for encryption using that key), preferably somebody else's implementation. And don't forget the salt. (You store it together with the encrypted data. It only needs to be 8 bytes or so.)
Encrypting a file with a weak password, bcrypt or SHA-256 + AES-256? I start with a weak password (8 lower case characters for ex) and a file. I need to encrypt that file using that password. Result has to be secure against known attacks. Approach 1: I could hash the password using SHA-256 and then use the resulting ha...
TITLE: Encrypting a file with a weak password, bcrypt or SHA-256 + AES-256? QUESTION: I start with a weak password (8 lower case characters for ex) and a file. I need to encrypt that file using that password. Result has to be secure against known attacks. Approach 1: I could hash the password using SHA-256 and then us...
[ "encryption", "cryptography", "aes", "sha", "bcrypt" ]
6
12
4,538
1
0
2011-06-03T15:28:46.283000
2011-06-03T15:32:45.853000
6,229,139
6,264,047
Zend Search Lucene And Persian Language !
i have the following code in my zf project: $index = Zend_Search_Lucene::open(APPLICATION_PATH. '/cache/search_index'); $doc = new Zend_Search_Lucene_Document(); $title = "سلام سینا xxx sad"; $doc->addField(Zend_Search_Lucene_Field::Text('title', $title)); $index->addDocument($doc); $index->commit(); $index->optimi...
Fixed by this code: $index = Zend_Search_Lucene::open(APPLICATION_PATH. '/cache/search_index'); $doc = new Zend_Search_Lucene_Document(); $title = "سلام سینا xxx sad"; $doc->addField(Zend_Search_Lucene_Field::Text('title', $title,"UTF8")); $index->addDocument($doc); $index->commit(); $index->optimize(); echo "Index...
Zend Search Lucene And Persian Language ! i have the following code in my zf project: $index = Zend_Search_Lucene::open(APPLICATION_PATH. '/cache/search_index'); $doc = new Zend_Search_Lucene_Document(); $title = "سلام سینا xxx sad"; $doc->addField(Zend_Search_Lucene_Field::Text('title', $title)); $index->addDocumen...
TITLE: Zend Search Lucene And Persian Language ! QUESTION: i have the following code in my zf project: $index = Zend_Search_Lucene::open(APPLICATION_PATH. '/cache/search_index'); $doc = new Zend_Search_Lucene_Document(); $title = "سلام سینا xxx sad"; $doc->addField(Zend_Search_Lucene_Field::Text('title', $title)); ...
[ "zend-framework", "utf-8", "lucene", "persian" ]
5
0
687
1
0
2011-06-03T15:29:09.613000
2011-06-07T10:42:35.803000
6,229,142
6,303,138
Fragments behaviour: FragmentTransaction::replace() and reverse backStack operation
I call this method to go forward from AFrag to BFrag: showFragment() { FragmentTransaction fragmentTransaction = mFragmentMgr.beginTransaction(); // Add fragment to the container ContentView fragmentTransaction.replace(R.id.operation_fragments_frame, mBFrag, mBFrag.getTag()); // Add FADE effect fragmentTransaction.se...
have you tried to use an other method, like remove(), then do an add(). or anything similar? I saw on some other post that the replace() method does not always behave correctly.
Fragments behaviour: FragmentTransaction::replace() and reverse backStack operation I call this method to go forward from AFrag to BFrag: showFragment() { FragmentTransaction fragmentTransaction = mFragmentMgr.beginTransaction(); // Add fragment to the container ContentView fragmentTransaction.replace(R.id.operation_f...
TITLE: Fragments behaviour: FragmentTransaction::replace() and reverse backStack operation QUESTION: I call this method to go forward from AFrag to BFrag: showFragment() { FragmentTransaction fragmentTransaction = mFragmentMgr.beginTransaction(); // Add fragment to the container ContentView fragmentTransaction.replac...
[ "android", "android-3.0-honeycomb", "android-fragments", "fragment" ]
5
4
13,483
1
0
2011-06-03T15:29:21.800000
2011-06-10T07:16:12.027000
6,229,146
6,231,260
An Access Problem:How to Set Access Report paper size A3 through VBA code
I want to set access report paper size to A3 permanently whenever user print it through VBA code. For that I have written this code which I have found over net Option Compare Database Type gtypStr_DEVMODE RGB As String * 94 End Type Type gType_DEVMODE strDeviceName As String * 32 intSpecVersion As Integer intDriverVe...
Well... I don't believe you wrote that code your self (a link to where you found it would have been helpful, I found about 20 references to it) but you probably want to change LDM.intPaperSize = 256 to LDM.intPaperSize = acPRPSA3. I found this on MS's page (it's hidden in the dropdown for AcPrintPaperSize
An Access Problem:How to Set Access Report paper size A3 through VBA code I want to set access report paper size to A3 permanently whenever user print it through VBA code. For that I have written this code which I have found over net Option Compare Database Type gtypStr_DEVMODE RGB As String * 94 End Type Type gType_...
TITLE: An Access Problem:How to Set Access Report paper size A3 through VBA code QUESTION: I want to set access report paper size to A3 permanently whenever user print it through VBA code. For that I have written this code which I have found over net Option Compare Database Type gtypStr_DEVMODE RGB As String * 94 End...
[ "ms-access", "ms-access-2010" ]
1
0
3,973
1
0
2011-06-03T15:29:38.203000
2011-06-03T18:39:50.587000
6,229,151
6,229,203
Why I can not get the row id when mouse clicked on a table row?
I have a index.html page with a table: John 123 Kate 456 I have included my.js in my page, I tried to get the id of the mouse clicked row in the following way in my.js: $('.mytable tr').click(function(e){ alert('clicked.'); //even did not get alert here. var rowId = $(this).attr('id'); alert(rowId); }); But I did not g...
$ === jQuery? Is the code which binds the click listener executed in a document ready handler? this.id is sufficient and will work in all browsers.
Why I can not get the row id when mouse clicked on a table row? I have a index.html page with a table: John 123 Kate 456 I have included my.js in my page, I tried to get the id of the mouse clicked row in the following way in my.js: $('.mytable tr').click(function(e){ alert('clicked.'); //even did not get alert here. v...
TITLE: Why I can not get the row id when mouse clicked on a table row? QUESTION: I have a index.html page with a table: John 123 Kate 456 I have included my.js in my page, I tried to get the id of the mouse clicked row in the following way in my.js: $('.mytable tr').click(function(e){ alert('clicked.'); //even did not...
[ "javascript", "html", "jquery", "jquery-ui", "jquery-events" ]
1
5
1,190
5
0
2011-06-03T15:30:01.643000
2011-06-03T15:33:16.440000
6,229,155
6,229,281
SEO for CSS hide JS fade-in
I have an image that I want to fade in once the page loads. I have set the css for that image to have zero opacity. I then use js to fade the image in (increment the opacity to 1). This happens within about a second of the page loading. I can imagine that elements with zero opacity won't add value to the SEO. However I...
SEO is a dark art. The only people who can answer this question accurately will be Google's engineers, and they won't answer it. There are a lot of "SEO experts" who will bluff you that they know the answer, but the truth is that they're all of them making educated guesses. My answer to the question follows, but bear i...
SEO for CSS hide JS fade-in I have an image that I want to fade in once the page loads. I have set the css for that image to have zero opacity. I then use js to fade the image in (increment the opacity to 1). This happens within about a second of the page loading. I can imagine that elements with zero opacity won't add...
TITLE: SEO for CSS hide JS fade-in QUESTION: I have an image that I want to fade in once the page loads. I have set the css for that image to have zero opacity. I then use js to fade the image in (increment the opacity to 1). This happens within about a second of the page loading. I can imagine that elements with zero...
[ "javascript", "css", "seo", "opacity" ]
3
11
2,867
3
0
2011-06-03T15:30:03.403000
2011-06-03T15:38:23.347000
6,229,166
6,229,596
SSCollectionViewItem changing image size
how to change the SSCollectionViewItem (from SSToolKit) image size?
From the SSCollectionViewItem Documentation, the imageView property is a UIImageView. This means you can adjust its size using bounds or frame or any of the usual suspects for resizing any UIView. For example, myCollectionViewItem.imageView.bounds.size.width = 10.0; myCollectionViewItem.imageView.bounds.size.height = 1...
SSCollectionViewItem changing image size how to change the SSCollectionViewItem (from SSToolKit) image size?
TITLE: SSCollectionViewItem changing image size QUESTION: how to change the SSCollectionViewItem (from SSToolKit) image size? ANSWER: From the SSCollectionViewItem Documentation, the imageView property is a UIImageView. This means you can adjust its size using bounds or frame or any of the usual suspects for resizing...
[ "objective-c", "ios", "uiimageview", "uiimage" ]
0
0
112
1
0
2011-06-03T15:30:24
2011-06-03T15:59:26.030000
6,229,178
6,229,551
Report result - Can SQL be improved?
I am creating a report of Shops Order. SQL Query does work as expected. It calulate the numbers of orders from each shop, the total cost of orders and our commission and the outstanding fields. If the customer paid by Cash at the delivery, then it show OutstandingComm field If the customer paid by Card from Online, the...
Few things I can think of: Here are some things to consider, try them if you feel like it, but be sure to time the effect of each change, it might not work or it might make things slower: The case when looks at a string (PayCash/PayCard). If you make that field a number, put an index on it and check the numeric value, ...
Report result - Can SQL be improved? I am creating a report of Shops Order. SQL Query does work as expected. It calulate the numbers of orders from each shop, the total cost of orders and our commission and the outstanding fields. If the customer paid by Cash at the delivery, then it show OutstandingComm field If the c...
TITLE: Report result - Can SQL be improved? QUESTION: I am creating a report of Shops Order. SQL Query does work as expected. It calulate the numbers of orders from each shop, the total cost of orders and our commission and the outstanding fields. If the customer paid by Cash at the delivery, then it show OutstandingC...
[ "mysql", "sql", "select" ]
0
1
72
3
0
2011-06-03T15:31:43.843000
2011-06-03T15:56:20.780000
6,229,183
6,229,711
ruby - writing an array to a hash without overwriting
I do the following my_hash = Hash.new my_hash[:children] = Array.new I then have a function that calls itself a number of time each time writing to children my_hash[:children] = my_replicating_function(some_values) How do I write without overwriting data that is already written? This is what the entire function looks l...
Maybe this: structure[:children] << build_structure(candidates, candidate.candidate_id)
ruby - writing an array to a hash without overwriting I do the following my_hash = Hash.new my_hash[:children] = Array.new I then have a function that calls itself a number of time each time writing to children my_hash[:children] = my_replicating_function(some_values) How do I write without overwriting data that is alr...
TITLE: ruby - writing an array to a hash without overwriting QUESTION: I do the following my_hash = Hash.new my_hash[:children] = Array.new I then have a function that calls itself a number of time each time writing to children my_hash[:children] = my_replicating_function(some_values) How do I write without overwritin...
[ "ruby-on-rails", "ruby" ]
1
3
181
2
0
2011-06-03T15:31:56.440000
2011-06-03T16:07:27.133000
6,229,184
6,229,637
IE7 Z-Index issue - Context Menu
I have the following button with associated context menu Action Remove Detail Assign When the button is clicked the associated ul shows beneath it as a context menu. This is working great on all browsers except IE 7. In IE7 the context menu (ul) shows beneath the button below it. I imagine this is likely due to how the...
I have resolved this by changing the element ordering. I have removed the relative position element from containing both my button and menu, and made it only the parent of menu. Remove Detail Assign Action With this markup change the css has changed into the following:.control-action { text-align:right; width:100px; }....
IE7 Z-Index issue - Context Menu I have the following button with associated context menu Action Remove Detail Assign When the button is clicked the associated ul shows beneath it as a context menu. This is working great on all browsers except IE 7. In IE7 the context menu (ul) shows beneath the button below it. I imag...
TITLE: IE7 Z-Index issue - Context Menu QUESTION: I have the following button with associated context menu Action Remove Detail Assign When the button is clicked the associated ul shows beneath it as a context menu. This is working great on all browsers except IE 7. In IE7 the context menu (ul) shows beneath the butto...
[ "css", "internet-explorer-7", "z-index", "internet-explorer-6" ]
2
2
3,488
4
0
2011-06-03T15:31:56.433000
2011-06-03T16:02:09.207000
6,229,186
6,229,260
Android splash screen, opaque background not working
I'm trying to get the background of my splash screen to be opaque/transparent. I made a colors.xml in values: #00000000 Then I have my splash.xml I feel like I should have something in the manifest, but I keep getting errors putting activitys in. Also if you are really feeling frisky, I can figure out how to make the t...
Simple Method Specify the activity to use the translucent theme (in manifest.xml): Advanced Method If you want more customisability you can create your own theme extending the Translucent theme (manifest.xml): and in styles.xml: #DA000000
Android splash screen, opaque background not working I'm trying to get the background of my splash screen to be opaque/transparent. I made a colors.xml in values: #00000000 Then I have my splash.xml I feel like I should have something in the manifest, but I keep getting errors putting activitys in. Also if you are real...
TITLE: Android splash screen, opaque background not working QUESTION: I'm trying to get the background of my splash screen to be opaque/transparent. I made a colors.xml in values: #00000000 Then I have my splash.xml I feel like I should have something in the manifest, but I keep getting errors putting activitys in. Al...
[ "android", "transparent", "splash-screen" ]
4
12
7,237
2
0
2011-06-03T15:32:00.853000
2011-06-03T15:36:58.940000
6,229,187
6,229,300
LINQ: Why is it called "Comprehension Syntax"
Why is the following LINQ syntax (sometimes called "query" syntax) called "comprehension" syntax? What's being comprehended (surely that's wrong)? Or, what is comprehensively represented (maybe I'm on the right track, now)?
I suspect this is related to the second meaning of Comprehend: to take in or embrace; include; comprise This syntax has to do with defining what should be included in a set.
LINQ: Why is it called "Comprehension Syntax" Why is the following LINQ syntax (sometimes called "query" syntax) called "comprehension" syntax? What's being comprehended (surely that's wrong)? Or, what is comprehensively represented (maybe I'm on the right track, now)?
TITLE: LINQ: Why is it called "Comprehension Syntax" QUESTION: Why is the following LINQ syntax (sometimes called "query" syntax) called "comprehension" syntax? What's being comprehended (surely that's wrong)? Or, what is comprehensively represented (maybe I'm on the right track, now)? ANSWER: I suspect this is relat...
[ "c#", "linq", "syntax", "naming" ]
20
6
3,906
5
0
2011-06-03T15:32:14.863000
2011-06-03T15:39:18.160000
6,229,190
6,229,192
Remove .svn folders
I am using SVN while developing a WordPress site. Now I want to upload it to the server and there are loads of SVN files in.svn folders. Are these safe to remove and how do I remove them?
You may also find the svn export command useful. This command exports a copy of your working tree without the.svn folders. This comes pretty handy if you develop under the Subversion recommended tagging way, you can always export a tag, and then you'll have a better control over what revision is on production.
Remove .svn folders I am using SVN while developing a WordPress site. Now I want to upload it to the server and there are loads of SVN files in.svn folders. Are these safe to remove and how do I remove them?
TITLE: Remove .svn folders QUESTION: I am using SVN while developing a WordPress site. Now I want to upload it to the server and there are loads of SVN files in.svn folders. Are these safe to remove and how do I remove them? ANSWER: You may also find the svn export command useful. This command exports a copy of your ...
[ "svn" ]
21
34
31,753
7
0
2011-06-03T09:50:35.090000
2011-06-03T10:34:27.740000
6,229,196
6,229,235
Regular expression for a string that is not the prefix of some other particular string
What is the regular expression that would find all instances of the string "&", but not if the instance is the prefix of the string " ". For example, it would match the "&" in "John & Paul", but not the "&" in "John Paul".
What you're looking for is a negative lookahead (see this answer as well). The syntax would generally be something like: &(?!nbsp;) Which matches any ampersand not followed by nbsp;
Regular expression for a string that is not the prefix of some other particular string What is the regular expression that would find all instances of the string "&", but not if the instance is the prefix of the string " ". For example, it would match the "&" in "John & Paul", but not the "&" in "John Paul".
TITLE: Regular expression for a string that is not the prefix of some other particular string QUESTION: What is the regular expression that would find all instances of the string "&", but not if the instance is the prefix of the string " ". For example, it would match the "&" in "John & Paul", but not the "&" in "John...
[ "regex" ]
1
4
155
2
0
2011-06-03T15:32:36.873000
2011-06-03T15:35:08.880000
6,229,221
6,230,698
Mapping classes from Assemblies which are stored in a Different Folder
I'm trying to build an extensible application using MEF and fluent Nhibernate as ORM. It was working well until I decided to store the extension assemblies in a seperate folder (\Extensions). MEF loads the extensions without any problem, but nhibernate throws exceptions because it can't locate the assembly. Is there a ...
If I'm understanding your question correctly, there are a couple of options: AppDomain.CurrentDomain.SetupInformation.PrivateBinPath will work if your Extension directory is or is in a subdirectory of the application's directory. Alternatively, you could handle the AppDomain.AssemblyResolve event.
Mapping classes from Assemblies which are stored in a Different Folder I'm trying to build an extensible application using MEF and fluent Nhibernate as ORM. It was working well until I decided to store the extension assemblies in a seperate folder (\Extensions). MEF loads the extensions without any problem, but nhibern...
TITLE: Mapping classes from Assemblies which are stored in a Different Folder QUESTION: I'm trying to build an extensible application using MEF and fluent Nhibernate as ORM. It was working well until I decided to store the extension assemblies in a seperate folder (\Extensions). MEF loads the extensions without any pr...
[ "c#", "nhibernate", "mef", "fluent" ]
2
0
951
1
0
2011-06-03T15:34:30.043000
2011-06-03T17:45:20.847000
6,229,226
6,229,276
C# interface - implement with different signature
I suppose this is somewhat of a design question too. Is it possible to override a method from an interface when the overriding signature has a different signature type? For example, lets say that I want two different classes that should have the following: interface IProtocolClient { void connect(Type1 t1, Type2 t2, Ty...
An Interface is a 'contract' that your class 'signs up to' and the class must implement the interface as defined. Your second approach to use a class specific method that extends the interface specified class and then calls the interface method is a reasonable solution but of course does mean that you can't use the Int...
C# interface - implement with different signature I suppose this is somewhat of a design question too. Is it possible to override a method from an interface when the overriding signature has a different signature type? For example, lets say that I want two different classes that should have the following: interface IPr...
TITLE: C# interface - implement with different signature QUESTION: I suppose this is somewhat of a design question too. Is it possible to override a method from an interface when the overriding signature has a different signature type? For example, lets say that I want two different classes that should have the follow...
[ "c#", "interface" ]
4
3
7,650
9
0
2011-06-03T15:34:38.873000
2011-06-03T15:37:54.403000
6,229,227
6,229,280
What keeps the back button from working on some sites?
So we've all been to some annoying websites that disable the back button in your browser. This can be circumvented by quickly pressing the back button two or three times. My question is: what is exactly happening when the back button is disabled and 2.) why does clicking the button two or three times fix the problem? D...
It's redirection - you click a link to page a which redirects to page b. When you click back you go back to page a which instantly redirects you back to page b. If you click twice quickly then there isn't time to redirect. I don't think your question has anything to do with Twitter. There's another back-button problem ...
What keeps the back button from working on some sites? So we've all been to some annoying websites that disable the back button in your browser. This can be circumvented by quickly pressing the back button two or three times. My question is: what is exactly happening when the back button is disabled and 2.) why does cl...
TITLE: What keeps the back button from working on some sites? QUESTION: So we've all been to some annoying websites that disable the back button in your browser. This can be circumvented by quickly pressing the back button two or three times. My question is: what is exactly happening when the back button is disabled a...
[ "javascript", "jquery" ]
7
9
13,342
6
0
2011-06-03T15:34:43.060000
2011-06-03T15:38:08.950000
6,229,228
6,229,303
Switching from Space to Tab delimited in php
I have the following bit of code: // Loop through returned data and write (append) directly to file fprintf($fh, "%-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s \n", "ID", "Name", "Description","Price","Merchant Category","URL","Image URL","Manufacturer","Manufacturer Part Number","...
If you mean you want to output tabs instead of spaces: // Loop through returned data and write (append) directly to file fprintf($fh, "%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s \n", "ID", "Name", "Description","Price","Merchant Category","URL","Image URL","Manufact...
Switching from Space to Tab delimited in php I have the following bit of code: // Loop through returned data and write (append) directly to file fprintf($fh, "%-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s \n", "ID", "Name", "Description","Price","Merchant Category","URL","Image URL...
TITLE: Switching from Space to Tab delimited in php QUESTION: I have the following bit of code: // Loop through returned data and write (append) directly to file fprintf($fh, "%-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s \n", "ID", "Name", "Description","Price","Merchant Category...
[ "php", "string" ]
2
2
252
4
0
2011-06-03T15:34:44.007000
2011-06-03T15:40:02.063000
6,229,229
6,262,048
I want to disable Roo scaffolding
Because I have manually tuned my entities and controllers and view, I would like roo to change none of them. Nevertheless I would like roo to keep on scaffolding all new entities. How could I do that
You can modify the @RooWebScaffold annotation in your entity by adding update=false attribute for it. @RooWebScaffold(path = " ", formBackingObject =.class, update=false) This tells Roo not to scaffold and update views for the generated entity. Cheers!!!
I want to disable Roo scaffolding Because I have manually tuned my entities and controllers and view, I would like roo to change none of them. Nevertheless I would like roo to keep on scaffolding all new entities. How could I do that
TITLE: I want to disable Roo scaffolding QUESTION: Because I have manually tuned my entities and controllers and view, I would like roo to change none of them. Nevertheless I would like roo to keep on scaffolding all new entities. How could I do that ANSWER: You can modify the @RooWebScaffold annotation in your entit...
[ "spring-roo" ]
7
8
2,483
3
0
2011-06-03T15:34:44.543000
2011-06-07T07:43:12.460000
6,229,240
6,232,314
How to add acl per row?
I have problem with ACL. I read tutorial from here and here, and now I know how to add permission to some user/group to edit his profile, but then all users can edit each other profile. How I can set permission so user can edit just his own profile, not others, or can I somehow put this code in edit function: function ...
Assuming that you are using action-based access control (which it appears as though you are), then unless you have an action named after each profile (which would be completely wrong) you will have to do an additional check within the edit() method to ensure that the profile being edited belongs to the currently logged...
How to add acl per row? I have problem with ACL. I read tutorial from here and here, and now I know how to add permission to some user/group to edit his profile, but then all users can edit each other profile. How I can set permission so user can edit just his own profile, not others, or can I somehow put this code in ...
TITLE: How to add acl per row? QUESTION: I have problem with ACL. I read tutorial from here and here, and now I know how to add permission to some user/group to edit his profile, but then all users can edit each other profile. How I can set permission so user can edit just his own profile, not others, or can I somehow...
[ "cakephp", "permissions", "cakephp-1.3", "acl" ]
0
1
296
1
0
2011-06-03T15:35:27.890000
2011-06-03T20:27:53.550000
6,229,262
6,231,112
printing in java sets a title somewhere to "Java Printing"
The following code works, but when I print to the PDFCreator printer driver, its default title is "Java Printing". (I suspect this is true for Adobe Distiller as well, since if you search google for PDFs with Java Printing, you get a lot of results.) Is there a way to change this from "Java Printing" to another string?...
Have you tried this setJobName( String jobName ). job.setJobName("New Printing Name"); The API says that it is the name of the document to be printed. I am running my code on Ubuntu, it doesn't print the title, so I am unable to verify whether it works or not.
printing in java sets a title somewhere to "Java Printing" The following code works, but when I print to the PDFCreator printer driver, its default title is "Java Printing". (I suspect this is true for Adobe Distiller as well, since if you search google for PDFs with Java Printing, you get a lot of results.) Is there a...
TITLE: printing in java sets a title somewhere to "Java Printing" QUESTION: The following code works, but when I print to the PDFCreator printer driver, its default title is "Java Printing". (I suspect this is true for Adobe Distiller as well, since if you search google for PDFs with Java Printing, you get a lot of re...
[ "java", "printing" ]
6
9
3,710
2
0
2011-06-03T15:37:08.350000
2011-06-03T18:23:31.737000
6,229,268
6,229,337
Best approach for deploying asp.net website
Just wondering what is the best option for deploying an ASP.Net Website.At the moment I just place the code in a folder on server and create a virtual directory on IIS referring to this folder. Then I open the website in VS2008 on the server and build it.Though it works fine for me,I am not sure if I am following the b...
There's a wealth of opinion on this across the internet and it is all opinion. To an extent it's down to you and your team (if you have one), if your approach is working for you then I don't see any huge reason to change but I would suggest that you at least have a staging site where you can deploy the code for user te...
Best approach for deploying asp.net website Just wondering what is the best option for deploying an ASP.Net Website.At the moment I just place the code in a folder on server and create a virtual directory on IIS referring to this folder. Then I open the website in VS2008 on the server and build it.Though it works fine ...
TITLE: Best approach for deploying asp.net website QUESTION: Just wondering what is the best option for deploying an ASP.Net Website.At the moment I just place the code in a folder on server and create a virtual directory on IIS referring to this folder. Then I open the website in VS2008 on the server and build it.Tho...
[ "asp.net", "deployment", "web" ]
0
2
1,027
5
0
2011-06-03T15:37:24.290000
2011-06-03T15:42:04.967000
6,229,282
6,231,210
Flex/AS3: Detecting whe the Image's source has changed
I have an image which its source depends on a bindable property of another object. I'd like to know when this source changes, for example, by capturing the bind event or another related event of the Image control. Thanks in advance.
There's a few ways to do this. One was is to use Bindsetter private function creationComplete(event:FlexEvent):void{ BindingUtils.bindSetter(changeImage,hostObject,"image"); //assuming hostObject contains the property "image" } private function changeImage(imageSource:String){ //Set the image in here... do whatever els...
Flex/AS3: Detecting whe the Image's source has changed I have an image which its source depends on a bindable property of another object. I'd like to know when this source changes, for example, by capturing the bind event or another related event of the Image control. Thanks in advance.
TITLE: Flex/AS3: Detecting whe the Image's source has changed QUESTION: I have an image which its source depends on a bindable property of another object. I'd like to know when this source changes, for example, by capturing the bind event or another related event of the Image control. Thanks in advance. ANSWER: There...
[ "apache-flex", "actionscript-3", "data-binding" ]
1
0
295
1
0
2011-06-03T15:38:23.280000
2011-06-03T18:33:24.520000
6,229,286
6,229,311
Regex match first characters of string
I am trying to create a regex that will match the first 3 characters of a string, If I have a string ABCFFFF I want to verify that the first 3 characters are ABC.
It's pretty straightforward, the pattern would be ^ABC As others may point out, using regular expressions for such a task is an overkill. Any programming language with regex support can do it better with simple string manipulations.
Regex match first characters of string I am trying to create a regex that will match the first 3 characters of a string, If I have a string ABCFFFF I want to verify that the first 3 characters are ABC.
TITLE: Regex match first characters of string QUESTION: I am trying to create a regex that will match the first 3 characters of a string, If I have a string ABCFFFF I want to verify that the first 3 characters are ABC. ANSWER: It's pretty straightforward, the pattern would be ^ABC As others may point out, using regul...
[ "regex" ]
19
24
115,552
3
0
2011-06-03T15:38:32.183000
2011-06-03T15:40:23.007000
6,229,290
6,230,915
eclipse and SVN adding jar files
I'm trying to make modifications to the trunk found at https://wafle.svn.codeplex.com/svn SVN repository location. The way that I did this in Eclipse was that I used Subclipse, added a new repository location, then opened up the project and right clicked on the trunk. Then I clicked "checkout" and checked it out as a n...
First thing: rajah9 is exactly correct - there is a.classpath file already. You just got a little hung up on a really odd svn repo layout. the java stuff is mixed in with the.net stuff. Check out the trunk and then do a file > import... then select general > existing projects into workspace. You'll want to select the S...
eclipse and SVN adding jar files I'm trying to make modifications to the trunk found at https://wafle.svn.codeplex.com/svn SVN repository location. The way that I did this in Eclipse was that I used Subclipse, added a new repository location, then opened up the project and right clicked on the trunk. Then I clicked "ch...
TITLE: eclipse and SVN adding jar files QUESTION: I'm trying to make modifications to the trunk found at https://wafle.svn.codeplex.com/svn SVN repository location. The way that I did this in Eclipse was that I used Subclipse, added a new repository location, then opened up the project and right clicked on the trunk. ...
[ "java", "eclipse", "svn" ]
0
2
4,907
2
0
2011-06-03T15:38:48.473000
2011-06-03T18:05:06.113000
6,229,291
6,230,075
How to determine non-fullscreen activity window size on startup?
I have a non-fullscreen activity (the system notification bar is visible). In order to create my view hierarchy I need to know the size of the the piece of screen that my activity occupates (that is the size of the display detracted by the size of the system notification bar). How can I determine that within the onCrea...
This is not known in onCreate(). What you should do is participate correctly in the view hierarchy layout process. You do NOT do your layout in onCreate(), you do it in the view hierarchy with the layout managers. If you have some special layout that you can't implement with the standard layout managers, it is pretty e...
How to determine non-fullscreen activity window size on startup? I have a non-fullscreen activity (the system notification bar is visible). In order to create my view hierarchy I need to know the size of the the piece of screen that my activity occupates (that is the size of the display detracted by the size of the sys...
TITLE: How to determine non-fullscreen activity window size on startup? QUESTION: I have a non-fullscreen activity (the system notification bar is visible). In order to create my view hierarchy I need to know the size of the the piece of screen that my activity occupates (that is the size of the display detracted by t...
[ "android", "size", "startup" ]
2
4
2,929
2
0
2011-06-03T15:38:49.183000
2011-06-03T16:41:10.417000
6,229,299
6,229,308
accessing two or more list in a single for-loop
provided that I have two lists in same length, list_a, list_b. I can print they items in a single for loop as follows: for i in range(0, len(list_a)): print "%s %s" % (list_a[i], list_b[i]) is there any alternative and elegant way to do above mentioned task? I have tried for a, b in list_a, list_b: print ""
You need zip(): for a, b in zip(list_a, list_b): # whatever When the lists are long and you are using Python 2.x, you might prefer itertools.izip() to save some memory.
accessing two or more list in a single for-loop provided that I have two lists in same length, list_a, list_b. I can print they items in a single for loop as follows: for i in range(0, len(list_a)): print "%s %s" % (list_a[i], list_b[i]) is there any alternative and elegant way to do above mentioned task? I have tried ...
TITLE: accessing two or more list in a single for-loop QUESTION: provided that I have two lists in same length, list_a, list_b. I can print they items in a single for loop as follows: for i in range(0, len(list_a)): print "%s %s" % (list_a[i], list_b[i]) is there any alternative and elegant way to do above mentioned t...
[ "python", "python-3.x" ]
2
11
164
2
0
2011-06-03T15:39:18.047000
2011-06-03T15:40:16.680000
6,229,306
6,229,518
code igniter php - how to echo model data within the controller
I'm new at code igniter and I'm trying to figure out how to utilize data returned from my database. I have a simple query in the model: function feed_get_all_trees(){ $query = $this->db->get('trees'); foreach ($query->result() as $row){ $data[] = $row; } return $data; } Then in the controller, I am building an XML Feed...
Not sure if I fully understand what you're trying to do as I've never used any XML plugin, but wouldn't you just do something like this to access the data? $data['rows'] = $this->Model_form->feed_get_all_trees(); foreach($data['rows'] as $row) {... }
code igniter php - how to echo model data within the controller I'm new at code igniter and I'm trying to figure out how to utilize data returned from my database. I have a simple query in the model: function feed_get_all_trees(){ $query = $this->db->get('trees'); foreach ($query->result() as $row){ $data[] = $row; } r...
TITLE: code igniter php - how to echo model data within the controller QUESTION: I'm new at code igniter and I'm trying to figure out how to utilize data returned from my database. I have a simple query in the model: function feed_get_all_trees(){ $query = $this->db->get('trees'); foreach ($query->result() as $row){ $...
[ "php", "codeigniter" ]
1
2
3,621
1
0
2011-06-03T15:40:14.133000
2011-06-03T15:53:55.007000
6,229,314
6,230,259
MacRuby 0.10 HotCocoa unsupported file format which is not the architecture being linked (i386)
I've installed MacRuby (via rvm): $ ruby -v MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] And LLVM (via homebrew): $ llvmc --version Low Level Virtual Machine (http://llvm.org/): llvm version 2.9 Optimized build. Built Jun 3 2011 (10:06:35). Host: x86_64-apple-darwin10 Host CPU: corei7 Registered Targets: (...
Using hotcocoa from this repo solves the problem. The published version is outdated and ignores architecture. Not ideal, but at least it works until the published version catches up. Thanks goes to @watson1978 This worked, but gave rise to another error: LSOpenURLsWithRole() failed with error -10810 I had to install Br...
MacRuby 0.10 HotCocoa unsupported file format which is not the architecture being linked (i386) I've installed MacRuby (via rvm): $ ruby -v MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] And LLVM (via homebrew): $ llvmc --version Low Level Virtual Machine (http://llvm.org/): llvm version 2.9 Optimized build. ...
TITLE: MacRuby 0.10 HotCocoa unsupported file format which is not the architecture being linked (i386) QUESTION: I've installed MacRuby (via rvm): $ ruby -v MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] And LLVM (via homebrew): $ llvmc --version Low Level Virtual Machine (http://llvm.org/): llvm version 2.9...
[ "osx-snow-leopard", "llvm", "x86-64", "macruby", "hotcocoa" ]
2
4
511
1
0
2011-06-03T15:40:28.707000
2011-06-03T17:01:53.660000
6,229,319
6,229,510
Wait and notify equivalent in Objective c?
I am transferring a program from java to Objective C and need to use wait and notify methods that are frequently used for threading in java but can't seem to find any good equivalent in Objective C. I've tried using NSLock object but I don't think it is working. (I'm using [NSLock lock] for waits and [NSLock unlock] fo...
There are numerous techniques you could use. You can use NSCondition or POSIX semaphores or dispatch semaphores or by using run loops. Check out the Concurrency Guide and the the Threading Guide. My personal favourite at the moment is the dispatch semaphore.
Wait and notify equivalent in Objective c? I am transferring a program from java to Objective C and need to use wait and notify methods that are frequently used for threading in java but can't seem to find any good equivalent in Objective C. I've tried using NSLock object but I don't think it is working. (I'm using [NS...
TITLE: Wait and notify equivalent in Objective c? QUESTION: I am transferring a program from java to Objective C and need to use wait and notify methods that are frequently used for threading in java but can't seem to find any good equivalent in Objective C. I've tried using NSLock object but I don't think it is worki...
[ "java", "iphone", "objective-c", "multithreading" ]
14
8
5,579
1
0
2011-06-03T15:40:43.857000
2011-06-03T15:53:26.943000
6,229,321
6,229,368
problem with function variables and php (drop downs with MySQL)
First, I am very novice in my knowledge of writing functions and php, so bear with me, and Thank you for your input and help. I have three dynamically loaded drop downs from a MySQL database. The first two pass one variable and work great. The third drop down needs to pass two values and I am having trouble getting it ...
> change it " > that will make a comma separated value for this option function get_Results(passedValue) { var args = passedValue.split(","); var CUR = args[0]; var COURSE = args[1]; var strURL="/textbookresults.php?CURR="+CURR+"&COURSE="+COURSE;....remaining code... hope fully that will solve the issue
problem with function variables and php (drop downs with MySQL) First, I am very novice in my knowledge of writing functions and php, so bear with me, and Thank you for your input and help. I have three dynamically loaded drop downs from a MySQL database. The first two pass one variable and work great. The third drop d...
TITLE: problem with function variables and php (drop downs with MySQL) QUESTION: First, I am very novice in my knowledge of writing functions and php, so bear with me, and Thank you for your input and help. I have three dynamically loaded drop downs from a MySQL database. The first two pass one variable and work great...
[ "php", "mysql", "jquery" ]
0
2
141
1
0
2011-06-03T15:40:45.487000
2011-06-03T15:44:15.843000
6,229,324
6,229,392
Cannot use jar command on windows
The jar command is not working on my box. I have downloaded the jdk, and set the envar "Path" to include the path to the jdk \bin directory. However, I still get that annoying message, "'jar' is not recognized as an internal or external command, operable program or batch file." Does anyone have any suggestions to solve...
I think from the error message that you're using Windows? If so, did you try it in a command prompt that you opened after changing your path using the GUI? And did you double check for typos in the path you added? You can always try running "echo %PATH%" to check your path, and ensure your change is both showing up and...
Cannot use jar command on windows The jar command is not working on my box. I have downloaded the jdk, and set the envar "Path" to include the path to the jdk \bin directory. However, I still get that annoying message, "'jar' is not recognized as an internal or external command, operable program or batch file." Does an...
TITLE: Cannot use jar command on windows QUESTION: The jar command is not working on my box. I have downloaded the jdk, and set the envar "Path" to include the path to the jdk \bin directory. However, I still get that annoying message, "'jar' is not recognized as an internal or external command, operable program or ba...
[ "windows", "batch-file", "jar", "java" ]
5
3
10,204
2
0
2011-06-03T15:41:04.930000
2011-06-03T15:46:14.587000
6,229,325
6,231,175
Can two multi-threaded object call two different stored procedures from a database?
This is my first message. I am trying to create a windows service that have three tables which two of them are stores coordinates and the last one stores the address information came from google api. System have two threads calling a SP that call parameter values for posting data to google. Another SP is used for stori...
Start two different threads each with their own threadstart function. Don't start the threads using the same function. Look at the example code here: http://msdn.microsoft.com/en-us/library/system.threading.threadstart.aspx
Can two multi-threaded object call two different stored procedures from a database? This is my first message. I am trying to create a windows service that have three tables which two of them are stores coordinates and the last one stores the address information came from google api. System have two threads calling a SP...
TITLE: Can two multi-threaded object call two different stored procedures from a database? QUESTION: This is my first message. I am trying to create a windows service that have three tables which two of them are stores coordinates and the last one stores the address information came from google api. System have two th...
[ "c#", "multithreading", "sql-server-2008", "stored-procedures", "monitoring" ]
0
1
329
1
0
2011-06-03T15:41:05.053000
2011-06-03T18:30:03.880000
6,229,328
6,253,038
jQuery UI: How can I send a set of common options to .dialog()?
Is it possible to send a set of common options: var commonVars = { autoOpen: false, draggable: false, resizable: false, show: 'fade', hide: 'fade' }; To dialog boxes: $('#dialog_1').dialog({ //Common vars go here somehow width: 275, height: 170, dialogClass: "class1 class2" }); $('#dialog_2').dialog({ //Common vars go ...
Figured it out, kind of on accident. So for anyone wondering the same thing, you can put the commonVars variable before each dialog's options bracket: var commonVars = { autoOpen: false, draggable: false, resizable: false, show: 'fade', hide: 'fade' }; $('#dialog_1').dialog(commonVars,{ width: 275, height: 170, dialog...
jQuery UI: How can I send a set of common options to .dialog()? Is it possible to send a set of common options: var commonVars = { autoOpen: false, draggable: false, resizable: false, show: 'fade', hide: 'fade' }; To dialog boxes: $('#dialog_1').dialog({ //Common vars go here somehow width: 275, height: 170, dialogClas...
TITLE: jQuery UI: How can I send a set of common options to .dialog()? QUESTION: Is it possible to send a set of common options: var commonVars = { autoOpen: false, draggable: false, resizable: false, show: 'fade', hide: 'fade' }; To dialog boxes: $('#dialog_1').dialog({ //Common vars go here somehow width: 275, heigh...
[ "javascript", "jquery", "jquery-ui", "jquery-ui-dialog" ]
4
1
1,333
3
0
2011-06-03T15:41:15.813000
2011-06-06T13:52:09.470000
6,229,339
6,229,416
Does releasing an object destroy the object?
I am new to cocoa-touch, and really unmanaged languages all together. While I have a firm grasp of the syntax, I am questioning whether I am releasing an object correctly. I have a view that creates an object, Communication *comm = [[Communication alloc] init]; [comm doSomething]; [comm release]; I understand that I ha...
A release only destroys the object if the last retainer released it. For example, say you allocate your Communication object. It is implicitly retained once. Then you retain it five times. You need to release/autorelease the object six times until it gets destroyed (its dealloc method is called). There is an internal c...
Does releasing an object destroy the object? I am new to cocoa-touch, and really unmanaged languages all together. While I have a firm grasp of the syntax, I am questioning whether I am releasing an object correctly. I have a view that creates an object, Communication *comm = [[Communication alloc] init]; [comm doSomet...
TITLE: Does releasing an object destroy the object? QUESTION: I am new to cocoa-touch, and really unmanaged languages all together. While I have a firm grasp of the syntax, I am questioning whether I am releasing an object correctly. I have a view that creates an object, Communication *comm = [[Communication alloc] in...
[ "cocoa-touch", "memory-management" ]
3
3
123
2
0
2011-06-03T15:42:11.527000
2011-06-03T15:47:31.557000
6,229,341
6,236,816
Gathering NDR Email addresses
I am looking to gather all NDRs from out an outlook account and write the email addresses of the fails to either a table within a database or even just an excel document for the purposes of data cleaning. Has anyone done anything like this previously and would be willing to push me in the right direction?
Well, you didn't say if you wanted an open source app (not aware of any), but I have written this commercial product: http://www.ListNanny.NET ListNanny will extracted the bounced addresses, classify the NDR, and provide you with some helpful information on why it bounced. The only catch is that the email needs to be i...
Gathering NDR Email addresses I am looking to gather all NDRs from out an outlook account and write the email addresses of the fails to either a table within a database or even just an excel document for the purposes of data cleaning. Has anyone done anything like this previously and would be willing to push me in the ...
TITLE: Gathering NDR Email addresses QUESTION: I am looking to gather all NDRs from out an outlook account and write the email addresses of the fails to either a table within a database or even just an excel document for the purposes of data cleaning. Has anyone done anything like this previously and would be willing ...
[ "vba", "outlook" ]
0
1
313
1
0
2011-06-03T15:42:25.527000
2011-06-04T12:46:29.690000