Posts

Is there a different runtime configuration file for Vim than gVim? -

I have my own. One in the directory Vimrc file in which I have put some vim commands but those commands work only in GVIM and there is no problem in VIM? What is another configuration file for VIM? By the way, this is my .vimrc file: 1 color to save desert 2 ", ctrl-s3 nmap : w & Lt; CR & gt; 4 MAPAP & lt; cs & gt; & lt; Esc & gt;: w & lt; CR & gt; Set up a 5 "Boolean number option to the right 6 set number 7 LineNr term = bold Cterm = NONE ctermfg = DarkGrey ctermbg = NONE gui = "set the width of the change" for Python programmings 9 sets sw = 4 10 "convert all tabs to equivalent spaces" 11 set set tab 12 set softtabstop = 4 13 retab Cursor position in 14 " Do not show status bar "15 set ruler PS I can not run the Ctrl-s command in vm only and I am capable of running other commands as GIIM. Ctrl-S in the terminal XOFF , so the terminal can interpret it and it is not passing on the vim. Alte...

How to use PHP readdir to read files in directories outside of the root level and link? -

I have a php (side navigation menu- where php script) that stays at the root level of my webserver. I want to use a php readdir or scandir for a list of contents of a separate folder (/ report_1) on a server with links to those files except HTML, HTM and XSLT extensions. Or just to include the php extension) Currently I am using a reader which reads the content of the current directory that resides in it and returns the link except for some file types Land. (See code below) I would like to include the "php" file at the end, which contains the lists and links to files outside the "included" root level. Any help would be greatly appreciated. & lt ?? Php // These files will be ignored $ Excluded Files = Array ('excludeMe.file', 'excludeMeAs.well'); // These file extensions will be ignored for $ Excluded Extents = Array ('html', 'htm', 'php'); // Make sure we ignore and .. $ Excluded Files = array_merge ($ Exclude...

mysql - How should I manage a PHP database-driven website with lots of pages/content? -

It should be known that I have the experience of creating websites with only 5 or 6 pages, like a PHP gaming journalism site The first problem I would like to make is to manually create a page for each game article; That road was not working clearly so I decided to store all the articles in a database. There was a problem storing content in a database how to get them back. I have attached a GET variable to the URL, so I can recover any article from the index.php file; However, I could not hide the GET variable from the URL, so I betrayed that method. I do not have any free cash to buy CMS and I have tried very free people like Drupal like very frustrating. Do I have to generate a separate php file for each article? What will happen to a professional / giant in my situation? First, I would like to state that if you have trouble installing Drupal Wordpress or similar free CMS For, you are discovering patience from hard scratch to be one to be able to find patience. After...

mysql - making a trigger -

Here's a code and I'm getting the following error # 1064 - You have An error in your SQL syntax; To create a trigger, update on the login for each line Before updtrigger if new. First & gt; 100 then set password = formatting; end if; END Fortune is a string, and it should be in quote

c# - MSDTC: Communication with the underlying transaction manager has failed -

I have a WinForms / WCF / SQLServer app where I'm trying to use the MSDTC transaction: using the system. Behavior; // ... var Transaction = New Transaction Option {Isolation Level = Isolation (Var scope = new transaction scope (transaction Sescopopeshn. Required, Tronsopsn)) {// ... if (everything_is_ok) scope.Complete (); } Box on my Dev, where there are server and client processes on the same machine, it works fine. But when I was hanging to the scope.Complete is called (), the client timeout period (2 minutes) And then I find: Flushed transactions can not be unmarshaled. The following exception occurred: Communication with the built-in transaction manager failed. What could be the reason for this? I have spent a few hours trying to solve this problem under Windows 7. In the end it worked, how I did it: Enable MSDTC and inbound / outbound Allow transactions (through the Control Panel) - just follow the guide allow ports defined for opening your firewa...

MySQL group 2 different requests from one table? -

I have a table where I have position 1 and status 2 fields I select from a different location and position On 1 basis, in the second option, I select from the other tables based on the position 2, how can I group it into a request? Get the first position 1 and get all the additional details 2 status and all the additional details In this way? Select from myTableInner on MyOtherTableX (myTable.Position1 = MyOtherTableX.Position1) Select Union * FROM Join MyTable INNER MyOtherTableY ON (myTable.Position2 = MyOtherTableY.Position2)

python - Dictionary and array as class vs. instance variables -

This is an easy way to earn some points, please explain the following: Class C: a = {} b = 0 c = [] def __init __ (self): self.x = {} def D (self, k, v): self X [K] = V itself A [K] = V; Self.b = v self.c.append (v) def out (self, k): print (self. X [k], self a [k], self b, self. C [0]) c = C () D = C () CD (1, 10) DD (1, 20) c. Out (1) d. Out (1) will produce the following: Why a dictionary, a list and 'plain' variable behave differently is? Edit: I was thinking that the question is clear but I have to write it in more detail: I have a class with three characteristics, A, B and C. I make two class examples. I again call a method which modifies these attributes for each example. When I observe the properties, I feel that if any specialty is a dictionary, it is shared in all instances, whereas it is a 'plain' variable, it behaves as if for each candidate Will be different. First of all, [] is not an array, it is a list The point here is how the r...