similar to: Displaying HTML code in view

Displaying 20 results from an estimated 10000 matches similar to: "Displaying HTML code in view"

2009 Sep 30
3
How to search and replace all urls on a HTML string using RUBY gsub
Hi , I trying to search and replace all urls on a HTML string using gsub . CODE html = "<a href=''http://site.com.br''><img src=''http://site3.com/ image.jpg''></a><a href=''http://newx.com.br''><img src=''http://localhost/ imagem.jpg''></a>"; pattern = /<a
2020 Oct 01
2
Creating a global variable for a struct array
Thank you very much. The code to initialize h1 to non-zero values was what I was looking for. It's almost working except for a type mismatch wrt dlist* llist field of h1. dlist static_lst[10] = { {1, 5, NULL}, ... }; dhash h1[10] = {{"myfile.txt", static_lst}, ... }; Along the lines of the code you had sent, I created a GlobalVariable* llist of type [10 x %struct.dlist]* for the
2003 Apr 25
2
Open an r+b file connection on Windows
I am trying to open an existing binary file, seek to a position in the middle, and then write one byte, while keeping the already existing data after that byte. It seems to me that I am unable to open a connection to a binary file in both read and write mode. I can open the "r+b" binary file connection and seek around, but I can't write to the file. And looking at the function
2013 Jan 29
1
points rejected as lying outside the specified window
Hello, I am using the following code to create ppp files from csv data and map shape files, but I am getting some errors which I have been unable to fix by searching them online: library(spatstat) library(maps) library(maptools) NYC2<-readShapePoly("nybb.shp") # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating
2003 Nov 10
3
Reading an upper triangular matrix
Hola! I have data in the form of a symmetric distance matrix, in the file I have recorded only the upper triangular part, with diagonal. The matrix is 21x21, and the file have row and col names, and some other information. I am trying to read with the following code (I tried many variations on it, but all give the same error). The items in the data file is delimited by white space. (Part
2007 Apr 14
3
HiddenStore option may be useful
I'm missing a HiddenStore option in OpenSSH, known from some ftp-server implementations like ProFTPd. Consider the following scenario: - A process PROCA is frequently polling the directory for a file called myfile.txt - Someone transfers this file via sftp or scp to the directory - While transfer is going on and the file is not completely written, PROCA reads in the file and removes is
2011 Feb 16
2
[LLVMdev] verbosity while invoking clang
I am working on implementing a new target for llvm. So far (to make debugging easier), I was compiling a C code into 2 steps: 1) generate the llvm file: clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll 2) generate the assembly file using llc -march=mytarget myfile.ll Sometimes, I add some verbosity for the 2nd command like "-print-after-all". Now, I'd like to
2011 Feb 16
0
[LLVMdev] verbosity while invoking clang
On Feb 16, 2011, at 11:08 AM, Damien Vincent wrote: > I am working on implementing a new target for llvm. > So far (to make debugging easier), I was compiling a C code into 2 steps: > 1) generate the llvm file: > clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll > 2) generate the assembly file using > llc -march=mytarget myfile.ll > > Sometimes, I add
2008 Oct 03
1
Problems with Share Modes "fill_share_mode_lock failed"
Hi, my details: Server: 3.2.3 Client: win2k8 When I try list contents of a shared directory through an ASP script (win2k8 is the client), it's take much time and on samba I saw many times (4 times for each file) the same error: "fill_share_mode_lock failed" I tried "shares mode = No" but no success It's the log: ...:49, 3]
2009 Jun 18
1
Problem reading from a file
Hi all, I have written a function cluster_compare(myfile, mclfile) I called it giving names of files in the working directory (I see them with dir()). I get Error in file("myfile", "r") : cannot open the connection In addition: Warning message: In file("myfile", "r") : cannot open file 'myfile': No such file or directory I tried even calling
2001 Sep 02
1
oggenc RC2: output filename
Hi everybody! Yesterday I startet working with oggenc RC2, and I encountered a difference between actual and documented behaviour in oggenc. If you run oggenc myfile.wav -t MyTitle the documentation/man page says it generates myfile.ogg, but actually MyTitle.ogg is generated. From the code it looks like being intentional. In my opinion the documented behaviour makes more sense, but that's
2003 May 20
1
R in BATCH mode
Dear all, In R<=1.6.2 I usually used the following code (in DOS prompt) to run R in batch mode C:\documents> Rcmd BATCH myfile.R and I could see the results (including warning messages) in the file myfile.Rout In R.1.7.0 I'm experiencing the followings: (1) even if I type "Rcmd BATCH myfile.R myfile.Rout", no file myfile.Rout is created, but just a "&1" file
2012 Mar 06
2
closing file with close(file) *silently*
Hi All, I am writing a function that reads a file in myfile = file('myfile.raw', 'rb') . . . . . close(myfile) No matter what, I get the warning Warning message: closing unused connection 3 (myfile.raw) Since the whole thing is in a function, I'd like to avoid unecessary noise for the user, and I'd like to kill the warning -- without having to mess with global options.
2008 Nov 13
4
Moving a file with Puppet
I wanted to move a file from one directory to another because my co- worker didn''t like where it was being put by puppet. I went into puppet and changed the name parameter of the the file directive. I then created a new file directive to delete the old file, but I was wondering if there was a better way to do this. So, just to clarify, I went from: file {"myfile": name
2005 May 19
1
Loading a dynamic library
Hi, I'm trying to load a .dll library into R 2.1.0 on Windows using the "dyn.load" function. The library is compiled with gcc 3.3.3 on cygwin 1.5.16. I compile and link: $ gcc -c myfile.cpp -o myfile.o [HRT] $ gcc -shared myfile.o -o myfile.dll [HRT] I then type, in the R console, > dynload("myfile.dll")[HRT] And R hangs. Any help appreciated. Thanks. Will
2011 Jan 21
1
Reading gz compressed csv file - 'incomplete line found'
Hi all, I am trying to download, decompress and read a csv file. My code: myurl <- "ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE24729/GSE24729_MitoNuclear_suppl_male_stats.csv.gz" # myfile <- "GSE24729_MitoNuclear_suppl_male_stats.csv.gz" # download.file(myurl, destfile=myfile, mode="w") # mycon <- gzcon(gzfile(myfile,
2012 Sep 03
1
[LLVMdev] Selection DAG output as bare DAG, code review
Hello all, I recently foudn myself wanting to view the basic blocks in the selection DAG as pure DAGs - so just as a list of edges, with no other information. I added the below code to the start of the " void SelectionDAGISel::CodeGenAndEmitDAG()" function. It creates a separate txt file for each basic block and gives a list of edges between nodes. The segment of code is below -
2011 May 04
1
scatterplot3d using colors in groups
Hi everyone, I would like to improve my plot and I was wondering if someone can help me whith it. I'm trying this plot using two groups, but I want to choice the colors (the black and white circles) but I don't know how to change it from here. These are my sentences: myplot3d<- scatterplot3d(myfile$Temperature, acantarcthus$Salinity,myfile$Abundance, type="h",    color =
2015 Oct 26
2
How to pass march flag to GCC Assembler arch64-linux-gnu-as
I am trying to build chromium and at this moment, They see some issues with internal one so recommended to use the flag -fno-integrated-as. Here is my exact build command (with -v and --save-temps): $ clang -Igen -I../../include -target aarch64-linux-gnu -march=armv8-a+crypto -fno-integrated-as --sysroot=./debian_jessie_arm64-sysroot -O2 -c MyFile.S -o MyFile.o -v --save-temps clang version
2010 Jul 29
4
reading dates in Excel into R
I am reading dates in Excel2007 into R. Here are the functions I used: library(RODBC) channel<-odbcConnectExcel2007("myfile.xlsx") tmp<-sqlFetch(channel,"1",as.is=T) The dates in myfile.xlsx are all in this format: mm/dd/yyyy. But when I read it to R, some columns look like "yyyy-mm-dd 00:00:00", some columns look like "yyyy-mm-dd", and some