Generating Guids in Ruby
By : lmanuel
Date : March 29 2020, 07:55 AM
it helps some times As of Ruby 1.9, uuid generation is built-in. Use the SecureRandom.uuid function. For example: code :
require 'securerandom'
SecureRandom.uuid # => "96b0a57c-d9ae-453f-b56f-3b154eb10cda"
|
Automatically generating Guids in Sybase
By : mbelinsky
Date : March 29 2020, 07:55 AM
it helps some times I have a table with 42 million records. 32 million have a null value and I would like to generate a new guid for each one. Should I do this in batches? , Have you tried an insert trigger?
|
c++ application cannot find com dll because compiler generating .tlh file with incorrect guids
By : Klaudia
Date : March 29 2020, 07:55 AM
it helps some times I have a com dll that gets used in a c++ project. I have not registered the dll but its in the same solution. My application continuously breaks and I found that it breaks here code :
public interface IDocMapEntry
|
Generating dependencies with Guids for Wix using a batch file
By : brando
Date : March 29 2020, 07:55 AM
I wish this helpful for you I have a Wix set up project, and I am trying to figure out a way to not be including every dependency manually as I have to it to a bunch of different projects. , This is our old friend delayed expansion issue. code :
>"%output%" (
for ... do (
echo(...
echo(...
)
)
for ... do (
echo(...>>"%output%"
echo(...>>"%output%"
)
>"%output%" (
for ... do (
...
)
)
(
for ... do (
...
)
)>"%output%"
set "TARGETDIRECTORY=%~1"
@echo off
SetLocal
set "TARGETDIRECTORY=%~1"
set "OUTPUTFILE=%~2"
set "PROJDIR=%~3"
if not "%TARGETDIRECTORY%" EQU "" if not "%OUTPUTFILE%" EQU "" echo Missing argument/s.& exit/B
if not exist "%PROJDIR%Uuidgen.Exe" echo Uuidgen.exe not found or missing argument.& exit/B
echo Starting Dependency check...
>"%OUTPUTFILE%" (
echo ^<?xml version="1.0" encoding="UTF-8"?^>
echo ^<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"^>
echo ^<Fragment^>
echo ^<ComponentGroup Id="MyWebApiBinaries" Directory="INSTALLFOLDER"^>
for %%F in (%TARGETDIRECTORY%\*.dll) do (
for /F %%U in ('"%PROJDIR%Uuidgen.Exe"') do (
echo "-- Adding %%~nxF - GUID %%U" >CON
echo ^<Component Id="%%~nxF" Guid="%%U"^>
echo ^<File Id="%%~nxF" Name="%%~nxF" Source="%%~dpnxF" Vital="yes" KeyPath="yes" DiskId="1"/^>
echo ^</Component^>
)
)
echo ^</ComponentGroup^>
echo ^</Fragment^>
echo ^</Wix^>
)
echo Dependency check done.
EndLocal
exit /B
|
Generating GUIDs for Wix MSI files in Azure DevOps
By : user2580956
Date : March 29 2020, 07:55 AM
I hope this helps . Product-, Package-, Upgrade Code: You can use WiX's auto-GUIDs for components (for most components). Using auto-GUIDs significantly reduces WiX source complexity. Is it safe?
|