Please help me.
I have to send parameters to the server same as like this.
I wrote this code.But this is not correct format.
NSMutableArray *arr_serviceResponSe=[[NSMutableArray alloc]init];
//..............Packages
NSArray *arr_pckg=[[NSArray alloc]in...
hello guys. Yesterday I asked a question here on CR but a moderator told me the question was offtopic - so I deleted it. However it would still be nice if someone could give his opinion to what he thinks (it's a pretty short question). If you're interested: gist.github.com/Nasicus/893da00ae8d862bde315
As stated in the Help Center, one of the criteria for a question to be on topic is:
Is it actual code from a project rather than pseudo-code or example code?
What is the rationale for that rule?
So, foo?.isFooBar will do one of two things: if foo is not null it will evaluate isFooBar, if foo is null it will not evaluate isFooBar. After that, the ?? portion will evaluate whether the result on the left is null or not, and if it is null it will return the false, if it is not null it will return whatever isFooBar is.
and I know I have to provide real code, however it didn't make sense for me in this scenario - but I don't want to maek a fuss about it - that's why I posted it here
On Code Review we often encounter questions with the same kind of problem over and over again.
Some of us are using the auto comments script which allows you to maintain a list of comments to post.
What are some useful tin-can comments that can be good to have in your list of comments?
If you ...
@ARedHerring I tried putting together a simple example so people can review and comment on the idea. Keep the question off-topic, and I will remain off-site. Quite a disappointment here on SE family site. — Yahya5 mins ago
@ARedHerring no offence, but rather than having any constructive feedback on the question itself, we wasted time whether it should remain on the site or not. — Yahya3 mins ago
@Mast I understood that already - and it's ok with me! That's why I thought I can just ask this here in the chat and if anyone cares he cananswer (which some did)
@Mast That's really not fair - the question is not as you desire it on your page, and I can live with that, but it still contains everything to answer the question in my opinion - also it was even more effort to change the code to this, than jsut post a ton of code ;)
@OschtärEi I recommend you edit your existing question (unless it's been deleted) with actual code, and make a note, "I'm specifically concerned about ______".
This is a update of this question since the requirements for this task changed.
I have a function that takes a description as a String and returns a shortened version of the description.
The shortening is done by checking if a word matches the key of the Map<String,String> MAPPER and replaces t...
I'm using the follow php code to display operating system version:
<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
function getOS() {
global $user_agent;
$os_platform = "Unknown OS Platform";
$os_array = array(
'/windows nt 6.2/i' => 'Wind...
So the situation is that a certain asynchronous operation is called multiple times, which is basically to consolidate results. But I want to abort every time a new request comes in; which means that only the last call will run completely. Does this solution look reasonable?
I have tried replicat...
I would assume by this info-graphic style page of links (http://stackexchange.com/sites#) that Stackoverflow is the most popular due to its relative size in comparison to the other sites.
Of the many different Stack Exchange sites which is the MOST popular?
@ARedHerring @Mat'sMug He's specifically not asking for a Code Review. I think the community ran out of ideas and it's time for a moderator to say something.
public ActionResult Details(string id)
{
var material = GetMaterial(id);
if (material == null)
{
return HttpNotFound("Item could not be found.");
}
return View(material);
}
Posted a question for code review [about how to abort a process, running on a thread, on repetitive calls, but only run it on the last call when it is not interrupted]
Abort thread on new request, but complete only last request
Other than a few comments, what I received was that I should put ac...