Posts

bash - Concatenate output of two commands into one line -

I have a very basic shell script here: Book in Alt_moabit Book_arrival Leave Door_flowers in laptop laptop for 10 12 15 1 9 22 25 32 39 45 60 in Do I in 0 1 Do "$ file \ t $ qp \ t $ i" & gt; & Gt; Psnr.txt ./command & gt; $ File- $ qp-psnr.txt 2 & gt; & Gt; Psnr.txt does command calculates some PSNR values ​​and file a comprehensive summary for each combination of the file Writes in, qp and i . This is right. 2 & gt; & Gt; One line information that I really need but when it is executed, I get: Alt_moabit 10 0 Total 47,8221 50,632 950,1031 Alt_moabit 10 1 Total 47,8408 49,9973 49,8197 Alt_moabit 12 0 Total 47,0665 50,1457 49,6755 Alt_moabit 12 1 Total 47,1193 49,4284 49,3476 I What is needed, however, is this: Alt_moabit 10 0 Total 47,8221 50,632 950,1031 Alt_moabit 10 1 Total 47,8408 49,9973 49,8197 Alt_moabit 12 0 Total 47,0665 50,1457 49,6755 Alt_moabit 12 1 Total 47,1193 49,4284 49, 3476 How can I get it? (If you...

css - Move link image 5px up on hover -

How do I get an effect on CSS and HTML on the portfolio page of this site? I thought that just something like this would work: one img {margin top: 5px; } An IMG: Hover {margin-top: 0 pixels; } but it was not working, even if I put it: hover over the link instead of img I opened my code and css but I do not understand this for my life Found. Please help :) status: relative will work: An IMG: Hover (Position: Relative; Top: -5px;} Note that the status: relative reserves the place in the document flow such as element not Move. But I think in this case, this is not an issue.

Dropping IE6 Support; What Do We Gain? ... HTML / CSS / JavaScript Functionality & Techniques -

The web development community is at the tip of the tip to support Internet Explorer 6 - even Microsoft is counting its demise! This raises a very interesting question ... What advantage do we have? We have been weighed by the ball and the series which IE6 is so long that with IE 7 as the new baseline for backward compatibility, all the good stuff Which we have neglected expect us from our browsers? For example, I'm actually CSS chained class . .class1.class2.class3 {background: #fff; } & Lt; Div class = "class1 class2 class3" & gt; & Lt; P & gt; Content Here & Lt; / P & gt; & Lt; / Div & gt; PS was inspired by this question. Web developer approach from , surprisingly very little in the way of additional functionality, is present in many other browsers The standard API is still missing. In IE7, the benefits of many small improvements in the IE7 are higher compared to IE 6. Better but incomplete PNG transparency sup...

php - form multioptions select -

This is my part of the code and I have to withdraw more than one attribute (piece of information) from the banner status function / pre> $ this-> Setcontext (auto: NTTPMMTTPART); $ This- & gt; SetMethod (auto :: METHOD_POST); $ This- & gt; SetMethod ('post'); // An email element $ this-> AddElement (add '' text ',' banner_title ', array (' label '= & gt;' banner title ',' required '=> true,' filter '=> array (' string trim ')); $ This- & gt; Adelament ('text', 'banner_type', array ('required' = & gt; right, 'filter' => array ('string trim')); $ This- & gt; Element ('checkbox', 'is_active', array ('label' = & gt; 'active', 'required' = & gt; true, 'filter' => array ('string trim')); $ Banner_position = New Zend_Form_Element_Select ('banner_position'); $ Ba...

language agnostic - What's the syntax to run an executable from an html page in a browser? -

Of course this page will not be from a remote server on my PC. I create a launch page for my most commonly used software Want to I started windows programmers feel very troublesome and can not find any freeware which actually does a good job Do not say that this is not possible because I have already referred this to a file While doing the first with javascript: /// But I do not remember what the exact syntax is. Will this work in Google Chrome? If you use the file: /// , then the browser The file will download Even IE's choice of "run" is actually just downloading a temporary directory for the first time, then running it, a browser actually runs just one XE because the browser does not care about that thing Were kept. You can run a local web server with a small code that "run this program when the user clicks on this link". This will be the web server running the program, not the browser, but it will have the same effect.

terminology - dynamic binding and dynamic linking -

Quote from , dynamic binding orthogonal for dynamic linking Is ... I was wondering how to understand the meaning of orthogonal? Is it because Like compiling source code deep into the machine code, and links to different machine codes are like horizontal, and therefore they are orthogonal of each other, (static / dynamic) Binding name is a concept in compilation In the static / dynamic linking linking Is a concept? If in dynamic linking Thanks! , Any included binding, i.e., any organization involving objects (data and / or code) with identifiers is dynamic binding? "orthogonal" means that the presence or condition of one (in a more abstract sense) is not dependent As a practical example, suppose dynamic binding is the resolution on runtime that should be executed on which part of the code is a result of the function call in the source code. That piece of code may exist in a library that is linked to the executable on link time (static li...

php - what the best way to add multiple tags to a blog post? -

I really want to add more than one tag to a blog post when users select them from a field, To store the tags in Mysql, I have the fields to keep all tags, or one by one or tag_field = (cats, animals, fur) OR cats id2 animals id 3 fir I used the first example Area was thinking and was detonated lists and they were separated in a tag when the user brings them !!! :)) Thanks You should use three tables: A table where you store posts; One line per line A table where you store tags; Used by many posts, and a post can contain many tags - and there is no duplication of any kind of data. So, basically, your table will look like this: Post-ID; Primary key - Date - Title - Content tag - ID; Primary key - name posts_tags - tag_id; primary key ; Foreign key for tags. Tag_id - post_id; primary key ; Foreign key for Posts.post_id