access the key in a dictionary from a for loop - dictionary

I asked a question about dicts and the question was closed and associated with a question that has nothing to do with the question Ive asked. Ive been here 1 year and 8 months and this is my first question and you close it before I even get a response. Thanks for not helping at all.
i tried asking a question you closed it without actually answering the question. You should consider beginners when doing this. I asked for help interpreting something I dont understand and you expect me to interpret someone elses question that isnt remotely written the same.

Related

how to change order for pages on units coursepress [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Can anyone help me to changing order for pages under unit of each course,please your help will be really appreciate.I tried a lot but fail to get the meta value for each pages.
If I understand your problem well, this plugin may be a solution: https://wordpress.org/plugins/simple-page-ordering/
If you are still having this problem, you are one of many.
The only solution I have found so far is this work-around plugin, I believe it is called "Emanaku's Reordering of Pages in CoursePress Pro 2.0". Here's a link to the WPMUDev topic: https://premium.wpmudev.org/forums/topic/coursepress-plugin-for-reordering-pages
Read the description carefully, you need at least CoursePress version 2. Note - this plugin is probably going to stop working in the future, as it depends on the current structure of CoursePress which is likely to change dramatically.

What are the algorithmic/programming optimizations that make data.table fast? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have done some searching around the Internet and SO looking for an introduction or analysis of what makes data.table so fast, but I've only found a lot of (very helpful) manuals, no breakdown of what goes into the programming. (I am more or less completely floored that I can't locate a published paper for data.table, not even something from JStatSoft.)
I've had an algorithms class so I know about sorts and linked lists and binary trees and such, but I don't want to make any amateur guesses (especially when I go to explain to academic people why it's a good idea to use it). Can anyone offer a short, topical summary with references? This question references a slide presentation which is cool, but the info comes in pieces (and even the documentation for, say, setkey() doesn't cite a data.table reference, but goes to Wikipedia).
What I am looking for is something that is both not the source code and not a list of Wikipedia topics, but an ideally "official", sourced answer (thus making it canonical, which could help a lot with all the questions orbiting around this topic).
(It would be great if there was a technical paper out there I could cite for this (the citation() for data.table is just the manual, but of course it's not directly relevant to the question as far as SO is concerned.)

handling of datetime objects by breeze [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
We use breeze with API controller.
I want display what dates we have in database to the end user without converting them into UTC.
Same in case if uses chooses any date in the UI it should be saved as it was selected.
I know that JSON.NET date serialization sucks. Also on DOM elements are bound to model properties and it is quite big job to convert date fields into string.
Can you please advise for a fix solution?
I did try implementing custom DateTimeConverterBase and hook it through GLOBAL.ASCX however for some reason my overwritten method does not invoke!
Any help would be appreciated.
Simplest way to do this might be to replace Breeze's breeze.DataType.parseDateFromServer method.
See the answer to this post for more information: breezejs-date-is-not-set-to-the-right-time

Modeling discussion topics in Inform 7 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to make it so that a player can ASK [PERSON] ABOUT [TOPIC], TELL [PERSON] ABOUT [TOPIC], or THINK ABOUT [TOPIC] in Inform 7. I started like this for modeling THINK ABOUT [TOPIC]:
A topic is a kind of thing. A topic is either known or unknown. A topic is usually unknown.
Pondering is an action applying to one thing. Understand "ponder [something]" as pondering. Understand "think about [something]" as pondering.
Carry out pondering:
If the noun is a topic, say "[description of noun]" instead.
But then I realized that I'd probably want the same mechanism to be used for thinking about both abstract topics and concrete things. I've also got the problem that unless the topic is a concrete thing that is present in the room, Inform considers it out of scope. I don't know how to solve that. At the same time, I do want most topic to start out as out of scope, but come into scope as they are suggested by previous topics.
In thinking about what I'm trying to accomplish, it seems rather similar to the system used by Emily Short et. al. in Alabaster. The source imports an extension called Threaded Conversation, but I don't see where that comes from.
In short, I need a conversation system which:
allows discussion of both objects and abstract concepts,
allows discussion of things not present,
restricts discussion to things the player is aware of, and
allows new topics to be brought into scope by other topics.
Your best bet at this point probably is to adapt Eric Eve's Conversation Package to your needs; it's found here: http://inform7.com/extensions/Eric%20Eve/Conversation%20Package/index.html.
The system Alabaster uses isn't yet released.
(also, it's pretty awesome to see I7 questions here, but if you have pressing technical questions you're probably better off at the Intfiction forums).

Did you get any good out of collaborative editors usage? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
today I was looking for a free collaborative code editor for Mac OS X, I don't really need it but I find the idea pretty charming. So I want to know you opinion about that: is there someone in real world who is using a collaborative code editor and gets some benefits out of it?
We use it over the Internet when discussing code via Chat/VoIP. Something along:
A: "If we change this to be an Integer the function gets much simpler" (Edit)
B: "Niftiy, but then we have to change it here, too" (Edit)
A: ...
If you're pairs programming it is very useful. The approach can be discussed and everyone can drive when they have ideas. I can't say I've had the privilege of using this at work.
I've found it fairly useful when putting together packing/todo/etc lists with my wife while at work. We use google docs, which isn't quite realtime, but it is definitely better than emailing back and forth throughout the day.

Resources