PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
11,550,509
07/18/2012 21:18:30
1,536,115
07/18/2012 20:50:17
1
0
jQuery syntax: # symbol
This piece of code - defined in a javascript function - is perplexing me... var defaultsortoption=decodeuricomponent(getParameter("v1",$('#defaultsort').val())); I admit to being a novice with javascript and jQuery. I've done some homework and figured out what the selector refers to (#defaultsort), and I see the API for the decodeuricomponent function. However, the getParameter() method is stumping me. The code would reside on a Sharepoint 2010 aspx page. Yet I don't see getParameter defined as a custom function there, nor do I find it defined as a javascript function, or jQuery. If anyone can shed light on what this function might be, I'd be obliged. And thank you! Regards, Paul
javascript
jquery
getparameter
null
null
07/19/2012 06:36:04
too localized
jQuery syntax: # symbol === This piece of code - defined in a javascript function - is perplexing me... var defaultsortoption=decodeuricomponent(getParameter("v1",$('#defaultsort').val())); I admit to being a novice with javascript and jQuery. I've done some homework and figured out what the selector refers to (#defaultsort), and I see the API for the decodeuricomponent function. However, the getParameter() method is stumping me. The code would reside on a Sharepoint 2010 aspx page. Yet I don't see getParameter defined as a custom function there, nor do I find it defined as a javascript function, or jQuery. If anyone can shed light on what this function might be, I'd be obliged. And thank you! Regards, Paul
3
5,294,603
03/14/2011 04:06:23
425,552
08/19/2010 17:35:23
168
17
Framework creation in Cocoa
I would like to create a framework(Like coreData,CoreAudio,etc ) which can be used in multiple applications. Can anyone post the links or tutorial for this ...
cocoa
frameworks
null
null
null
null
open
Framework creation in Cocoa === I would like to create a framework(Like coreData,CoreAudio,etc ) which can be used in multiple applications. Can anyone post the links or tutorial for this ...
0
11,447,717
07/12/2012 08:19:22
989,256
10/11/2011 10:02:35
1,787
130
How to move jQuery handler (or how do you call that?) from one object to another?
I made the jsfiddle working example. Have a look at: http://jsfiddle.net/SsqEv/ Basically I create a simple html markup: <div id="container"> <div id="test1">click me</div> </div> And the following javascript code: // attach click event $('#test1').click(function() {alert('test');}); // create a new strring that will be appended to the container var data = '<div id="test2">click me 2</div>'; // move click handler from #test1 to #test2 data = $(data).bind("click", {}, $("#test1").data("events").click[0]); // add element to the DOM $("#container").append(data); // remove click from #test1 $('#test1').unbind("click"); This all works. Now, let's assume I have a custom script with context menu attached to `ul li` elements: $("ul#vertical-menu li a[data-menuitemid]").contextMenu({menu: 'myMenu', beforeShow: function(contextMenu, item) { if ($(item).parent('li').hasClass('state-ok')) { $(contextMenu).children('.ready').hide(); } else { $(contextMenu).children('.noready').hide(); } } }, function(action, el, pos) { changeStatus(model.id, action, $(el).attr('data-menuitemid'), el); }); Sometimes I need to remove li and when this is done, I need to attach the contextMenu in the same way. The best option would be to move the contextMenu from the removed `li` to the added one. How can I achieve that?
javascript
jquery
javascript-events
handler
null
null
open
How to move jQuery handler (or how do you call that?) from one object to another? === I made the jsfiddle working example. Have a look at: http://jsfiddle.net/SsqEv/ Basically I create a simple html markup: <div id="container"> <div id="test1">click me</div> </div> And the following javascript code: // attach click event $('#test1').click(function() {alert('test');}); // create a new strring that will be appended to the container var data = '<div id="test2">click me 2</div>'; // move click handler from #test1 to #test2 data = $(data).bind("click", {}, $("#test1").data("events").click[0]); // add element to the DOM $("#container").append(data); // remove click from #test1 $('#test1').unbind("click"); This all works. Now, let's assume I have a custom script with context menu attached to `ul li` elements: $("ul#vertical-menu li a[data-menuitemid]").contextMenu({menu: 'myMenu', beforeShow: function(contextMenu, item) { if ($(item).parent('li').hasClass('state-ok')) { $(contextMenu).children('.ready').hide(); } else { $(contextMenu).children('.noready').hide(); } } }, function(action, el, pos) { changeStatus(model.id, action, $(el).attr('data-menuitemid'), el); }); Sometimes I need to remove li and when this is done, I need to attach the contextMenu in the same way. The best option would be to move the contextMenu from the removed `li` to the added one. How can I achieve that?
0
2,913,526
05/26/2010 13:48:42
466,534
04/21/2010 12:03:08
143
4
show d th digit of number
i need create function which returns d th bit of given number can anybody help me?
algorithm
null
null
null
null
05/26/2010 18:22:00
not a real question
show d th digit of number === i need create function which returns d th bit of given number can anybody help me?
1
5,491,669
03/30/2011 20:05:09
268,912
02/08/2010 19:19:09
69
2
Zend Layout Problem
Trying to learn Zend Framework. I am sure I am doing something real stupid, but <?= $this->layout()->content?> shows content for index but not for others... I mean /views/scripts/index/inex.phtml is coming fine when mydomain/public is called, but /views/scripts/abc/index.phtml isn't shown when mydomain/public/abc is called. I am not sure if I am stating things clearly enough. But can anyone help?
php
zend-framework
zend
null
null
04/01/2011 08:59:31
too localized
Zend Layout Problem === Trying to learn Zend Framework. I am sure I am doing something real stupid, but <?= $this->layout()->content?> shows content for index but not for others... I mean /views/scripts/index/inex.phtml is coming fine when mydomain/public is called, but /views/scripts/abc/index.phtml isn't shown when mydomain/public/abc is called. I am not sure if I am stating things clearly enough. But can anyone help?
3
5,621,575
04/11/2011 12:51:55
853,483
04/11/2011 12:51:55
1
0
help to add some link's how Help, Registration to footer from loacal.xml
Hy. I have same tasks. I need add to footer some links how Payment, Help, Discount, Registration, My cart, Category. I have **local.xml** and i tried to do from it. If u are have some solution, i hope smb help me with it.
php
null
null
null
null
04/12/2011 03:30:33
not a real question
help to add some link's how Help, Registration to footer from loacal.xml === Hy. I have same tasks. I need add to footer some links how Payment, Help, Discount, Registration, My cart, Category. I have **local.xml** and i tried to do from it. If u are have some solution, i hope smb help me with it.
1
7,224,944
08/29/2011 00:18:27
46,642
12/16/2008 12:15:06
18,575
504
Can I default a private constructor in the class body or not?
GCC 4.5 doesn't let me do this: class foo { public: foo() = default; private: foo(foo const&) = default; foo& operator=(foo const&) = default; }; It complains that: > error: 'foo::foo(const foo&)' declared with non-public access cannot be defaulted in the class body > error: 'foo& foo::operator=(const foo&)' declared with non-public access cannot be defaulted in the class body However, GCC 4.6 lets me do it. Which one is correct?
c++
c++11
defaulted-functions
null
null
null
open
Can I default a private constructor in the class body or not? === GCC 4.5 doesn't let me do this: class foo { public: foo() = default; private: foo(foo const&) = default; foo& operator=(foo const&) = default; }; It complains that: > error: 'foo::foo(const foo&)' declared with non-public access cannot be defaulted in the class body > error: 'foo& foo::operator=(const foo&)' declared with non-public access cannot be defaulted in the class body However, GCC 4.6 lets me do it. Which one is correct?
0
5,352,037
03/18/2011 12:34:40
584,081
01/21/2011 06:59:32
63
1
is thre away to make my program connect to
is thre away to make my program connect to a (radio site) so i can use my program to listen to that radio instead of opening the page all the time if there a way can some one tell me a abook to read or point me where i can find out how to make it thnx
c++
null
null
null
null
03/18/2011 13:13:47
not a real question
is thre away to make my program connect to === is thre away to make my program connect to a (radio site) so i can use my program to listen to that radio instead of opening the page all the time if there a way can some one tell me a abook to read or point me where i can find out how to make it thnx
1
115,306
09/22/2008 14:57:08
445,087
09/02/2008 17:25:48
735
21
Does it make sense to mix an RTOS and cyclic executive?
On a small embedded system project we have some code which we would like to run in a thread so we are electing to build in top of an embedded RTOS (eCos). Previously, we have used a cyclic executive in main() that drove tasks each implemented as a state machine. For some tasks we encountered problems where the task would need to be broken up into many fine grained states thus making the code extra complex. When switching to an RTOS we found the memory usage for each thread's stack adds up quickly if we give each separate task it's own thread. (we only have 64k and need the memory for our communications buffers) We are considering using a tread for our communications task and an other thread for a cyclic executive. The cyclic executive will drive the other logical tasks. **Does it make sense to mix an RTOS and cyclic executive like this?**
embedded
multithreading
rtos
null
null
null
open
Does it make sense to mix an RTOS and cyclic executive? === On a small embedded system project we have some code which we would like to run in a thread so we are electing to build in top of an embedded RTOS (eCos). Previously, we have used a cyclic executive in main() that drove tasks each implemented as a state machine. For some tasks we encountered problems where the task would need to be broken up into many fine grained states thus making the code extra complex. When switching to an RTOS we found the memory usage for each thread's stack adds up quickly if we give each separate task it's own thread. (we only have 64k and need the memory for our communications buffers) We are considering using a tread for our communications task and an other thread for a cyclic executive. The cyclic executive will drive the other logical tasks. **Does it make sense to mix an RTOS and cyclic executive like this?**
0
106,340
09/19/2008 23:18:21
17,176
09/18/2008 03:45:41
185
25
What is your favorite Visual Studio add-in/setting.
What add-in/setting in Visual Studio can you not live without? Which one improves your productivity or fixes something you can't stand in Visual Studio? Why is it your favorite? My favorite is [aspx edit helper][1] because it does really improve my productivity when working with ASP.NET applications. What it does is provide a quick way to type out server side controls, it automatically fills in runat="server" and id="" and puts your cursor in between the quotes of ID so you can type it in. [1]: http://www.ardentdev.com/blog/index.php/aspxedithelper
visual-studio
.net
null
null
null
09/20/2011 01:41:17
not constructive
What is your favorite Visual Studio add-in/setting. === What add-in/setting in Visual Studio can you not live without? Which one improves your productivity or fixes something you can't stand in Visual Studio? Why is it your favorite? My favorite is [aspx edit helper][1] because it does really improve my productivity when working with ASP.NET applications. What it does is provide a quick way to type out server side controls, it automatically fills in runat="server" and id="" and puts your cursor in between the quotes of ID so you can type it in. [1]: http://www.ardentdev.com/blog/index.php/aspxedithelper
4
2,546,012
03/30/2010 14:32:58
207,193
11/09/2009 18:52:46
33
0
Research areas that have best chance to lead to career?
I start graduate school in the fall and I have been a programmer for 2.5 years since obtaining my BSCS. I'm wanting to get into a field that will have the best career oppurtunities when I graduate. The school that I'm going to focuses on: Computer Forensics and Security<br /> Computer Graphics and Visualization<br /> High Performance Computing<br /> Software Engineering<br /> Artificial Intelligence<br /> I find most of these interesting research areas, but my main goal is to use the research I do in my career. Any suggestions which of these have the best chance to lead to a career?
career-development
null
null
null
null
11/24/2011 02:18:56
not constructive
Research areas that have best chance to lead to career? === I start graduate school in the fall and I have been a programmer for 2.5 years since obtaining my BSCS. I'm wanting to get into a field that will have the best career oppurtunities when I graduate. The school that I'm going to focuses on: Computer Forensics and Security<br /> Computer Graphics and Visualization<br /> High Performance Computing<br /> Software Engineering<br /> Artificial Intelligence<br /> I find most of these interesting research areas, but my main goal is to use the research I do in my career. Any suggestions which of these have the best chance to lead to a career?
4
11,235,357
06/27/2012 21:56:44
98,654
04/30/2009 15:15:58
5,186
83
Can a member object use a destructed parent object?
Question -------- Is it legal for a member of a class to access the object that owns it **after** the destructor for the owning object has finished? Example ------- #include <string> struct Base; struct Member { Member(Base *b); ~Member(); Base *b_; }; struct Base { virtual void f() {} }; struct Derived : Base { Derived() : m(this) {} ~Derived() {} virtual void f() {} std::string s; Member m; }; Member::Member(Base *b) : b_(b) {} Member::~Member() { // At this point, ~Derived has finished -- can we use b_ as a // Derived* object (i.e. call Derived::f or access Derived::s)? b_->f(); } int main() { Derived d; } In this example, a `Member` object has a pointer to a `Derived` object that owns it, and it attempts to access that `Derived` object as it is destructed...even though the destructor for `Derived` has already finished. Related questions ----------------- - http://stackoverflow.com/questions/6331296/is-it-ok-to-call-a-member-function-of-an-object-being-destroyed-inside-the-destr (...but what happens after the destructor finishes?) - http://stackoverflow.com/questions/8611468/lifetime-of-object-is-over-before-destructor-is-called (...is a member an external consumer?)
c++
destructor
object-lifetime
null
null
null
open
Can a member object use a destructed parent object? === Question -------- Is it legal for a member of a class to access the object that owns it **after** the destructor for the owning object has finished? Example ------- #include <string> struct Base; struct Member { Member(Base *b); ~Member(); Base *b_; }; struct Base { virtual void f() {} }; struct Derived : Base { Derived() : m(this) {} ~Derived() {} virtual void f() {} std::string s; Member m; }; Member::Member(Base *b) : b_(b) {} Member::~Member() { // At this point, ~Derived has finished -- can we use b_ as a // Derived* object (i.e. call Derived::f or access Derived::s)? b_->f(); } int main() { Derived d; } In this example, a `Member` object has a pointer to a `Derived` object that owns it, and it attempts to access that `Derived` object as it is destructed...even though the destructor for `Derived` has already finished. Related questions ----------------- - http://stackoverflow.com/questions/6331296/is-it-ok-to-call-a-member-function-of-an-object-being-destroyed-inside-the-destr (...but what happens after the destructor finishes?) - http://stackoverflow.com/questions/8611468/lifetime-of-object-is-over-before-destructor-is-called (...is a member an external consumer?)
0
8,578,841
12/20/2011 16:42:38
538,641
12/11/2010 04:16:14
94
2
PHP Going through array?
I have a $search_array like this Array ( [1] => Array ( [type] => book [search] => steve ) [2] => Array ( [type] => book [search] => john ) foreach ($search_array as $s) { $arrayid = //??????? $searchtype = $s['type']; $search = urlencode($s['search']); getResult($arrayid); } I'm trying to figure out how to get the array number. So for the first result i need $arrayid to be 1. How do I reference that in the foreach loop? Thanks
php
arrays
null
null
null
null
open
PHP Going through array? === I have a $search_array like this Array ( [1] => Array ( [type] => book [search] => steve ) [2] => Array ( [type] => book [search] => john ) foreach ($search_array as $s) { $arrayid = //??????? $searchtype = $s['type']; $search = urlencode($s['search']); getResult($arrayid); } I'm trying to figure out how to get the array number. So for the first result i need $arrayid to be 1. How do I reference that in the foreach loop? Thanks
0
9,147,273
02/05/2012 06:02:00
1,190,261
02/05/2012 05:49:40
1
0
chroot to NFS during Linux boot?
During booting of my Linux box I need to automatically chroot to /foo which is a mounted Network File System (NFS). So I created a script foo.sh under /etc/init.d and set its permissions to 755. I also set it up to execute during boot with `update-rc.d -f foo.sh start 99 2 .` The script just says `exec chroot /foo`. But the problem is that after I log into the system I am not still in the original root while /foo is still there with the entire mounted NFS. I even tried `chroot /foo` and tried to invoke the script at various run levels and stages. However once I log in I am able to chroot to /foo manually from the terminal. Does anyone know what may be preventing chroot during the boot stage?
linux
boot
chroot
null
null
02/05/2012 07:28:30
off topic
chroot to NFS during Linux boot? === During booting of my Linux box I need to automatically chroot to /foo which is a mounted Network File System (NFS). So I created a script foo.sh under /etc/init.d and set its permissions to 755. I also set it up to execute during boot with `update-rc.d -f foo.sh start 99 2 .` The script just says `exec chroot /foo`. But the problem is that after I log into the system I am not still in the original root while /foo is still there with the entire mounted NFS. I even tried `chroot /foo` and tried to invoke the script at various run levels and stages. However once I log in I am able to chroot to /foo manually from the terminal. Does anyone know what may be preventing chroot during the boot stage?
2
7,737,659
10/12/2011 09:05:46
268,588
02/08/2010 11:11:02
617
14
repeater inside an update panel - ItemComand Codes Peroblem - Calling A javascript function With ScriptManager In Code Behind
my repeater in aspx area is like below : `this repeater is inside a master page - pages are base on master and content pages` <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand"> <ItemTemplate> <asp:Image ID="imgArrowIconInsideRepeater" runat="server" ImageUrl="~/Images/Login/ArrowIcon.png" /> <asp:HiddenField ID="hfFilePath" runat="server" Value='<%# Eval("FilePath")%>' /> <asp:HiddenField ID="hfFileName" runat="server" Value='<%# Eval("FileName")%>' /> <asp:HiddenField ID="hfFileSize" runat="server" Value='<%# Eval("FileSize")%>' /> <asp:HiddenField ID="hfFileCreationDate" runat="server" Value='<%# Eval("FileCreationDate")%>' /> <asp:LinkButton ID="lbFile" runat="server" CommandName="lbFile_Click" CssClass="lbFileInRepeater" ><%# Eval("FileName")%></asp:LinkButton> <br /> <asp:Label ID="lblFileCreationDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FileCreationDate", "{0:yyyy/MM/dd - tt h:m:s}") %>' CssClass="lblFileCreationDateInRepeater" ></asp:Label> | <asp:Label ID="lblFileSize" runat="server" Text='<%# GetFileSize(Eval("FileSize"))%>' CssClass="lblFileSizeInRepeater"></asp:Label> <div class="EmptyDiv"> </div> </ItemTemplate> </asp:Repeater> </ContentTemplate> </asp:UpdatePanel> also i have a scriptmanager in my master page like below : <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="True"> </telerik:RadScriptManager> my c# codes in code behind is like below : protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { //The Below Line Does Not Work - Always Is Null //NewAddedFiles currentItem = (NewAddedFiles)e.Item.DataItem; HiddenField hfFilePath = (HiddenField)e.Item.FindControl("hfFilePath"); HiddenField hfFileName = (HiddenField)e.Item.FindControl("hfFileName"); HiddenField hfFileSize = (HiddenField)e.Item.FindControl("hfFileSize"); HiddenField hfFileCreationDate = (HiddenField)e.Item.FindControl("hfFileCreationDate"); switch (e.CommandName) { case "lbFile_Click": { if (Session["User_ID"] != null) { DataSet dsDownload = DataLayer.Download.Size_By_UserID_Today(int.Parse(HttpContext.Current.Session["User_ID"].ToString()), DateTime.Now); if (dsDownload.Tables["Download"].Rows.Count > 0) { DataRow drDownload = dsDownload.Tables["Download"].Rows[0]; int SumOfFileSize4Today = int.Parse(drDownload["FileSizSum"].ToString()); if (SumOfFileSize4Today + int.Parse(hfFileSize.Value) <= 1073741824)//1 GB = 1024*1024*1024 bytes = 1073741824 bytes //if (SumOfFileSize4Today + int.Parse(hfFileSize.Value) <= 100000) { DataLayer.Download.InsertRow( int.Parse(HttpContext.Current.Session["User_ID"].ToString()), DateTime.Now, hfFilePath.Value, hfFileName.Value, hfFileSize.Value, DateTime.Parse(hfFileCreationDate.Value) ); Response.Redirect("~/HandlerForRepeater.ashx?path=" + hfFilePath.Value); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "YouCanNotDownloadAnyMore_SizeOverload", "YouCanNotDownloadAnyMore_SizeOverload();", true); } } else { if (int.Parse(hfFileSize.Value) <= 1073741824) //if (int.Parse(hfFileSize.Value) <= 100000) { DataLayer.Download.InsertRow( int.Parse(HttpContext.Current.Session["User_ID"].ToString()), DateTime.Now, hfFilePath.Value, hfFileName.Value, hfFileSize.Value, DateTime.Parse(hfFileCreationDate.Value) ); Response.Redirect("~/HandlerForRepeater.ashx?path=" + hfFilePath.Value); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "YouCanNotDownloadAnyMore_SizeOverload", "YouCanNotDownloadAnyMore_SizeOverload();", true); } } } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "plzLoginFirst_ForDownload", "plzLoginFirst_ForDownload();", true); } break; } default: { break; } } } } my problem is about these lines : `start with ScriptManager.RegisterStartupScript` why these lines do n't work inside update panel? - without update panel every thing is ok. thanks in advance
c#
javascript
asp.net
updatepanel
scriptmanager
01/27/2012 21:17:23
too localized
repeater inside an update panel - ItemComand Codes Peroblem - Calling A javascript function With ScriptManager In Code Behind === my repeater in aspx area is like below : `this repeater is inside a master page - pages are base on master and content pages` <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand"> <ItemTemplate> <asp:Image ID="imgArrowIconInsideRepeater" runat="server" ImageUrl="~/Images/Login/ArrowIcon.png" /> <asp:HiddenField ID="hfFilePath" runat="server" Value='<%# Eval("FilePath")%>' /> <asp:HiddenField ID="hfFileName" runat="server" Value='<%# Eval("FileName")%>' /> <asp:HiddenField ID="hfFileSize" runat="server" Value='<%# Eval("FileSize")%>' /> <asp:HiddenField ID="hfFileCreationDate" runat="server" Value='<%# Eval("FileCreationDate")%>' /> <asp:LinkButton ID="lbFile" runat="server" CommandName="lbFile_Click" CssClass="lbFileInRepeater" ><%# Eval("FileName")%></asp:LinkButton> <br /> <asp:Label ID="lblFileCreationDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FileCreationDate", "{0:yyyy/MM/dd - tt h:m:s}") %>' CssClass="lblFileCreationDateInRepeater" ></asp:Label> | <asp:Label ID="lblFileSize" runat="server" Text='<%# GetFileSize(Eval("FileSize"))%>' CssClass="lblFileSizeInRepeater"></asp:Label> <div class="EmptyDiv"> </div> </ItemTemplate> </asp:Repeater> </ContentTemplate> </asp:UpdatePanel> also i have a scriptmanager in my master page like below : <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="True"> </telerik:RadScriptManager> my c# codes in code behind is like below : protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { //The Below Line Does Not Work - Always Is Null //NewAddedFiles currentItem = (NewAddedFiles)e.Item.DataItem; HiddenField hfFilePath = (HiddenField)e.Item.FindControl("hfFilePath"); HiddenField hfFileName = (HiddenField)e.Item.FindControl("hfFileName"); HiddenField hfFileSize = (HiddenField)e.Item.FindControl("hfFileSize"); HiddenField hfFileCreationDate = (HiddenField)e.Item.FindControl("hfFileCreationDate"); switch (e.CommandName) { case "lbFile_Click": { if (Session["User_ID"] != null) { DataSet dsDownload = DataLayer.Download.Size_By_UserID_Today(int.Parse(HttpContext.Current.Session["User_ID"].ToString()), DateTime.Now); if (dsDownload.Tables["Download"].Rows.Count > 0) { DataRow drDownload = dsDownload.Tables["Download"].Rows[0]; int SumOfFileSize4Today = int.Parse(drDownload["FileSizSum"].ToString()); if (SumOfFileSize4Today + int.Parse(hfFileSize.Value) <= 1073741824)//1 GB = 1024*1024*1024 bytes = 1073741824 bytes //if (SumOfFileSize4Today + int.Parse(hfFileSize.Value) <= 100000) { DataLayer.Download.InsertRow( int.Parse(HttpContext.Current.Session["User_ID"].ToString()), DateTime.Now, hfFilePath.Value, hfFileName.Value, hfFileSize.Value, DateTime.Parse(hfFileCreationDate.Value) ); Response.Redirect("~/HandlerForRepeater.ashx?path=" + hfFilePath.Value); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "YouCanNotDownloadAnyMore_SizeOverload", "YouCanNotDownloadAnyMore_SizeOverload();", true); } } else { if (int.Parse(hfFileSize.Value) <= 1073741824) //if (int.Parse(hfFileSize.Value) <= 100000) { DataLayer.Download.InsertRow( int.Parse(HttpContext.Current.Session["User_ID"].ToString()), DateTime.Now, hfFilePath.Value, hfFileName.Value, hfFileSize.Value, DateTime.Parse(hfFileCreationDate.Value) ); Response.Redirect("~/HandlerForRepeater.ashx?path=" + hfFilePath.Value); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "YouCanNotDownloadAnyMore_SizeOverload", "YouCanNotDownloadAnyMore_SizeOverload();", true); } } } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "plzLoginFirst_ForDownload", "plzLoginFirst_ForDownload();", true); } break; } default: { break; } } } } my problem is about these lines : `start with ScriptManager.RegisterStartupScript` why these lines do n't work inside update panel? - without update panel every thing is ok. thanks in advance
3
7,160,686
08/23/2011 11:58:42
393,473
07/16/2010 04:37:46
250
20
Web Config error in IIS
I have an asp.net web application which is working properly in local host. But while am hosting it into IIS the following error message displays. Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> If any body knows please share....
asp.net
iis
web-config
null
null
08/23/2011 13:31:01
not a real question
Web Config error in IIS === I have an asp.net web application which is working properly in local host. But while am hosting it into IIS the following error message displays. Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> If any body knows please share....
1
8,890,887
01/17/2012 07:12:19
1,133,655
01/06/2012 05:04:51
6
0
Convert 'System.TimeSpan' to 'System.Data.Linq.Binary'
I need your help to convert 'System.TimeSpan' to 'System.Data.Linq.Binary' in .net framework 3.5.
timespan
null
null
null
null
01/17/2012 17:11:30
not a real question
Convert 'System.TimeSpan' to 'System.Data.Linq.Binary' === I need your help to convert 'System.TimeSpan' to 'System.Data.Linq.Binary' in .net framework 3.5.
1
6,024,590
05/16/2011 23:29:36
622,481
02/18/2011 02:41:55
19
0
PHP Echo Problem?
I'm trying to get PHP to echo this: http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=<TrackRequest USERID=\"123456\"><TrackID ID=".$trackno."></TrackID></TrackRequest>"; However, when I open this page in my browser (FF4), only this shows up: http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML= The browser thinks that <TrackRequest> onwards is part of a XML document so it does not render it, as shown here: http://i53.tinypic.com/33vhfdd.jpg (parts blanked out for obvious reasons :D) How do I fix this issue? Thanks!
php
xml
echo
null
null
null
open
PHP Echo Problem? === I'm trying to get PHP to echo this: http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=<TrackRequest USERID=\"123456\"><TrackID ID=".$trackno."></TrackID></TrackRequest>"; However, when I open this page in my browser (FF4), only this shows up: http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML= The browser thinks that <TrackRequest> onwards is part of a XML document so it does not render it, as shown here: http://i53.tinypic.com/33vhfdd.jpg (parts blanked out for obvious reasons :D) How do I fix this issue? Thanks!
0
10,941,398
06/07/2012 23:50:01
1,140,019
01/10/2012 03:20:04
108
3
Why is there extra padding happening in my div?
I've coded my website for all browsers but of course IE has issues. Specifically only IE 7. I'm hoping to find a resolution to why it's behaving the way it is with two issues and what I can add so IE will display it properly. My submit buttons are aligning to the bottom of their containing divs. ![enter image description here][1] CSS for the SUBMIT button for the SEARCH field #searchform { /*container widget */ position: relative; left: 15px; width: 97%; height: 30px; background-color: #f3f3f3; border: 2px solid #742222;} #searchform label { display: none; } #searchform input#s { width: 75%; height: 20px;} input[type=text],input#s { margin: 0 10px 0 0; width: 60%; } #searchsubmit{ position: relative; float: right; width: 30px; height: 30px; text-indent: -999px; background: url(http://averylawoffice.ca/img/SEARCH-submit.jpg) center; border: 0px;} This CSS works in all browsers but IE version 7. Is there a way to make it top align without having to position absolute? [1]: http://i.stack.imgur.com/9w1Nu.png
css
internet-explorer
null
null
null
null
open
Why is there extra padding happening in my div? === I've coded my website for all browsers but of course IE has issues. Specifically only IE 7. I'm hoping to find a resolution to why it's behaving the way it is with two issues and what I can add so IE will display it properly. My submit buttons are aligning to the bottom of their containing divs. ![enter image description here][1] CSS for the SUBMIT button for the SEARCH field #searchform { /*container widget */ position: relative; left: 15px; width: 97%; height: 30px; background-color: #f3f3f3; border: 2px solid #742222;} #searchform label { display: none; } #searchform input#s { width: 75%; height: 20px;} input[type=text],input#s { margin: 0 10px 0 0; width: 60%; } #searchsubmit{ position: relative; float: right; width: 30px; height: 30px; text-indent: -999px; background: url(http://averylawoffice.ca/img/SEARCH-submit.jpg) center; border: 0px;} This CSS works in all browsers but IE version 7. Is there a way to make it top align without having to position absolute? [1]: http://i.stack.imgur.com/9w1Nu.png
0
2,504,094
03/23/2010 22:34:21
15,154
09/17/2008 06:38:47
5,125
198
WxPython, popup menus, callbacks and Windows XP
My goal: the user clicks a button. From the button pops up a two-level menu. The user clicks on something, and this triggers a callback which does stuff. Here is a minimal example: import wx class MyApp(wx.App): def OnInit(self): frame = TestFrame(None, -1, "Hello from wxPython") frame.Show(True) self.SetTopWindow(frame) return True class TestFrame(wx.Frame): def __init__(self, *args, **kw): wx.Frame.__init__(self, *args, **kw) sizer = wx.BoxSizer() button = wx.Button(self, label='Click me') sizer.Add(button) self.SetSizerAndFit(sizer) mainmenu = wx.Menu() next_id = 1000000 submenus = {} for title in ['Submenu 1', 'Submenu 2', 'Submenu 3']: mit = wx.MenuItem(mainmenu, id=next_id, text=title) submenu = wx.Menu() mit.SetSubMenu(submenu) mainmenu.AppendItem(mit) next_id = next_id + 1 submenus[title] = submenu items = [('Submenu 1', 'foo'), ('Submenu 1', 'bar'), ('Submenu 2', 'one'), ('Submenu 2', 'two'), ('Submenu 2', 'three'), ('Submenu 3', 'zif'), ('Submenu 3', 'zaf')] for title, item in items: submenu = submenus[title] mit = wx.MenuItem(submenu, id=next_id, text=item) submenu.AppendItem(mit) next_id = next_id + 1 def callback(e, title=title, item=item): print 'Item clicked: %s, %s' % (title, item) self.Bind(wx.EVT_MENU, callback, mit) def show(e): self.PopupMenu(mainmenu, button.GetPosition()) button.Bind(wx.EVT_BUTTON, show) app = MyApp(0) app.MainLoop() Also: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import wx >>> wx.version() '2.8.10.1 (msw-unicode)'
python
wxpython
windows-xp
null
null
null
open
WxPython, popup menus, callbacks and Windows XP === My goal: the user clicks a button. From the button pops up a two-level menu. The user clicks on something, and this triggers a callback which does stuff. Here is a minimal example: import wx class MyApp(wx.App): def OnInit(self): frame = TestFrame(None, -1, "Hello from wxPython") frame.Show(True) self.SetTopWindow(frame) return True class TestFrame(wx.Frame): def __init__(self, *args, **kw): wx.Frame.__init__(self, *args, **kw) sizer = wx.BoxSizer() button = wx.Button(self, label='Click me') sizer.Add(button) self.SetSizerAndFit(sizer) mainmenu = wx.Menu() next_id = 1000000 submenus = {} for title in ['Submenu 1', 'Submenu 2', 'Submenu 3']: mit = wx.MenuItem(mainmenu, id=next_id, text=title) submenu = wx.Menu() mit.SetSubMenu(submenu) mainmenu.AppendItem(mit) next_id = next_id + 1 submenus[title] = submenu items = [('Submenu 1', 'foo'), ('Submenu 1', 'bar'), ('Submenu 2', 'one'), ('Submenu 2', 'two'), ('Submenu 2', 'three'), ('Submenu 3', 'zif'), ('Submenu 3', 'zaf')] for title, item in items: submenu = submenus[title] mit = wx.MenuItem(submenu, id=next_id, text=item) submenu.AppendItem(mit) next_id = next_id + 1 def callback(e, title=title, item=item): print 'Item clicked: %s, %s' % (title, item) self.Bind(wx.EVT_MENU, callback, mit) def show(e): self.PopupMenu(mainmenu, button.GetPosition()) button.Bind(wx.EVT_BUTTON, show) app = MyApp(0) app.MainLoop() Also: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import wx >>> wx.version() '2.8.10.1 (msw-unicode)'
0
7,380,900
09/11/2011 20:08:34
897,756
08/17/2011 01:01:52
13
0
Tips to create a cool menu bar with semi-transparent drop downs such as...(see below)
Can someboy tell me how I can acheive the following or somethnig similar for a cool menu bar, etc,.? ![enter image description here][1] Any help would be greatly appreciated! Thanks! [1]: http://i.stack.imgur.com/uAlul.png
html
css
jquery-ui
html5
css3
09/12/2011 03:47:53
not a real question
Tips to create a cool menu bar with semi-transparent drop downs such as...(see below) === Can someboy tell me how I can acheive the following or somethnig similar for a cool menu bar, etc,.? ![enter image description here][1] Any help would be greatly appreciated! Thanks! [1]: http://i.stack.imgur.com/uAlul.png
1
9,359,071
02/20/2012 09:48:19
959,026
09/22/2011 11:52:44
28
2
Regarding analytics
I just wanted to know more about analytics. I am new to this thing. I was researching in google analytics and had a question that can I get it to work for subdomains? For example, my site is www.example.com and I am maintaining two different clients on www.example.com/myclient and ww.example.com/otherclient. Is is possible to get the analytics for two sub domains? If not with google analytics, then what would be the way? Links would help as well. Thanks in anticipation. Regards. BG
google-analytics
analytics
null
null
null
02/22/2012 22:54:59
not a real question
Regarding analytics === I just wanted to know more about analytics. I am new to this thing. I was researching in google analytics and had a question that can I get it to work for subdomains? For example, my site is www.example.com and I am maintaining two different clients on www.example.com/myclient and ww.example.com/otherclient. Is is possible to get the analytics for two sub domains? If not with google analytics, then what would be the way? Links would help as well. Thanks in anticipation. Regards. BG
1
5,926,357
05/08/2011 08:14:27
730,404
04/29/2011 03:09:40
7
0
C++ OpenGL Books
i would like to know what the best Books for learning OpenGL with C++ the preferably dont use GLUT i am leaning towards getting the OpenGL super bible...but i thought i should ask here before i went and bought it. i know this is probably a dup...but all the posts i have seen are out dated... :"( or any other wealth of information that is up to date about OpenGL with C++ ( i am using nehe atm)
c++
opengl
books
null
null
09/27/2011 14:02:35
not constructive
C++ OpenGL Books === i would like to know what the best Books for learning OpenGL with C++ the preferably dont use GLUT i am leaning towards getting the OpenGL super bible...but i thought i should ask here before i went and bought it. i know this is probably a dup...but all the posts i have seen are out dated... :"( or any other wealth of information that is up to date about OpenGL with C++ ( i am using nehe atm)
4
6,997,572
08/09/2011 14:15:07
1,088,570
07/05/2011 21:41:11
131
0
Help -- filling the forms automatically
I need to create a form for the field: id After entering the value for the id, the id needs to be matched in Database and the values obtained from the Database should be filled in the other forms. i.e., the value of the title from the database should be filled in title form(input type="text") of the html. this title field will also be present on the same page of the id field. i.e., there will be a id field followed by a submit button after submitting the id the associated values of the id will be fetched and will be filled in the other form structures on the same page. Can you suggest me how to do this. Help appreciated and thanks for u r time.
php
jquery
mysql
html
ajax
08/10/2011 16:10:07
not a real question
Help -- filling the forms automatically === I need to create a form for the field: id After entering the value for the id, the id needs to be matched in Database and the values obtained from the Database should be filled in the other forms. i.e., the value of the title from the database should be filled in title form(input type="text") of the html. this title field will also be present on the same page of the id field. i.e., there will be a id field followed by a submit button after submitting the id the associated values of the id will be fetched and will be filled in the other form structures on the same page. Can you suggest me how to do this. Help appreciated and thanks for u r time.
1
11,606,337
07/23/2012 04:01:51
556,298
12/28/2010 18:36:09
86
0
Trouble Showing User List with Tags acts_as_taggable_on
I'm using act_as_taggable_on plugin, would like to display a list of users for a specific tag but my query is empty. Here is my code: **users_controller.rb** class UsersController < ApplicationController def index @users = User.all @search = User.tagged_with(@tag, :on => :tags) end end **user.rb model** class User < ActiveRecord::Base attr_accessible :name, :tag_list acts_as_taggable_on :tags scope :by_join_date, order("created_at DESC") end **index.html.erb** Users: <%= form_tag users_path, :method => 'get' do %> <p> <%= text_field_tag :search, @tag %> <% @search.each do |u| %> <%= u.name %> <% end %> <%= submit_tag "Search" %> </p> <% end %>
ruby-on-rails-3
acts-as-taggable-on
null
null
null
null
open
Trouble Showing User List with Tags acts_as_taggable_on === I'm using act_as_taggable_on plugin, would like to display a list of users for a specific tag but my query is empty. Here is my code: **users_controller.rb** class UsersController < ApplicationController def index @users = User.all @search = User.tagged_with(@tag, :on => :tags) end end **user.rb model** class User < ActiveRecord::Base attr_accessible :name, :tag_list acts_as_taggable_on :tags scope :by_join_date, order("created_at DESC") end **index.html.erb** Users: <%= form_tag users_path, :method => 'get' do %> <p> <%= text_field_tag :search, @tag %> <% @search.each do |u| %> <%= u.name %> <% end %> <%= submit_tag "Search" %> </p> <% end %>
0
11,719,857
07/30/2012 10:41:55
383,691
07/05/2010 12:49:15
1,042
39
Updating a TextView value every 3 seconds
I am a PHP developer, who is new to Android development and Java so please bear with me. I am developing an extremely simple app for testing and learning purposes. when the user clicks my app icon, they are presented with a loading screen. I have a TextView with a progress bar underneath. TextView XML code: <TextView android:id="@+id/loadingMessage1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/progressBar1" android:layout_centerHorizontal="true" android:layout_marginBottom="22dp" android:text="@string/loading1" /> The value is set to the string loading1 in strings.xml <string name="loading1">Loading Message 1</string> In my loadingscreen.java i have: package com.example.myfirstapp; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.TextView; public class LoadingScreen extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_loading_screen); TextView loadingMessage1 = (TextView)this.findViewById(R.id.loadingMessage1); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_loading_screen, menu); return true; } } Notice I have the code: TextView loadingMessage1 = (TextView)this.findViewById(R.id.loadingMessage1); Which I think references the text view. What I want to happen is that every 3 seconds a different message appears. So loading message 1... (3 secs) loading message 2... (3 secs) loading message 3.. after loading message 3 i would like a button to replace the progress bar.
java
android
textview
null
null
null
open
Updating a TextView value every 3 seconds === I am a PHP developer, who is new to Android development and Java so please bear with me. I am developing an extremely simple app for testing and learning purposes. when the user clicks my app icon, they are presented with a loading screen. I have a TextView with a progress bar underneath. TextView XML code: <TextView android:id="@+id/loadingMessage1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/progressBar1" android:layout_centerHorizontal="true" android:layout_marginBottom="22dp" android:text="@string/loading1" /> The value is set to the string loading1 in strings.xml <string name="loading1">Loading Message 1</string> In my loadingscreen.java i have: package com.example.myfirstapp; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.TextView; public class LoadingScreen extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_loading_screen); TextView loadingMessage1 = (TextView)this.findViewById(R.id.loadingMessage1); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_loading_screen, menu); return true; } } Notice I have the code: TextView loadingMessage1 = (TextView)this.findViewById(R.id.loadingMessage1); Which I think references the text view. What I want to happen is that every 3 seconds a different message appears. So loading message 1... (3 secs) loading message 2... (3 secs) loading message 3.. after loading message 3 i would like a button to replace the progress bar.
0
7,658,367
10/05/2011 08:04:44
575,376
01/14/2011 08:06:27
74
4
How to use Boost smart paointers in real-life
I read the boost book on: http://en.highscore.de/cpp/boost/ I saw many simple examples of boost smart pointer usage. And now I want to start using it. But there are no non-trivial examples of using boost smart pointers. It's all like 3 lines of code using pointers in one method. No passing pointers to methods and so on. Can someone please provide a little more real-life example of using smart pointers, especially shared_ptr?
c++
boost
smart-pointers
null
null
10/05/2011 08:24:32
not a real question
How to use Boost smart paointers in real-life === I read the boost book on: http://en.highscore.de/cpp/boost/ I saw many simple examples of boost smart pointer usage. And now I want to start using it. But there are no non-trivial examples of using boost smart pointers. It's all like 3 lines of code using pointers in one method. No passing pointers to methods and so on. Can someone please provide a little more real-life example of using smart pointers, especially shared_ptr?
1
8,430,808
12/08/2011 12:09:03
348,311
05/23/2010 14:58:10
769
27
linking MySQL tables via foreign keys
I have created multiple tables in MySQL, yet data in some fields in one or more table should exist in other tables. I know that this can be created by adding foreign key to the table. I would like to know how this can be done. Please note that on deletion of any record all linked should NOT be deleted ... the value can be changed to null. I'll manage it in other way. PS: I just need the code to do this.
mysql
database
null
null
null
12/08/2011 12:57:30
not a real question
linking MySQL tables via foreign keys === I have created multiple tables in MySQL, yet data in some fields in one or more table should exist in other tables. I know that this can be created by adding foreign key to the table. I would like to know how this can be done. Please note that on deletion of any record all linked should NOT be deleted ... the value can be changed to null. I'll manage it in other way. PS: I just need the code to do this.
1
11,651,137
07/25/2012 13:43:21
1,418,747
05/26/2012 07:16:36
1
0
Which python web framework has more tutorials / books / documentation and more resources to learn?
i know python well, i listed out to learn Django but the django book is 2 yrs old, only updated documentation is there, is this enough for learning Django? Can you tell any other Framework with has pretty decent documentation / books / tutorials than Django and as powerful as Django? Thanks in Advance
python
django
web-frameworks
null
null
07/25/2012 13:59:06
not constructive
Which python web framework has more tutorials / books / documentation and more resources to learn? === i know python well, i listed out to learn Django but the django book is 2 yrs old, only updated documentation is there, is this enough for learning Django? Can you tell any other Framework with has pretty decent documentation / books / tutorials than Django and as powerful as Django? Thanks in Advance
4
2,672,772
04/20/2010 05:30:45
320,990
04/20/2010 05:30:45
1
0
Is FastCGI still a right answer?
FastCGI is old but it still seems like it must be the right answer in some cases. It seems like the preferred deployment of Perl/Catalyst web applications is with FastCGI. FastCGI was popular with Rails but seems to no longer be. (Why?) The Java world doesn't seem to have anything to do with FastCGI. Is something like Tomcat way better than Apache+FastCGI? Is choosing FastCGI still a good idea or just a lingering technology? Ted
fastcgi
null
null
null
null
null
open
Is FastCGI still a right answer? === FastCGI is old but it still seems like it must be the right answer in some cases. It seems like the preferred deployment of Perl/Catalyst web applications is with FastCGI. FastCGI was popular with Rails but seems to no longer be. (Why?) The Java world doesn't seem to have anything to do with FastCGI. Is something like Tomcat way better than Apache+FastCGI? Is choosing FastCGI still a good idea or just a lingering technology? Ted
0
3,266,892
07/16/2010 16:16:49
340,819
05/14/2010 00:54:11
1,158
70
Is there a web browser that automatically looks for an /images directory?
In my error log there are a bunch of lines like this (line breaks added for legibility): [Thu Jul 15 22:20:14 2010] [error] [client 76.199.65.55] File does not exist: /home/[snip]/public_html/brass/images, referer: http://brass.orderofthehammer.com/index.php All of the lines are from the same IP address. Looking at the pattern of pages visited, it seems likely to be a regular user of the site. There's no such directory as `/images`. Is there some browser out there that automatically looks for an `/images` directory for some reason?
website
error-log
file-not-found
null
null
07/18/2010 01:51:37
off topic
Is there a web browser that automatically looks for an /images directory? === In my error log there are a bunch of lines like this (line breaks added for legibility): [Thu Jul 15 22:20:14 2010] [error] [client 76.199.65.55] File does not exist: /home/[snip]/public_html/brass/images, referer: http://brass.orderofthehammer.com/index.php All of the lines are from the same IP address. Looking at the pattern of pages visited, it seems likely to be a regular user of the site. There's no such directory as `/images`. Is there some browser out there that automatically looks for an `/images` directory for some reason?
2
1,005,781
06/17/2009 08:28:25
55,891
01/16/2009 16:09:38
100
3
MVC Models & Controllers where what to write
We have started using MVC framework and now we are bit confused where to business-logic, in controllers or models? For the project we are going to use WCF layer as DAL. People have different views on Model & Controller, and think differently of writing business logic either in 'M' or 'C'. What is the best practice? I believe we will be accessing WCF (DAL) service in Model and applying all the business logic or filtering and then Controller accessing the data from Model.
asp.net-mvc
null
null
null
null
null
open
MVC Models & Controllers where what to write === We have started using MVC framework and now we are bit confused where to business-logic, in controllers or models? For the project we are going to use WCF layer as DAL. People have different views on Model & Controller, and think differently of writing business logic either in 'M' or 'C'. What is the best practice? I believe we will be accessing WCF (DAL) service in Model and applying all the business logic or filtering and then Controller accessing the data from Model.
0
943,817
06/03/2009 09:23:00
53,262
01/09/2009 09:32:42
1,324
17
What would you like your software developers to learn?
As a manager, what would you like the software developers under your management to learn? It might be knowledge of some specific technology/software engineering skill/some other skill or knowledge, or what?
untagged
null
null
null
null
07/12/2011 16:37:38
not constructive
What would you like your software developers to learn? === As a manager, what would you like the software developers under your management to learn? It might be knowledge of some specific technology/software engineering skill/some other skill or knowledge, or what?
4
6,443,556
06/22/2011 16:51:43
807,019
06/20/2011 16:29:42
1
0
I want to download the Chrome OS source from git so I can have a look through it. How can I do this from a mac?
I have no experience with Git I'm afraid! Thanks! (This is the link http://git.chromium.org/gitweb/)
git
download
source
google-chrome-os
null
06/23/2011 01:10:59
off topic
I want to download the Chrome OS source from git so I can have a look through it. How can I do this from a mac? === I have no experience with Git I'm afraid! Thanks! (This is the link http://git.chromium.org/gitweb/)
2
11,651,087
07/25/2012 13:40:28
1,539,776
07/20/2012 05:16:04
1
0
jquery pre loader
i want to create a json object in java which will be returned to a JS by a ajax call JSON should have a format like this . I want to create some method which return JSONOdata which have structure like given bellow . var JSONOdata = { "val": [ { "elementName": "Shopping", "elementVal": "350", "color": "#378284", "elementData": "shopping data" }, { "elementName": "Cash", "elementVal": "50", "color": "#00FFFF", "elementData": "cash data" }, { "elementName": "Boat", "elementVal": "150", "color": "#933015", "elementData": "boat data" }, { "elementName": "Gas", "elementVal": "250", "color": "#0000A0", "elementData": "gas data" }, { "elementName": "Movies", "elementVal": "100", "color": "#6A786E", "elementData": "movies data" }, { "elementName": "Restaurants", "elementVal": "250", "color": "#ADD8E6", "elementData": "restaurant data" } ] };
java
json
null
null
null
07/25/2012 13:58:12
not a real question
jquery pre loader === i want to create a json object in java which will be returned to a JS by a ajax call JSON should have a format like this . I want to create some method which return JSONOdata which have structure like given bellow . var JSONOdata = { "val": [ { "elementName": "Shopping", "elementVal": "350", "color": "#378284", "elementData": "shopping data" }, { "elementName": "Cash", "elementVal": "50", "color": "#00FFFF", "elementData": "cash data" }, { "elementName": "Boat", "elementVal": "150", "color": "#933015", "elementData": "boat data" }, { "elementName": "Gas", "elementVal": "250", "color": "#0000A0", "elementData": "gas data" }, { "elementName": "Movies", "elementVal": "100", "color": "#6A786E", "elementData": "movies data" }, { "elementName": "Restaurants", "elementVal": "250", "color": "#ADD8E6", "elementData": "restaurant data" } ] };
1
2,528,797
03/27/2010 09:50:30
297,985
03/20/2010 12:34:01
21
0
Writing a regex in Latex
In a Latex Report I am making I have to write a regex. There is only one in the whole report, so I don't really want to use packages and so on. This is the regex I am talking about: ^\"((\w|\s)+)\"$ I came up with this for Latex: \grave{ }\backslash\"'((\backslash w\| \backslash s)+)\backslash \"' \backslash \$ This gives me like 10 errors, and I can't really see what is wrong. Okay, it looks pretty bad but all the commands should work.. Thanks in advance, Harm
latex
regex
null
null
null
null
open
Writing a regex in Latex === In a Latex Report I am making I have to write a regex. There is only one in the whole report, so I don't really want to use packages and so on. This is the regex I am talking about: ^\"((\w|\s)+)\"$ I came up with this for Latex: \grave{ }\backslash\"'((\backslash w\| \backslash s)+)\backslash \"' \backslash \$ This gives me like 10 errors, and I can't really see what is wrong. Okay, it looks pretty bad but all the commands should work.. Thanks in advance, Harm
0
10,968,434
06/10/2012 11:51:00
1,447,277
06/10/2012 11:41:09
1
0
How does Matt Haughey's blog insert rosettes in each post title?
Sorry this is so basic, but I'm a beginner. Matt Haughey's blog, [A Whole Lotta Nothing][1], inserts rosettes under each post title as part of his post template. - How can I use Firebug to find where in his CSS these rosettes come from? I've tried inspecting the entry-header element but I'm not seeing anything that that seems tied to the rosettes. - Am I right in guessing that those rosettes are unicode characters, or is there something else at work? Thanks! [1]: http://a.wholelottanothing.org/
css
firebug
null
null
null
06/11/2012 09:11:18
too localized
How does Matt Haughey's blog insert rosettes in each post title? === Sorry this is so basic, but I'm a beginner. Matt Haughey's blog, [A Whole Lotta Nothing][1], inserts rosettes under each post title as part of his post template. - How can I use Firebug to find where in his CSS these rosettes come from? I've tried inspecting the entry-header element but I'm not seeing anything that that seems tied to the rosettes. - Am I right in guessing that those rosettes are unicode characters, or is there something else at work? Thanks! [1]: http://a.wholelottanothing.org/
3
8,869,221
01/15/2012 11:08:44
30,453
10/22/2008 17:35:03
7,305
155
how to extract anonymous function to named function?
is there any tool that allows you to do simple refactroing? for example extract anonymous function to named function?
javascript
asp.net
eclipse
refactoring
aptana
04/17/2012 09:47:10
not a real question
how to extract anonymous function to named function? === is there any tool that allows you to do simple refactroing? for example extract anonymous function to named function?
1
8,593,861
12/21/2011 17:29:40
745,603
05/09/2011 18:02:01
206
4
Passing std::set to method in C++
Given the following prerequisits: struct A { int x; int y; } typedef set<A> setOfA; setOfA setinstance; I want to pass a `setOfA` to a function with the signature void functionF(setOfA&); by invoking Implementation* i = new Implementation(); i->functionF(setinstance); Everything should be fine, but the linker says undefined reference to `implementation::functionF(std::set<A, std::less<A>, std::allocator<A> >&)' Just to get it right - the implementation could not be found, right? This cannot be a typedef problem, because everything compiles just fine... What am I missing here?
c++
set
pass-by-reference
std
null
12/22/2011 07:54:22
too localized
Passing std::set to method in C++ === Given the following prerequisits: struct A { int x; int y; } typedef set<A> setOfA; setOfA setinstance; I want to pass a `setOfA` to a function with the signature void functionF(setOfA&); by invoking Implementation* i = new Implementation(); i->functionF(setinstance); Everything should be fine, but the linker says undefined reference to `implementation::functionF(std::set<A, std::less<A>, std::allocator<A> >&)' Just to get it right - the implementation could not be found, right? This cannot be a typedef problem, because everything compiles just fine... What am I missing here?
3
5,948,812
05/10/2011 10:43:41
495,057
11/02/2010 17:42:07
8
0
usbmount scripting
I'm trying to create a script that will automatically format a USB flash drive when inserted, However there is an internal usb flash drive in the device, how would I go about making an exclusion of that device (unit will never turn on again if this drive is formatted). Thanks!
linux
command-line
null
null
null
null
open
usbmount scripting === I'm trying to create a script that will automatically format a USB flash drive when inserted, However there is an internal usb flash drive in the device, how would I go about making an exclusion of that device (unit will never turn on again if this drive is formatted). Thanks!
0
4,864,233
02/01/2011 15:10:53
596,881
01/31/2011 13:03:01
1
0
error: incompatible type for argument 1 of QTGetTimeInterval
still have problem with this part of code: @interface MYAccessMp3Tags: NSObject { NSTimeInterval duration; NSTimeInterval currentTime; } -(NSTimeInterval) durationInSeconds; -(NSTimeInterval) currentTimeInSeconds; -(NSDictionary *) metadata; -(NSString *) metadataDescription; -(NSString *) loadStateDescription; @property (nonatomic) NSTimeInterval duration; @property (nonatomic) NSTimeInterval currentTime; @end @implementation MYAccessMp3Tags; @synthesize duration; @synthesize currentTime; -(NSTimeInterval) durationInSeconds { NSTimeInterval dur; QTGetTimeInterval([self duration], &dur); //error: incompatible type for argument 1 of QTGetTimeInterval return duration; } -(NSTimeInterval) currentTimeInSeconds { NSTimeInterval currTime; QTGetTimeInterval([self currentTime], &currTime); //error: incompatible type for argument 1 of QTGetTimeInterval return currentTime; } what's wrong here?
objective-c
null
null
null
null
null
open
error: incompatible type for argument 1 of QTGetTimeInterval === still have problem with this part of code: @interface MYAccessMp3Tags: NSObject { NSTimeInterval duration; NSTimeInterval currentTime; } -(NSTimeInterval) durationInSeconds; -(NSTimeInterval) currentTimeInSeconds; -(NSDictionary *) metadata; -(NSString *) metadataDescription; -(NSString *) loadStateDescription; @property (nonatomic) NSTimeInterval duration; @property (nonatomic) NSTimeInterval currentTime; @end @implementation MYAccessMp3Tags; @synthesize duration; @synthesize currentTime; -(NSTimeInterval) durationInSeconds { NSTimeInterval dur; QTGetTimeInterval([self duration], &dur); //error: incompatible type for argument 1 of QTGetTimeInterval return duration; } -(NSTimeInterval) currentTimeInSeconds { NSTimeInterval currTime; QTGetTimeInterval([self currentTime], &currTime); //error: incompatible type for argument 1 of QTGetTimeInterval return currentTime; } what's wrong here?
0
5,253,837
03/09/2011 23:54:29
652,630
03/09/2011 23:50:50
1
0
android copy file from assets to sd
here is the code that works fine for me: AssetManager am = getAssets(); try { String fileName = "test.txt"; File destinationFile = new File(Environment.getExternalStorageDirectory()+"/GpsSpeedTalker/chart/" + fileName); InputStream in = am.open("header.txt"); FileOutputStream f = new FileOutputStream(destinationFile); byte[] buffer = new byte[1024]; int len1 = 0; while ((len1 = in.read(buffer)) > 0) { f.write(buffer, 0, len1); } f.close(); } catch (Exception e) { Log.d("CopyFileFromAssetsToSD", e.getMessage()); }
java
android
file
copy
assets
03/10/2011 03:30:48
not a real question
android copy file from assets to sd === here is the code that works fine for me: AssetManager am = getAssets(); try { String fileName = "test.txt"; File destinationFile = new File(Environment.getExternalStorageDirectory()+"/GpsSpeedTalker/chart/" + fileName); InputStream in = am.open("header.txt"); FileOutputStream f = new FileOutputStream(destinationFile); byte[] buffer = new byte[1024]; int len1 = 0; while ((len1 = in.read(buffer)) > 0) { f.write(buffer, 0, len1); } f.close(); } catch (Exception e) { Log.d("CopyFileFromAssetsToSD", e.getMessage()); }
1
4,121,970
11/08/2010 07:26:52
243,797
01/05/2010 09:51:45
86
5
jQueryUI Dialog - style not generated for buttons
I use the the following code to show a dialog with jQuery UI: var $dialog = $('<div></div>') .text(msg) .dialog({ autoOpen: false, height: 140, modal: true, title: "Confirm", buttons: { "Yes": function() { $(this).dialog('close'); }, "Cancel": function() { $(this).dialog('close'); } } }); $dialog.dialog('open'); However, the buttons have no styles. I notice that the HTML generated for the buttons are: <div class="ui-dialog-buttonset"> <button>Yes</button> <button>Cancel</button> </div> From the jQuery UI demos it is: <div class="ui-dialog-buttonset"> <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Ok</span></button> <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Cancel</span></button> </div> I.e. the CSS styles are missing. Do you know why?
jquery-ui
null
null
null
null
null
open
jQueryUI Dialog - style not generated for buttons === I use the the following code to show a dialog with jQuery UI: var $dialog = $('<div></div>') .text(msg) .dialog({ autoOpen: false, height: 140, modal: true, title: "Confirm", buttons: { "Yes": function() { $(this).dialog('close'); }, "Cancel": function() { $(this).dialog('close'); } } }); $dialog.dialog('open'); However, the buttons have no styles. I notice that the HTML generated for the buttons are: <div class="ui-dialog-buttonset"> <button>Yes</button> <button>Cancel</button> </div> From the jQuery UI demos it is: <div class="ui-dialog-buttonset"> <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Ok</span></button> <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Cancel</span></button> </div> I.e. the CSS styles are missing. Do you know why?
0
6,076,093
05/20/2011 18:21:04
193,643
10/21/2009 07:57:33
340
6
Allow dots in URL using regex
How can I allow a dot in an URL using Regex? Any advice? thanks
regex
url
url-routing
dot
null
05/20/2011 23:33:59
not a real question
Allow dots in URL using regex === How can I allow a dot in an URL using Regex? Any advice? thanks
1
7,416,497
09/14/2011 12:41:35
83,119
03/26/2009 13:33:04
2,083
101
How do I limit the number of rows per id on an oracle database?
I want to store the last 20 products a user has looked at. If the user browses to product number 21 the oldest of the records should be deleted from the ORACLE database. The table contains the recently viewed products of all the users in the system. So basically I need to check if user X has over Y records in a table and if so delete the oldest records so that user X only ever has Y records in the recently viewed products table. Any help would be appreciated. Here is an attempt I have made which does not work correctly. DELETE FROM VIEWED_PRODUCT WHERE id NOT IN ( SELECT id FROM ( SELECT * FROM ( SELECT id FROM VIEWED_PRODUCT WHERE MY_ID = 1626 ORDER BY CREATED_AT DESC ) WHERE ROWNUM <= 20 ) z ); Thanks.
sql
oracle
null
null
null
null
open
How do I limit the number of rows per id on an oracle database? === I want to store the last 20 products a user has looked at. If the user browses to product number 21 the oldest of the records should be deleted from the ORACLE database. The table contains the recently viewed products of all the users in the system. So basically I need to check if user X has over Y records in a table and if so delete the oldest records so that user X only ever has Y records in the recently viewed products table. Any help would be appreciated. Here is an attempt I have made which does not work correctly. DELETE FROM VIEWED_PRODUCT WHERE id NOT IN ( SELECT id FROM ( SELECT * FROM ( SELECT id FROM VIEWED_PRODUCT WHERE MY_ID = 1626 ORDER BY CREATED_AT DESC ) WHERE ROWNUM <= 20 ) z ); Thanks.
0
5,008,520
02/15/2011 19:26:02
618,107
02/15/2011 15:47:55
36
2
WCF Want to Implement Client progress update
I have a duplex WCF service that clients connect to and wait for commands. The structure of the application is as below. GUI(Asp.net)------------>WCF Service------------------>WCF Client The from Asp.net pages you can run Gallio/MB Unit Tests. Those are passed to the Service and the service asks the client(s) to run the tests. It's all working good. What i want to implement now is to update the Asp.net application with the status of the test. So if the user wants to run a whole assembly of tests at least i should know on the Asp.NET application which test is running and possibly the percentage of the test that is completed. Any help on how to go about this / what approach to take is greatly appreciated. Thanks
c#
asp.net
wcf
mbunit
gallio
null
open
WCF Want to Implement Client progress update === I have a duplex WCF service that clients connect to and wait for commands. The structure of the application is as below. GUI(Asp.net)------------>WCF Service------------------>WCF Client The from Asp.net pages you can run Gallio/MB Unit Tests. Those are passed to the Service and the service asks the client(s) to run the tests. It's all working good. What i want to implement now is to update the Asp.net application with the status of the test. So if the user wants to run a whole assembly of tests at least i should know on the Asp.NET application which test is running and possibly the percentage of the test that is completed. Any help on how to go about this / what approach to take is greatly appreciated. Thanks
0
8,209,680
11/21/2011 09:28:23
579,580
01/18/2011 07:59:44
137
32
Why does the following java statement compiles successfully?
I wonder why it makes sense to have an empty try block followed by catching specific exception? Any thoughts? <code> try { } catch (Exception e) { // do nothing } </code>
java
compilation
compiler-errors
null
null
null
open
Why does the following java statement compiles successfully? === I wonder why it makes sense to have an empty try block followed by catching specific exception? Any thoughts? <code> try { } catch (Exception e) { // do nothing } </code>
0
5,378,175
03/21/2011 13:24:27
338,322
05/11/2010 13:46:23
73
5
How to play a sound file using openAL command from particular time instant (Time input is double or float)
I want to know if there is a command in openAL that can be used to play a sound file from particular time instant ( seek time). Like if I am using a slider and slide it , once I release the slider, the sound file should play from that particular instant. I have implemented it for iOS. But I have not found this openAL method that can play file from particular time instant. alSourcei(sourceID, AL_BUFFER, 0); alSourcei(sourceID, AL_BUFFER, bufferID); // Set the pitch and gain of the source alSourcef(sourceID, AL_PITCH, aPitch); alSourcef(sourceID, AL_GAIN, aGain * fxVolume); if(aLoop) { alSourcei(sourceID, AL_LOOPING, AL_TRUE); } else { alSourcei(sourceID, AL_LOOPING, AL_FALSE); } // Set the source location alSource3f(sourceID, AL_POSITION, aLocation.x, aLocation.y, 0.0f); **Here we play the sound *** alSourcePlay(sourceID); Executing above code always play the sound track from initial position. I want to know if there i any mehthod in openAL that can seek the track from some particular time instant. Help!!!!!!!!
iphone
opengl-es
audio
openal
null
null
open
How to play a sound file using openAL command from particular time instant (Time input is double or float) === I want to know if there is a command in openAL that can be used to play a sound file from particular time instant ( seek time). Like if I am using a slider and slide it , once I release the slider, the sound file should play from that particular instant. I have implemented it for iOS. But I have not found this openAL method that can play file from particular time instant. alSourcei(sourceID, AL_BUFFER, 0); alSourcei(sourceID, AL_BUFFER, bufferID); // Set the pitch and gain of the source alSourcef(sourceID, AL_PITCH, aPitch); alSourcef(sourceID, AL_GAIN, aGain * fxVolume); if(aLoop) { alSourcei(sourceID, AL_LOOPING, AL_TRUE); } else { alSourcei(sourceID, AL_LOOPING, AL_FALSE); } // Set the source location alSource3f(sourceID, AL_POSITION, aLocation.x, aLocation.y, 0.0f); **Here we play the sound *** alSourcePlay(sourceID); Executing above code always play the sound track from initial position. I want to know if there i any mehthod in openAL that can seek the track from some particular time instant. Help!!!!!!!!
0
8,034,280
11/07/2011 08:39:10
104,450
05/10/2009 19:00:07
1,066
24
Where do I get Xcode 4.1 for Lion
Where should I download Xcode 4.1 for OSX Lion?
ios
xcode
null
null
null
11/07/2011 09:01:12
off topic
Where do I get Xcode 4.1 for Lion === Where should I download Xcode 4.1 for OSX Lion?
2
9,133,435
02/03/2012 18:14:25
545,139
12/16/2010 18:03:07
124
0
Refresh Ember.CollectionView on contentBinding reordering
I have an `VenuesView` bound to `VenuesController` through contentBinding. window.VenuesView = Em.CollectionView.extend contentBinding: 'VenuesController' itemViewClass: VenueView window.VenuesController = Em.SortableController.create content: [10, 11, 3, 101, 500, 2] For some reason sorting / reordering `VenuesController.content` doesn't update the page, but any other operation on it does. # Doesn't update DOM VenuesController.set('content', VenuesController.get('content').sort()) # Updates DOM, but clears table and messes up users scroll position. c = VenuesController.get('content').sort() VenuesController.set('content', []) VenuesController.set('content', c) Does anyone how to re-render the view after reordering content without emptying and repopulating the array?
sproutcore
sproutcore-2
sproutcore-views
sproutcore-controllers
null
null
open
Refresh Ember.CollectionView on contentBinding reordering === I have an `VenuesView` bound to `VenuesController` through contentBinding. window.VenuesView = Em.CollectionView.extend contentBinding: 'VenuesController' itemViewClass: VenueView window.VenuesController = Em.SortableController.create content: [10, 11, 3, 101, 500, 2] For some reason sorting / reordering `VenuesController.content` doesn't update the page, but any other operation on it does. # Doesn't update DOM VenuesController.set('content', VenuesController.get('content').sort()) # Updates DOM, but clears table and messes up users scroll position. c = VenuesController.get('content').sort() VenuesController.set('content', []) VenuesController.set('content', c) Does anyone how to re-render the view after reordering content without emptying and repopulating the array?
0
7,777,628
10/15/2011 11:44:51
840,418
07/12/2011 09:38:42
3
2
Samsung Nexus S Android version 2.3.4 Camera show black screen
I developed camera application which work fine except Samsung Nexus S Android version 2.3.4. It show black screen when i start my application. Thanks in Advance......
android
null
null
null
null
10/15/2011 12:09:33
not a real question
Samsung Nexus S Android version 2.3.4 Camera show black screen === I developed camera application which work fine except Samsung Nexus S Android version 2.3.4. It show black screen when i start my application. Thanks in Advance......
1
7,058,011
08/14/2011 16:13:36
672,923
03/23/2011 11:30:00
257
0
What is Cascade Detach within Doctrine 2?
All in the title :) I like to understand what is the Cascade Detach thing? I can understand what is a Cascade Remove or something. Thank you
doctrine2
cascade
null
null
null
null
open
What is Cascade Detach within Doctrine 2? === All in the title :) I like to understand what is the Cascade Detach thing? I can understand what is a Cascade Remove or something. Thank you
0
1,057,420
06/29/2009 09:35:03
2,961
08/26/2008 09:02:24
3,283
144
How to deal with silent mysql sum() integer overflow?
I've go this table with an `int(11)` column and hundreds of millions of rows. When I run a query (mysql cli client on Ubuntu) like SELECT SUM(myIntColumn) as foo FROM myTable; the return value does not make sense--it is smaller than the the single largest max value. My values for this column max out somewhere around 500m, and the signed int should be able to handle ~2bil, so I assume mysql is experiancing an integer overflow, and keeping mum about it. What to do? *Miscellaneous details that might just matter but probably not:* - `mysql Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (x86_64) using readline 5.2` - `mysqld Ver 5.0.75-0ubuntu10 for debian-linux-gnu on x86_64 ((Ubuntu))` - `Linux kona 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux`
mysql
overflow
sum
sql
null
null
open
How to deal with silent mysql sum() integer overflow? === I've go this table with an `int(11)` column and hundreds of millions of rows. When I run a query (mysql cli client on Ubuntu) like SELECT SUM(myIntColumn) as foo FROM myTable; the return value does not make sense--it is smaller than the the single largest max value. My values for this column max out somewhere around 500m, and the signed int should be able to handle ~2bil, so I assume mysql is experiancing an integer overflow, and keeping mum about it. What to do? *Miscellaneous details that might just matter but probably not:* - `mysql Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (x86_64) using readline 5.2` - `mysqld Ver 5.0.75-0ubuntu10 for debian-linux-gnu on x86_64 ((Ubuntu))` - `Linux kona 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux`
0
10,139,620
04/13/2012 11:02:36
358,406
06/04/2010 11:52:20
599
24
Integrating java class to be used in vb.net application
I have been asked to create a project in vb.net which needs to integrate a java class created by Apple (Autoingestion.class) to pull sales records and so on. I found out a couple of questions here on stackoverflow but none of the answers given worked for me when trying to integrate this java class in my .net application. For example [this question][1] seemed to be what I really needed but when trying to compile this java class (I decompiled it first using Java Decompiler), it generally throws some errors. All I need is to use this class in my application to invoke a method. Does anyone know how to pull this out without much ninja-ing? [1]: http://stackoverflow.com/questions/512124/use-a-jar-java-library-api-in-c
java
vb.net
apple
null
null
null
open
Integrating java class to be used in vb.net application === I have been asked to create a project in vb.net which needs to integrate a java class created by Apple (Autoingestion.class) to pull sales records and so on. I found out a couple of questions here on stackoverflow but none of the answers given worked for me when trying to integrate this java class in my .net application. For example [this question][1] seemed to be what I really needed but when trying to compile this java class (I decompiled it first using Java Decompiler), it generally throws some errors. All I need is to use this class in my application to invoke a method. Does anyone know how to pull this out without much ninja-ing? [1]: http://stackoverflow.com/questions/512124/use-a-jar-java-library-api-in-c
0
4,717,394
01/17/2011 20:11:23
197,606
10/27/2009 19:49:00
2,252
95
jQuery rotating banner
I'm looking for a jQuery rotating banner that I can use my own image thumbnails/layout for that I can just div tags instead of simple images. I found this one: http://malsup.com/jquery/cycle/lite/ but it's a bit outdated
jquery
rotating-banner
null
null
null
null
open
jQuery rotating banner === I'm looking for a jQuery rotating banner that I can use my own image thumbnails/layout for that I can just div tags instead of simple images. I found this one: http://malsup.com/jquery/cycle/lite/ but it's a bit outdated
0
4,013,764
10/25/2010 10:42:01
350,794
05/26/2010 10:27:52
189
11
windows notify icon c# change message without refresh
How do I change the message displayed within the notify icon baloon tip without the baloon refreshing. I want to show a countdown timer before the application carries out an event and I want to use the onclick to cancel the event when the user clicks it. Thanks Sp
c#
null
null
null
null
null
open
windows notify icon c# change message without refresh === How do I change the message displayed within the notify icon baloon tip without the baloon refreshing. I want to show a countdown timer before the application carries out an event and I want to use the onclick to cancel the event when the user clicks it. Thanks Sp
0
11,394,640
07/09/2012 12:03:39
621,727
02/17/2011 16:16:50
64
1
Pros and Cons of IDs at the end of the URL
Some web applications with restful URLs like Foursquare (https://foursquare.com/v/restaurante-baobab/4bed589a75feef3b8d0197e6) put ID's at the end of the URL, others like StackOverflow (http://stackoverflow.com/questions/11387265/ids-at-the-end-of-the-url-seo) put them in the middle, just before the title slug.. In your opinion wish one is best for information management and performance? What is the impact in terms of SEO?
url
rest
seo
ids
null
07/11/2012 01:43:11
not constructive
Pros and Cons of IDs at the end of the URL === Some web applications with restful URLs like Foursquare (https://foursquare.com/v/restaurante-baobab/4bed589a75feef3b8d0197e6) put ID's at the end of the URL, others like StackOverflow (http://stackoverflow.com/questions/11387265/ids-at-the-end-of-the-url-seo) put them in the middle, just before the title slug.. In your opinion wish one is best for information management and performance? What is the impact in terms of SEO?
4
11,473,755
07/13/2012 15:38:49
1,262,959
03/11/2012 23:00:20
145
1
How to detect collision in three.js?
If I have two complex model in three.js, then how can I detect, if they are collided or not?
javascript
webgl
three.js
null
null
07/15/2012 12:08:11
not a real question
How to detect collision in three.js? === If I have two complex model in three.js, then how can I detect, if they are collided or not?
1
3,109,272
06/24/2010 10:52:19
233,286
12/16/2009 21:02:57
194
7
nice url with apache and php
I have urls like /story.php?id=31<br> I want to show it as /31.html How?
php
url-rewriting
null
null
null
null
open
nice url with apache and php === I have urls like /story.php?id=31<br> I want to show it as /31.html How?
0
4,475,289
12/17/2010 22:22:51
546,583
12/17/2010 22:10:29
1
1
i need to known
how classify pdf files by using web mining, it is diffucult to access of pdf file format and i dont known what the part in pdf files i rely on in my classification
vb.net
vb6
vb
null
null
12/17/2010 22:24:51
not a real question
i need to known === how classify pdf files by using web mining, it is diffucult to access of pdf file format and i dont known what the part in pdf files i rely on in my classification
1
999,121
06/16/2009 00:30:00
44,844
12/10/2008 03:39:16
144
9
Multiple levels of infinity
Some programmers don't see much relevance in theoretical CS classes (especially my students). Here is something I find very relevant. Let me build it up in pieces for those that haven't seen it before... A) Programming problems can be reworded to be questions about languages. B) Turing machines recognize languages. C) Turing machines can be encoded as (large) integers. D) Therefore, the number of possible Turing machines are countably infinite E) The power set of a set is just all the possible subsets of that set. F) If a set is countably infinite, its power set is bigger, ie, uncountably infinite. G) Therefore, if a language is infinite, it has an uncountably infinite number of subsets. Each of these represents a problem. But there are only countably many Turing machines with which to solve those problems. And if we cannot solve a problem with a Turing machine, it cannot be solved. Conclusion...we can only solve an infinitesmally small fraction of all problems. My question is almost here... Whenever I present this argument to students, they get stuck on the countably vs. uncountably infinite. They generally do not have strong math backgrounds, so attempts to explain via Cantor's diagonalization argument tends to glaze their eyes. Usually I try to give them somthing they can grasp, like this...place a finite box over any portion of the counting number line, and we capture a finite quantity of those numbers...but place a finite box over any portion of the real number line, and we capture an infinite quantity of real numbers. A sort of evidence that there ARE more real numbers than there are counting numbers. Finally my question...How do YOU explain the concept of multiple levels of infinity to those that have never heard of the concept, and may not be mathematically inclined?
infinity
turing-machines
null
null
null
06/16/2009 17:00:05
off topic
Multiple levels of infinity === Some programmers don't see much relevance in theoretical CS classes (especially my students). Here is something I find very relevant. Let me build it up in pieces for those that haven't seen it before... A) Programming problems can be reworded to be questions about languages. B) Turing machines recognize languages. C) Turing machines can be encoded as (large) integers. D) Therefore, the number of possible Turing machines are countably infinite E) The power set of a set is just all the possible subsets of that set. F) If a set is countably infinite, its power set is bigger, ie, uncountably infinite. G) Therefore, if a language is infinite, it has an uncountably infinite number of subsets. Each of these represents a problem. But there are only countably many Turing machines with which to solve those problems. And if we cannot solve a problem with a Turing machine, it cannot be solved. Conclusion...we can only solve an infinitesmally small fraction of all problems. My question is almost here... Whenever I present this argument to students, they get stuck on the countably vs. uncountably infinite. They generally do not have strong math backgrounds, so attempts to explain via Cantor's diagonalization argument tends to glaze their eyes. Usually I try to give them somthing they can grasp, like this...place a finite box over any portion of the counting number line, and we capture a finite quantity of those numbers...but place a finite box over any portion of the real number line, and we capture an infinite quantity of real numbers. A sort of evidence that there ARE more real numbers than there are counting numbers. Finally my question...How do YOU explain the concept of multiple levels of infinity to those that have never heard of the concept, and may not be mathematically inclined?
2
11,242,383
06/28/2012 10:11:58
1,151,698
01/16/2012 10:54:04
13
0
Sorting a datatable affects reference datatable
I have a method somewhat similar to the one written bellow(this is just a pseudo-code I am working in C#): function GenerateChart(DataTable dt)<br> {<br> DataTable dtChartTable = dt;<br> dtChartTable.DefaultView.Sort = "SomeColumnName";<br> <br> //remaining functionality<br> } what this above code does is it also sorts the records in dt. I am not getting why it is doing so. Just as a note: this function is called from two different places. at one place I am sending a Datatable object and at the other the Datatable is directly refered from the one stored in session.
c#
datatable
null
null
null
null
open
Sorting a datatable affects reference datatable === I have a method somewhat similar to the one written bellow(this is just a pseudo-code I am working in C#): function GenerateChart(DataTable dt)<br> {<br> DataTable dtChartTable = dt;<br> dtChartTable.DefaultView.Sort = "SomeColumnName";<br> <br> //remaining functionality<br> } what this above code does is it also sorts the records in dt. I am not getting why it is doing so. Just as a note: this function is called from two different places. at one place I am sending a Datatable object and at the other the Datatable is directly refered from the one stored in session.
0
4,378,850
12/07/2010 16:14:20
528,935
12/03/2010 05:01:22
21
0
swapping bytes in a file in c++
assume that there is a file named "swaplt.doc" which contains more than 200bytes of data.now write a program that will encrypt the file by swapping its first 100 bytes of data with last 100 bytes.
file
pointers
null
null
null
12/07/2010 16:46:01
not a real question
swapping bytes in a file in c++ === assume that there is a file named "swaplt.doc" which contains more than 200bytes of data.now write a program that will encrypt the file by swapping its first 100 bytes of data with last 100 bytes.
1
5,767,965
04/24/2011 00:55:03
702,643
04/11/2011 17:38:36
209
13
jQuery transformable plugin - just rotate
So there's this sweet jQuery plugin: http://plugins.jquery.com/project/transformable that does skew, scale, and rotate. I'm making a visual editor with objects that you can resize/move/rotate, and all I need is the rotate part. Is there a stripped-down version of this with just the rotate handle? I've tried extracting that part, but to no avail.
jquery
jquery-ui
jquery-plugins
null
null
null
open
jQuery transformable plugin - just rotate === So there's this sweet jQuery plugin: http://plugins.jquery.com/project/transformable that does skew, scale, and rotate. I'm making a visual editor with objects that you can resize/move/rotate, and all I need is the rotate part. Is there a stripped-down version of this with just the rotate handle? I've tried extracting that part, but to no avail.
0
8,029,119
11/06/2011 18:00:45
1,032,432
11/06/2011 16:29:15
1
0
I am a ruby beginner, kindly help me out?
How can I generate up to 4 strings from a string generated randomly from different arrays?
ruby
null
null
null
null
11/06/2011 18:41:51
not a real question
I am a ruby beginner, kindly help me out? === How can I generate up to 4 strings from a string generated randomly from different arrays?
1
10,104,274
04/11/2012 10:34:49
261,010
01/28/2010 13:36:26
797
24
Microsoft .NET Framework logo image
Where can I find a official PNG image of the Microsoft .NET Framework 4.0 suitable for graphic designers (transparent background, reasonable size, etc.)? Thanks.
.net
null
null
null
null
04/11/2012 13:34:59
off topic
Microsoft .NET Framework logo image === Where can I find a official PNG image of the Microsoft .NET Framework 4.0 suitable for graphic designers (transparent background, reasonable size, etc.)? Thanks.
2
7,727,803
10/11/2011 14:38:06
989,697
10/11/2011 14:12:56
1
0
How to handle qualification validity in SAP QRM?
SAP Qualifications & Requirements Management (V7.1) has a field to set the validity of a Qualification to e.g. 3 years. When a user passes an exam on 1-1-2011 the system will automatically add those 3 years and set the certification expiration to 1-1-2014. Some of our vendors use "dynamic" expiration. E.g. an exam on product X version 1 has been passed on 1-1-2011 and product X version 2 comes out on 5-5-2011, the certification for version 1 only remains valid for a few more months till e.g. 9-9-2011. Since multiple employees passed their exams on different dates, I can't even change the exam validity to match the vendor's end date. The only method I can think of right now is to end (the validity) of the whole "product X version 1 exam" in the system, but that no longer will show me who needs to follow the upgrade training..... Any insights are highly appreciated.
sap
null
null
null
null
10/17/2011 08:45:18
off topic
How to handle qualification validity in SAP QRM? === SAP Qualifications & Requirements Management (V7.1) has a field to set the validity of a Qualification to e.g. 3 years. When a user passes an exam on 1-1-2011 the system will automatically add those 3 years and set the certification expiration to 1-1-2014. Some of our vendors use "dynamic" expiration. E.g. an exam on product X version 1 has been passed on 1-1-2011 and product X version 2 comes out on 5-5-2011, the certification for version 1 only remains valid for a few more months till e.g. 9-9-2011. Since multiple employees passed their exams on different dates, I can't even change the exam validity to match the vendor's end date. The only method I can think of right now is to end (the validity) of the whole "product X version 1 exam" in the system, but that no longer will show me who needs to follow the upgrade training..... Any insights are highly appreciated.
2
9,641,444
03/09/2012 21:47:56
1,006,249
10/21/2011 00:12:59
343
8
Update in MySQL
My table is like this: `id, date, url, no`. For example, I have these data: 1,2012-01-01,google.com,5 1,2012-01-01,google.ca,3 1,2012-01-02,google.com,8 1,2012-01-02,google.ca,5 2,2012-01-01,google.com,10 2,2012-01-01,google.ca,8 2,2012-01-02,google.com,15 2,2012-01-02,google.ca,12 I want to update the `url`, summate `no`, group by `id,date`, so that the date will be: 1,2012-01-01,google.com,8 1,2012-01-02,google.com,12 2,2012-01-01,google.com,18 2,2012-01-02,google.com,27 I tried this command but it has error: `UPDATE tb SET no = no + (SELECT no FROM (SELECT id, date, SUM(no) AS no FROM tb WHERE detail = "google.ca" GROUP BY id, date) tb1) WHERE detail = "google.com" AND id = tb1.id AND date = tb1.date
mysql
null
null
null
null
null
open
Update in MySQL === My table is like this: `id, date, url, no`. For example, I have these data: 1,2012-01-01,google.com,5 1,2012-01-01,google.ca,3 1,2012-01-02,google.com,8 1,2012-01-02,google.ca,5 2,2012-01-01,google.com,10 2,2012-01-01,google.ca,8 2,2012-01-02,google.com,15 2,2012-01-02,google.ca,12 I want to update the `url`, summate `no`, group by `id,date`, so that the date will be: 1,2012-01-01,google.com,8 1,2012-01-02,google.com,12 2,2012-01-01,google.com,18 2,2012-01-02,google.com,27 I tried this command but it has error: `UPDATE tb SET no = no + (SELECT no FROM (SELECT id, date, SUM(no) AS no FROM tb WHERE detail = "google.ca" GROUP BY id, date) tb1) WHERE detail = "google.com" AND id = tb1.id AND date = tb1.date
0
10,733,119
05/24/2012 07:35:42
1,131,186
01/05/2012 01:49:09
75
0
confusing syntax error?
i am getting this error here Parse error: syntax error, unexpected ',' in /home/u423419659/public_html/install/install.php on line 44 I am pretty sure i follow all correct procedures, why is it giving this error? public function SozcuguSifrele( $NEYI ) { $result = ""; $i = 0; while ( $i < ( $NEYI ) ) { $char = ( $NEYI, $i, 1 ); $keychar = ( $this->AnahtarKelime, $i % ( $this->AnahtarKelime ) - 1, 1 ); $char = ( ( $char ) + ( $keychar ) ); $result .= $char; ++$i; } return ( ( $result ) ); line 44 would be the this part $char = ( $NEYI, $i, 1 );
php
mysql
syntax
null
null
05/25/2012 20:22:23
too localized
confusing syntax error? === i am getting this error here Parse error: syntax error, unexpected ',' in /home/u423419659/public_html/install/install.php on line 44 I am pretty sure i follow all correct procedures, why is it giving this error? public function SozcuguSifrele( $NEYI ) { $result = ""; $i = 0; while ( $i < ( $NEYI ) ) { $char = ( $NEYI, $i, 1 ); $keychar = ( $this->AnahtarKelime, $i % ( $this->AnahtarKelime ) - 1, 1 ); $char = ( ( $char ) + ( $keychar ) ); $result .= $char; ++$i; } return ( ( $result ) ); line 44 would be the this part $char = ( $NEYI, $i, 1 );
3
2,726,666
04/28/2010 03:40:29
327,452
04/28/2010 03:40:29
1
0
looking for PHP login script
Hey, I am looking for PHP login script that allows a user to sign in, confirm his email and save his login/password if he wants. Is there something free and simple to support and modify? Thank you. Michael
php
login
scripting
null
null
04/28/2010 04:16:18
not a real question
looking for PHP login script === Hey, I am looking for PHP login script that allows a user to sign in, confirm his email and save his login/password if he wants. Is there something free and simple to support and modify? Thank you. Michael
1
9,149,672
02/05/2012 13:36:23
237,447
12/23/2009 08:31:42
668
19
Is there any javascript (and client-side) wget implementation?
In order to provide a service for webmasters, I need to download the public part of their site. I'm currently doing it using wget on my server, but it introduce a lot of load, and I'd like to move that part to the client side. Does an implementation of wget exists in Javascript? If it exists, I could zip the files and send them to my server for processing, that would allow me to concentrate on the core business for my app. I know some compression library exists in Js (such as [zip.js](http://gildas-lormeau.github.com/zip.js/)), but I was unable to find the wget counterpart. Do you know something similar?
javascript
web-crawler
wget
null
null
null
open
Is there any javascript (and client-side) wget implementation? === In order to provide a service for webmasters, I need to download the public part of their site. I'm currently doing it using wget on my server, but it introduce a lot of load, and I'd like to move that part to the client side. Does an implementation of wget exists in Javascript? If it exists, I could zip the files and send them to my server for processing, that would allow me to concentrate on the core business for my app. I know some compression library exists in Js (such as [zip.js](http://gildas-lormeau.github.com/zip.js/)), but I was unable to find the wget counterpart. Do you know something similar?
0
7,509,840
09/22/2011 05:10:54
958,321
09/22/2011 05:10:54
1
0
Online fingerprint login using libfprint
I am using libfprint api for making a online fingerprint authentication program.i have written the code for enrollment and verification in C for the driver and was able to retrieve the data file of the fingerprint from the user.But now how to run that c code online as it requires 3 stages of enrollment.I have UPEK touchstrip installed on my laptop.
php
c
biometrics
null
null
09/22/2011 12:07:02
not a real question
Online fingerprint login using libfprint === I am using libfprint api for making a online fingerprint authentication program.i have written the code for enrollment and verification in C for the driver and was able to retrieve the data file of the fingerprint from the user.But now how to run that c code online as it requires 3 stages of enrollment.I have UPEK touchstrip installed on my laptop.
1
10,554,515
05/11/2012 15:39:46
1,389,795
05/11/2012 15:31:39
1
0
R.java file goes missing in eclipse
R.java file disappears while importing image and sound files to the raw and layout folders in resource in eclipse...how to fix the bug and bring back the missing R.java file
android
null
null
null
null
null
open
R.java file goes missing in eclipse === R.java file disappears while importing image and sound files to the raw and layout folders in resource in eclipse...how to fix the bug and bring back the missing R.java file
0
9,614,233
03/08/2012 07:32:25
1,045,704
11/14/2011 13:49:58
752
26
Video capturing issue
I want to create a `LWUIT` `Image` from the captured `video`. The problem is that the `MediaException` is raised when calling `getSnapshot()` : private void showCamera() // called when clicking the "open camera" command { try { Player mPlayer; VideoControl mVideoControl; mPlayer = Manager.createPlayer("capture://video"); mPlayer.realize(); mVideoControl = (VideoControl) mPlayer.getControl("VideoControl"); Canvas canvas = new CameraCanvas(this, mVideoControl, mPlayer, getFirstAvailableRoot(), "ADC"+adcId); // adcId is "1" isFromPositionnement = true; // static variable javax.microedition.lcdui.Display.getDisplay(controler).setCurrent(canvas); mPlayer.start(); } catch (IOException ex) { handleException(); } catch (MediaException ex) { handleException(); } } private String getFirstAvailableRoot() { short iter; String root = "Phone:/"; iter = 0; Enumeration drives = FileSystemRegistry.listRoots(); while(drives.hasMoreElements() && iter < 1) { root = String.valueOf(drives.nextElement()); iter++; } return root; } Code in "CameraCanvas" : public class CameraCanvas extends Canvas implements CommandListener { ... public CameraCanvas(Ecran form, VideoControl videoControl, Player pPlayer, String pRoot, String dossierPhoto) { ... mCaptureCommand = new Command("Capturer", Command.SCREEN, 1); addCommand(mCaptureCommand); setCommandListener(this); ... videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this); try { videoControl.setDisplayLocation(2, 2); videoControl.setDisplaySize(width - 4, height - 4); } catch (MediaException me) { try { videoControl.setDisplayFullScreen(true); } catch (MediaException me2) {} } videoControl.setVisible(true); } private void capture() // called when clicking the mCaptureCommand command { try { isPhotoCaptured = true; rawImg = vidCtrl.getSnapshot(null); // this throws the exception vidCtrl.setVisible(false); vidCtrl = null; mPlayer.close(); mPlayer = null; repaint(); } catch (MediaException me) { isPhotoCaptured = false; rawImg = null; vidCtrl.setVisible(false); vidCtrl = null; mPlayer.close(); mPlayer = null; handleException("capture "); } } } So what may be the cause of the issue ?
java-me
null
null
null
null
null
open
Video capturing issue === I want to create a `LWUIT` `Image` from the captured `video`. The problem is that the `MediaException` is raised when calling `getSnapshot()` : private void showCamera() // called when clicking the "open camera" command { try { Player mPlayer; VideoControl mVideoControl; mPlayer = Manager.createPlayer("capture://video"); mPlayer.realize(); mVideoControl = (VideoControl) mPlayer.getControl("VideoControl"); Canvas canvas = new CameraCanvas(this, mVideoControl, mPlayer, getFirstAvailableRoot(), "ADC"+adcId); // adcId is "1" isFromPositionnement = true; // static variable javax.microedition.lcdui.Display.getDisplay(controler).setCurrent(canvas); mPlayer.start(); } catch (IOException ex) { handleException(); } catch (MediaException ex) { handleException(); } } private String getFirstAvailableRoot() { short iter; String root = "Phone:/"; iter = 0; Enumeration drives = FileSystemRegistry.listRoots(); while(drives.hasMoreElements() && iter < 1) { root = String.valueOf(drives.nextElement()); iter++; } return root; } Code in "CameraCanvas" : public class CameraCanvas extends Canvas implements CommandListener { ... public CameraCanvas(Ecran form, VideoControl videoControl, Player pPlayer, String pRoot, String dossierPhoto) { ... mCaptureCommand = new Command("Capturer", Command.SCREEN, 1); addCommand(mCaptureCommand); setCommandListener(this); ... videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this); try { videoControl.setDisplayLocation(2, 2); videoControl.setDisplaySize(width - 4, height - 4); } catch (MediaException me) { try { videoControl.setDisplayFullScreen(true); } catch (MediaException me2) {} } videoControl.setVisible(true); } private void capture() // called when clicking the mCaptureCommand command { try { isPhotoCaptured = true; rawImg = vidCtrl.getSnapshot(null); // this throws the exception vidCtrl.setVisible(false); vidCtrl = null; mPlayer.close(); mPlayer = null; repaint(); } catch (MediaException me) { isPhotoCaptured = false; rawImg = null; vidCtrl.setVisible(false); vidCtrl = null; mPlayer.close(); mPlayer = null; handleException("capture "); } } } So what may be the cause of the issue ?
0
9,714,040
03/15/2012 04:35:08
1,270,694
03/15/2012 04:32:46
1
0
How to connect asp.net with wamp server
Can anybody give detail,how can I connect asp.net with Wamp server?
asp.net
connection
wampserver
null
null
03/15/2012 06:00:35
not a real question
How to connect asp.net with wamp server === Can anybody give detail,how can I connect asp.net with Wamp server?
1
6,628,106
07/08/2011 17:26:23
835,765
07/08/2011 16:59:26
1
0
Top 10 secured websites of the year.
I browsed but could find the correct. I need the World Wide Web's top 10 most secured websites of the year. If updated 2011 else for the year 2010.
security
internet
null
null
null
07/08/2011 17:34:52
not constructive
Top 10 secured websites of the year. === I browsed but could find the correct. I need the World Wide Web's top 10 most secured websites of the year. If updated 2011 else for the year 2010.
4
10,235,653
04/19/2012 19:46:51
1,209,087
02/14/2012 12:41:34
108
0
how constructors work in java
I am trying to understand what is the difference between the following constructors in java in class Box { Box(Box ob) { width = ob.width; height = ob.height; depth = ob.depth; } Box(double w, double h, double d) { width = w; height = h; depth = d; } Box() { width = 0; height = 0; depth = 0; } Box(double width, double height, double depth) { this.width = width; this.height = height; this.depth = depth; } } Cheers everyone
java
null
null
null
null
04/19/2012 22:30:50
not a real question
how constructors work in java === I am trying to understand what is the difference between the following constructors in java in class Box { Box(Box ob) { width = ob.width; height = ob.height; depth = ob.depth; } Box(double w, double h, double d) { width = w; height = h; depth = d; } Box() { width = 0; height = 0; depth = 0; } Box(double width, double height, double depth) { this.width = width; this.height = height; this.depth = depth; } } Cheers everyone
1
5,398,293
03/22/2011 21:51:31
238,030
12/24/2009 04:19:24
2,785
97
Which tablets support 10+ finger multi-touch detection?
Do any of the Android tablets (such as the Motorola Xoom with Honeycomb) or the iPad 2 support detection of 10 or more finger multi-touch? I need that capability for an app idea.
multitouch
tablet
multi-touch
null
null
03/24/2011 00:51:30
off topic
Which tablets support 10+ finger multi-touch detection? === Do any of the Android tablets (such as the Motorola Xoom with Honeycomb) or the iPad 2 support detection of 10 or more finger multi-touch? I need that capability for an app idea.
2
7,384,847
09/12/2011 07:57:51
940,064
09/12/2011 07:30:19
1
0
Reload different url in window/iframe in php
i'm faquhar. My IT lecturer ask me to do php final prject. free web promotion get backlink from internet. I had already done the structure, When visitor submit their url to form(getJSON(url,callback) to parsing the result of submitted form), they will automatically post their url to related website. I had a little problem right now. My friend said i need to show the proof, He added, What i want to do is i want to **reload the result url every 10seconds** in new window or iframe using java or php script. for example first open this url : www.webpromotion1/visitor-url.php after 10 sec,www.webpromotion2/visitor-url.php after 10 sec,www.webpromotion3/visitor-url.php after 10 sec, www.webpromotion4/visitor-url.php after 10 sec, www.webpromotion5/visitor-url.php I dont have idea on how to do this,
iframe
redirect
reload
null
null
09/12/2011 12:19:56
not a real question
Reload different url in window/iframe in php === i'm faquhar. My IT lecturer ask me to do php final prject. free web promotion get backlink from internet. I had already done the structure, When visitor submit their url to form(getJSON(url,callback) to parsing the result of submitted form), they will automatically post their url to related website. I had a little problem right now. My friend said i need to show the proof, He added, What i want to do is i want to **reload the result url every 10seconds** in new window or iframe using java or php script. for example first open this url : www.webpromotion1/visitor-url.php after 10 sec,www.webpromotion2/visitor-url.php after 10 sec,www.webpromotion3/visitor-url.php after 10 sec, www.webpromotion4/visitor-url.php after 10 sec, www.webpromotion5/visitor-url.php I dont have idea on how to do this,
1
8,143,809
11/15/2011 22:05:10
383,269
07/04/2010 22:14:40
118
0
How hide launch exe file as process
I have program that launch other programs. All this programs is exe files. But i dont like when in program folder i have dozen of exe files, i more like when exe file is only one! How i can hide other exe file in one but still have posibility to launch them from main program. Do antivirus block program like that?
c++
hide
antivirus
null
null
11/15/2011 23:18:48
not a real question
How hide launch exe file as process === I have program that launch other programs. All this programs is exe files. But i dont like when in program folder i have dozen of exe files, i more like when exe file is only one! How i can hide other exe file in one but still have posibility to launch them from main program. Do antivirus block program like that?
1
4,383,876
12/08/2010 03:23:35
327,661
04/28/2010 08:55:54
6
0
how to implement a floating window in my navigator controller?
how to implement a floating window in my navigator controller? thanks.
iphone
cocoa
null
null
null
null
open
how to implement a floating window in my navigator controller? === how to implement a floating window in my navigator controller? thanks.
0
11,358,016
07/06/2012 07:49:25
1,505,997
07/06/2012 07:00:52
1
0
css, js, loadsource and image directories are not generated using maven 'mvn site'
when using the mvn site, the subdirectories i.e css, image, js, loadsource are not generated, only the html files. can't seem to figure out why is this so. i'm using the fluido skin from google version 1.3 the following are my entries in my pom file: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0.1</version> <configuration> <inputDirectory>/src/site/apt</inputDirectory> <outputDirectory>${maven-site.output}</outputDirectory> <locales>en</locales> </configuration> </plugin> btw, i have 2 pom files in my project but the one which references the above, i use "mvn -f pom2.xml site" to generate the html files.
maven
maven-site-plugin
null
null
null
null
open
css, js, loadsource and image directories are not generated using maven 'mvn site' === when using the mvn site, the subdirectories i.e css, image, js, loadsource are not generated, only the html files. can't seem to figure out why is this so. i'm using the fluido skin from google version 1.3 the following are my entries in my pom file: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0.1</version> <configuration> <inputDirectory>/src/site/apt</inputDirectory> <outputDirectory>${maven-site.output}</outputDirectory> <locales>en</locales> </configuration> </plugin> btw, i have 2 pom files in my project but the one which references the above, i use "mvn -f pom2.xml site" to generate the html files.
0
5,764,361
04/23/2011 13:14:06
717,841
04/20/2011 20:11:05
10
2
sold product collection in magento
How to get the sold products collection in magento?
magento
null
null
null
null
04/27/2011 03:20:00
not a real question
sold product collection in magento === How to get the sold products collection in magento?
1
6,167,648
05/29/2011 12:10:38
138,627
07/15/2009 10:24:43
970
24
Visual studio Reforamt Code/Document
I can't find the Refrmat button, I know I can use ctrl+k+d, but I wish to have also the toolbar with the button. can someone help me ?
visual-studio
visual-studio-2010
visual
null
null
null
open
Visual studio Reforamt Code/Document === I can't find the Refrmat button, I know I can use ctrl+k+d, but I wish to have also the toolbar with the button. can someone help me ?
0
11,305,496
07/03/2012 06:22:28
208,513
11/11/2009 08:46:16
682
44
MVC3 web hosting
I want to build a website using ASP.NET MVC3. It will be great help if you please suggest me what are the best available web hosting solutions we have. Few companies just mention ASP.NET. Does this mean they don't support MVC? It will be great help if you please share your experience. Thanks in advance.
asp.net-mvc
asp.net-mvc-3
web-hosting
null
null
07/03/2012 06:45:43
not constructive
MVC3 web hosting === I want to build a website using ASP.NET MVC3. It will be great help if you please suggest me what are the best available web hosting solutions we have. Few companies just mention ASP.NET. Does this mean they don't support MVC? It will be great help if you please share your experience. Thanks in advance.
4
78,978
09/17/2008 01:35:40
27,870
09/15/2008 12:11:54
8
4
Regex for Specific Tag
Greetings! I'm working on a regular expression to get a specific tag. I would like to match the entire DIV tag and its contents: <html> <head><title>Test</title></head> <body> <p>This is a paragraph - nothing special here.</p> <div id="super_special"> <p>Anything could go in here...doesn't matter. Let's get it all</p> </div> </body> </html> I want to match this: <div id="super_special"> <p>Anything could go in here...doesn't matter. Let's get it all</p> </div> I thought . was supposed to get all characters, but it seems to having trouble with the cariage returns. What is my regex missing? (<div id="super_special">.*?</div>) Thanks.
regularexpression
null
null
null
null
null
open
Regex for Specific Tag === Greetings! I'm working on a regular expression to get a specific tag. I would like to match the entire DIV tag and its contents: <html> <head><title>Test</title></head> <body> <p>This is a paragraph - nothing special here.</p> <div id="super_special"> <p>Anything could go in here...doesn't matter. Let's get it all</p> </div> </body> </html> I want to match this: <div id="super_special"> <p>Anything could go in here...doesn't matter. Let's get it all</p> </div> I thought . was supposed to get all characters, but it seems to having trouble with the cariage returns. What is my regex missing? (<div id="super_special">.*?</div>) Thanks.
0
6,429,357
06/21/2011 17:21:03
242,519
01/03/2010 01:47:45
328
21
How to get the website name and page title of a webpage
I was wondering how programmatically to get the website name and page name of a webpage, or at least how to get a best guess. For example, the website name of this question's webpage is Stack Overflow, and the page title is "How to get the website name and page title of a webpage". I know it's not possible to get 100% accuracy (or even close), but it'd be great to at least be able to make an attempt at this. Programming language is irrelevant.
web-applications
website
null
null
null
null
open
How to get the website name and page title of a webpage === I was wondering how programmatically to get the website name and page name of a webpage, or at least how to get a best guess. For example, the website name of this question's webpage is Stack Overflow, and the page title is "How to get the website name and page title of a webpage". I know it's not possible to get 100% accuracy (or even close), but it'd be great to at least be able to make an attempt at this. Programming language is irrelevant.
0
845,265
05/10/2009 12:40:59
87,079
04/04/2009 12:23:43
385
40
Tools to build a DSL in .NET
I'm getting teased more and more into developing DSLs. I've developed a tiny one with F# using fslex and fsyacc but the error messages are inaccurate (I also can't find a way to generate better ones, there seems to be little documentation on how to handle error cases) and the fact that they won't parse UNICODE strings adequately is not acceptable to me. Long story short, I'm looking for tools making it pretty simple to develop a DSL (the Visual Studio tools for that are really nothing like what I'm after) and I'm most interested in the parsing/AST generation part. I've looked at ANTLR and mixing up code and grammar definition meta-language looks bad to me, so please don't mention it or solutions suffering from a similar issue in the answers. Also, I've seen there's some stuff for a language named Boo but I'm really not interested in messing with yet another language (especially if it has little support) right now, so that doesn't fit either. Any other suggestion is appreciated, as long as it's decently documented, works fine with .NET and last but not least doesn't involve the use of a dynamically typed language or use of the DLR.
.net
dsl
dsl-tools
parsing
null
null
open
Tools to build a DSL in .NET === I'm getting teased more and more into developing DSLs. I've developed a tiny one with F# using fslex and fsyacc but the error messages are inaccurate (I also can't find a way to generate better ones, there seems to be little documentation on how to handle error cases) and the fact that they won't parse UNICODE strings adequately is not acceptable to me. Long story short, I'm looking for tools making it pretty simple to develop a DSL (the Visual Studio tools for that are really nothing like what I'm after) and I'm most interested in the parsing/AST generation part. I've looked at ANTLR and mixing up code and grammar definition meta-language looks bad to me, so please don't mention it or solutions suffering from a similar issue in the answers. Also, I've seen there's some stuff for a language named Boo but I'm really not interested in messing with yet another language (especially if it has little support) right now, so that doesn't fit either. Any other suggestion is appreciated, as long as it's decently documented, works fine with .NET and last but not least doesn't involve the use of a dynamically typed language or use of the DLR.
0
7,055,346
08/14/2011 06:07:23
893,654
08/14/2011 06:05:30
1
0
Script being added, hacked?
The script below is being appended dynamically to my markup. Anyone know how I can get rid of it? <iframe width="1" height="1" frameborder="0" src="http://hysofufewobe.com/k985ytv.htm"> Site [here][1]. [1]: http://crackpixels.com
wordpress
hacking
null
null
null
08/15/2011 04:24:06
off topic
Script being added, hacked? === The script below is being appended dynamically to my markup. Anyone know how I can get rid of it? <iframe width="1" height="1" frameborder="0" src="http://hysofufewobe.com/k985ytv.htm"> Site [here][1]. [1]: http://crackpixels.com
2
9,090,680
02/01/2012 04:11:47
1,175,987
01/29/2012 02:42:09
6
0
How to initialize a vector of pointers
I am working on a C++ program, and I need to initialize a vector of pointers. I know how to initialize a vector, but if someone could show me how to initialize it as a vector filled with pointers that would be great!
c++
pointers
vector
null
null
04/17/2012 09:47:17
not a real question
How to initialize a vector of pointers === I am working on a C++ program, and I need to initialize a vector of pointers. I know how to initialize a vector, but if someone could show me how to initialize it as a vector filled with pointers that would be great!
1
3,760,343
09/21/2010 12:42:28
202,538
11/04/2009 11:23:25
30
2
Clojure-problem using javax.sound.midi.Sequencer
I'm trying to use some Java-classes with Clojure. I've tried it with Scala with success, but with Clojure, I get an IllegalArgumentException. Here's the API: http://download.oracle.com/javase/1.4.2/docs/api/java/lang/reflect/Method.html The code below: (import '(javax.sound.midi MidiSystem Sequencer Sequence)) (def mySequencer (MidiSystem/getSequencer)) (def mySequence (Sequence. Sequence/PPQ 10)) ((.setSequence mySequencer) mySequence) throws an exception: Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: setSequence for class com.sun.media.sound.RealTimeSequencer (recordmidi.clj:0) at clojure.lang.Compiler.eval(Compiler.java:5341) at clojure.lang.Compiler.load(Compiler.java:5736) at clojure.lang.Compiler.loadFile(Compiler.java:5699) at clojure.main$load_script__6268.invoke(main.clj:213) at clojure.main$script_opt__6296.invoke(main.clj:265) at clojure.main$main__6314.doInvoke(main.clj:346) at clojure.lang.RestFn.invoke(RestFn.java:409) at clojure.lang.Var.invoke(Var.java:365) at clojure.lang.AFn.applyToHelper(AFn.java:165) at clojure.lang.Var.applyTo(Var.java:482) at clojure.main.main(main.java:37) Caused by: java.lang.IllegalArgumentException: No matching field found: setSequence for class com.sun.media.sound.RealTimeSequencer at clojure.lang.Reflector.getInstanceField(Reflector.java:245) at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:267) at user$eval__11.invoke(recordmidi.clj:4) at clojure.lang.Compiler.eval(Compiler.java:5325) ... 10 more Tried in Clojure 1.1.0 and 1.2.0. Works fine in Scala. I also tried looking at the methods of the Sequencer class using Clojure, and yes, the setSequence(Sequence) method *is* there. This is the only problem with Java-calls I've had.
java
clojure
midi
null
null
null
open
Clojure-problem using javax.sound.midi.Sequencer === I'm trying to use some Java-classes with Clojure. I've tried it with Scala with success, but with Clojure, I get an IllegalArgumentException. Here's the API: http://download.oracle.com/javase/1.4.2/docs/api/java/lang/reflect/Method.html The code below: (import '(javax.sound.midi MidiSystem Sequencer Sequence)) (def mySequencer (MidiSystem/getSequencer)) (def mySequence (Sequence. Sequence/PPQ 10)) ((.setSequence mySequencer) mySequence) throws an exception: Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: setSequence for class com.sun.media.sound.RealTimeSequencer (recordmidi.clj:0) at clojure.lang.Compiler.eval(Compiler.java:5341) at clojure.lang.Compiler.load(Compiler.java:5736) at clojure.lang.Compiler.loadFile(Compiler.java:5699) at clojure.main$load_script__6268.invoke(main.clj:213) at clojure.main$script_opt__6296.invoke(main.clj:265) at clojure.main$main__6314.doInvoke(main.clj:346) at clojure.lang.RestFn.invoke(RestFn.java:409) at clojure.lang.Var.invoke(Var.java:365) at clojure.lang.AFn.applyToHelper(AFn.java:165) at clojure.lang.Var.applyTo(Var.java:482) at clojure.main.main(main.java:37) Caused by: java.lang.IllegalArgumentException: No matching field found: setSequence for class com.sun.media.sound.RealTimeSequencer at clojure.lang.Reflector.getInstanceField(Reflector.java:245) at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:267) at user$eval__11.invoke(recordmidi.clj:4) at clojure.lang.Compiler.eval(Compiler.java:5325) ... 10 more Tried in Clojure 1.1.0 and 1.2.0. Works fine in Scala. I also tried looking at the methods of the Sequencer class using Clojure, and yes, the setSequence(Sequence) method *is* there. This is the only problem with Java-calls I've had.
0
11,562,776
07/19/2012 14:14:37
416,352
08/10/2010 15:55:43
595
26
Neo4j spring-security
Is a graph database like Neo4j well suited for storing "users" and information against which spring-security checks access rights?
spring-security
neo4j
spring-data-neo4j
null
null
null
open
Neo4j spring-security === Is a graph database like Neo4j well suited for storing "users" and information against which spring-security checks access rights?
0
4,208,327
11/17/2010 19:29:07
434,051
10/22/2009 09:12:01
3,322
5
Where to get CSS styles capable of styling buttons for IE 5,6, firefox 3?
Where to get CSS styles capable of styling buttons for IE 5,6, firefox 3? I need coloring (like light blue over default button color scheme)?
html
css
internet-explorer
null
null
null
open
Where to get CSS styles capable of styling buttons for IE 5,6, firefox 3? === Where to get CSS styles capable of styling buttons for IE 5,6, firefox 3? I need coloring (like light blue over default button color scheme)?
0
10,485,225
05/07/2012 15:58:15
1,299,154
03/28/2012 19:54:52
63
1
SATO LabelGallery 3 And C# - Printing Labels
I'm trying to test out a Print Engine from SATO for my company. I am using LabelGallery 3 for generating labels. I guess my question is: Can anyone point me to the right direction to some sample code for interacting with LabelGallery and/or printing from my application? I can't find sample code ANYWHERE, I do have the documentation for LabelGallery though. I can interact with the application and its properties, but when I call the Print function, it never goes through. Here's what I'm trying: LGApp LG = new LGApp(); int ID = LG.LabelOpenForPrinter("test", "\\\\PR4B43C5\\prn1"); bool success = LG.TestConnection(); MessageBox.Show(success.ToString()); success = LG.LabelTestConnection(ID, "test"); MessageBox.Show(success.ToString()); success = LG.LabelPrint(ID, "1"); MessageBox.Show(success.ToString()); success = LG.LabelClose(ID); MessageBox.Show(success.ToString()); Everything works fine until the Print statement. Any help, or references would be greatly appreciated.
c#
label
printers
thermal-printer
null
null
open
SATO LabelGallery 3 And C# - Printing Labels === I'm trying to test out a Print Engine from SATO for my company. I am using LabelGallery 3 for generating labels. I guess my question is: Can anyone point me to the right direction to some sample code for interacting with LabelGallery and/or printing from my application? I can't find sample code ANYWHERE, I do have the documentation for LabelGallery though. I can interact with the application and its properties, but when I call the Print function, it never goes through. Here's what I'm trying: LGApp LG = new LGApp(); int ID = LG.LabelOpenForPrinter("test", "\\\\PR4B43C5\\prn1"); bool success = LG.TestConnection(); MessageBox.Show(success.ToString()); success = LG.LabelTestConnection(ID, "test"); MessageBox.Show(success.ToString()); success = LG.LabelPrint(ID, "1"); MessageBox.Show(success.ToString()); success = LG.LabelClose(ID); MessageBox.Show(success.ToString()); Everything works fine until the Print statement. Any help, or references would be greatly appreciated.
0
2,637,114
04/14/2010 12:01:24
290,410
03/10/2010 10:39:43
39
1
n-layer architecture
wHAT ARE THE BENEFITS OF N-LAYERED ARCHITECTURE?
n-layer
null
null
null
null
null
open
n-layer architecture === wHAT ARE THE BENEFITS OF N-LAYERED ARCHITECTURE?
0
7,478,500
09/19/2011 23:32:32
943,329
09/13/2011 20:12:05
10
0
jQuery or CSS Problem?
I'm using this code to make `#sidebar`'s height match `#post_content`'s height: <script type='text/javascript'> $().ready(function(){ $('#sidebar').height($('#post_content').outerHeight(true)); }); </script> This works on the homepage: http://themeforward.com/demo2/ and even on a posts page without comments... but once comments are added they no longer match heights: http://themeforward.com/demo2/2011/01/02/centered-and-captioned-image-longer-title/ To illustrate the problem I have made the post_content div background color black and the sidebar background color gray. Here is my CSS: #container { width:1126px; margin:35px auto; padding:0; background:#000; clear:both; overflow:hidden } #sidebar { display:inline-block; float:right!important; width:410px; padding:0 0 0 25px; overflow:hidden; background:#AAA; border-left:1px solid #EEE } Here is my comments.php: <?php // Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { ?> <p class="nocomments">This post is password protected. Enter the password to view comments.</p> <?php return; } ?> <!-- You can start editing here. --> <?php if ( have_comments() ) : ?> <div class="responses"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;<?php if ( comments_open() && ( 4 <= get_comments_number()) ) : ?> <a href="#respond">»</a> <?php endif; ?> </div> <div id="commentlist"> <ul> <?php wp_list_comments('avatar_size=60'); ?> </ul> </div> <div id="more_posts_comments"> <div class="oe"><?php previous_comments_link() ?></div> <div class="re"><?php next_comments_link() ?></div> </div> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <!-- Respond to this --> <div id="respond"> <div class="responses"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></div> <div class="cancel_comment"> <?php cancel_comment_reply_link('cancel comment'); ?> </div> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <!-- If the user is logged in... --> <?php if ( $user_ID ) : ?> <div class="logged-in"><p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> - <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out</a></p></div> <?php else : ?> <!-- If the user isn't logged in, they need to fill out these forms... --> <div id="small_forms"> <input type="text" onfocus="clearDefault(this)" onblur="if(this.value=='')this.value='Name (required)';" value="Name (required)" name="author" id="author" size="22" tabindex="1" /> <input type="text" onfocus="clearDefault(this)" onblur="if(this.value=='')this.value='E-Mail (required, hidden)';" value="E-Mail (required, hidden)" name="email" id="email" size="22" tabindex="2" /> <input type="text" onfocus="clearDefault(this)" onblur="if(this.value=='')this.value='Website';" value="Website" name="url" id="url" size="22" tabindex="3" /> </div> <?php endif; ?> <div id="submit_spacer"><h6><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></h6></div> <!-- Submit button --> <h6><input name="submit" type="submit" value="Submit Comment" class="submit" /></h6> <h6><?php comment_id_fields(); ?></h6> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> </div> <?php endif; // if you delete this the sky will fall on your head ?> enter code here
jquery
css
wordpress
null
null
null
open
jQuery or CSS Problem? === I'm using this code to make `#sidebar`'s height match `#post_content`'s height: <script type='text/javascript'> $().ready(function(){ $('#sidebar').height($('#post_content').outerHeight(true)); }); </script> This works on the homepage: http://themeforward.com/demo2/ and even on a posts page without comments... but once comments are added they no longer match heights: http://themeforward.com/demo2/2011/01/02/centered-and-captioned-image-longer-title/ To illustrate the problem I have made the post_content div background color black and the sidebar background color gray. Here is my CSS: #container { width:1126px; margin:35px auto; padding:0; background:#000; clear:both; overflow:hidden } #sidebar { display:inline-block; float:right!important; width:410px; padding:0 0 0 25px; overflow:hidden; background:#AAA; border-left:1px solid #EEE } Here is my comments.php: <?php // Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { ?> <p class="nocomments">This post is password protected. Enter the password to view comments.</p> <?php return; } ?> <!-- You can start editing here. --> <?php if ( have_comments() ) : ?> <div class="responses"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;<?php if ( comments_open() && ( 4 <= get_comments_number()) ) : ?> <a href="#respond">»</a> <?php endif; ?> </div> <div id="commentlist"> <ul> <?php wp_list_comments('avatar_size=60'); ?> </ul> </div> <div id="more_posts_comments"> <div class="oe"><?php previous_comments_link() ?></div> <div class="re"><?php next_comments_link() ?></div> </div> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <!-- Respond to this --> <div id="respond"> <div class="responses"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></div> <div class="cancel_comment"> <?php cancel_comment_reply_link('cancel comment'); ?> </div> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <!-- If the user is logged in... --> <?php if ( $user_ID ) : ?> <div class="logged-in"><p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> - <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out</a></p></div> <?php else : ?> <!-- If the user isn't logged in, they need to fill out these forms... --> <div id="small_forms"> <input type="text" onfocus="clearDefault(this)" onblur="if(this.value=='')this.value='Name (required)';" value="Name (required)" name="author" id="author" size="22" tabindex="1" /> <input type="text" onfocus="clearDefault(this)" onblur="if(this.value=='')this.value='E-Mail (required, hidden)';" value="E-Mail (required, hidden)" name="email" id="email" size="22" tabindex="2" /> <input type="text" onfocus="clearDefault(this)" onblur="if(this.value=='')this.value='Website';" value="Website" name="url" id="url" size="22" tabindex="3" /> </div> <?php endif; ?> <div id="submit_spacer"><h6><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></h6></div> <!-- Submit button --> <h6><input name="submit" type="submit" value="Submit Comment" class="submit" /></h6> <h6><?php comment_id_fields(); ?></h6> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> </div> <?php endif; // if you delete this the sky will fall on your head ?> enter code here
0
3,935,437
10/14/2010 16:35:26
158,008
08/17/2009 20:35:44
396
2
How to create below type html window?
I have to create below type html page. background (orange) image. HTML gurus, Please help out.! ![alt text][1] [1]: http://i.stack.imgur.com/rgovk.jpg
html
css
null
null
null
10/15/2010 01:15:20
not a real question
How to create below type html window? === I have to create below type html page. background (orange) image. HTML gurus, Please help out.! ![alt text][1] [1]: http://i.stack.imgur.com/rgovk.jpg
1
10,920,537
06/06/2012 19:06:21
1,440,584
06/06/2012 18:59:57
1
0
WPF C# Draw on bitmap before displaying on splash screen
It seems like the more you want to custom your splash screen, you are probably better off using a window instead of using SplashScreen, since its highly static. However this is my goal, so if you can help me out, please let me know: -I have an image SplashScreen.png which buildaction is set to SplashScreen -I want to somehow load this image programatically and then draw some text on it. Very basic. -After finishing my manipulation on this image, I want to display it in my splash screen such as the following: var splashScreen = new SplashScreen("SplashScreen.png"); splashScreen.Show(true, true); I have had no luck attempting to do this.
c#
wpf
splash-screen
null
null
06/07/2012 12:41:03
not a real question
WPF C# Draw on bitmap before displaying on splash screen === It seems like the more you want to custom your splash screen, you are probably better off using a window instead of using SplashScreen, since its highly static. However this is my goal, so if you can help me out, please let me know: -I have an image SplashScreen.png which buildaction is set to SplashScreen -I want to somehow load this image programatically and then draw some text on it. Very basic. -After finishing my manipulation on this image, I want to display it in my splash screen such as the following: var splashScreen = new SplashScreen("SplashScreen.png"); splashScreen.Show(true, true); I have had no luck attempting to do this.
1
4,573,081
01/01/2011 03:21:10
559,610
01/01/2011 03:21:10
1
0
rtf template coding, xslt coding
I ve thebelow requirement <data> <dataset1> <number>1</number> <name>red</name> <number>2</number> <name>Yellow</name> <number>3</number> <name>black</name> <number>4</number> <name>Violet</name> </dataset1> <dataset2> <index>1</index> <index>2</index> <index>3</index> <index>4</index> </dataset2> </data> I need to loop through dataset2 take the index value, compare it with the value of number tag in dataset1. If a match occurs then display value of corresponding name tag. I need to get the output in rtf format. Please give BI tags or relevent xslt code to do the same. Thanks in advance.
templates
xslt
rtf
null
null
01/02/2011 01:37:23
not a real question
rtf template coding, xslt coding === I ve thebelow requirement <data> <dataset1> <number>1</number> <name>red</name> <number>2</number> <name>Yellow</name> <number>3</number> <name>black</name> <number>4</number> <name>Violet</name> </dataset1> <dataset2> <index>1</index> <index>2</index> <index>3</index> <index>4</index> </dataset2> </data> I need to loop through dataset2 take the index value, compare it with the value of number tag in dataset1. If a match occurs then display value of corresponding name tag. I need to get the output in rtf format. Please give BI tags or relevent xslt code to do the same. Thanks in advance.
1
9,869,922
03/26/2012 09:47:03
1,187,383
02/03/2012 11:29:05
18
3
Loading data from an XML file on to the UI
Im writing this android application where i need to parse data from an xml file on to my UI. my parsing works fine and all I need to do is to set these data to the UI components like text views. I have created getter setters methods for this class where i store all the data. I also have created a reference to the UI Activity class in the class where i store my data. But when i try to load the data on to it, throws a null pointer exception. I have called the data Load method that in the onCreate method of the UI Activity Class
android
user-interface
xml-parsing
null
null
03/27/2012 10:07:18
not constructive
Loading data from an XML file on to the UI === Im writing this android application where i need to parse data from an xml file on to my UI. my parsing works fine and all I need to do is to set these data to the UI components like text views. I have created getter setters methods for this class where i store all the data. I also have created a reference to the UI Activity class in the class where i store my data. But when i try to load the data on to it, throws a null pointer exception. I have called the data Load method that in the onCreate method of the UI Activity Class
4