I have a ViewController that has its own NIB. I would like to embed that NIB inside of another master NIB. How can I accomplish this in Interface Builder and how do I reference it in code?
Possible Duplicate:
The Definitive C++ Book Guide and List
What is the best text book a beginner (non-CS major) can buy to master C++? And for Java?
Thanks
Hi. Sorry about the vocabulary question, but I'm writing my master thesis and it's a pain to repeat "frameworks that support dynamic class creation" again and again. Is there a term for that?
Some clarification: I mean that you can create a class at runtime, i.e., dynamically. For example, .NET supports this with the System.Reflection namespace.
Thanks :)
i wonder how long it will take to master Symfony and use it to code?
i already know mvc + oop and have used CodeIgniter before to code.
are we talking about days, weeks or months giving that i will dedicate 8-12 hours a day to learn it.
I know that so far (until MSSQL 2005 at least), system databases are master, model, msdb and tempdb.
Thing is, as far as I can tell, this is not guaranteed to be preserved in the future. And neither the sys.databases view nor the sys.sysdatabases view tell me if a database is considered as a system database.
Is there someplace where this information (whether a database is considered a system database or not) can be obtained?
Hi Guys,
I have a trigger that sends an email once a value has been changed.
It works when i make any amendments but when the users make the changes it fails.
I have figured out the users havnt got permission to send mails in master.dbo.xp_sendmail
The way the DB was originally setup wis shocking!! (each user has a network login rather than being part of a network group)
Is there anyway i can allow a role in customerDb to access the xp_sendmail proc in the mater db?
Thanks
Sp
Is there a good reason to put
parent::__construct($config)
in the construct of a CakePHP data source I am developing? I see it being used in some of the data sources found in https://github.com/cakephp/datasources/blob/master/models/datasources/amazon_associates_source.php but not sure why. I could just do
private $_config = array();
function construct($config){
$this->_config = $config;
}
and access my $config the same way.
git revision syntax is really powerful, but I can't find how to simplify things like:
git diff 1a2e^..1a2e
without writing tree'sh1 twice?
Is there now "NEXT" syntax, something like:
git diff 1a2e^..NEXT
OR
git changeset 1a2e
??
Another "next" syntax which might be useful if 1a2e is a known revision:
git cherry-pick 1a2e+NEXT..origin/featureBranch
^^ "cherry pick anything from 1a2e to master EXCEPT 1a2e itself"
Can someone who is a master at JS tell me what's wrong with this?
if ( $.trim($("#add-box-text").val()).length < 2 && $.trim($("#add-box-text").val()) != "Click here to add an item" ) {
// If it's LT than 1 Character, don't submit
$("#add-box-text").effect('highlight', {color: '#BDC1C7'}, 500);
// Refocus
$("#add-box-text").focus();
}
I have multiple master pages in my asp.net mvc web application... Each of the pages add,edit,view and delete functionalities.... What it does is i have to create multiple views for handling add,edit,view and delete functionalities (ie) the user has to navigate to another view to edit/view the details of a record... How to Handle Multiple Form Actions (ie) add,edit,view and delete functionalities on One View?
On my master page I have:
<link rel="stylesheet" href="css/default.css" />
I also have a page "blog.aspx" in the root directory.
I have the rule:
<rewrite url="~/blog/blog.aspx" to="~/blog.aspx" />
My questions are:
Am I meant to make all my links in my site point to blog/blog.aspx now instead of just blog.aspx where it is physically located
How is best to cope with the paths of the stylesheets etc now being messed up because they are one dir up?
When our server comes up we need to check a file to see how the server is configured.
We want to search for the following string inside our /etc/aws/hosts.conf file:
MYSQL_ROLE=master
Then, we want to test whether that string exists and use an if/else statement to run one of two options depending on whether the string exists or not.
What is the BASH syntax for the if statement?
if [ ????? ]; then
#do one thing
else
#do another thing
fi
I'm using twitter bootstrap in my application. i gave e.preventDefault for link button in $(document).reday(), but it is not working.
Here is my code:
Master page:
<a id="lnkLogout" href="javascript:void(0);" onclick="PageLogout();"><i class="icon-off">
</i>Logout</a>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
$('#lnkLogout').click(function (e) { e.preventDefault(); });
});
function PageLogout() {
//Code for logout from the application....
}
</script>
SampleDefaultPage.aspx :
<div class="row-fluid">
<div class="form-horizontal">
<h4 class="header blue bolder smaller">
Contact</h4>
<div class="control-group">
<label for="form-field-email" class="control-label">
Email</label>
<div class="controls">
<input type="text" style="width:200px;" data-val="true" data-val-required="Mobile Number is required." id="txtEmail">
<div class="space-3">
</div>
<span data-valmsg-replace="true" data-valmsg-for="txtEmail" class="field-validation-valid text-warning red"></span>
</div>
</div>
<div class="control-group">
<label for="form-field-website" class="control-label">
Phone Number</label>
<div class="controls">
<input type="text" style="width:200px;" id="txtPhno">
</div>
</div>
</div>
I have given txtEmail as mandatory field. if i left that field blank and click on Logout button in Master page, it says txtEmail is required. i dint do any validation in Logout onclick event. I have given preventDefault for Logout link. But still facing an issue. I should be able to logout even though txtEmail is left blank.
Thank you all in advance for your response.
Hi I have created an extrenal javascript and inserted the path in my site.master with other scripts. However, I can`t access the functions of the file.
What can be the problem? Have I done it right, though I wanted to access it directly from my view?
I'm using ASP.net Master page. I've a footer in my page. When content of my page is less, the footer is coming in the middle of the page.
What do i need to do. please suggest.
Thanks.
I tried doing tutorials but it is unorganized and unstructured, where can I learn PHP from beginner to master? I'm looking for a site like www.w3chools.com, but somehow I feel it is incomplete, specially when it comes to more advanced functions.
I know some basics but I wouldn't be able to for example make a secure online webstore, and I seem to be stuck at this point, how / where should I proceed?
Hi.
I'm using MacVim, and when trying to set shiftround in my .vimrc I get the following error:
E518: Unknown option: shiftround
EDIT: However, when I try to :set shiftround manually within Vim, it works and gives no errors.
Anybody knows what is causing this? If somebody wants to view my whole .vimrc (perhaps something else I'm not of is the cause of this), please do:
https://github.com/oryband/dotvim/blob/master/vimrc
I'm thinking whether it makes sense in order to increase the speed of the website to do some strategy of caching the js files that are being included ?
one idea that I have is to do something like this:
[OutputCache(Location = OutputCacheLocation.Any, Duration = 3600)]
public JsController : Controller
public ActionResult JQuery()
{
//I would have a ascx with the entire jquery script inside
return View();
}
and on the site.master:
<%=Html.RenderAction("JQuery","JsController");
Hi,
I have a page on the example.com domain which contains an IFrame, this IFrame loads an ASP.NET page (c#) from the example2.com domain.
From the code behind on the example2.com domain how can I get the URL of the master page?
Would it help if the 2 pages were on the same domain, so example.com contains an iframe with sub.example.com?
Thanks
Should I be separating my js for each page assuming there is no overlap and putting references on each page instead of having one master file? what is typical practice? thanks
I have the following query:
select MIN(q.a), * FROM
(
sub-query1
) as q
UNION
sub-query2
How can I return the number of elements in query1 as a row of master-query?
If i use count (*) i´ve only the count
CountElementSub-Query1
i need some like that
rowA, rowB, rowC, CountElementSub-Query1
rowA, rowB, rowC, CountElementSub-Query1
rowA, rowB, rowC, CountElementSub-Query1
rowA, rowB, rowC, CountElementSub-Query1
I'm building a PHP framework and my english is not the best.
There are several classes (database abstraction, module, router,...) in my framework and there is a place where they all have to be initialized and executed together.
What is a good name for a "master" class that initializes and runs all other classes?
Is there any way to uniquely identify a database. If we were to copy a database to another machine, this instance is assumed to be different. i checked on master tables, but could not identify any information that can identify this.
Hi everyone,
In the nearest future I'll end university with master degree in computer science. I wanna work abrooad after that.
Could you please advise me sites, rss feeds where I can found info about open vacancies and job suggestions.
Many thanks.
You're welcome send me an email to ohoncharuk[at]hotmail.com
I have a Windows 2003 R2 machine that is giving an Event ID 8197 about once an hour and ten minutes. The full error is attached below. The machine is primary used to host IIS webpages and SMTP. There is no known scheduled tasks on the machine.
I have read a lot of Google Search and Microsoft docs, but none of the suggestions found there have any impact. What I am curious is if there is any way to convert the SRMVOLMC81 and SRMVOLMC57 into mount point data so I could at least know where the error is sourcing from (there are no related errors in the logs, just the 8197 every hour and ten).
Event Type: Error
Event Source: SRMSVC
Event Category: None
Event ID: 8197
Date: 2/7/2011
Time: 11:32:21 AM
User: N/A
Computer: SERVER001
Description:
File Server Resource Manager Service error: Unexpected error.
Error-specific details:
Error: GetVolumeNameForVolumeMountPoint, 0x80070001, Incorrect function.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 53 52 4d 56 4f 4c 4d 43 SRMVOLMC
0008: 38 31 00 00 00 00 00 00 81......
0010: 53 52 4d 56 4f 4c 4d 43 SRMVOLMC
0018: 35 37 00 00 00 00 00 00 57......