Does anyone know of a utility (any OS or online) that, with a string input, identifies the encoding type (checksum, base64, etc) and if possible (and appropriate) decodes the string?
I'm have a command line that works in the regular old Windows Command Shell, but somehow gets misinterpreted in Powershell (I'm fairly new to Powershell).
sqlcmd -S .\SQLEXPRESS -i "f:\SQLBackups\ExpressMaint.sql" -v DB="ksuite" -v OPTYPE="DB" -v BACKUPFOLDER="f:\SQLBackups" -v REPORTFOLDER="f:\SQLBackups\Reports" -v DBRETAINUNIT="days" -v DBRETAINVAL="7"
Powershell seems to be stripping the drive letters out of the arguments that require paths. For example, I get the following when I attempt to run the above command in Powershell:
Sqlcmd: ':\SQLBackups': Invalid argument. Enter '-?' for help.
Well sure it's invalid without the drive letter. I have tried variations on double quoting it, escaping it, etc. but can't get it to work. What am I missing that Powershell does differently?
I have a Mint install (Fantastic stats, if you were wondering) and I would like to move over to Lighttpd for my server needs. Unfortunatly, this means that php_auto_prepend is no longer easily available. I understand that PHP can do this in the php.ini file, but I have areas that can't have this value prepended so that's out of the question. Is there a lighttpd way to prepend my script for my mint install in some files, and have it disabled for others?
I have an Excel spreadsheet that has a list of names in column A. What I'd like to do is parse out all the names in the column that I don't know and their rows. For example, in a spreadsheet of 100 names, let's say I know 39 of them and their row data. I don't need to see them in the spreadsheet - what I need to see are the remaining 61 that I don't know and their rows.
Hope that makes sense, and that something like this is possible!
Thanks!
I'm developing an application that communicates with an internal web service using HTTP.
Are there any "best practices" for custom user-agent strings so that I can put a nice one in my app? It's a Python library and the lower transport is Python's own httplib. Should the user-agent string say that or something else?
What is a regular expression for strings of 0 and 1 with an even number of zeros and an even number of ones?
I have something like (1*01*01*)*(0*10*10*)*.
Does it look good?
Am i missing some thing or isnt it possible to parse YAML formatted strings with yaml-cpp?
at least there isnt a YAML::Parser::Parser(std::string&) constructor.
i get a yaml-string via libcurl from a http-server.
Good day
The question is: Could anyone give me an example about how to do fuzzy matching of two strings using Lucene.NET (or using Java version of Lucene, or in any other language that has port of Lucene).
I need to find some strings that the current version of Windows is using. For example, when I create a new folder, it is initially named "New Folder" on English Vista. I need to programmatically find what that folder would be named on any language and version of Windows that I might be running on.
Anyone have any ideas how to do that?
I've got a few questions concerning text files,list and strings.
I wonder if it is possible to put in a code which reads the text in a textfile,and then using "string line;" or something else to define each new row of the text and turn all of them into one list. So I can sort the rows, remove a row or two or even all of them or search through the text for a specific row.
How can I perform bitwise operations on strings in ruby?
I would like to do bitwise & a 4-byte string with a 4-byte long hex such as ("abcd" & 0xDA2DFFD3). I cannot get the byte values of the string. Thanks for your help.
Hi all,
I'm trying to rewrite some query strings I have in my URL like this :
foo.com/index.php?page=admin&view=news&action=edit&id=3
to
foo.com/admin/news/edit/3
But can't figure it out...
it should also works if I only have the 'page' parameters for example, since I don't always have these 4 parameters (page,view,action,id) in my urls, of course.
any suggestions?
this must be such a simple problem but can someone tell me why this doesnt work:
visibilityString1 = @"the";
visibilityString2 = @"end";
visibilityString = (@"This is %@ %@", visibilityString1, visibilityString2);
Every time I try to combine strings this way, it will only return the second string so what I get is:
end
Hello!
I have two connection strings (both in Web.Config: CS_Local and CS_Production) for my DBML (Linq to SQL).
In my Global.Asax/Application_Start I run some production preparation methods if the request is non-local (!HttpContext.Current.Request.IsLocal). Within that part, I'd also like to change the current connection string used by my DBML from the standard CS_Local to CS_Production.
How would I do that? Some help please..
What is the best way to turn strings like "red", "green", "yellow", "aliceblue", etc... into the actual System.Drawing.Color value?
I was looking at reflection and something about that didn't seem right.
I'd like to preview WCHAR strings in the variable display of the Xcode 3.2 debugger.
Bascially if I have
WCHAR wtext[128];
wcscpy(wtext, L"Hello World");
I'd like to see "Hello World" for wtext when tracing into the function.
I have setup remote debugging in netbeans. It works except codeigniter only loads the default controller (home page).
I have enabled query strings with
$config['enable_query_strings'] = TRUE;
The debugger opens up a page with the following url
http://blinkfilms.ben.dev/myid/tests?XDEBUG_SESSION_START=netbeans-xdebug
So codeigniter should fire up the controller in controllers/myid/tests.php
I'm trying to think up a good hash function for strings. And I was thinking it might be a good idea to sum up the unicode values for the first five characters in the string (assuming it has five, otherwise stop where it ends). Would that be a good idea, or is it a bad one?
I am doing this in Java, but I wouldn't imagine that would make much of a difference.
How should I format very long strings in my source code?
I follow the rule, that line of code should not be longer than 80 characters.
(The other rules are Zend Framework formatting standard)
e.g.
protected $_messages = array(
'key1' => 'very, very long string lorem ipsum dolor sit amet…',
'key2' => 'this one it very long too, and exceeds 80 characters len…'
);
I have strings that look about like this:
stringA = @"29.88";
stringB = @"2564";
stringC = @"12";
stringD = @"-2";
what is the best way to convert them so they can all be used in the same mathmatical formula?? that includes add, subtract.multiply,divide etc
I have been looking for a way of modifying static strings stored in Windows .exe files in the .rdata section, however I haven't found a real way to do so yet.
The whole thing is too complicated to do by hand (in this case by a HEX editor) and so I wanted to know if you have a solution to do so.
I want to store lines of strings dynamically using C language.
for e.g
sadasdasda5245sdf
fadfa6456
fasdf90-70=790
the number of such lines and the length of each line can be anything.Is there any way to store the whole thing dynamically.
By default, printf() seems to align strings to the right.
printf("%10s %20s %20s\n", "col1", "col2", "col3");
/* col1 col2 col3 */
I can also align text to the left like this:
printf("%-10s %-20s %-20s", "col1", "col2", "col3");
Is there a quick way to center text? Or do I have to write a function that turns a string like test into (space)(space)test(space)(space) if the text width for that column is 8?