10 More Discussions You Might Find Interesting
1. Web Development
Yes.
Got few suggestions.
- How about minifying resources
- mod_expires
- Service workers setup
https://www.unix.com/attachments/web-programming/7709d1550557731-sneak-preview-new-unix-com-usercp-vuejs-demo-screenshot-png (8 Replies)
Discussion started by: Akshay Hegde
8 Replies
2. Shell Programming and Scripting
now, i have to search for a pattern within a particular time frame which the user will provide in the following format:
19/Jun/2018:07:04,21/Jun/2018:21:30
it is easy to get tempted to attempt this search with a variation of the following awk command:
awk... (3 Replies)
Discussion started by: SkySmart
3 Replies
3. Shell Programming and Scripting
any way the following code can be optimized?
FIRSTIN=$(
HKIPP=$(echo ${TMFR} | egrep -v "mo|MO|Mo" | egrep "m |M ")
HRAMH=$(echo ${TMFR} | egrep "h|H")
HRAMD=$(echo ${TMFR} | egrep "d|D")
HRAMW=$(echo ${TMFR} | egrep "w|W")
HKIPPO=$(echo ${TMFR} |... (5 Replies)
Discussion started by: SkySmart
5 Replies
4. Shell Programming and Scripting
I have a huge log file close to 3GB in size.
My task is to generate some reporting based on # of times something is being logged.
I need to find the number of time StringA , StringB , StringC is being called separately.
What I am doing right now is:
grep "StringA" server.log | wc -l... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies
5. Shell Programming and Scripting
Can this awk statement be optimized? i ask because log.txt is a giant file with several hundred thousands of lines of records.
myscript.sh:
while read line
do
searchterm="${1}"
datecurr=$(date +%s)
file=$(awk 'BEGIN{split(ARGV,var,",");print var}' $line)
... (3 Replies)
Discussion started by: SkySmart
3 Replies
6. Shell Programming and Scripting
Hi,
I have two files in the format listed below. I need to find out all values from field 12 to field 20 present in file 2 and list them in file3(format as file2)
File1 :
FEIN,CHRISTA... (2 Replies)
Discussion started by: nua7
2 Replies
7. Shell Programming and Scripting
Hi,
I would like to know if there is a command faster then sed, or a way to optimize my code...
Here is the description of my problem:
I have a file "file1" that is composed of 10 columns. The first one contain a list of ID, the second a list of number associated to the firs list of ID.... (1 Reply)
Discussion started by: jolecanard
1 Replies
8. UNIX and Linux Applications
Hi All,
My first thread to this sub-forum and first thread of this sub-forum :)
Here it is,
Am trying to delete duplicates from a table retaining just 1 duplicate value out of the duplicate records
for example : from n records of a table out of which x are duplicates, I want to remove x... (15 Replies)
Discussion started by: matrixmadhan
15 Replies
9. Shell Programming and Scripting
How would one go about optimizing this current .sh program so it works at a more minimal time. Such as is there a better way to count what I need than what I have done or better way to match patterns in the file? Thanks,
#declare variables to be used.
help=-1
count=0
JanCount=0
FebCount=0... (3 Replies)
Discussion started by: switch
3 Replies
10. Filesystems, Disks and Memory
My product have around 10-15 programs/services running in the sun box, which together completes a task, sequentially. Several instances of the each program/service are running in the unix box, to manage the load and for risk-management reasons. As of now, we dont follow a strict strategy in... (2 Replies)
Discussion started by: Deepa
2 Replies
MPSImageDescriptor(3) MetalPerformanceShaders.framework MPSImageDescriptor(3)
NAME
MPSImageDescriptor
SYNOPSIS
#import <MPSImage.h>
Inherits NSObject.
Class Methods
(__nonnull instancetype) + imageDescriptorWithChannelFormat:width:height:featureChannels:
(__nonnull instancetype) + imageDescriptorWithChannelFormat:width:height:featureChannels:numberOfImages:usage:
Properties
NSUInteger width
NSUInteger height
NSUInteger featureChannels
NSUInteger numberOfImages
MTLPixelFormat pixelFormat
MPSImageFeatureChannelFormat channelFormat
MTLCPUCacheMode cpuCacheMode
MTLStorageMode storageMode
MTLTextureUsage usage
Detailed Description
MPSImage.h MPSCore.framework
Copyright:
Copyright (c) 2015-2017 Apple Inc. All rights reserved. A MPSImage is a MTLTexture abstraction that allows for more than 4 channels,
and for temporary images.
This depends on Metal.framework A MPSImageDescriptor object describes a attributes of MPSImage and is used to create one (see MPSImage
discussion below)
Method Documentation
+ (__nonnull instancetype) imageDescriptorWithChannelFormat: (MPSImageFeatureChannelFormat) channelFormat(NSUInteger) width(NSUInteger)
height(NSUInteger) featureChannels
Create a MPSImageDescriptor for a single read/write cnn image.
+ (__nonnull instancetype) imageDescriptorWithChannelFormat: (MPSImageFeatureChannelFormat) channelFormat(NSUInteger) width(NSUInteger)
height(NSUInteger) featureChannels(NSUInteger) numberOfImages(MTLTextureUsage) usage
Create a MPSImageDescriptor for a read/write cnn image with option to set usage and batch size (numberOfImages).
Property Documentation
- channelFormat [read], [write], [nonatomic], [assign]
The storage format to use for each channel in the image.
- cpuCacheMode [read], [write], [nonatomic], [assign]
Options to specify CPU cache mode of texture resource. Default = MTLCPUCacheModeDefaultCache
- featureChannels [read], [write], [nonatomic], [assign]
The number of feature channels per pixel. Default = 1.
- height [read], [write], [nonatomic], [assign]
The height of the CNN image. The formal height of the CNN image in pixels. Default = 1.
- numberOfImages [read], [write], [nonatomic], [assign]
The number of images for batch processing. Default = 1.
- pixelFormat [read], [nonatomic], [assign]
The MTLPixelFormat expected for the underlying texture.
- storageMode [read], [write], [nonatomic], [assign]
To specify storage mode of texture resource. Storage mode options:
Default = MTLStorageModeShared on iOS
MTLStorageModeManaged on Mac OSX
MTLStorageModeShared not supported on Mac OSX.
See Metal headers for synchronization requirements when using StorageModeManaged
- usage [read], [write], [nonatomic], [assign]
Description of texture usage. Default = MTLTextureUsageShaderRead/Write
- width [read], [write], [nonatomic], [assign]
The width of the CNN image. The formal width of the CNN image in pixels. Default = 1.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageDescriptor(3)