Posts

javascript - How to add labels to js bar chart? -

How do I add a title, the name of the axis to the chart, and how to change the color of the y and x axis values: Charts data var baradata = {label: ["January", "February", "March", "April", "May", "June"], Dataset: [ Fillcolor: "# 48A497", stroke color: "# 48A4D1", data: [456,479,324,569,702,600]}, {fillColor: "RGBA (73,188,170,0.4)", stroke color: "RGBA (72,174,20 9.0.4 ) ", Data: [364,504,605,400,345,320]}] // meet bar chart canvas works = document.getElementById (" income "). GetContext ("2d"); // Draw Bar Chart New Chart (Revenue). Bars (baradata);

visual studio 2008 - TFS disables "Merge changes in Merge tool" option -

Image
I am using TFS 2012. But if any collision occurs in Visual Studio 2008, during the chikin or in the Lezst Edition, then merge multiple options into merge tools, locally overwrite, server etc. But sometimes I do not merge the merge changes and merge changes in merge tools and they are disabled I tried to find the reason behind it but in reality It did not happen when it happened. Regularly all options are enabled, so when these options are disabled? And how can this contradiction be solved? I think the merge for .frm file type is not enabled. You can choose Team Explorer, Team Foundation Server Settings by right-clicking on the server and source control file type from there. There you need to enable .frm extension.

python - Strange loops and append functions within them -

I was reading, so I found a strange loop which resets a list as "blank" and then adds a value to this list here what i mean: def drawFood (Self, food matrix): food images = [] color = enumate FOOD_COLOR for xnum, x (food matrix): Poor self Koapret and (xNum * 2) & Lt; = FoodMatrix.width: color = TEAM_COLORS [0] if self.capture and (xNum * 2) & gt; Foodmates.width: color = TEAM_COLORS [1] imageRow = [] foodImages.append (imageRow) for ynum, cell (x) in enumerate: if cell: # here is the food screen = self.to_screen ((xNum, yNum) ) Dot = circle (screen, FOOD_SIZE * self.gridSize, outlineColor = color, fillcolor = color, width = 1) imageRow.append (dot) Other: imageRow.append (none) Primary However, foodImages = [] and imageRow = [] are both food items. Reset to empty in each iteration of the loop, the list of food images is increasing. Is it possible because we have imageRow and imageRow list images of food to food images The list co...

Python packaging: catering to different audiences -

I am working on a Python package that includes two scripts using library modules and libraries. One of the scripts is a command line tool, which is printing some text and the other is a JSON API server. Looking at this situation, I look at three main audiences or use cases for the package: Library users: The main module is required module Want to test and slate for your code and access the script as an example. CLI User: The CLI scripts want to run the script every time and then do not need the API server, and probably do not care to access the script source. API Provider: Similar to CII user, but with API server script. Need a CLI script for quick testing. How can I structure this in a directory tree and in one or more delivery packages (possibly using setuptools)? The current source layout is as follows: main_folder README setup.py mypackage __init__.py # library function mymodule.py # for easy import into script __init__.py includes cli.py api...

c# 4.0 - How to add text and image in a column in Component One FlexGrid? -

I have used the snippet mentioned below to show the text with the image, though I am unable to display the image with it. Is the image path not accessible from code? C1.Win.C1FlexGrid.C1FlexGrid gAuditL = New C1.Win .C1FlexGrid.C1FlexGrid (); . . . GAuditL.DataSource = AuditLogVieweryDT; // This is a data source for (int i = gAuditL.Row.Fixed; i & lt; gAuditL.Rows.Count; i ++) / in the grid in the foreground line {string severity = gAuditL [i, gAuditL.Cols ["Severity "] Index] .toString () .; If (Severity == "Information") {this.gAuditL.SetCellImage (i, 0, Image.FromFile (@ ". \\ resource \ info.bmp")); This g.AuditL.SetData (i, 0, "notification"); } If (seriousness == "warning") {this.gAuditL.SetCellImage (i, 0, Image.FromFile (@ ". \ Resources \ warning.bmp")); This.gAuditL.SetData (Eye, 0, "Warning"); } If (seriousness == "important") {this.gAuditL.SetCellImage (i, 0, Image.FromFile (@ ...

outputting multiple things to a file powershell -

I have an array and a foreach loop, this is a thief through every element and receives all my information and It outputs it to a file-file text. Txt However, this only outputs the last element of the data, how can I create it so that all the data of all elements are in the file?

c - 0-1 knapsack brute force -

I can not seem to find the problem with the following code written with a pseudo-code: p [] with the advantages, array w [] weight, weight - maximum weight , number (number of items) receives and wal (coming back) . Please help! Thank you. I think this issue can be with dynamic array or loop > int bruteforce (int p [], int w [], int size, int weight, int val {int k , I, j, tempWyight, tempValue; Int * A = (int *) coloc (size, size); (I = 0; i & lt; pow (2, size); i ++) j = size for; TempWight = 0; TempValue = 0; While (A [J]! = 0 & J & gt; 0) {A [J] = 0; J = j - 1; } A [J] = 1; For (k = 0; k & lt; size; k ++) if (a [k] = 1) tempWeight = tempWight + w [k]; TempValue = tempValue + p [k]; If ((tempValue & gt; Wall) & amp; (tempWeight & lt; = weight)) val = tempValue; Return valve; } Uh! There are several things going on here: Please indent your code properly. Then you will see that you are losing crisp braces in two places: for bloc...