When it comes to picking an installer for your app, you have many choices. There's NSIS, Inno Setup, ...
What do you use?
What are its strengths & weaknesses?
How have you used it?
I have
SELECT
servisler.geo_location,
servisler.ADRES_MERKEZ,
servisler.ADRES_ILCE,
servisler.ADRES_IL,
servisler.FIRMA_UNVANI,
servisler.ADRES_ISTEL,
servisler.YETKILI_ADISOYADI,
urun_gruplari.GRUP_ADI
FROM
servisler
INNER JOIN urun_gruplari ON kullanici_cihaz.URUN_GRUP_NO= urun_gruplari.RECNO
INNER JOIN kullanici ON kullanici.SERVIS_RECNO = servisler.RECNO
INNER JOIN kullanici_cihaz ON kullanici.RECNO = kullanici_cihaz.KUL_RECNO AND kullanici_cihaz.URUN_GRUP_NO = urun_gruplari.RECNO
where kullanici.kullanici = 'MAR.EDI.003'
but it says
[Err] 1054 - Unknown column 'kullanici_cihaz.URUN_GRUP_NO' in 'on clause'
enen though the column exits. What is its problem?
schema
Server version: 5.1.33-community-log
I have an iPad app that has a UISearchBar in its navigation bar. When I enter text in the search bar the results are automatically displayed in a UIPopOverController. That's great except the popover's default size is not wide enough for my needs. Is there a way to set its width?
Apple has done this themselves with Safari's search bar. The popover that displays search results is a good bit wider than the default and they have removed the "Results" title from the popover.
Are there any features you would like to see added to a programming language?
Maybe...
A programming construct
An extra operator
A built-in function you think would be useful
I realize questions like this are frowned upon, but I think this one is a genuine programming question that can be answered and the answers will spawn valuable discussion. (And it's community wiki.)
Here is one of mine:
How come C++ has no exponent operator, like Python's **?
I have windows 7 prof on a aspire acer one netbook.
I want to access the "Manage wireless networks" panel from
Control Panel - Network and Internet - Network and Sharing Center - Manage wireless networks (on the left bar)
I click it, but it just won't open!
So I have a drop-down menu that shows on a click, as per business requirements. The menu becomes hidden again after you mouse away from it.
But now I am being asked to have it stay in place until user clicks anywhere on the document. How can this be accomplished?
This is a simplified version of what I have now:
$(document).ready(function() {
$("ul.opMenu li").click(function(){
$('#MainOptSubMenu',this).css('visibility', 'visible');
});
$("ul.opMenu li").mouseleave(function(){
$('#MainOptSubMenu',this).css('visibility', 'hidden');
});
});
<ul class="opMenu">
<li id="footwo" class="">
<span id="optImg" style="display: inline-block;"> <img src="http://localhost.vmsinfo.com:8002/insight/images/options-hover2.gif"/> </span>
<ul id="MainOptSubMenu" style="visibility: hidden; top: 25px; border-top: 0px solid rgb(217, 228, 250); background-color: rgb(217, 228, 250); padding-bottom: 15px;">
<li>some</li>
<li>nav</li>
<li>links</li>
</ul>
</li>
</ul>
I tried something like this $('document[id!=MainOptSubMenu]').click(function() thinking it would trigger on anything that wasnt the menu, but it didnt work.
Hello, I have a simple project on C#.NET and have written it in Visual Studio 2010. I am a newbie in C# and Visual Studio.
I have written some unit tests, and they pass ok, but how can I test code coverage?
Thanks in advance.
Okay - this is the dumbest glitch I have seen in a while:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type='text/javascript'>
var data = "</script>";
</script>
</head>
<body>
This should break!
</body>
</html>
This causes syntax errors because the JavaScript parser is actually reading the contents of the string. How stupid!
How can I put </script> in my code. Is there any way?
Is there a valid reason for this behavior?
I need to draw a circle onto a bitmap in a specific colour given in Hex. The "Brushes" class only gives specific colours with names.
Bitmap bitmap = new Bitmap(20, 20);
Graphics g = Graphics.FromImage(bitmap);
g.FillEllipse(Brushes.AliceBlue, 0, 0, 19, 19); //The input parameter is not a Hex
//g.FillEllipse(new Brush("#ff00ffff"), 0, 0, 19, 19); <<This is the kind of think I need.
Is there a way of doing this?
The exact problem:
I am generating KML (for Google earth) and I am generating lots of lines with different Hex colours. The colours are generated mathematically and I need to keep it that way so I can make as many colours as I want. I need to generate a PNG icon for each of the lines that is the same colour exactly.
In the Crystal Reports editor that comes with Visual Studio (2008) is it possible to align text to the center of a text box rather than to the top?
I can't find the option anywhere and a Google search is not encouraging but I just can't bring myself to believe that they would not include such an obvious feature.
I have an application that calls ShellExecute with a folder path. This brings up the folder in explorer.
However, I want to make sure that the folders are set to display the contents in thumbnail view. How can I ensure this?
I don't have much experience in making app multi lingual, but it seems to me that you don't need a separate dll for each language that you want to handle.
Could someone speculate why the toolkit was designed this way?
If you've done a merge you may find, before committing the changes, that actually you don't want to accept any of the changes merged into one of the affected files. So you do e.g.:
$ svn revert foo.c
However this also seems to revert the mergeinfo related to this file. So when you do a subsequent merge it will merge in exactly the same changes again.
Rather than revert one could do:
$ svn cat foo.c foo.c
But this doesn't seem like the right way to do things? Is there something that more clearly indicates what I'm trying to achieve, i.e. to say "consider the merge done for this file but don't change its contents"?
I have a wxFrame that receives events. Whenever an event comes in, I want the frame to be brought to the foreground.
I'm currently using:
my_frame->SetFocus();
But that doesn't seem to work for minimized frames. How can I set the frame as the active window and bring it to the front?
Given an email address, how can I verify that it is valid? (That the email's domain will accept email for that address.)
How would this look in PHP?
Note: I don't want to verfify that the email address itself is syntactically valid. I want to know whether the domain will accept email to that address.
Hello guys,
I'm having a problem to create a generic View to represent NotFound pages.
The view is created and it's fine. I need to know how i can direct the user to the NotFound view in my Controllers and how to render a specific "Return to Index" in each controller.
Here is some code:
public class NotFoundModel
{
private string _contentName;
private string _notFoundTitle;
private string _apologiesMessage;
public string ContentName { get; private set; }
public string NotFoundTitle { get; private set; }
public string ApologiesMessage { get; private set; }
public NotFoundModel(string contentName, string notFoundTitle, string apologiesMessage)
{
this._contentName = contentName;
this._notFoundTitle = notFoundTitle;
this._apologiesMessage = apologiesMessage;
}
}
// NotFound View
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Geographika.Models.NotFoundModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<%= Html.Encode(Model.ContentName) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><%= Html.Encode(Model.NotFoundTitle) %></h2>
<p><%= Html.Encode(Model.ApologiesMessage) %></p>
<!-- How can i render here a specific "BackToIndexView", but that it's not bound to
my NotFoundModel? -->
</asp:Content>
// Controller piece of code
//
// GET: /Term/Details/2
public ActionResult Details(int id)
{
Term term = termRepository.SingleOrDefault(t => t.TermId == id);
if (term == null)
return View("NotFound"); // how can i return the specific view that its not bound to Term Model?
// the idea here would be something like:
// return View("NotFound",new NotFoundModel("a","b","c"));
else
return View("Details", term);
}
I'm not sure how to redirect to a whole different page. Can anyone give me any pointers?
Thanks
I have this ActionScript code here:
package
{
import flash.display.Sprite;
import flash.display.LineScaleMode;
import flash.display.CapsStyle;
import flash.display.JointStyle;
import flash.display.Shape;
import flash.events.Event;
public class Main extends Sprite
{
private var lines:Shape;
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
lines = new Shape();
addChild(lines);
lines.graphics.clear();
lines.graphics.lineStyle(10, 0x000000);
lines.graphics.moveTo(0, 0);
lines.graphics.lineTo(stage.stageWidth, stage.stageHeight);
}
}
}
What I'm expecting this to do is to draw a line from one corner of the screen to the other... but that's not what it does. See here.
Hello guys.
I'm starting off with NHibernate now and I still don't have a testable environment.
I would like to know from you, experienced fellows if there is a problem to map IList to an Set in .hbm file.
Like this:
//c#
IList<TrechoItem> trechos_item;
<!-- xml .hbm -->
<set name="TrechosItem" table="trecho_item" lazy="true" inverse="true" fetch="select">
<key column="id_item"/>
<one-to-many class="TrechoItem"/>
</set>
Or, in this:
IList<Autor> Autores;
<set name="Autores" lazy="true" table="item_possui_autor">
<key column="id_item"/>
<many-to-many class="Autor" column="id_autor"/>
</set>
Is this possible? Or am I doing the wrong thing?
I tried using and but these did not gave me all the options in .
Thanks in advanced
I have the following HTML chunk:
<span class='instruction_text'>
Line 1<br>
Line 2
</span>
And the CSS declaration of instruction_text is:
.instruction_text {
margin-left: 70px;
font-style: italic;
color: #555;
}
The first line has a 70px margin as expected, but the next line starts with no indent. How can I make ALL of the lines indented?
I would like wxHtmlWindow to use libcurl instead of the internal wxHTTP class. Is there an easy way to do this? If not, can I at least change the useragent wxHtmlWindow sends when it accesses pages?
When I get an email, there is a header From: in the actual MIME message that specifies who the sender of the email is.
I notice that the format of that particular header is sometimes:
From: [email protected]
or
From: Human Readable Name <[email protected]>
Are these the only ways that standard clients format the From: header? Or are there others I should be aware of?
Yesterday I posted a related question on StackOverflow. This problem involved not being able to see a SQL Server 2008 instance on another PC.
I am not sure why adding the port number enabled me to see a SQL Server that I could not otherwise see, since the port number that I specified was, after all, the default port.
Now I notice that I have another problem. While I can connect to the remote SQL 2008 Server instance, I cannot see all the databases in the instance. I am trying to connect to the 2008 instance from another PC using SQL Server 2008 Mgt Studio. I am connecting from a Windows 7 Ultimate PC to a Windows XP Pro PC.
I suspect that my problem has something to do with not all database in the remote instance having the same version. For example, I "upgraded" a a SL 2005 database to 2008 by doing a backup frm 2005 and importing it into 2008. When I realized that this was not one of the database that I could see from my other PC, I noticed that the compatability level of the imported was still 2005, so I changed it to 2008. Still I could not see the database.
I am sure that this is relevant: I just noticed that on my remote server, the sql node instance node, named "sql2008" says "version 10" when I am on the remote serfver, but when I connect to the sql2008 remote instance fron my local PC, the connection is shown locally as being a "SQL Servr version 8.0" instance. I suspect that locally, I am only being shown databases that are somehow in the remote 2008 instance but have not been upgraded.
I guess I don't know what constitutes an upgraded database and I don not know who to connect to see all the databases, even if this requires multiple connections from the source PC.
There are a few very serious but opinionated and subjective arguments that I know of. Two of them are
Whether or not to use semicolons in the event they are optional. There is a vote as here that also includes reasons
Whether or not to use tables for non tabular data. There more information here
Since the semicolon question arises often in JavaScript and the tables thing in HTML then there are probably many who run into both. I sort of expect a person who is strict with semicolons also to be strict about avoiding tables. I will post four CW answers here to vote on. Please vote what you think is right.
If you want to talk about the reasons then please use
Semicolons: Do you recommend using semicolons after every statement in JavaScript?
Tables: Start your own question under the polls tag and follow the design of the semicolons question.