• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Monthly Archives: November 2012

JQuery and Ajax Auto Refresh a DIV

28 Wednesday Nov 2012

Posted by Scott in Code Samples

≈ Comments Off on JQuery and Ajax Auto Refresh a DIV

Tags

ajax, javascript

javascript code below, context to follow:

$(document).ready(function () {

    var showPending = function () {
        // add the progress indicator
        $('#Pending').addClass('loading').show();

        $.ajax({
            type: "POST",
            url: "PortalService.asmx/GetSeasonalCounts",
            dataType: "json",
            data: "{ 'option':'" + "pending" + "' }",
            contentType: "application/json; charset=utf-8",
            success: function (msg) {
                // Hide the fake progress indicator graphic.
                $('#Pending').removeClass('loading');
                // Insert the returned HTML into the <div>.
                $('#Pending').empty();
                $('#Pending').html(msg.d);
            }
        });
        window.setInterval(showPending, 1200000)
    }
}

 

 

Advertisement

PieLayer PiePanel Minecraft Server note…

26 Monday Nov 2012

Posted by Scott in Linux / UNIX

≈ Comments Off on PieLayer PiePanel Minecraft Server note…

Tags

PieServ

Regarding my PiePanel Minecraft server that I’m playing with from PieLayer, I noticed that my server was still a 1.3.x and that my updated client wouldn’t connect to it.  I logged in and did the baked-in updates, and restarted the server, to no avail. Got to looking, and it didn’t seem (from the log viewer) that the Minecraft server process was actually restarting, so I did a force stop, used FTP to be sure I had the jar I wanted on the server, and started it back up.

That worked.

Saw on their link for the Twitter a link to their recommended versions.  Linked here for my own future reference.  The Twitter.  Whatever.

https://www.piepanel.com/downloads/binarys/

DataRepeater (VB Power Pack) Tips and Tricks

23 Friday Nov 2012

Posted by Scott in C#, Code Samples

≈ Comments Off on DataRepeater (VB Power Pack) Tips and Tricks

Tags

C#

Values from a control on the selected item — http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.powerpacks.datarepeater.currentitem.aspx

Also, you can’t bind to an object list, but you can create a dataset from an object and bind to that.

Using TX Text Control

20 Tuesday Nov 2012

Posted by Scott in C#, Code Samples

≈ Comments Off on Using TX Text Control

Tags

C#

Trying out the TX Text Control for a project, and wanted to make some notes on loading and saving RTF data.  Here’s what I’ve got so far using String data.

// a is a generic object with a string property named A
private void button2_Click(object sender, EventArgs e)
{
    string data = "";
    textControl1.Save(out data,TXTextControl.StringStreamType.RichTextFormat);
    a.A = data;
}

private void button3_Click(object sender, EventArgs e)
{
    textControl1.Clear();
    textControl1.Load(a.A,TXTextControl.StringStreamType.RichTextFormat);
}

Since I’ll be saving to and loading from a SQLite database, I’ll be trying again with binary data, but this seems to be a good starting point.


					

Oracle group by hour

05 Monday Nov 2012

Posted by Scott in Databases, Oracle

≈ Comments Off on Oracle group by hour

Tags

Oracle

Code:
SELECT TRUNC(datecol, ‘HH24’) FROM mytable
GROUP BY TRUNC(datecol, ‘HH24’);

from http://stackoverflow.com/questions/5111396/sql-group-by-date-hour (I liked this solution better)

Recent Posts

  • Bulk commands to install PHP and MySQL on CentOS 7
  • Four year gap? No, had just been self-hosting for a while
  • winhttpcertcfg.exe Example
  • Configure Tomcat 7 to use HTTPS
  • SCP on Mac (and a tool for Windows)

Archives

  • November 2018
  • October 2018
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012

Categories

  • Apache Tomcat
  • Apache Web Server
  • Application Servers
  • C#
  • CMS
  • Code Samples
  • Databases
  • Development Tools
  • Drupal
  • IIS
  • Java
  • Linux / UNIX
  • MS SQL Server
  • Networking
  • Operating Systems
  • Oracle
  • Uncategorized
  • Video Games
  • Windows
  • WordPress

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • <roughCode/>
    • Already have a WordPress.com account? Log in now.
    • <roughCode/>
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar