FAQ Database Discussion Community


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...

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 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...

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...

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...

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>...

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:...

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...

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...

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 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 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...

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...

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...

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...

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) ? ...

HTML make your own