Skip to content

Commit 2e8cec3

Browse files
committed
pdf transformation script work
1 parent b261ff8 commit 2e8cec3

File tree

3 files changed

+173
-54
lines changed

3 files changed

+173
-54
lines changed

content/pages/04-web-development/31-rq-redisu-queue.markdown renamed to content/pages/04-web-development/31-rq-redis-queue.markdown

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ track of tasks in the queue that need to be executed.
2727
post's case that the ISS is currently flying over your location on
2828
Earth.
2929

30+
* [Asynchronous Tasks with Flask and Redis Queue](https://testdriven.io/asynchronous-tasks-with-flask-and-redis-queue)
31+
looks at how to configure RQ to handle long-running tasks in a Flask app.
32+
3033
* [Flask by Example - Implementing a Redis Task Queue](https://realpython.com/blog/python/flask-by-example-implementing-a-redis-task-queue/)
3134
explains how to install and use RQ in a [Flask](/flask.html) application.
3235

@@ -38,5 +41,6 @@ track of tasks in the queue that need to be executed.
3841
[Flask](/flask.html)-based dashboard for viewing queues, workers and
3942
other critical information when using RQ.
4043

41-
* [Asynchronous Tasks with Flask and Redis Queue](https://testdriven.io/asynchronous-tasks-with-flask-and-redis-queue)
42-
looks at how to configure RQ to handle long-running tasks in a Flask app.
44+
* [Sending Confirmation Emails with Flask, Redis Queue, and Amazon SES](https://testdriven.io/sending-confirmation-emails-with-flask-rq-and-ses)
45+
shows how RQ fits into a real-world application that uses many
46+
libraries and third party APIs.

content/posts/180202-monitor-django-web-apps.markdown

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,13 @@ urlpatterns = [
198198
]
199199
```
200200

201-
Save `djmonitor/billions/urls.py` to test that our URL routes can be properly
202-
discovered by Django. Execute `app.py` using the `python`
203-
command as follows (make sure your virtualenv is still activated in the
204-
terminal where you are running this command):
201+
Save `djmonitor/billions/urls.py`. One more file before we can test that
202+
our simple Django app works. Open `djmonitor/billions/views.py`.
203+
204+
```python
205+
206+
```
207+
205208

206209
```bash
207210
python manage.py runserver
@@ -225,8 +228,6 @@ Starting development server at http://127.0.0.1:8000/
225228
Quit the server with CONTROL-C.
226229
```
227230

228-
<img src="/img/170926-monitor-python-web-apps/run-bottle-app.png" width="100%" class="technical-diagram img-rounded" style="border:1px solid #ccc" alt="Run the local Bottle development server.">
229-
230231
Try to access a URL with a path that contains only alphabetic characters and
231232
hyphens, such as
232233
[localhost:8080/hello-world/](http://localhost:8080/hello-world/).

transform_book.py

Lines changed: 160 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,56 @@
9191
"#data",
9292
"/databases.html":
9393
"#relational-databases",
94-
"/no-sql-datastore.html":
95-
"#nosql-data-stores",
96-
"/object-relational-mappers-orms.html":
97-
"#object-relational-mappers-orms",
9894
"/postgresql.html":
9995
"#postgresql",
10096
"/mysql.html":
10197
"#mysql",
10298
"/sqlite.html":
10399
"#sqlite",
100+
"/object-relational-mappers-orms.html":
101+
"#object-relational-mappers-orms",
102+
"/sqlalchemy.html":
103+
"#sqlalchemy",
104+
"/peewee.html":
105+
"#peewee",
106+
"/django-orm.html":
107+
"#django-orm",
108+
"/sqlobject.html":
109+
"#sqlobject",
110+
"/pony-orm.html":
111+
"#pony-orm",
112+
"/no-sql-datastore.html":
113+
"#nosql-data-stores",
114+
"/redis.html":
115+
"#redis",
116+
"/mongodb.html":
117+
"#mongodb",
118+
"/apache-cassandra.html":
119+
"#apache-cassandra",
120+
"/neo4j.html":
121+
"#neo4j",
122+
"/data-analysis.html":
123+
"#data-analysis",
124+
"/pandas.html":
125+
"#pandas",
126+
"/numpy.html":
127+
"#numpy",
128+
"/scipy.html":
129+
"#scipy",
130+
#"/.html":
131+
#"#",
132+
"/bokeh.html":
133+
"#bokeh",
134+
"/d3-js.html":
135+
"#data-driven-documents-d3js",
136+
"/matplotlib.html":
137+
"#matplotlib",
138+
#"/.html":
139+
#"#",
140+
#"/.html":
141+
#"#",
142+
"/markdown.html":
143+
"#markdown",
104144

105145
# chapter 4
106146
"/web-development.html":
@@ -119,60 +159,130 @@
119159
"#morepath",
120160
"/other-web-frameworks.html":
121161
"#other-web-frameworks",
162+
"/template-engines.html":
163+
"#template-engines",
164+
"/jinja2.html":
165+
"#jinja2",
166+
"/mako.html":
167+
"#mako",
168+
"/django-templates.html":
169+
"#django-templates",
122170
"/web-design.html":
123-
"../04-web-development/10-web-design.markdown",
171+
"#web-design",
172+
"/hypertext-markup-language-html.html":
173+
"#hypertext-markup-language-html",
124174
"/cascading-style-sheets.html":
125-
"../04-web-development/11-css.markdown",
175+
"#cascading-style-sheets-css",
176+
#"/.html":
177+
#"#",
178+
#"/.html":
179+
#"#",
126180
"/javascript.html":
127-
"../04-web-development/12-javascript.markdown",
128-
"/websockets.html":
129-
"../04-web-development/13-websockets.markdown",
130-
"/template-engines.html":
131-
"../04-web-development/14-template-engines.markdown",
132-
"/web-application-security.html":
133-
"../04-web-development/15-web-app-security.markdown",
181+
"#javascript",
182+
#"/.html":
183+
#"#",
184+
#"/.html":
185+
#"#",
186+
#"/.html":
187+
#"#",
188+
#"/.html":
189+
#"#",
190+
"/task-queues.html":
191+
"#task-queues",
192+
"/celery.html":
193+
"#celery",
194+
"/redis-queue-rq.html":
195+
"#redis-queue-rq",
196+
"/dramatiq.html":
197+
"#dramatiq",
198+
#"/.html":
199+
#"#",
134200
"/static-site-generator.html":
135-
"../04-web-development/16-static-site-generator.markdown",
136-
"/jinja2.html":
137-
"../04-web-development/17-jinja2.markdown",
201+
"#static-site-generator",
202+
"/pelican.html":
203+
"#pelican",
204+
"/lektor.html":
205+
"#lektor",
206+
"/mkdocs.html":
207+
"#mkdocs",
138208
"/testing.html":
139-
"../08-testing/01-testing.markdown",
209+
"#testing",
140210
"/unit-testing.html":
141-
"../08-testing/02-unit-testing.markdown",
211+
"#unit-testing",
142212
"/integration-testing.html":
143-
"../08-testing/03-integration-testing.markdown",
213+
"#integration-testing",
214+
#"/.html":
215+
#"#",
144216
"/code-metrics.html":
145-
"../08-testing/05-code-metrics.markdown",
217+
"#code-metrics",
146218
"/debugging.html":
147-
"../08-testing/08-debugging.markdown",
219+
"#debugging",
220+
#"/.html":
221+
#"#",
222+
#"/.html":
223+
#"#",
224+
#"/.html":
225+
#"#",
226+
#"/.html":
227+
#"#",
228+
"/websockets.html":
229+
"#websockets",
230+
#"/.html":
231+
#"#",
232+
"/uvloop.html":
233+
"#uvloop",
148234
"/application-programming-interfaces.html":
149-
"../06-web-apis/01-application-programming-interfaces.markdown",
150-
"/api-integration.html":
151-
"../06-web-apis/02-api-integration.markdown",
235+
"application-programming-interfaces",
236+
"/microservices.html":
237+
"#microservices",
238+
#"/.html":
239+
#"#",
240+
"/bots.html":
241+
"#bots",
152242
"/api-creation.html":
153-
"../06-web-apis/03-api-creation.markdown",
243+
"#api-creation",
244+
#"/.html":
245+
#"#",
246+
#"/.html":
247+
#"#",
248+
#"/.html":
249+
#"#",
250+
"/api-integration.html":
251+
"#api-integration",
252+
"/twilio.html":
253+
"#twilio",
254+
#"/.html":
255+
#"#",
256+
#"/.html":
257+
#"#",
258+
"/web-application-security.html":
259+
"#web-application-security",
260+
#"/.html":
261+
#"#",
262+
#"/.html":
263+
#"#",
264+
#"/.html":
265+
#"#",
154266

155267
# chapter 5
156268
"/deployment.html":
157-
"../07-web-app-deployment/01-deployment.markdown",
158-
"/servers.html":
159-
"../07-web-app-deployment/02-servers.markdown",
269+
"#deployment",
270+
"servers.html":
271+
"#servers",
272+
"/static-content.html":
273+
"#static-content",
274+
"/virtual-private-servers-vps.html":
275+
"#virtual-private-servers-vps",
160276
"/platform-as-a-service.html":
161-
"../07-web-app-deployment/04-platform-as-a-service.markdown",
277+
"#platform-as-a-service",
162278
"/operating-systems.html":
163-
"../07-web-app-deployment/05-operating-systems.markdown",
279+
"#operating-systems",
280+
"/ubuntu.html":
281+
"#ubuntu",
164282
"/web-servers.html":
165-
"../07-web-app-deployment/06-web-servers.markdown",
283+
"#web-servers",
166284
"/wsgi-servers.html":
167-
"../07-web-app-deployment/07-wsgi-servers.markdown",
168-
"/source-control.html":
169-
"../07-web-app-deployment/08-source-control.markdown",
170-
"/application-dependencies.html":
171-
"../07-web-app-deployment/09-app-dependencies.markdown",
172-
"/static-content.html":
173-
"../07-web-app-deployment/10-static-content.markdown",
174-
"/task-queues.html":
175-
"../07-web-app-deployment/11-task-queues.markdown",
285+
"#wsgi-servers",
176286
"/configuration-management.html":
177287
"../07-web-app-deployment/12-configuration-management.markdown",
178288
"/continuous-integration.html":
@@ -183,8 +293,6 @@
183293
"../07-web-app-deployment/17-docker.markdown",
184294
"/caching.html":
185295
"../07-web-app-deployment/18-caching.markdown",
186-
"/microservices.html":
187-
"../07-web-app-deployment/19-microservices.markdown",
188296
"/nginx.html":
189297
"../07-web-app-deployment/21-nginx.markdown",
190298
"/apache-http-server.html":
@@ -196,11 +304,17 @@
196304

197305
# chapter 6
198306
"/devops.html":
199-
"../07-web-app-deployment/20-devops.markdown",
200-
"/logging.html":
201-
"../07-web-app-deployment/14-logging.markdown",
307+
"#devops",
202308
"/monitoring.html":
203-
"../07-web-app-deployment/15-monitoring.markdown",
309+
"#monitoring",
310+
"/rollbar.html":
311+
"#rollbar",
312+
"/caching.html":
313+
"#caching",
314+
"/logging.html":
315+
"#logging",
316+
"/web-analytics.html":
317+
"#web-analytics",
204318

205319
# meta (chapter 7)
206320
"/what-full-stack-means.html":

0 commit comments

Comments
 (0)