FAQ Database Discussion Community


Unexpected Symbol in As Formula, Can't Find

r,string,text,syntax-error,formula
I've been using as.formula for setting up a glm, and I can't figure out where the unexpected symbol is. Part of the problem is that the character vector I'm converting is so long. It's about 700 words with + inserted in between in order to turn it into a formula....

How to change text based on time and date?

android,android-layout,text,countdown,android-cardview
So I need one of two options but don't know where to start with either. I have a list card views in a recyclerview. Each card view needs to have countdown timer implemented and able to run simultaneously. (Seems like the harder option) OR Update the text in a card...

Php style show function

php,text,show
Hi guys I want that on click of the button "show" the following inputs became visible, can someone help me? <input id="show"type="submit" value="change" > <input id="oldpass"TYPE="text"value="" style="display: none"> <input id="newpass"TYPE="text"value="" style="display: none"> <input id="cambia"TYPE="submit"value="" style="display: none"> ...

Error: Getting symbols in python output

python,python-2.7,text,file-io,editor
#I wrote the following code for making a text editor. print "This is a simple text editor" from sys import argv script, name = argv print "You have selected the file : %s" %name print "Opening the file...." t = open(name, 'r+') print "The contents of the file are" print...

Excel Function Error

excel,function,text
I am trying to create a cell from a Excel to show three values depending of a number from another cell. The function I use is =IF(H4<100;(TEXT(Probabil));(IF(H4<50;(TEXT(Sigur));(TEXT(Da)))) NOTE: The function outputs are in Romanian. Probabil means possible, Sigur means sure and Da means yes. I tried to use " before...

Read text file from specific position and store in two arrays

c#,arrays,file,text
I have text file which contains line like this: @relation SMILEfeatures @attribute pcm_LOGenergy_sma_range numeric @attribute pcm_LOGenergy_sma_maxPos numeric @attribute pcm_LOGenergy_sma_minPos numeric... Where are about 6000 lines of these attributes, after attributes where are lines like this: @data 1.283827e+01,3.800000e+01,2.000000e+00,5.331364e+00 1.850000e+02,4.054457e+01,4.500000e+01,3.200000e+01... I need to seperate these strings in two different arrays. So far...

Adding custom text to UITextField buffer

ios,objective-c,text,buffer,homekit
Background: I have got a custom alert part of the HomeKit API. I'd like to allow the user to paste the code requested rather than inputting it manually. Whenever there is text in the buffer it is possible to paste it by tapping on the textfield. How can I add...

Save user input into a Text widget Tkinter when using classes

python,text,tkinter
I want to know how to save text entered by the user in a Text widget when pressing a "submit" button. At the moment, I have the function submitbutton but it comes up with an error when clicking "submit." On another note, I want the top right Label widget to...

Parsing text file lines into numbers using std::iter::Iterator map

file,text,io,rust
I'm trying to read and parse a text file in Rust. Each line is a signed integer. I'm able to do it using for line in lines iteration but I'm unable to do it with a iter().map(|l| ...) one-liner. I'm getting a expected `&core::result::Result<collections::string::String, std::io::error::Error>`, found `core::result::Result<_, _>` when I...

Corona sdk random text

text,random,sdk,corona
I`m have a problem because when i touch my button sometimes not appear my text... (Sorry for my English!) Code: function randomText(event) display.remove(mmDis) local a = {"Cristiano ronaldo jest najlepszy!","messi jest dobry!","lewandowski jest ok","diego lopez to bramkarz realu"} com = (a[math.random(1,#a)]) local mmDis = display.newText(tostring(com), display.contentWidth*0.57, display.contentHeight*0.7, display.contentWidth*0.9, display.contentHeight*0.8, "Impact",...

StreamWriter not appending to file, instead creating a new file in different directory

c#,file,text,file-io,streamwriter
I am attempting to write from one file to a temp file after making certain changes to some of the data in the source file. This was working until I extracted this logic into its own function. After running some tests I noticed that only the first line was being...

Removing the blank positions (x,y) from a text file in Python?

python,text
I'm working on object tracking from video files, I have 5 to 6 objects in each frame of the video. Due to some bugs in the code there are some frames that are skipped and show as blank spaces in the text file . Like below 5.0 2.3 5.4 5.2...

Why is this basic python program not working?

python,email,text,organization
Well the program is supposed to check if the it sees an "ok" next to the email and if it does spit out the email in another txt file. Input txt file: [email protected],ok [email protected],fail [email protected],fail [email protected],fail [email protected],ok [email protected],fail [email protected],fail [email protected],ok python code is: readEmails = open("C:\\Users\\Greg\\Desktop\\rewriteEmails.txt","r") writeEmails = open("C:\\Users\\Greg\\Desktop\\OutputEmails.txt","w") for...

Verilog Input Text Parsing using Python Regex

python,regex,text,extract,verilog
so I'm trying to parse some verilog files using python. I need to find inputs, outputs, etc. However, in some files, some inputs and outputs have multiple bitwidths, like so: input read_enable, input [WIDTH-1 : 0] write_data, I'm using regular expressions to go through the text file one line at...

Splitting a text file

python,text,split
I have a folder with a set of text documents. I want to split each document to two or three documents, each one should be 45-70kb. How сan I do it? I tried: def split_file(filename, pattern, size): with open(filename, 'rb') as f: for index, line in enumerate(f, start=1): with open(pattern.format(index),...

Merge Text Files and Prepend Filename and Line Number - Powershell

powershell,text,powershell-v3.0
I've been trying to adapt the answer to this question: powershell - concatenate N text files and prepend filename to each line My desired output based on an example of 2 .txt files: First.txt lines of data Second.txt more lines of data Output.txt First1 lines of First2 data Second1 more...

Extract lines from File2 already found File1

linux,text,awk,sed,grep
Using linux commandline, i need to output the lines from text file2 that are already found in file1. File1: C A G E B D H F File2: N I H J K M D L A Output: A D H Thanks!...

Python - Select specific value from test file

python,file,text
I'm absolute beginner in python, and I'd like to get field i.e. from 2nd column, 3rd row from text file like this: 176a AUGCACGUACGUA ACGUA AGUCU 156b GACUACAUGCAUG GCAUA AGCUA 172e AGCUCAGCUAGGC CGAGA CGACU (text is separated by spaces). is there any simple way to do that?...

How can I wrap text in QGraphicsItem?

qt,text,word-wrap,qgraphicsitem
1) How can I wrap text in a QGraphicsTextItem to fit a fixed rectangle, with width and height ? Right now I am experimenting with creating a text, getting its bounding rectangle, and resizing it to fit the box - but I can't get wrapping. class TTT: public QGraphicsTextItem {...

importing specific information of a text file into a matrix

matlab,text,matrix
I do appreciate your helps! Thanks in advance! I have a huge text file in the following format: ********************************* timestep 455 No_Specs 3 H2 49 H2O2 1 O2 49 ********************************* timestep 460 No_Specs 3 H2O 49 H2O2 1 O2 49 ********************************* timestep 465 No_Specs 2 H2 50 O2 50 *********************************...

Reading text file and dealing with numbers

matlab,for-loop,text,binary
I'm attempting to count the number of letters in a text file, but unfortunately I keep getting stuck if numbers are involved. So far I have been able to deal with letters and symbols, but unfortunately the ischar function doesn't help me when it comes to numbers. function ok =...

SQL Server - Join Table1 to Table2 ON substring(T1.Field) = T2.ID

sql-server,text,substring,inner-join,patindex
I have two tables: MyOrders and MyDrivers. In table MyOrders, I have a column called Details (datatype TEXT - I know, but I didn't build the database...) In MyOrders.Details, there are sometimes comma-separated lists of numerical values which correspond to the ID values of table MyDrivers. The goal is to...

Python outputs a .txt file, which's format differs depending on the text editor I use to open it

python,text,output
So I have some python code taht outputs some data to a .txt file like this: f3 = codecs.open(r'C:\Users\dimrizo\Desktop\PythonData\GTFS\routes.txt','w+',"UTF-8") f3.write('route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color\n') f3.write('blah,blah,blah,blah,blah,blah,blah,blah,blah\n') Problem is that if I open the produced file with the simple windows text editor the text is not properly formatted. The "\n" don't even count. If I open...

Javascript show / hide on click multi ID

javascript,text,show-hide
Im work with this script : I want to show/hide text on click, with a single id it works great ( add a fade animation will be great ) but I'm not able to add another ID .. someone could help me ?! THANKS function showHide(shID) { if (document.getElementById(shID)) {...

Input boxes not lining up

html,css,text,input,form-submit
I'm new to HTML and last time I've been editing my code I found that my input boxes don't align perfectly. I want them to be just in line on right. Here is the code: input { margin: auto; padding: 25px; font: normal 15px Verdana, Tahoma, sans-serif; width: 100%; border-left:...

Restricting access to some lines in JTextArea?

java,text,jtextarea
I wanted to make a JTextArea where the user can't erase the previous line. Just like the Command Prompt in Windows and the terminal in Linux, you can't edit previous lines. This is what I've come up with, but it doesn't seem to work, and I can only come up...

jQuery Make Text Change Before It's Noticeable

javascript,jquery,html,dom,text
I'm using the following code to make a text change on a website: jQuery(document).ready(function() { jQuery('div#sidebar ul.side-nav li.current_page_item a').text('Request a Quote'); }); The problem is, the change is done until AFTER the webpage has finished loading, so the user actually gets to see what was the original text before the...

Canvas draw text verticaly

java,android,text,android-canvas,draw
So, I have put everything I need how i need to be, my bitmaps, backgorunds and everything, what I need is to draw text that will be vertically shown. Here is my code for now: private void drawTables(Canvas canvas) { for (Table table : mTablesList) { float x = mWidht...

Replace bigrams based on their frequency in Scala and Spark

scala,text,apache-spark
I want to replace all bigrams which their frequency count is greater than a threshold with this pattern (word1.concat("-").concat(word2)), and i've tried: import org.apache.spark.{SparkConf, SparkContext} object replace { def main(args: Array[String]): Unit = { val conf = new SparkConf() .setMaster("local") .setAppName("replace") val sc = new SparkContext(conf) val rdd = sc.textFile("data/ddd.txt")...

how can I add text to these rectangles?

python,text,menu,pygame,python-3.4
This is the code I have started to use to make a start menu. # we need some colours!! black = (0,0,0) white = (255,255,200) red = (200,0,0) green = (0, 200, 0) bright_red = (255, 0 ,0) bright_green = (0, 255, 0) bright_white = (255, 255, 255) def main():...

How do I get an xml node text?

c#,xml,text,value
I have an xml file with nodes containing codes that I need to get into a string, if the suffix selected matches the one in the xml. This is how my xml looks like: <ntcode NTCODE="BTM"> "2","724,02F,FFFFFFFF,FFFFFFFF,FF","724,03F,FFFFFFFF,FFFFFFFF,FF" </ntcode> <ntcode NTCODE="CLR"> "1","724,05F,FFFFFFFF,FFFFFFFF,FF" </ntcode> And this is the code I'm using: XmlDocument...

Replace text between two special characters

regex,r,text,replace
I have a character vector as: x<- "\t\t<taxon id=\"TOT_F50\"/>" and y<- "TOT_A01" and I want replace TOT_F50 with the text in y ("TOT_A01"). Do you know how to replace the text between " and \ (i.e. "TOT_F50) ? ...

Reference a Text File with relative path in Java with the IntelliJ IDEA

java,text,relative-path
I have a program that reads numbers from a .txt file. My problem is where to place this file, or how to reference it with a relative path to make this file accessible without using the absolute path.

How to change content of unity text?

user-interface,text,unity3d
I create an application on unity3d. I use Unity 5.0.2f1 (64-bit). I create a new project and add an empty gameobject. I click gameobject and add a gui text from inspector. My gui text is below : I want to change the contenf of this text at each frame. I...

Powershell Reading text file

powershell,text,text-files
I'm just wondering if it's possible to read the content of text file with specific index? What I mean is like this, for example: I have text file like this, 'test1.txt' 12345678900 ## ## readthistext 54321123440 ## ## hellothistext I just want to read the content of text file after...

Align rows in text file with command line

text,command-line
I have data in a text file where data rows are repeated after several columns and each new block shares the first column of row labels. I'd like to use the command line to get align the rows into a single table. The data text file looks like: Values SampleA...

Unable to modify variables from separate thread

c#,multithreading,winforms,text,file-io
So I'm making a C# app which has to continuously read and display the contents of a text file, while allowing the user to enter something into a text box and append it to the end of that very file. I'm doing this by running my read method on a...

Can I put StreamReaders in a list? Or any other way to read a lot of text files at once?

c#,list,text,streamreader
I have a lot of text files and want to read them all by once, how do I do this? This is my code till now: List<StreamReader> lijst = new List<StreamReader>(); using (StreamReader qwe = new StreamReader("C:\\123.txt")) using (StreamReader qwer = new StreamReader("C:\\1234.txt")) lijst.Add(qwe); lijst.Add(qwer); But I get an ObjectDisposedException(Cannot...

Extract & combine multiple substrings using multiple patterns from some but not all strings contained in list & return to list in R

regex,r,string,text,plyr
I'd like to find an elegant and easily manipulable way to: extract multiple substrings from some, but not all, strings that are contained as elements of a list (each list element consists of just one long string) replace the respective original long string with these multiple substrings collapse the substrings...

Trying to get just the text from a node with filter(), but is returning an object?

javascript,jquery,dom,text
I am simply trying to extract the text without any of the elements from a DOM node with var textIWant = $('.classname').contents().filter(function(){ return this.nodeType === 3; })[1]; This returns to me what looks like a string in the console, something untrimmed like.. " text I want " so when I...

Advancing text in a text file using user input

java,text,user-input
So in my first year of college for my christmas project I needed to make a basic game using if statements, I chose a text adventure but me being a novice I chose to write out every print out: System.out.println("You approach the two cupboards one on the right and one...

Keyboard Keys to Paste Text with AutoHotKey

text,keyboard,autohotkey,paste
I am using AutoHotKey software to change the use of some buttons. It helps a lot especially if you want to open programs without having to find the shortcuts and click on them. All I want now is to save a specific text (with paragraphs) in some F keys. For...

The variable 'buff' is being used without being defined

c,arrays,text,runtime
I need to read some data from text file and store it in 2D-array. This code works good: #include <string.h> #include <stdio.h> int main() { FILE *f = fopen("Read.txt", "r"); char buff[100][100]; char str[100]; int i = 0; while(fgets(str, 100, f)) { strcpy(buff[i], str); i++; } return 0; } But...

Display Popup when text is clicked in wordpress

wordpress,text,popup,wordpress-plugin
I have a Html code In wordpress.: '<a href="">example</a>' When this "example" is clicked, it needs to show a popup window with some texts. i came across some wordpress popup plugins like uji popup,etc.. they given some short codes. how can i use this shortcodes into my "href". or any...

Python multiple pairs replace in txt file

python,text,substitution
I've got 2 .txt files, the first one is organized like this: 1:NAME1 2:NAME2 3:NAME3 ... and the second one like this: 1 1 1 2 2 2 3 What I want to do is to substitute every line in .txt 2 according to pairs in .txt 1, like this:...

Making 3 columns of text aligned at the same height or line all the time even while re sizing window

html,css,text,alignment,height
CSS: I want to make 3 columns of text aligned at the same height or line all the time even when I resize the window. To illustrate what I am talking about please take a look at the images by following this link: https://drive.google.com/file/d/0BywbaHflqMTERFVrNF84YlBUbTg/view?usp=sharing The problem is that the third...

Rails. Why does my submit button say Create vs. Update depending on

ruby-on-rails,button,text,submit
Be gentle to the newbie...... Ruby version 2.2.2p95, Rails version 4.2.1. I completed the sample blog application. Works great, and I've been expanding on it. But I'm a noob, and clearly missing something fundamental. From the main index, you are presented with a listing of articles, and you have some...

x axis text overlapping in matlab

matlab,text,overlap
My x axis text are overlapping. I am using this code-- clear all A=[1 2 3 4 5 6 7]'; b=1:length(A); figure(1) bar(A) title('Loss Diagram') xlabel('Loss factor') ylabel('kWh/year','fontsiz`enter code here`e',20) grid on set(gca,'Xtick',b,'XtickLabel',{'Horizntl Global Irr. ' 'Effective irr. on coll. ' 'Array nominal energy ' 'PV module loss ' 'charge...

Does “Text” in the HTML5 syntax mean “any character”?

html,html5,text,syntax
I wasn't able to find any restrictions what characters are allowed in Text does this imply that erverthing is allowed or are there restrictions that affect HTML documents in general? For example the Character Reference Section states that: The numeric character reference forms [...] are allowed to reference any Unicode...

JQuery add a whitespace to each new text node to prevent clumping on extraction

jquery,text,whitespace
What I do is I want to transform <div id=master> Blah <span id=crap>Blah1</span> <div id=crap2>Blah2</div> <b>Blah3</b> </div> to <div id=master> Blah <span id=crap> Blah1 </span> <div id=crap2> Blah2 </div> <b> Blah3 </b> </div> because when I extract all the text from all elements inside master it becomes looking like this...

Reading text file in java using scanner

java,file,text,java.util.scanner
I am a beginner. Reading from text file in Java using a scanner. This code just to read the first 3 tokens isn't working: try{ Scanner scFile = new Scanner (new File ("readhere.txt")).useDelimiter("#"); String first = scFile.next(); String second = scFile.next(); int third = scFile.nextInt(); // error here. Why cant...

Apple Script : Cleaning textedit text

text,applescript,textedit
I want to clear some text from a textedit text but its only half working for me tell application "TextEdit" set documentText to text of document 1 set {oldTID, my text item delimiters} to {my text item delimiters, "Administration"} set textBits to text items of documentText set my text item...

How to get specific rows in a txt file in PHP?

php,sql,text
Here is my problem, I am trying to make a script that create a new table in a database for each new txt file I get. This part is ok but then I want to get some specific rows or words in the txt file to update the table. Here...

search string in textfile [on hold]

c++,c,string,text
Say you have a text file like this all you want from the text is the "size value" but repeats more that thousand time with different value "field_pic_flag : 0 bottom_field_flag : 0 idr_pic_id : 0 Found NAL at offset ,size 28813 !! Found NAL" "field_pic_flag : 0 bottom_field_flag :...

Parsing html using Selenium - class name contains spaces

python,html,parsing,selenium,text
I'm trying to parse some html using Selenium. The problem is that it raises error in case the class name contains spaces. Here is the tag I'm searching for: <p class="p0 ng-binding">text</p> I've tried these two options: result.find_element_by_class_name('departure').find_element_by_css_selector('p.p0 ng-binding').text result.find_element_by_class_name('departure').find_element_by_class_name('p0 ng-binding').text >>> selenium.common.exceptions.InvalidSelectorException: Message: The given selector p0 ng-binding is...

Batch - Comparing two txt files

windows,batch-file,text,comparison
I have some difficulties comparing two txt files with batch. I used the "findstr" function with many option matchings but none works (for example FINDSTR /I /V /B /G:file1.txt file2.txt). I have a first txt file as following: File1.txt Object 1 Argument 50 Object 2 Argument 10 Object 3 Argument...

OutOfMemory exception thrown while writing large text file

c#,text,out-of-memory,file-writing
I want to generate a string and then write it in to a .txt file. The problem is I get OutOfMemory exceptions when I attempt to do so. The file is large (about 10000 lines). I use String.Format and loops to create the string. How can I write this to...

Text justification C language

c,text,alignment
I have to solve a problem that involves left justification string length and leading zeros. I have the following table : BEGIN CLOSE CONCATENATE DELETE END INITIALIZE PRINT WRITE This is produced by a simple program. My problem is to find out how to convert it like that : It...

How to display text in browsers tab bar in a javaserver page [closed]

html,jsp,browser,text,tabs
I have heard of being able to display images in a browsers tab bar here: http://stackoverflow.com/questions/120420/image-icon-beside-the-site-url But I was wondering if there might be an easier way to do this for just some simple text? I am trying to display just two lines, last login and IP address in this...

resize/scale text dynamically in andengine

android,text,andengine
I created a simple game where move the objects from one place to another and each moves increment count of moves in score table. After all objects are moved correct I want set opacity to screen and slowly resizing score from initial size(e.g. 15px) to whole screen(e.g. 50px). I load...

Changing a read-only file [on hold]

python,text
I need to change text documents. The way I've been doing it is making a new file, copying everything line by line from the old file and making changes on the way, then saving the new file as the old file's name. This becomes a problem when I only have...

DirectWrite align text center

c++,text,directx,direct2d,directwrite
I am trying to align center the text I have to draw. I use ID2D1RenderTarget::DrawTextLayout method. The problemn is that if I set the text horizontal alignment to DWRITE_TEXT_ALIGNMENT_LEADING (the default value) the text is drawn proberly, but if I change this value to DWRITE_TEXT_ALIGNMENT_CENTER the text is shifted right....

How to provide default font height or content when

or has no characters?

javascript,html,css,text,height
This started with one question similar to this one in here: HTML <p> and <span> questions . And ended with 3... I want to understand why the following happen. Starting with this example: A <p> element without any special CSS rule on it has no text when the page is...

Is it possible to change ONE line in a txt file WITHOUT reading and writing the whole file (Java)?

java,file,text,replace,line
Say I have a text file: I love bananas. <age> 23 </age> years old. I like beaches. All I want to do is open said file and change the age to 24 or 25. Any way to do that in Java WITHOUT reading a writing the whole file? I know...

Get string (file name) of a given extension from within a text file

c#,string,file,text
I apologize if the question title is a little confusing, but let's say a text file contains the following data: Sample 'Line1 1 'Line2 2 'ProjectCount FileA.ext 'Projects( 1) 0 'SortTermCount FileB.ext 'Projects( 2) 0 'SortTermCount ... I know the extension name that exists as a string within the file...

Python: iteration problems

python,text,iteration
I am performing text processing on a text file and have been trying to iterate into a for loop. fields = [1, 2, 3, 4, 5] i = 0 with open('file path', 'r') as f: for line in f: # while i is smaller than the number of fields (=5)...

How do I make the text of one label node take up 2 lines?

xcode,string,swift,text,sklabelnode
I have this text below that is too long to fit on the screen when it runs. How can I make this 2 lines rather than one? myLabel.text = "The weather today is going to be partly cloudy with a chance of rain" ...

Corona sdk not view random text

text,random,lua,corona
I'm have a problem because when I touch my button sometimes my text doe not appear and I do not understand what is wrong. Code: function randomText(event) display.remove(mmDis) local a = {"Cristiano ronaldo jest najlepszy!", "messi jest dobry!","lewandowski jest ok","diego lopez to bramkarz realu"} com = (a[math.random(1,#a)]) local mmDis =...

Add blank line before a certain phrase in a text file in Linux?

linux,text,grep,kali-linux
I'm using Kali Linux, trying to sort out some input from Nmap. Basically, I ran a scan from NMap, and need to extract specific pieces of information from it. I've got it to show everything I need using the following command: cat discovery.txt | grep 'Nmap scan report for\|Service Info:...

Select/mark specific word in SWT Textfield

java,text,widget,swt
I've got an SWT Textfield with some text which is added automatically. Now I want to select a specific phrase in the text automatically, so that the user could replace this without the manual selection. But all I've found in the api is the selectAll() method, which works but selects...

Characters arbitrarily being changed

html,text,character,rendering
I've came across this issue where the browser (Chrome) is sometimes rendering characters as completely different ones, however in inspect element they're written how they should be. You'll see in the images that on the right inspect element shows what it's supposed to be, and on the left shows what...

text show and hide with button php/js

php,jquery,text,hide,show
How can I apply the multiple texts? With a text it works: <dl> <dt> <img class="empfehlung-bild" style="max-width: 300px; height: auto; float: left; margin-right: 15px; margin-bottom: 15px;" src="<?php echo $bild; ?>" /> <h1><?php echo $title; ?></h1> <p> <?php echo $text; ?> </p><br/> <button id="<?php echo $i; ?>" style="float:right;">Details</button><br/><br/> </dt> <dd style="float:left;">...

change the content of a select option

jquery,forms,select,text,options
I'd like to change the text shown in a select form, without changing the HTML elements. This is an example: <select class="myclass" name="myselect"> <option value="0">1</option> <option value="1">2</option> </select> I would like to change the "2" string into "TWO", for example, like: <option value="1">TWO</option> I'm not able to select the right...

Edit Manager activePoint “Y” Position ActionScript3

actionscript-3,flash,text
I'm working with TextFlow and EditManager in AS3 (flashx.textLayout) I want to know how get ActivePosition pointer "Y" position, I know I can get activePosition from EditManager but it's returns character position. I want to count if activePosition out of screen, then scroll down (text is larger and its out...

How do i split text to a different column or remove a text from the original column?

excel,vba,excel-vba,text,split
I've copied a column of data starting from D9 to D-whatever, the copied data have both decimal value and text. The data varies in each cell in column D Example D9 : 1675.87 L/s D10 : 1555.87 L/s D11 : 1635.87 L/s This is my code i tried.. Dim c...

Launch default SMS app without a message

android,android-intent,text,sms,message
I am wanting my app to, on a button click, launch the user's default texting app. The intention is not to have the user send a message, but to view their current text conversations, therefore I don't want it to launch the SMS app's "New Message" activity but instead the...

c++ gives Segmentation Fault from text file of all 0's

c++,text,zero,fault
I'm writing a really simple code (or so I thought) that requires 2 text files to be read in. One is full of a bunch of data points (of type double) and the other one happens to be a bunch of 0's (this is only SOMETIMES filled with 0's, sometimes...

Extract text from large file using RegEx?

c#,regex,text
I have a big file that has a bunch of data in it, but essentially what I would like to do is to grab only parts of it, let me explain what parts I'm interested in: (imagine "x" as an IP Address) (imagine "?" as any alphanumerical character /w any...

jQuery text animation from right to left

jquery,animation,text
I try to achieve the same animation with jQurey animate for social sharing what this site uses in footer when you click on Share. I was trying to build the animation but the list on toggle does not behave as expected. my markup <div id="social-media"> <a href="#" class="social-shares"> SHARE</a> <ul...

how to change text direction to the right slide of switch in android?

android,text,switch-statement
In default mode , text of a Switch sit on the left side of ON/OFF states. i want to change direction of this text to the right slide. how can i do this? I already try this xml code but not working: <Switch android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/switch1" android:layout_gravity:"right" android:layout_margin="@dimen/abc_dropdownitem_text_padding_right" /> ...

Forcing RTL order in a JTextArea

java,text,bidirectional
I am trying to force a JTextArea (and other text components through my application) to allow users to type RTL. This works correctly for input such as Arabic, but I must also be able to set it to apply this to standard text. Therefore, if I type "hello!" it will...

How to read data separated by a ',' in a text file in C [duplicate]

c,file,csv,text,input
This question already has an answer here: Reading CSV from text file in C 4 answers I was wondering how to read data from a text file that has its data separated by a comma; for example line 1 of the text file says: (Name,Integer,Integer). So I tried using...

RichTextbox write in place to current line

c#,text,visual-studio-2013,richtextbox
Clarification: I want to output line of text to the same "position" in a RichTextBox, replacing the previous line. In C# Windows Forms Application trying to use RichTextBox for displaying messages. Most of the messages are appended, so that is fine but at one point in the program it has...

Change Font Color on Overflow

css,text,fonts,colors,overflow
This is where I am trying to accomplish this effect: http://www.smalldot.agency/ccren/goals-page/ As the "val" bar increases in width, it should overlap the "current" text ((which is the same text as "val" but a different color)). I am able to force "current"'s copy on top of the "val" element, but I...

Stop text from leaking out of div [on hold]

html,css,text
I have some text which is contained in a div, however if it's too long, it leaks outside of the div and I don't want that. I dont want to use the overflow attribute and give it a scroll bar. Id like it to put the "..." at the end...

How can I create large ASCII text from a string?

html,text
Given a string, for example 'imgur', how can I generate large ASCII text like the following? Thanks. _ (_) _ _ __ ___ __ _ _ _ _ __ | | '_ ` _ \ / _` | | | | '__| | | | | | | | (_|...

Text showing on two lines with span

html,css,text
Please see below HTML and CSS code. HTML: <a class="navbar-brand" href="/index.php"> <img src="/img/logo.png" alt="logo"></a> <span class="navbar-brand" style="font-family:'Arial';font-size:24pt">WEBSITE NAME</span> CSS: .navbar-brand { width: 88px; height: 88px; } .navbar-brand img { width: 100%; height: auto; } The problem I'm having is that the text in the span (WEBSITE NAME) is showing on...

How to tell Users that a Tooltip lies behind a Text/Textbox/Image, etc.?

windows,user-interface,text,tooltip,user-experience
In my U.I. I have a normal text headline that covers a block of checkboxes but without further information I'm scared of Users not knowing what to do with the window. So my idea was to put a tooltip in the headline to give Users information about the funktion of...

Read lines of a text file into an array

java,android,arrays,file,text
I would like to display a new quote randomly every time someone launch the app.In order to do that I was thinking of using a text file containing all the quotes, one at each line. I would like to know in android studio where should I put my text file...

Make text appear on hover

html,css,text,hover
So I need the text to appear on hover over the image (it doesnt have to be a link if that is too difficult) html <div id="con"> <div id="box1"> <p id="text1"> <a href="url">DESTINATION</a>SS </p> </div> css #con { width:1024px; height:670px; background-color: #161717; } #box1 { float:left; font-size:25px; width:388px; height:477px; background-image:...

How to remove numbers from text in Scala?

regex,scala,text,apache-spark
How to remove numbers form a text in Scala ? for example i have this text: canon 40 22mm lens lock strength plenty orientation 321 . after removing : canon lens lock strength plenty orientation . ...

Wrapper for the matlab to read sparse data file

matlab,sorting,text,awk,libsvm
Libsvm can read the following datafile and convert it into sparse data structure in matlab (using libsvmread). -1 3:1 11:1 14:1 19:1 39:1 42:1 55:1 64:1 67:1 73:1 75:1 76:1 80:1 83:1 -1 3:1 6:1 17:1 27:1 35:1 40:1 57:1 63:1 69:1 73:1 74:1 76:1 81:1 103:1 First column is...

Change ID in File

java,file,text,path,rename
Let's say I have this notepad file name: Company_XXX_768_JGH.txt Contents: Random Text Blah Blah Blah Network ID: 80801568 I need to change the ID last 4 numbers (1568) to (0003). So far I am able to read the whole, find the line with the number AND print a statement for...

To make a particular part of my text clickable

android,redirect,text,clickable
I'm tring to make a particular part of my text clickable. Please see the below image for example: In this image "www.google.com" is placed inside an expandable listview. Can anyone please help me how I can make this text clickable so that it re-directs to its corresponding web page ArrayList<String>...

Win 8 App Get text from datatemplate listview

listview,text,windows-8
I'm trying to learn how to make datatemplate in listviews in my win 8 app I have the following code in my Xaml code <!-- Vertical scrolling item list --> <ListView x:Name="itemListView" Margin="0,4.714,10,0.429" ItemsSource="{Binding Source={StaticResource itemsViewSource}}" SelectionChanged="itemListView_SelectionChanged" Loaded="itemListView_Loaded" Grid.Row="4" Tapped="itemListView_Tapped_1"> <ListView.ItemTemplate> <DataTemplate> <Grid Height="110" Margin="6"> <Grid.ColumnDefinitions>...

How can I map keys in Insert mode that contains Carriage Return in it?

vim,text,insert,editor,vi
How can I map ctrl + enter to go to new line from anywhere in the current line in vim ? I just want to do it for insert mode. I tried :set <C-<CR>> <Esc>o but that doesn't seem to work....

Delete the extra space after special character in all the lines of text file

bash,shell,text,awk,sed
Following data represents 2 lines of text file: 1 2340: 2 1930: 1 1 9: 3 4501: 1 45: 1 5620: 2 I want to delete the space after ":". So the output of above text file should be 1 2340:2 1930:1 1 9:3 4501:1 45:1 5620:2 ...

How can I get common rows that exist in at lest two files or more?

bash,text,text-files
I have seven test files. They look like following File 1 chr start end strand chr1 10525 10525 + chr1 10542 10542 + chr1 10571 10571 + chr1 10577 10577 + chr2 10589 10589 + chr2 565262 565262 + chr2 565397 565397 + chr3 567239 567239 + chr3 567312 567312...

Splitting a text line into separate lines from command line

text,split,command
What are some simple options to split a single text line into separate based on a character or pattern? I would like to do this from the command line. An example would be when you want to inspect the PATH. With a single simple command I'd like to split something...

HTML make your own