
Recherche avancée
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (16952)
-
How Can I Configure Storybook to Use React-App-Rewired ?
8 août 2022, par josephI'm working on a project that implements react-app-rewired to send headers to the server in order to bypass
ReferenceError: SharedArrayBuffer is not defined
(I'm getting this error from using the@ffmpeg/ffmpeg
library).

// config-overrides.js
const {
 override,
 // disableEsLint,
 // addBabelPlugins,
 // overrideDevServer
} = require('customize-cra')

module.exports = {
 devServer(configFunction) {
 // eslint-disable-next-line func-names
 return function (proxy, allowedHost) {
 const config = configFunction(proxy, allowedHost)

 // Set loose allow origin header to prevent CORS issues
 config.headers = {
 'Access-Control-Allow-Origin': '*',
 'Cross-Origin-Opener-Policy': 'same-origin',
 'Cross-Origin-Embedder-Policy': 'require-corp',
 'Cross-Origin-Resource-Policy': 'cross-origin'
 }

 return config
 }
 }
}



// package.json
"scripts": {
 "start": "react-app-rewired start",
 "build": "react-app-rewired build",
 "test": "react-app-rewired test --transformIgnorePatterns \"node_modules/(?!siriwave)/\"",
 "eject": "react-scripts eject",
 "storybook": "start-storybook -p 6006 -s public",
 "build-storybook": "build-storybook -s public"
}



Though this works when I run
npm start
, meaning the headers get sent to the server, it doesn't work when I runnpm run storybook
, and I still get theSharedArrayBuffer is not defined
error. I'm assuming it's becausenpm run storybook
still usesreact-scripts
as opposed toreact-app-rewired
under the hood, but I'm not sure where I can change the configurations for this. Any ideas ?

-
checkasm : Serialize read_time() calls on x86
8 octobre 2014, par Henrik Gramnercheckasm : Serialize read_time() calls on x86
Improves the accuracy of benchmarks, especially in short functions.
To quote the Intel 64 and IA-32 Architectures Software Developer’s Manual :
"The RDTSC instruction is not a serializing instruction. It does not necessarily
wait until all previous instructions have been executed before reading the counter.
Similarly, subsequent instructions may begin execution before the read operation
is performed. If software requires RDTSC to be executed only after all previous
instructions have completed locally, it can either use RDTSCP (if the processor
supports that instruction) or execute the sequence LFENCE ;RDTSC."RDTSCP would accomplish the same task, but it’s only available since Nehalem.
This change makes SSE2 a requirement to run checkasm.
-
Cut audio / Video using ffmpeg on the server [on hold]
8 décembre 2016, par Mohammed HusseinI am rebuilding a project that I built with meteor js from scratch using asp.net mvc and c#
the project is basically used to cut audio and video given the start time and the end time using ffmpeg on the server,
but I am facing a problem in both projects,
if during the process of cutting the audio / video file i lost my internet connection the operation doesn’t complete. what i want is that the operation should complete and write the changes to the database and create the new file on the server despite the fact that i am no longer connected .
is that possible to do or not ?