How to darken the selected song in MPMusicpalyer using iphone sdk? - ios4

I am using ipod library for my applicatio, But the Song Choice is not real intuitive. One thing I’ve noticed is that when you tap on a song, it turns light blue. It’s hard to determine if you tap on it. If you tap on the song multiple times, it puts it down in the play list multiple times.
How can we overcome these issues? please suggest.
Thanks in advance,
Sekhar. `

For some people it might be useful to have a song selected multiple times. If you don't want it selected multiple times you could always just scan through the items NSArray and copy the unique ones into a new NSMutableArray.

Related

Open multiple positions in Backtrader

Does someone know if it's possible to open multiple positions with only a single data feed? I am trying to do a second buy whilst in a position, which doesn't seem to be possible.
Nobody seems to adress this issue. Does anyone have any experience with Backtrader and have any input?
If you are just trying to buy more stock to add to your position, then yes, you should be able to do this and if you cannot recheck your strategy code in next.
If you are trying to track two separate positions of the same data...
One cannot have two separate positions in the same data feed. You may trade additional positions if you like but they will be combined in Backtrader. Even if you use two strategies you will still have one combined broker.
The reason for this is to simulate as near as possible real world conditions. If you have a brokerage account you most likely would have just one postion. (I know there are exceptions)
One solution would be to track your trading manually in a dictionary trades that result from different signals/sub-strategies. It's a bit more tedious to develop but very doable.

Google actions sdk 2 nodejs response / chat bubble limit

I am using the Google-actions-sdk v2 and trying to build a gaming application. In the documentation it says conv.ask() is limited to 2 responses per turn. So this basically means I can only show 2 chat bubbles then it will not allow me to display more until after user input. But when I look at some other published applications they have many more then 2 in a row displayed. I can't seem to understand or find any info on how they can get around this limitation. 2 seems a unreasonable limit.
For speech you can merge text lines together and it will sound fine, but presentation on screen is awful without being able to break it down to more responses.
Does anyone out there have any insight on this?
In fact, everything in a single line would sound bad. Why don't you try to separate the necessary texts with the help of the SSML library, I recommend it to you.
You can use the break tag to put a pause between each text.
<speak>
I can pause <break time="3s"/>.
I can pause by second time <break time="3s"/>.
</speak>
Here you have the documentation.
Now if what you want to give is multiple selection options, you can also use the suggestion chip.
https://developers.google.com/actions/assistant/responses#suggestion_chip

Automatically open hyperlink in currently selected row

I'm attempting to categorize, tag, and database a collection of over six terabytes of video clips and game recordings from my extensive playtime in Battlefield 4, and in an attempt to make that as efficient as possible, I've inserted hyperlinks to the files on my hard drive into the spreadsheet, such that I can single click, and the video will begin playing in VLC.
However, as I've got over 10,000 files to tag and work through (I know, it's kind of absurd), I wanted to improve the process a bit by making the spreadsheet automatically "click" the hyperlink once I advanced to the next row.
I've got a number of columns for common categories that I'll probably use, and essentially I want to enter the series of tags for the given video file, hit enter, and the next video file in the list will begin playing in VLC, without me even switching windows, clicking, or anything.
I'm pretty new to Excel, but this project is essentially a way for me to learn and grow in my knowledge.
Bonus question: is there a better way for doing filter-as-you-type than the various tutorials such as this: https://www.youtube.com/watch?v=tCahRfEGj1g?
This method is unfortunately not efficient for large lists, so I'm hoping there's a better way to do it. Thanks!

The user needs to pick an option from a 100 items list. What is the best way to make this happen in dialogflow?

I have a bot where the user needs to choose a specific item from a big list, over 100 items. How can I do this in Dialogflow ? I used a Webview for this on FB Messenger but in Dialogflow this is not an option.
Any thoughts ?
This may be a bit harsh, but my first thought is that you need to rethink your design. I can think of very few cases where I would be presented with a list of 100 items, need to pick a specific one from them, and would find that a pleasant experience.
Imagine walking into a restaurant and the waiter, instead of handing you a menu, started reciting every item that is available. Even menus are broken into sections for a reason.
If the users have an idea what they need to choose, give them the option to type that in at any point, of course. (For example, if they need to pick a country from a list.)
But otherwise, help them narrow down their choices to only what applies, in the same way a waiter might help you narrow down choices by asking if you wanted fish, beef, or something else.

Game center sandbox

Ok, so I have an app available in the app store, for its next update I want to add Game Center functionality, I have done all my coding and everything is working as I would expect (using NSLog to make sure that the correct coding is called) but, when I open up Game Center, one achievement is there but not the second one that I got and one of the leader boards was showing a score a few hours ago, now its not and on the other leaderboard the score is showing as an old score.
is the Game Center Sandbox mode really this bad as I have been searching for errors in my code for hours now and I swear, there arent any.
Can anyone help me please?
Note - I saw on here someone suggested to use the game with 2 game center accounts, I have done that and on the second account no highscore or achievements are showing at all.
Thanks Graham
In my experience two accounts do seem to be necessary and you have to wait a while (sometimes hours or overnight) for results to appear. Other times they appear quicker. I actually tested with 3 accounts but I doubt the third made any difference.
And double check that the leaderboard ID in iTunes Connect exactly matches the ID in your code.

Resources