text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
'3' (length=1)
'post' => string 'this is a post' (length=14)
'created' => string '2012-04-05 20:11:38' (length=19)
1 =>
array
'post_id' => string '2' (length=1)
'user_id' => string '2' (length=1)
'post' => string 'this is a post' (length=14) | [
0.23117244243621826,
0.20797085762023926,
0.40626776218414307,
-0.2373981773853302,
-0.3198339641094208,
0.18261681497097015,
0.4306543469429016,
-0.5900343060493469,
-0.15178325772285461,
-0.5111830830574036,
-0.18683965504169464,
-0.14910157024860382,
-0.4447404444217682,
0.2851066291332... | |
'created' => string '2012-04-05 20:11:38' (length=19)
2 =>
array
'post_id' => string '3' (length=1)
'user_id' => string '5' (length=1)
'post' => string 'this is a post' (length=14)
'created' => string '2012-04-05 20:11:38' (length=19)
```
Try this:
```
<?php
$a=ar... | [
0.10912420600652695,
0.15372833609580994,
0.30415308475494385,
-0.08972106128931046,
-0.22789925336837769,
0.11998017877340317,
0.269442617893219,
-0.24379947781562805,
-0.270059734582901,
-0.4869028925895691,
-0.0787084773182869,
-0.28257033228874207,
-0.3166710138320923,
0.47484967112541... | |
array(
'post_id' => '1',
'user_id' => '3',
'post' => 'this is a post',
'created' => '2012-04-05 20:11:40'
),
1 =>
array(
'post_id' => '2',
'user_id' | [
0.07773493230342865,
0.15001757442951202,
0.409181147813797,
0.01300680823624134,
-0.13493214547634125,
0.3257901668548584,
0.21940475702285767,
-0.37352243065834045,
-0.005500130355358124,
-0.7097196578979492,
-0.2464984953403473,
-0.1456359475851059,
-0.23404818773269653,
0.1769886612892... | |
=> '2',
'post' => 'this is a post',
'created' => '2012-04-05 20:11:39'
),
2 =>
array(
'post_id' => '3',
'user_id' => '5',
'post' => 'this is a post', | [
0.16663850843906403,
0.160688117146492,
0.4622242748737335,
0.044305574148893356,
-0.1203015074133873,
0.3293386399745941,
0.3796459436416626,
-0.2290700227022171,
-0.07337849587202072,
-0.771028459072113,
-0.3390180170536041,
-0.22205181419849396,
-0.21535155177116394,
0.3422764539718628,... | |
'created' => '2012-04-05 20:11:38'
)
);
function cmp($a,$b){
return strtotime($a['created'])<strtotime($b['created'])?1:-1;
};
uasort($a,'cmp');
print_r($a);
?>
``` | [
0.28658556938171387,
0.12974049150943756,
0.2481493502855301,
-0.13419979810714722,
0.18873699009418488,
0.5288453698158264,
0.26306581497192383,
-0.08520490676164627,
-0.26736199855804443,
-0.6013796925544739,
-0.45729395747184753,
0.18674160540103912,
-0.3477253317832947,
0.5839561223983... | |
To simplify the situation, lets say that there are 2 files: `core.cpp` and `main.cpp`.
`core.cpp` contains the functionality of the program and `main.cpp` contains the basic `main()` implementation.
I want Qt (using qmake and the .pro files) to
* first build `core.a` and then
* use that and `main.cpp` to build `m... | [
-0.07721808552742004,
0.2826359272003174,
0.2693624496459961,
-0.11161407083272934,
0.24699857831001282,
0.362481951713562,
0.170331671833992,
-0.19253095984458923,
-0.18947862088680267,
-0.481925368309021,
-0.3041374981403351,
0.21747605502605438,
-0.3130034804344177,
0.1813344657421112,
... | |
app
app.depends = core
```
core.pro:
```
TEMPLATE = lib
CONFIG += staticlib
HEADERS = core.h
SOURCES = core.cpp
```
app.pro:
```
TEMPLATE = app
SOURCES = main.cpp
LIBS += -L../core -lcore
TARGET = ../app-exe # move executable one dire up
``` | [
-0.1692218780517578,
0.0776948630809784,
0.5468247532844543,
-0.29818984866142273,
0.09729621559381485,
0.6660261750221252,
0.013690277002751827,
-0.260180801153183,
-0.20214390754699707,
-0.827495813369751,
-0.4290223717689514,
0.514803946018219,
-0.7985716462135315,
-0.3709737956523895,
... | |
I have a strong use case for pre-allocating all the memory I need upfront and releasing it upon completion.
I have came out with this real simple buffer pool C++ implementation which I have to test but I am not sure that the pointer arithmetic I am trying to use will allow me to do that. Basically the bit where I do ... | [
0.5807307362556458,
0.09620779752731323,
0.18781645596027374,
-0.2460644394159317,
0.2461504340171814,
0.07754997164011002,
0.027980521321296692,
-0.10745201259851456,
-0.10276376456022263,
-0.6831293702125549,
-0.08055076003074646,
0.7423103451728821,
-0.5545555353164673,
0.11789611726999... | |
const int m_initial;
const int m_size;
const int m_total;
T* m_buffer;
vector<T*> m_queue;
public:
// constructor
tbufferpool(int initial, int size) : m_initial(initial), m_size(size), m_total(initial*size*sizeof(T)) {
m_buffer = (T*) malloc(m_total);
T* next_buffer = m_b... | [
-0.43906792998313904,
-0.43972840905189514,
0.3565984070301056,
-0.29243922233581543,
0.410027414560318,
0.5978180766105652,
0.03155812993645668,
-0.23308657109737396,
-0.3903597891330719,
-0.4720465838909149,
-0.4445544481277466,
0.5957822203636169,
-0.3643198609352112,
0.0954682901501655... | |
m_queue.push_back(next_buffer);
}
}
// get next buffer element from the pool
T* next() {
// check for pool overflow
if (m_queue.empty()) {
printf("Illegal bufferpool state, our bufferpool has %d buffers only.", m_initial);
exit(EXIT_FAILURE);
} | [
-0.23465324938297272,
-0.3661009967327118,
0.359022855758667,
-0.3070910573005676,
0.6461844444274902,
0.12572404742240906,
0.30091917514801025,
-0.23484395444393158,
-0.29020488262176514,
-0.5619851350784302,
-0.2938292324542999,
0.5027768015861511,
-0.3356064558029175,
0.2099079489707946... | |
T* next_buffer = m_queue.back();
m_queue.pop_back();
return next_buffer;
}
// release element, make it available back in the pool
void release(T* buffer) {
assert(m_buffer <= buffer && buffer < (buffer + m_total/sizeof(T)));
m_queue.push_back(buffer);
}
void ensure... | [
0.08342161029577255,
-0.4473794400691986,
0.5876572132110596,
-0.4867413640022278,
0.5529859066009521,
-0.04581703618168831,
-0.05420640483498573,
-0.37405622005462646,
-0.2638511657714844,
-0.3828863203525543,
-0.46827802062034607,
0.575901448726654,
-0.32187145948410034,
0.19429282844066... | |
printf("Illegal bufferpool state, maximum buffer size is %d.", m_size);
exit(EXIT_FAILURE);
}
}
// destructor
virtual ~tbufferpool() {
free(m_buffer);
}
};
```
First, when you increase a pointer to T, it will point the next element of T in the memory.
```
m_queue.push(m_bu... | [
-0.10191548615694046,
-0.42098820209503174,
0.5241736173629761,
-0.4703933298587799,
0.4058552086353302,
0.2627955675125122,
0.32062992453575134,
-0.316533625125885,
-0.3567116856575012,
-0.6451123952865601,
-0.4108259677886963,
0.6897397041320801,
-0.4029723107814789,
0.12555216252803802,... | |
m_queue.push(next++);
}
```
Second,
```
assert(m_buffer <= buffer && buffer < m_total);
```
It should be like
```
assert(m_buffer <= buffer && buffer <= m_buffer + m_total/sizeof(T));
```
Hope it helps! | [
-0.057214800268411636,
-0.4770740866661072,
0.7425647377967834,
-0.44319114089012146,
0.258176326751709,
0.09685437381267548,
0.38397616147994995,
-0.22213023900985718,
-0.3310578167438507,
-0.4930269718170166,
-0.19541212916374207,
0.6710698008537292,
-0.3389708399772644,
-0.0145799685269... | |
How to make the following method more functional-linq-style?
```
public static Dictionary<T, T> MergeDict<T, T>(Dictionary<T, T> a, Dictionary<T, T> b)
{
var e = new Dictionary<T, T>();
a.Concat(b).ToList().ForEach(pair =>
{
e[pair.Key] = pair.Value;
});
re... | [
0.2685038447380066,
0.060070447623729706,
0.3579362630844116,
0.07445397228002548,
0.16231657564640045,
0.11426208168268204,
0.00760641461238265,
-0.3954618275165558,
-0.25754961371421814,
-0.6982443928718567,
-0.17682263255119324,
0.5308433771133423,
-0.6561060547828674,
0.279018223285675... | |
take a winning item in the group (such as the Last one).
```
first.Concat(second)
.GroupBy(kvp => kvp.Key, kvp => kvp.Value)
.ToDictionary(g => g.Key, g => g.Last());
``` | [
-0.4898640215396881,
-0.350247323513031,
0.38475605845451355,
-0.2459871470928192,
-0.08949858695268631,
0.09395486861467361,
0.10416118055582047,
-0.39242491126060486,
-0.17517508566379547,
-0.3057624399662018,
-0.6253822445869446,
0.45918381214141846,
-0.41206109523773193,
0.023465776816... | |
Hi can someone explain if the in the following code the synchronized code will restrict access to the threads. If yes how is it different from, if we have used "this" as a monitor object instead of "msg".
```
public void display(String msg)
{
synchronized(msg)
{
for(int i=1;i<=20;i++) ... | [
0.267569363117218,
-0.46325644850730896,
0.7399803400039673,
-0.17723822593688965,
0.03386695683002472,
-0.03626086562871933,
0.2005804032087326,
-0.27559176087379456,
-0.3365234136581421,
-0.3726375699043274,
0.007610217202454805,
0.3403191864490509,
-0.7230358719825745,
0.391559749841690... | |
System.out.println("Name= "+msg);
}
}
}
```
The method you wrote will block only if two threads will invoke this method with the exact same *msg* object.
If you synchronize on *this* then it only one thread will be able to invoke the method at a given time. | [
0.0699460357427597,
-0.14716693758964539,
0.35723111033439636,
0.02368721179664135,
0.017609629780054092,
-0.03152061998844147,
0.4445527195930481,
-0.052926331758499146,
-0.17012281715869904,
-0.699687659740448,
0.04026229679584503,
0.25298428535461426,
-0.6788656115531921,
0.285269051790... | |
I have a number of simple controller classes that use Doctrine's entity manager to retrieve data and pass it to a view.
```
public function indexAction() {
$pages = $this->em->getRepository('Model_Page')->findAll();
$this->view->pages = $pages;
}
```
**What exactly should we be testing here?**
* I could te... | [
0.4720380902290344,
0.09342262893915176,
0.3659103810787201,
0.45275449752807617,
-0.06314407289028168,
-0.2203781008720398,
0.34720295667648315,
-0.36167335510253906,
-0.06073059141635895,
-0.692193865776062,
-0.08042121678590775,
0.7993742227554321,
0.060660719871520996,
-0.0398404970765... | |
back to the question of
> What should we be testing as part of controller tests?
Controller holds core logic for your application. Though simple "index" controller actions don't have any specific functions, those that verify/actively use data and generate viewmodels have pretty much the most functionality of the syst... | [
0.23945072293281555,
-0.2351222187280655,
0.3360308110713959,
0.45535266399383545,
-0.24495425820350647,
-0.4721009433269501,
0.22089999914169312,
-0.31032928824424744,
-0.013796447776257992,
-0.6483587622642517,
0.022454923018813133,
0.4852127432823181,
-0.1181882917881012,
0.182381480932... | |
found in db.
These three types of outputs make perfect test cases. You should validate that correct viewmodels/views are being sent back to the client with the appropriate actions.
You shouldn't look at a controller like at something mysterious. It's just another code piece, and it's tested as any other code - any co... | [
0.20608121156692505,
-0.1464620679616928,
0.03443262726068497,
0.28537777066230774,
-0.5114848017692566,
-0.24718570709228516,
0.016640784218907356,
-0.09671146422624588,
-0.0911065936088562,
-0.541228711605072,
0.11328954249620438,
0.5712787508964539,
-0.26204976439476013,
0.1944594532251... | |
I am developing several AudioEffect subclasses that are being compiled into Android 4.0.3 ICS... I am trying to dump raw PCM data to files, but because the AudioEffects run in the context of the mediaserver process it seems there is no file writing permissions available.
```
fopen("/data/local/tmp/pcm_in.pcm", "w");
... | [
0.18300165235996246,
0.3286856710910797,
0.5778951644897461,
0.03842819854617119,
-0.07007373124361038,
-0.38633808493614197,
0.183891162276268,
0.009538102895021439,
0.1049804612994194,
-0.6209853887557983,
-0.20158183574676514,
0.8561035394668579,
-0.36314988136291504,
0.4691918492317199... | |
before that equals sign, e.g:
```
preg_match_all(
"/^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/",
$str,
$match
);
```
"/" is the delimiter for the whole expression, so it must be escaped in the regex itself | [
-0.2463216930627823,
-0.023092757910490036,
0.4531143009662628,
-0.42441442608833313,
-0.07697905600070953,
0.014252068474888802,
0.3672811686992645,
-0.14331784844398499,
0.2218542993068695,
-0.2614390254020691,
-0.442359060049057,
0.732713520526886,
-0.48630014061927795,
-0.0870161876082... | |
I currently have a basic chat program in c++ that uses WinSock2.h with UDP. Currently the user is able to send a message to the server and the server just sends the same message back. I was wondering where do I go from here (i'm not asking for code). I was wondering how I should go forward in having the messages get se... | [
0.2231713831424713,
0.15892547369003296,
0.23249541223049164,
0.18053486943244934,
-0.10586056113243103,
-0.20742474496364594,
0.31161731481552124,
0.31967049837112427,
-0.13402977585792542,
-0.7794412970542908,
0.0038135068025439978,
0.42545923590660095,
0.021138520911335945,
0.4734320044... | |
user sends a message, it would then post it to all connected users.
Your server would keep track of who is connected, and remove those who get disconnected. When someone connect or disconnects, it would send a notification to all currently connected users, telling them of this notification.
All this is not specific t... | [
0.035053104162216187,
-0.35174456238746643,
0.48447147011756897,
0.06367646902799606,
-0.14277687668800354,
-0.24770250916481018,
0.016888806596398354,
0.08155333250761032,
-0.5128334760665894,
-0.6584677696228027,
-0.1687830537557602,
0.3223010301589966,
-0.42346230149269104,
0.1589209437... | |
I need to get some data from a column.
For example I have data in a column like peter@msn.com. I want to get msn.com.
How I can I get that?
try this:
```
DECLARE @a VARCHAR(100) = 'peter@msn.com'
SELECT RIGHT(@a, LEN(@a) - CHARINDEX('@', @a))
``` | [
0.1523437649011612,
0.2458013892173767,
0.5357551574707031,
-0.17237643897533417,
0.26515206694602966,
0.24863296747207642,
0.1685585081577301,
-0.09241926670074463,
-0.08330440521240234,
-0.47583332657814026,
0.23798039555549622,
0.40857064723968506,
-0.09814200550317764,
0.23411370813846... | |
I get this error in xml file very often.
here is the code in xml file
```
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_centerHorizontal="true"
android:layout_above="@id/tRowMain" // in t... | [
0.15158435702323914,
0.03175360709428787,
0.5837693810462952,
-0.2004242092370987,
0.24976007640361786,
0.06924638152122498,
0.44593966007232666,
0.011884224601089954,
-0.018113136291503906,
-0.6327624320983887,
0.06136157736182213,
0.6278080940246582,
-0.12452360987663269,
0.2382018566131... | |
/>
<TableRow android:layout_width="fill_parent" android:id="@+id/tRowMain"
android:layout_height="wrap_content" android:gravity="center" android:layout_centerVertical="true" android:layout_centerHorizontal="true" >
```
//then i checked in R.java file and the id for this name is there
```
public static ... | [
-0.0397472158074379,
0.11985471844673157,
0.8786855340003967,
0.024663493037223816,
0.13654448091983795,
0.09000913053750992,
-0.07858601212501526,
-0.42929866909980774,
-0.07580564171075821,
-0.5695897936820984,
-0.04756549000740051,
0.39984506368637085,
0.048839498311281204,
0.2723213732... | |
place the ID is used, not necessarily the first place where you define it as the ID of the element.
Change:
`android:layout_above="@id/tRowMain"` to `android:layout_above="@+id/tRowMain"`
and
`android:id="@+id/tRowMain"` to `android:id="@id/tRowMain`
In other words, when deciding whether or not to use `@+id` or ... | [
0.23239746689796448,
0.006353817414492369,
0.07483313232660294,
-0.056380096822977066,
0.2966444194316864,
-0.09383957087993622,
-0.3344806432723999,
-0.26116201281547546,
0.13320571184158325,
-0.6943820714950562,
-0.24113889038562775,
0.06396286934614182,
-0.007556161843240261,
0.19598178... | |
Please explain why dictionary's 'getAt' method fails
```
List<BString> infoKeys = new List<BString>(infoDict.Keys);
if (infoKeys.Contains(TorrentFileKeyWords.FILES_KEY) == true) //"files"
{
List<BaseType> multiFiles = ((BList)dict[TorrentFileKeyWords.FILES_KEY]).Value; <<< this fails
```
So infoDict is a... | [
0.3832870423793793,
0.05353225767612457,
0.4060225784778595,
-0.049019671976566315,
-0.19186599552631378,
-0.2298106998205185,
0.3772309124469757,
-0.4394421875476837,
-0.18181908130645752,
-0.7181700468063354,
-0.15182478725910187,
0.6679054498672485,
-0.4558027684688568,
0.29662713408470... | |
the keys of `infoDict` rather than just calling `ContainsKey`, or (better) using `TryGetValue` to start with. Additionally, I would advise *against* a "B" prefix for your type names. | [
0.43935826420783997,
0.05540613830089569,
-0.011626451276242733,
0.11158312857151031,
0.04172176495194435,
-0.23494014143943787,
0.18557798862457275,
0.12242231518030167,
-0.013981974683701992,
-0.44247186183929443,
-0.2071043848991394,
0.32811111211776733,
-0.44279101490974426,
0.32064270... | |
I do open large files with fopen under c with a kind-of observed folder logic.
I'd like to fopen (or at least to fread) the file as soon as it has been copied completely to my observed folder.
How can i detect if another process is writing to a file?
Is that possible with standard-c?
Thanks
There's no way to do it wi... | [
0.4910859167575836,
0.2312484085559845,
0.4244140386581421,
0.0033113628160208464,
0.07215414941310883,
-0.20968753099441528,
0.2281913459300995,
0.31847044825553894,
-0.48852092027664185,
-0.7440143823623657,
-0.1492854505777359,
0.4863273799419403,
0.1600126028060913,
0.10303938388824463... | |
watching the end of file seek pointer to see when it stops moving, but for large files (size greater than what will fit in a signed long) the POSIX function ftello() is required to do it portably. | [
0.011848419904708862,
-0.3704044222831726,
0.6389287114143372,
-0.30780473351478577,
0.43401554226875305,
-0.20987467467784882,
-0.19708621501922607,
-0.1693793088197708,
-0.3040120303630829,
-0.44839203357696533,
-0.3073609471321106,
0.7853213548660278,
-0.3393875062465668,
-0.19066308438... | |
So I have a local SQLite table "breadcrumbs" being created on the Android device. How do I go about getting that table's data to store in another external SQL Server database table?
Just echo the `$GLOBALS` variable and you might find where it came from if the array was **not** unset. | [
0.18135975301265717,
0.3829585313796997,
0.16876041889190674,
0.14328432083129883,
0.2707034647464752,
0.30736538767814636,
0.1395653933286667,
0.4348393678665161,
-0.30267134308815,
-0.824585497379303,
0.18090182542800903,
0.43272146582603455,
-0.24853824079036713,
0.1812339425086975,
0... | |
I'm designing a player application to accompany our phone system. As our calltakers take calls, it makes recordings of each call. They can go to a list module, find a recording and double click, which opens my player. The issue i have is that if the calltaker gets another call, my player doesn't know it and will contin... | [
0.027792619541287422,
0.08551640063524246,
0.17788362503051758,
-0.03416840732097626,
0.2219957709312439,
-0.11411582678556442,
0.06332773715257645,
0.01538990717381239,
-0.0358307845890522,
-0.32733872532844543,
0.22084403038024902,
0.6604518294334412,
-0.45063674449920654,
0.343222618103... | |
so I have to try it another way.
The screen resolution never changes and the queue buttons where they receive calls will always be static. When they get a call, a small area changes from the background color blue to yellow or red to indicate a call.
Any suggestions?
\*\*EDIT
Final Code based on answers below and q... | [
0.19698983430862427,
-0.29914578795433044,
0.6933107972145081,
-0.30289363861083984,
0.053368471562862396,
0.00879922229796648,
0.38055044412612915,
0.004394643008708954,
-0.26831841468811035,
-0.428128719329834,
-0.12555894255638123,
0.37553030252456665,
-0.33332595229148865,
0.2528918683... | |
Dim queue2 As Integer = GetPixel(hDC, 140, 573)
Dim queue3 As Integer = GetPixel(hDC, 240, 573)
Dim queue4 As Integer = GetPixel(hDC, 340, 573)
Dim queue5 As Integer = GetPixel(hDC, 440, 573)
If queue1 <> 9990727 Then
lblRinger.Text = "In Calls GOT CALL"
Return T... | [
0.11172619462013245,
-0.5659974813461304,
0.8386425971984863,
-0.22702960669994354,
-0.011693284846842289,
0.2879463732242584,
0.32125771045684814,
0.061165302991867065,
-0.47422486543655396,
-0.15917225182056427,
-0.2964553236961365,
0.5640888810157776,
-0.5251393914222717,
0.228008404374... | |
ElseIf queue2 <> 9990727 Then
lblRinger.Text = "Admin GOT CALL"
Return True
ElseIf queue3 <> 9990727 Then
lblRinger.Text = "Overflow GOT CALL"
Return True
ElseIf queue4 <> 9990727 Then | [
-0.23334603011608124,
-0.07750657945871353,
0.7258730530738831,
-0.2605968117713928,
-0.08320370316505432,
0.40652045607566833,
0.18655583262443542,
-0.20887444913387299,
-0.1615782231092453,
-0.30051201581954956,
-0.0754731073975563,
0.5625792741775513,
-0.5808383822441101,
-0.06121206283... | |
lblRinger.Text = "Bi-Lingual GOT CALL"
Return True
ElseIf queue5 <> 9990727 Then
lblRinger.Text = "Intercom GOT CALL"
Return True
Else
lblRinger.Text = "No Call"
Return False | [
0.13474388420581818,
-0.19202129542827606,
0.5128791332244873,
-0.14474192261695862,
-0.2050374150276184,
0.20762373507022858,
0.707415759563446,
-0.2515377700328827,
-0.29602792859077454,
-0.2202528715133667,
-0.4586479663848877,
0.7253596186637878,
-0.7578099370002747,
-0.088879555463790... | |
End If
Catch ex As Exception
Return False
Finally
ReleaseDC(0, hDC)
End Try
End Function
```
Looks like you pasted in the ld db code...
Anyway, see these docs: <https://developers.google.com/appengine/docs/python/ndb/subclassprop>
You want to use \_to\_base\_type() and \_from\_base\_typ... | [
0.10473839938640594,
-0.07234370708465576,
0.48309463262557983,
-0.3238050043582916,
0.11260758340358734,
-0.39128708839416504,
0.5982510447502136,
-0.045898523181676865,
0.23852664232254028,
-0.520501971244812,
-0.20129616558551788,
0.6748380064964294,
-0.277198851108551,
0.11242420226335... | |
I want to add a DependencyObject to a control from code behind. I have searched and searched online for how to do this with absolutely no success. The DependencyObject has a DependencyProperty. I also want to set this property from code-behind.
charting:ChartBehaviors inherits directly from DependencyObject. It is a c... | [
-0.09018909931182861,
-0.11698983609676361,
0.4548149108886719,
-0.04760449379682541,
0.15653736889362335,
-0.07753455638885498,
-0.07088793069124222,
-0.011315727606415749,
-0.22703944146633148,
-0.5355381965637207,
0.011392404325306416,
0.7088399529457092,
-0.4777296781539917,
0.06484819... | |
<charting:FloatingTooltipBehavior
TooltipTemplate="{StaticResource tooltipTemplate}" />
</charting:ChartBehaviors.FloatingTooltip>
</charting:Chart>
```
Looks like you pasted in the ld db code...
Anyway, see these docs: <https://developers.google.com/appengine/docs/python/ndb/subclassprop>
You want to use... | [
-0.10322842001914978,
0.01182465348392725,
0.7793411016464233,
-0.0477457158267498,
0.19790007174015045,
-0.3079136610031128,
0.21564964950084686,
0.11272328346967697,
-0.4081898629665375,
-0.7975507378578186,
0.2526145875453949,
0.5397453904151917,
-0.00946186576038599,
-0.152682051062583... | |
I have been using
```
for item in dictlist:
print>>working_outfile, item
```
to print a ***list*** of ***sets*** to a .txt file and opening that with excel, which then allows me to convert the list to a comma delimited file, creating a spreadsheet.
The problem is that when I have this open, I have been going i... | [
0.5083063244819641,
0.18765105307102203,
0.47402334213256836,
-0.2258675992488861,
-0.13914154469966888,
-0.051080718636512756,
-0.0746978372335434,
-0.21619924902915955,
-0.19779977202415466,
-0.8438885807991028,
-0.06280502676963806,
0.5200669169425964,
-0.26734358072280884,
-0.029459649... | |
of this program don't have to learn how to find and replace all of those characters?
EDIT: It ultimately gives output looking something like this:
> ('aaa' | set(['stuff' | 'eggs' | 'spam']))
>
>
> ('bbb' | set(['stuff' | 'eggs' | 'spam']))
>
>
> ('ccc' | set(['stuff' | 'spam']))
where | is the next cell
and I ... | [
0.03996450453996658,
0.15029622614383698,
0.381691038608551,
-0.005249721929430962,
-0.09179630875587463,
0.05465254560112953,
0.006573805585503578,
-0.37075668573379517,
-0.07051081955432892,
-0.6184630393981934,
-0.09102754294872284,
0.1273145079612732,
-0.7154555916786194,
-0.1296470761... | |
'gibbon mef2c upstream a1', 'Monkey mef2d upstream a1', 'Gorilla mef2a
> upstream a1', 'Rhesus mef2c upstream a1', 'MouseLemur mef2d upstream
> a1', 'BrownBat mef2d upstream a1', 'Dolphin mef2d upstream a1',
> 'Kung-Fu-Panda! mef2d upstream a1', 'Armadillo mef2d upstream a1',
> 'chimp mef2d upstream a1', 'Chimp mef... | [
0.1371985226869583,
0.31235358119010925,
0.0962827131152153,
-0.038623616099357605,
-0.18755534291267395,
0.8267998099327087,
0.17629879713058472,
-0.2827662527561188,
-0.5686157941818237,
-0.12250569462776184,
-0.05660055950284004,
0.5872753858566284,
-0.5666537284851074,
-0.1729014813899... | |
upstream a1',
> 'human mef2d upstream a1'])), ('aaataa', set(['mouse mef2c upstream
> a1', 'Alpaca mef2a upstream a1', 'horse mef2a upstream a1', 'opossum
> mef2a upstream a1', 'Gibbon mef2a upstream a1', 'MouseLemur mef2a
> upstream a1', 'elephant mef2a upstream a1', 'GuineaPig mef2a upstream
> a1', 'Rat mef2d up... | [
0.12978848814964294,
0.16559737920761108,
-0.08387787640094757,
0.20507043600082397,
0.13198810815811157,
0.8465465903282166,
-0.025390053167939186,
-0.5070794820785522,
-0.39496734738349915,
-0.27184557914733887,
0.09572749584913254,
0.4720703661441803,
-0.07532837986946106,
-0.1661915034... | |
in it so this is just a small cut
It looks like you have a list of tuples, where each tuple consists of a string and a set. So, to properly use the CSV writer, you need each of those tuples to be "flat":
```
import csv
writer = csv.writer(open('output.csv', 'wb'))
for item in mydata: # mydata is your list of tuples,... | [
-0.007805779576301575,
-0.2426566630601883,
0.5764620304107666,
-0.29708534479141235,
-0.28186026215553284,
0.21363642811775208,
0.333777517080307,
-0.17839644849300385,
-0.305766761302948,
-0.526592493057251,
-0.3320760130882263,
0.37402746081352234,
-0.28806355595588684,
-0.1184119433164... | |
This is the definitions I have in the
```
private SavePreferenceCallback savePreferenceHandler;
public SavePreferenceCallback SavePreferenceHandler
{
get
{
return savePreferenceHandler;
}
set
{
savePreferenceHandler = value;
}
}
```
and then in debugging the code when I come to a line that is t... | [
0.15729860961437225,
-0.05507417395710945,
0.38788866996765137,
0.03370819613337517,
0.11615567654371262,
-0.1397528201341629,
0.2751856744289398,
-0.06702957302331924,
-0.03389943391084671,
-0.5859631896018982,
-0.12427704781293869,
0.6214596629142761,
-0.29242950677871704,
0.114643774926... | |
in your property setter to see what method is assigned.
Lastly, you could use `F11` and step into the method as it is invoked. | [
0.045338161289691925,
-0.31847190856933594,
-0.08204730600118637,
0.05085049942135811,
-0.11721836775541306,
-0.4299900531768799,
-0.05225932598114014,
-0.1987490952014923,
-0.11207561194896698,
-0.483480840921402,
-0.024616919457912445,
0.6205880045890808,
-0.14282874763011932,
-0.1123931... | |
We have a big list of email addresses in our database from where people have signed up for newsletters for one of our websites.
We have a cron job that uses PHP to grab email address from the database and sends out the newsletters.
When an email gets bounced back, the cron job admin gets an email about it.
If we wan... | [
0.23780176043510437,
0.31912317872047424,
0.27377548813819885,
0.2595003843307495,
-0.018568968400359154,
-0.02548796497285366,
-0.22684992849826813,
0.03998378664255142,
-0.407527357339859,
-0.040650274604558945,
0.34316253662109375,
0.4864773452281952,
0.09695425629615784,
-0.06491084396... | |
Or is there a way to test for bounced email addresses via PHP?
What you want to do is choose a "universal" bounce email address (say, bounce@example.com). You want to set your header "Return-Path" to "bounce@example.com".
Then, you have an external process check the "bounce@example.com" inbox for messages. Don't use t... | [
0.6595650315284729,
-0.06995601207017899,
0.4494611918926239,
0.12180159240961075,
-0.2256668657064438,
-0.33030247688293457,
0.11579723656177521,
0.050932627171278,
-0.7122492790222168,
-0.3817225694656372,
0.39998525381088257,
0.15788786113262177,
-0.5992902517318726,
-0.1826368421316146... | |
this inbox from time-to-time so you can further *train* your parser.
Your parser can be simple and look for simple substrings or even regular expressions. In most cases, regular expressions aren't necessary. | [
-0.07899580150842667,
0.04803219437599182,
-0.1183275580406189,
0.19671988487243652,
-0.1284329742193222,
-0.13745614886283875,
0.6322190165519714,
0.06128794327378273,
0.14943034946918488,
-0.6162329316139221,
-0.2707722783088684,
0.5755152106285095,
-0.3649555742740631,
-0.36482298374176... | |
When I POST using my windows form app (second peace of code down) when I go to GET the student collection with buttonclick 2 into my datagrid nothing is showing I can hardcode the members and GET no problem, yet I cant POST? The response I get back says OK in the message box when I click button1 for my post? So not qui... | [
0.22806790471076965,
0.03012111410498619,
0.5872482657432556,
-0.09872188419103622,
-0.3436034917831421,
-0.11068885028362274,
0.48367926478385925,
-0.04578610137104988,
-0.21148581802845,
-0.7108147144317627,
-0.46575504541397095,
0.2023581862449646,
-0.10679417848587036,
-0.0844745412468... | |
XDocument xDoc = XDocument.Load(uri);
var students = xDoc.Descendants("Student")
.Select(n => new
{
StudentNo = n.Element("StudentID").Value,
Firstname = | [
-0.058931801468133926,
-0.4790164530277252,
0.3182658553123474,
0.07663380354642868,
0.5669148564338684,
0.26614826917648315,
-0.19783101975917816,
-0.19399511814117432,
0.013089140877127647,
-0.48535022139549255,
-0.28454363346099854,
0.09495460987091064,
-0.041607581079006195,
0.41187024... | |
n.Element("FirstName").Value,
Surname = n.Element("LastName").Value
})
.ToList();
dataGridView1.DataSource = students;
}
```
Are you running in Per Call Activation mode? If so, every client request gets a new dedicated service instance, so your `... | [
-0.01375390961766243,
-0.20590947568416595,
0.49431759119033813,
-0.11478886008262634,
0.3078414499759674,
0.026636134833097458,
0.4547337591648102,
-0.031250957399606705,
-0.2444973886013031,
-0.48851126432418823,
-0.4869803786277771,
0.5711818933486938,
-0.35349661111831665,
0.3067958652... | |
recreated as empty every time.
See this [reference article](http://msdn.microsoft.com/en-us/magazine/cc163590.aspx). You'll have to persist your List between calls, either in a Cache or Database. | [
0.37462878227233887,
-0.1962321698665619,
0.38630345463752747,
0.12850043177604675,
0.3735205829143524,
0.133498877286911,
0.42532870173454285,
0.12151110917329788,
-0.7370332479476929,
-0.5548478364944458,
-0.429462194442749,
0.49183961749076843,
-0.2663387656211853,
0.3370196223258972,
... | |
I think its easy to create form via only html and do not use form helper.
What is the advantage of using form helper?
Using form helper you obtain much benefits:
* Activation for xss/csrf protection
* Sanitize post data
* Multilanguage labels
* Validation
* Unique db validation
* Easy form modification
* Easy set form... | [
0.209095299243927,
0.26960787177085876,
0.6645599603652954,
0.12010019272565842,
-0.08121152222156525,
-0.3103539049625397,
0.14355303347110748,
-0.4120059013366699,
-0.12454278022050858,
-0.5518486499786377,
-0.14287053048610687,
0.37080323696136475,
-0.09348587691783905,
-0.1087660640478... | |
I know that this is a repeated question. I have found very similar questions and solutions to them but still i'm struck with it.
I'm using eclipse to connect my java application with microsoft sql server 2008 database. Following is my code
```
import java.sql.*;
public class ConnectionTest2 {
public static voi... | [
-0.004409364424645901,
0.08285023272037506,
0.4890185594558716,
-0.1438494175672531,
-0.26603594422340393,
-0.02820698916912079,
0.22951741516590118,
-0.08661160618066788,
-0.1735599935054779,
-0.6919739842414856,
-0.012965457513928413,
0.5655298233032227,
-0.3042258620262146,
0.3906786143... | |
System.out.println("Connected");
} catch (SQLException e) {
System.out.println("SQL Exception: "+ e.toString());
}
catch (ClassNotFoundException cE) {
System.out.println("Class Not Found Exception: "+ cE.toString());
}
}
}
```
I've enabled the tcp/ip and VIA by going... | [
-0.07659881561994553,
-0.03090856783092022,
0.56048184633255,
-0.02089359611272812,
0.16894899308681488,
-0.008471772074699402,
0.06650733947753906,
-0.07314251363277435,
-0.4106799066066742,
-0.6819137930870056,
-0.13411815464496613,
0.327047199010849,
-0.2752380967140198,
0.6410067081451... | |
to the following error
> SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: The
> TCP/IP connection to the host localhost, port 1433 has failed. Error:
> "Connection refused: connect. Verify the connection properties. Make
> sure that an instance of SQL Server is running on the host and
> accepting TC... | [
0.12130158394575119,
0.209160715341568,
0.2672395408153534,
0.0551091730594635,
0.005906315986067057,
-0.0627904012799263,
0.500454306602478,
-0.02062143199145794,
-0.4490692913532257,
-0.8664842247962952,
0.07541077584028244,
0.5283692479133606,
-0.20615148544311523,
0.3495447337627411,
... | |
I made a REST Service which is heavily based on [this tutorial](http://www.gen-x-design.com/archives/create-a-rest-api-with-php/). I also made a REST Request library which is heavily based on [this tutorial](http://www.gen-x-design.com/archives/making-restful-requests-in-php/). (Basically, a bunch of `switch` on `$_SER... | [
-0.011485801078379154,
-0.03276343271136284,
0.41907960176467896,
-0.22242848575115204,
-0.26251456141471863,
0.038252513855695724,
0.18097887933254242,
-0.33475738763809204,
0.11703233420848846,
-0.6213757991790771,
-0.26915109157562256,
0.3180426061153412,
-0.34213173389434814,
0.0967181... | |
$this->setCurlOpts($curlHandle);
$this->responseBody = curl_exec($curlHandle);
$this->responseInfo = curl_getinfo($curlHandle);
curl_close($curlHandle);
}
```
I have 2 simple HTML forms, one with a get method and one for the post method. When i use one of them with simple input text, works fine. ... | [
0.187116339802742,
0.10040269047021866,
1.1402764320373535,
-0.2729265093803406,
-0.4844629168510437,
0.05689218267798424,
0.3515556752681732,
-0.3929320275783539,
-0.14791207015514374,
-0.8566910028457642,
-0.19364987313747406,
0.5290766954421997,
-0.45764753222465515,
-0.1729358583688736... | |
. $_FILES["image1"]["name"] ); when uncommented, This line actually works and save the image in my folder.
include("RestUtils.php");
$request = new RestRequestOperator('http://localhost:8080/REST/RestControler.php/user/1', 'POST', $_FILES);
$request->execute();
```
In my service, I receive the image infos , whi... | [
0.2127925455570221,
-0.12278682738542557,
0.6655941605567932,
-0.11000774055719376,
0.21543483436107635,
0.17159590125083923,
0.5309683084487915,
0.09983475506305695,
-0.28237518668174744,
-0.7365489602088928,
-0.2805768847465515,
0.6622281670570374,
-0.2135339081287384,
0.1058808192610740... | |
to send an image to a PHP REST API and they save it on their server.
EDIT : I added in the service.
```
if(file_exists($_POST["image1"]["tmp_name"] )){
echo "file EXISTS<br>";
}else echo "NOPE.<br>";
if(is_uploaded_file($_POST["image1"]["tmp_name"] )){
echo "is_uploaded_file TRUE<br>";
}else echo "is_uploa... | [
0.3449975252151489,
0.013564194552600384,
0.49720102548599243,
-0.2920295000076294,
-0.2302083820104599,
0.19731555879116058,
0.8050441145896912,
-0.6598362326622009,
-0.152914896607399,
-0.5327715873718262,
0.02003427967429161,
0.3631119430065155,
-0.1901824027299881,
-0.06551559269428253... | |
in my service.......
Found it, works on local wamp PHP 5.3.4 !
```
public static function processRequest()
{
case 'post':
if(move_uploaded_file($_FILES["uploaded_file"]["tmp_name"] , "Images/" . $_FILES["uploaded_file"]["name"] )){
echo "move_uploaded_file SUCCESS ";
................... | [
0.11961397528648376,
0.10063634812831879,
0.6001609563827515,
-0.37978246808052063,
0.041125159710645676,
0.12328042089939117,
0.5691187977790833,
0.01893165148794651,
0.1181008368730545,
-0.8551475405693054,
-0.49649083614349365,
0.19963526725769043,
-0.23597677052021027,
0.29838418960571... | |
$data = array(
'uploaded_file' => '@' . $tmpfile . ';filename='.$filename,
);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
//no need httpheaders
$this->doExecute($ch);
}
```
Thanks. Dave | [
0.23452673852443695,
0.13642346858978271,
0.5755637288093567,
0.14747309684753418,
0.04090774804353714,
-0.30495354533195496,
0.18328264355659485,
0.3312157094478607,
-0.14778168499469757,
-0.5279867649078369,
-0.20896212756633759,
0.30365604162216187,
-0.2862825393676758,
0.21038560569286... | |
I'd like to format my dates as follows:
```
12/24/2012
1/15/2012
1/ 4/2012
12/ 3/2012
```
I expected the following custom format to do the trick: `_m/_d/yyyy`. However, when I try to use that I get the following error message:
> Microsoft Excel cannot use the number format you typed.
I don't know any way to do th... | [
-0.0028491616249084473,
0.15614916384220123,
0.5177749395370483,
-0.1604977250099182,
-0.07289985567331314,
0.28715547919273376,
0.006516993511468172,
0.058159999549388885,
-0.36783790588378906,
-0.5865887999534607,
0.10051055997610092,
0.006771577522158623,
-0.027060190215706825,
0.219990... | |
We are trying to move away from Silverlight based chart controls to more plugin-less controls. We like HighCharts and are now testing implementing it into our existing codebase.
We have found DotNet.HighCharts as a possible contender to quickly create charts without having to parse out all the javascript.
**My questio... | [
0.6337131261825562,
0.0396091528236866,
0.7625859379768372,
0.2106829583644867,
0.10680263489484787,
-0.3749568462371826,
0.0919947475194931,
-0.0699845477938652,
-0.34703099727630615,
-0.5374007225036621,
0.2828662395477295,
0.43355005979537964,
-0.04676171764731407,
-0.03671973571181297,... | |
for DotNet.HighCharts does not show any examples of pulling non-static data so no luck there. This is a snippet of my code so far:
```
Dim da3 As New SqlDataAdapter(sql3, conn3)
da3.Fill(dt3)
da3.Dispose()
conn3.Close()
Dim chart3 As Highcharts = New Highcharts("chart").InitChart(New Chart() With ... | [
0.012738469056785107,
-0.31817328929901123,
0.935978353023529,
-0.02922339364886284,
-0.06302160024642944,
-0.15137550234794617,
0.16918833553791046,
-0.313981831073761,
-0.13479310274124146,
-0.6066948175430298,
-0.055379509925842285,
0.7307524681091309,
-0.19315513968467712,
0.1542183011... | |
.Formatter = "function() { return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %'; }" _
}).SetPlotOptions(New PlotOptions() With { _
.Column = New PlotOptionsColumn With { _
.AllowPointSelect = True, _
.Cursor = Cursors.Pointer, _
.DataLabels = New PlotOptionsColumnDataLabels() With {... | [
-0.18606525659561157,
-0.2720975875854492,
1.0631169080734253,
-0.02436646819114685,
0.22136302292346954,
0.22318032383918762,
-0.11702223122119904,
-0.6200923919677734,
-0.12959307432174683,
-0.7538996934890747,
-0.28064027428627014,
0.4558267593383789,
-0.4858739376068115,
-0.07044317573... | |
} _
} _
}).SetSeries(New Series() With { _
.Type = ChartTypes.Column, _
.Name = "Browser share", _
.Data = New Helpers.Data(dt3.Select(Function(x) New Options.Point() With {.X = x.periodyear, .Y = x.rate}).ToArray()) _
})
ltrChart3.Text = chart3.ToHtmlString()
```
I am importing the fo... | [
-0.05300191417336464,
-0.17958512902259827,
0.8062488436698914,
-0.3375135362148285,
0.04926556721329689,
0.2873757481575012,
0.2760927975177765,
-0.4689977765083313,
-0.23984074592590332,
-0.5596067905426025,
-0.411889910697937,
0.6978992223739624,
-0.5360177159309387,
0.27088725566864014... | |
be converted to 'String' because 'String' is not a delegate type` as my error on the `Function....rate}` bit.
**EDIT:**
First attempt at modifying existing code
```
Dim chart1 As Highcharts = New DotNet.Highcharts.Highcharts("test")
Dim series As Series = New Series()
series.Name = "CO Rates"
For i A... | [
0.25395888090133667,
-0.3662114143371582,
0.9704065322875977,
-0.13867680728435516,
0.1043003648519516,
0.16492685675621033,
0.14478521049022675,
-0.6071172952651978,
-0.1354430764913559,
-0.7209245562553406,
-0.20608364045619965,
0.5915206074714661,
-0.20222198963165283,
0.419629096984863... | |
.Type = ChartTypes.Column})
```
This just produces 2 columns the first is at x-position 0 and its value is 2011 and the other is at x-position 1 and its value is 8.3. This is supremely odd as it looks to me like it is taking the last point in the dataTable and then make its {x, y} value ({2011, 8.3}) into 2 distinct ... | [
-0.34594687819480896,
-0.0030711183790117502,
0.7804362177848816,
-0.14400938153266907,
-0.3352603614330292,
0.29883915185928345,
-0.006965549197047949,
-0.07043440639972687,
-0.4184720516204834,
-0.5322862267494202,
0.06775929033756256,
-0.1105191558599472,
-0.14731459319591522,
0.4818611... | |
like {0, x} and {1, y}.
I need to get:
* A single series with {periodyear, rate} taken from the dataTable.
* In the future I want to have a series for each location with its
{periodyear, rate} taken from the dataTable.
**EDIT 2:**
Okay, I have it converting the results to a datadictionary and I am getting the chart t... | [
0.29834994673728943,
-0.20231309533119202,
0.7541632056236267,
-0.09338554739952087,
0.25122401118278503,
-0.028252489864826202,
-0.10938236117362976,
-0.0914033055305481,
-0.26347145438194275,
-0.6875172257423401,
0.10321192443370819,
0.5191150903701782,
0.06576745957136154,
0.41688379645... | |
Dim xDate As DateTime
Dim data As New Dictionary(Of DateTime, Decimal)
For i As Integer = 0 To dt.Rows.Count - 1
xDate = DateTime.ParseExact(dt.Rows(i)("periodyear").ToString, "YYYY", Globalization.CultureInfo.InvariantCulture)
data.Add(xDate, dt.Rows(i)("rate"))
Next
... | [
0.1820601373910904,
-0.8144014477729797,
1.0487614870071411,
-0.1181885153055191,
-0.23115049302577972,
0.12947867810726166,
0.05690283328294754,
-0.04405029118061066,
-0.21117155253887177,
-0.40969330072402954,
-0.1806126981973648,
0.4043412506580353,
-0.34052884578704834,
0.4660776257514... | |
Dim x As Integer = 0
For Each pair As KeyValuePair(Of DateTime, Decimal) In data
chartData.SetValue(pair.Key, x, 0)
chartData.SetValue(pair.Value, x, 1)
x += 1
Next
Dim chart1 As Highcharts = New Highcharts("chart1").InitChart(New Chart() With { _ | [
-0.012362306006252766,
-0.4256035387516022,
1.032157063484192,
-0.044403642416000366,
-0.23267708718776703,
-0.10666871815919876,
0.2177598923444748,
-0.47885656356811523,
-0.0758795440196991,
-0.4223458468914032,
-0.17141927778720856,
0.48137280344963074,
-0.3881106376647949,
0.4044922292... | |
.Type = ChartTypes.Column _
}).SetTitle(New Title() With { _
.Text = "Chart 1" _
}).SetXAxis(New XAxis() With { _
.Type = AxisTypes.Linear _
}).SetSeries(New Series() With { _
.Data = New Helpers.Data(chartData) _
})
```
If I change this to just the string va... | [
0.07721603661775589,
-0.33540400862693787,
0.9738870859146118,
0.029460353776812553,
-0.08866392821073532,
0.1181449294090271,
-0.17746156454086304,
-0.3235015869140625,
-0.492763489484787,
-0.8201956152915955,
-0.3094470500946045,
0.22307993471622467,
-0.5597121715545654,
0.33390319347381... | |
the AxisTypes to Linear for the x-axis I do display data. It is just off somehow - 1980 looks like 1,980. Baby steps...
**EDIT N:**
This is the final working solution. This seems like it could use some cleaning up. For example I am not sure I need to create a dictionary to put in my X/Y values and then iterate over th... | [
0.23246577382087708,
-0.3272140920162201,
1.1270204782485962,
-0.2184225618839264,
-0.3528274595737457,
0.13199999928474426,
0.22970177233219147,
-0.4367009997367859,
-0.3046404719352722,
-0.45562291145324707,
0.2582789957523346,
0.6977294087409973,
-0.24917815625667572,
0.326019287109375,... | |
seriesItem(stfipsList.Count) As Series
Dim xDate As DateTime
Dim fakeDate As String
Dim sX As Integer
sX = 1
For Each state In stfipsList
Dim data As New Dictionary(Of DateTime, Decimal)
Dim stateVal As String = state.ToString
Dim recCount As Integer = dt.Rows.Count - 1
... | [
0.27370336651802063,
-0.6287973523139954,
1.0786339044570923,
-0.2876191735267639,
-0.18165509402751923,
0.2807755768299103,
0.2599596381187439,
-0.2929760217666626,
-0.2784861922264099,
-0.5060499906539917,
-0.2573269307613373,
0.38339343667030334,
-0.22493910789489746,
0.6377835869789124... | |
If dt.Rows(i)("stfips").ToString = stateVal Then
fakeDate = "1/1/" + dt.Rows(i)("periodyear").ToString
xDate = DateTime.Parse(fakeDate)
data.Add(xDate.Date, dt.Rows(i)("unemprate"))
End If
Next
Dim chartData As Object(,) = New | [
0.2713157534599304,
-0.45845770835876465,
0.8573364615440369,
-0.19037017226219177,
0.25746971368789673,
0.10243808478116989,
0.12342861294746399,
-0.2922341227531433,
-0.2613278031349182,
-0.4018390476703644,
-0.23300471901893616,
0.4430764317512512,
-0.14650899171829224,
0.59315323829650... | |
Object(data.Count - 1, 1) {}
Dim x As Integer = 0
For Each pair As KeyValuePair(Of DateTime, Decimal) In data
chartData.SetValue(pair.Key, x, 0)
chartData.SetValue(pair.Value, x, 1)
x += 1
Next
seriesItem(sX) = New Series With { | [
0.08111239969730377,
-0.6593589782714844,
1.0159327983856201,
0.06578261405229568,
-0.01428121980279684,
0.21629546582698822,
0.058041736483573914,
-0.4924682080745697,
-0.21220140159130096,
-0.6841486692428589,
-0.1384454071521759,
0.25878992676734924,
-0.2450123280286789,
0.4739732146263... | |
.Name = state.ToString, _
.Data = New Helpers.Data(chartData)
}
SeriesList.Add(seriesItem(sX))
sX = sX + 1
Next
Dim chart1 As Highcharts = New Highcharts("chart1").InitChart(New Chart() With { _
.Type = ChartTypes.Line _ | [
-0.0440572090446949,
-0.6957250237464905,
1.4957876205444336,
0.1028398647904396,
-0.10756585001945496,
-0.1450437754392624,
0.21185064315795898,
-0.33085936307907104,
-0.33722448348999023,
-0.7414339780807495,
-0.07292699068784714,
0.3450452387332916,
-0.4145382344722748,
0.37256798148155... | |
}).SetTitle(New Title() With { _
.Text = "Annual Unemployment Rate" _
}).SetTooltip(New Tooltip() With { _
.Formatter = "function() { return '<b>'+ this.series.name + ': ' + Highcharts.dateFormat('%Y', this.x) +'</b>: '+ this.y +' %'; }" _
}).SetXAxis(New XAxis() With { _
.Type = AxisTypes.Dateti... | [
0.4667919874191284,
-0.35192233324050903,
0.8411409258842468,
0.020766638219356537,
0.03882212191820145,
0.2753077447414398,
-0.010056212544441223,
-0.22504650056362152,
-0.09017059206962585,
-0.4920555353164673,
-0.42020750045776367,
0.4539267122745514,
-0.7286521792411804,
0.323000669479... | |
.Text = "Unemployment Rate", _
.Align = AxisTitleAligns.High _
} _
}).SetSeries(SeriesList.[Select](Function(s) New Series() With { _
.Name = s.Name, _
.Data = s.Data _
}).ToArray())
ltrChart1.Text = chart1.ToHtmlString()
```
Here you can find ex... | [
0.12919466197490692,
-0.5475015044212341,
0.9957964420318604,
-0.0657510980963707,
0.09847772121429443,
0.13627983629703522,
0.21670985221862793,
-0.1763046532869339,
-0.4842919409275055,
-0.7324832081794739,
-0.1652507334947586,
0.5313374400138855,
-0.37238404154777527,
0.2977375984191894... | |
how you can create series from DataTable:
<http://dotnethighcharts.codeplex.com/discussions/287106>
Also from the [sample project](http://dotnethighcharts.codeplex.com/releases/view/85324) you can find how to "Bind Data From Dictionary" and "Bind Data From Object List" | [
0.6057525873184204,
-0.20242102444171906,
0.6692913770675659,
0.133811354637146,
-0.39803260564804077,
0.023571424186229706,
0.06578760594129562,
-0.498522013425827,
-0.20974577963352203,
-0.5850396752357483,
-0.14554555714130402,
0.14186471700668335,
-0.36107224225997925,
0.26888614892959... | |
kwd variable holds this value: **news path:".aspx"**
It is basically the query string of an url.
```
var path= "path:\".aspx\"";
```
so kwd= whatever user types passed to the url like this+path:
```
kwd=news path:".aspx";
```
I need to subtract kwd-path so i get only "news"
How do i do that in java-script or j... | [
0.06858215481042862,
-0.09442074596881866,
0.6712667942047119,
-0.24134881794452667,
-0.2819645404815674,
-0.11598722636699677,
0.2575926184654236,
-0.011438448913395405,
0.07466284185647964,
-0.798764169216156,
-0.4175677001476288,
0.5826936364173889,
-0.21475331485271454,
0.2638525068759... | |
- a.length());
}
```
But this is not working..
```
var persistvalue= kwd.subString(0, kwd.length() - path.length());
```
You need to understand that environment variables are local to process contexts. A new process gets a copy of the parent's environment but each copy is independent. Changes in the parent don... | [
-0.10914615541696548,
0.01301832776516676,
0.3317085802555084,
-0.24926309287548065,
0.31902486085891724,
0.02972869761288166,
0.48243653774261475,
-0.19026300311088562,
-0.29566267132759094,
-0.6301041841506958,
-0.16821786761283875,
0.5797799229621887,
-0.41191449761390686,
0.62523889541... | |
the `PATH` variable. The process is created directly using OS services. Those look into the context of the Java process which contains the old `PATH` variable unless you change the environment in the shell *before* you start the Java process.
To fix your issue, you have two choices:
1. Examine the `PATH` variable in ... | [
0.14501987397670746,
-0.05197698622941971,
0.2584417462348938,
0.12034967541694641,
0.4005540907382965,
0.27578407526016235,
0.16744662821292877,
-0.34803274273872375,
0.03531770408153534,
-1.0360711812973022,
-0.12650150060653687,
0.5564411878585815,
0.021518493071198463,
0.25601449608802... | |
it's path (which you can pass via the environment).
The second case works like this:
1. You create an environment with the correct `PATH`.
2. You start a shell process.
3. You pass the command to run as argument to the shell (`"sh", "-c", "cmd args"` or `"cmd.exe", "/c", "cmd args"`)
4. The shell will notice that it ... | [
0.24108868837356567,
-0.02656763419508934,
0.3430910110473633,
0.03485848382115364,
0.28823357820510864,
-0.15484032034873962,
0.33198797702789307,
-0.2008964568376541,
0.01254339050501585,
-0.5915493369102478,
-0.25342369079589844,
0.7127413749694824,
-0.10900303721427917,
0.0284275654703... | |
spaces and other special characters will cause problems. | [
0.06699187308549881,
0.2496895045042038,
-0.0446440763771534,
0.36677786707878113,
0.47539839148521423,
-0.12387674301862717,
0.357586532831192,
0.16077370941638947,
-0.40075695514678955,
-0.4745884835720062,
-0.5629961490631104,
-0.22004544734954834,
-0.31364259123802185,
0.01238066516816... | |
> **Possible Duplicate:**
>
> [Generating an Excel file in ASP.NET](https://stackoverflow.com/questions/150339/generating-an-excel-file-in-asp-net)
**Here's my question:** How do you programmatically create a "true" Excel file?
**Note:** I don't mean a CSV, HTML/CSS, or XML file, I mean a file written in the same ... | [
0.4991306662559509,
0.12702396512031555,
0.18324169516563416,
0.11556480079889297,
-0.1424664556980133,
-0.11267872154712677,
0.13737741112709045,
-0.08036893606185913,
-0.11088643223047256,
-0.6573315858840942,
0.07321606576442719,
0.44612744450569153,
-0.20278853178024292,
-0.12683054804... | |
programmatically create a "true" Excel file, but I'm not sure where to begin. Is there an SDK which could help me do this?
Any suggestions would be appreciated. Thanks in advance.
You can use the interop from Excel like RedFilter showed you, but there are also open source alternatives that does not require Excel to be... | [
0.3878401517868042,
0.010821505449712276,
-0.2070959210395813,
0.31665104627609253,
-0.21235738694667816,
-0.18080812692642212,
0.12021200358867645,
0.07825501263141632,
-0.21230530738830566,
-0.816559374332428,
0.12393131107091904,
0.32898247241973877,
-0.002302454551681876,
-0.3613447546... | |
I am making a group of subplot (say, 3 x 2) in matplotlib, but I have fewer than 6 datasets. How can I make the remaining subplot blank?
The arrangement looks like this:
```
+----+----+
| 0,0| 0,1|
+----+----+
| 1,0| 1,1|
+----+----+
| 2,0| 2,1|
+----+----+
```
This may go on for several pages, but on the final pag... | [
0.038874637335538864,
0.23208819329738617,
0.6443889737129211,
-0.03322868049144745,
-0.06872718781232834,
0.05794405937194824,
0.11993928998708725,
-0.37830284237861633,
-0.37616869807243347,
-0.617763340473175,
-0.1359560191631317,
0.18997935950756073,
-0.30437490344047546,
0.13818877935... | |
could always hide the axes which you do not need. For example, the following code turns off the 6th axes completely:
```
import matplotlib.pyplot as plt
hf, ha = plt.subplots(3,2)
ha[-1, -1].axis('off')
plt.show()
```
and results in the following figure:

JSDT plugin may be useful to include jquery in eclipse and it could be found at this link
<http://marketplace.eclipse.org/content/jsdt-jquery#.UI-dH5F62So> | [
0.37701866030693054,
-0.1650947779417038,
0.29545438289642334,
0.3762834370136261,
-0.3184446394443512,
-0.3299291729927063,
-0.059186890721321106,
0.15666928887367249,
-0.046401239931583405,
-0.6340270042419434,
-0.04903917387127876,
0.69582200050354,
0.029170867055654526,
-0.460028558969... | |
The grid in WPF currently has a grid system like this:
```
Cols
+ + + + +
| 0 | 1 | 2 | 3 |
+--+---|---|---|---|---
0 | | | | |
+--+---|---|---|---|--- Rows
1 | | | | |
+--+---|---|---|---|---
2 | | | | |
+--+---|---|---|---|---
```
Is there a way to make it behave ... | [
-0.23977616429328918,
-0.17611436545848846,
0.8875524401664734,
0.06492629647254944,
0.09689535945653915,
-0.11519771814346313,
-0.07352781295776367,
-0.4201469123363495,
-0.36475861072540283,
-0.8353321552276611,
-0.07840511947870255,
0.08453389257192612,
-0.24493224918842316,
-0.00106099... | |
Cols
+ + + + +
| 0 | 1 | 2 | 3 |
+--+---|---|---|---|---
2 | | | | |
+--+---|---|---|---|--- Rows
1 | | | | |
+--+---|---|---|---|---
0 | | | | |
+--+---|---|---|---|---
```
Ideally I would like the RowSpan to extend an item upwards instead of downwards.
Example:
My d... | [
-0.7044554352760315,
0.06360236555337906,
0.9111858010292053,
0.01969691924750805,
-0.14155955612659454,
0.26463061571121216,
-0.25868743658065796,
-0.3296147882938385,
-0.294811874628067,
-0.6995867490768433,
-0.23075997829437256,
0.07423631846904755,
-0.2231813371181488,
0.03834731876850... | |
0,0 with the intent of it being displayed on the bottom left corner. However the grid in WPF will put that cube on the top left. The other problem is the datasource gives me a 2x2 with the position of the bottom left "anchor" position with a width and height. The width and height are bound to ColSpan and RowSpan. The R... | [
-0.12812723219394684,
-0.14243577420711517,
0.6050362586975098,
-0.007868032902479172,
-0.037948668003082275,
0.03348271921277046,
-0.28890299797058105,
-0.096414715051651,
-0.2844981551170349,
-0.5326592326164246,
0.20551972091197968,
0.3065463900566101,
-0.037639468908309937,
0.365162223... | |
should be able to do what you want. Instead of binding the values of `Grid.Row` and `Grid.RowSpan` to your row and height, bind `GridEx.RowFromBottom` and `GridEx.RowSpanFromBottom` to them. The property change handlers for these properties will compute the new value of `Grid.Row` based on the values of those propertie... | [
0.055669523775577545,
-0.025677548721432686,
0.7173740863800049,
-0.17697732150554657,
0.16228283941745758,
0.16096782684326172,
0.2335444539785385,
-0.552259087562561,
-0.055407311767339706,
-0.7602218389511108,
0.0013938912888988853,
0.6822448372840881,
-0.3128911256790161,
0.25226873159... | |
FrameworkPropertyMetadataOptions.AffectsParentMeasure, OnRowFromBottomChanged));
public static readonly DependencyProperty RowSpanFromBottomProperty = DependencyProperty.RegisterAttached("RowSpanFromBottom", typeof(int?), typeof(GridEx), new FrameworkPropertyMetadata(default(int?), FrameworkPropertyMetadataOptions.... | [
-0.30095750093460083,
0.0008419221267104149,
0.8881465196609497,
-0.2490151822566986,
0.1774611473083496,
0.45209068059921265,
0.6923725605010986,
-0.6555683612823486,
0.0672067180275917,
-0.4809293746948242,
-0.21815818548202515,
0.6442080140113831,
-0.46696600317955017,
0.381737709045410... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.