instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want users to be able to look up word definitions from inside my iPad App. Is there a way to access the English dictionary in iOS, the way iBooks does, or do I need to go to an outside API?
| stackexchange/codereview |
From Wikipedia, I read:
Joux[3] noted that 2-collisions lead to n-collisions: if it is feasible to find two messages with the same MD5 hash, it is effectively no more difficult to find as many messages as the attacker desires with identical MD5 hashes.
But why is this so? I can't imagine why? The algorithms are ope... | stackexchange/codereview |
I have a bit of an odd database model for a project - I'm going to have several tables with the same definition. Each table stores information for different clients and because of security restrictions, we cannot put the data together in one table. So it would look something like this...
table ClientOneData
(
Id... | stackexchange/codereview |
I'm new to cron jobs and I need to restore a database (mysql) every 30 minutes. Is there a cron job command that can restore a database from a .sql file that's been gzipped?
Or do I need to create a php script to do this and create a cron job to call this script every thirty minutes?
Also, and this is a separate questi... | stackexchange/codereview |
I have a class, say
class AddElement{
int a,b,c;
}
With methods to set/get a,b,c... My question is definitely a logic question - say I implement AddElement as follows:
int Value=1;
Value+=AddElement.get_a()+AddElement.get_b()+AddElement.get_b();
Now imagine I want to do the above except 'a,b,c' are now arrays, a... | stackexchange/codereview |
I am a novice jQuery student and need a bit of help. Is it possible for Jquery to change a <div> to an <a> dynamically depending on what the class of the <div> is? I have searched and can't find any reference to doing something like this using .add(), .append() or .html()
For example I want to change this:
"<div class... | stackexchange/codereview |
How to refresh the page using Ajax? I mean pure Ajax, without any libraries used
| stackexchange/codereview |
Is there any easy way to
profile and write out to the file what methods are slow (>1sec)
in a long lived Java application
without any expensive overhead?
With all profilers I know (YourKit, NetBeans, etc), I always have to watch the graphical monitor whether or not a problem occurs.
Instead, I just want to get a hint... | stackexchange/codereview |
I have a RelativeLayout filling the screen and a couple of ImageView positioned on it using LayoutParams margins. These ImageView are animated in different ways, and in one case I want an image to "fly in" to the screen from the right.
Unfortunately, if I set leftMargin for that ImageView greater than the width of the ... | stackexchange/codereview |
I have few doubts regarding how windows manages a .dll's memory.
when .dll's are loaded into the host
process, how is the memory managed?
Does .dll get access to the entire
memory available to the host process
or just a portion of it? i.e is
there a limitation when memory is
allocated by a function inside the
.dll?
W... | stackexchange/codereview |
Hi just need to know whether you can query the database from inside a helper class, whether you should and how you do it.
Thanks
| stackexchange/codereview |
I have a problem with my webservice! As I render xml files just like a web page, the content gets loaded very slowly... Is it possible to render the xml in a zip format?
Thanks for any hints concerning this topic!
Markus
| stackexchange/codereview |
Is there some way to make the jQuery UI tab widget tabs appear at the bottom of a page?
Using the example from the jQuery site:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>jQuery UI Tabs - Default functionality</title>
<link type="text/css" href="../../themes/base/jquery.ui.all.c... | stackexchange/codereview |
I have a grid panel having a datastore to load data. The Datastore has a asp.net webpagewith base params as the URL. Based on the querystring and baseparam values I am generating a XML string and returning the data as XMLStrilng by response.write.
But my XMLReader is not loading the data. If I save the same string as X... | stackexchange/codereview |
Im trying to redirect to another page when user hits return.But its not working:
$(function() {
$("#ctl00_ContentPlaceHolder1_txtPopCEP").keypress(function(e) {
var tecla = (e.which) ? e.which : e.keycode;
if (tecla == 13) {
e.preventDefault();
window.location.href = "http:/... | stackexchange/codereview |
Even though I set Mono to the default .NET Runtime on Windows, it insists on using Microsoft .NET framework. Can Monodevelop be configured to use the mono runtime as the runtime environment to execute itself? How and where do I configure this setting?
| stackexchange/codereview |
Basically I am poping up the following component:
PopUpManager.centerPopUp(PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false));
I need to call RegionExperienceDetailPopUp.generateData(passIntArray);
What is the syntax to do this?
| stackexchange/codereview |
Can I add a column which is I specify as NOT NULL,I don't want to specify the DEFAULT value but MS-SQL 2005 says:
ALTER TABLE only allows columns to be added that can contain nulls, or have a DEFAULT definition specified, or the column being added is an identity or timestamp column, or alternatively if none of the pre... | stackexchange/codereview |
I tried to run the following Perl script on the HTML further below. My problem is how to define the correct hash reference, with attribs that specify attributes of interest within my HTML <table> tag itself.
#!/usr/bin/perl
use strict; use warnings;
use HTML::TableExtract;
use YAML;
my $table = HTML::TableExtract->n... | stackexchange/codereview |
Perl question for you:
#!/usr/bin/perl
use File::Find;
#Find files
find(\&wanted, $dir);
sub wanted { #Do something }
#Done going through all files, do below:
other stuff { }
So, I basically want to parse a directory and find certain kinds of files. I can do that successfully with File::Find. However, my ne... | stackexchange/codereview |
I am trying to manke an Adminhtml Grid which joins a table that I made called "facility" to "customer_entity" and all of its attribtues.
I'm noticing that since my table is flat, and the model inherits fomr Mage_Core_Model_Mysql4_Collection_Abstract, I'm not able to use all the class_methods that I've seen as examples... | stackexchange/codereview |
I am interested in building my own text author identification system using C#. I am assuming that I will probably have to use some type of Bayesian Classification algorithm to accomplish this.
Does anyone know of any resources or existing libraries out there that do something similar to this?
| stackexchange/codereview |
Using Delphi 07 is it possible to (How do I) get the handle of a directory if I know its path?
| stackexchange/codereview |
PROC FCMP requires a three-level argument when specifying the output dataset in which the compiled function/subroutine should be stored.
But when using those compiled functions SAS requires a two-level argument for the global option CMPLIB.
The documentation says:
Note: Subroutine and function names must be unique wit... | stackexchange/codereview |
I need to redirect any Authenticated user to a specific page if they do not satisfy a condition.
I have implemented a base controller from which all controllers inherit. In its OnActionExecuting override I plan to perform my test for the condition and redirect to the specific action if the condition is not met.
Is t... | stackexchange/codereview |
What have been some of the most helpful resources for learning Blend from a developers perspective?
I suspect in the end we will hand off the XAML of our app to a design expert, but until that blessed day there are some things even a coding grunt should be able to manage in Blend that are painful in Visual Studio (styl... | stackexchange/codereview |
Friend's
I'm working upon searching in maps, here i have string in my array,when i enter characters for searching in Edit text box,i need the string have started with similar character in my result.
for example in my array i have String[] name ={"A","B","BB","Boys","Box"}
Initially i have all the array string ... | stackexchange/codereview |
I'm having this kind of String:
Wed Oct 27 00:00:00 EEST 2010
and I want to parse this into type Date.
I've tried with
DateTimeFormat fmt = DateTimeFormat.getFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
but it doesn't work.
Need help in getting this fixed.
Thanks.
| stackexchange/codereview |
I have a C# solution in VS2010 that contains three projects. This solution has a client project (A) and a server project (B) which both build into applications. The third project (C) is where my classes that are common to both projects go (like a utility library) and this is built into a class library, which I referenc... | stackexchange/codereview |
I'm trying to use the ToFuture with the new NH Linq 3.0 provider.
This works fine:
var result = ses.Query<Parent>()
.Where(x => x.Id == id)
.ToFutureValue();
but when I use a Fetch/FetchMany like this:
var result = ses.Query<Parent>()
.Where(x => x.Id == id)
... | stackexchange/codereview |
I have two viewControllers, one is a subclass of UIViewController (autoresizes correctly), the other one is a subclass of a subclass of UIViewController.
I did a layout in Interface Builder, I tested my code in the Simulator and everything works as expected. But if I rotate the device my views don't resize.
So I went b... | stackexchange/codereview |
Given the following code:
var myList = new List<string> { "red shirt", "blue", "green", "red" };
Regex r = new Regex("\\b(" + string.Join("|", myList.ToArray()) + ")\\b");
MatchCollection m = r.Matches("Alfred has a red shirt and blue tie");
I want the result of m to include "red shirt", "blue", "red" since all those ... | stackexchange/codereview |
I am trying to use freetts for a simple java application but i am facing a problem, can anyone tell me how can i save the output voice which is converted from text to speech into a wave file in my program. I want to do it via code.
This is the sample helloworld application which is given with the sample
/**
* Copyrigh... | stackexchange/codereview |
I'm working on a software that I would like to offer for free in charge with advertisement banners inside the application. Something like the banners in Spotify or the banner in the MS Live Messenger Contact List. Something like the iAd system that integrates in iOS-applications.
Are there any solution for this? I'm pr... | stackexchange/codereview |
On !PostBack dynamic templates are created based on the number of rows needed for check boxes. The control id's are chkbox_id. I am unable to retrieve the dynamic check boxes via the following code and NullReferenceException is always thrown.
The code before loops through the gridview rows, then datatable dt refere... | stackexchange/codereview |
I am new to iPhone developemnt.
NSString myUrl = @"www.google.com";
I need to know how to create a hyperlink for the above NSString variable.
In the MFMailComposeViewController I need to use like below
[mailViewController setMessageBody:myUrl isHTML:YES];
Please help me out.
Thanks for any help.
| stackexchange/codereview |
I've been battling with this for a while:
I've got a mysql database of events happening on various weeks. For each event there is a field with the week numbers that it is occurring as a text string.
e.g. W01-W04, W06, W08, W10
How can i convert that that to an array of values with jquery?
e.g. W01, W02, W03, W04 ect..
... | stackexchange/codereview |
I'm looking for a program, that is capable to monitor file deletions/creation/renames and issues appropriate version control commands automatically. Using bazaar and subversion. Is there any?
| stackexchange/codereview |
The fopen function returns a pointer to a FILE structure, which should be considered an opaque value, without dealing with its content or meaning.
On Windows, the C runtime is a wrapper of the Windows API, and the fopen function relies on the CreateFile function. The CreateFile function returns a HANDLE, which is used ... | stackexchange/codereview |
I want to establish a standard script file that is imported into python at startup using the PYTHONSTARTUP environment variable. Additionally, I want to be able to conveniently reload the same script file after modifying it in an external editor, to test its behavior after the modification.
I created a ~/.pythonrc.py f... | stackexchange/codereview |
In my project I have two JMS queues one data Queue and one Business queue. multiple threads reads data from those two queues and submit it to grid of multiple engines.
Grid is having multiple engines which may execute tasks in parallel both sync and async manner.
Problem statement : Events from business queue shoul... | stackexchange/codereview |
is there a way to directly select all 'inner' table cells (<td> elements) of a table (i.e. all cells except the ones in the first and last row and column) using a jquery selector expression?
| stackexchange/codereview |
Okay, I have this textfield form that contains some text.
What I need to do is to count number of characters of that particular string and print it into another textfield form, basically like this:
function numberOfCharacters() {
var number = document.forms[0].textfield1.length;
document.forms[0].textfield2.va... | stackexchange/codereview |
I'm developing the CSS file for the mobile version of the website my group are working on for our web design coursework, and I was wondering if it was possible to design a site for touch based browsers using the currently ratified specification of HTML and CSS, as the other member are doing for the desktop variant, or ... | stackexchange/codereview |
I have a URL like myApp://action/1?parameter=2&secondparameter=3
With the property query I get following part of my URL
parameter=2&secondparameter=3
Is there any way easy to put this in a NSDictionary or an Array?
Thx a lot
| stackexchange/codereview |
1>
I have folder inside folders structure.
2>
I want to recursively create shortcut to every file.
the shortcuts must be place inside the same named folders, that it is at its source.
3>
Summary: same folder structure...just shortcuts in place of files
Any ideas will be appreciated.
| stackexchange/codereview |
I need help. I am beginner in jsp, MVC. I want to validate form input with custom validator in Spring 3 MVC.
My validator class
package validators;
import models.UserModel;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validati... | stackexchange/codereview |
my problem is that TypeDescriptor doesn't return members from inherited interfaces, is this how it is supposed to be working ? or is it a bug ?
[TestFixture]
public class DescriptorTests
{
[Test]
public void Test()
{
//... | stackexchange/codereview |
Currently, I plan to remove all items from vector, which is not found in a set.
For example :
#include <vector>
#include <set>
#include <string>
#include <iostream>
using namespace std;
int main() {
std::set<string> erase_if_not_found;
erase_if_not_found.insert("a");
erase_if_not_found.insert("b");
er... | stackexchange/codereview |
I have built a basic calendar event using DDay.iCal, when I click "Add to calendar" link I produce an event and then sends this to the client.
Basically, my application works like this.
A User logs in.
Selects a specific date.
Books a specific timeslot
Clicks the "Add to calendar" link
Sending the event is done by us... | stackexchange/codereview |
I just want to put an Image on a screen given the X and Y.
| stackexchange/codereview |
I spend some hours to set up my IDE to debug PHP with eclipse and xdebug.. Everything is ok except the breakpoint I set on eclipse. If I double-click on a line to add a breakpoint, the debugger want not to stop.. If a add the line xdebug_break() the debugger stops well at the line...
It's maybe a problem with the confi... | stackexchange/codereview |
PackageManager pm = this.getPackageManager();
ActivityManager am = (ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);
List<RunningAppProcessInfo> runningAppProcesses = am.getRunningAppProcesses();
for(RunningAppProcessInfo process : runningAppProcesses) {
try {
ApplicationInfo ai = pm.getA... | stackexchange/codereview |
I have an image button and when I click it I want an specific field to go from text to an editable textfield, kinda like a dynamic edit button.
So I have the plain text with certain id (ie. id="text1") and when I click the button, the text changes to an editable field, maybe something like $("#text1").hide(); and then... | stackexchange/codereview |
I'm trying to fix a long standing bug in our rich GUI web app. It is a GET being executed out of place without query string parameters, causing uncaught exception on the business layer on the server due to missing parameters, returned as an error page.
Environment: jQuery (UI) + DWR (allow Java and JS to call each othe... | stackexchange/codereview |
I have an object A1 of type A. I dynamically find that out , that object A1 is of type A. I now have a property say "Name" which I want to access from A1 , how do I do it ?
Now the biggest problem is that the object A1 can even be of type B. If it is of type B then I will have to obtain the value "Address". Now How I ... | stackexchange/codereview |
I am using Groovy's handy MarkupBuilder to build an HTML page from various source data.
One thing I am struggling to do nicely is build an HTML table and apply different style classes to the first and last rows. This is probably best illustrated with an example...
table() {
thead() {
tr(){
th('class':'l na... | stackexchange/codereview |
I have class that predominately consists of gather string input and then subsequently outputting the data in a certain format. The result of the class is basically a ToString() override.
With my class I have a static method string Print(string path) that reads the inputs from a flat file. It then parses these inputs ... | stackexchange/codereview |
Seems like it would be a good way to introduce some people to unit testing.
| stackexchange/codereview |
Just a simple question: in a single-task system OS copies smt to memory and then 'goes to' somewhere there and program returns control to task manager later. But in multitasking OS we just make a few steps inside the process and than return to task manager waiting for own turn. How do we 'go to task manager' without 'g... | stackexchange/codereview |
So I'm trying to write a javascript plugin that involves the editing of XML files in a user friendly fashion. The goal is to receive an XML string representing an object, dynamically generate an HTML form to edit the XML values, then save the changes back into the XML string.
Granted this function is generic and useful... | stackexchange/codereview |
I'm trying to piece out how difficult it would be to set up an email server that will accept a URL as the subject of an email and respond with an attached copy of said webpage, or element(s) of that webpage (ie, an image from the page, or all of the videos on the page).
I don't necessarily need the code written for me,... | stackexchange/codereview |
How do I disable row selection in an Ext.JS grid?
| stackexchange/codereview |
If I have the following setup, how can I configure my container to use the same database, when objects are created in the same context
public class Database { }
public interface IRepository { Database Database { get; } }
public interface IFooRepository : IRepository { }
public interface IBarRepository : IRepository { }... | stackexchange/codereview |
I'm executing the following command,
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean \
org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
My all the dependencies are coming in classpath but AspectJ is not added to the classpath. I have them declared in pom.xml dependencies list
Where as it is w... | stackexchange/codereview |
In my web app while creating a particular item users can browse and add images.I want to store these images in CVS.Any idea on how to do it??
| stackexchange/codereview |
I understand it's an inside joke that's meant to stay (just like “from __future__ import braces”), but what exactly does it do?
| stackexchange/codereview |
In my webapp I'm using HTTP Location: headers for redirect (e.g. POST/redirect/GET). But the target locations have to be dynamic (e.g. login.php?dest=pagexy.php). We all know that any user-modifiable input has to be properly escaped to prevent XSS, so
header('Location: '.$_REQUEST['dest']);
looks wrong. Simple urlenc... | stackexchange/codereview |
Hello I need help with displaying data from 2 table.
So i Have 2 models:
//Klasy.php
class Model_Klasy extends Zend_Db_Table_Abstract
{
protected $_name = 'klasy';
protected $_primary = 'id';
protected $_referenceMap = array(
'Nauczyciele' => array(
'columns' => array('Wychowawca'),
... | stackexchange/codereview |
In ASP.net what's the best way I can parse a string to determine if it's a valid URL?
| stackexchange/codereview |
1 naga naga123
2 Tamil tamil123
3 vinod vinod123
4 naveen naveen123
5 jakkir jakkir123
save edit delete
UserID:
UserName:
Password:
I have check box at the end of each row. When I click the check box and select edit the values should get displayed in the text boxes corresp... | stackexchange/codereview |
Is there any way to compare such strings on bash, e.g.: 2.4.5 and 2.8 and 2.4.5.1?
| stackexchange/codereview |
I store all audios to a MPMediaItemCollection. Later, I hope to clear all items in the MpMediaItemCollection.
Is it possible to clear MPMediaItemCollection using codes?
Thanks
interdev
| stackexchange/codereview |
I need to add a simple loading animation on top a my view..and want it to be in the center of screen(visible aria)..can anybody point me to the right direction.?
how to get the center of the window so that i can addSubview..?
| stackexchange/codereview |
I have just installed XCode 3.1.4. I cannot see the ViewBased Application template when i try to create a View Based application for the iPhone. In fact i cannot see an iPhoneOS there at all. All i can see is Mac OS X.
Do i have to install iPhone OS separately? Thank you
| stackexchange/codereview |
Hi
I embedded the mongoose web server in my application it just showing bunch of web pages
I opening port on localhost , but its mean I can send request from any ware in the network , this is something I like to prevent
Is there any way to tell the web server to Accept request only from the host application?
| stackexchange/codereview |
Given that:
The shape is a regular polygon in 3D space
The start point (the end of one arbitrary vertex of the shape) is known
the point in the middle of the shape (not on an edge - equidistant from all corners) is known
the angle at each corner (((numEdges-2)*PI)/numEdges), the radius of the shape (distance from a c... | stackexchange/codereview |
In the following example, there are two Grid rows with height of 6* and 4*. The problem is that only after the user changes the the size of the window, the correct height of the rows is calculated.
This only happens when the SizeToContent flag is set.
Any ideas why? How can I force the window to calculate the height a... | stackexchange/codereview |
Trying to follow the guide here, but it's not working as expected. I'm sure I'm missing something.
http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files
file = open("C:/Test.txt", "r");
print file
file.read()
file.read()
file.read()
file.read()
file.read()
file.read()
Using the readline() method g... | stackexchange/codereview |
I would like to detect that my assembly is loaded in SQL Hosted CLR at runtime in order to safely process the AppDomain FriendlyName string.
Unfortunately, AppDomain.CurrentDomain.DomainManager.EntryAssembly is null in this context.
Any help appreciated.
TIA.
| stackexchange/codereview |
I want to select certain amount of data from one table. Based on those data, I want to check another two tables and insert into 2 tables.
So I want to iterate the resulted data. Which way is better(faster) and reasonable using DataReader or DataTable?
Thanks in advance
RedsDevils
| stackexchange/codereview |
I need to find and replace substring with dot in it. It's important to keep search strict to word boundaries (\b). Here's an example script to reproduce (i need to match "test."):
<?php
# 1.php
$string = 'test. lorem ipsum';
if(!preg_match('~\btest\.\b~i', $string)) echo 'no match 1' . PHP_EOL;
if(!preg_match('~\btest\... | stackexchange/codereview |
I'm using the AsyncDelegateCommand class from this blog post but I'm having trouble knowing what to do with exceptions that occur in my action delegate. I create the following command:
new AsyncDelegateCommand(
readFile, // action to perform
() => shouldReadFile, // can the action be executed?
obj => readF... | stackexchange/codereview |
I need to write a fairly simple Delivery Tracking application. The device needs to know information about the 'matters' such as status (delivered/awaiting delivery), type (for delivery/for pickup), address, payment accepted etc.
The iPhone part of the app seems very simple but in terms of hosting some kind of web serv... | stackexchange/codereview |
I have a WCF service, which works with sockets async, I have some performance issue so I decided to refactor the code, I read some articles about the ease of use of F# for async and multi threading and so on, but i want to know I'll gain a better performance to use F# parallelism? and its easy compatible with WCF servi... | stackexchange/codereview |
I have a regex that I thought was working correctly until now. I need to match on an optional character. It may be there or it may not.
Here are two strings. The top string is matched while the lower is not. The absence of a single letter in the lower string is what is making it fail.
I'd like to get the single letter ... | stackexchange/codereview |
javax.activation cannot be resolved, why?
| stackexchange/codereview |
I need to alter a macro the way that a parameter can be passed to control the max size of the result set.
My idea was this SQL:
REPLACE MACRO myMacro
( maxRows INTEGER DEFAULT 100 )
AS
(
SELECT TOP :maxRows
FROM myTable;
);
But all I get is the message:
[SQLState 42000] Syntax error,Expected something like an... | stackexchange/codereview |
Does anyone know if it is possible to take the date from a random date in pl sql.
example.
SELECT SYSDATE FROM DUAL
and here the output would be say : 26-10-2010 13:30:34
Now I want to have just the date as a number. In this case that would be 26.
Or is there some sort of function like IsNum that can recognize it... | stackexchange/codereview |
I have successfully created video from images using the following code
-(void)writeImageAsMovie:(NSArray *)array toPath:(NSString*)path size:(CGSize)size duration:(int)duration
{
NSError *error = nil;
AVAssetWriter *videoWriter = [[AVAssetWriter alloc] initWithURL:
[NSURL file... | stackexchange/codereview |
The Android app EULA has to be part of the app and is generated using the eula class. It appears to be USA specific. Is there a way to automatically generate country-specific EULAs in Android?
On the iPhone, iTunes does this automatically.
Has anyone had any experience in this area?
| stackexchange/codereview |
How do I sort the inner collection of an object returned by the entity framework?
public class X
{
public string Field {get; set;}
public EntityCollection<Y> Ys {get; set;}
}
public class Y
{
public string Field {get; set;}
}
from x in entities.Xs
orderby x.Field
select x
Is there a way to modify this LINQ ... | stackexchange/codereview |
I am new to Rails and I am reading Sitepoint's Simply Rails 2 but I am using Rails 3.0.0. In the book we had just set up our first controller (StoriesController) and fired up the server and typed in http://localhost:3000/stories and it should have displayed the index.html.erb file but instead when I type in that url I ... | stackexchange/codereview |
When you put this in your browser it opens a simple notepad to type in.
I don't know enough about javascript to alter it but I would like to make it so it DOESN'T open in a new window but rather in the current window or another tab.
Is this even possible?
javascript:pwin=window.open('','_blank','menubar=yes,scrollbars=... | stackexchange/codereview |
I have a large XML document in Xml column within SQL Server. I need to basically perform a free text search across the elements in the document.
Would you use
A) SQL Free Text Search
B) A stored procedure that traverses the XML and checks each value of each element
C) Use Lucene.NET to build an Index on the fly and s... | stackexchange/codereview |
For a few days now I have been trying to get an ASMX webservice to work via jQuery.
Heres my code
<script type="text/javascript">
$(document).ready(function () {
$("#btnTest").click(function () {
$.ajax({
type: "POST",
url: "/WebService.asmx/HelloWorld",
... | stackexchange/codereview |
Dear all,
as MooTools 1.3 is out now, i´m going to update some scripts. BindWithEvent is now deprecated and has to be replaced, but how?
See this:
new Element('div', [.....]).addEvent('click',this.close.bindWithEvent(this,true));
I´m quite sure it has to be some sort of a function
new Element('div', [.....]).addEvent(... | stackexchange/codereview |
I want to convert the name "JOHN DOE-SMITH" to "John Doe-Smith" using the code:
name = "JOHN DOE-SMITH"
name_split = name.split(/\s/)
name_split.each do |x|
if x =~ /-/
name1, name2 = x.split(/-/)
x = name1.capitalize + "-" + name2.capitalize
else
x.capitalize!
end
end
puts name_sp... | stackexchange/codereview |
I'm trying to get a video (flv) or an swf video player to work on Facebook walls, however no matter what I do - facebook posts the raw fbml and ignores the code. What am I doing wrong?
<fb:swf
swfsrc='http://www.domain.com/flv_player/Main.swf'
imgsrc='http://www.domain.com/large1.jpg'
allowscriptaccess=”... | stackexchange/codereview |
I was wondering if it is possible that a big number modulo a small integer in Openssl?
Say I generate two big prime numbers:
BN_generate_prime(p,512,0,0,0,0,0);
BN_generate_prime(q,512,0,0,0,0,0);
and calculate the product N:
BN_mul(N,p,q,ctx);
I would like to test if N is a "Blum integer" (N mod 4==3), however I can... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.