MuPDF 1.22.0 Documentation&pix->samples[y * pix->stride]; for (x = 0; x < pix->w; ++x) { if (x > 0) printf(" "); printf("%3d %3d %3d", p[0], p[1], p[2]); p += pix->n; } printf("\n"); } (continues on next page) 2.1. Basic MuPDF tells the compiler to ensure that that variable is not unset by the act of throwing the exception. A model piece of code using these macros then might be: house build_house(plans *p) { material m = NULL; supported (&l X). • is_ljet4pjl Disable/Enable HP 4PJL model-specific output. • is_oce9050 Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression 0 码力 | 175 页 | 698.87 KB | 8 月前3
Celery 2.0 Documentationapplication. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name") tasks from blog.models import Comment class CommentForm(forms.ModelForm): class Meta: model = Comment def add_comment(request, slug, template_name="comments/create.html"): post = get_object_or_404(Entry run in a timely manner, so please be wary of the state you pass on to tasks. One gotcha is Django model objects. They shouldn’t be passed on as arguments to task classes, it’s almost always better to re-fetch0 码力 | 284 页 | 332.71 KB | 1 年前3
MuPDF 1.23.0 Documentation&pix->samples[y * pix->stride]; for (x = 0; x < pix->w; ++x) { if (x > 0) printf(" "); printf("%3d %3d %3d", p[0], p[1], p[2]); p += pix->n; } printf("\n"); } (continues on next page) 2.1. Basic MuPDF tells the compiler to ensure that that variable is not unset by the act of throwing the exception. A model piece of code using these macros then might be: house build_house(plans *p) { material m = NULL; supported (&l X). • is_ljet4pjl Disable/Enable HP 4PJL model-specific output. • is_oce9050 Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression 0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 Documentation&pix->samples[y * pix->stride]; for (x = 0; x < pix->w; ++x) { if (x > 0) printf(" "); printf("%3d %3d %3d", p[0], p[1], p[2]); p += pix->n; } (continues on next page) 2.1. Basic MuPDF usage example tells the compiler to ensure that that variable is not unset by the act of throwing the exception. A model piece of code using these macros then might be: house build_house(plans *p) { material m = NULL; supported (&l X). • is_ljet4pjl Disable/Enable HP 4PJL model-specific output. • is_oce9050 Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression 0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 Documentation&pix->samples[y * pix->stride]; for (x = 0; x < pix->w; ++x) { if (x > 0) printf(" "); printf("%3d %3d %3d", p[0], p[1], p[2]); p += pix->n; } (continues on next page) 2.1. Basic MuPDF usage example tells the compiler to ensure that that variable is not unset by the act of throwing the exception. A model piece of code using these macros then might be: house build_house(plans *p) { material m = NULL; supported (&l X). • is_ljet4pjl Disable/Enable HP 4PJL model-specific output. • is_oce9050 Disable/Enable Oce 9050 model-specific output. PCLm output options: • compression=none No compression 0 码力 | 249 页 | 830.15 KB | 8 月前3
Celery 2.0 Documentationapplication. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name") blog import tasks from blog.models import Comment class CommentForm(forms.ModelForm): class Meta: model = Comment def add_comment(request, slug, template_name="comments/create.html"): post = get_object_or_404(Entry run in a timely manner, so please be wary of the state you pass on to tasks. One gotcha is Django model objects. They shouldn’t be passed on as arguments to task classes, it’s almost always better to re-fetch0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.1 DocumentationFigure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch an article and a task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.1 DocumentationFigure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch an article and a task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article):0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.3 Documentationlimits can be set for each task type, or globally for all. Routing Using AMQP’s flexible routing model you can route tasks to different workers, or select different message topologies, by configuration Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 Documentationlimits can be set for each task type, or globally for all. Routing Using AMQP’s flexible routing model you can route tasks to different workers, or select different message topologies, by configuration Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 314 页 | 1.26 MB | 1 年前3
共 439 条
- 1
- 2
- 3
- 4
- 5
- 6
- 44













