Is something going on wth Dart isolates at present? looking at a few past stackoverflow questions most people looked to be using spawnIsolate or spawnFunction to start a new isolate running, but those methods don't appear to exist any more, nor is there an obvious replacement for them in the current isolate library. Also when following links people have put in previous stackoverflow questions about isolates they seem to have been removed from the official documentation such as. How do you start up an isolate?
I wrote a small example on how to spawn isolates at http://www.roberthartung.de/spawning-isolates-in-dart/ . Does this help you?
At the bottom of the page you linked is this link dart:isolate library
I think this isolates are still work in progress.
I think some interesting details can be found in the discussions in the Google group Dart Misc or Dart Web Development and in the issues at dartbug.com
Where do you want to spawn isolates anyway, server or client?
Related
I have a bright idea that I want to develop and thus want to learn web programming. I have searched high and low only to be confused by all the JS'es and the frameworks and all the never ending pros and cons.
I have recently come across Google Dart and its somewhat reassuring to know that all I will ever need for web application development is possible and there in one place. First question if I just learned Dart would this previous statement that I don't need to learn anything else be true?
Secondly, how should one go about learning Dart? Can I learn directly, if not what prerequisites should I know first to get started on Dart?
First of all you should know that all the information that interests you exists on the main site: Dart: Structured web apps.
This site include the following information:
Get started:
Get Dart
Get Tutorials
Technical Overview
Docs:
Programmer’s Guide
Dart API Reference
Language Specification
Dart Cookbook
Dart: Up and Running
Books on Dart
Articles
Frequently Asked Questions (FAQ)
Tools:
Dart Editor
Pub Package Manager
More tools for Dart
Resources:
Dart Code Samples
Dart Synonym: Translations from Dart
Try Dart online
Dart Presentations
Dartisans: The Dart show and podcast
Dart Tips: Short Video Tutorials
Dart Bug and Feature request
Community:
Contact the Dart Project
Contributor's Guide
Community Resources
Within these resources, you can find a lot of useful information for getting started with Dart.
Also, they contains a lot of links to other external sources of information.
Several years ago, I started learning php. Twice. And twice did I fail, because I just read theory and did not code php itself.
If you want to learn Dart, just start developing. Think of an idea you would like to implement and start developing it. Every few lines of code you will stumble and have no clue how to solve something, and therefore you will have to read theory, ask on stackoverflow - but will always have in mind, what your precise goal is.
Time will pass, you will have implemented 2-3 ideas of yours and will have covered a great deal of Dart.
Learning by doing.
If you don't even know HTML, I suggest starting with the Dart Tutorials.
I've been looking for first-hand information on the World of Warcraft addon API. There are a couple wikis that are pretty good, but their reference links only point internally. Surely there is some information published by Blizzard on the topic.
Can all of their information really be gleaned from reverse-engineering and forums? That would be hard for me to believe.
Its not all necessarily gleaned from inspection or trial and error. Some is provided, but randomly, from "heads up" posts in the forums from "the source", as in Blizzard employees. They are usually pretty good about it, though is almost always provided in a "just the essentials to save you some pain" sort of way.
Here's an example:
http://blue.mmo-champion.com/topic/233590-mop-changes/
Watching for the "Blue" posts goes a long way, and its been this way for a long time. If you look at someting like this (old 3.1.0 end user patch notes) http://us.battle.net/wow/en/game/patch-notes/3-1-0 , and then scan to near the bottom there will be a note and link for API changes, so its easy to glean their intent on this, and that they intend to provide some "unofficial" support about API changes there whilenot burdening the actual product readme with them.
In general, I'd say that due to the very open nature of the materials, the source for the UI, very little is hidden and most is pretty self-evident, so it sort of barely qualifies as reverse engineering. Once you understand the Lua relationship to the general design of the WoW UI and supporting API, it's much easier.
As for the implied question about "why", the "hard to believe" part. They are doing, in my estimation, what they believe is the best balance between fully supporting without "officially" suporting, and not wasting cycles trying to document a huge amount of available facilites thats ever changing. I think they belive it makes a better product, having the ability to customize, so its intheir interest, however is frought with problems and even legal issues from many angles to be expressly "official" about it or to try to maintain coherent docs.
----
Toward the question "git hub" below, here is the "blue" post in context, which can be found by clicking the "blizz" link icon on the mmo-champion link provided before: http://us.battle.net/wow/en/forum/topic/6413172918#1 I was trying to give an example of a Blue post that had detail, but I accidentally gave one for the Web API not the Game API. However the principle is the same, and provides more Blizzard to Community context for dev support.
So basically that particular post was in reference to changes in the Web API, and the Git remark has no relevance to the game UI Customization and Macro thing. There is no hidden or official doc source for game UI Customization and Macro. Mostly its because it simply doesnt exist for anyone. :)
Yes, all the information is gleaned from the source.
Blizzard doesn't post the API information at this time, AFAIK.
http://www.wowpedia.org/Portal:Interface_customization is likely to be your best resource.
There are multiple ways to discover the names of callable C functions exported into the Lua environment.
But yes. One quite simple one would be to enumerate all the globals in the source that are written to, then enumerate the globals that are exposed while WoW is running - and take the difference, perhaps limiting the result to globals of type 'function'
Blizzard used to informally document its API for a while, but it has always been 'unsupported'
There are other ways to discover the API - but they involve doing things which may violate the TOS.
There is a website now that contains the API for wow addons. This has been helping me a lot.
I am attempting to determine what can possibly be the causative factor for 20+ second response times from a Rails 3 application located in EC2 using Elasticache. I have reason to believe the problem is in fact cache related, but I have no numbers to prove it. I'd like to get those numbers. For the sake of completeness, we're running the applications atop Ubuntu 12.04 .
Searching Google, I found nothing directly relevant to my situation, and no StackOverflow topics I could find were even remotely relevant to my situation. If anyone can point me to some documentation on the matter, I'd be quite appreciative. Thank you!
I've found the best tool for this to be New Relic.
http://newrelic.com/
I don't work for them and get no benefit from you trying them.
They have a free level that you can start with. If you go up to the non-free version you can literally trace all your requests through different models and into the database telling you how long the app spent in each section. It's a great tool for profiling.
Do you, by any chance have access to standard web logs including URLs and response times?
I faced a similar situation, searched the web, found nothing relevant, and eventually decided to roll my own, which I shared in this SO post:
Profiling a multi-tiered, distributed, web application (server side)
While it is far from perfect and may be too high level for some use-cases, it gave me a pretty quick and broad insight into where the application I was trying to profile is spending most of its time in, and what the slowest parts are. HTH.
The best parts of it are that:
It is 100% platform and programming language independent.
It is a 100% free software solution
I've been doing web programming for some time now, and don't consider myself so much of a total newbie but I still don't understand what "/path/to" is. People use that code a lot, and I used to think it's just a way to refer to main path. But I started wondering why so many people use that syntax so uniformly, because it's confusing if it's meant to be NOT taken literally. Most people would actually type in "/path/to".
So I tried searching for "/path/to" on google, but this is something that's hard to search on a generic search engine, so no luck. So I decided to ask here. Is "/path/to" some kind of jargon that people use to refer to something? If yes, what does it exactly refer to? If no, then how does it work internally?
This is just a placeholder for an actual path in your environment. I usually use it when I want to abstract from the path in question. It does not matter and the reader/user of my code will likely have it different. So I prefer to clearly indicate what places he should amend.
Other examples of this sort:
GET http://example.com
ssh username#host
/path/to/project and similar constructs are used in documentation and blog posts to abstract away details that vary on different machines and for different people. For example, I might be working on a project on my Linux machine that is at /home/code-apprentice/src/my-cool-ruby-project. At the same time, you are working on a project on your Windows machine that you put at C:\Users\Vlad\Projects\MyEvenBetterRubyProject. We both are reading the same blog article to implement a feature. The detail of the exact path where we each store our project doesn't matter for the particular part of Ruby on Rails that we are using. The notation /path/to/project is just a convenient and concise placeholder to describe the root of the project that varies between our machines.
I'd like to try to start using Erlang, and there's a data feed i'd like to read that's distributed via Websockets. Right now i'm doing the same in node.js using the 'websocket-client' module, but could someone suggest a websocket client library for Erlang that I could look at? (Or an alternative solution if I'm off the mark)
Here is a promising one: https://github.com/jeremyong/websocket_client
This one didn't exist at the time the question was asked, but it's a good question that deserves to be updated.
here you are: https://github.com/MiCHiLU/erlang_websocket
you may consider also gun: https://github.com/extend/gun