My footer consists of
"Name | Address | Phone | Twitterlink | Facebooklink"
I cannot find where to edit this info.
I looked under static blocks under "Footer Links", but that has nothing to do with it. I have looked at:
app\design\frontend\base\default\template\page\template\links.phtml
but there is nothing there.
The location of your footer template depends on the theme you are using.
If it is not defined in backend static blocks, you can check somewhere under:
app/design/frontend/<vendor_name>/<vendor_theme/templates/html/footer.phtml
As a last chance, make a search for the string '
grep -RlFin "string_to_search" app
Related
Here's my situation:
We depend on users to click some .bat and do the daily-backup.
I did some batching programming, now when they (are forced to) back-up, it leaves a log file in it's own the server folder. And yes, they need to be forced otherwise they just won't do the g.damn backup... Welcome to my company.
Then, after some more research, I developed another bat which checks if the file is outdated and prints it on a text file.
This is the kind of files that I have now:
File: DailyBkp
Content:
".\John\log.log"
".\Department1\Andy\log.log"
".\Department1\Nicole\log.log"
".\Department2\Ann\log.log"
File: Departments
Content:
Department1
Department2
...
Great, after some string treatment in PowerShell I managed to get DailyBkp content to be this:
John
Department1 Andy
...
Note that it has a space at beginning and another at the end which won't go away no matter what trim I use...
So now I have this setup: SERVER > E:\Backup\
Inside backup we have i.e. "Department 1" ... "Dep.-N"
Inside each one: "User-Lastname1" .. "User-lastname-N"
What I need, or what I do want to is use PowerShell to get the contents of DailyBkp containing "Dept_User" string, and export entries to a csv file like this:
COLUMN_Name COLUMN_Dept
Andy Department1
So, how do I do this? I can't find anything on internet that uses text files.
so assuming I am reading your question correctly you have a DailyBkp file that looks like this:
Department1 Andy
Dpeartment2 Jim
...
to get what you want you could read each line in split it out then spit it back out in a csv like this:
"COLUMN_Name,COLUMN_Dept" | out-file <path>\outfile.csv
$bkpFile = get-content $dailyBkpFile
$bkpFile | ForEach-Object {$line = $_.split(" ")
"$($line[1]),$($line[0])" | out-file <path>\outfile.csv -Append}
output should look like this:
COLUMN_Name,COLUMN_Dept
Andy,Department1
Jim,Department2
just doind a quick post here.
My question was answered, thanks.
And, if anyone is interested in Powershell programming, google Mastering Powershell by Tobias Weltner; this is a free book with lots of explanations.
I would like to use the Examples in the code below in the "When I sign up with the following information" line without having to specify every single parameter and without having to repeat the table in the examples.
Is this possible?
Scenario Outline: signing up a user that already exists
Given I am registered as "<username>" with password "<password>"
When I sign up with the following information
Then I should be on the sign up page
And I should see "user already registered"
Examples:
| email | username | name | password | password_confirmation | city | mobile_numbers |
| foo#bar.com | existent | some user | temp123 | temp123 | foobar | 70 707070 |
When you generate the cucumber project folder, the structure will contain a ruby file called env.rb within the support directory inside the features folder (along with the step_definitions folder). Here you can define your methods, variables, etc. that will serve as a common source for all your other tests inside the same project.
Since Cucumber is a Ruby gem, the data is defined in Ruby's format. You can define them as methods or variables. I prefer to define them as methods (in ruby, methods return their last line). So your methods will look like
def email
"foo#bar.com" # returns this when email is called
end
def username
"existent"
end
and so on...
You can optimize it to suit your needs. You will call them in your ste_definition files just like any normal ruby function would be called.
I'm trying to create a script that will format the output of w32tm.exe /monitor and display in a table the server name, NTP offset, and RefID.
I'm a little unaware of how to go about getting the output from an executable file to format it and was wondering if someone here could help me. Right now I'm trying this:
$executable = w32tm.exe /monitor
$executable | Format-Table -View "Server Name", "NTP offset", "RefID"
How can I manage to get the executable to be formatted in a table to display those specific parts of the exe?
Hi I also needed to do this before I found a function someone made to do this have a look I am sure you can change it to suit your needs or just use it as is .
ps-function
Article on how it works
I have this jade code:
p
| Avatar hosted by
a(href='http://www.gravatar.com/', target='_blank') Gravatar
The problem is, it's rendered to
<p>Avatar hosted byGravatar</p>
Which looks like: "Avatar hosted byGravatar".
No matter how many spaces I added at the end of the text line, it still looks like this. The Docs couldn't help me, and I can't imagine this to be such an uncommon problem.
If you don't want inline HTML or HTML entities in your code this is what you can do:
p
| Avatar hosted by
= ' '
a(href='http://www.gravatar.com/', target='_blank') Gravatar
or this is is shorter
p= 'Avatar hosted by '
a(href='http://www.gravatar.com/', target='_blank') Gravatar
The cleanest is probably this
p Avatar hosted by #{''}
a(href='http://www.gravatar.com/', target='_blank') Gravatar
Which version of jade are you using? I just tested (with 0.25.0) with a single space following 'by', and it worked correctly.
Other options are:
p
| Avatar hosted by
a(href='http://www.gravatar.com/', target='_blank') Gravatar
or
p
| Avatar hosted by
| <a href='http://www.gravatar.com/' target='_blank'>Gravatar</a>
Jade now supports interpolation of inline tags.
p this is #[strong test] of how jade will treat #[i #[u inline tags]]... like #[a(href="/") anchor tags] and #[+a() mixins].
http://jade-lang.com/reference/interpolation/
Are you sure it's not your editor? I use Komodo and it was set to strip trailing whitespace on save. It was stripping the space at the end of my text line when I saved the file. The lack of a space between my text and links was driving me nuts until I figured that out. I changed Komodo's settings (Preferences->Editor->Save Options) to uncheck strip trailing white space, and the problem went away.
I use the space variable at new line. This:
p
| You must follow
=space
a(href=default_url) this link
edit:
As jmar777 pointed out, recent versions of jade should honor trailing whitespace see here. That's awesome, and I may try jade again on future projects.
edit:
Updated link to jade parser. Original link was for jade 1.11.
A quick and clean solution is to use this syntax:
p
| Avatar hosted by
|
a(href='http://www.gravatar.com/', target='_blank') Gravatar
Note the space after | on the second text line. This will add a blank space after the previous line's text (and also spit out a nasty error if you forget to add it!).
So far this is the cleanest option, in my opinion.
I'm using Harp, and the solution with two pipes by Óscar Gómez throws an error, although it looks very elegant.
Thanks to Даниил Пронин and Sean Gravener, I found these solutions working for me:
#{' '}
!{' '}
and
= " "
p
| Avatar hosted by #{' '}
a(href='http://www.gravatar.com/', target='_blank') Gravatar
and
p
| Avatar hosted by
= ' '
a(href='http://www.gravatar.com/', target='_blank') Gravatar
Also, if you're having kind of a reverse situation:
span text #{ ref + [' '] }
Here's more on syntax interpolation in Pug (Jade):
https://pugjs.org/language/interpolation.html
I'm trying to find a better way to express this in jade:
p.author.alignleft
| Posted by
| admin
| in
| Uncategorized
The above works, but i'm wondering if there is a way to do it without using the tags. I can't seem to make it work any other way than what is above. NB, the word "admin" and "uncategorized" are actually a href's. I gave up trying to get it to display right in this question.
p.author.alignleft Posted by
a(href:'#') admin
| in
a(href:'#') Uncategorized