Questions tagged [utilities]

208 questions
247
votes
14 answers

Longest line in a file

I'm looking for a simple way to find the length of the longest line in a file. Ideally, it would be a simple bash shell command instead of a script.
Andrew Prock
  • 6,900
  • 6
  • 40
  • 60
196
votes
21 answers

Unix command to prepend text to a file

Is there a Unix command to prepend some string data to a text file? Something like: prepend "to be prepended" text.txt
One Two Three
  • 22,327
  • 24
  • 73
  • 114
95
votes
20 answers

How to convert map to url query string?

Do you know of any utility class/library, that can convert Map into URL-friendly query string? Example: I have a map: "param1"=12, "param2"="cat" I want to get: param1=12¶m2=cat final output relativeUrl+param1=12¶m2=cat
Ula Krukar
  • 12,549
  • 20
  • 51
  • 65
79
votes
8 answers

Command line tool to delete folder with a specified name recursively in Windows?

I want to delete every "_svn" in every folder and subfolder... For example c:\ proyect1 _svn images _svn banner _svn buttons _svn Then I run something like rm-recurse c:\proyect1 _svn And I should get: c:\ …
opensas
  • 60,462
  • 79
  • 252
  • 386
64
votes
5 answers

How to generate dependency graph with text

Is there a simple online tool that will generate a dependency graph (boxes linked by arrow lines) based on text input like: A -> B Much like this one: www.websequencediagrams.com (It generates a sequence diagram)
hello_harry
  • 1,265
  • 2
  • 14
  • 24
60
votes
15 answers

Command line command to auto-kill a command after a certain amount of time

I'd like to automatically kill a command after a certain amount of time. I have in mind an interface like this: % constrain 300 ./foo args Which would run "./foo" with "args" but automatically kill it if it's still running after 5 minutes. It…
dreeves
  • 26,430
  • 45
  • 154
  • 229
53
votes
2 answers

MySQL Utilities - ~/.my.cnf option file

I am trying to use 2 of the mysql utilities, mysqldiff and mysqldbcompare and want to avoid putting my password on the command line Is it possible to use an option file to specify the password for my DB connection to prevent me having to specify the…
Carlton
  • 5,533
  • 4
  • 54
  • 73
45
votes
13 answers

Checking if a number is an Integer in Java

Is there any method or quick way to check whether a number is an Integer (belongs to Z field) in Java? I thought of maybe subtracting it from the rounded number, but I didn't find any method that will help me with this. Where should I check? Integer…
Unknown user
  • 44,551
  • 16
  • 38
  • 42
42
votes
15 answers

Xcode right pane (utilities pane) not applicable?

I was programming using Swift in Xcode, halfway through when I wanted to edit a button using the utilities pane, I realised it became "Not Applicable". Attributes inspector, Connections inspector, etc all became "Not Applicable", only the Quick Help…
Allister Bah
  • 1,134
  • 3
  • 13
  • 19
38
votes
5 answers

Make and build utilities on CentOS/RHEL?

I've been unsuccessfully searching for a way to install make utility on my CentOS 5.2. I've looked through some RPM repositories and online, with no avail. Installing gcc, gcc-c++ didn't help! Package build-essential is not made for CentOS/RHEL. I…
DV.
  • 4,585
  • 9
  • 37
  • 44
38
votes
7 answers

Sending an arbitrary Signal in Windows?

Linux supports sending an arbitrary Posix-Signal such as SIGINT or SIGTERM to a process using the kill-Command. While SIGINT and SIGTERM are just boring old ways to end a process in a friendly or not-so-friendly kind of way, SIGQUIT is meant to…
morsch
  • 1,136
  • 1
  • 8
  • 11
38
votes
22 answers

What is a better file copy alternative than the Windows default?

I need to copy hundreds of gigs of random files around on my computer and am pretty leery of using the vanilla file copy built into Windows. I don't want it to hang on a "Are you sure?", "Are you really sure?", "Even zip files?", "Surely not…
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
36
votes
2 answers

MySQL Workbench > Plugins > Utilities > Reformat SQL Query

At some point I installed MySQL Workbench 5.2.47 Revision 10398. This version has the feature to reformat an SQL query located at: Plugins > Utilities > Reformat SQL Query I like this feature and I use it almost every day. Now every newer version I…
Robi Wan Kenobi
  • 1,441
  • 1
  • 10
  • 10
32
votes
6 answers

Useful WPF utilities

What are some useful utilities that help you when writing WPF applications? I know about Snoop for visual debugging of WPF applications at runtime, and Shazzam - a WPF pixel shader effect testing tool. I'd like to know about other such applications…
luvieere
  • 37,065
  • 18
  • 127
  • 179
30
votes
2 answers

Is there a Spy++ like utility for WPF?

As a “hardcore” WinForms programmer from a Win32 background I have always used Spy++ to understand what my applications are doing at the UI level including: Seeing what events the controls are sending to each other. Seeing the control tree at run…
Ian Ringrose
  • 51,220
  • 55
  • 213
  • 317
1
2 3
13 14