|
What's a "x628c"??
You're saying all of this assuming everyone knows what you're talking about and what you're doing. If you don't describe everything we have no context to give any advise with.
You really need to read the links in my signature.
|
|
|
|
|
when we are using winform to index data through lucene.net then think say 10 same win apps is running in a office and they all index data. if the index segment file is created in every pc then it will be problem or we can create in any centralize pc but problem occur when that pc suddenly being unavailable from network. so i like to know can we store lucene.net index in sql server for centralize access. if possible please guide me. i search lot for storing lucene.net index in sql server but found none. i got a article on java and they i saw it is possible. here is the link http://kalanir.blogspot.in/2008/06/creating-search-index-in-database.html
they said Lucence contains the JdbcDirectory interface for this purpose but i am working with lucene.net & c# so please anyone guide me how make it possible to store lucene index in sql server.
thanks
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: can create in any centralize pc but problem occur when that pc suddenly being unavailable from network. ..you have the same problem with SQL Server. Simply install it on a centralized problem, and make sure it doesn't become unavailable - just as your SQL Server.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
hello
C# sql server column count read & sql server code
|
|
|
|
|
And what exactly is your question?
|
|
|
|
|
Can you please explain it more clearly?
|
|
|
|
|
What is your question?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
To get the count of how many columns are in a particular table in Sql Server, you could use something like:
SELECT COUNT(*) FROM sys.columns WHERE object_id=OBJECT_ID('tablename')
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
You seriously need to click the links in my signature and read them.
|
|
|
|
|
i got a code which talk about locking trick at the time of indexing data with Lucene.net
private static FSDirectory _directoryTemp;
private static FSDirectory _directory
{
get
{
if (_directoryTemp == null) _directoryTemp = FSDirectory.Open(new DirectoryInfo(_luceneDir));
if (IndexWriter.IsLocked(_directoryTemp)) IndexWriter.Unlock(_directoryTemp);
var lockFilePath = Path.Combine(_luceneDir, "write.lock");
if (File.Exists(lockFilePath)) File.Delete(lockFilePath);
return _directoryTemp;
}
}
but the code looks not very good. can anyone tell me why the above code is checking directory is locked or not....when directory gets locked?
see this line of code if (IndexWriter.IsLocked(_directoryTemp)) IndexWriter.Unlock(_directoryTemp); if directory is locked then it unlock it but what will happen if any index writer is indexing data and directory gets unlock then what will happen? looking for best practice. thanks
tbhattacharjee
|
|
|
|
|
You're much more likely to get help around Lucene.Net here[^].
|
|
|
|
|
i apollogized that here i am asking about Lucene.net in c# forum. i need some basic guidance about Lucene.net index technique before working with it.
below way people store or index their data by lucene.
var doc = new Document();
doc.Add(new Field("ID", oData.ID.ToString() , Field.Store.YES, Field.Index.NOT_ANALYZED));
doc.Add(new Field("Title", oData.Title, Field.Store.YES, Field.Index.ANALYZED));
doc.Add(new Field("Description", oData.Description, Field.Store.YES, Field.Index.ANALYZED));
doc.Add(new Field("Url", oData.Url, Field.Store.YES, Field.Index.ANALYZED));
writer.AddDocument(doc);
i like to know what is the meaning of Field.Store.YES, Field.Index.ANALYZED & Field.Index.NOT_ANALYZED
if we say Field.Store.NO then what will happen and when people should writeField.Store.NO. please give a example that when we should not store? if anything is not store in lucene index file then we can pull that data or can not search data by that field.
what is the meaning of Field.Index.ANALYZED and Field.Index.NOT_ANALYZED ? what happen when we say ANALYZED or not ANALYZED ? explain with example what actually lucene does when it encounters ANALYZED or not ANALYZED and Field.Store.NO & Field.Store.YES ?
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: i apollogized that here i am asking about Lucene.net in c# forum If only there was some documentation[^] written about this already.
|
|
|
|
|
Could someone explain to me each line of the following code of what the code does as well as the overall functionality created:
string attempt;
attempt = My_Dialogs.InputBox("Enter your password"); while (attempt != "basic")
{
MessageBox.Show("Wrong! - try again.");
attempt = InputBox("Enter your password"); }
MessageBox.Show("Welcome to the program!");
Thanks
|
|
|
|
|
Indeed I could, but as I already know how this works and you don't, neither of us would really learn anything. What you could do, however, is put a breakpoint in here and play around with some of the inputs to see what effect this has. Ultimately, you're trying to get to the point where you see a MessageBox that states Welcome to the program!, but this is dependent on you entering a password of basic in an input box, so if you put a breakpoint on the first line (F9 in Visual Studio) and run the program under debug mode, you'll be able to see what effect each line has. To step over lines, use F10 (this executes the current line and advances you to the next logical statement).
Good luck.
|
|
|
|
|
Hi All,
I develop a POS windows Application and I use a POS printers with cash drawers,
my question is how to send a command to the printer to open the cash drawer without print the receipt.
Also how to send a command to the printer directly.
Thank you All
|
|
|
|
|
This will depend on how the printer is connected, and to what, and the actual commands required by the device. You need to check the documentation for the printer as a first step.
|
|
|
|
|
Hi,
I Use wintec printer which connected to the PC Using USB Port, and the cash drawer connected to the printer directly.
|
|
|
|
|
As I said before, you need to check the documentation for the printer to see what commands it needs.
|
|
|
|
|
Soooooo you want other people to do your research for you? That's what I'm hearing from you.
|
|
|
|
|
I want to adding another component including timer.tick, progressbar and backroundworker, how do i adding the component to process mailsend and this is the code, thanks:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Mail;
using System.Net;
namespace Mail_Send
{
public partial class Form4 : Form
{
SmtpClient obj_SMTPClient;
MailMessage Obj_MailMsg;
Attachment obj_Attachment;
public Form4()
{
InitializeComponent();
}
private void Form4_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog open = new OpenFileDialog();
if (open.ShowDialog() == DialogResult.OK)
{
label3.Text = open.FileName;
}
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void SendMail_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "" || textBox3.Text == "")
{
MessageBox.Show("please fill, don't let a column blank!!!");
}
else
try
{
obj_SMTPClient = new SmtpClient("smtp.gmail.com");
Obj_MailMsg = new MailMessage();
obj_Attachment = new System.Net.Mail.Attachment(label3.Text);
Obj_MailMsg.From = new MailAddress(textBox1.Text);
Obj_MailMsg.To.Add(textBox3.Text);
Obj_MailMsg.Body = textBox5.Text;
Obj_MailMsg.Attachments.Add(obj_Attachment);
Obj_MailMsg.Subject = textBox4.Text;
SmtpClient smtps = new SmtpClient("smtp.gmail.com", 587);
obj_SMTPClient.Credentials = new NetworkCredential();
obj_SMTPClient.Port = 587;
obj_SMTPClient.Credentials = new System.Net.NetworkCredential(textBox1.Text, textBox2.Text);
obj_SMTPClient.EnableSsl = true;
obj_SMTPClient.Send(Obj_MailMsg);
obj_SMTPClient.EnableSsl = true;
obj_SMTPClient.Send(Obj_MailMsg);
MessageBox.Show("Message Successful sent!!!");
}
catch
{
MessageBox.Show("Sorry, Request TimeOut!!!");
}
}
private void button4_Click(object sender, EventArgs e)
{
}
private void button8_Click(object sender, EventArgs e)
{
foreach (Control sayre in this.Controls)
{
if (sayre is TextBox)
{
(sayre as TextBox).Clear();
}
}
}
private void button6_Click(object sender, EventArgs e)
{
}
private void button5_Click(object sender, EventArgs e)
{
}
private void button4_Click_1(object sender, EventArgs e)
{
foreach (Control sayre in this.Controls)
{
if (sayre is TextBox)
{
(sayre as TextBox).Clear();
}
}
}
}
}
modified 12-Jul-14 21:38pm.
|
|
|
|
|
|
I have a stored procedure that returns two resultset. I am calling this stored procedure in C# using EF 5.0. I have gone through the examples on this site as well as on thissite.
I can understand that it is comparatively easy to call multiple result set with EF 5.0. But I am confused on adding ReturnType on FunctionImport tag which is as below:
<FunctionImport Name="GetAllBlogsAndPosts">
<ReturnType EntitySet="Blogs" Type="Collection(BlogModel.Blog)" />
<ReturnType EntitySet="Posts" Type="Collection(BlogModel.Post)" />
</FunctionImport>
In the above example, Blog and Post are two different entities so can easily be referred. However, in my case, the two resultset is the result of joining of multiple tables. SO how will I specify a specific table name here? (On EntitySet as well as Type). I am not able to understand clearly what value should go into these tags? Please provide any help.
|
|
|
|
|
|
Thank you.
I have already referred this and I mentioned this in my question also. I asked the question because I am not able to understand how to refer multiple tables on FunctionImport and Return Types.
Anyway, I found out already. Thanks for your help.
|
|
|
|