Sunday, January 23, 2011

ubuntu: server management GUI tools like ebox?

i wonder if there are some GUI management tools for ubuntu to be used to manage all server tasks.

eg. installing server applications, managing them, editing their conf files and so on.

i saw ebox and i thought it was something i need.

  • Have a look at webmin. This is not only for Ubuntu but works like the ebox web interface.

    ajsie : looks very promising. but if i want to edit a certain service's config files directly, could i do this with webmin's web interface or do i have to use vim/vi in ssh in the traditional way? cause i still want to have the flexibility to add more precise rules.
    David Harrison : This will depend on the Webmin module. In many cases the module itself gives you an opportunity to provide custom settings, or respects any customs changes you make (via vim/vi). However if you are going to make custom changes you need to test this, as some modules will blow away custom configuration settings.
    From Fu86
  • Webmin provides a "webish" interface, but it also has a SSH module, which in turn launches a Java app in your browser to connect to the server in question.

  • Depending on your needs, compared to Webmin you may find eBox is a better fit for what you want to do. The nice thing about eBox is that it takes a more abstract approach and handles the configuration of multiple services at the same time. In contrast Webmin is service specific, so if you have a task that touches on two or three services it can be time consuming to perform.

    It also depends on what services you want to configure. eBox covers the main bases, but when it comes to flexibility and extensibility Webmin wins hands down.

    Another factor is how much you want to learn about each service. eBox abstracts the complexity away from you so that you do not need to understand the nuts and bolts. In contrast the majority of Webmin's modules are simply providing a GUI editor for configuration files. As a consequence you need to have a good understanding of the underlying services if you wish to achieve anything meaningful with Webmin.

    Finally, you may want to install my Webmin theme: http://www.stress-free.co.nz/webmin-theme

    It tidies up the UI and adds a module search box which will help you get started if you choose to take the Webmin route. Whilst I've spent quite a bit of time putting the theme together, I've found that a combination of command line, Webmin and eBox works best depending on the situation.

Friday, January 21, 2011

Adding Items Using DataBinding from TreeView to ListBox WPF

Hi,

I want to add the selected item from the TreeView to the ListBox control using DataBinding (If it can work with Databinding).

 <TreeView HorizontalAlignment="Left" Margin="30,32,0,83" Name="treeView1" Width="133" >



      </TreeView>
      <ListBox  Margin="208,36,93,0" Name="listBox1" Height="196" VerticalAlignment="Top">       


      </ListBox>

TreeView is populated from the code behind page with some dummy data.

  • I'm pretty sure it is possible, since WPF is really flexible with data binding, but I haven't done that specific scenario yet.

    I've been following a WPF Databinding FAQ from the MSDN blogs as of late and it provides a lot of insights that might help.

    From Dillie-O
  • You can bind to an element using ElementName, so if you wanted to bind the selected tree item to the ItemsSource of a ListBox:

    ItemsSource="{Binding SelectedItem, ElementName=treeView1}"
    
    From Dylan

Ajax XMLHttpRequest object limit

Is there a security limit to the number of Ajax XMLHttpRequest objects you can create on a single page? If so, does this vary from one browser to another?

  • I don't think so, but there's a limit of two simultaneous HTTP connections per domain per client (you can override this in Firefox, but practically no one does so).

    Marcel Korpel : Nowadays, this limit is higher, e.g. on my current Firefox (3.6.3/Linux) the default number of simultaneous HTTP connections is 6. You can test it with [this little test case](http://www.spasche.net/files/parallel_connections/).
    From Kevin
  • Yes, as Kevin says, HTTP/1.1 specifications say "A single-user client should not maintain more than 2 connections with any server or proxy."

    From fluteflute
  • I've found it easier to pool and reuse XMLHTTPRequest objects instead of creating new ones...

    Marcel Korpel : Agreed, but that doesn't work if you want to have multiple simultaneous requests.
    From FlySwat

Linq to SQL - Accessing System Databases/Tables?

Right now I have an SSIS package that runs every morning and gives me a report on the number of packages that failed or succeeded from the day before. The information for these packages is contained partly within the sysjobs table (a system table) within the msdb database (a system database) in SQL Server 2005.

When trying to move the package to a C# executable (mostly to gain better formatting over the email that gets sent out), I wasn't able to find a way to create a dbml file that allowed me to access these tables through Linq. I tried to look for any properties that would make these tables visible, but I haven't had much luck.

Does anyone know if this is possible with Linq to SQL?

  • It may not be available in the designer, but why not just add it to the DBML file itself?

    From Danimal
  • If you're in Server Explorer, you can make them visible this way:

    • Create a connection to the server you want.
    • Right-click the server and choose Change View > Object Type.
    • You should now see System Tables and User Tables. You should see sysjobs there, and you can easily drag it onto a .dbml surface.
    jerhinesmith : Perfect. Thanks!
    From Kyralessa

Best tool to monitor network connection bandwidth

I'm looking for a very simple tool to monitor the bandwidth of all my applications. No need for extra features like traffic spying, I'm just interested by bandwidth.

I already know Wireshark (which is great), but what I'm looking for is more something like TcpView (great tool from Sysinternals) with current bandwidth indication.

PS: I'm interested by Windows tools only

  • Try NetLimiter, which is great for that and also allows you to limit bandwidth usage so that you can test your app in reduced bandwidth scenarios.

    Steve Gury : Thanks, after using it for a couple of hours, I can say that's a great soft, definitely!

Could not load type 'XXX.Global'

Migrating a project from ASP.net 1.1 to ASP.net 2.0 and I keep hitting this error.

I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors.

  • There are a few things you can try with this, seems to happen alot and the solution varies for everyone it seems.

    If you are still using the IIS virtual directory make sure its pointed to the correct directory and also check the asp.net version it is set to, make sure it is set to asp.net 2

    Clear out your bin/debug/obj all of them. Do a clean solution and then a Build Solution.

    Check your project file in a text editor and make sure where its looking for the global file is correct, sometimes it doesnt change the directory.

    remove the global from the solution and add it back after saving and closing. make sure all the script tags in the aspx file point to the correct one after.

    You can try running the convert to web application tool, that redoes all of the code and project files.

    Make sure you close VS after you try them.

    Those are some things i know to try. Hope one of them works for you.

    Rob Stevenson-Leggett : Did any of these work for you?
    pete blair : yeah i have used those over time and one of them would usually resolve the issue.
    From pete blair
  • I've found that it happens when the Global.asax.(vb|cs) wasn't converted to a partial class properly.

    Quickest solution is to surround the class name 'Global' with [square brackets] like so (in VB.Net):

    Public Class [Global]
        Inherits System.Web.HttpApplication
        ...
    
  • I had this same problem installing my app to a server. It ended up being the installer project, it wasn't installing all the files needed to run the web app. I tried to figure out where it was broken but in the end I had to revert the project to the previous version to fix it. Hope this helps someone...

    From campo

How do I transfer my Google chrome profile to a new PC?

Now that I have Google Chrome all set up, I got me a new laptop. Does anyone have any idea how to transfer my settings, cookies, favorites, etc? I checked documents and settings\me\application data, and found nothing.

Edit: Hrmm, this isn't really a programming question, is it? Should I delete it?

  • This link should help you out - basically:

    • On XP - C:\Documents and Settings\<User Name>\Local Settings\Application Data\Google\Chrome\User Data
    • On Vista - C:\Users\<User Name>\AppData\Local\Google\Chrome\User Data
    Prakash : you got it! +1 :)
    ConroyP : good timing on this one, have been looking at this myself only this morning!
    From ConroyP
  • Its all there in Local Settings\Application Data\Google\Chrome

    From Prakash