Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

Maxim Serenko Beetlejuice www.​life2log.com
  • Need profanity  service

    vesuvius said:
    Beetlejuice said:
    *snip*

    You might have stumbled on a gap in the market, register a web address and expose your dictionary as a web service.

     

    It may well be that this is unpopular because it is processor intensive, i.e. after I type a single word then it needs to be validated, or you can hold off until the person posts, but more information is required as to how you intend to check for rude words, is this a web application or desktop...etc...?

     

    I agree that  mechanism requires hardware resources, but google has a service for spell checking, send texts, receive text ... You can reduce the load by introducing various restrictions

  • Need profanity  service

    Dr Herbie said:
    Beetlejuice said:
    *snip*

    That sounds like a useful service -- if you can't find one, perhaps you should write one and sell it ...

    If you don't,  I might. Smiley

     

    Herbie 

    ok. I've thought about it...

  • Need profanity  service

    W3bbo said:

    You want some web-service or library/API that can identify profanity in arbitrary text?

     

    Uh, that's trivial:

     

    if( string.Contains("fúck") ) throw new ProfanityException("you dun goofed");

    Thanks, but I know how to implement the verification text using dictionaries, but in this case I'm looking ready to work in a network solution as a service or API, such as google translate/

  • Need profanity  service

    Hello program!

    Need advise, I'm looking for service to seek excessive profanity, like http://www.google.com/recaptcha 

     

    Thanks!

  • ASP.NET and iTextSharp (free PDF Generator for .NET)

    hi all,

    in several projects I used solution "wkhtmltopdf".
    First I tried iTextSharp, but it does not work well with converting html file to pdf file, and sometimes happened when displaying Cyrillic.

    "wkhtmltopdf" works fine, but it is an executable file

     

    Peace

  • WPF. Table​Adapter​Manager.​UpdateAll NO WORK when DataSet is changed?

    jh71283 said:
    This has nothing to do with WPF - your table adapter has no update command.


    This usually occurs if you have not set a primary key on that table in the database.

    Create a primary key, then re-create the datatable.
    of course need to create primary key, quite forgotten. I just did not notice that there is no key.

    Thank you, very much

  • WPF. Table​Adapter​Manager.​UpdateAll NO WORK when DataSet is changed?

     

    Hello Pgrogramms! Smiley

    simple example, DataSet - UsersDataSet.xsd, table in DB - Users. In table some fields: id, firstname, lastname, job, etc.

    In the interface some fields for editing and a list of which are filled with data from UsersDataSet.

    When you change the data in the field and try to save, get:

    System.InvalidOperationException: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. at WPF1.UsersDataSetTableAdapters.TableAdapterManager.UpdateAll(UsersDataSet dataSet) in UsersDataSet.Designer.cs:line 1259 at WPF1.Window1.btnSave_Click(Object sender, RoutedEventArgs e) in Window1.xaml.cs:line 82

     

    <ListBox ItemsSource="{Binding Path={}}" IsSynchronizedWithCurrentItem="True">

       <ListBox.ItemTemplate>

          <DataTemplate>

             <StackPanel Orientation="Horizontal">

                <Label Content="{Binding Path=Firstname}"></Label>

                <Label Content="{Binding Path=Lastname}"></Label>

             </StackPanel>

          </DataTemplate>

       </ListBox.ItemTemplate>

    </ListBox>

    <StackPanel>

       <TextBox Height="28" Name="txtUserID" Width="Auto" IsReadOnly="True" Text="{Binding Path=Id, Mode=OneWay}"/>

       <TextBox Height="28" Name="txtFirstName" Width="Auto" Text="{Binding Path=Firstname}"/>

       <TextBox Height="28" Name="txtLastName" Width="Auto" Text="{Binding Path=Lastname}"/>

    </StackPanel>

    <Button Name="btnSave" Width="65" Height="24" Click="btnSave_Click">Save</Button>

    *.cs file:

    private UsersDataSetTableAdapters.UsersTableAdapter taUsers = new UsersDataSetTableAdapters.UsersTableAdapter();

    private UsersDataSet dsUsers = new UsersDataSet();

    private UsersDataSetTableAdapters.TableAdapterManager taManager = new UsersDataSetTableAdapters.TableAdapterManager();

    private CollectionView View;

    private void Window_Loaded(object sender, RoutedEventArgs e)

    {

    taUsers.Fill(dsUsers.Users);

    taManager.UsersTableAdapter = taUsers;

    DataContext = from user in dsUsers.Users orderby user.Lastname select user; // ну или так DataContext = dsUsers.Users;

    this.View = (CollectionView)(CollectionViewSource.GetDefaultView(this.dsUsers.Users));

    }

    private void btnSave_Click(object sender, RoutedEventArgs e)

    {

       try  {   if (dsUsers.HasChanges()) { if ((taManager.UpdateAll(dsUsers) > 0)) { MessageBox.Show("Saved."); }  }   }

       catch (Exception ex) { MessageBox.Show(ex.ToString()); }

    }

  • Vista not showing 4 GB installed memory. Solution ​>>>​;>

    sometimes its help:

    Start -> cmd - Run as administrator
    BCDEdit /set PAE forceenable


    but it`s not help for me, because i use 6Gb (2*2Gb, 2*1Gb)

  • Cellular Emulator (WM 6 SDK) ERROR!!!

    Hello Programms!

    When i run Cellular Emulator (Windows Mobile 6 SDK) the error happened: "Cellular Emulator: There are not seven pairs of XPVCOM in system".  What is that...?

    I run it on Windows XP 64bit SP2. (and Visual Studio Pro 2008)

    "BADA" Thanks!

    P.S.: maybe problem in 64bit?

  • How to play quick time files in windows mobile?

        Hello Programms!

    How to play quick time (mov) files in windows mobile 6?

    Thanks!