I need a library that can extract text from handwritten paper once I scan it. Normal Latin text.
It can be a free solution or even something I have to pay for, as long as it handles handwriting for block letters (not cursive).
I have a table for image gallery with four columns like:
foid | uid | pic1 | pic2 | pic3 | date |
-----------------------------------------------
104 | 5 | 1.jpg | 2.jpg | 3.jpg | 2010-01-01
105 | 14 | 8.jpg | | | 2009-04-08
106 | 48 | x.jpg | y.jpg | | 2010-08-09
Mysql query for the user's galleries looks like:
SELECT * FROM foto WHERE uid = $id order by foid DESC
The thing that I want to do is count the number of images (PIC1, PIC2, PIC3) in every of the listed galleries.
What is the best way for doing that?
Using version 2.5.3 of ExpressionEngine, I have a list of products displayed by category, but I need the premium products among this list being featured with a small star image. How do you call conditionally this little stars besides the {title}?
At the moment this code shows stars for all products and that is not ideal.
<ol class="voices-list">
{exp:channel:entries channel="product" orderby="title" sort="asc" category="2&6" dynamic="no"}
<li><a href="{page_url}">{title}<img class="feature_icon medium" src="{root_url}img/audio/smallstar.png" alt="star"></a></li>
{/exp:channel:entries}
</ol>
I need your help, please.
I'm making a project that will scrap information about a movie and return all sorts of goodies. This will be a .dll that other developers will use in their projects.
For example, if they want to set a pictureBox image to the movies poster, what would be the best way to handle my library returning the image?
//Set the image to The Matrix poster.
pictureBox1.Image = MyLibrary.GetPoster("The Matrix");
Should I return an Image? A Byte[] array?
Hi:
I have three tables: Suppliers, Parts and Types. I need to join all of them while discriminating columns with the same name (say, "id") in the three tables. I would like to successfully run this query:
CREATE VIEW Everything AS
SELECT Suppliers.name as supplier, Parts.id, Parts.description, Types.typedesc as type
FROM Suppliers JOIN (Parts JOIN Types ON Parts.type_id = Types.id)
ON Suppliers.id = Parts.supplier_id;
My DBMS (sqlite) complains that "there is not such a column (Parts.id)". I guess it forgets table names once the JOIN is done but then how can I refer to the column id that belongs to the table Parts?
Here's my test code:
String foo = new String();
System.out.println(foo);
The output is blank and a new line is written. Since I'm new to Java, I don't know whether it made a " " string, or nulls are handled as blank lines.
I'm making a simple chat program for me and my friends as a tech demo. I had the idea to have a small drawing pad thing that would be shared between all connected users.
What could I use in this situation (control wise)?
I know I can convert an image to a byte[] and pass that to everyone, but I'd need to use a pictureBox to get said image.
Thanks for the help!
HTML:
<div class="someclass" rel="first">text 1</div>
<div class="someclass" rel="second">text 2</div></div></div>
<div class="info_ly">here is some text</div>
<div class="first" > the first DIV </div>
<div class="second" > the second DIV </div>
CSS:
.first{ display:none}
.second{ display:none}
Jquery:
$(".someclass").click(function() {
$(".info_ly").html($(this).attr('rel'));
});
I want to call and load the "rel" DIV inside "info_ly" DIV.
With this Jquery code I get only text "first" or "second" inside "info_ly" DIV.
How can I load the DIV with the class "first" or DIV with the class "second" inside "info_ly" DIV?
In the following code:
public class MovieRepository : IMovieRepository
{
private readonly IHtmlDownloader _downloader;
public MovieRepository(IHtmlDownloader downloader)
{
_downloader = downloader;
}
public Movie FindMovieById(string id)
{
var idUri = ...build URI...;
var html = _downloader.DownloadHtml(idUri);
return ...parse ID HTML...;
}
public Movie FindMovieByTitle(string title)
{
var titleUri = ...build URI...;
var html = _downloader.DownloadHtml(titleUri);
return ...parse title HTML...;
}
}
I asked for something to review my code, and someone suggested this approach. My question is why is the IHtmlDownloader variable readonly?
Hi, I have a user with it's roles, it's an entitycollection. I have a ListBox that has all possible roles, and I have them like checkboxes, but I want to bind the IsChecked property of each one to check if the user has the role.
Something like IsChecked={Binding Roles.Contains}
This might seem a bit weird, but since I am new in RoR and cannot find any similar questions I thought you might know. The situation is that JavaScript does not work throughout my whole site.
For instance. For the sake of checking, I place a link with an alert function in the footer. It did not work at the beginning, it felt like the JS was disabled(but it wasn't). But eventually it worked.
Now it works in most the pages but it does not work in one that there is also an 'autocomplete' field. Of course, this autocomplete field does not work either.
That could lead you to think that there is something wrong with the autocomplete code. However this same code is working in the sidebar.
Any ideas why?
Could it have anything to do with the fact that one day my assets folder appeared empty? After installing the gmaps4rails gem I realized that all my Js and CSS files were gone from my assests folder. Ok, it might have happened long before and I just realized at that point. I don't really know.
Here in the root you can see that the 'Hola sip' click at the button works. here it works
However, here same link does not trigger the alert function.
here it doesn't
For example, imagine that I want to see if a user exists in my database:
Select * from Users where inputID = Users.ID
Then if that result brought 0 items, then the user exists, correct?
How can I do something like this using a pure Linq-to-SQL class?
public static void ejemplosString(String palabra){
char[] letras = palabra.toCharArray();
int contadorVocales = 0;
for (int i = 0; i < letras.length; i++) {
if (char[i] == 'a') {
contadorVocales++;
}
if (char[i] == "e") {
contadorVocales++;
}
if (char[i] == "i") {
contadorVocales++;
}
if (char[i] == "o") {
contadorVocales++;
}
if (char[i] == "u") {
contadorVocales++;
}
}
}
Getting the error on every If statement. Any guidance?
I need to make a small database in MySQL that has two tables.
Clothes and ClotheType
Clothes has: ID, Name, Color, Brand, Price, ClotheTypeID
ClotheType has: ID, Description
In Microsoft SQL it would be:
create table Clothes(
id int,
primary key(id),
name varchar(200),
color varchar(200),
brand varchar(200),
price varchar(200),
clothetypeid int,
foreign key clothetypeid references ClotheType(id)
)
I need this in MySQL.
Codeplex gave me the relevant information for proper connection, and I connected to my repository using the Team Connect to Team Foundation Sever in VS 2010 Ultimate.
Here is what I see:
How can I push the code I have made on my machine, to the repository on CodePlex?
If the doctype declaration is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> what is the best way for horizontal alignment of the DIV's like these:
<div id="outer"><div id="inner">Some text</div></div>
The CSS is:
#outer{ border-top:1px dotted #999; background-color: #F4F4F4; width:100%;}
#inner{ width:500px;border:1px solid #F00; margin:auto;}
The thing that I want to do is the inner DIV align at center (horizontally) inside the outer DIV. This CSS working fine if the doctype declaration is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I have this, and it works:
# E. Given two lists sorted in increasing order, create and return a merged
# list of all the elements in sorted order. You may modify the passed in lists.
# Ideally, the solution should work in "linear" time, making a single
# pass of both lists.
def linear_merge(list1, list2):
finalList = []
for item in list1:
finalList.append(item)
for item in list2:
finalList.append(item)
finalList.sort()
return finalList
# +++your code here+++
return
But, I'd really like to learn this stuff well. :) What does 'linear' time mean?
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
class MainPage(webapp.RequestHandler):
def get(self):
user = users.get_current_user()
if user:
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, ' + user.nickname())
else:
self.redirect(users.create_login_url(self.request.uri))
application = webapp.WSGIApplication(
[('/', MainPage)],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()
I don't understand how this line works:
if user:
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, ' + user.nickname())
else:
self.redirect(users.create_login_url(self.request.uri))
I'm guessing the users.get_current_user() return a boolean? Then, if that is the case how can it get a .nickname() method?
Thanks for the guidance.