Questions tagged [utilities]

208 questions
0
votes
1 answer

Where should I define global functions in ExtJS 5 MVVM? 1

I need to create/call a specific class to have utilities functions for my app. This exactly correspond to this topic: Where should I define global functions in ExtJS 4 MVC? But this, do not work with ExtJS 5. So I would like to know how make with…
0
votes
1 answer

byte toPositiveInt method

is there anything like this in JDK or Apache Commons (or in other jar)? /** * Return the integer positive value of the byte. (e.g. -128 will return * 128; -127 will return 129; -126 will return 130...) */ public static int toPositiveInt(byte b)…
The Student
  • 27,520
  • 68
  • 161
  • 264
0
votes
1 answer

Different object library in utilities of xcode 5

I have observed two different scenarios in Object Library present in Utilities pane of Xcode 5. Below are screenshot for the same. The Second Object Library appears apparently in utilities. When to use the Second Object Library? Also, when does…
Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
0
votes
3 answers

Calling linux utilities with options from within a Bash script

This is my first Bash script so forgive me if this question is trivial. I need to count the number of files within a specified directory $HOME/.junk. I thought this would be simple and assumed the following would work: numfiles= find $HOME/.junk…
Kyle Van Koevering
  • 169
  • 1
  • 3
  • 10
0
votes
1 answer

Google Translation API not working for even one page long documents

I'm using Google Translation API to translate text from Chinese Simplified to English in my C# program. The problem is if the text is small (around one line) the API is able to translate it, but if the text is larger (more than 3 lines) is gives an…
Saubhagya
  • 1,075
  • 1
  • 9
  • 12
0
votes
1 answer

how to create a utility method which has checked exception?

I have to set private InputStream responseMsg in my struts 2 application action class methods using following code responseMsg = new ByteArrayInputStream(message.getBytes("UTF-8")); in this case i have to handle UnsupportedEncodingException…
rpandidurai
  • 307
  • 1
  • 5
  • 13
0
votes
1 answer

Find all files in iphone project

I'm curious if there's a way to search for files in the iPhone's directory ( the location is irrelevant). I am wanting to load in addresses from text files. The thing is additional files may be added and I want to dynamically be able to find the…
RayJ
  • 87
  • 1
  • 7
0
votes
3 answers

Using sort -M to sort by month

I have a file months.txt with the following text: JAN, MAR, DEC, FEB, JUN, APR In bash I write the following line of code: cat months.txt | sort -M I assumed that this would output the text file, sorted by month. However the output is not sorted.…
Jakeimo
  • 71
  • 6
0
votes
5 answers

Java Random number between -100 and 100

I have created this program to print numbers between -100 and 100 but I am wondering if this is the right way to do it or it has to be done between limits (pre-specified) a and b? public class RandomNumber { public static void main (String []…
user3421469
  • 61
  • 3
  • 10
0
votes
1 answer

Can I use google utilities unzip in JavaScript on the browser client?

I'm trying to figure out the flow of using google's scripts to copy images from a user's hard drive to a public folder on their Google Drive. (see https://developers.google.com/apps-script/reference/utilities/utilities#unzip%28BlobSource%29 ) …
art guy
  • 35
  • 1
  • 9
0
votes
1 answer

Command line tool to extract key value pairs from XML files

Quite regularly I need to extract key value pairs from XML files. Is there an easy-to-use UNIX(-style) command line tool available for this? Example case The XML file looks like this: BlackPointCompensation
halloleo
  • 9,216
  • 13
  • 64
  • 122
0
votes
1 answer

How to convert encoded base 64 to UTF-16LE in javascript/jquery

Mine is an Phonegap project supporting for two platforms(Android and IOS). For any server request I need to set the authorization header.This Header should be in encoded base64 UTF-16LE format to receive the response. I am able to encode it to…
Surya
  • 439
  • 3
  • 9
  • 31
0
votes
1 answer

Create Custom Windows Bootable Utility Disk

I'm looking into the possibility of creating a windows (7?) boot image, much like the Windows install disk, but ONLY for running a slimmed-down windows shell. I don't want to make an install disk. I want windows to simply boot up, with dome some…
James Wilkins
  • 6,836
  • 3
  • 48
  • 73
0
votes
1 answer

Library architecture for helpers and utility functions

How do you handle helpers and utility functions in your project? We have all our classes and helpers in a Core project, but I dont want all this stuff referenced over the other projects when all I want is a helper function. Probably I´ll need to…
Claysson
  • 349
  • 1
  • 4
  • 10
0
votes
1 answer

Mailer utlity in java

I am using java mailer utility to send mails in my application. When ever there is any invalid mail id we are getting deliver failure notice. Is there any way to stop that failure notice? Please help in this.
1 2 3
13
14