I generated data - 1000 rows, used https://www.mockaroo.com
Matthew,Richards,2/2/1992,mrichards0#sbwire.com,86-(493)702-4682,0284 Artisan Avenue
Arthur,Myers,5/30/1959,amyers1#globo.com,56-(105)354-8682,5 Center Hill
Stephanie,Hayes,8/6/1976,shayes2#cdc.gov,62-(945)765-1251,979 Aberg Parkway
Lisa,Reynolds,5/10/1956,lreynolds3#i2i.jp,256-(450)430-9937,8 Aberg Terrace
Kathleen,Gonzales,12/11/1971,kgonzales4#sciencedirect.com,86-(745)695-8094,520 Basil Court
...
...
...
Now I need to add this to an array in C, so I want it to look like this:
{"Matthew","Richards","2/2/1992","mrichards0#sbwire.com","86-(493)702-4682","0284 Artisan Avenue"},
{"Arthur","Myers","5/30/1959","amyers1#globo.com","56-(105)354-8682","5 Center Hill"},
...
...
...
Do you know how to add quotes and braces? Is there and app/program which could do that?
open up your favorite text editor such as MS Word, Notepad++, Sublime Text, Atom, etc... even Notepad that comes with windows can do this
look for a find and replace option. (usual Ctrl + F does it), it's also usually under "Edit" on the menu bar.
replace all , with ","
Related
I have a google sheets document with content that goes into a WordPress post. I am trying to add non-breaking space inside the formulas. The problem is that when I add the non-breaking space I need to create it on a new line. Example:
This is random text which I need to break (Doesn't work)
This works
This is random text which I need to break
If I break the text with the above and below text, the google sheets formula wraps the entire text inside double quotation marks, something I want to avoid. Also, adding this between text doesn't create space where the entity has been added.
In short, what I am looking for is a way to create non-breaking blank space between two sentences where appears. So that this random text here becomes this
So that this random
now breaks and leaves a blank space like so
My google sheets formula is something like this but you don't have to use it ="<h1>"&CONCATENATE(UPPER(A2 &" and " &C2)&" This is Random text")&"</h1><b>"&UPPER(A2 &" and " &C2)&"</b>"&A1&"Date: "&TEXT(BT2,"dddd, dd MMMM yyyy")&"<br>Examples at "&B2&" NOW <b>"&A2&"</b> vs <b>"&C2&"</b> for "&A1&" time period.
Link to google sheets document https://docs.google.com/spreadsheets/d/1qdyMPqbIg6tUOOPrHDoVqzHpQKQhLh4_BT8IhsjE2ig/edit?usp=sharing
Any ideas please?
try:
=REGEXREPLACE("<h1>"&UPPER(A2&" and "&C2)&" This is Random text"&
"</h1><b>"&UPPER(A2&" and "&C2)&"</b>"&A1&"Date: "&TEXT(BT2, "dddd, dd MMMM yyyy")&
"<br>Examples at "&B2&" NOW <b>"&A2&"</b> vs <b>"&C2&"</b> for "&A1&" time period.",
"( )", CHAR(10)&"$1")
to avoid wrapping the copied string into double quotes use:
={""; REGEXREPLACE("<h1>"&UPPER(A2&" and "&C2)&" This is Random text"&
"</h1><b>"&UPPER(A2&" and "&C2)&"</b>"&A1&"Date: "&TEXT(BT2, "dddd, dd MMMM yyyy")&
"<br>Examples at "&B2&" NOW <b>"&A2&"</b> vs <b>"&C2&"</b> for "&A1&" time period.",
"( )", CHAR(10)&"$1")}
one step further would be entering the cell before copying it...
select cell
press ENTER
press CTRL + A
press CTRL + C
I'm tinkering with blogdown and would like to create figures and table with non-English caption headers. The following chunk
```{r label1, echo=FALSE, fig.cap="Fancy caption", fig.fullwidth=TRUE}
plot(1,1)
```
produces the plot and a caption that reads
Figure 1: Fancy caption
I'd like to be able to change the label such that, say, "Figure" becomes "Plot". I thought I could fix it in the same way as for bookdown: In the _bookdown.yml file I could have
language:
ui:
chapter_name: "Chap "
appendix_name: "App "
label:
fig: 'Plot '
tab: 'Fancy table '
but I'm not sure how to do something similar with a Hugo-based setup from blogdown. How can I add the above information to, say, the config.toml file or set it somewhere else?
First, store the _bookdown.yml file you described in the same folder as the blog post source .Rmd file, e.g. content/post/_bookdown.yml if your file is at content/post/my_post.Rmd.
Then, add _bookdown.yml to the list of ignoreFiles in your config.toml so that Hugo doesn't move _bookdown.yml to the public directory.
This works because blogdown::html_page() is based on bookdown::html_document2(), which will pick up the _bookdown.yml in the same directory of the source Rmd. I don't think it's possible to set this globally from your blogdown root dir, but if you store all your posts in content/post it's basically the same thing.
I am new to Oracle Apex 5.1, and I have been asked to implement a button that when clicked, the user gets (downloads) a .doc file of an Interactive report.
I have noticed that the Interactive Report gives you the option to download it as .pdf, .xls, and so, but I need it to be a Word (.doc) file.
In addition, the file must be in a specific format (with heading, indentation, font, etc.) that I was given (as a template) in a Word file.
Any help would be appreciated.
Additional Information: I was able to open the template (.doc) file in NotePad++ and get the <html> version of it, so I could edit it in both NotePad++ and Word.
One of the best actually to do that is APEX OFFICE PRINT(AOP) but isn't free licence.
otherwise you can check this solution
How do we export a ms-word (or rtf) document (from a web browser) to generated by pl/sql?
I end up finding information in this page: http://davidsgale.com/apex-how-to-download-a-file/ and I wrote this code:
declare
l_clob clob;
begin
l_clob := null;
sys.htp.init;
sys.owa_util.mime_header('application/vnd.ms-word', FALSE,'utf-8');
sys.htp.p('Content-length: ' || sys.dbms_lob.getlength( l_clob ));
sys.htp.p('Content-Disposition: inline; filename="test_file.doc"' );
sys.owa_util.http_header_close;
sys.htp.p(SET_DOC_HEADER);
sys.htp.p(SET_TABLE_HEADER);
sys.htp.p(ADD_TABLE_ENTRY("arguments"));
sys.htp.p(SET_TABLE_FOOTER);
sys.wpg_docload.download_file(l_clob);
apex_application.stop_apex_engine;
exception when others then
--sys.htp.prn('error: '||sqlerrm);
apex_application.stop_apex_engine;
end;
It works, but I had to create functions in the SQL Workshop because writting a table in html is really long.
How can I do this? I've looked through the Maya documentation and all I can see that's related are the commands refreshAE and updateAE, but they don't do the job I need.
Here is one way of doing it. This proc is tested in Maya 2009 and 2013.
// switch the tab by name string, note tab must be present
global proc switchAEtoTab(string $name ){
global string $gAETabLayoutName;
string $tabs[] = `tabLayout -q -tabLabelIndex $gAETabLayoutName`;
for ($i=0;$i<size($tabs);$i++){
if ($tabs[$i]==$name)
tabLayout -e -selectTabIndex ($i+1) $gAETabLayoutName;
}
}
Edit: updated script to contain the global name of the tab layout
I have a huge list of numbers and I would like to add content on the end of each line. It's something like this:
Before:
123123
123123
13234
124125
12634
5234
After:
123123, 1
123123, 2
13234, 3
124125, 4
12634, 5
5234, 6
A couple of points:
I know that :range s/oldpattern/newpattern/ will substitute the oldpattern by the new one.
I know that for i in range(begin, end) | something | endfor can generate those extra numbers.
However, I don't know if it's possible to combine them to do what I want (or if there's a different way to do it). Does anybody knows how can I add those extra values automatically? I'm quite sure that it's possible using Vim, but I don't know how.
You can do this by visually selecting the area then typing
:s/$/\=', '.(line('.')-line("'<")+1)<CR>
(range is added automatically when you type : from visual mode). Visual mode is needed to get line("'<") thing, if you are fine with typing line number in place of it use any range.
I'd do
:%!nl
:%s/\v^\s*(\d+)\s+(.*)$/\2, \1/g
nl will (by default) skip numbering empty lines
Or as a oneliner
:exec "%!nl"|%s/\v^\s*(\d+)\s+(.*)$/\2, \1/g
:%!awk '{print $0", "NR}'
or
:%!perl -lpe '$_.=", $."'