Hello there,
Is it possible to draw a scalable openGL generated text in maya viewport
using maya api, I tried to use the function 'drawText' in M3DView class but it
wont draw a scalable text, the result seems to be like a maya annotation texts
also it does not response to other openGL functions except glColor. I want
to scale the g...
Hi All,
I am new to Win Forms, I have a scenario here..
When User enter ID in a textbox, I want to check that value in database and get the name for that ID before submitting the Submit Button.
In webforms it can be done using OnFoucs and OnBlur events but how can I do here before submitting the button.
I am using .NET 1.1
Regards
...
I trying to create an HTML/CSS/JavaScript based list manager.
I'm using text input fields as my individual list items, with the first text input field being:
<input type="text" id="input1" value="Enter your first item" />
I'm using jQuery to create a new text input field if I've used the previous text input field:
<input type="text"...
I have a small script that displays blog posts from a text file, how can I add pagination so that it only shows 5 blog posts at a time?
Here is the script:
<html>
<head>
<title>blog</title>
</head>
<body>
<?php
$mode = 0;
if ($mode == 0) { $opFile = "blogfile.txt"; }
$fp = fopen($opFile,"r") or die("Error Reading File");
...
I am using sIFR3-r436. I want to strikethrough or line-through some text. I have tried both <s>HTML</s> and CSS: text-decoration:line-through but it won't work.
Here's my code.
css: ['.sIFR-root { font-size:28px;
line-height:36px; font-weight:bold;
color:#130f0e; text-align:center;
leading: 0; margin:0px; padding:0;
}','strong
{text-de...
Is there some kind of simple database system that uses simple text or xml files for data storage? I just need some basic functionality like update,delete, insert, simple constraints and relations.
For the project that I have now using SQL Server would be too heavyweight and I have never really liked it anyway.
...
I have following text file:
37 44 60
67 15 94
45 02 44
How to read all numbers from this file and save them into two-dimensional array, using LINQ? All I manged to do was creating a simple array with all first values in each row. Is using LINQ in this case a good idea or should I simply load the file normal way and parse it?
...
I need to display the following using WPF databinding (the values change). Headers must be bold, the info lines are normal text. If info for a given header does not exist, I want to collapse that section, including the header. I prefer all the data (header and info items) be in one formatted string that can line break where I want.
Hea...
Good morning -
I'm interested in seeing an efficient way of parsing the values of an heirarchical text file (i.e., one that has a Title => Multiple Headings => Multiple Subheadings => Multiple Keys => Multiple Values) into a simple XML document. For the sake of simplicity, the answer would be written using:
Regex (preferrably in PHP)...
What's the best way to embed data fields in text so they are easily retrievable, and don't affect readability (much)?
For instance, I could do something like
"Some instructions here, followed by @firstname:John @lastname:Smith\n", and then write code to parse out the fields. Then I could begin to work out the problems, like embedded...
Does anyone know how to achieve this?
...
I know .net supports base64 encoding of byte arrays. But i thought that i could save even more space if use a higher number of characters. I read somewhere that Unicode supports thousands of different characters so why not use base1024 encoding for example? And if this is possible can you give some guidelines on how to implement it. Tha...
Hi All
I have a Form on my Windows 7 pc and my form has the whole Aero Glass effect on the whole form. And I'm wanting to know if there's a way to draw text on the form that has glow effect, just like the text you see in the title-bars on vista and win7?
Thank you
...
I'm trying to read files and create a hashmap of the contents, but I'm having trouble at the parsing step. An example of the text file is
put 3
returns 3
between
3
pargraphs 1
4
3
#foo 18
****** 2
The word becomes the key and the number is the value. Notice that the spacing is fairly erratic. The word isn't always a word (which does...
If I have an input text with the only thing written of "A" and I want a series of code that will allow me to generate the next ASCII set (B), how would I do so?
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include iostream>
#include fstream>
#include iomanip>
#include string>
using namespace std;
int ...
How can I draw text (with setting font and size) on image and save it as JPEG?
For example
CBitmap bitmap;
bitmap.CreateBitmap(width, height, 1, 32, rgbData);
Here I want to draw some text on bitmap:
CImage image;
image.Attach(bitmap);
image.Save(_T("C:\\test.bmp"), Gdiplus::ImageFormatJPEG);
...
I got a big table with around 10 million records. The table is part of full text index and the data contained in it is recreated daily. Now after recreating the data I rebuild the full text index using SQL:
ALTER FULLTEXT INDEX ON [table1] START FULL POPULATION;
The issue is that the folder containing full text index files size is gro...
Not sure if this is really a programming question, but here goes :-)
I'm playing around with a wordsearch generator and it occurred to me that if I'm actually going to let anyone use it, it would probably be a good idea to make sure that the randomly-generated filler text doesn't contain rude words. Is there a standard list of words out...
Hi,
I have an NSTextView with text & images in it, which is supposed to send both in an e-mail.I know that the message.framework is deprecated,so I came up with the idea to send it via NSTask, since mail is integrated.I came up with the code below, however in the log I get this:
* -[NSCFDictionary setObject:forKey:]: attempt to inse...
whenever i alter the onmousemove or onmouseup attributes of the document, for example:
document.onmousemove = myOnMouseMove;
document.onmouseup = myOnMouseUp;
It prevents me from selecting text in any input type='text' or textarea elements in internet explorer (have tried in ie7 and ie8, fine in firefox). If I remove either of...