logs
stringlengths
104
251k
test.c(8) : warning C4100: 'argv' : unreferenced formal parameter test.c(8) : warning C4100: 'argc' : unreferenced formal parameter
test2.c: In function `main': test2.c:11: warning: initialization from incompatible pointer type test2.c:12: warning: passing arg 1 of `foo' from incompatible pointer type
import junit.framework.TestCase; public class CodeableEnumUtilsTest extends TestCase { public void testWorks() throws Exception { assertEquals(A.ONE, CodeableEnumUtils.getByCode("one", A.class)); assertEquals(null, CodeableEnumUtils.getByCode("blah", A.class)); } enum A implements CodeableEnum { ...
import junit.framework.TestCase; public class CodeableEnumUtilsTest extends TestCase { public void testWorks() throws Exception { assertEquals(A.ONE, CodeableEnumUtils.getByCode("one", A.class)); assertEquals(null, CodeableEnumUtils.getByCode("blah", A.class)); } enum A implements CodeableEnum { ...
public static class EnumUtils { public static T ParseEnum<T>(string value, T defaultValue) where T : struct, IConvertible { if (!typeof(T).IsEnum) throw new ArgumentException("T must be an enumerated type"); if (string.IsNullOrEmpty(value)) return defaultValue; foreach (T item in Enum.G...
Module: C:\BINK\tst.c Group: 'DGROUP' CONST,CONST2,_DATA,_BSS Segment: _TEXT BYTE 00000008 bytes 0000 0c 84 bitmanip_ or al,84H ; set bits 2 and 7 0002 80 f4 02 xor ah,02H ; flip bit 9 of EAX (bit 1 of AH) 0005 24 f7 and ...
Module: C:\BINK\tst.c Group: 'DGROUP' CONST,CONST2,_DATA,_BSS Segment: _TEXT BYTE 00000008 bytes 0000 0c 84 bitmanip_ or al,84H ; set bits 2 and 7 0002 80 f4 02 xor ah,02H ; flip bit 9 of EAX (bit 1 of AH) 0005 24 f7 and ...
internal sealed class GenericTypeThatRequiresAnEnum<T> { static GenericTypeThatRequiresAnEnum() { if (!typeof(T).IsEnum) { throw new ArgumentException("T must be an enumerated type"); } } }
#include <algorithm> #define NDEBUG #define CUT_CHECK_ERROR(errorMessage) do { \ cudaThreadSynchronize(); \ cudaError_t err = cudaGetLastError(); \ if( cudaSuccess != err) { ...
* mtime: time of last modification (ls -l), * ctime: time of last status change (ls -lc) and * atime: time of last access (ls -lu).
* mtime: time of last modification (ls -l), * ctime: time of last status change (ls -lc) and * atime: time of last access (ls -lu).
var isClicked = false; var clickCounter = 100; function fnTrackClick(){ if(isClicked){ clickCounter--; setTimeout(clickCounter * 100, fnTrackClick); } } <input type="button" value="blah" onmousedown="isClicked=true;" onmouseover="fnTrackClick();" onmouseup="isClicked = false;" />
def save_valid_attributes valid? update_atrtibutes attributes.inject({}){|k, v, m| m[k] = v unless errors_on(k.to_sym); m} end
public class ValidatedLogin { public readonly string User; public readonly string Password; public ValidatedLogin(string user, string password) { if (IsInvalidUser(user)) { throw new UserInvalidException(user); } else if (IsInvalidPassword(user, password)) ...
public void UpdateOrder(int id, string name) { FooDataContext db = new FooDataContext(); Order order = db.Orders.Where(o=>o.Id == id).FirstOrDefault(); if (order == null) return; order.Name = name; db.SubmitChanges(); }
public static <T> T concatenate(T a, T b) { if (!a.getClass().isArray() || !b.getClass().isArray()) { throw new IllegalArgumentException(); } Class<?> resCompType; Class<?> aCompType = a.getClass().getComponentType(); Class<?> bCompType = b.getClass().getComponentType(); if (aCompType....
public static <T> T concatenate(T a, T b) { if (!a.getClass().isArray() || !b.getClass().isArray()) { throw new IllegalArgumentException(); } Class<?> resCompType; Class<?> aCompType = a.getClass().getComponentType(); Class<?> bCompType = b.getClass().getComponentType(); if (aCompType....
ikvm-native-win32: [cl] Compiling 2 files to C:\ikvm-0.36.0.11\native\Release'. [cl] jni.c [cl] os.c [cl] C:\ikvm-0.36.0.11\native\os.c(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory ...
protected void Page_Load(object sender, EventArgs e) { PageAsyncTask task = new PageAsyncTask( new BeginEventHandler(BeginAsyncOperation), new EndEventHandler(EndAsyncOperation), new EndEventHandler(TimeoutAsyncOperation), null ); RegisterAsyncTask(task); }
Traceback (most recent call last): File "test.py", line 8, in <module> raise Exception("Good bye cruel world!") Exception: Good bye cruel world! Hello World!
Traceback (most recent call last): File "test.py", line 8, in <module> raise Exception("Good bye cruel world!") Exception: Good bye cruel world! Hello World!
>>> class X: ... pass ... >>> X.bar = 0 >>> x = X() >>> x.bar 0 >>> x.foo Traceback (most recent call last): File "<interactive input>", line 1, in <module> AttributeError: X instance has no attribute 'foo' >>> X.foo = 1 >>> x.foo 1
>>> class X: ... pass ... >>> X.bar = 0 >>> x = X() >>> x.bar 0 >>> x.foo Traceback (most recent call last): File "<interactive input>", line 1, in <module> AttributeError: X instance has no attribute 'foo' >>> X.foo = 1 >>> x.foo 1
import sys import atexit def clear_atexit_excepthook(exctype, value, traceback): atexit._exithandlers[:] = [] sys.__excepthook__(exctype, value, traceback) def helloworld(): print "Hello world!" sys.excepthook = clear_atexit_excepthook atexit.register(helloworld) raise Exception("Good bye cruel world!")
import atexit import os def helloworld(): print "Hello World!" atexit.register(helloworld) try: raise Exception("Good bye cruel world!") except Exception, e: print 'caught unhandled exception', str(e) os._exit(1)
using System; using System.Xml; using System.Security.Permissions; using System.Security.Cryptography; using Microsoft.Web.Services3; using Microsoft.Web.Services3.Security.Tokens; namespace RDI.Server { [SecurityPermissionAttribute(SecurityAction.Demand,Flags = SecurityPermissionFlag.UnmanagedCode)] public class X50...
public class ReturnItemDTO<T> { [DataMember] public bool Success { get; set; } [DataMember] public string ErrorMessage { get; set; } [DataMember] public T Item { get; set; } }
Private Sub Form_Delete(Cancel As Integer) On Error GoTo Proc_Err Me.cboSearch.Requery Exit Sub Proc_Err: MsgBox Err.Number & vbCrLf & vbCrLf & Err.Description Err.Clear End Sub
Private Sub Form_Delete(Cancel As Integer) On Error GoTo Proc_Err Me.cboSearch.Requery Exit Sub Proc_Err: MsgBox Err.Number & vbCrLf & vbCrLf & Err.Description Err.Clear End Sub
import socket def check_ipv6(n): try: socket.inet_pton(socket.AF_INET6, n) return True except socket.error: return False print check_ipv6('::1') # True print check_ipv6('foo') # False print check_ipv6(5) # TypeError exception print check_ipv6(None) # TypeError exception
require 'thread' begin require 'fastthread' rescue LoadError $stderr.puts "Using the ruby-core thread implementation" end class ThreadPool class Worker def initialize(callback) @mutex = Mutex.new @cv = ConditionVariable.new @callback = callback @mutex.synchronize {@running = true} ...
subwcrev . Version.svn.as Version.as IF ERRORLEVEL 1 EXIT /B $ErrLev flash.exe ./build.jsfl IF ERRORLEVEL 1 EXIT /B $ErrLev
subwcrev . Version.svn.as Version.as IF ERRORLEVEL 1 EXIT /B $ErrLev flash.exe ./build.jsfl IF ERRORLEVEL 1 EXIT /B $ErrLev
/* C++ exc handlers */ _set_se_translator SetUnhandledExceptionFilter _set_purecall_handler set_terminate set_unexpected _set_invalid_parameter_handler
/* C++ exc handlers */ _set_se_translator SetUnhandledExceptionFilter _set_purecall_handler set_terminate set_unexpected _set_invalid_parameter_handler
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { log = Logger.getLogger(...); in.defaultReadObject(); }
<bindings> <netMsmqBinding> <binding name="PosionMessageHandling" receiveRetryCount="3" retryCycleDelay="00:05:00" maxRetryCycles="3" receiveErrorHandling="Move" /> </netMsmqBinding> </bindings>
require 'thread' begin require 'fasttread' rescue LoadError $stderr.puts "Using the ruby-core thread implementation" end class ThreadPool class Worker def initialize(thread_queue) @mutex = Mutex.new @cv = ConditionVariable.new @queue = thread_queue @running = true @thread = Thre...
<asp:TextBox id="UsernameTextBox" runat="server"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="UsernameTextBoxRequiredfieldvalidator" ControlToValidate="UsernameTextBox" runat="server" ErrorMessage="This field is required."></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="UsernameTextBoxRegExV...
<asp:TextBox id="UsernameTextBox" runat="server"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="UsernameTextBoxRequiredfieldvalidator" ControlToValidate="UsernameTextBox" runat="server" ErrorMessage="This field is required."></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="UsernameTextBoxRegExV...
ERROR org.hibernate.jdbc.AbstractBatcher - Exception executing batch: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61) at org.hibernate.jdbc.Expecta...
>>> class test(): ... pass ... >>> a_test = test() >>> >>> a_test.__name__ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: test instance has no attribute '__name__' >>> >>> a_test.__class__ <class __main__.test at 0x009EEDE0>
>>> class test(): ... pass ... >>> a_test = test() >>> >>> a_test.__name__ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: test instance has no attribute '__name__' >>> >>> a_test.__class__ <class __main__.test at 0x009EEDE0>
function execute-Sql{ param($server, $db, $sql ) $sqlConnection = new-object System.Data.SqlClient.SqlConnection $sqlConnection.ConnectionString = 'server=' + $server + ';integrated security=TRUE;database=' + $db $sqlConnection.Open() $sqlCommand = new-object System.Data.SqlClient.SqlCommand $s...
TextBox textbox = new TextBox(); textbox.ID = this.ID + "Textbox"; textbox.Text = this.EditableField.TextValue; textbox.TextChanged += new EventHandler(HandleTextboxTextChanged); textbox.Width = new Unit(100, UnitType.Pixel); CalendarExtender calExender = new CalendarExtender(); calExender.PopupButtonID = "Image1"; cal...
SESSION ---------------------------------------------------------------------- !ENTRY org.eclipse.core.launcher 4 0 sep 17, 2008 16:39:00.564 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException: org.eclipse.swt.SWTError: Item...
protected void Application_EndRequest(object sender, EventArgs e) { if (Context.Items["Send401"] != null) { Response.StatusCode = 401; Response.StatusDescription = "Unauthorized"; } }
Internal error: ORA-29400: data cartridge error IMG-00710: unable to write to destination image ORA-01031: insufficient privileges
Internal error: ORA-29400: data cartridge error IMG-00710: unable to write to destination image ORA-01031: insufficient privileges
public void remoteGetCustomerNameNumbers(ArrayList<String> customerNumberList, ArrayList<String> customerNameList) throws java.rmi.RemoteException;
public void remoteGetCustomerNameNumbers(ArrayList<String> customerNumberList, ArrayList<String> customerNameList) throws java.rmi.RemoteException;
logfacility local0 keepalive 2 warntime 10 deadtime 30 initdead 120 ucast eth1 172.20.1.219 auto_failback no node hanfs1 node hanfs2
logfacility local0 keepalive 2 warntime 10 deadtime 30 initdead 120 ucast eth1 172.20.1.219 auto_failback no node hanfs1 node hanfs2
System.Web.HttpException: The current identity (machinename\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
System.Web.HttpException: The current identity (machinename\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
type Microsoft.FSharp.Collections.List<'a> with member list.pluck property = try let prop = typeof<'a>.GetProperty property [for elm in list -> prop.GetValue(elm, [| |])] with e-> [box <| "Error: Property '" + property + "'" + " no...
import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; public class TimeZoneExtracter { public static final void main(String[] args) throws ParseException { DateFormat dbFormatter = new SimpleDateFormat("EEEE, MMMM dd, yyyy hh:mm aa zzzz"); System.out.prin...
<Batch OnError="Continue"> <Method ID="1" Cmd="New"> <Field Name="Title">Abcdef</Field> <Field Name="Project_x0020_code">999050</Field> <Field Name="Status">Open</Field> </Method> </Batch>
<condition property="foo.path" value="C:\Foo\Dir"> <os family="windows"/> </condition> <condition property="foo.path" value="/home/foo/dir"> <os family="unix"/> </condition> <fail unless="foo.path">No foo.path set for this OS!</fail>
<WriteFixedWidth Table="orders" StartAt="1" Output="Return"> <Position Start="1" Length="17" Name="Unique Identifier"/> <Position Start="18" Length="3" Name="Error Flag"/> <Position Start="21" Length="16" Name="Account Number" Justification="right"/> <Position Start="37" Length="8" Name="Member Number"/> <Pos...
JobMaster newJobToCreate = new JobMaster(); newJobToCreate.JobID = 9999 newJobToCreate.ProjectID = "New Project"; this.UpdateJobMaster(newJobToCreate); this.SubmitChanges();
public class IO { public List<string> ReadFile(string path) { FileInfo file = new FileInfo(path); if (!file.Exists) { throw new FileNotFoundException(); } StreamReader reader = file.OpenText(); List<string> text = new List<string>(); while (!reader.EndOfStream...
public ArrayList<String> getCustomerNames() throws java.rmi.RemoteException; public ArrayList<String> getCustomerNumbers() throws java.rmi.RemoteException;
DirectoryEntry deUser = new DirectoryEntry(findMeinAD(tbPNUID.Text)); deUser.InvokeSet("HomeDirectory", tbPFolderVerification.Text); deUser.CommitChanges();
DirectoryEntry deUser = new DirectoryEntry(findMeinAD(tbPNUID.Text)); deUser.InvokeSet("HomeDirectory", tbPFolderVerification.Text); deUser.InvokeSet("HomeDrive", "Z:"); deUser.CommitChanges();
public class Container<E> { public static <E> Container<E> create(Class<E> c) { return new Container<E>(c); } Class<E> c; public Container(Class<E> c) { super(); this.c = c; } public E createInstance() throws InstantiationException, IllegalAcce...
if (Page.IsPostBack) { if (pageIsExpired()){ Response.Redirect("/Some_error_page.htm"); } else { var now = Now; Session("TimeStamp") = now.ToString(); ViewState("TimeStamp") = now.ToString(); } private boolean pageIsExpired() { if (S...
def getValues(category): for parent in document.getElementsByTagName('parent'): if parent.getAttribute('name')==category: return [ el.getAttribute('value') for el in parent.getElementsByTagName('child') ] raise ValueError('parent not found')
<target name="config"> <property name="configFile" value="${environment}.config.xml" /> <if test="${file::exists(configFile)}"> <echo message="Loading ${configFile}..." /> <include buildfile="${configFile}" /> </if> <if test="${not file::exists(configFile) and environment != 'local'}"> ...
input = Read(); parsed = Parse(input); if (parsed.Count > 10) { status = Persist(parsed); ReportSuccess(status); return; } ReportFailure();
br0 Link encap:Ethernet HWaddr 00:1e:c9:3c:59:b8 inet addr:12.34.56.78 Bcast:12.34.56.79 Mask:255.255.255.240 inet6 addr: fe80::21e:c9ff:fe3c:59b8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3359 errors:0 dropped:0 overruns:0 frame:0 TX packets:3025 err...
$* = 1; $/ = ':'; $cmd = $SSCMD . " Dir -I- \"$proj\""; $_ = `$cmd`; # what this next expression does is to merge wrapped lines like: # $/DeviceAuthority/src/com/eclyptic/networkdevicedomain/deviceinterrogator/excep # tion: # into: # $/DeviceAuthority/src/com/eclyptic/networkd...
public class MarshalBase64File implements Marshal { public static Class FILE_CLASS = File.class; public Object readInstance(XmlPullParser parser, String namespace, String name, PropertyInfo expected) throws IOException, XmlPullParserException { return Base64.decode(parser.nextText()); } public void...
import sys tokens= sys.stdin.read().split() try: a= int(token[0]) b= float(token[1]) except ValueError, e: print e # handle the invalid input
import re patterns = [ ('number', re.compile('\d+')), ('*', re.compile(r'\*')), ('/', re.compile(r'\/')), ('+', re.compile(r'\+')), ('-', re.compile(r'\-')), ] whitespace = re.compile('\W+') def tokenize(string): while string: # strip off whitespace m = whitespace.match(string...
protected void Application_Error(object sender, EventArgs e) { Exception e = Server.GetLastError().GetBaseException(); if(e is SqlException) { Server.ClearError(); Server.Transfer("~/offline.aspx"); } }
./application ./application/controllers ./application/controllers/IndexController.php ./application/controllers/ErrorHandler.php ./application/views ./application/views/scripts ./application/views/scripts/index ./application/views/scripts/index/index.phtml ./application/views/scripts/error ./application/views/scripts/e...
./application ./application/controllers ./application/controllers/IndexController.php ./application/controllers/ErrorHandler.php ./application/views ./application/views/scripts ./application/views/scripts/index ./application/views/scripts/index/index.phtml ./application/views/scripts/error ./application/views/scripts/e...
try { conn.Open(); } catch(Exception ex) { Session["DBException"] = ex; Response.Redirect("Maintenance.aspx"); } finally { conn.Close(); }
template<int> struct CompileTimeError; template<> struct CompileTimeError<true> {}; #define STATIC_CHECK(expr, msg) { CompileTimeError<((expr) != 0)> ERROR_##msg; (void)ERROR_##msg; } int main(int argc, char* argv[]) { STATIC_CHECK(false, Compile_Time_Failure); return 0; }
jQuery.fn.extend({ delayThis: function(fn, time, args) { var self = this; setTimeout(function() { jQuery.fn[fn].apply(self, args); }, time); } }); $('#alert') .show() .delayThis('hide', 5000) ;
jQuery.fn.extend({ delayThis: function(fn, time, args) { var self = this; setTimeout(function() { jQuery.fn[fn].apply(self, args); }, time); } }); $('#alert') .show() .delayThis('hide', 5000) ;
--------------------------- (MonTel Administrator) 2.12.7: MtAdmin.exe - Application Error --------------------------- The exception Privileged instruction. (0xc0000096) occurred in the application at location 0x00486752.
--------------------------- (MonTel Administrator) 2.12.7: MtAdmin.exe - Application Error --------------------------- The exception Privileged instruction. (0xc0000096) occurred in the application at location 0x00486752.
Loading development environment (Rails 2.1.0) >> item = ReleaseItem.new(:filename=>'MAESTRO.TXT') => #<ReleaseItem id: nil, filename: "MAESTRO.TXT", created_by: nil, title: nil, sauce_author: nil, sauce_group: nil, sauce_comment: nil, filedate: nil, filesize: nil, created_at: nil, updated_at: nil, content: nil> >> pack...
Loading development environment (Rails 2.1.0) >> item = ReleaseItem.new(:filename=>'MAESTRO.TXT') => #<ReleaseItem id: nil, filename: "MAESTRO.TXT", created_by: nil, title: nil, sauce_author: nil, sauce_group: nil, sauce_comment: nil, filedate: nil, filesize: nil, created_at: nil, updated_at: nil, content: nil> >> pack...
JobMaster newJobToCreate = new JobMaster(); newJobToCreate.JobID = 9999 newJobToCreate.ProjectID = "New Project"; this.InsertOnSubmit(newJobToCreate); this.SubmitChanges();
# This will trap any errors or commands with non-zero exit status # by calling function catch_errors() trap catch_errors ERR; # # ... the rest of the script goes here # function catch_errors() { # Do whatever on errors # # echo "script aborted, because of errors"; exit 0; }
#include <stdexcept>; long fact(long f) { static long fact [] = { 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 1932053504, 1278945280, 2004310016, 2004189184 }; static long max = sizeof(fact)/sizeof(long); if ((f < 0) || (f >= max)) { throw std::range_error("Facto...
using System; using System.Management; namespace WmiPlay { class Program { static void Main(string[] args) { try { ManagementScope cimv2 = new ManagementScope(@"\\.\root\cimv2"); ManagementObject os = new ManagementObject(cimv2, new Manage...
$db = MDB2::factory( $dsn ); $types = array( 'integer', 'text' ); $sth = $db->prepare( "INSERT INTO table (ID,Text) (?,?)", $types ); if( PEAR::isError( $sth ) ) die( $sth->getMessage() ); $data = array( 5, 'some text' ); $result = $sth->execute( $data ); $sth->free(); if( PEAR::isError( $result ) ) die( $result->get...
$db = MDB2::factory( $dsn ); $types = array( 'integer', 'text' ); $sth = $db->prepare( "INSERT INTO table (ID,Text) (?,?)", $types ); if( PEAR::isError( $sth ) ) die( $sth->getMessage() ); $data = array( 5, 'some text' ); $result = $sth->execute( $data ); $sth->free(); if( PEAR::isError( $result ) ) die( $result->get...
RuntimeError: ERROR C42P01 Mrelation "schema_info" does not exist L221 RRangeVarGetRelid: UPDATE schema_info SET version = ??
RuntimeError: ERROR C42P01 Mrelation "schema_info" does not exist L221 RRangeVarGetRelid: UPDATE schema_info SET version = ??
if err.number <> 0 or status <> 200 then if status = 404 then Response.Write "ERROR: Page does not exist (404).<BR><BR>" elseif status >= 401 and status < 402 then Response.Write "ERROR: Access denied (401).<BR><BR>" elseif status >= 500 and status <= 600 then Response.Write "ERROR: ...
Test test_empty (length = 0): check_re_inverse : 0.042 check_re_match : 0.030 check_set_all : 0.027 check_set_diff : 0.029 check_set_subset : 0.029 check_trans : 0.014 Test test_long_almost_valid (length = 5941): check_re_inverse : 2.690 check_re_match ...
Test test_empty (length = 0): check_re_inverse : 0.042 check_re_match : 0.030 check_set_all : 0.027 check_set_diff : 0.029 check_set_subset : 0.029 check_trans : 0.014 Test test_long_almost_valid (length = 5941): check_re_inverse : 2.690 check_re_match ...
f1 = open(filename1); f2 = open(filename2, "w"); while( !f1.eof() ) { buffer = f1.read(buffersize); err = f2.write(buffer, buffersize); if err != NO_ERROR_CODE break; } f1.close(); f2.close();
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing FastCGI param SERVER_PORT required by WSGI! WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing FastCGI param SERVER_PORT required by WSGI! WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!