Dump your code and share it

Codedump.io let's you dump code and share it with anyone you'd like.

c#-is it possible to edit an item in a text file using the update in listview?

C#
I'm having a hard time elaborating my question. But I created a registration form in visual studio that gets the important details of a student. click...
31 seconds ago

RGB Normalizied give Black image.

C++
Here , I am trying to do normalize RGB image. Here is my code. cv::Mat channels[3], normalize_rgb; split(image, channels); double sum = 0;...
1 minute ago

Getting WPF Data Grid Context Menu Click Row

C#
I have a WPF DataGrid <DataGrid AutoGenerateColumns="False" Name="dataGrid1" IsReadOnly="True" > <DataGrid.Columns> <DataGridTex...
1 minute ago

Arrays not outputting correctly - C++

C++
I am writing a C++ console application and I'm turning a into 1, b into 2 and so on. Thing is, it's outputting numbers like 48 and 52 - even though th...
1 minute ago

How to use paging with Repeater control in ASP.NET?

ASP.NET (C#)
<asp:Repeater ID="RepCourse" runat="server"> <ItemTemplate> <div style="width:400px"></div> <div class="course...
4 minutes ago

How to dynamically add AutoPostBack = true to button in ASP.NET C#

ASP.NET (C#)
I have the following code. My question is how can I dynamically add the autopostback property to the button? Button button = new Button(); button.ID ...
4 minutes ago

How to know if a command in a pipe run successfully

Bash
I am trying to write a script which will download git using apt and after successful download of git I want to set the config for git. I wrote a scrip...
4 minutes ago

mod_deflate is not working for php generated page

Apache Configuration
mod_deflate not working for php generated page. I have Apache v2.4.7 with php v5.5.9 on Ubuntu 14.04.5 (LTS). This module is working for static html p...
5 minutes ago

Swift - How to store multiple date in default and retrieve it?

Swift
This is my code. I want to save todayString and nextString in user default so that I can display the stored date (update every Tuesday) in label when ...
7 minutes ago

Move image left or right on swipe

Android
I am developing an android application in which the requirement is to place three pictures, one on each other. When i swipe to left, image should move...
7 minutes ago

Loading events on start from database

Ajax
I want to load all the events from the database in the calendar as the page loads but it's not working. Thedata is comming to the page from database b...
8 minutes ago

UIActionSheet with swift

Swift
I created an action sheet, but the problem is that the delegate method is not called myActionSheet = UIActionSheet() myActionSheet.addButton...
9 minutes ago

Passing variable from one Jquery function to another

Ajax
What im trying to do here is getting the id of a table on click function and then when i click the delete button it would get that id and delete it. ...
9 minutes ago

Externally pass values to an Angular application

TypeScript
I'm thinking of separating our MVC-based website's front-end into few components and I was thinking about using Angular for that purpose (e.g. creatin...
10 minutes ago

How to modify the properties of only one custom cell of a table view?

Swift
I want to have a table view cell that contains a button that increments a label by 1 everytime that button is pressed. So if the button is pressed, th...
11 minutes ago

Twig: concatenate variable in string

Twig
I've just begun learning Twig and i'm really stuck at this stupid little issue. Concatenating this doesn't seem to work (eigenKleurInput will ultimate...
12 minutes ago

Mysql Query speed takes 50 seconds

SQL
I have the below Query which takes around 50 seconds to run, is there a way to make it faster? i have not done any indexing yet and will try to do tha...
13 minutes ago

Value of Radio Button display differently on Ionic Angular

TypeScript
I'm working with ionic and I wanted to display the data with value on the radio button. I'm having trouble with getting the value and setting it to th...
13 minutes ago

django how to see sql query when running tests?

SQL
One of my django application unit test fails with DatabaseError: ORA-00942: table or view does not exist I would like to see actual SQL query that ...
13 minutes ago

Background screen greyed out while using ActionButton

Swift
I am using the third-party ActionButton to display a floating button in my Swift project. But when I click on that floating button(on the 'plus' sign)...
13 minutes ago

How can I center an avatar in ionic 3?

Sass (Sass)
How can I center an ion-avatar horizontally like in this picture? Or how can I add a centered image to a ion-row and add an avatar style to the ima...
15 minutes ago

NodeJS server stops listening on port after sometime

Node.js
My NodeJS server stops listening to requests after some random interval of time(days). My node server is running on 3 load balancers with clusters on ...
17 minutes ago

Biometric.java

Java
Hi every one I am getting problem with date? can any one give me solution for these? i am getting output date like this: #2017-04-01 7:06 AM# h...
20 minutes ago

loop in alphabtes range a-z and I want to output should be A-C, C-E... in php

Node.js
function get_alphabet() { $alphabet = ''; for ($i=65; $i<=90; $i++) { $letter = chr($i); $alphabet .= '<a title="filter results b...
20 minutes ago

got exception when do a loop input to database Python

Python
So, I want to input data in multiple times with auto increment as primary key and return the primary key as the input result. so there's my code: con...
22 minutes ago

Want to see more codedumps? Browse the complete list or start to dump your own code.