Next.js 12 + docker compose: want to reduce build size - docker-compose

Summary:
next.js ver 10 = build size 200+ MB
next.js ver 12 = build size 600+ MB
Size difference is due to SWC packages (nearly 400 MB) for all OS/CPU types added into build.
How to target only 1 OS/CPU type, so that build size gets smaller
Details:
Tried to look into the build artifact
i.e when Next.js version is v12, only extra things are SWC packages for all the OS/CPU types
given below screenshot of file sizes & corresponding SWC package names
Thanks very much in advance

Related

Tessarect implementation JAVA

I'm trying to implement OCR recognition through Tessarect.
But at the moment I'm stuck with this error.
This is what I've done so far:
Homebrew tessarect
Download the API
Link the Jar with my project (build path > Configure build path > Add external Jar's
But when I compile my code this is the error
Error opening data file D:/Tess4J/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Warning: Invalid resolution 0 dpi. Using 70 instead.
I've downloaded the eng trained data and I've tried different stuff but I can't figure out how to solve this.
I'm running eclipse in macOS Catalina.
Thanks!
My situation
Set your datapath correctly.
Your location D:/Tess4J/tessdata/eng.traineddata is wrong

iOS - How to increase the version number with Fastlane?

So I was wondering how to increase the version number or build number with Fastlane tools, so that I don't have to manually change the version.
So the answer to this question where the following two lanes. Keep in mind you need to activate some settings in your project by following this link.
With them I can increase the build number for the current version, or increase the version number and set the build number to 1.
The result will be [ver++] v1.0.0 (1) (you can change the syntax as you please) and it gets automatically committed to git
Build Bump:
lane :buildbump do
version = get_version_number
build = increment_build_number
commit_version_bump(
xcodeproj:"MyProject.xcodeproj",
message: "[ver++] v#{version} (#{build})"
)
end
Version Bump:
lane :versionbump do
version = increment_version_number
build = increment_build_number(build_number: 1)
commit_version_bump(
xcodeproj:"MyProject.xcodeproj",
message: "[ver++] v#{version} (#{build})"
)
end

yocto 32 bit packages using multilib

I want to use multilib feature in yocto to build some applications in a packagegroup recipe as only 32 bit. Meaning only 32 bit packages which are part of this packagegroup should be placed in image.
i can use bitbake lib32-packagegroup-name.bb to create 32 bit packages from this packagegroup, but the packages in this packagegroup are still building as 64 bit when i am trying to build image
bitbake core-sato-image.bb
Please let me know the changes required ?
Thanks
multilib-example.conf (from Github - OpenEmbedded):
#
# Sample multilib configuration which the user can either add in local.conf
# or specific in an configuration file like this, then require it.
#
# This configuration specifies an x86 64 bit machine as the main machine
# type and then adds a multilib in the "lib32" directory where those
# libraries are compiled with the "x86" tune.
#
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
You also need to activate support for 32-bit in the Kernel configuration.
Xilinx has also an example for creating a mulitlib image, which I consider a nice reference: http://www.wiki.xilinx.com/Creating+a+multilib+image+for+the+ZCU102+using+Yocto

PSpice MATLAB/Simulink Interface for Orcad 16.5

I am using Matlab 7 SLPS version 2.65 and Orcad 16.5 but I am getting the following error when I try to execute the sample program. Attaching the screenshots Any help will be Highly appreciated.
If there are multiple versions of SLPS available in your system, the path of the recent version should be set higher in the set path. This error is due to the configuration mismatch between different versions of SLPS.

How to produce lighter mongodb c++ driver

I'm compiling mongoclient with MSVC 2012 and boost 1.54 and the generated lib size is about 117 mb !
I am doing something wrong ?
I'm using this command:
scons --extrapath=c:\dev\boost_1_54_0 --release --32 mongoclient
Self response: The huge size is due to 2 things : static library and debugging symbols non stripped from it. Version 2.5 will produce dynamic lib (dll) and separate debugging symbol (pdb).