Claude Haiku 5.5: the small model just got serious
Anthropic's new Haiku is up to 90% cheaper than Haiku 4.5, gets a 1M context window and adaptive thinking - and brings a few breaking changes worth knowing before you switch.
Articles, code snippets and news worth sharing.
Anthropic's new Haiku is up to 90% cheaper than Haiku 4.5, gets a 1M context window and adaptive thinking - and brings a few breaking changes worth knowing before you switch.
The site is rebuilt around three things - writing, quick snippets and news worth sharing, and a set of small tools.
Build a rotating image banner in SharePoint 2013 by reading a picture library with REST and swapping an img tag every 5 seconds.
A utility function that finds a timer job by name in the current web application and returns its schedule type.
string GetTimerJobStatus(string timerJobName)
{
string schedule = string.Empty;
SPSecurity.RunWithElevatedPrivileges(() =>
{A JavaScript client object model sample that fetches a list item attachment by file name.
var clientContext = SP.ClientContext.get_current();
var list = clientContext.get_web().get_lists().getByTitle("LISTNAME");
var listItem = list.getItemById(ID);
clientContext.load(listItem);
clientContext.load(listItem.get_attachmentFiles().getByFileName("FILENAME"));
clientContext.executeQueryAsync(Function.createDelegate(this, onSuccess), Function.createDelegate(this, onFailure));Install the prerequisites and the SharePoint Online Management Shell, then connect to your tenant.
Read items from a SharePoint 2013 list with the REST API and jQuery, selecting only the fields you need.
var siteUrl = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl;
jQuery.ajax({
url: siteUrl + "/_api/lists/getbytitle('ListTitle')/Items?$select=Title",
type: "GET",
headers: {Update a Business Connectivity Services external lookup field on a list item using SPBusinessDataField and EntityInstanceIdEncoder.
SPBusinessDataField dataField = item.Fields["Field Display Name"] as SPBusinessDataField;
item[dataField.RelatedField] = EntityInstanceIdEncoder.EncodeEntityInstanceId(new object[] { NEWVALUE });
item["Field_x0020_Internal_x0020_Name"] = newCRMNumber;Start a SharePoint 2010 list workflow from server-side code by finding its association by name.
public void StartWorkFlow(string listName, int itemID, string workflowName)
{
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite oSite = new SPSite(SPContext.Current.Site.Url))
{A custom timer job ran once per content database on every cycle. Passing SPJobLockType.Job stops that.
public MyCustomTimerJob(string jobName, SPWebApplication webapp) :
base(jobName, webapp, null, SPJobLockType.Job)
{
this.Title = "My Custom Timer Job";
}A basic PHP example that connects to MySQL, inserts a row and closes the connection.
$dbServer = 'localhost';
$dbUserName = 'username';
$dbPassword = 'password';
$connection = mysql_connect($dbServer, $dbUserName, $dbPassword);
if (!$connection) {
die('Connection Failed : ' . mysql_error());Arrow keys do not raise KeyDown in a WinForm because the form swallows them. Override ProcessCmdKey to catch them.
Public Class Form1
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keydata As Keys) As Boolean
If keydata = Keys.Right Then
PictureBox1.Left += 10
End If