Replacing strings in file, using patterns from other file

I need to replace many strings in many files using other file with patterns (like databank of strings). It is for anonymizing files. Example: File #1: *”Administrator”;”512″;”Built-in account for administering the computer/domain”;”False”;”False”;”Administrator”;”True”;”True”;”True”;”S-1-5-21-3445027559-693823181-3401817782-500″;”User”;”OK”;”23. 1. 2012 9:41:34″;”20. 1. 2012 16:01:33″;”10″;”True”;* File #2: *Guest;user1* *Administrator;user2* *system;user3* So my dream output in File #1 will be “**user2**”;”512″;”Built-in account for administering the computer/domain”;”False”;”False”;”**user2**”;”True”;”True”;”True”;”S-1-5-21-3445027559-693823181-3401817782-500″;”User”;”OK”;”23. 1. 2012…
Read more

Bootstrap 3 Navigation Javascripts Disabled

I started using bootstrap and had a very good experience with it. Today when I was testing it, I understood that the navigation menu doesn’t work when javascript is disabled. i.e. drop down menus don’t work (i know that they cannot work without javascript but atleast some alternative should be there) and the menu is not at all accessible for…
Read more

jQuery AJAX simple PHP Post not working

I’ve got a very basic one today! I’m trying to post from jQuery to a PHP file hosted on localhost. My JS: $(“#searchNameButton”).click(function() { var name = $(“#searchNameText”).val(); $.ajax({ type: ‘POST’, url: ‘localhost:8080/getNameInfo.php’, // -> this works fine from the browser // data: { name: name }, -> commented out success: function(){ alert(‘request successful’); }, error: function(xhr, textStatus, errorThrown){ alert(‘request…
Read more

Regular Expression Issue while retrieving from database table

We have regular expression value @”^[a-zA-Z0-9_]*$ in database table for nvarchar column . When we are retrieving expression from database table than we are getting expression value with special char like @”^[a-zA-Z0-9_]*$” This value is not evaluated . How I can ensure regular expression is valid expression How I can remove special char while getting expression values from database table….
Read more

Get the biggest price using MAX() function

I am using SQL Oracle, and I want to change my query using MAX function and not ROWNUM. SELECT * FROM (SELECT a.name, price.price FROM price LEFT JOIN a ON a.id = price.tk_a ORDER BY price.price DESC) WHERE ROWNUM <=1; Any help or suggestions please? Source: New Questions

Keeping .git as small as possible

Some live websites of ours receives automatic code updates. I want these automatically committed (don’t worry about the sanity of this, everything is unit tested and only small sites get auto updating). When I put the repo on the live webserver, the size gets very big. What is the best way to keep a minimal history of only 1 branch…
Read more

How can I sort the column heading in MS Access for more than 30 columns

Example: Roll_Number | Class | Subject | Marks | DOB ————+———–+—————+———–+———— 1 | 11 | Chemistry | 50 | 14-05-96 2 | 12 | Physics | 62 | 15-02-93 It should be like Class | DOB | Marks | Roll_Number | Subject ——–+—————+———–+—————+————– 11 | 14-05-96 | 50 | 1 | Chemistry 12 | 15-02-93 | 62 | 2 |…
Read more

Jobs being killed on Condor Enviroment

I am running an executable in Condor that basically processes an input Image and saves a binary image in a given folder. I use this code in 213 images. My condor configuration file contents are as following: universe = vanilla executable = /datasets/me/output_cpen_database/source_codes_techniques/test/vole arguments = cmfd -I /datasets/me/cpen_database/scale1/$(Process)/$(Process).png -O /datasets/me/output_cpen_database/scale1/dct/$(Process)/ –numThreads 10 –chan GRAY –featvec DCT –blockSize 16 –minDistEuclidian 50…
Read more