base

SQL query in OO Base with where and if

Hello. I'm totally blank about sql, but im have to make sql query in OO Base. Query have to avoid compare, when cell in table is blank. I hope somebody will help me. SELECT "D"."Imię", "D"."Nazwisko", "D"."Data badania", "D"."Rodzaj auta", "D"."Obszar badany", "D"."Jednostka kierująca 1", "D"."Jednostka kierująca 2" FROM "Dane" AS "D",...

Base URL that works for html in files and on website?

Like many developers I put my images in /images, css in /css, and js in /js. This way, no matter what the URL/directory structure, the site can simply reference /css/style.css or /js/jquery. Problem is when I try opening the html from a directory, the paths are screwed up. It assumes / is C:/ I'd like to be able to preview html files...

C#. Is is possible to have a static generic class with a base type constraint that has a method with a further base type constraint

I'd like to be able to create a static generic type with a base type constraint like public static class Manager<T> where T : HasId { public static T GetSingleById(ref List<T> items, Guid id) { // the Id is a property provided by HasId return (from i in items where i.Id == id select i).SingleOrDefault(); } } ...

How do I set a page's base href in Javascript?

I want to set a page's base href attribute in Javascript based off of the current hostname. I have generated HTML pages that can be viewed on different hostnames, which means generating a base href tag will work in one hostname but will be incorrect in the other. ...

quartz.net abstract base class

This link suggests to create an abstract base class that can read the job data map information for Quartz.net and each of the jobs will derive from this base class. http://quartznet.sourceforge.net/faq.html#howtochainjobs Can someone provide me a sample of this base class because I am not sure how to retrieve the job details in the bas...

How to call a derived class method from a base class method within the constructor of base...

I am wondering if it is possible to call a derived class´ function from within a function called by the base constructor (shouldn´t it already be created when the code in the brackets are executed?) #pragma once class ClassA { public: ClassA(void); virtual ~ClassA(void); void Init(); protected: short m_a; short m_b; virtual voi...

Why is this not allowed in C++?

Here is my code - #include<iostream> using namespace std; class base { private: public: void sid() { cout<<"base"; } }; class derived : private base { private: public: void sid() { cout<<"derived"; }...

Template+Dependent Name

$14.6.2/3 - "In the definition of a class template or a member of a class template, if a base class of the class template depends on a template-parameter, the base class scope is not examined during unqualified name lookup either at the point of definition of the class template or member or during an instantiation of the class template o...

How can I find the full URL from a relative URL in Perl?

I'm new to perl but was wondering if anyone know of a script that was similar to the following PHP version which works great! private function resolve_href ( $base, $href ) { if (!$href) return $base; $rel_parsed = parse_url($href); if (array_key_exists('scheme', $rel_parsed)) return $href; $base_parsed =...

Company Code Base

i'm thinking of building a code base for my company - to hold libraries, classes, etc. developed by employees internally and used in different applications in time. The purpose would be code reusability in time. The platform I target is .NET only - winForms, WPF, WEB, Silverlight, and others. I was thinking of building a solution that wo...

What does 401F0000C48FBAA6 mean?

Hello, I have this text 401F0000C48FBAA6 and I know that corresponds to a word. It's not in hexadecimal (I've tried). Do anyone knows in what base can it be? And what does it means? ...

HTML - Understanding href and the link and base tags.

I often get confused with the href attribute, the link tag, and the base tag. I'm unsure how to properly link the CSS file so a file can be moved into a subfolder and still work (example later on) so I went ahead and found out how the href works when specifying a location. For your knowledge, I'm working with my localhost, so I have the...

ASP.Net MVC: How to redirect an uathenticated user from any page if they do not satisfy a condition

I need to redirect any Authenticated user to a specific page if they do not satisfy a condition. I have implemented a base controller from which all controllers inherit. In its OnActionExecuting override I plan to perform my test for the condition and redirect to the specific action if the condition is not met. Is this the most sens...

override base php functions

Hi, I have made a function simular to the print_r function in php. Is there a way that you can add to the base functions of php so any sites that are on your server can use your new function. basically i have made a print r with a header to save the sessions to a file for debugging . does any one know if this is possible. Thank you :...