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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,411,424 | 03/09/2010 18:15:13 | 40,015 | 11/23/2008 03:15:17 | 4,418 | 221 | Recommend a good db4o viewer | I'm playing around with db4o, and I have the Object Manager viewer thingy for Visual Studio. It seems okay, but not exactly on par with tools like HeidiSQL/SQL Studio/etc., not to mention that it locks the db4o file--I can't use my db4o app and Object Manager at the same time.
Maybe I'm using wrong, but regardless, I'd like to know what else is out there. What tools would you recommend for looking at and manipulating db4o files? | db4o | .net | nosql | oodbms | null | 06/11/2012 08:27:57 | not constructive | Recommend a good db4o viewer
===
I'm playing around with db4o, and I have the Object Manager viewer thingy for Visual Studio. It seems okay, but not exactly on par with tools like HeidiSQL/SQL Studio/etc., not to mention that it locks the db4o file--I can't use my db4o app and Object Manager at the same time.
Maybe I'm using wrong, but regardless, I'd like to know what else is out there. What tools would you recommend for looking at and manipulating db4o files? | 4 |
11,394,776 | 07/09/2012 12:12:02 | 52,912 | 01/08/2009 12:52:23 | 754 | 22 | How do I store a Serializable List<int> in FluentNhibernate | If I have the following (cut down for brevity)
public class TempCartMap : ClassMap<TempCart>
{
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.Products); // < This one
}
[Serializable]
public class TempCart {
public TempCart(){
Products = new List<int>();
}
public virtual IList<int> Products { get; set; }
}
I've looked at ([http://www.philliphaydon.com/2012/06/using-nhibernate-with-servicestack/][1]) and ([http://www.philliphaydon.com/2012/03/ormlite-blobbing-done-with-nhibernate-and-serialized-json/][2]) but is there a shorter, simpler, faster way of getting NHibernate to Serialize & De-serialize a column as above.
Seems overkill to create a new IUserType class etc etc.
[1]: http://www.philliphaydon.com/2012/06/using-nhibernate-with-servicestack/
[2]: http://www.philliphaydon.com/2012/03/ormlite-blobbing-done-with-nhibernate-and-serialized-json/ | nhibernate | fluent-nhibernate | fluent-nhibernate-mapping | null | null | null | open | How do I store a Serializable List<int> in FluentNhibernate
===
If I have the following (cut down for brevity)
public class TempCartMap : ClassMap<TempCart>
{
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.Products); // < This one
}
[Serializable]
public class TempCart {
public TempCart(){
Products = new List<int>();
}
public virtual IList<int> Products { get; set; }
}
I've looked at ([http://www.philliphaydon.com/2012/06/using-nhibernate-with-servicestack/][1]) and ([http://www.philliphaydon.com/2012/03/ormlite-blobbing-done-with-nhibernate-and-serialized-json/][2]) but is there a shorter, simpler, faster way of getting NHibernate to Serialize & De-serialize a column as above.
Seems overkill to create a new IUserType class etc etc.
[1]: http://www.philliphaydon.com/2012/06/using-nhibernate-with-servicestack/
[2]: http://www.philliphaydon.com/2012/03/ormlite-blobbing-done-with-nhibernate-and-serialized-json/ | 0 |
3,346,832 | 07/27/2010 18:46:01 | 403,760 | 07/27/2010 18:46:01 | 1 | 0 | Select a nullable bit with a default value | I need to select a nullable bit column in a view, but use a default value of FALSE whenever the value is NULL. (For other reasons, I can't add the default value on the source table itself.) Here is what I am doing.
CAST
(
CASE
WHEN bit_column IS NULL THEN 0
ELSE bit_column
END
AS BIT
) AS bit_column,
...
I have to do this on four columns, so I'm wondering if there is a better/more efficient way to do this. | sql | tsql | sql-server-2000 | bit | null | null | open | Select a nullable bit with a default value
===
I need to select a nullable bit column in a view, but use a default value of FALSE whenever the value is NULL. (For other reasons, I can't add the default value on the source table itself.) Here is what I am doing.
CAST
(
CASE
WHEN bit_column IS NULL THEN 0
ELSE bit_column
END
AS BIT
) AS bit_column,
...
I have to do this on four columns, so I'm wondering if there is a better/more efficient way to do this. | 0 |
8,810,753 | 01/10/2012 21:28:24 | 1,107,059 | 12/20/2011 03:00:13 | 164 | 0 | Most efficient way to update a Stream or wall of actions and comments | I am curious with current technology, what would be the most efficient way to handle building something like a Facebook wall or Google + wall/stream with PHP, Javascript, and MySQL.
This is something a lot of people try to reproduce and fail.
The goal is to have a stream of data like posts and posts can have comments and everything will auto update without reloading the page.
I know in the past some people have talked about using Comet but I have yet to see it in use really. Also now that Node.js exist, is that something that would do this job better?
Please tell me how you would do this?
| php | javascript | mysql | null | null | 01/10/2012 21:33:56 | not constructive | Most efficient way to update a Stream or wall of actions and comments
===
I am curious with current technology, what would be the most efficient way to handle building something like a Facebook wall or Google + wall/stream with PHP, Javascript, and MySQL.
This is something a lot of people try to reproduce and fail.
The goal is to have a stream of data like posts and posts can have comments and everything will auto update without reloading the page.
I know in the past some people have talked about using Comet but I have yet to see it in use really. Also now that Node.js exist, is that something that would do this job better?
Please tell me how you would do this?
| 4 |
8,811,375 | 01/10/2012 22:20:57 | 1,141,850 | 01/10/2012 21:50:37 | 1 | 0 | Getting a max value from a node of XML in SQL Server 2008 | I have some xml like this
<variable>
<historicDates>
<item>
<date>2012/01/13</date>
<type>submitted</type>
</item>
<item>
<date>2012/01/12</date>
<type>required</type>
</item>
<item>
<date>2012/01/11</date>
<type>required</type>
</item>
</historicDates>
</variable>
I am trying to write a sql statement to get the maximum date where the type equals required. To compound the issue I the column is a nvarchar(max) so I know I have to cast it as xml even before I start.
I've tried to figure out the cross apply but cannot get it to work. Any help would be appreciated.
| sql | xml | server | value | max | null | open | Getting a max value from a node of XML in SQL Server 2008
===
I have some xml like this
<variable>
<historicDates>
<item>
<date>2012/01/13</date>
<type>submitted</type>
</item>
<item>
<date>2012/01/12</date>
<type>required</type>
</item>
<item>
<date>2012/01/11</date>
<type>required</type>
</item>
</historicDates>
</variable>
I am trying to write a sql statement to get the maximum date where the type equals required. To compound the issue I the column is a nvarchar(max) so I know I have to cast it as xml even before I start.
I've tried to figure out the cross apply but cannot get it to work. Any help would be appreciated.
| 0 |
9,020,673 | 01/26/2012 15:39:56 | 322,013 | 04/21/2010 07:06:12 | 137 | 7 | What is the Jenkins plugin that makes developers more productive? | A question to developers using Jenkins. Which plugin makes you more productive than working with Jenkins without this plugin? | continuous-integration | jenkins | jenkins-plugins | null | null | 01/27/2012 21:18:14 | not constructive | What is the Jenkins plugin that makes developers more productive?
===
A question to developers using Jenkins. Which plugin makes you more productive than working with Jenkins without this plugin? | 4 |
11,200,517 | 06/26/2012 03:46:36 | 1,256,665 | 03/08/2012 09:34:07 | 13 | 0 | Migration VSS 6.0 to SVN | Try to convert VSS 6.0 to SVN with this tool [VSSMigrate][1]. I got following Error.
System.InvalidCastException: Unable to cast COM object of type 'SourceSafeTypeLib.VSSDatabaseClass' to interface type 'SourceSafeTypeLib.IVSSDatabase'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2A0DE0EE-2E9F-11D0-9236-00AA00A1EB95}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). at SourceSafeTypeLib.VSSDatabaseClass.Open(String SrcSafeIni, String Username, String Password)
What i Know for this error is current migration tool can't support VSS 6.0 and only support VSS 2005.
So, Is there any other tools to Migrate VSS 6.0 to SVN
[1]: http://vssmigrate.codeplex.com/releases/view/32081 | svn | migration | visual-sourcesafe | null | null | 06/26/2012 17:55:17 | off topic | Migration VSS 6.0 to SVN
===
Try to convert VSS 6.0 to SVN with this tool [VSSMigrate][1]. I got following Error.
System.InvalidCastException: Unable to cast COM object of type 'SourceSafeTypeLib.VSSDatabaseClass' to interface type 'SourceSafeTypeLib.IVSSDatabase'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2A0DE0EE-2E9F-11D0-9236-00AA00A1EB95}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). at SourceSafeTypeLib.VSSDatabaseClass.Open(String SrcSafeIni, String Username, String Password)
What i Know for this error is current migration tool can't support VSS 6.0 and only support VSS 2005.
So, Is there any other tools to Migrate VSS 6.0 to SVN
[1]: http://vssmigrate.codeplex.com/releases/view/32081 | 2 |
8,702,762 | 01/02/2012 15:50:50 | 1,125,536 | 01/02/2012 00:02:55 | 1 | 0 | how to change order of the nubers in table | I am new at learning how to mate 10 or 20 or 25 number table. I am doing 10 number table. For example I have 4 number table 1,2,3,4 and want at the end to write it like 4,3,2,1 - can someone tell me how to do that?
Please | c# | null | null | null | null | 01/03/2012 08:28:17 | not a real question | how to change order of the nubers in table
===
I am new at learning how to mate 10 or 20 or 25 number table. I am doing 10 number table. For example I have 4 number table 1,2,3,4 and want at the end to write it like 4,3,2,1 - can someone tell me how to do that?
Please | 1 |
9,351,263 | 02/19/2012 17:12:55 | 1,002,288 | 10/19/2011 02:07:29 | 792 | 0 | the probability of picking a seat randomly in a stadium | An interview question about probability.
You enter a stadium with 1000 seats. you are told that under one of the
chairs is a prize. You choose a seat randomly.
q1, what's the probability your seat has a prize
q2, now 990 seats are removed, not including your seat or the one with the
prize under it. There are 10 seats left. What's the probability that your
seat contains the prize now?
My answer to q1: 1/1000
to q2: 1/10.
right ?
Thanks a lot!
| algorithm | interview-questions | probability | brainteaser | null | 02/22/2012 03:33:02 | off topic | the probability of picking a seat randomly in a stadium
===
An interview question about probability.
You enter a stadium with 1000 seats. you are told that under one of the
chairs is a prize. You choose a seat randomly.
q1, what's the probability your seat has a prize
q2, now 990 seats are removed, not including your seat or the one with the
prize under it. There are 10 seats left. What's the probability that your
seat contains the prize now?
My answer to q1: 1/1000
to q2: 1/10.
right ?
Thanks a lot!
| 2 |
8,632,409 | 12/26/2011 01:10:54 | 244,005 | 01/05/2010 15:00:18 | 1,017 | 8 | c#: distributed list | I would like to maintain a list of objects that is distributed between N load balanced servers: whenever a client changes the list on one server, I would like these changes to migrate to the other servers. So, I guess this is a case of master-master replication.
What is the simplest way of handling this? One simplifying fact is that each change to an object in the list has an associated increasing version number attached to it. So, it is possible to resolve conflicts if an item was changed on two different servers, and these two deltas make their way to a third server.
| c# | .net | windows | distributed-caching | null | null | open | c#: distributed list
===
I would like to maintain a list of objects that is distributed between N load balanced servers: whenever a client changes the list on one server, I would like these changes to migrate to the other servers. So, I guess this is a case of master-master replication.
What is the simplest way of handling this? One simplifying fact is that each change to an object in the list has an associated increasing version number attached to it. So, it is possible to resolve conflicts if an item was changed on two different servers, and these two deltas make their way to a third server.
| 0 |
2,263,404 | 02/15/2010 00:10:20 | 114,970 | 05/31/2009 01:32:57 | 125 | 0 | What package I should install for 'pcre-devel'? | I need to install pcre-devel package to compile lighttpd on ubuntu:
configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre
Can you please tell me how to do that?
Thank you.
| ubuntu | null | null | null | null | 10/28/2011 02:58:12 | off topic | What package I should install for 'pcre-devel'?
===
I need to install pcre-devel package to compile lighttpd on ubuntu:
configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre
Can you please tell me how to do that?
Thank you.
| 2 |
3,455,394 | 08/11/2010 04:55:04 | 416,862 | 08/11/2010 04:55:04 | 1 | 0 | Trying to use static methods/members, need some help | I've been spoilt with c# coding the last few years and now I'm back onto c++ and finding that I'm having trouble with stuff that is supposed to be simple. I'm using a third party library for gamedev called DarkGDK (any commands which are prefixed with db), however DGDK isn't the problem.
Heres my code:
System.h
#pragma once
#include <string>
#include <map>
#include "DarkGDK.h"
using namespace std;
class System
{
public:
System();
~System();
void Initialize();
static void LoadImage(string fileName, string id);
static int GetImage(string id);
private:
map<string, int> m_images;
};
System.cpp
#include "System.h"
System::System()
{
}
System::~System()
{
}
void System::Initialize()
{
dbSetDisplayMode (1024, 640, 32);
dbSetWindowTitle ("the Laboratory");
dbSetWindowPosition(100, 10);
dbSyncOn ();
dbSyncRate (60);
dbRandomize(dbTimer());
}
void System::LoadImage(string fileName, string id)
{
int i = 1;
while (dbImageExist(i))
{
i++;
}
dbLoadImage(const_cast<char*>(fileName.c_str()), i, 1);
m_images[id] = i;
}
int System::GetImage(string id)
{
return m_images[id];
}
The idea here is to have a map which maps strings against integer values, to access images with a string instead of hardcoded values. This class isn't done, so it doesn't handle anything like unloading images. I want to access the image methods without passing an instance of System, so I used static.
Now i get this error:
> blahblah\system.cpp(39) : error C2677:
> binary '[' : no global operator found
> which takes type 'std::string' (or
> there is no acceptable conversion)
If I change the map to static, I get this linker error:
> 1>System.obj : error LNK2001:
> unresolved external symbol "private:
> static class std::map<class
> std::basic_string<char,struct
> std::char_traits<char>,class
> std::allocator<char> >,int,struct
> std::less<class
> std::basic_string<char,struct
> std::char_traits<char>,class
> std::allocator<char> > >,class
> std::allocator<struct std::pair<class
> std::basic_string<char,struct
> std::char_traits<char>,class
> std::allocator<char> > const ,int> > >
> System::m_images"
> (?m_images@System@@0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@A)
Can any of you bright chaps help me out?
cheers,
Draknir | c++ | static-methods | static-member | null | null | null | open | Trying to use static methods/members, need some help
===
I've been spoilt with c# coding the last few years and now I'm back onto c++ and finding that I'm having trouble with stuff that is supposed to be simple. I'm using a third party library for gamedev called DarkGDK (any commands which are prefixed with db), however DGDK isn't the problem.
Heres my code:
System.h
#pragma once
#include <string>
#include <map>
#include "DarkGDK.h"
using namespace std;
class System
{
public:
System();
~System();
void Initialize();
static void LoadImage(string fileName, string id);
static int GetImage(string id);
private:
map<string, int> m_images;
};
System.cpp
#include "System.h"
System::System()
{
}
System::~System()
{
}
void System::Initialize()
{
dbSetDisplayMode (1024, 640, 32);
dbSetWindowTitle ("the Laboratory");
dbSetWindowPosition(100, 10);
dbSyncOn ();
dbSyncRate (60);
dbRandomize(dbTimer());
}
void System::LoadImage(string fileName, string id)
{
int i = 1;
while (dbImageExist(i))
{
i++;
}
dbLoadImage(const_cast<char*>(fileName.c_str()), i, 1);
m_images[id] = i;
}
int System::GetImage(string id)
{
return m_images[id];
}
The idea here is to have a map which maps strings against integer values, to access images with a string instead of hardcoded values. This class isn't done, so it doesn't handle anything like unloading images. I want to access the image methods without passing an instance of System, so I used static.
Now i get this error:
> blahblah\system.cpp(39) : error C2677:
> binary '[' : no global operator found
> which takes type 'std::string' (or
> there is no acceptable conversion)
If I change the map to static, I get this linker error:
> 1>System.obj : error LNK2001:
> unresolved external symbol "private:
> static class std::map<class
> std::basic_string<char,struct
> std::char_traits<char>,class
> std::allocator<char> >,int,struct
> std::less<class
> std::basic_string<char,struct
> std::char_traits<char>,class
> std::allocator<char> > >,class
> std::allocator<struct std::pair<class
> std::basic_string<char,struct
> std::char_traits<char>,class
> std::allocator<char> > const ,int> > >
> System::m_images"
> (?m_images@System@@0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HU?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@std@@@2@@std@@A)
Can any of you bright chaps help me out?
cheers,
Draknir | 0 |
6,239,601 | 06/04/2011 21:47:26 | 784,302 | 06/04/2011 21:47:26 | 1 | 0 | Books on SQL ODBC | Are there any good books avaliable on writing SQL queries using ODBC? | sql | books | odbc | null | null | 06/05/2011 01:43:29 | off topic | Books on SQL ODBC
===
Are there any good books avaliable on writing SQL queries using ODBC? | 2 |
11,627,785 | 07/24/2012 09:20:14 | 1,548,157 | 07/24/2012 09:16:50 | 1 | 0 | Producer Consumer | I was asked to write code for consumer and producer threads accessing shared queue in an interview with the given primitives
ADDNEW.Process PROCESS.SET PROCESS.RESET ENTER CS EXIT CS LOOP EXIT LOOP WAIT# PROCESS
| multithreading | null | null | null | null | 07/24/2012 22:33:06 | not a real question | Producer Consumer
===
I was asked to write code for consumer and producer threads accessing shared queue in an interview with the given primitives
ADDNEW.Process PROCESS.SET PROCESS.RESET ENTER CS EXIT CS LOOP EXIT LOOP WAIT# PROCESS
| 1 |
7,452,202 | 09/17/2011 03:12:55 | 510,346 | 11/17/2010 04:07:26 | 211 | 4 | groovy closure inheritance | How does inheritance work in groovy for closures? Is there anything special to be aware of? My application is to extend a plugin controller, that I need to leave alone should any updates come in for it.
| grails | groovy | null | null | null | null | open | groovy closure inheritance
===
How does inheritance work in groovy for closures? Is there anything special to be aware of? My application is to extend a plugin controller, that I need to leave alone should any updates come in for it.
| 0 |
7,049,245 | 08/13/2011 07:49:56 | 892,851 | 08/13/2011 07:49:56 | 1 | 0 | Regex match before string comes up | So i have this file of 10,000+ lines of messages from a game server, like so:
> 11.07.23 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp
> (-90.8, 64.0, 167.5) to (-90.7, 64.0, 167.3) distance (0.0, 0.0, 0.2)
> 11.07.23 10:57:44 [INFO] NC: Moving violation: AKxiZeroDark from yasmp
> (-1228.3, 11.2, 1098.7) to (-1228.3, 11.2, 1098.7) distance (0.0, 0.0,
> 0.0)
The current regex code i have is: "\d{1,4}\.\d{1}"
which matches so far everything in bold:
> **11.07.23** 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp (-**90.8**, **64.0**, **167.5**) to (-**90.7**, **64.0**, **167.3**) distance (**0.0**, **0.0**, **0.2**)
Ive been having trouble finding a way to get the part that only says:
> (-1228.3, 11.2, 1098.7) to (-1228.3, 11.2, 1098.7)
before the "distance" word, and without the timestamp in the beginning, and eventually replacing it to end up like this:
> 11.07.23 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp
> **(-#, #, #)** to **(-#, #, #)** distance (0.0, 0.0, 0.2)
> 11.07.23 10:57:44 [INFO] NC: Moving violation: AKxiZeroDark from yasmp
> **(-#, #, #)** to **(-#, #, #)** distance (0.0, 0.0, 0.0)
And a bit of extra information, the numbers can be either negative or not, ranging from 1.0 digit to 1234.0 digits, which is why i need help matching before the word "distance" again.
EDIT: Or even, it would be fine if the entire thing didnt show up:
> 11.07.23 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp
> distance (0.0, 0.0, 0.2)
> 11.07.23 10:57:44 [INFO] NC: Moving violation: AKxiZeroDark from yasmp
> distance (0.0, 0.0, 0.0) | regex | string-matching | null | null | null | null | open | Regex match before string comes up
===
So i have this file of 10,000+ lines of messages from a game server, like so:
> 11.07.23 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp
> (-90.8, 64.0, 167.5) to (-90.7, 64.0, 167.3) distance (0.0, 0.0, 0.2)
> 11.07.23 10:57:44 [INFO] NC: Moving violation: AKxiZeroDark from yasmp
> (-1228.3, 11.2, 1098.7) to (-1228.3, 11.2, 1098.7) distance (0.0, 0.0,
> 0.0)
The current regex code i have is: "\d{1,4}\.\d{1}"
which matches so far everything in bold:
> **11.07.23** 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp (-**90.8**, **64.0**, **167.5**) to (-**90.7**, **64.0**, **167.3**) distance (**0.0**, **0.0**, **0.2**)
Ive been having trouble finding a way to get the part that only says:
> (-1228.3, 11.2, 1098.7) to (-1228.3, 11.2, 1098.7)
before the "distance" word, and without the timestamp in the beginning, and eventually replacing it to end up like this:
> 11.07.23 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp
> **(-#, #, #)** to **(-#, #, #)** distance (0.0, 0.0, 0.2)
> 11.07.23 10:57:44 [INFO] NC: Moving violation: AKxiZeroDark from yasmp
> **(-#, #, #)** to **(-#, #, #)** distance (0.0, 0.0, 0.0)
And a bit of extra information, the numbers can be either negative or not, ranging from 1.0 digit to 1234.0 digits, which is why i need help matching before the word "distance" again.
EDIT: Or even, it would be fine if the entire thing didnt show up:
> 11.07.23 08:40:16 [INFO] NC: Moving violation: wolfman98 from yasmp
> distance (0.0, 0.0, 0.2)
> 11.07.23 10:57:44 [INFO] NC: Moving violation: AKxiZeroDark from yasmp
> distance (0.0, 0.0, 0.0) | 0 |
8,440,063 | 12/09/2011 01:35:09 | 973,397 | 09/30/2011 15:37:26 | 177 | 2 | One parallax custom transition | How can I create just one parallax transition that's custom on my site (nice scroll, then bounce) -
eg. With an arrow that when pushed, with a transition, scrolls the user to the bottom of the screen and then bounces a little after reached there. So, as if it scrolled all nice then hit the footer and reacted | javascript | jquery | html | css | null | 12/09/2011 01:53:40 | not a real question | One parallax custom transition
===
How can I create just one parallax transition that's custom on my site (nice scroll, then bounce) -
eg. With an arrow that when pushed, with a transition, scrolls the user to the bottom of the screen and then bounces a little after reached there. So, as if it scrolled all nice then hit the footer and reacted | 1 |
5,838,546 | 04/30/2011 00:08:00 | 731,916 | 04/30/2011 00:08:00 | 1 | 0 | DATABASE Retrievel in Android | Hi I am try to retrieve information from my database by using information inside a textview. When the user presses the button the information in the textview is searched in a database for a result and then displayed in an intent. For example if a icon on a map is selected the name of the icon goes into textview. In my case I have shop names for the icons, so when a icon is selected the name of the shop selected appears in the textview. Then when I press the opening times button, I want to be able to search my database for opening times for the shop that has been selected in the textview.Once the search is done the results are displayed in an intent. I am new to android and would be very grateful for any help. | android | null | null | null | null | 04/30/2011 05:32:41 | not a real question | DATABASE Retrievel in Android
===
Hi I am try to retrieve information from my database by using information inside a textview. When the user presses the button the information in the textview is searched in a database for a result and then displayed in an intent. For example if a icon on a map is selected the name of the icon goes into textview. In my case I have shop names for the icons, so when a icon is selected the name of the shop selected appears in the textview. Then when I press the opening times button, I want to be able to search my database for opening times for the shop that has been selected in the textview.Once the search is done the results are displayed in an intent. I am new to android and would be very grateful for any help. | 1 |
6,713,158 | 07/15/2011 21:08:55 | 82,474 | 03/25/2009 09:43:21 | 1,938 | 53 | What are regular expressions good for? | If you ask a question about parsing HTML with regex, you will certainly be referenced to this famous [rant](http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454). Though there is not a canonical rant for it, I've also been told that regex aren't powerful enough to parse SQL.
I'm a self-taught programmer, so I don't know much about languages from a theoretical perspective. Practically speaking, what are examples of languages or grammars that regex can always parse successfully?
To be specific, I'd really like a few examples of languages that are used in the real world that fit in the category of regular languages, rather than some axioms or equivalent conditions, etc. | regex | language | computer-science | null | null | 07/15/2011 22:21:32 | not constructive | What are regular expressions good for?
===
If you ask a question about parsing HTML with regex, you will certainly be referenced to this famous [rant](http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454). Though there is not a canonical rant for it, I've also been told that regex aren't powerful enough to parse SQL.
I'm a self-taught programmer, so I don't know much about languages from a theoretical perspective. Practically speaking, what are examples of languages or grammars that regex can always parse successfully?
To be specific, I'd really like a few examples of languages that are used in the real world that fit in the category of regular languages, rather than some axioms or equivalent conditions, etc. | 4 |
6,667,061 | 07/12/2011 15:45:15 | 257,972 | 01/21/2010 16:54:38 | 1,372 | 123 | Does try/except block causes commit_on_success to fail | @transection.commit_on_success
def recordIt(...)
try:
....
recordable = firstDataInsertionFunction(...)
if recordable:
myRec = SecondDataInsertion(.....)
except:
....
As for __commit_on_success__, if my second data insertion fails, django must automatically rollback, so my first data insertion will be rolled back too...
But this is not working, and first inserted data is saved to db, while i could not see the result of second insertion on my database... Is try/except causes commit_on_success to fail? Because as documentation says:
> If the function returns successfully, then Django will commit all work done within the function at that point. If the function raises an exception, though, Django will roll back the transaction.
And try handles all exceptions. Is is the problem of my not working __commit_on_success__? | django | exception-handling | null | null | null | null | open | Does try/except block causes commit_on_success to fail
===
@transection.commit_on_success
def recordIt(...)
try:
....
recordable = firstDataInsertionFunction(...)
if recordable:
myRec = SecondDataInsertion(.....)
except:
....
As for __commit_on_success__, if my second data insertion fails, django must automatically rollback, so my first data insertion will be rolled back too...
But this is not working, and first inserted data is saved to db, while i could not see the result of second insertion on my database... Is try/except causes commit_on_success to fail? Because as documentation says:
> If the function returns successfully, then Django will commit all work done within the function at that point. If the function raises an exception, though, Django will roll back the transaction.
And try handles all exceptions. Is is the problem of my not working __commit_on_success__? | 0 |
9,501,227 | 02/29/2012 14:49:51 | 1,240,508 | 02/29/2012 14:34:58 | 1 | 0 | C program to extract a bit or a group of bits from a Ethernet frame | I am doing a project in college in which i have to extract a bit or a group of bits from a Ethernet frame in C PROGRAMMING. Can someone please provide an example in writing the code? Thank you. | c | null | null | null | null | 02/29/2012 15:04:00 | not a real question | C program to extract a bit or a group of bits from a Ethernet frame
===
I am doing a project in college in which i have to extract a bit or a group of bits from a Ethernet frame in C PROGRAMMING. Can someone please provide an example in writing the code? Thank you. | 1 |
7,623,301 | 10/01/2011 22:15:38 | 974,916 | 10/01/2011 22:08:41 | 1 | 0 | JavaScript to PHP translation | not familiar with PHP as I'm with JavaScript so maybe you can help translating the following code to PHP.
<script type="text/javascript">
var d=new Date();
var weekday=new Array(7);
weekday[0]="Sunday";
weekday[1]="Monday";
weekday[2]="Tuesday";
weekday[3]="Wednesday";
weekday[4]="Thursday";
weekday[5]="Friday";
weekday[6]="Saturday";
document.write("Hurray! It's " + weekday[d.getDay()]);
</script> | java | php | translation | into | null | 10/01/2011 22:36:33 | not a real question | JavaScript to PHP translation
===
not familiar with PHP as I'm with JavaScript so maybe you can help translating the following code to PHP.
<script type="text/javascript">
var d=new Date();
var weekday=new Array(7);
weekday[0]="Sunday";
weekday[1]="Monday";
weekday[2]="Tuesday";
weekday[3]="Wednesday";
weekday[4]="Thursday";
weekday[5]="Friday";
weekday[6]="Saturday";
document.write("Hurray! It's " + weekday[d.getDay()]);
</script> | 1 |
2,413,530 | 03/09/2010 23:56:30 | 284,765 | 07/01/2009 14:27:46 | 36 | 4 | Find an IVsTextView or IWpfTextView for a given ProjectItem, in VS 2010 RC extension | I have the ProjectItem, and want to get the IWPFTextView that is associated with it, if any.
I have tried to get an IVsTextManager, and then iterate through the views, but iVsTextManager.EnumViews always returns nothing.
Here is what I've got so far:
var txtMgr = (IVsTextManager)Package.GetGlobalService(typeof(SVsTextManager));
if (txtMgr != null)
{
IVsEnumTextViews iVsEnumTextViews;
IVsTextView[] views = null;
// Passing null will return all available views, at least according to the documentation
// unfortunately, this returns a 0x80070057 error (invalid parameter)
var errorValue = txtMgr.EnumViews(null, out iVsEnumTextViews);
if (errorValue == VSConstants.S_OK)
{
// enumerate, find the IVsTextView with a matching filename.
Surely there is another/better way??
Thanks in advance
~ Cameron | visual-studio-2010 | add-in | extension | null | null | null | open | Find an IVsTextView or IWpfTextView for a given ProjectItem, in VS 2010 RC extension
===
I have the ProjectItem, and want to get the IWPFTextView that is associated with it, if any.
I have tried to get an IVsTextManager, and then iterate through the views, but iVsTextManager.EnumViews always returns nothing.
Here is what I've got so far:
var txtMgr = (IVsTextManager)Package.GetGlobalService(typeof(SVsTextManager));
if (txtMgr != null)
{
IVsEnumTextViews iVsEnumTextViews;
IVsTextView[] views = null;
// Passing null will return all available views, at least according to the documentation
// unfortunately, this returns a 0x80070057 error (invalid parameter)
var errorValue = txtMgr.EnumViews(null, out iVsEnumTextViews);
if (errorValue == VSConstants.S_OK)
{
// enumerate, find the IVsTextView with a matching filename.
Surely there is another/better way??
Thanks in advance
~ Cameron | 0 |
2,345,624 | 02/27/2010 00:01:56 | 282,455 | 02/27/2010 00:01:56 | 1 | 0 | the application "Buzz Aldrin" was not installed on the iPhone "iPhone" because the signer is not valid | The iphone is attached to a mac runnning the latest itunes version and I am 100% sure that her UDID is in the provisioning file. Her iphone has not been jailbroken and we even restored it to factory settings.
I am having trouble installing our development build on one iphone. The error is:
the application "Buzz Aldrin" was not installed on the iPhone "iPhone" because the signer is not valid
I am 100% sure that the UDID is accurately entered in the provisioning file and that they correctly copied the right provision file/build combo. This same combo has been successfully installed on over a dozen iphones.
As you can see, this App is for Astronaut Buzz Aldrin and unfortunately the problem device belongs to the president of his company (it's always like this!). Luckily, we have been able to get it on Buzz's iphone with no issues. At least so far! If there are any space fans out there who want to help us out over the phone/email/skype please email me at scot@theappcompany.com. I'm sure buzz would be happy to send you a thank you letter!
| iphone | adhoc | null | null | null | null | open | the application "Buzz Aldrin" was not installed on the iPhone "iPhone" because the signer is not valid
===
The iphone is attached to a mac runnning the latest itunes version and I am 100% sure that her UDID is in the provisioning file. Her iphone has not been jailbroken and we even restored it to factory settings.
I am having trouble installing our development build on one iphone. The error is:
the application "Buzz Aldrin" was not installed on the iPhone "iPhone" because the signer is not valid
I am 100% sure that the UDID is accurately entered in the provisioning file and that they correctly copied the right provision file/build combo. This same combo has been successfully installed on over a dozen iphones.
As you can see, this App is for Astronaut Buzz Aldrin and unfortunately the problem device belongs to the president of his company (it's always like this!). Luckily, we have been able to get it on Buzz's iphone with no issues. At least so far! If there are any space fans out there who want to help us out over the phone/email/skype please email me at scot@theappcompany.com. I'm sure buzz would be happy to send you a thank you letter!
| 0 |
10,253,577 | 04/20/2012 21:08:34 | 123,348 | 06/15/2009 20:46:01 | 739 | 12 | How to modify a tsql count statement? | I am using SSMS 2008 R2 and am trying to fix the counts from this TSQL query. I actually want the distinct count of people_id values per Discharge Location and per Diagnosis:
SELECT [dbo].[fn_GetItemDescription] (g.program_providing_service, 'program_info') as ProgramName,
datepart(quarter, g.actual_date) as Quarter_Date,
DC_Location_ct = COUNT(DISTINCT CASE WHEN ld.[Discharge Location] is not null THEN g.People_ID END),
ld.[Discharge Location],
Diagnosis_ct = COUNT(DISTINCT CASE WHEN J.[DSM4_Code] is not null THEN g.People_ID END),
CASE WHEN J.[DSM4_Code] LIKE '296.%' THEN '296.XX' ELSE J.[DSM4_Code] END Diagnosis
FROM #EVENT_LOG g
join #LOS_Data ld on ld.event_log_id = g.event_log_id
left join address_view av With (NoLock) on av.people_id = g.people_id
left join benefits_assignments_view bav With (NoLock) on bav.people_id = g.people_id and bav.is_deleted = 0
left join priorities_rv pr With (NoLock) on pr.priorities_id = bav.priorities_id
left join programs_view pv With (NoLock) on pv.program_info_id = g.program_providing_service
left join [diagnosis_history_view] J With (NoLock) on J.people_id = g.people_id
left join evolv_cs.dbo.location l with (nolock) on l.location_id = g.actual_location
left join #DischargedClients dc on dc.event_log_id = g.event_log_id
where (J.[DSM4_Code] LIKE '296.%' OR J.[DSM4_Code] IN ('312.9','309.4','312.81','311','296.8','313.81','313.89','314.01','319.4','319.9'))
and ld.race is not null --and ld.[Discharge Location] is not null --and l.[description] is not null
and datepart(quarter, g.actual_date)=1
GROUP BY [dbo].[fn_GetItemDescription] (g.program_providing_service, 'program_info'), datepart(quarter, g.actual_date),
ld.[Discharge Location],J.[DSM4_Code]
The output from the above is:
ProgramName Quarter_Date DC_Location_ct Discharge Location Diagnosis_ct Diagnosis
In-Home Services - Multisystemic Therapy 1 0 NULL 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 8 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 3 311
In-Home Services - Multisystemic Therapy 1 0 NULL 1 312.81
In-Home Services - Multisystemic Therapy 1 0 NULL 24 313.81
In-Home Services - Multisystemic Therapy 1 0 NULL 14 314.01
In-Home Services - Multisystemic Therapy 1 1 Home-Biological Parent 1 296.XX
In-Home Services - Multisystemic Therapy 1 1 Home-Biological Parent 1 296.XX
In-Home Services - Multisystemic Therapy 1 1 Home-Biological Parent 1 311
In-Home Services - Multisystemic Therapy 1 6 Home-Biological Parent 6 313.81
In-Home Services - Multisystemic Therapy 1 2 Home-Biological Parent 2 314.01
In-Home Services - Multisystemic Therapy 1 0 Residential treatment 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 Residential treatment 1 313.81
In-Home Services - Multisystemic Therapy 1 0 Residential treatment 1 314.01
But when I run this query:
select count(distinct ld.people_id) , ld.[Discharge Location]
FROM #EVENT_LOG g
join #LOS_Data ld on ld.event_log_id = g.event_log_id
left join address_view av With (NoLock) on av.people_id = g.people_id
left join benefits_assignments_view bav With (NoLock) on bav.people_id = g.people_id and bav.is_deleted = 0
left join priorities_rv pr With (NoLock) on pr.priorities_id = bav.priorities_id
left join programs_view pv With (NoLock) on pv.program_info_id = g.program_providing_service
left join [diagnosis_history_view] J With (NoLock) on J.people_id = g.people_id
left join evolv_cs.dbo.location l with (nolock) on l.location_id = g.actual_location
left join #DischargedClients dc on dc.event_log_id = g.event_log_id
where (J.[DSM4_Code] LIKE '296.%' OR J.[DSM4_Code] IN ('312.9','309.4','312.81','311','296.8','313.81','313.89','314.01','319.4','319.9'))
and ld.race is not null --and ld.[Discharge Location] is not null --and l.[description] is not null
and ld.[Discharge Location] like 'home-bio%'
and datepart(quarter, g.actual_date)=1
group by ld.[Discharge Location]
I get:
(No column name) Discharge Location
6 Home-Biological Parent
Is there a way to retrieve all of these values from just ONE select statement? How? | count | case | ssms2008 | null | null | null | open | How to modify a tsql count statement?
===
I am using SSMS 2008 R2 and am trying to fix the counts from this TSQL query. I actually want the distinct count of people_id values per Discharge Location and per Diagnosis:
SELECT [dbo].[fn_GetItemDescription] (g.program_providing_service, 'program_info') as ProgramName,
datepart(quarter, g.actual_date) as Quarter_Date,
DC_Location_ct = COUNT(DISTINCT CASE WHEN ld.[Discharge Location] is not null THEN g.People_ID END),
ld.[Discharge Location],
Diagnosis_ct = COUNT(DISTINCT CASE WHEN J.[DSM4_Code] is not null THEN g.People_ID END),
CASE WHEN J.[DSM4_Code] LIKE '296.%' THEN '296.XX' ELSE J.[DSM4_Code] END Diagnosis
FROM #EVENT_LOG g
join #LOS_Data ld on ld.event_log_id = g.event_log_id
left join address_view av With (NoLock) on av.people_id = g.people_id
left join benefits_assignments_view bav With (NoLock) on bav.people_id = g.people_id and bav.is_deleted = 0
left join priorities_rv pr With (NoLock) on pr.priorities_id = bav.priorities_id
left join programs_view pv With (NoLock) on pv.program_info_id = g.program_providing_service
left join [diagnosis_history_view] J With (NoLock) on J.people_id = g.people_id
left join evolv_cs.dbo.location l with (nolock) on l.location_id = g.actual_location
left join #DischargedClients dc on dc.event_log_id = g.event_log_id
where (J.[DSM4_Code] LIKE '296.%' OR J.[DSM4_Code] IN ('312.9','309.4','312.81','311','296.8','313.81','313.89','314.01','319.4','319.9'))
and ld.race is not null --and ld.[Discharge Location] is not null --and l.[description] is not null
and datepart(quarter, g.actual_date)=1
GROUP BY [dbo].[fn_GetItemDescription] (g.program_providing_service, 'program_info'), datepart(quarter, g.actual_date),
ld.[Discharge Location],J.[DSM4_Code]
The output from the above is:
ProgramName Quarter_Date DC_Location_ct Discharge Location Diagnosis_ct Diagnosis
In-Home Services - Multisystemic Therapy 1 0 NULL 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 8 296.XX
In-Home Services - Multisystemic Therapy 1 0 NULL 3 311
In-Home Services - Multisystemic Therapy 1 0 NULL 1 312.81
In-Home Services - Multisystemic Therapy 1 0 NULL 24 313.81
In-Home Services - Multisystemic Therapy 1 0 NULL 14 314.01
In-Home Services - Multisystemic Therapy 1 1 Home-Biological Parent 1 296.XX
In-Home Services - Multisystemic Therapy 1 1 Home-Biological Parent 1 296.XX
In-Home Services - Multisystemic Therapy 1 1 Home-Biological Parent 1 311
In-Home Services - Multisystemic Therapy 1 6 Home-Biological Parent 6 313.81
In-Home Services - Multisystemic Therapy 1 2 Home-Biological Parent 2 314.01
In-Home Services - Multisystemic Therapy 1 0 Residential treatment 1 296.XX
In-Home Services - Multisystemic Therapy 1 0 Residential treatment 1 313.81
In-Home Services - Multisystemic Therapy 1 0 Residential treatment 1 314.01
But when I run this query:
select count(distinct ld.people_id) , ld.[Discharge Location]
FROM #EVENT_LOG g
join #LOS_Data ld on ld.event_log_id = g.event_log_id
left join address_view av With (NoLock) on av.people_id = g.people_id
left join benefits_assignments_view bav With (NoLock) on bav.people_id = g.people_id and bav.is_deleted = 0
left join priorities_rv pr With (NoLock) on pr.priorities_id = bav.priorities_id
left join programs_view pv With (NoLock) on pv.program_info_id = g.program_providing_service
left join [diagnosis_history_view] J With (NoLock) on J.people_id = g.people_id
left join evolv_cs.dbo.location l with (nolock) on l.location_id = g.actual_location
left join #DischargedClients dc on dc.event_log_id = g.event_log_id
where (J.[DSM4_Code] LIKE '296.%' OR J.[DSM4_Code] IN ('312.9','309.4','312.81','311','296.8','313.81','313.89','314.01','319.4','319.9'))
and ld.race is not null --and ld.[Discharge Location] is not null --and l.[description] is not null
and ld.[Discharge Location] like 'home-bio%'
and datepart(quarter, g.actual_date)=1
group by ld.[Discharge Location]
I get:
(No column name) Discharge Location
6 Home-Biological Parent
Is there a way to retrieve all of these values from just ONE select statement? How? | 0 |
5,600,330 | 04/08/2011 20:16:10 | 212,692 | 11/17/2009 08:39:09 | 106 | 3 | flex/AIR datagrid access particular row | I am stuck in a problem working on Flex datagrid, in an AIR application.
How can I access a specific row in datagrid in Flex. Please note that i am not talking about the selectedItem or any particular record of dataProvider of datagrid.
What exactly I want to do is I am showing some files data (name, description etc.) on a datagrid, and the data of these files comes from an array which is the dataProvider of the datagrid.
Now when these files are being uploaded one by one to the server (using a webservice), I want to show a ProgressBar on, say, "Progress" column in the datagrid. How can I access this column for a particular row in datagrid i.e. current file being uploaded.
Please refer to image to better understand my query.![enter image description here][1]
Please guide me.
Thanks
[1]: http://i.stack.imgur.com/ilHBo.png | flex | datagrid | null | null | null | null | open | flex/AIR datagrid access particular row
===
I am stuck in a problem working on Flex datagrid, in an AIR application.
How can I access a specific row in datagrid in Flex. Please note that i am not talking about the selectedItem or any particular record of dataProvider of datagrid.
What exactly I want to do is I am showing some files data (name, description etc.) on a datagrid, and the data of these files comes from an array which is the dataProvider of the datagrid.
Now when these files are being uploaded one by one to the server (using a webservice), I want to show a ProgressBar on, say, "Progress" column in the datagrid. How can I access this column for a particular row in datagrid i.e. current file being uploaded.
Please refer to image to better understand my query.![enter image description here][1]
Please guide me.
Thanks
[1]: http://i.stack.imgur.com/ilHBo.png | 0 |
11,644,968 | 07/25/2012 07:46:05 | 433,595 | 08/28/2010 08:18:02 | 192 | 1 | What is the use of Html.BeginForm in MVC3 | What is the use of Html.BeginForm in MVC3.
Why do we use it, when we can just add a form tag directly, does this html helper add some capability or does something which cannot be done with a simple form tag. | asp.net-mvc | null | null | null | null | null | open | What is the use of Html.BeginForm in MVC3
===
What is the use of Html.BeginForm in MVC3.
Why do we use it, when we can just add a form tag directly, does this html helper add some capability or does something which cannot be done with a simple form tag. | 0 |
7,767,920 | 10/14/2011 12:55:45 | 516,338 | 11/22/2010 16:00:08 | 78 | 2 | Android app as gift | Is it possible to make my paid Android application for free for certain accounts? If so, how?
Thanks. | android | android-market | null | null | null | 10/15/2011 07:48:56 | off topic | Android app as gift
===
Is it possible to make my paid Android application for free for certain accounts? If so, how?
Thanks. | 2 |
10,504,442 | 05/08/2012 18:38:34 | 1,382,844 | 05/08/2012 18:27:13 | 1 | 0 | Python or PHP & what platform to use for a flash sale based type membership site? | So I'm at a crossroads with what to do here. What I'm looking to do is to create a pretty but simple flash sale site that requires a membership and a way to manage those members. I want to do this as strait forward as possible so if there is already a framework that I can just set up and build off of that would be ideal as opposed to create everything from scratch.
I'm considering doing this in either PHP or Python, using Wordpress to get things off the ground relatively quickly. I would be completely new to python (though I have no problem learning), and I have a basic foundation in PHP with all my years working with WP (though more of an ability to hack things up than custom develop them from scratch). HTML and CSS I'm firmly grounded in.
So which would be the better, more logical route to take?
Can you still program elements in Python and apply them to Wordpress?
Could Wordpress and some custom plugins do the whole trick?
Where would be the best place to start?
Thanks for all the help in advance ladies and gents!! It's much appreciated!! :)
**Added:** Should I consider Magento as well?
| php | python | wordpress | magento | null | 05/08/2012 19:46:31 | not constructive | Python or PHP & what platform to use for a flash sale based type membership site?
===
So I'm at a crossroads with what to do here. What I'm looking to do is to create a pretty but simple flash sale site that requires a membership and a way to manage those members. I want to do this as strait forward as possible so if there is already a framework that I can just set up and build off of that would be ideal as opposed to create everything from scratch.
I'm considering doing this in either PHP or Python, using Wordpress to get things off the ground relatively quickly. I would be completely new to python (though I have no problem learning), and I have a basic foundation in PHP with all my years working with WP (though more of an ability to hack things up than custom develop them from scratch). HTML and CSS I'm firmly grounded in.
So which would be the better, more logical route to take?
Can you still program elements in Python and apply them to Wordpress?
Could Wordpress and some custom plugins do the whole trick?
Where would be the best place to start?
Thanks for all the help in advance ladies and gents!! It's much appreciated!! :)
**Added:** Should I consider Magento as well?
| 4 |
8,111,425 | 11/13/2011 12:10:32 | 364,914 | 10/03/2009 05:04:00 | 758 | 11 | Javascript-firefox: Nested document.evalute searches? | var links = document.evaluate("//BODY/CENTER[1]/P[1]/TABLE[1]/TBODY[1]/TR[1]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).evaluate("//A");
basically I need to find an element via xpath. then search this element via xpath. The above doesn't work obviously but neither does using contextNode argument.
var headings = document.evaluate("//BODY/CENTER[1]/P[1]/TABLE[1]/TBODY[1]/TR[1]", document, null, XPathResult.ANY_TYPE, null);
var thisHeading = headings.iterateNext();
var headings2 = document.evaluate("//A", thisHeading, null, XPathResult.ANY_TYPE, null);
headings2.iterateNext().style.backgroundColor = "red";
I need to be able to search for children of an element via xpath.
| javascript | firefox | null | null | null | null | open | Javascript-firefox: Nested document.evalute searches?
===
var links = document.evaluate("//BODY/CENTER[1]/P[1]/TABLE[1]/TBODY[1]/TR[1]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).evaluate("//A");
basically I need to find an element via xpath. then search this element via xpath. The above doesn't work obviously but neither does using contextNode argument.
var headings = document.evaluate("//BODY/CENTER[1]/P[1]/TABLE[1]/TBODY[1]/TR[1]", document, null, XPathResult.ANY_TYPE, null);
var thisHeading = headings.iterateNext();
var headings2 = document.evaluate("//A", thisHeading, null, XPathResult.ANY_TYPE, null);
headings2.iterateNext().style.backgroundColor = "red";
I need to be able to search for children of an element via xpath.
| 0 |
5,151,482 | 03/01/2011 07:09:18 | 174,910 | 09/17/2009 11:39:43 | 38 | 1 | Please suggest me Area of focus in .Net programming? | In an article in techrepublic about <a href="http://blogs.techrepublic.com.com/programming-and-development/?p=1139
">10 tips to go from a beginner to an intermediate developer</a>
one of the auther's suggestion was "try to become an expert in at least one area of focus" and learn advance idea in depth about that area.
With this in my mind I have programmed for about a year mainly for database application in .NET envirnoment (VB/C#), Currently I want to focus or be an expert in at least one area of .NET environmt. As a resutl I had skimmed some area in .NET such as WCF,WPF, ASP.Net MVC ...etc (just reading an overview of different books). My current job . also demand on database programming mainly for desktop application.
So can you suggest me a list of areas of focus in .Net where I can delve on it beside my current job.
I am not sure whether they can be an area of focus I had some ideas such as
SOA with WCF
MVC web application
Database design and modelling
| c# | .net | vb.net | null | null | 03/01/2011 19:23:07 | off topic | Please suggest me Area of focus in .Net programming?
===
In an article in techrepublic about <a href="http://blogs.techrepublic.com.com/programming-and-development/?p=1139
">10 tips to go from a beginner to an intermediate developer</a>
one of the auther's suggestion was "try to become an expert in at least one area of focus" and learn advance idea in depth about that area.
With this in my mind I have programmed for about a year mainly for database application in .NET envirnoment (VB/C#), Currently I want to focus or be an expert in at least one area of .NET environmt. As a resutl I had skimmed some area in .NET such as WCF,WPF, ASP.Net MVC ...etc (just reading an overview of different books). My current job . also demand on database programming mainly for desktop application.
So can you suggest me a list of areas of focus in .Net where I can delve on it beside my current job.
I am not sure whether they can be an area of focus I had some ideas such as
SOA with WCF
MVC web application
Database design and modelling
| 2 |
6,667,786 | 07/12/2011 16:36:57 | 724,198 | 04/25/2011 18:50:34 | 391 | 24 | Referencing cookies set in VB.NET with javascript | In the beginning, I set a cookie value like this:
Response.Cookies("UserInfo")("UserName") = "Bob"
And it was good.
In the end, I need to read that cookie in javascript. But I have no idea how to do that. The documentation for javascript and cookies (especially those set like I have above) is poor at best. Most cookie-reading functions out there seem to only accept 1 argument (cookie name). But as we clearly see here, I have to pass two arguments to get the value for "Bob".
Any help is greatly appreciated!
Thanks,
Jason | javascript | asp.net | vb.net | cookies | null | null | open | Referencing cookies set in VB.NET with javascript
===
In the beginning, I set a cookie value like this:
Response.Cookies("UserInfo")("UserName") = "Bob"
And it was good.
In the end, I need to read that cookie in javascript. But I have no idea how to do that. The documentation for javascript and cookies (especially those set like I have above) is poor at best. Most cookie-reading functions out there seem to only accept 1 argument (cookie name). But as we clearly see here, I have to pass two arguments to get the value for "Bob".
Any help is greatly appreciated!
Thanks,
Jason | 0 |
3,768,301 | 09/22/2010 10:22:57 | 249,686 | 01/13/2010 09:59:29 | 53 | 6 | WPF Custom ICommand implementation and the CanExecuteChanged event | in my WPF UI, I use RoutedCommands that I refer to in my xaml via the following code:
Command="viewModel:MessageListViewModel.DeleteMessagesCommand"
I don't like this static link to my ViewModel class,I think this is not as nice as creating a custom ICommand implementation and use a syntax like the following
Command="{Binding DeleteMessagesCommand}"
Having created one, I notice one major drawback of what I've done: RoutedCommands utilize the CommandManager and (in some way that is completely opaque to me) fire the CommandManager.RequerySuggested event, so that their CanExecute Method is requeried automatically. As for my custom implementation, CanExecute is only fired once at startup and never again after that.
Does anybody have an elegant solution for this?
| wpf | binding | icommand | null | null | null | open | WPF Custom ICommand implementation and the CanExecuteChanged event
===
in my WPF UI, I use RoutedCommands that I refer to in my xaml via the following code:
Command="viewModel:MessageListViewModel.DeleteMessagesCommand"
I don't like this static link to my ViewModel class,I think this is not as nice as creating a custom ICommand implementation and use a syntax like the following
Command="{Binding DeleteMessagesCommand}"
Having created one, I notice one major drawback of what I've done: RoutedCommands utilize the CommandManager and (in some way that is completely opaque to me) fire the CommandManager.RequerySuggested event, so that their CanExecute Method is requeried automatically. As for my custom implementation, CanExecute is only fired once at startup and never again after that.
Does anybody have an elegant solution for this?
| 0 |
6,666,641 | 07/12/2011 15:20:29 | 841,016 | 07/12/2011 15:17:07 | 1 | 0 | C# Console Executing | i would like to have help with this.
Lets say that i want to launch a .jar file trough a bat, like
java -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
Like that.
When i press the bat, It would load in the bat file.
But lets say, that i want to create a console application that when a user presses a button, the console launches the java arg inside the console.
Please help, if you dont understand then i explain more..
Sorry for bad english
~~ redpois0n
| c# | java | jar | console | null | null | open | C# Console Executing
===
i would like to have help with this.
Lets say that i want to launch a .jar file trough a bat, like
java -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
Like that.
When i press the bat, It would load in the bat file.
But lets say, that i want to create a console application that when a user presses a button, the console launches the java arg inside the console.
Please help, if you dont understand then i explain more..
Sorry for bad english
~~ redpois0n
| 0 |
10,876,859 | 06/04/2012 05:55:07 | 1,089,462 | 12/09/2011 09:39:12 | 5 | 0 | Example of a simple Sinatra and Tire Gem application | I was wondering if someone could make a simple example of a sinatra application working with the tire gem. | sinatra | tire | null | null | null | 07/17/2012 14:41:24 | not a real question | Example of a simple Sinatra and Tire Gem application
===
I was wondering if someone could make a simple example of a sinatra application working with the tire gem. | 1 |
10,763,767 | 05/26/2012 05:11:26 | 1,418,625 | 05/26/2012 05:04:26 | 1 | 0 | ACEESS DENIED ROOT@LOCALHOST USING PASSWORD YES | I know very little about programming, means what ever learn, i learnt it from the you tube, so in order to explain my problem i am writing every thing so when i get the reply i can understand it.
first i try to download apache, mysql and phpmyadminn but did not succed.
after that i downloaded XAMPP 1.7.7
In XAMPP 1.7.7 I gave this information for my security
**MYSQL SECTION: "ROOT" PASSWORD (This line was already there as a heading)**
**MYSQL super user : root (it was already there so i cant change)**
password : bluebus
PhpMyAdmin authentification: http or cokie (i select cokie),
Safe plain password in text file? ((File: C:\xampp\security\security\mysqlrootpasswd.txt): there was a check box i did not click,
**XAMPP DIRECTORY PROTECTION (.htaccess) (this line was already there as a heading)**
User: bus
Password : bluebuss,
Safe plain password in text file? ((File: C:\xampp\security\security\mysqlrootpasswd.txt): there was a check box i did not click,
*AFTER THAT I WENT TO PHPMYADMIN*
user : root
password: redbus
after this i created a database, DATABASE NAME: CAR,
After this i added a new user for this database, NEW USER NAME: CAR, and password i gave again **"redbus"**, and i created a table,
after this i created a new file in notpad++, the coding is
1. <?php
2.
3. define ('DB_NAME', 'car');
4. define ('DB_USER', 'car');
5. define ('DB_PASWORD', 'redbus');
6. define ('DB_HOST', 'localhost');
7.
8. $link= mysql_connect (DB_HOST,DB_USER,DB_PASSWORD);
9. if (!$link) {
10. die ('could not connect:' . mysql_error () );
11. }
12.
13. $db_selected=mysql_selected_db (DB_NAME, $link);
14.
15. if (!$db_selected) {
16. die ('cant user' . ':' . mysql_error ());
17. }
18.
19. $value = $_post ['input1'];
20.
21. $sql= "INSERT INTO demo (input1) VALUES ('$value')";
22.
23. if (!mysql_query ($sql)) {
24. die ('error:' . mysql_error () );
25. }
26.
27. mysql_close ();
28. ?>
when i try to run it its give me this error and i dont understand why
**Notice:** *Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' in C:\xampp\htdocs\PhpProject1\index.php on line 8*
**[Warning:** *mysql_connect() [function.mysql-connect]: Access denied for user 'car'@'localhost' (using password: YES) in C:\xampp\htdocs\PhpProject1\index.php on line 8*
could not connect:Access denied for user 'malakiarif'@'localhost' (using password: YES)
please help me guys, i try to found out the answer by googling and wasted my whole week but could not find answer, please help me and tell me what i need to correct.
thanks | phpmyadmin | null | null | null | null | 05/26/2012 14:21:04 | too localized | ACEESS DENIED ROOT@LOCALHOST USING PASSWORD YES
===
I know very little about programming, means what ever learn, i learnt it from the you tube, so in order to explain my problem i am writing every thing so when i get the reply i can understand it.
first i try to download apache, mysql and phpmyadminn but did not succed.
after that i downloaded XAMPP 1.7.7
In XAMPP 1.7.7 I gave this information for my security
**MYSQL SECTION: "ROOT" PASSWORD (This line was already there as a heading)**
**MYSQL super user : root (it was already there so i cant change)**
password : bluebus
PhpMyAdmin authentification: http or cokie (i select cokie),
Safe plain password in text file? ((File: C:\xampp\security\security\mysqlrootpasswd.txt): there was a check box i did not click,
**XAMPP DIRECTORY PROTECTION (.htaccess) (this line was already there as a heading)**
User: bus
Password : bluebuss,
Safe plain password in text file? ((File: C:\xampp\security\security\mysqlrootpasswd.txt): there was a check box i did not click,
*AFTER THAT I WENT TO PHPMYADMIN*
user : root
password: redbus
after this i created a database, DATABASE NAME: CAR,
After this i added a new user for this database, NEW USER NAME: CAR, and password i gave again **"redbus"**, and i created a table,
after this i created a new file in notpad++, the coding is
1. <?php
2.
3. define ('DB_NAME', 'car');
4. define ('DB_USER', 'car');
5. define ('DB_PASWORD', 'redbus');
6. define ('DB_HOST', 'localhost');
7.
8. $link= mysql_connect (DB_HOST,DB_USER,DB_PASSWORD);
9. if (!$link) {
10. die ('could not connect:' . mysql_error () );
11. }
12.
13. $db_selected=mysql_selected_db (DB_NAME, $link);
14.
15. if (!$db_selected) {
16. die ('cant user' . ':' . mysql_error ());
17. }
18.
19. $value = $_post ['input1'];
20.
21. $sql= "INSERT INTO demo (input1) VALUES ('$value')";
22.
23. if (!mysql_query ($sql)) {
24. die ('error:' . mysql_error () );
25. }
26.
27. mysql_close ();
28. ?>
when i try to run it its give me this error and i dont understand why
**Notice:** *Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' in C:\xampp\htdocs\PhpProject1\index.php on line 8*
**[Warning:** *mysql_connect() [function.mysql-connect]: Access denied for user 'car'@'localhost' (using password: YES) in C:\xampp\htdocs\PhpProject1\index.php on line 8*
could not connect:Access denied for user 'malakiarif'@'localhost' (using password: YES)
please help me guys, i try to found out the answer by googling and wasted my whole week but could not find answer, please help me and tell me what i need to correct.
thanks | 3 |
6,474,198 | 06/24/2011 21:58:18 | 379,495 | 01/07/2010 01:39:21 | 113 | 8 | SVN - Get commit size in start-commit hook ? | Actually, I check the size of a commit in the pre-commit hook. But all the files are commited before I can refuse the commit in pre-commit.
For example, if the size limit is 10 MB and the user sends 1 GB file, the 1 GB will be completely transfered to my server and then the pre-commit hook will refuse the transaction.
I want to refuse the transaction if the commit size is greater that the repository limit before all the files are transfered to the server.
How is this possible? | svn | commit | pre-commit-hook | pre-commit | null | null | open | SVN - Get commit size in start-commit hook ?
===
Actually, I check the size of a commit in the pre-commit hook. But all the files are commited before I can refuse the commit in pre-commit.
For example, if the size limit is 10 MB and the user sends 1 GB file, the 1 GB will be completely transfered to my server and then the pre-commit hook will refuse the transaction.
I want to refuse the transaction if the commit size is greater that the repository limit before all the files are transfered to the server.
How is this possible? | 0 |
9,646,103 | 03/10/2012 11:36:11 | 1,260,928 | 03/10/2012 11:21:33 | 1 | 0 | IOS : ASIHTTPRequest and accents | I m sending a request to a PHP/Mysql server like this :
NSURL *url = [NSURL URLWithString:@"http://xxx/webservice.php5/"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:[self.searchBar text] forKey:@"libelle"];
[request setResponseEncoding:NSUTF8StringEncoding];
[request setDefaultResponseEncoding:NSUTF8StringEncoding];
[request setDelegate:self];
[request startAsynchronous];
And I'm getting my response like that :
NSString *responseString = [request responseString] ;
here, responseString value should be "pyré", but I m getting : pyr\u7800.
The encoding settings of the Mysql/PHP server are :
> character_set_client utf8 character_set_connection utf8
> character_set_database latin1 character_set_filesystem binary
> character_set_results utf8 character_set_server latin1
> character_set_system utf8
> character_sets_dir /usr/mysql/share/mysql/charsets/
Do you have any ideas of how get the right characters instead of \u7800?
Thank you in advance. | encoding | asihttprequest | nsurl | null | null | null | open | IOS : ASIHTTPRequest and accents
===
I m sending a request to a PHP/Mysql server like this :
NSURL *url = [NSURL URLWithString:@"http://xxx/webservice.php5/"];
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setPostValue:[self.searchBar text] forKey:@"libelle"];
[request setResponseEncoding:NSUTF8StringEncoding];
[request setDefaultResponseEncoding:NSUTF8StringEncoding];
[request setDelegate:self];
[request startAsynchronous];
And I'm getting my response like that :
NSString *responseString = [request responseString] ;
here, responseString value should be "pyré", but I m getting : pyr\u7800.
The encoding settings of the Mysql/PHP server are :
> character_set_client utf8 character_set_connection utf8
> character_set_database latin1 character_set_filesystem binary
> character_set_results utf8 character_set_server latin1
> character_set_system utf8
> character_sets_dir /usr/mysql/share/mysql/charsets/
Do you have any ideas of how get the right characters instead of \u7800?
Thank you in advance. | 0 |
4,550,769 | 12/29/2010 01:02:01 | 204,923 | 11/06/2009 14:48:35 | 1 | 0 | How do I connect to a remote diretory without impersonation privileges | I have a .Net service that needs to interact with files on remote machines. In the configuration, the user specifies the local or remote (UNC) paths they need to access. The user also specifies a username and password for a user that has access to those directories. When the service runs, it connects to each of these paths and processes the files there.
I tried impersonation, but customers are leery about granting that privilege to a service (usually runs as localsystem).
I also found code (http://www.aejw.com/) that mapped the remote directories as mapped drives and accessed them that way. However, this causes some versions of windows to complain about multiple connections.
Any suggestions would be appreciated. | .net | null | null | null | null | null | open | How do I connect to a remote diretory without impersonation privileges
===
I have a .Net service that needs to interact with files on remote machines. In the configuration, the user specifies the local or remote (UNC) paths they need to access. The user also specifies a username and password for a user that has access to those directories. When the service runs, it connects to each of these paths and processes the files there.
I tried impersonation, but customers are leery about granting that privilege to a service (usually runs as localsystem).
I also found code (http://www.aejw.com/) that mapped the remote directories as mapped drives and accessed them that way. However, this causes some versions of windows to complain about multiple connections.
Any suggestions would be appreciated. | 0 |
7,307,987 | 09/05/2011 12:20:24 | 709,529 | 04/15/2011 09:09:27 | 3,072 | 92 | Logging current function name | I have a few custom logfunctions that are extensions of `cat`. A basic example is something like this:
catt<-function(..., file = "", sep = " ", fill = FALSE, labels = NULL,
append = FALSE)
{
cat(..., format(Sys.time(), "(%Y-%m-%d %H:%M:%S)"), "\n", file = file,
sep = sep, fill = fill, labels = labels, append = append)
}
Now, I work a lot with (selfmade) functions, and use some of these logfuntions to see the progress, which works quite well. What I notice, though, is that I almost always use these functions like this:
somefunc<-function(blabla)
{
catt("somefunc: start")
#do some very useful stuff here
catt("somefunc: some time later")
#even more useful stuff
catt("somefunc: the end")
}
Notice how every call to `catt` begins with the name of the function it is called from. Very neat until I start to refactor my code and rename functions etc.
Thanks to some old R-list post from Brian Ripley, if I'm not mistaken, I found this code to get the 'current function name':
catw<-function(..., file = "", sep = " ", fill = FALSE, labels = NULL,
append = FALSE)
{
curcall<-sys.call(sys.parent(n=1))
prefix<-paste(match.call(call=curcall)[[1]], ":", sep="")
cat(prefix, ..., format(Sys.time(), "(%Y-%m-%d %H:%M:%S)"), "\n",
file = file, sep = sep, fill = fill, labels = labels, append = append)
}
This is very nice, but it doesn't always work, because:
- my functions are scattered with anonymous functions used in `lapply`
type of functions, like this:
aFunc<-function(somedataframe)
{
result<-lapply(seq_along(somedataframe), function(i){
catw("working on col", i, "/", ncol(somedataframe))
#do some more stuff here and return something
return(sum(is.na(somedataframe[[i]])))
}
}
-> for these cases, apparently (and understandably) I need n=3 in the `sys.parent` call in my `catw` function.
- I occasionally use `do.call`: it appears my current implementation
doesn't work either (once again I can somewhat understand it, though
I haven't figured it out completely.
So, my question is: is there a way to find the first _named_ function higher in the callstack (skipping the logging function itself, and maybe some other "wellknown" exceptions), which would allow me to write one single version of `catw` for all cases (so that I can happily refactor without worrying about my logging code)? How would you go about something like this? | function | r | name | null | null | null | open | Logging current function name
===
I have a few custom logfunctions that are extensions of `cat`. A basic example is something like this:
catt<-function(..., file = "", sep = " ", fill = FALSE, labels = NULL,
append = FALSE)
{
cat(..., format(Sys.time(), "(%Y-%m-%d %H:%M:%S)"), "\n", file = file,
sep = sep, fill = fill, labels = labels, append = append)
}
Now, I work a lot with (selfmade) functions, and use some of these logfuntions to see the progress, which works quite well. What I notice, though, is that I almost always use these functions like this:
somefunc<-function(blabla)
{
catt("somefunc: start")
#do some very useful stuff here
catt("somefunc: some time later")
#even more useful stuff
catt("somefunc: the end")
}
Notice how every call to `catt` begins with the name of the function it is called from. Very neat until I start to refactor my code and rename functions etc.
Thanks to some old R-list post from Brian Ripley, if I'm not mistaken, I found this code to get the 'current function name':
catw<-function(..., file = "", sep = " ", fill = FALSE, labels = NULL,
append = FALSE)
{
curcall<-sys.call(sys.parent(n=1))
prefix<-paste(match.call(call=curcall)[[1]], ":", sep="")
cat(prefix, ..., format(Sys.time(), "(%Y-%m-%d %H:%M:%S)"), "\n",
file = file, sep = sep, fill = fill, labels = labels, append = append)
}
This is very nice, but it doesn't always work, because:
- my functions are scattered with anonymous functions used in `lapply`
type of functions, like this:
aFunc<-function(somedataframe)
{
result<-lapply(seq_along(somedataframe), function(i){
catw("working on col", i, "/", ncol(somedataframe))
#do some more stuff here and return something
return(sum(is.na(somedataframe[[i]])))
}
}
-> for these cases, apparently (and understandably) I need n=3 in the `sys.parent` call in my `catw` function.
- I occasionally use `do.call`: it appears my current implementation
doesn't work either (once again I can somewhat understand it, though
I haven't figured it out completely.
So, my question is: is there a way to find the first _named_ function higher in the callstack (skipping the logging function itself, and maybe some other "wellknown" exceptions), which would allow me to write one single version of `catw` for all cases (so that I can happily refactor without worrying about my logging code)? How would you go about something like this? | 0 |
10,274,574 | 04/23/2012 03:50:12 | 1,253,847 | 03/07/2012 05:00:45 | 55 | 0 | Struck up with Design issue | Please see the Image below and you will get the context related to my question .
![enter image description here][1]
The web site is a Site for talented Photographers where they can Upload Pictures and allow others to see what they have taken .
I am struck Up in my work , due to a design Issue .
A user ( No registration required ) can open my Website and Upload details like Name , Mobile , description , Image (The same user can upload different images ) at which mobile number is mantadatory field . so while Uploading the Picture , i am appending it with Mobile Number + FileName.jpg , and the Image will be stored inside a folder inside my server and the remaining details like mobile num , desc , name --etc will be Stored inside MYSQL Database . (This is one part and its completed )
2nd part is
On Page start up , i am getting all the images (latest 20 fixed ) from the that folder and showing it on the page .
So when any user clicks on a particulr Image i need to show the deetails like Desc , Name , ---etc , so on onclick event of that image , i am picking up the Mobile number from the image clicked and making a search in Database . (Now there is a problem here ) that is , A same user ( that is with same mobile number ) can upload different pictures to the web site , so the search using the Mobile number will give me many results .
The picture name format is 83746787695iokI.jpg .
I am ready to chAange any format , so please tell how this can be solved
[1]: http://i.stack.imgur.com/wnw0I.jpg | javascript | design | java-ee | null | null | null | open | Struck up with Design issue
===
Please see the Image below and you will get the context related to my question .
![enter image description here][1]
The web site is a Site for talented Photographers where they can Upload Pictures and allow others to see what they have taken .
I am struck Up in my work , due to a design Issue .
A user ( No registration required ) can open my Website and Upload details like Name , Mobile , description , Image (The same user can upload different images ) at which mobile number is mantadatory field . so while Uploading the Picture , i am appending it with Mobile Number + FileName.jpg , and the Image will be stored inside a folder inside my server and the remaining details like mobile num , desc , name --etc will be Stored inside MYSQL Database . (This is one part and its completed )
2nd part is
On Page start up , i am getting all the images (latest 20 fixed ) from the that folder and showing it on the page .
So when any user clicks on a particulr Image i need to show the deetails like Desc , Name , ---etc , so on onclick event of that image , i am picking up the Mobile number from the image clicked and making a search in Database . (Now there is a problem here ) that is , A same user ( that is with same mobile number ) can upload different pictures to the web site , so the search using the Mobile number will give me many results .
The picture name format is 83746787695iokI.jpg .
I am ready to chAange any format , so please tell how this can be solved
[1]: http://i.stack.imgur.com/wnw0I.jpg | 0 |
11,605,533 | 07/23/2012 01:48:17 | 1,360,075 | 04/27/2012 01:57:35 | 88 | 2 | Confusing if statement | What is this statement doing anyway?
Could someone suggest a better way. No if within an if. can not we just use && and ||
if ( (offset < 0) ?
( input->binData.bounds.lo >= (unsigned long)(-offset) ) :
( input->binData.bounds.hi < (unsigned long)(-offset) ) )
| c | if-statement | null | null | null | 07/23/2012 17:49:56 | not a real question | Confusing if statement
===
What is this statement doing anyway?
Could someone suggest a better way. No if within an if. can not we just use && and ||
if ( (offset < 0) ?
( input->binData.bounds.lo >= (unsigned long)(-offset) ) :
( input->binData.bounds.hi < (unsigned long)(-offset) ) )
| 1 |
5,830,806 | 04/29/2011 10:20:01 | 256,825 | 01/22/2010 15:04:18 | 82 | 8 | Cant able to get phone number from iphone | HI
Currently im using the following code to get the local device phone number :
NSString *num = [[NSUserDefaults standardUserDefaults]
stringForKey:@”SBFormattedPhoneNumber”];
NSLog(@”Phone Number: %@”, num);
bu ti cant able to get the number,it shows null .can any one guide me how to solve this problem!!
Thanks in advance | iphone | ios4 | phone-number | null | null | null | open | Cant able to get phone number from iphone
===
HI
Currently im using the following code to get the local device phone number :
NSString *num = [[NSUserDefaults standardUserDefaults]
stringForKey:@”SBFormattedPhoneNumber”];
NSLog(@”Phone Number: %@”, num);
bu ti cant able to get the number,it shows null .can any one guide me how to solve this problem!!
Thanks in advance | 0 |
9,539,495 | 03/02/2012 19:51:56 | 678,659 | 03/27/2011 05:39:00 | 78 | 0 | rails with dropbox | I am doing a ruby on rails project in class with a group and want to add extra gems to my app in the dropbox but once I'm in the terminal, I cant connect to my app. cd Dropbox works fine but cd Dropbox/App gets me -bash: App command not found. Can I gain access to the live folder from the terminal? | ruby-on-rails-3 | ruby-on-rails-3.1 | null | null | null | 03/06/2012 18:34:35 | too localized | rails with dropbox
===
I am doing a ruby on rails project in class with a group and want to add extra gems to my app in the dropbox but once I'm in the terminal, I cant connect to my app. cd Dropbox works fine but cd Dropbox/App gets me -bash: App command not found. Can I gain access to the live folder from the terminal? | 3 |
4,916,015 | 02/06/2011 20:50:30 | 605,650 | 02/06/2011 20:50:30 | 1 | 0 | ant android change path to build.xml | i am new to android and ant, i created an android app that i'd like to build using ant.
I did an <code>android update project --path .</code> which worked like a charm.
Now i want to move the `~/projects/myandroidapp/build.xml` to `~/projects/build_my_app.xml`
When i run ant on this file i receive `java.io.FileNotFoundException: /home/user/projects/AndroidManifest.xml (No such file or directory)`
I manipulated every reference to AndroidManifest.xml in former build.xml and main_rules.xml i found but did not find a solution.
Maybe there is someone out there who already faced this problem. | android | ant | null | null | null | null | open | ant android change path to build.xml
===
i am new to android and ant, i created an android app that i'd like to build using ant.
I did an <code>android update project --path .</code> which worked like a charm.
Now i want to move the `~/projects/myandroidapp/build.xml` to `~/projects/build_my_app.xml`
When i run ant on this file i receive `java.io.FileNotFoundException: /home/user/projects/AndroidManifest.xml (No such file or directory)`
I manipulated every reference to AndroidManifest.xml in former build.xml and main_rules.xml i found but did not find a solution.
Maybe there is someone out there who already faced this problem. | 0 |
4,907,233 | 02/05/2011 14:04:21 | 604,420 | 02/05/2011 14:04:21 | 1 | 0 | blackberry database | all i am new to Blackberry application development can any one give me a guide please... | blackberry | developing | null | null | null | 02/05/2011 20:24:12 | not a real question | blackberry database
===
all i am new to Blackberry application development can any one give me a guide please... | 1 |
11,281,691 | 07/01/2012 11:47:16 | 1,131,857 | 01/05/2012 10:18:42 | 178 | 7 | openSUSE-12.1-DVD-i586 dows not boot | i've downloaded the "openSUSE-12.1-DVD-i586.iso" and burned it to an dvd. When i boot it with my laptop "Compaq 2510p" i get the menu, then i choose "installation". Then it loads the kernel to 100%. Then i get a "Welcome Screen" for some seconds. Then the entire screen gets black and the system stops doing anyting.
has anybody an idea what to do?
The laptop seems to work, HD is ok, and the backtrack-5 live dvd runs without any problems. | installation | boot | opensuse | null | null | 07/02/2012 09:22:03 | off topic | openSUSE-12.1-DVD-i586 dows not boot
===
i've downloaded the "openSUSE-12.1-DVD-i586.iso" and burned it to an dvd. When i boot it with my laptop "Compaq 2510p" i get the menu, then i choose "installation". Then it loads the kernel to 100%. Then i get a "Welcome Screen" for some seconds. Then the entire screen gets black and the system stops doing anyting.
has anybody an idea what to do?
The laptop seems to work, HD is ok, and the backtrack-5 live dvd runs without any problems. | 2 |
6,480,025 | 06/25/2011 19:28:09 | 20,358 | 09/22/2008 10:58:53 | 760 | 17 | null check in try catch | I have a try catch block in my WCF service method that contains an if check on an object. If it is null I throw an exception. This is code:
try
{
if (objRequest == null)
{
throw new Exception("details not recieved");
}
//remaining code here
}
catch {...}
In the code above even the 'objRequest' comes as null it skips the if check.
Now comes the strange part. If I put that if check outside the try block, the if check works and the exception gets thrown. I find this magical, and not in a good way. What am I missing here??
| c# | .net | wcf | exception | null | 06/25/2011 23:52:06 | not a real question | null check in try catch
===
I have a try catch block in my WCF service method that contains an if check on an object. If it is null I throw an exception. This is code:
try
{
if (objRequest == null)
{
throw new Exception("details not recieved");
}
//remaining code here
}
catch {...}
In the code above even the 'objRequest' comes as null it skips the if check.
Now comes the strange part. If I put that if check outside the try block, the if check works and the exception gets thrown. I find this magical, and not in a good way. What am I missing here??
| 1 |
5,088,852 | 02/23/2011 09:07:20 | 629,854 | 02/23/2011 09:05:12 | 1 | 0 | DataTriggers for a WPF ComboBox | I'm afraid this is a selfish question...
I have a DataTemplate defined within a DataGrid's resources, which contains a ComboBox.
This ComboBox should contain two TextBlocks - each bound to a different set of data.
// SINGLE TEXTBLOCK TEMPLATE
<DataTemplate x:Key="SingleCode">
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource ComboTextBoxStyle}"
Text="{Binding Path=Code.CodeA}"/>
</StackPanel>
</DataTemplate>
// MULTI TEXTBLOCK TEMPLATE
<DataTemplate x:Key="MultiCode">
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource ComboTextBoxStyle}"
Text="{Binding Path=Code.CodeA}"/>
<TextBlock Style="{StaticResource ComboTextBoxStyle}"
Margin="11,1,0,1"
Text="{Binding Path=Code.CodeB}"/>
</StackPanel>
</DataTemplate>
// COMBOBOX TEMPLATE
<DataTemplate x:Key="dt_Code_dropdown">
<ComboBox x:Name="CodeComboBox"
ItemsSource="{Binding Source={StaticResource /*OBJECTDATAPROVIDER*/}}"
SelectedItem="{Binding Path= /*Code.CodeA*/}"
Style="{StaticResource DataGridComboStyle}"
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<ContentControl x:Name="ContentCode"
Content="{Binding}"
ContentTemplate="{StaticResource MultiCode}"/>
</StackPanel>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ComboBoxItem}}"
Value="{x:Null}">
<Setter TargetName="WBSContentCost"
Property="ContentTemplate"
Value="{StaticResource SingleCode}"/>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</DataTemplate>
The problem I am having is not the changing of the two DataTemplates - that works fine.
The problem comes after the ComboBox has an item selected; if the user (or tester) clicks just outside of the ComboBox, by about 1 - 2 pixels, the Content of the ComboBox disapears!!
This is really bugging me and at first thought it might have something to do with the DataTrigger being used...
Has anybody come aross this before?
Can you help me, please?
- Else | wpf | null | null | null | null | 02/23/2011 14:39:33 | too localized | DataTriggers for a WPF ComboBox
===
I'm afraid this is a selfish question...
I have a DataTemplate defined within a DataGrid's resources, which contains a ComboBox.
This ComboBox should contain two TextBlocks - each bound to a different set of data.
// SINGLE TEXTBLOCK TEMPLATE
<DataTemplate x:Key="SingleCode">
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource ComboTextBoxStyle}"
Text="{Binding Path=Code.CodeA}"/>
</StackPanel>
</DataTemplate>
// MULTI TEXTBLOCK TEMPLATE
<DataTemplate x:Key="MultiCode">
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource ComboTextBoxStyle}"
Text="{Binding Path=Code.CodeA}"/>
<TextBlock Style="{StaticResource ComboTextBoxStyle}"
Margin="11,1,0,1"
Text="{Binding Path=Code.CodeB}"/>
</StackPanel>
</DataTemplate>
// COMBOBOX TEMPLATE
<DataTemplate x:Key="dt_Code_dropdown">
<ComboBox x:Name="CodeComboBox"
ItemsSource="{Binding Source={StaticResource /*OBJECTDATAPROVIDER*/}}"
SelectedItem="{Binding Path= /*Code.CodeA*/}"
Style="{StaticResource DataGridComboStyle}"
<ComboBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<ContentControl x:Name="ContentCode"
Content="{Binding}"
ContentTemplate="{StaticResource MultiCode}"/>
</StackPanel>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ComboBoxItem}}"
Value="{x:Null}">
<Setter TargetName="WBSContentCost"
Property="ContentTemplate"
Value="{StaticResource SingleCode}"/>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</DataTemplate>
The problem I am having is not the changing of the two DataTemplates - that works fine.
The problem comes after the ComboBox has an item selected; if the user (or tester) clicks just outside of the ComboBox, by about 1 - 2 pixels, the Content of the ComboBox disapears!!
This is really bugging me and at first thought it might have something to do with the DataTrigger being used...
Has anybody come aross this before?
Can you help me, please?
- Else | 3 |
3,797,179 | 09/26/2010 09:17:08 | 400,437 | 07/23/2010 16:02:21 | 528 | 33 | Why do people still use iframes? | For me iframes are pure evil (well, maybe not so pure). They seems to make a lot of troubles. Yes, your whole site will load once and then you can just load a single pages. But people invented AJAX for this purpose.
One of the biggest issues I found with `iframe` was that I couldn't paste a link to one of the subpages, because the URL never changed (yes, I know there is a workaround for this). Second thing, web search engines may have problems to index that sites correctly.
Sometimes the accessibility of this sites are worse and some browser can even display them improperly.
There are better ways to design layout without (i)frames. Everyday I can see some one asking at SO questions, like "How to access iframe with jQuery?".
So what are benefits of iframes? What reason can it be to still use them? I just would like to know why :)
(since it is not a real question, it's a CW) | iframe | null | null | null | null | 09/26/2010 10:46:08 | not constructive | Why do people still use iframes?
===
For me iframes are pure evil (well, maybe not so pure). They seems to make a lot of troubles. Yes, your whole site will load once and then you can just load a single pages. But people invented AJAX for this purpose.
One of the biggest issues I found with `iframe` was that I couldn't paste a link to one of the subpages, because the URL never changed (yes, I know there is a workaround for this). Second thing, web search engines may have problems to index that sites correctly.
Sometimes the accessibility of this sites are worse and some browser can even display them improperly.
There are better ways to design layout without (i)frames. Everyday I can see some one asking at SO questions, like "How to access iframe with jQuery?".
So what are benefits of iframes? What reason can it be to still use them? I just would like to know why :)
(since it is not a real question, it's a CW) | 4 |
10,592,398 | 05/14/2012 23:37:28 | 1,394,879 | 05/14/2012 23:25:36 | 1 | 0 | Cron Job in play framework 2.0 | How to use Cron Jobs in Play Framework 2.0? | java | playframework-2.0 | null | null | null | 05/15/2012 04:04:16 | not a real question | Cron Job in play framework 2.0
===
How to use Cron Jobs in Play Framework 2.0? | 1 |
3,683,900 | 09/10/2010 10:33:44 | 438,382 | 09/02/2010 20:54:40 | 41 | 5 | How to strip out invalid UTF-8 characters in Ruby 1.9 | I just upgraded from Ruby 1.8 to 1.9, and most of my text processing scripts now fail with the error `invalid byte sequence in UTF-8`. I need to either strip out the invalid characters or specify that Ruby should use ASCII encoding instead (or whatever encoding the C `stdio` functions write, which is how the files were produced) -- how would I go about doing either of those things?
Preferably the latter, because (as near as I can tell) there's nothing wrong with the files on disk -- if there are weird, invalid characters they don't appear in my editor... | ruby | encoding | utf-8 | ascii | ruby-1.9 | null | open | How to strip out invalid UTF-8 characters in Ruby 1.9
===
I just upgraded from Ruby 1.8 to 1.9, and most of my text processing scripts now fail with the error `invalid byte sequence in UTF-8`. I need to either strip out the invalid characters or specify that Ruby should use ASCII encoding instead (or whatever encoding the C `stdio` functions write, which is how the files were produced) -- how would I go about doing either of those things?
Preferably the latter, because (as near as I can tell) there's nothing wrong with the files on disk -- if there are weird, invalid characters they don't appear in my editor... | 0 |
9,634,928 | 03/09/2012 13:36:38 | 1,034,904 | 11/08/2011 03:37:26 | 11 | 0 | WiFi : Modem or Network Adapter Issue | I am having troubles setting up my WiFi, I already created a connection but i cannot connect to it, it says "This connection is not available because there is a problem with your modem or network adapter".
I tried restarting my PC and do unplug/plug my modem/router but i still cannot connect.
In my device manager the WAN Miniport (PPPOE) has an exclamation point, i'm trying to uninstall it then re-install but when i uninstalled it, it is not really uninstalled it is still there.
When i tried to update the driver it says "The system cannot find the file specified"
I am running windows 7
| networking | windows-7 | wifi | driver | null | 03/12/2012 14:00:02 | off topic | WiFi : Modem or Network Adapter Issue
===
I am having troubles setting up my WiFi, I already created a connection but i cannot connect to it, it says "This connection is not available because there is a problem with your modem or network adapter".
I tried restarting my PC and do unplug/plug my modem/router but i still cannot connect.
In my device manager the WAN Miniport (PPPOE) has an exclamation point, i'm trying to uninstall it then re-install but when i uninstalled it, it is not really uninstalled it is still there.
When i tried to update the driver it says "The system cannot find the file specified"
I am running windows 7
| 2 |
11,362,078 | 07/06/2012 12:20:05 | 1,014,275 | 10/26/2011 09:30:53 | 1 | 0 | why text files are larger in size than binary files? | I bit confused with text files and binary files, these two files are at last stored as 0s and 1s, but still their size varies why? | encoding | character-encoding | binary | null | null | 07/06/2012 12:30:53 | not a real question | why text files are larger in size than binary files?
===
I bit confused with text files and binary files, these two files are at last stored as 0s and 1s, but still their size varies why? | 1 |
3,765,329 | 09/21/2010 23:52:42 | 92,129 | 04/17/2009 14:00:39 | 414 | 14 | jquery post and append data inside clicked div? | I'm trying to write up a function which will post data (and append the results inside a div) when you click on the div. I've got it so it will alert the data, but for some reason I can't get it to append the data back inside the clicked div?
The clickable div:
<div class="qaContainer">
<h2>testing title</h2>
<input type="hidden" name="catid" id="catid[]" class="catid" value="3">
</div>
And the jquery:
jQuery(".qaContainer").click(function () {
var cat_id = jQuery(this).find(".catid").val();
if (cat_id) {
jQuery.post("/index.php?option=com_qa&view=questions&catid=2&Itemid=33", { catid: cat_id }, function(data) {
jQuery(this).append(data);
});
};
The data which it's returning:
<div class="info">
<div class="question">testing 1</div>
<div class="answer">testing 2</div>
</div>
Now I want the returned data to sit back inside the qaContainer div, after the hidden input, which is why I'm trying to use append, but it's not working. I'm getting this error in FF:
Error: b.createDocumentFragment is not a function
Source File: jquery-1.4.2.min.js
Line: 20
If anyone could help that would be great :) | jquery | post | div | append | null | null | open | jquery post and append data inside clicked div?
===
I'm trying to write up a function which will post data (and append the results inside a div) when you click on the div. I've got it so it will alert the data, but for some reason I can't get it to append the data back inside the clicked div?
The clickable div:
<div class="qaContainer">
<h2>testing title</h2>
<input type="hidden" name="catid" id="catid[]" class="catid" value="3">
</div>
And the jquery:
jQuery(".qaContainer").click(function () {
var cat_id = jQuery(this).find(".catid").val();
if (cat_id) {
jQuery.post("/index.php?option=com_qa&view=questions&catid=2&Itemid=33", { catid: cat_id }, function(data) {
jQuery(this).append(data);
});
};
The data which it's returning:
<div class="info">
<div class="question">testing 1</div>
<div class="answer">testing 2</div>
</div>
Now I want the returned data to sit back inside the qaContainer div, after the hidden input, which is why I'm trying to use append, but it's not working. I'm getting this error in FF:
Error: b.createDocumentFragment is not a function
Source File: jquery-1.4.2.min.js
Line: 20
If anyone could help that would be great :) | 0 |
6,245,518 | 06/05/2011 20:03:40 | 582,211 | 01/19/2011 22:36:24 | 142 | 1 | Real life (NO echo server) SocketAsyncEventArgs tutorial needed | Does anybody have know any sample/tutorial (a sample server using SocketAsyncEventArgs etc) code about the the enhanced asynchronous scoket pattern introdabout uced in .net 3.5? ( http://msdn.microsoft.com/en-us/library/bb968780.aspx )
Pls. don't send me any samples with those well konown echo servers, they're quite uneuseful in this topic, they hide the some important things must be understood in this topic. Sample server should recieve data and send back something completely new/different to the client.
Thanks in advance! | c# | tcp | null | null | null | null | open | Real life (NO echo server) SocketAsyncEventArgs tutorial needed
===
Does anybody have know any sample/tutorial (a sample server using SocketAsyncEventArgs etc) code about the the enhanced asynchronous scoket pattern introdabout uced in .net 3.5? ( http://msdn.microsoft.com/en-us/library/bb968780.aspx )
Pls. don't send me any samples with those well konown echo servers, they're quite uneuseful in this topic, they hide the some important things must be understood in this topic. Sample server should recieve data and send back something completely new/different to the client.
Thanks in advance! | 0 |
7,518,203 | 09/22/2011 16:26:13 | 697,651 | 04/07/2011 21:51:09 | 15 | 2 | Missing Apps after restored from factory reset on HTC Evo 4G | I've seen some similar issues, but nothing quite the same as what I am having. Hopefully that means it is easy to fix.
So, I recently backed up all my apps to my sd card using MyBackup and then performed a factory reset. Afterwards, I reloaded all my apps back and everything went fine.
The problem is that now, in the "my apps" section of the market, it doesn't show anything except for my purchased apps, even though I have all my apps currently downloaded and installed on my phone.
Is there anyway I can update the market to reflect what is already installed on my phone??? I've already tried multiple times wiping the cache for the market and reseting, all to no avail.
Any help on this?
Thanks. | android | backup | android-market | reset | apps | 09/22/2011 17:36:10 | off topic | Missing Apps after restored from factory reset on HTC Evo 4G
===
I've seen some similar issues, but nothing quite the same as what I am having. Hopefully that means it is easy to fix.
So, I recently backed up all my apps to my sd card using MyBackup and then performed a factory reset. Afterwards, I reloaded all my apps back and everything went fine.
The problem is that now, in the "my apps" section of the market, it doesn't show anything except for my purchased apps, even though I have all my apps currently downloaded and installed on my phone.
Is there anyway I can update the market to reflect what is already installed on my phone??? I've already tried multiple times wiping the cache for the market and reseting, all to no avail.
Any help on this?
Thanks. | 2 |
5,688,402 | 04/16/2011 17:50:19 | 497,121 | 11/04/2010 11:59:08 | 24 | 0 | Can't install uwsgi on ubuntu | `root@ip-10-194-97-94:~# apt-get install uwsgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
uwsgi: Depends: uwsgi-python2.6 (>= 0.9.6.5-0ubuntu1~lucid1) or
uwsgi-python3.1 (>= 0.9.6.5-0ubuntu1~lucid1)
E: Broken packages
` | ubuntu | nginx | apt-get | uwsgi | null | 04/16/2011 19:02:50 | off topic | Can't install uwsgi on ubuntu
===
`root@ip-10-194-97-94:~# apt-get install uwsgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
uwsgi: Depends: uwsgi-python2.6 (>= 0.9.6.5-0ubuntu1~lucid1) or
uwsgi-python3.1 (>= 0.9.6.5-0ubuntu1~lucid1)
E: Broken packages
` | 2 |
4,267,282 | 11/24/2010 13:26:51 | 306,719 | 04/01/2010 08:57:51 | 245 | 1 | write a mvc framework to learn struts | I am learning struts,however I was often confused by its configuration,sometimes I do know clearly why.
SO I wonder if there is any idea to write a simple mvc framework which need not have to be prowerful enough,just make me know more about the steps the struts-like framework do.
Any ideas? | mvc | struts2 | null | null | null | null | open | write a mvc framework to learn struts
===
I am learning struts,however I was often confused by its configuration,sometimes I do know clearly why.
SO I wonder if there is any idea to write a simple mvc framework which need not have to be prowerful enough,just make me know more about the steps the struts-like framework do.
Any ideas? | 0 |
9,391,480 | 02/22/2012 08:37:15 | 1,172,522 | 01/27/2012 00:15:58 | 1 | 0 | margin-left and margin-right auto, can't centered | i can't center my <div> with this css in IE.
...
height: 842px;
width: 595px;
margin-left: auto;
margin-right: auto;
..
why?
| html | css | null | null | null | 02/22/2012 15:23:35 | not a real question | margin-left and margin-right auto, can't centered
===
i can't center my <div> with this css in IE.
...
height: 842px;
width: 595px;
margin-left: auto;
margin-right: auto;
..
why?
| 1 |
7,517,087 | 09/22/2011 15:09:40 | 688,412 | 04/01/2011 23:10:33 | 103 | 3 | excel vba - transform an sql | Has anyone had any luck with a vba macro that would convert this input:
update my_table
set time = sysdate,
randfield1 = 'FAKE',
randfield5 = 'ME',
the_field8 = 'test'
where my_key = '84'
;
into this output?
select count(*) from my_table
where (randfield1 <> 'FAKE'
or randfield5 <> 'ME'
or the_field8 <> 'TEST')
and my_key = '84'; | sql | excel | vba | scripting | macros | null | open | excel vba - transform an sql
===
Has anyone had any luck with a vba macro that would convert this input:
update my_table
set time = sysdate,
randfield1 = 'FAKE',
randfield5 = 'ME',
the_field8 = 'test'
where my_key = '84'
;
into this output?
select count(*) from my_table
where (randfield1 <> 'FAKE'
or randfield5 <> 'ME'
or the_field8 <> 'TEST')
and my_key = '84'; | 0 |
10,279,257 | 04/23/2012 10:59:24 | 1,304,651 | 03/31/2012 06:18:31 | 1 | 0 | how can I keyboard dismiss | I m beginner of iPhone so how can I dismiss the keyboard in textview because when I write in textview I put also resign keyboard but only resign line by line resign but I don't require line of resign when something write then after at that time resign how can this possible give any suggestion and source code | objective-c | null | null | null | null | 04/23/2012 20:56:36 | not a real question | how can I keyboard dismiss
===
I m beginner of iPhone so how can I dismiss the keyboard in textview because when I write in textview I put also resign keyboard but only resign line by line resign but I don't require line of resign when something write then after at that time resign how can this possible give any suggestion and source code | 1 |
10,025,174 | 04/05/2012 08:30:39 | 794,243 | 06/11/2011 19:43:28 | 226 | 2 | How does one analyze a heap dump on Android? | I'm getting a lot of "dalvikvm: GC_CONCURRENT..." messages in logcat, and googling around resulted in me downloading the Eclipse Memory Analyzer... I've figured out how to use it, but I don't know how to understand it. I've never dealt with memory leaks before, so bear with me.
The "Leak Suspects" include "android.content.res.Resources", "android.graphics.Bitmap", and "org.apache.harmony.xnet.provider.jsse.TrustManagerImpl" loaded by "system class loader". I don't really know what that means or how that's supposed to help me; I don't even use bitmaps in the app I'm trying to make.
How is this supposed to help me? | android | eclipse | heap-dump | null | null | null | open | How does one analyze a heap dump on Android?
===
I'm getting a lot of "dalvikvm: GC_CONCURRENT..." messages in logcat, and googling around resulted in me downloading the Eclipse Memory Analyzer... I've figured out how to use it, but I don't know how to understand it. I've never dealt with memory leaks before, so bear with me.
The "Leak Suspects" include "android.content.res.Resources", "android.graphics.Bitmap", and "org.apache.harmony.xnet.provider.jsse.TrustManagerImpl" loaded by "system class loader". I don't really know what that means or how that's supposed to help me; I don't even use bitmaps in the app I'm trying to make.
How is this supposed to help me? | 0 |
5,676,301 | 04/15/2011 11:53:30 | 709,756 | 04/15/2011 11:53:30 | 1 | 0 | Scala - Currying and default arguments | I have a function with two parameter lists that I am trying to partially apply and use with currying. The second parameter list contains arguments that all have default values (but not implicit). Something like this:
def test(a: Int)(b: Int = 2, c: Int = 3) { println(a + ", " + b + ", " + c); }
Now, the following is all fine:
test(1)(2, 3);
test(1)(2);
test(1)(c=3);
test(1)();
Now if I define:
def partial = test(1) _;
Then the following can be done:
partial(2, 3);
Can someone explain why I can't omit some/all arguments in 'partial' as follows:
partial(2);
partial(c=3);
partial();
Shouldn't writing "partial" behave essentially the same way as "test(1)"? Can someone please help me figure out a way to achieve this?
Please help, I'm desperate!
| scala | arguments | default-value | currying | null | null | open | Scala - Currying and default arguments
===
I have a function with two parameter lists that I am trying to partially apply and use with currying. The second parameter list contains arguments that all have default values (but not implicit). Something like this:
def test(a: Int)(b: Int = 2, c: Int = 3) { println(a + ", " + b + ", " + c); }
Now, the following is all fine:
test(1)(2, 3);
test(1)(2);
test(1)(c=3);
test(1)();
Now if I define:
def partial = test(1) _;
Then the following can be done:
partial(2, 3);
Can someone explain why I can't omit some/all arguments in 'partial' as follows:
partial(2);
partial(c=3);
partial();
Shouldn't writing "partial" behave essentially the same way as "test(1)"? Can someone please help me figure out a way to achieve this?
Please help, I'm desperate!
| 0 |
5,794,489 | 04/26/2011 18:02:00 | 1,980 | 08/19/2008 16:40:39 | 2,203 | 76 | <variable>! syntax in Visual Basic 6 | I'm working through some legacy code for a client and I think I understand this line but I need vb expert to double-check me.
QS1! = Unit1.XICFMc(1)
My guess is that this saying:
> "If `QS1` doesn't exist, `DIM` it and assign it the value in the first position in `Unit1.XICFMc`"
Am I right? I can't find a definition for `QS1` anywhere in the project - which is what lead me to my guess above. | vb6 | null | null | null | null | null | open | <variable>! syntax in Visual Basic 6
===
I'm working through some legacy code for a client and I think I understand this line but I need vb expert to double-check me.
QS1! = Unit1.XICFMc(1)
My guess is that this saying:
> "If `QS1` doesn't exist, `DIM` it and assign it the value in the first position in `Unit1.XICFMc`"
Am I right? I can't find a definition for `QS1` anywhere in the project - which is what lead me to my guess above. | 0 |
654,441 | 03/17/2009 14:16:52 | 4,950 | 09/06/2008 23:39:40 | 993 | 62 | Extension methods Dictionary<TKey,TValue>.RemoveAll? Is it possible? | I've been trying to write an extension method to mimic List<T>.RemoveAll(Predicate<T>).
So far I've got this:
public static void RemoveAll<TKey,TValue>(this Dictionary<TKey,TValue> dict,
Predicate<KeyValuePair<TKey,TValue>> condition)
{
Dictionary<TKey,TValue> temp = new Dictionary<TKey,TValue>();
foreach (var item in dict)
{
if (!condition.Invoke(item))
temp.Add(item.Key, item.Value);
}
dict = temp;
}
Any pointers? Is this a completely naive implementation? | c#-3.0 | extension-methods | generics | null | null | null | open | Extension methods Dictionary<TKey,TValue>.RemoveAll? Is it possible?
===
I've been trying to write an extension method to mimic List<T>.RemoveAll(Predicate<T>).
So far I've got this:
public static void RemoveAll<TKey,TValue>(this Dictionary<TKey,TValue> dict,
Predicate<KeyValuePair<TKey,TValue>> condition)
{
Dictionary<TKey,TValue> temp = new Dictionary<TKey,TValue>();
foreach (var item in dict)
{
if (!condition.Invoke(item))
temp.Add(item.Key, item.Value);
}
dict = temp;
}
Any pointers? Is this a completely naive implementation? | 0 |
10,984,190 | 06/11/2012 16:40:17 | 1,446,104 | 06/09/2012 11:10:19 | 1 | 0 | sharing an object with multiple classes | I have 3 classes namely Board, Game, and AI
i want to have the object chessBoard of Board class to be use by Game and AI, and also by the Board Class. I want them to access that single chessBoard object (sharing)
problem is, it gives me the infamous fatal error LNK1169: one or more multiply defined symbols found. Also, there are Board.h,Game.h and AI.h (only declarations in them), and i also have their corresponding .cpp files. Each .h files have guards included (#ifndef _XXXXXX_H_)
I tried to include Board chessBoard inside Board.h file (just below the class), and it seems guards are not working.
Error 7 error LNK2005: "class Board chessBoard" (?chessBoard@@3VBoard@@A) already defined in AI.obj C:\Users\xxxx\Documents\Visual Studio 2010\Projects\CHESSv3\CHESSv3\Board.obj CHESSv3
Error 8 error LNK2005: "class Board chessBoard" (?chessBoard@@3VBoard@@A) already defined in AI.obj C:\Users\xxxxx\Documents\Visual Studio 2010\Projects\CHESSv3\CHESSv3\Game.obj CHESSv3
Error 9 error LNK2005: "class Board chessBoard" (?chessBoard@@3VBoard@@A) already defined in AI.obj C:\Users\xxxxx\Documents\Visual Studio 2010\Projects\CHESSv3\CHESSv3\ProgramEntryPoint.obj CHESSv3
| c++ | null | null | null | null | null | open | sharing an object with multiple classes
===
I have 3 classes namely Board, Game, and AI
i want to have the object chessBoard of Board class to be use by Game and AI, and also by the Board Class. I want them to access that single chessBoard object (sharing)
problem is, it gives me the infamous fatal error LNK1169: one or more multiply defined symbols found. Also, there are Board.h,Game.h and AI.h (only declarations in them), and i also have their corresponding .cpp files. Each .h files have guards included (#ifndef _XXXXXX_H_)
I tried to include Board chessBoard inside Board.h file (just below the class), and it seems guards are not working.
Error 7 error LNK2005: "class Board chessBoard" (?chessBoard@@3VBoard@@A) already defined in AI.obj C:\Users\xxxx\Documents\Visual Studio 2010\Projects\CHESSv3\CHESSv3\Board.obj CHESSv3
Error 8 error LNK2005: "class Board chessBoard" (?chessBoard@@3VBoard@@A) already defined in AI.obj C:\Users\xxxxx\Documents\Visual Studio 2010\Projects\CHESSv3\CHESSv3\Game.obj CHESSv3
Error 9 error LNK2005: "class Board chessBoard" (?chessBoard@@3VBoard@@A) already defined in AI.obj C:\Users\xxxxx\Documents\Visual Studio 2010\Projects\CHESSv3\CHESSv3\ProgramEntryPoint.obj CHESSv3
| 0 |
6,345,879 | 06/14/2011 15:15:26 | 294,863 | 03/16/2010 15:11:55 | 2,797 | 173 | Organizing MVC2 Views with a subdirectory | We have a fairly large MVC project with a large number of views and partial views (display/editor templates). Pretty much 95% of our UI is in our templates, our `aspx` views are just placeholders that call our `ascx` templates. As such, whenever we open that `Views` folder in VS2010, it's fairly painful to scroll down to the `Shared` folder for us to manage our templates.
We'd LIKE to change this hierarchy just a bit. Instead of having a folder for each controller under `Views`, instead we'd like to have a folder called `Pages` under `Views` and have our per-controller folders under here. This way, when we open `Views` we have 2 folders: `Pages` and `Shared`.
Is this easily possible without going back and editing every single one of our controllers where they simply `return View();` to `return View("Pages/MyControllerName/MyActionHandler");`? I'd like the controllers to still simply `return View();` and without my URLs changing. So in other words, I just want to move my root directory for my Views into Views/Pages, but not for templates - they stay as they are. | c# | asp.net-mvc | visual-studio-2010 | asp.net-mvc-2 | visual | null | open | Organizing MVC2 Views with a subdirectory
===
We have a fairly large MVC project with a large number of views and partial views (display/editor templates). Pretty much 95% of our UI is in our templates, our `aspx` views are just placeholders that call our `ascx` templates. As such, whenever we open that `Views` folder in VS2010, it's fairly painful to scroll down to the `Shared` folder for us to manage our templates.
We'd LIKE to change this hierarchy just a bit. Instead of having a folder for each controller under `Views`, instead we'd like to have a folder called `Pages` under `Views` and have our per-controller folders under here. This way, when we open `Views` we have 2 folders: `Pages` and `Shared`.
Is this easily possible without going back and editing every single one of our controllers where they simply `return View();` to `return View("Pages/MyControllerName/MyActionHandler");`? I'd like the controllers to still simply `return View();` and without my URLs changing. So in other words, I just want to move my root directory for my Views into Views/Pages, but not for templates - they stay as they are. | 0 |
8,937,914 | 01/20/2012 07:09:05 | 1,070,632 | 11/29/2011 05:23:10 | 17 | 2 | Related to app submission to app store | Thanks in advance.
I have submitted an app with 1.0 version, Now i have done some changes in that and settings "with deployment target4.1 and in Build settings : Debug with Developer certificate and Distribution and Release with Distribution certificate ". But the app was rejected and given the reason that " App is crashing on iphone 4 with ios 5. But i tested the same .app file in xcode4.2 with ios 5 simulator and ipad with ios 5.0.1 it is not giving me any crash. If any one understand what is the mistake i did please help me. | iphone | ios | null | null | null | 01/23/2012 03:56:10 | not a real question | Related to app submission to app store
===
Thanks in advance.
I have submitted an app with 1.0 version, Now i have done some changes in that and settings "with deployment target4.1 and in Build settings : Debug with Developer certificate and Distribution and Release with Distribution certificate ". But the app was rejected and given the reason that " App is crashing on iphone 4 with ios 5. But i tested the same .app file in xcode4.2 with ios 5 simulator and ipad with ios 5.0.1 it is not giving me any crash. If any one understand what is the mistake i did please help me. | 1 |
11,098,460 | 06/19/2012 09:47:12 | 1,412,481 | 05/23/2012 11:26:37 | 6 | 0 | how to display <img> in a combo instead of the tag | When I specify $symbol='<img src=""></img>', $symbol is being displayed correctly everywhere in the page except in a combo box which actually displays it as a tag "<img src=""></img>" itself and not the image. Pls suggest a solutions, | php | null | null | null | null | 06/20/2012 02:58:42 | not a real question | how to display <img> in a combo instead of the tag
===
When I specify $symbol='<img src=""></img>', $symbol is being displayed correctly everywhere in the page except in a combo box which actually displays it as a tag "<img src=""></img>" itself and not the image. Pls suggest a solutions, | 1 |
10,058,261 | 04/07/2012 20:48:57 | 344,132 | 05/18/2010 14:35:01 | 23 | 1 | Typical best-practice ClearCase project structure | During a development project, the delivered code can go between different stages different environment before it reaches the production (e.g. Development Environment for testing deployment processes, Internal Testing for QC, Pre-Production and finally production).
This development effort produces many candidate release in which a certain release can be nominated to move upwards in the development process until it reaches production, also, there might be some cases where the code deployed on the production might require hot-fixes in parallel to the current internal development lines (i.e. Parallel Development).
For a certain UCM project maintained by IBM Rational ClearCase (CC), what is the recommended project structure to be created on "Project Explorer" to accommodate for the following:
1. The developers should mainly connect and deliver their work on the internal development line (or in CC terminology the development stream).
2. Once the delivered code to this development stream is considered acceptable, the Technical Team Lead (TTL) can create a baseline. This baseline can be later retrieved by the Deployment Engineer to be deployed on the local Development Environment.
3. If this baseline was found acceptable, this baseline can be delivered as a whole to the Internal Testing stream to be deployed for further Quality Control (QC) test.
4. If this baseline was found acceptable, this baseline can be delivered as a whole to the Pre-Production and so forth to the production similar to what was described above.
5. Of course, if any of these baselines were not accepted by its receiving party, it can be rejected, and the receiving party will wait for another baseline to be recommended for their stream.
**Note**: The Deployment Engineer will always use a dedicated stream for each environment to get his/her files required to carry out the build/deployment activities.
My apologies for everybody here since I understand that answering this can be long, but my question more concentrates on the exact type of streams and/or views that need to be created in "Project Explorer" to suffice the above objectives.
I am really trying to come up with the best practice approach for release management using CC and how it can be best used this purpose.
I would appreciate your help guys and many thanks to all in advance ... | version-control | clearcase | rational | clearcase-ucm | null | null | open | Typical best-practice ClearCase project structure
===
During a development project, the delivered code can go between different stages different environment before it reaches the production (e.g. Development Environment for testing deployment processes, Internal Testing for QC, Pre-Production and finally production).
This development effort produces many candidate release in which a certain release can be nominated to move upwards in the development process until it reaches production, also, there might be some cases where the code deployed on the production might require hot-fixes in parallel to the current internal development lines (i.e. Parallel Development).
For a certain UCM project maintained by IBM Rational ClearCase (CC), what is the recommended project structure to be created on "Project Explorer" to accommodate for the following:
1. The developers should mainly connect and deliver their work on the internal development line (or in CC terminology the development stream).
2. Once the delivered code to this development stream is considered acceptable, the Technical Team Lead (TTL) can create a baseline. This baseline can be later retrieved by the Deployment Engineer to be deployed on the local Development Environment.
3. If this baseline was found acceptable, this baseline can be delivered as a whole to the Internal Testing stream to be deployed for further Quality Control (QC) test.
4. If this baseline was found acceptable, this baseline can be delivered as a whole to the Pre-Production and so forth to the production similar to what was described above.
5. Of course, if any of these baselines were not accepted by its receiving party, it can be rejected, and the receiving party will wait for another baseline to be recommended for their stream.
**Note**: The Deployment Engineer will always use a dedicated stream for each environment to get his/her files required to carry out the build/deployment activities.
My apologies for everybody here since I understand that answering this can be long, but my question more concentrates on the exact type of streams and/or views that need to be created in "Project Explorer" to suffice the above objectives.
I am really trying to come up with the best practice approach for release management using CC and how it can be best used this purpose.
I would appreciate your help guys and many thanks to all in advance ... | 0 |
1,231,331 | 08/05/2009 05:23:12 | 93,091 | 04/20/2009 10:52:46 | 11 | 1 | Tricky SQL SELECT Statement | I have a performance issue when selecting data in my project.
There is a table with 3 columns: "id","time" and "group"
* The ids are just unique ids as usual.
* The time is the creation date of the entry.
* The group is there to cummulate certain entries together.
So the table data may look like this:
ID | TIME | GROUP
1 | 20090805 | A
2 | 20090804 | A
3 | 20090804 | B
4 | 20090805 | B
5 | 20090803 | A
6 | 20090802 | B
and so on.
**The task is now to select the "current" entries (their ids) in each group for a given date. That is, for each group find the most recent entry for a given date.**
Following preconditions apply:
* I do not know the different groups in advance - there may be many different ones changing over time
* The selection date may lie "in between" the dates of the entries in the table. Then I have to find the closest one in each group. That is, TIME is less than the selection date but the maximum of those to which this rule applies in a group.
What I currently do is a multi-step process which I would like to change into single SELECT statement:
1. `SELECT DISTINCT group FROM table` to find the available groups
2. For each group found in 1), `SELECT * FROM table WHERE time<selectionDate AND group=loop ORDER BY time DESC`
3. Take the first row of each result found in 2)
Obviously this is not optimal.
So I would be very happy if some more experienced SQL expert could help me to find a solution to put these steps in a single statement.
Thank you! | sql | performance | select | null | null | null | open | Tricky SQL SELECT Statement
===
I have a performance issue when selecting data in my project.
There is a table with 3 columns: "id","time" and "group"
* The ids are just unique ids as usual.
* The time is the creation date of the entry.
* The group is there to cummulate certain entries together.
So the table data may look like this:
ID | TIME | GROUP
1 | 20090805 | A
2 | 20090804 | A
3 | 20090804 | B
4 | 20090805 | B
5 | 20090803 | A
6 | 20090802 | B
and so on.
**The task is now to select the "current" entries (their ids) in each group for a given date. That is, for each group find the most recent entry for a given date.**
Following preconditions apply:
* I do not know the different groups in advance - there may be many different ones changing over time
* The selection date may lie "in between" the dates of the entries in the table. Then I have to find the closest one in each group. That is, TIME is less than the selection date but the maximum of those to which this rule applies in a group.
What I currently do is a multi-step process which I would like to change into single SELECT statement:
1. `SELECT DISTINCT group FROM table` to find the available groups
2. For each group found in 1), `SELECT * FROM table WHERE time<selectionDate AND group=loop ORDER BY time DESC`
3. Take the first row of each result found in 2)
Obviously this is not optimal.
So I would be very happy if some more experienced SQL expert could help me to find a solution to put these steps in a single statement.
Thank you! | 0 |
3,473,905 | 08/13/2010 04:32:39 | 419,175 | 08/13/2010 04:26:27 | 1 | 0 | I would like to know the basic difference between web 2.0 sites and other sites. | I would like to know the basic difference between web 2.0 sites and other sites.
Today, a newish set of internet technologies and fresh philosophies on how to harness the interconnected nature of the network are gaining significant attention from consumers and venture capitalists. It’s the web, version 2.0, or Web 2.0 as it has been dubbed by many.
| untagged | null | null | null | null | 10/03/2011 16:06:05 | off topic | I would like to know the basic difference between web 2.0 sites and other sites.
===
I would like to know the basic difference between web 2.0 sites and other sites.
Today, a newish set of internet technologies and fresh philosophies on how to harness the interconnected nature of the network are gaining significant attention from consumers and venture capitalists. It’s the web, version 2.0, or Web 2.0 as it has been dubbed by many.
| 2 |
9,347,981 | 02/19/2012 09:07:47 | 311,420 | 04/07/2010 21:52:24 | 336 | 16 | Why python 2.7.2 does not have a symbolic link in /usr/lib/python2.7 | I broke my Mercurial install . So I reinstalled Python-2.7 on 64-bit Mac Os 10.6 ( Snow Leopard ) with python-2.7.2-macosx10.6.dmg .
I have the folder /Library/Frameworks/Python.framework/Versions/2.7/ . Python 2.7.2 can be interpreted
The folder /usr/lib/python2.6 exits but not python2.7 . It seems the PYTHONPATH variable environment must be set to /usr/lib/python-latest-version
Also I don't have a /Library/Python/2.7 either. It does not seem like a bad install
How to get this /usr/lib/python2.7 folder right ? Can I create it manually ? | python | osx | mercurial | osx-snow-leopard | python-2.7 | 02/20/2012 02:33:45 | off topic | Why python 2.7.2 does not have a symbolic link in /usr/lib/python2.7
===
I broke my Mercurial install . So I reinstalled Python-2.7 on 64-bit Mac Os 10.6 ( Snow Leopard ) with python-2.7.2-macosx10.6.dmg .
I have the folder /Library/Frameworks/Python.framework/Versions/2.7/ . Python 2.7.2 can be interpreted
The folder /usr/lib/python2.6 exits but not python2.7 . It seems the PYTHONPATH variable environment must be set to /usr/lib/python-latest-version
Also I don't have a /Library/Python/2.7 either. It does not seem like a bad install
How to get this /usr/lib/python2.7 folder right ? Can I create it manually ? | 2 |
5,494,267 | 03/31/2011 01:05:00 | 545,591 | 12/17/2010 03:09:48 | 12 | 0 | How to populate a vector/list with all derived classes of a base class | Apologies for the rather basic question -
I would like to get a vector/list of derived class pointers (one
corresponding to each derived class from an abstract base class).
Any ideas/snippets are appreciated.
Thanks!
--Thomas. | c++ | null | null | null | null | 03/31/2011 11:09:26 | not a real question | How to populate a vector/list with all derived classes of a base class
===
Apologies for the rather basic question -
I would like to get a vector/list of derived class pointers (one
corresponding to each derived class from an abstract base class).
Any ideas/snippets are appreciated.
Thanks!
--Thomas. | 1 |
9,830,568 | 03/22/2012 21:09:39 | 158,851 | 08/18/2009 22:56:45 | 542 | 3 | Embedded anf Free DB Alternative to SQLite, Firebird and MS SQL Server CE | Greeting Overflowers,
I want to use it with C# :-)
Regards | c# | database | embedded | null | null | 03/27/2012 10:46:57 | not a real question | Embedded anf Free DB Alternative to SQLite, Firebird and MS SQL Server CE
===
Greeting Overflowers,
I want to use it with C# :-)
Regards | 1 |
11,499,891 | 07/16/2012 07:32:34 | 1,213,221 | 04/06/2011 14:00:54 | 6 | 0 | how to see if any timer thread is running or not | I wrote a program to schedule a periodic timer in LINUX using timer_create and timer_settime .
What will happen if I kill the process before deleting and stopping this timer.
Shall this timer stay alive even after exiting from main.
If yes , how to check if any such timer is still running after killing the main .
BR,
Himanshu | linux | timer | posix | null | null | null | open | how to see if any timer thread is running or not
===
I wrote a program to schedule a periodic timer in LINUX using timer_create and timer_settime .
What will happen if I kill the process before deleting and stopping this timer.
Shall this timer stay alive even after exiting from main.
If yes , how to check if any such timer is still running after killing the main .
BR,
Himanshu | 0 |
4,175,281 | 11/13/2010 23:29:14 | 184,046 | 10/04/2009 20:35:01 | 2,670 | 31 | What does it mean to align stack? | I have been a high-level coder and architectures are pretty new so I decided to read the tutorial on Assembly here:
http://en.wikibooks.org/wiki/X86_Assembly/Print_Version
Far down the tutorial, instructions on how to convert the Hello World! program
#include <stdio.h>
int main(void) {
printf("Hello, world!\n");
return 0;
}
into equivalent assembly code was given and the following was generated:
.text
LC0:
.ascii "Hello, world!\12\0"
.globl _main
_main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
movl %eax, -4(%ebp)
movl -4(%ebp), %eax
call __alloca
call ___main
movl $LC0, (%esp)
call _printf
movl $0, %eax
leave
ret
For one of the lines,
andl $-16, %esp
the explanation was:
> This code "and"s ESP with 0xFFFFFFF0,
> aligning the stack with the next
> lowest 16-byte boundary. An
> examination of Mingw's source code
> reveals that this may be for SIMD
> instructions appearing in the "_main"
> routine, which operate only on aligned
> addresses. Since our routine doesn't
> contain SIMD instructions, this line
> is unnecessary.
I am not understand this point. Can someone give me an explanation of what it means to align the stack with the next 16-byte boundary and why it is required?
| c | gcc | assembly | null | null | null | open | What does it mean to align stack?
===
I have been a high-level coder and architectures are pretty new so I decided to read the tutorial on Assembly here:
http://en.wikibooks.org/wiki/X86_Assembly/Print_Version
Far down the tutorial, instructions on how to convert the Hello World! program
#include <stdio.h>
int main(void) {
printf("Hello, world!\n");
return 0;
}
into equivalent assembly code was given and the following was generated:
.text
LC0:
.ascii "Hello, world!\12\0"
.globl _main
_main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
movl %eax, -4(%ebp)
movl -4(%ebp), %eax
call __alloca
call ___main
movl $LC0, (%esp)
call _printf
movl $0, %eax
leave
ret
For one of the lines,
andl $-16, %esp
the explanation was:
> This code "and"s ESP with 0xFFFFFFF0,
> aligning the stack with the next
> lowest 16-byte boundary. An
> examination of Mingw's source code
> reveals that this may be for SIMD
> instructions appearing in the "_main"
> routine, which operate only on aligned
> addresses. Since our routine doesn't
> contain SIMD instructions, this line
> is unnecessary.
I am not understand this point. Can someone give me an explanation of what it means to align the stack with the next 16-byte boundary and why it is required?
| 0 |
10,854,429 | 06/01/2012 16:55:17 | 822,758 | 06/30/2011 09:39:00 | 92 | 1 | Unrar4iOS error, File::tell() throws to asm code, what should I do? | I have an error File::tell() shown in XCode, using Unrar4iOS Framework, when I am calling the method:
-(NSArray)unrarListFiles;
the compiler shows me the a bunch of errors, where the last from stack is ftell, if someone knows, the origin if where probabily i am wrong, plese reply...
the full procedure what i want to do is to extrat the int number of files archived, from code below:
int nuberOfPages = 0;
NSLog(@"Filepath: %@", filePath);
Unrar4iOS *_unrar = [[Unrar4iOS alloc] init];
BOOL ok = [_unrar unrarOpenFile:filePath];
if (ok) {
NSArray *files = [_unrar unrarListFiles];
for (NSString *filename in files) {
NSLog(@"File: %@", filename);
}
nuberOfPages = files.count;
[unrar unrarCloseFile];
} else {
[unrar unrarCloseFile];
}
[_unrar release];
return nuberOfPages; | iphone | ios | ipad | rar | unrar | null | open | Unrar4iOS error, File::tell() throws to asm code, what should I do?
===
I have an error File::tell() shown in XCode, using Unrar4iOS Framework, when I am calling the method:
-(NSArray)unrarListFiles;
the compiler shows me the a bunch of errors, where the last from stack is ftell, if someone knows, the origin if where probabily i am wrong, plese reply...
the full procedure what i want to do is to extrat the int number of files archived, from code below:
int nuberOfPages = 0;
NSLog(@"Filepath: %@", filePath);
Unrar4iOS *_unrar = [[Unrar4iOS alloc] init];
BOOL ok = [_unrar unrarOpenFile:filePath];
if (ok) {
NSArray *files = [_unrar unrarListFiles];
for (NSString *filename in files) {
NSLog(@"File: %@", filename);
}
nuberOfPages = files.count;
[unrar unrarCloseFile];
} else {
[unrar unrarCloseFile];
}
[_unrar release];
return nuberOfPages; | 0 |
10,829,496 | 05/31/2012 07:54:42 | 56,604 | 01/19/2009 08:45:35 | 4,837 | 201 | Hide FW/1 actions without controller method (view only) | Currently I am using "partials" concept in my FW/1 views: these chunks of layout that can be re-used by different views. They are prefixed with underscore for easier maintenance, but unlike the CFWheels these still can be used as implicit views which is not very good.
For example, there's a directory structure:
/views/member/_user.cfm
/views/member/profile.cfm
/views/member/register.cfm
This way actual user form is in the _user.cfm and can be included to the two others using `#view('member/_user')#`.
What I want is to prevent access to the pages like `member._user` on the website.
One solution is to create the `_user` method in `member.cfc` controller and redirect user somewhere. But creating such methods for each partial is kinda inefficient approach.
Alternative to this would be parsing the `rc.action` in `before` and checking if there's underscore in the prefix, but I'm not sure this is clean solution.
Is it possible to disable the action (throw 404) if there's no corresponding method in controller? Or maybe there are some framework events/flags which would allow me to handle "missing method" situation in `before`?
Thank you. | coldfusion | controller | fw1 | null | null | null | open | Hide FW/1 actions without controller method (view only)
===
Currently I am using "partials" concept in my FW/1 views: these chunks of layout that can be re-used by different views. They are prefixed with underscore for easier maintenance, but unlike the CFWheels these still can be used as implicit views which is not very good.
For example, there's a directory structure:
/views/member/_user.cfm
/views/member/profile.cfm
/views/member/register.cfm
This way actual user form is in the _user.cfm and can be included to the two others using `#view('member/_user')#`.
What I want is to prevent access to the pages like `member._user` on the website.
One solution is to create the `_user` method in `member.cfc` controller and redirect user somewhere. But creating such methods for each partial is kinda inefficient approach.
Alternative to this would be parsing the `rc.action` in `before` and checking if there's underscore in the prefix, but I'm not sure this is clean solution.
Is it possible to disable the action (throw 404) if there's no corresponding method in controller? Or maybe there are some framework events/flags which would allow me to handle "missing method" situation in `before`?
Thank you. | 0 |
9,125,075 | 02/03/2012 07:21:40 | 1,182,268 | 02/01/2012 08:51:55 | 1 | 0 | Is It Possible To Create Abstract Class in C# Windows Forms.? | Then I have to implement the Abstract Class in Data Tables. | c# | datatable | abstract-class | null | null | 02/03/2012 13:58:58 | not a real question | Is It Possible To Create Abstract Class in C# Windows Forms.?
===
Then I have to implement the Abstract Class in Data Tables. | 1 |
11,656,646 | 07/25/2012 18:55:56 | 1,552,594 | 07/25/2012 18:50:08 | 1 | 0 | How to remove flashing capet from the screen after updating content with Ajax | I think this is happening because the button clicked to initiate the content update is removed so the capet has nowhere to go. Ends up flashing next to a header or within the updated text. Can this be fixed with window.blur() or similar? | javascript | jquery | ajax | null | null | 07/26/2012 11:27:32 | not a real question | How to remove flashing capet from the screen after updating content with Ajax
===
I think this is happening because the button clicked to initiate the content update is removed so the capet has nowhere to go. Ends up flashing next to a header or within the updated text. Can this be fixed with window.blur() or similar? | 1 |
4,403,119 | 12/09/2010 21:06:34 | 470,925 | 10/09/2010 15:31:28 | 58 | 2 | Is there a way to get pywin32 to use vcvars32.bat instead of vcvarsall.bat? | So, I'm just trying to build pywin32 on my Windows 7 machine. When running the setup script, I ran into the common error of "Unable to find vcvarsall.bat". I do have Visual C++ installed, so I was somewhat confused. After a bit of searching around, here as well as other sites, I found that the best solution to my problem would probably be to add the path to the batch file right to my path. However, when looking for that path, I realized that, since I have Visual Studio 2010 installed rather than 2008 or earlier, I have a file called "vcvars32.bat" instead of the usual "vavarsall.bat".
Is it possible to get the setup script to use vcvars32? This is probably ridiculous and may reveal how little I know about batch files, but could I perhaps copy and rename the vcvars32.bat file to vcvarsall.bat, or are they too fundamentally different to work properly?
Or do I just need to install an older version of Visual Studio? I would really rather not if I could avoid it. I have also been having trouble building with MinGW. Are there any files I need to download first?
Thanks in advance,
Ken | python | pywin32 | null | null | null | null | open | Is there a way to get pywin32 to use vcvars32.bat instead of vcvarsall.bat?
===
So, I'm just trying to build pywin32 on my Windows 7 machine. When running the setup script, I ran into the common error of "Unable to find vcvarsall.bat". I do have Visual C++ installed, so I was somewhat confused. After a bit of searching around, here as well as other sites, I found that the best solution to my problem would probably be to add the path to the batch file right to my path. However, when looking for that path, I realized that, since I have Visual Studio 2010 installed rather than 2008 or earlier, I have a file called "vcvars32.bat" instead of the usual "vavarsall.bat".
Is it possible to get the setup script to use vcvars32? This is probably ridiculous and may reveal how little I know about batch files, but could I perhaps copy and rename the vcvars32.bat file to vcvarsall.bat, or are they too fundamentally different to work properly?
Or do I just need to install an older version of Visual Studio? I would really rather not if I could avoid it. I have also been having trouble building with MinGW. Are there any files I need to download first?
Thanks in advance,
Ken | 0 |
10,630,524 | 05/17/2012 05:50:39 | 1,277,781 | 03/19/2012 03:51:13 | 10 | 1 | Calendar control in Windows phone 7? | Please suggest a good calendar control which i can use in my app in windows phone 7.
My requirement is to change the background color of selected date and also have multi select option. | c# | silverlight | windows-phone-7 | null | null | 05/17/2012 17:15:46 | not constructive | Calendar control in Windows phone 7?
===
Please suggest a good calendar control which i can use in my app in windows phone 7.
My requirement is to change the background color of selected date and also have multi select option. | 4 |
9,239,210 | 02/11/2012 09:42:18 | 1,203,580 | 02/11/2012 09:37:19 | 1 | 0 | "mustache" or "distal" for template framework? | I've looked at both http://code.google.com/p/distal and http://mustache.github.com and don't know which to use.
**Mustache** is more javascript based and **Distal** is more html based.
Which is better? | javascript | html | ajax | html5 | templates | 02/11/2012 14:55:07 | not constructive | "mustache" or "distal" for template framework?
===
I've looked at both http://code.google.com/p/distal and http://mustache.github.com and don't know which to use.
**Mustache** is more javascript based and **Distal** is more html based.
Which is better? | 4 |
8,019,672 | 11/05/2011 10:44:44 | 1,009,631 | 10/23/2011 15:16:17 | 1 | 0 | How can the document can be seperated form single file in php? | I have to separate 1400 documents from single text file using php.Every document in listed as .I1,.I2.....
Can any body help me to solve this ?
concept is similar to tokenizing the file into document. | php | file | token | null | null | 11/05/2011 11:42:55 | not a real question | How can the document can be seperated form single file in php?
===
I have to separate 1400 documents from single text file using php.Every document in listed as .I1,.I2.....
Can any body help me to solve this ?
concept is similar to tokenizing the file into document. | 1 |
7,982,149 | 11/02/2011 14:37:49 | 885,566 | 08/09/2011 08:53:07 | 24 | 2 | AIR dispatch event with parameter | I have a form with a search field.
When user press enter key, I use httpservice to send a query to mySQL database.
In some case (a lot) there are several record, so a new window is opening to show those record with a datagrid to let user chose the good result.
My problem is how to send selected information to the first window (with text field).
I gess that dispatch event is the way but I don't found how to use!
Can you help me to find a solution.
Thanks | actionscript-3 | flex | air | null | null | null | open | AIR dispatch event with parameter
===
I have a form with a search field.
When user press enter key, I use httpservice to send a query to mySQL database.
In some case (a lot) there are several record, so a new window is opening to show those record with a datagrid to let user chose the good result.
My problem is how to send selected information to the first window (with text field).
I gess that dispatch event is the way but I don't found how to use!
Can you help me to find a solution.
Thanks | 0 |
8,514,916 | 12/15/2011 03:54:56 | 140,899 | 07/19/2009 07:41:28 | 1,614 | 23 | Why caused hibernate generating a update clause? | I am use hibernate to select data from a View:
from test where trim(id)='1111'
but hibernate generate an update clause:
update test set id=?, dd=? where id='1111'
Anyone has any suggestion ? It seems it's bug of hibernate? | java | hibernate | null | null | null | null | open | Why caused hibernate generating a update clause?
===
I am use hibernate to select data from a View:
from test where trim(id)='1111'
but hibernate generate an update clause:
update test set id=?, dd=? where id='1111'
Anyone has any suggestion ? It seems it's bug of hibernate? | 0 |
9,932,759 | 03/29/2012 20:11:56 | 1,293,936 | 03/26/2012 20:06:40 | 18 | 0 | Oracle 10g keeps on Initializing | I am continuously getting Error Code “The ORA-01033: ORACLE initialization or shutdown in progress”
This is happening ever since I physically deleted a couple of .dbf files | sql | database | oracle | null | null | 03/30/2012 11:08:12 | off topic | Oracle 10g keeps on Initializing
===
I am continuously getting Error Code “The ORA-01033: ORACLE initialization or shutdown in progress”
This is happening ever since I physically deleted a couple of .dbf files | 2 |
6,858,662 | 07/28/2011 12:05:07 | 867,411 | 07/28/2011 12:05:07 | 1 | 0 | comparison between two times | I am developing a website on php. I am submitting a time field as M:SAM or PM (EX: 10:55AM) something like this. I want to compare this field with current time. I am getting the current time by using this code.
$time = date("h:i A");
$time = str_replace(' ','',$time);
But here I want to compare this current time with database result.
Thanks
Sateesh. | php | null | null | null | null | null | open | comparison between two times
===
I am developing a website on php. I am submitting a time field as M:SAM or PM (EX: 10:55AM) something like this. I want to compare this field with current time. I am getting the current time by using this code.
$time = date("h:i A");
$time = str_replace(' ','',$time);
But here I want to compare this current time with database result.
Thanks
Sateesh. | 0 |
6,518,356 | 06/29/2011 09:23:30 | 812,139 | 06/23/2011 11:58:05 | 29 | 5 | Why doesn't Oracle support Boolean datatype? | I am asking for the **design reasons** that made the Oracle staff to decide not supporting such a basic datatype, forcing user to make ugly and not standard mappings (such as CHAR(1), NUMBER(1,0) and so). | database | oracle | database-design | null | null | 06/29/2011 15:43:51 | not a real question | Why doesn't Oracle support Boolean datatype?
===
I am asking for the **design reasons** that made the Oracle staff to decide not supporting such a basic datatype, forcing user to make ugly and not standard mappings (such as CHAR(1), NUMBER(1,0) and so). | 1 |
10,369,052 | 04/29/2012 01:47:26 | 217,380 | 11/23/2009 21:53:22 | 55 | 0 | jquery switching between divs by visibility and scroll position | So i have a Summary screen and Detail screen. Both are divs in a body with their own auto scrollbars. The Summary is visible and Detail is "display: none".
When a line item in Summary is clicked I show the detail and hide the summary div. Fine. However when i switch back to the Summary the scroll position is reset. Now this problem itself is easy to solve by saving the window scroll position etc etc.
Now I think what I want is the detail div to act as an overlay (with a z-index?). This way i don't need to show/hide and scroll to the saved position on the summary screen? Do jquery ui tabs keep scroll position when switching between tabs?
Thanks | jquery | div | tabs | scroll-position | null | 04/30/2012 13:59:50 | not a real question | jquery switching between divs by visibility and scroll position
===
So i have a Summary screen and Detail screen. Both are divs in a body with their own auto scrollbars. The Summary is visible and Detail is "display: none".
When a line item in Summary is clicked I show the detail and hide the summary div. Fine. However when i switch back to the Summary the scroll position is reset. Now this problem itself is easy to solve by saving the window scroll position etc etc.
Now I think what I want is the detail div to act as an overlay (with a z-index?). This way i don't need to show/hide and scroll to the saved position on the summary screen? Do jquery ui tabs keep scroll position when switching between tabs?
Thanks | 1 |
9,275,965 | 02/14/2012 11:20:58 | 571,260 | 01/11/2011 12:43:12 | 48 | 4 | add text on image using position | I want to add text dynamically on an image.
I tried to use javascript / jQuery to do so.
Here is the code :
$(document).ready(function()
{
var img = $("img#back1");
var leftpos = img.position().left;
var toppos = img.position().top;
var div = document.createElement('div');
div.style.position = 'absolute';
div.style.top = toppos+"px";
div.style.left = leftpos+"px";
div.innerHTML = '<font> back </font>';
div.style.background = '#CC0000';
document.body.appendChild(div);
});
After doing this, i am not getting text 'back' over the image.
Please suggest/ correct me if I've gone wrong somewhere.
Thanks | javascript | jquery | html | jquery-ui | jquery-selectors | null | open | add text on image using position
===
I want to add text dynamically on an image.
I tried to use javascript / jQuery to do so.
Here is the code :
$(document).ready(function()
{
var img = $("img#back1");
var leftpos = img.position().left;
var toppos = img.position().top;
var div = document.createElement('div');
div.style.position = 'absolute';
div.style.top = toppos+"px";
div.style.left = leftpos+"px";
div.innerHTML = '<font> back </font>';
div.style.background = '#CC0000';
document.body.appendChild(div);
});
After doing this, i am not getting text 'back' over the image.
Please suggest/ correct me if I've gone wrong somewhere.
Thanks | 0 |
7,525,906 | 09/23/2011 07:57:06 | 914,533 | 08/26/2011 17:14:03 | 10 | 0 | Why BaseModel property for this class is empty? | I have a class hwo extend BaseModel, :
package ru.xxx.empeditor.client.dto;
imports ....
import com.extjs.gxt.ui.client.data.BaseModel;
public class EmpDTO extends BaseModel {
private short empno;
private EmpDTO emp;
private DeptDTO dept;
private String ename;
private String job;
private Date hiredate;
private BigDecimal sal;
private BigDecimal comm;
private Set<SalaryLogDTO> salaryLogs = new HashSet<SalaryLogDTO>(0);
private Set<EmpDTO> emps = new HashSet<EmpDTO>(0);
public EmpDTO() {
}
public EmpDTO(short empno) {
this.empno = empno;
}
public EmpDTO(short empno, EmpDTO emp, DeptDTO dept, String ename,
String job, Date hiredate, BigDecimal sal, BigDecimal comm,
Set<SalaryLogDTO> salaryLogs, Set<EmpDTO> emps) {
this.empno = empno;
this.emp = emp;
this.dept = dept;
this.ename = ename;
this.job = job;
this.hiredate = hiredate;
this.sal = sal;
this.comm = comm;
this.salaryLogs = salaryLogs;
this.emps = emps;
}
public short getEmpno() {
return this.empno;
}
public void setEmpno(short empno) {
this.empno = empno;
}
public EmpDTO getEmp() {
return this.emp;
}
public void setEmp(EmpDTO emp) {
this.emp = emp;
}
public DeptDTO getDept() {
return this.dept;
}
public void setDept(DeptDTO dept) {
this.dept = dept;
}
public String getEname() {
return this.ename;
}
public void setEname(String ename) {
this.ename = ename;
}
public String getJob() {
return this.job;
}
public void setJob(String job) {
this.job = job;
}
public Date getHiredate() {
return this.hiredate;
}
public void setHiredate(Date hiredate) {
this.hiredate = hiredate;
}
public BigDecimal getSal() {
return this.sal;
}
public void setSal(BigDecimal sal) {
this.sal = sal;
}
public BigDecimal getComm() {
return this.comm;
}
public void setComm(BigDecimal comm) {
this.comm = comm;
}
public Set<SalaryLogDTO> getSalaryLogs() {
return this.salaryLogs;
}
public void setSalaryLogs(Set<SalaryLogDTO> salaryLogs) {
this.salaryLogs = salaryLogs;
}
public Set<EmpDTO> getEmps() {
return this.emps;
}
public void setEmps(Set<EmpDTO> emps) {
this.emps = emps;
}
}
And when i do
EmpDTO empDTOtmp = new EmpDTO();
empDTOtmp.setEname("test");
System.out.println(empDTOtmp.getPropertyNames());
I see: [] | java | gxt | null | null | null | 10/01/2011 06:44:15 | too localized | Why BaseModel property for this class is empty?
===
I have a class hwo extend BaseModel, :
package ru.xxx.empeditor.client.dto;
imports ....
import com.extjs.gxt.ui.client.data.BaseModel;
public class EmpDTO extends BaseModel {
private short empno;
private EmpDTO emp;
private DeptDTO dept;
private String ename;
private String job;
private Date hiredate;
private BigDecimal sal;
private BigDecimal comm;
private Set<SalaryLogDTO> salaryLogs = new HashSet<SalaryLogDTO>(0);
private Set<EmpDTO> emps = new HashSet<EmpDTO>(0);
public EmpDTO() {
}
public EmpDTO(short empno) {
this.empno = empno;
}
public EmpDTO(short empno, EmpDTO emp, DeptDTO dept, String ename,
String job, Date hiredate, BigDecimal sal, BigDecimal comm,
Set<SalaryLogDTO> salaryLogs, Set<EmpDTO> emps) {
this.empno = empno;
this.emp = emp;
this.dept = dept;
this.ename = ename;
this.job = job;
this.hiredate = hiredate;
this.sal = sal;
this.comm = comm;
this.salaryLogs = salaryLogs;
this.emps = emps;
}
public short getEmpno() {
return this.empno;
}
public void setEmpno(short empno) {
this.empno = empno;
}
public EmpDTO getEmp() {
return this.emp;
}
public void setEmp(EmpDTO emp) {
this.emp = emp;
}
public DeptDTO getDept() {
return this.dept;
}
public void setDept(DeptDTO dept) {
this.dept = dept;
}
public String getEname() {
return this.ename;
}
public void setEname(String ename) {
this.ename = ename;
}
public String getJob() {
return this.job;
}
public void setJob(String job) {
this.job = job;
}
public Date getHiredate() {
return this.hiredate;
}
public void setHiredate(Date hiredate) {
this.hiredate = hiredate;
}
public BigDecimal getSal() {
return this.sal;
}
public void setSal(BigDecimal sal) {
this.sal = sal;
}
public BigDecimal getComm() {
return this.comm;
}
public void setComm(BigDecimal comm) {
this.comm = comm;
}
public Set<SalaryLogDTO> getSalaryLogs() {
return this.salaryLogs;
}
public void setSalaryLogs(Set<SalaryLogDTO> salaryLogs) {
this.salaryLogs = salaryLogs;
}
public Set<EmpDTO> getEmps() {
return this.emps;
}
public void setEmps(Set<EmpDTO> emps) {
this.emps = emps;
}
}
And when i do
EmpDTO empDTOtmp = new EmpDTO();
empDTOtmp.setEname("test");
System.out.println(empDTOtmp.getPropertyNames());
I see: [] | 3 |
7,513,658 | 09/22/2011 10:58:13 | 958,935 | 09/22/2011 10:53:20 | 1 | 0 | Joomla mootools 1.3 error | i am getting following error in mootools 1.3
l = l.camelCase();
camelCase is not function?
how can i solve this error? | joomla1.6 | null | null | null | null | 09/22/2011 18:16:30 | not a real question | Joomla mootools 1.3 error
===
i am getting following error in mootools 1.3
l = l.camelCase();
camelCase is not function?
how can i solve this error? | 1 |
10,924,232 | 06/07/2012 00:39:25 | 1,260,682 | 03/10/2012 06:45:04 | 32 | 0 | is the theory of list decidable? | I am wondering if the z3 theory of list decidable? It seems like we can only prove facts that are unsat but not sat using the theory, so I am curious if it is actually decidable. Thanks for your help. | z3 | null | null | null | null | null | open | is the theory of list decidable?
===
I am wondering if the z3 theory of list decidable? It seems like we can only prove facts that are unsat but not sat using the theory, so I am curious if it is actually decidable. Thanks for your help. | 0 |
11,473,343 | 07/13/2012 15:16:19 | 1,503,527 | 07/05/2012 09:30:44 | 1 | 0 | Thesis on cloud Platform-as-a-Service - Developer's perspective | I am writing thesis on cloud services for post graduate business degree. One of the questions I am researching is on developers perspective on Platform-as-a-service. What are the advantages or disadvantages of Platforms such as Microsoft Azure, Amazon EC2, Force.com etc. Could any of you spare sometime to help me understand your perspective - more from a user experience point of view than completely technical - From the creation of account in any of these platforms to deploying and maintenance of that application. Thank you for all the help! | paas | null | null | null | null | 07/15/2012 18:33:29 | off topic | Thesis on cloud Platform-as-a-Service - Developer's perspective
===
I am writing thesis on cloud services for post graduate business degree. One of the questions I am researching is on developers perspective on Platform-as-a-service. What are the advantages or disadvantages of Platforms such as Microsoft Azure, Amazon EC2, Force.com etc. Could any of you spare sometime to help me understand your perspective - more from a user experience point of view than completely technical - From the creation of account in any of these platforms to deploying and maintenance of that application. Thank you for all the help! | 2 |
4,163,445 | 11/12/2010 09:57:20 | 125,673 | 06/19/2009 11:07:23 | 275 | 8 | MVC: I want the Date in my View not to show the default value. | I am displaying a Date in my View. This particular View is one that I use to add data to the database.
On the database the Date field is not null, and that is how it should be. However by virtue of it being not null, the same date field is mapped as not null in the EF generated classes I use. So when I send an empty object of that class to the View, the date is given the default minimum value, which I do not want. Instead I want to see a blank field.
How do I do this?
The date in the View look as follows (not sure this helps anyone, but I know I always get asked for the code)
<tr>
<td>
<%: Html.LabelFor(model => model.OtherLeaveDate)%>
</td>
<td>
<%: Html.EditorFor(model => model.OtherLeaveDate)%>
<%: Html.ValidationMessageFor(model => model.OtherLeaveDate)%>
</td>
</tr>
<tr> | asp.net-mvc | null | null | null | null | null | open | MVC: I want the Date in my View not to show the default value.
===
I am displaying a Date in my View. This particular View is one that I use to add data to the database.
On the database the Date field is not null, and that is how it should be. However by virtue of it being not null, the same date field is mapped as not null in the EF generated classes I use. So when I send an empty object of that class to the View, the date is given the default minimum value, which I do not want. Instead I want to see a blank field.
How do I do this?
The date in the View look as follows (not sure this helps anyone, but I know I always get asked for the code)
<tr>
<td>
<%: Html.LabelFor(model => model.OtherLeaveDate)%>
</td>
<td>
<%: Html.EditorFor(model => model.OtherLeaveDate)%>
<%: Html.ValidationMessageFor(model => model.OtherLeaveDate)%>
</td>
</tr>
<tr> | 0 |
9,280,449 | 02/14/2012 16:25:27 | 650,393 | 03/08/2011 19:26:20 | 224 | 12 | Google jQuery Reference no longer working with http | I have several sites that use jQuery and jQuery UI. I get the link from http://scriptsrc.net/ which simply copies a reference to your clipboard like this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
However as of 2 days ago I notice that this is no longer working for any site I have it on. It cannot find jQuery so all jQuery functions stopped working.
A quick fix is to chance the http to https and then it works.
Then I found this post:
> http://stackoverflow.com/questions/547384/where-do-you-include-the-jquery-library-from-google-jsapi-cdn
Which is a bit different but it lead me to try to remove the http: or https: altogether and start with //. But no dice there either. Cannot find it.
So now I'm wondering:
1) Why did HTTP:// stop working?
2) What is the best way to reference jQuery at Google so that this doesn't happen again.
Thanks for your input
| jquery | null | null | null | null | null | open | Google jQuery Reference no longer working with http
===
I have several sites that use jQuery and jQuery UI. I get the link from http://scriptsrc.net/ which simply copies a reference to your clipboard like this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
However as of 2 days ago I notice that this is no longer working for any site I have it on. It cannot find jQuery so all jQuery functions stopped working.
A quick fix is to chance the http to https and then it works.
Then I found this post:
> http://stackoverflow.com/questions/547384/where-do-you-include-the-jquery-library-from-google-jsapi-cdn
Which is a bit different but it lead me to try to remove the http: or https: altogether and start with //. But no dice there either. Cannot find it.
So now I'm wondering:
1) Why did HTTP:// stop working?
2) What is the best way to reference jQuery at Google so that this doesn't happen again.
Thanks for your input
| 0 |
1,965,169 | 12/27/2009 04:31:57 | 239,059 | 12/27/2009 04:31:57 | 1 | 0 | Image upload problem | When I am upload my image in local server(my pc server) then it's OK, but when it's on sever(web server) then image upload system does not work. I already change my server permission to 777
what can i do to solve this problem..........
Plz response as early as possible............ | image | upload | null | null | null | 12/28/2009 01:50:52 | not a real question | Image upload problem
===
When I am upload my image in local server(my pc server) then it's OK, but when it's on sever(web server) then image upload system does not work. I already change my server permission to 777
what can i do to solve this problem..........
Plz response as early as possible............ | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.