instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I just found the Tapku library and would love to use the calendar, but am clueless as to where to start since I am new to iPhone dev. How do I go about presenting the calendar in one of my views?
| stackexchange/codereview |
I am serializing a complex object with lot of properties of other Types and Lists to JSON form but the issue is with DateTime properties. I get the epoch time with JavascriptSerializer (rather than mm/dd/YYYY).
Is there any way I can get the datetime in mm/dd/YYYY : HH.MM.SS form without modifying the class defination... | stackexchange/codereview |
I know this is not programming related question so to speak, but since we are programmers and we might use Netbeans for PHP development.
I am wondering how can I get in Netbeans a selection from a list of files quickly. Suppose there are different folders for MVC pattern and I edit 1 section of it. I would like to see ... | stackexchange/codereview |
I have a Spark Component (a Group) which doesn't behave as wanted.
The tooltip is only shown when the component is enabled=true which the following example shows:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.ad... | stackexchange/codereview |
I'm looking for a math JavaScript API to show formulas on a web site and allow users to input formulas too (for instance, using a <textarea/>).
The API should be able to parse text strings, such as 3x^2+2 or sqrt(x/(x+5)) building "automagically" fractional layouts, integral symbols and so on.
Thanks.
| stackexchange/codereview |
What's the best way to escape data from Models or Controllers to easily and safely display them in views. It seems kind of overkill to use html::specialchars($varname) for every data variable. It can also cause problems if a programmer forgets to "escape" data.
I've also encountered problems escaping ORM objects within... | stackexchange/codereview |
This has to be a pretty common issue, and while we have answers, I'm trying to determine if there is any better way. We are using IoC / DI with structuremap. This means that our final application (an Asp.Net MVC 2 app) requires the presence of some assemblies which aren't being referenced anywhere else (our implement... | stackexchange/codereview |
I have a python applicaiton that need to luanch a word document .
is there any option to luanch a word document with read mode only from python ?
| stackexchange/codereview |
I don't know how to use XPath so I can parse the result of the XML I got from JAX-RS and put it into an ArrayList or something, here's the code I have so far, it generates a String... but I want to be able to use XPath to parse it, as it's better to parse XML rather than parsing String.
private Client client = Client.c... | stackexchange/codereview |
My team now has an SVN + Ankh setup in ASP.NET with trunk, branches, and tags. We switch branches and work on code, but many times there will be inexplicable conflicts in files after simple changes. Why is this? I suspect we simply don't understand enough of how this works. Are there any do's and don'ts, or how should ... | stackexchange/codereview |
I looked at this and it answers half my questions:
Castle Windsor: Register class with internal constructor?
But can you use Windsor to use internal constructors/class along with dependency injection? (so constructor parameters get injected too)? I'd like to keep the class/constructor internal to allow for optimal enca... | stackexchange/codereview |
We're doing an upgrade to Ruby on Rails 3 (like half the world right now), and I've been diligently replacing usages of RAILS_ENV, for example
RAILS_ENV == 'wibble'
# becomes
Rails.env.wibble?
But I'm not as certain of what to do with:
ENV["RAILS_ENV"] ||= 'production'
We've got it at the top of a whole bunch of Rak... | stackexchange/codereview |
Configgy supports lists of strings as values and blocks of key/value pairs.
But it seems it does not support lists of blocks of key/value pairs as values.
Am I missing something?
| stackexchange/codereview |
Problem
When you search for such question using google you get a lot of hits but all solutions assume you have at least one window.
But my question is just like I phrased it -- not assumptions at all. I can have a window, but I could have zero windows (because I didn't even show one or I just closed the last one). So i... | stackexchange/codereview |
Is there an easy way to check if a line is empty. So i want to check if it contains any white space such as \r\n\t and spaces.
Thanks
| stackexchange/codereview |
i've already asked something similar, but now i've the problem to manage and realize a "realistic" steering for a simple 2d (top-down) car racing game.
How can i do a "realistic" steering for the car ? (i use c# but another language is welcome;))
Using Sin and Cos ?
If yes, how ?
Thanks in advance!
| stackexchange/codereview |
I have a random amount of DIVs (minimum 1, max of 10)
<div id="container">
<div class="foo">Content</div> <!-- div 1 -->
<div class="foo">Content</div> <!-- div 2 -->
<div class="foo">Content</div> <!-- div 3 -->
<div class="foo">Content</div> <!-- div 4 -->
<div class="foo">Content</div> <!-- div 5 -->
<div class="foo... | stackexchange/codereview |
Is it good practice to invoke delegate for MainForm thread - this way?:
Txt.MainForm.EndInvoke(
Txt.MainForm.BeginInvoke(
new MethodInvoker(delegate()
{ // code here }
)));
| stackexchange/codereview |
I am dynamically creating layout and text view in android. If the text view content is large, how to wrap the content of text view dynamically?
| stackexchange/codereview |
I'm trying to style a definition list so that dt tags start new rows, and can be followed by any number of dd elements on the same row. In modern browsers this is as simple as
dt {
float:left;
clear:left;
}
dd {
float:left;
}
In IE7, however, if the clearing element has float, subsequent floats are not aff... | stackexchange/codereview |
We are testing using security realms with our web application. In test we will be going against Microsoft Active Directory. Production will go against a custom realm. I have the working great in Tomcat, but can't seem to get this working in WebSphere. I have created a Security Domain (foo-ldap) within WebSphere tha... | stackexchange/codereview |
i am unable to use the function MonitorFromPoint in my Qt application. I have the latest Qt SDL 2010.05 with mingw on Windows XP
#include <QtCore/QCoreApplication>
#include<windows.h>
#include <winuser.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
POINT pt;
MonitorFromPoint(pt,2);
... | stackexchange/codereview |
I want to embed a silverlight app into a web page and have the height/width of the div that contains the silverlight control match the dimensions of the actual size of the silverlight control.
I essentially want the div to stretch to accommodate the size of the silverlight control. I do not know what size the silverli... | stackexchange/codereview |
I'm working with gnump and have a function that must return mpz_t. So I have to use raw pointers to return a value. I allocate space with new for pointer and send it as a parameter in my function.
I think it is better to use smart pointers. But I didn't work with them before. I read the manual but still can't underst... | stackexchange/codereview |
How can I get the position of an object in Raphael? I can get the size using getBBox(), but there appears to be no way to get the position?
| stackexchange/codereview |
Basically, I want to loop through the edges in the Borders collection. is there any "for each" way to do this?
Private Function getCellBorder(ByVal vArg As Range) As String
For Each Edge in Borders
Debug.Print vArg.Borders(Edge).LineStyle
Next Edge
End Function
| stackexchange/codereview |
I have just managed to migrate a pretty big database from SQL Server to MySQL. I didn't set the primary keys to auto increment during the migration because the tables have relationships based on ids as primary keys which are foreign keys in another table.
Now for adding new records I want to alter the primary key 'id' ... | stackexchange/codereview |
I need to make a layout that looks like this:
[250px - fixed div] [fluid div, must expand depending on the width of the body and the 2 divs next/before it] [250px - fixed div]
is this possible?
the container of all 3 divs is also fluid (100% width).
all these divs contain background images (left + right + repeating ... | stackexchange/codereview |
I have multi dbs with same structure I want to loop on them to check this select statment
select scan1,scan2,scan3 from customers where ..............
the output would be database name if this select has records
like that:
db1
db2
db3
and so on ...
| stackexchange/codereview |
I have NO idea what the problem is. I need to validate my website as part of a uni assignment on w3.org and for some reason, this page just will not load. The CSS and HTML validator pages won't load at all, it says "network timed out". I have no clue why this is, it's been like this since I can remember. I have reset s... | stackexchange/codereview |
I'm working on one site and I need frame like on http://www.thearchitecturestudio.net/.
How to put my logo(picture) like this ,overlap border ?
| stackexchange/codereview |
I know my question caption must have sounded really vague. But let me clear it out here.
Say I have an android application over a middleware stack. In onCreate() of my activity, I initialise my middleware modules.
In its onDestroy(), I must de-initialise the middleware. Now my middleware calls may take quite some time... | stackexchange/codereview |
I encountered a problem with passing Image object (captured with Point Grej FlyCapture2 SDK) to QImage object. I am getting a pointer associated with Image data by function:
virtual unsigned char* FlyCapture2::GetData ( )
and then loading the data by:
QImage::QImage ( uchar * data, int width, int height, int bytes... | stackexchange/codereview |
How can I unzip a specific folder with Ant?
Specifically, I have downloaded apache-tomcat-6.0.29.zip which contains the folder "apache-tomcat-6.0.29". I want Ant to unzip everything under "apache-tomcat-6.0.29" but not include "apache-tomcat-6.0.29" in the top of hierarchy.
I've tried a bunch of things, but I can't s... | stackexchange/codereview |
I want to store bits in an array (like structure). So I can follow either of the following two approaches
Approach number 1 (AN 1)
struct BIT
{
int data : 1
};
int main()
{
BIT a[100];
return 0;
}
Approach number 2 (AN 2)
int main()
{
std::bitset<100> BITS;
return 0;
}
Why would someone prefer AN 2 ... | stackexchange/codereview |
I have a value that I want users to be able to subscribe to and push to, so internally in my class I'm using Subject<T>.
When exposing this value as a property am I best to expose it as a ISubject<T> or is it better to split ISubject<T> into IObserver<T> and IObservable<T>?
Option 1:
private readonly ISubject<bool>... | stackexchange/codereview |
here is my case:
classloader A, loaded one class("Class1");
then, I changed Class1.java and compile it.
next I loaded Class1.class again by classloader B.
I want to compare these 2 classes, check whether the class meta data changed by someone.
Is there any way to compare 2 classes' definition data?
| stackexchange/codereview |
I came on board about 6 months ago, and when I arrived, my group was using NO form of versioning. I have since convinced mgmt to use Mercurial in new projects, so we have on our webserver the following structure:
-MainFolder (which includes files for the main project)
+Subfolder A, which contains (old) project A wit... | stackexchange/codereview |
I am using Paperclip to, among other things, allow a registered user to upload an avatar for use on thier profile. I want to store a big and small version of the image which will be rmagicked to standard sizes. Now, what i want to do, is store these two standard sizes (:normal and :tiny, for example.) but I do not want... | stackexchange/codereview |
how to create a permanent folder in the temporary folder in ubuntu? without being deleted when the computer shuts down, and not have to repeat the process every time the computer restarts
| stackexchange/codereview |
I used the example on installing nutch from their wiki. I was able to crawl multiple pages pulled from dmoz easily. But is there a configuration that can be done to crawl external links it finds on a page, or write those external links to a file to be crawled next?
What is the best way to follow links on a page to inde... | stackexchange/codereview |
I've got a slightly crazy/infuriating bug with a site and CSRF.
We're running Django 1.2.3, Python 2.6 on Ubuntu with Apache2 + mod_wsgi and have been getting end users reporting 403 CRSF verification failures and 403s as a result.
All our forms have a csrf_token and - as far as I am aware - things work fine in local ... | stackexchange/codereview |
I imagine that I should write a git commit hook (post-merge?) that would look at the list of changed files and run bundle install if necessary after I fetch and merge from my git repo.
But after some googling, I figure that either this should exist (couldn't find it!) or there's a good reason not to do this.
| stackexchange/codereview |
I am desperately looking for an online service for buffering rss feed items.
Basically, I have one rss feed that publishes approximately 40 items per hours; however the rss feed only exposes the latest 20. I would like to have access to a buffered rss feed that would for example expose the latest 250 items.
If such a ... | stackexchange/codereview |
how to get the url inserted into a Ext.form.TextField in a variable value??.
if I create a variable x in Javascript, but I need to add a url as the value that a user in a Ext.form.TextField, but the variable and Ext.form.TextField are in different script on the same page.
thanks for your help and attention
| stackexchange/codereview |
I've recently switched entirely to Vim for all my Python/Django development. It took me a lot of time to customize it to the point it is today, and God knows how hard it was for me to find help regarding the best vim plugins out there suited for Python/Django development.
I decided to ask this question so people like m... | stackexchange/codereview |
I'm new to programming. I want to fetch the css saved in DB and load in a php file. I'm using CodeIgniter. After loading the css, I want to link to it as an external css. I tried following, but it is not working.
EDIT:
defaultCss.php is the file in which I want to load the css.
$strTemplate.="<link rel='stylesheet' typ... | stackexchange/codereview |
I've been stuck for quite a while now trying to get this query to work.
Here's the setup:
I have a [Notes] table that contains a nonunique (Number) column and a nonunique (Result) column. I'm looking to create a SELECT statement that will display each distinct (Number) value where the count of the {(Number), (Result)} ... | stackexchange/codereview |
I want to create a testAction in testController of testModule with command line. So I go to tesModule directory(cd application/modules/test) and run the following command.
zf.sh create action test -c test
It created a action in application/modules/test/controllers/testController.php but it created testAction's test.p... | stackexchange/codereview |
I want to run an infinite loop for a while. Basically, i want to have something like this
//do something
while(1){
//do some work
}
//do some other thing
but i want the running time of the loop to be fixed, example, the loop could be running for 5 seconds.
Do somebody have an idea?
| stackexchange/codereview |
Last week I needed to test some different algorithmic functions and to make it easy to myself I added some artifical sleeps and simply measured the clock time. Something like this:
start = clock();
for (int i=0;i<10000;++i)
{
...
Sleep(1);
...
}
end = clock();
Since the argument of Sleep is expressed i... | stackexchange/codereview |
I have a table built from a dataset that is displayed in a partial view. The table is larger than the bowser.
How can I get the table to scroll horizontally in my partial view?
| stackexchange/codereview |
I have 2 servers running,
one for the dynamic content (nginx, php)
and another for login (apache2, php)
i use memcache to share the session information
i upgraded the server software and since then the session data in apache is encrypted
apache:
session::write("sessions/s53mqdhghmlrvnvjt05novt4m2","encrypted-data",0,... | stackexchange/codereview |
I am at my wits end trying to come up with a design pattern for this paradigm. I haven't had much luck on this site but at this stage I'll try anything.
I am trying to implement a radar type animation and hence I am rotating a view 360 degrees to represent the radius rotating around the circle. I have placed points aro... | stackexchange/codereview |
I posted this on the Apple dev forums here since it feels to me like a bug in the actual SDK, but I thought I'd post it here as well and see if anyone could verify whether or not I'm using this thing incorrectly (doesn't seem like it) or this is broken behaviour.
https://devforums.apple.com/thread/72738
--
After spendi... | stackexchange/codereview |
I made simple interface in Visual Studio 2010. When I launched application everything is bigger. Red square on screenshot represents size of the Button in launched application (On the right).
Am I missing something? How to fix it?
P.S.
In "Microsoft Expression Blend 4" the same project is exactly the same size as in ed... | stackexchange/codereview |
I have a table with products.
When I get information from that table, I would also like to get the ETA of that article. To do so, I am planning to get the latest purchase Order Row, that is on this article, and then get the expected delivery of this purchase.
This is three different tables and I would like it to be lik... | stackexchange/codereview |
I have a front-view and a flip-view much like the utility weather-app.
To avoid dealing with the complexities of protocols... on my flipView I need to call some code that resides back on my front-view. This works... but generates a warning during compile.
[self.parentViewController returningFromGetStringView];
Warnin... | stackexchange/codereview |
I know the .Contains() method does like LIKE %therm%, the .StartsWith() method does like LIKE therm% and the .EndsWith() method like LIKE %therm but...
Is there a way to do like below on **Linq to Entities**?
SELECT * FROM [dbo].[Users] WHERE Name LIKE 'rodrigo%otavio%diniz%waltenberg'
PS: I'M USING LINQ TO ENTITIES. ... | stackexchange/codereview |
I'm looking for a simple jquery plugin to upload a file without FLASH. For Ruby on Rails.
Single file upload
progress bar indicator and all the bits have been uploaded.
| stackexchange/codereview |
Possible Duplicate:
What does “DateTime?” mean in C#?
Hi All,
I recently came across with some code in C# where float? is used as return type. I want to know what is the concept behind using this and in which scenario we need to use it against normal float return type.
Thanks
| stackexchange/codereview |
I would like for my collaborators to be able to branch a project to an existing directory, since many already have the 'dir' directory which mirrors my own and I would prefer to minimize path lengths...
However, bzr won't let me do this:
mkdir dir
bzr branch ~/project/trunk dir
Is there a way around this?
| stackexchange/codereview |
I'm using PHP/MySQL to make a website that displays race results. I want to display a statistic of the 10 hardest races ie the races that most people DNF. I'm doing it like this:
select raceid,race.name,race.location,race.date,count(result.raceid) as dnfs
from result
inner join race on result.raceid=race.id
where re... | stackexchange/codereview |
In the current implementation of CPython, there is an object known as the "GIL" or "Global Interpreter Lock". It is essentially a mutex that prevents two Python threads from executing Python code at the same time. This prevents two threads from being able to corrupt the state of the Python interpreter, but also prevent... | stackexchange/codereview |
I have a user control which I call like this:
<MyNamespace:MyControl runAt="server" ID="foo" />
Is there any way I can determine the ID parameter at run-time and pass it in?
| stackexchange/codereview |
I have a LaTeX document with a figure and references to it:
\begin{figure}
...
\caption{...}
\label{fig:1}
\end{figure}
\ref{fig:1}
I use the hyperref package to get hyperlinks in the resulting PDF.
However the link to the figure navigates to the caption leaving the figure itself out of the view. How can I make it na... | stackexchange/codereview |
There's something I just don't get about guice: According to what I've read so far, I'm supposed to use the Injector only in my bootstrapping class (in a standalone application this would typically be in the main() method), like in the example below (taken from the guice documentation):
public static void main(String[]... | stackexchange/codereview |
I have a silverlight datagrid control bound to a Dictionary<string, string> with autogenerate columns set to true.
In the AutoGeneratingColumn event i change the column Header and IsReadOnly Properties as required(column bound to dictionary value is editable).
if ( string.Compare( e.Column.Header.ToString( ).ToLower( ... | stackexchange/codereview |
What is the fastest way of sorting this both alphabetically by country and numerically by date?:
Array
(
[JAPAN] => Array
(
[2010-10-17] => 2
)
[CUBA] => Array
(
[2010-10-16] => 9
)
[RUSSIAN FEDERATION] => Array
(
[2010-10-16] => 26
[2010-10-17] => 6
[2010-1... | stackexchange/codereview |
I am writing my own code for a decision tree. I need to decide on when to terminate the tree building process. I thought of limiting the height of the tree, but this seems trivial. Could anyone give me a better idea on how to define the stopping condition?
| stackexchange/codereview |
How can I set the ehe .net framework version and the managed pipeline mode programmatically for a IIS 7 programmatic via C#? What a the metabase property names for that?
| stackexchange/codereview |
how can i get start and end time of visible days in fullcalendar?
I need it for use in another javascript instace. Is there some function like -
$('calender').getStartTime();
?
| stackexchange/codereview |
For a test suite that's already using mocha for mocking, can new tests be written with rspec mocking? maybe turn that on before(:all) and turn it back to mocha after(:all)
I tried changing the Spec::Runner configuration at run-time and that didn't seem to work with mocking
| stackexchange/codereview |
I am currently developing an app that relies heavily on retrieving web content. I have a series of NSObject classes that represent the content that I retrieve in JSON format. I also have NSManagedObject classes that represent my Core Data model that are almost identical.
Here is an example of an NSObject class that I u... | stackexchange/codereview |
if I have a function like that:
void doSomething(int& aVar)
{
// do something
}
and I have this:
int *aVar = new int;
*aVar = 10;
doSomething(*aVar);
Why should I call *aVar? isn't aVar already an address?
| stackexchange/codereview |
I am having trouble with the width of the titlebar in IE7 only. The first dialog function when opened using the width: 'auto' the titlebar does not extend across the entire dialog window. The second function using minWidth works but is acting more like the width property and not growing in size with the content. Any ... | stackexchange/codereview |
I have two ajax time for my aspx web page but while the one is ticking , the other stops running. How can i make it both timer run together like the windows form?
| stackexchange/codereview |
I'm writing a Django app that uses celery. So far I've been running on Ubuntu, but I'm trying to deploy to CentOS.
Celery comes with a nice init.d script for Debian-based distributions, but it doesn't work on RedHat-based distributions like CentOS because it uses start-stop-daemon. Does anybody have an equivalent one f... | stackexchange/codereview |
Can anyone give me an example of how to use BackgroundWorker in Powershell?
I want to write something so when a new tab is selected in my Powershell GUI app, it will switch to the tab with a "please wait" message displayed, then run some checks in a BackgroundWorker thread, and then update.
Is this possible in Powershe... | stackexchange/codereview |
Can anyone direct me to a a world SVG example with mouseover highlights? I would like to find some nice examples that have a world map with details.
Many thanks.
| stackexchange/codereview |
I wish to return the following output
<a href="#"><img src="/images/icons/tick.png" alt="" />More info</a>
If i do the following the content is html encoded.
<%= Html.ActionLink("<img src='/images/icons/tick.png' />More info", "OrderRegion", "Campaign", new {id = Model.Campaign.Id}, null) %>
How can i disable the ht... | stackexchange/codereview |
i have a link on page 1 with querystring href="page2.html?selected=1".
What i want is when i click on this link on page 1 then it should navigate to page 2.html and use this querystring value to open particular jquery tab(using jquery tabs)??
Function is as follows:
$(function selectTab(indexId){
var activeTab = lo... | stackexchange/codereview |
I have two listboxes set with multiple property and on adding the items from first to second, I don't want the selection on the second listbox.
I wrote the code like this
$("#<%=lbCommcatTo.ClientID%> option").removeAttr("selected");
It worked in IE7 but not in IE6. Can anyone please give me a solution?
The html is
<... | stackexchange/codereview |
I am using Google Ad Manager to publish ads on my websites, most of my ads are flash banners which wont work on ipads so I want to custom target my ads so that they wont be displayed for ipads, but how to do this in DFP ?
I found out the user agent for ipad from here but I have no idea how to use this to target my ads.... | stackexchange/codereview |
I have an ASP.NET website with two different sections, root website and an /Admin sub-folder. I want to have two different forms authentication/login pages for them. /Admin folder should use/redirect /Admin/Login.aspx and root pages should use /Login.aspx. What should I do in web.config to accomplish this?
| stackexchange/codereview |
I am a big fan of the http://www.stripesframework.org and using it heavily for my projects. However the project seems to be dead. It is not possible to register to the website anymore (no license) and I couldnt contact any of the administrators. Also the mailing-list is not available.
Is anyone aware of the status of t... | stackexchange/codereview |
I am using Visual Paradigm for UML to model our class hierarchy. I often have the case where one of our interfaces has a method requires an implementation of another of our interfaces as parameter to a method. Example (C++, interface = abstract class):
class IFoo {
public:
virtual void bla() = 0;
};
class IBar {
p... | stackexchange/codereview |
This issue only seems to occur since I upgraded from 1.5 to 1.6
The main JFrame, randomly seems to get stuck infront of every other application in windows.
Even another JDialog popping up set to alwaysontop(true) will be behind this main JFrame.
Any ideas on what could be causing this issue? / Any ideas for solutions?
... | stackexchange/codereview |
I have a domain model that looks like this
Category 1 ------- * Type 1 ------- * Expense
Or in English "An expense has a type, and each type belongs to a category". I want to write a Criteria query that will find all expenses in a particular category. I tried both this
Expense.withCriteria {
eq('type.category', so... | stackexchange/codereview |
Hai Friends,
I have implemented tab Listener, when i am clicking on the tabs it loads the data in the list view with no problem, if i click other tab options it also load fine, again if i click the first one i am getting the following the exception in my log, i do not know why i am getting this?, so please ... | stackexchange/codereview |
I'm currently trying to use jQuery to fade a particular div which contains a few other child divs. I tought it would work but I think there is more to that... Can anyone help me out what's the best way to fade all the elements of the parent div?
Currently using the following, but only the background of the parent div... | stackexchange/codereview |
In .NET Framework, there are some classes which use SomethingCollection syntax.
For example, when dealing with SqlCommand, it has a parameter Parameters of type SqlParameterCollection. Since it does not have a form of IEnumerable<SqlParameter> (or IList<SqlParameter> or something similar), it is impossible to write:
fo... | stackexchange/codereview |
How to make JTextPane autoscroll only when scroll bar is at bottom and scroll lock is off? This shouldn't have anything to do with caret, which is what I seem to be finding all over Google. :(
| stackexchange/codereview |
So, what is this? I haven't really experienced too much as far as "hacking" goes. I've dealt and solved most problems with PHP applications and I understand about 70% of this code.
But here is what I found, a Web Shell by Boff?
My code.
| stackexchange/codereview |
I'm trying write a Ruby script that checks if user credentials are valid using an active directory server. Here's what I've tried so far:
require 'rubygems'
require 'net-ldap'
host = '10.4.1.6'
port = 389
username = 'username'
password = 'password'
ldap = Net::LDAP.new
ldap.host = host
ldap.port = port
ldap.auth "CN... | stackexchange/codereview |
I am using JSON_ENCODE in PHP to output data.
When it gets to this word: Æther it outputs \u00c6ther.
Anyone know of a way to make json output that character or am I going to have to change the text to not have that character in it?
| stackexchange/codereview |
Here's a table with a computed column in SQL Server 2005:
CREATE TABLE footable AS
[identifier] nvarchar(255) NOT NULL,
[result] AS CASE
WHEN [identifier] like '%\[%]' escape '\'
THEN LEFT( [identifier], CHARINDEX('[',[identifier]) - 1 )
END
Here's what I'm expecting:
identifier result
======... | stackexchange/codereview |
At work we have a view in SharePoint for IT service requests. I can see all the SRs assigned to me
Assigned Technician
is equal to
[Me]
and I can add conditions to see SRs for any group I specify:
Assigned Technician
is equal to
ourdomain\somegroup
What I can't figure out how to do, though, is create a view that wil... | stackexchange/codereview |
Is there a way to use ASCIIEncoding in Windows Phone 7?
Unless I'm doing something wrong Encoding.ASCII doesn't exist and I'm needing it for C# -> PHP encryption (as PHP only uses ASCII in SHA1 encryption).
Any suggestions?
| stackexchange/codereview |
I have an array:
Array (
[0] => stdClass Object (
[user_id] => 1
[ID] => 1
[user_login] => admin
[display_name] => admin
[user_email] => webbinformation@nacka.se
[meta_value] => a:1:{s:13:\"administrator\";s:1:\"1\";}
)
[1] => stdClass Object (
[user_i... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.