199,114 Archived Topics
Remove Filter ![]() | |
i want to implement a kind of malloc and free function for a course project , now i have done something but i dont know whats the problem with access violation in this line : head->next = (struct block_meta *) allocate(sizeof(struct block_meta)); i'd be glad if someone can help me … | |
hi guys, i have start working with C#, i m making a simple application for my office, i m using mysql database. my question is i want to make a record navigation button like: Next, Previous ..... kindly guide me how to make this. i m using mysql database with … | |
I have set container like: <div class="container" ng-app="myApp" ng-controller="tagsCtrl"> <h3>Angular Tags List Editor - Autocomplete</h3> <div class="row"> <div class="col-md-7"> <div class="panel panel-default"> <div class="panel-heading"><h4><i class="fa fa-tag fa-lg"></i> Tags</h4></div> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <tag-manager tags="tags" autocomplete="allTags"></tag-manager> <hr> <h3>Current Tags</h3> <ul class="list-unstyled"> <li ng-repeat="tag in tags">{{tag}}</li> </ul> </div> </div> </div><!--/panel-body--> … | |
I am a newcomer to java and jdbc. I am currently trying to develop a web application in which the user can upload a spreadsheet to the form. Is there any way in which contents of the uploaded spreadsheet can be saved to the database? I am working in eclipse … | |
What kind of solution is to avoid default statement in switch ,if it is possible?Regards | |
Please I need a java expert to help me with the code and algorithm that deletes duplicate element from an array. I have written a programm to do this as shown below using my own algpritm. Though it is working but I think my code is too long for this … | |
hey i want to start learning software engeneering from home but ihave a question should i learn to code first imean learn a language or should i start by the other theorical things (OS's,microprocessors Arch ....) | |
Hey, I wanted to generate a report (GenReport.aspx) containing the list of GridView items filtered from the entered data from report.aspx. When I was debugging, I selected the data I wanted to filter, but it shows me all the data on the table instead of the data filtered on the … | |
I want to write code to see what applications access device drivers on my computer. The drivers are disk, display, audio, keyboard, etc. Can someone introduce me on how to do this? | |
I am using delphi 2010 in WinXP. In C# and Java there are Normalizer function. It can transform letters with diacritics into ASCII (remove those accent marks). I do not know if there is Normalizer in delphi. What I am testing is below, but failed. I do not know how … | |
I'm trying to get this cronjob to work but it won't exec the the ffmpeg exec that I have in my controller file. When I try to run it via web browser it outputs the variables correctly but won't exec <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); … | |
Hello guys have a nice day.. I have a problem need to be solved, I have upload script which save files in "/uploads" folder everything was going good until my boss decided to move upload file to storage server and need to store all files in "/etc/mnt/storage/uploads" so what should … | |
hi, can you please help me in writeing a code in javascript which will eneble javascript in browser. The code need to be in java script. i am using a performante testing tool "gomez" which supports java scripts only. its really urgent. Thanx in Advance. :icon_smile: | |
Hey everyone, Great forum. Glad there is so much help out there. I am currently working in VS2010, Visual Basic. I am working with a fairly large array: RawData(0 To 3799, 0 To 1259, 0 To 4). I am importing the data from an XML file, so this takes several … | |
My situations is as follows. `main.cs` is a main script (you don't say, whaaaaaa?), it includes `functions.cs` by `using functions;`. I managed to get OOP working (had some struggle with it, but figured it out). I know that I can pass variables from `main.cs` to `functions.cs` by executing: Class FavVarName … | |
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the name of singers that their names starts with the letter "A". Now i need a little help for this step. … | |
Dear friends, I have a set of files created at certaing time. I would like to group the result where consecutive time difference is more than 1 minute. For example A 10:01:25 B 10:01:29 C 10:01:52 D 10:01:58 E 10:02:12 F 10:02:22 G 10:11:01 H 10:11:18 I 10:30:00 The above … | |
I am trying to create a search box that searches the county field of the database. If the criteria matches then the records will be displayed in the table. I have got the different counties in the dropdown box however when I click the record the table does not change. … ![]() | |
my goal is to develop a workflow modeling web application can you give me some pointers on some usefull libraries Using ASP .NET Webforms with c# | |
Greetings, I'm working on a class project for fractions and I'm stuck and cannot figure out where to go from here. We have a mandatory driver file we aren't supposed to change. See below for example output and the output I am actually getting. **Sample Output** Enter numerator; then denominator. … | |
I need help when i try to save the value of my buttons it says that it cannot convert 1 dimensional array to system.collections.arraylist which is the option i am using for my saving. I have seventeen buttons in total that i would like to save the text from. Any … | |
Hello, Code Masters, Here I am again today going to seek help and guidance from you. I have here a manually assigned values to arrays 0 - 19 now my question is, how can I assign values to each array coming from the SQL database? The catch is, it is … | |
Hello. I want to create a database on my pc localhost and then want to use PDO to connect with that database to creating table and so on... What should i do? | |
Hey I need some help here i have created a easy login with registration that save the password in plain text but now i want it to be hash and salted but i do not now how i can do this. This is the code for login: try { SqlConnection … | |
i have installed xampp server in my pc.i couldn't run programs in browser.when i write http//localhost then it screen comes with written iis7.please help | |
Hi, I have developed a program in Delphy 2007, which shows .AVI files. Now I want to run MP4 files as well, but cannot achieve it. TMediaPlayer does not recognize the format by its extension. Is there an other player available or an upgrade for the one that came with … | |
I have a backup program that used to work reasonably well. It used copyfileex to copy files from one unix machine to another. Recently it has been maxing out at about 5Mb/s So I changed to SHFileOperation and found it averages about 80Mb/s This is using delphi 7 on windows … | |
This is my code: from tkinter import * def ftm(feet): return feet * 0.305 def mtf(meters): return meters / 0.305 def convert(amount, func, result): value = func(float(amount.get())) result.set(round((value), 3)) def choose(): choice = lol.get() if choice == "ft": feet = StringVar() meters = StringVar() rest = Toplevel() f3 = Frame(rest) … | |
I'm using sockets.io, express and php and I was wondering if it is possible to push something of a page (that only a specific user can see at the time) to another page other can see. For example, if an admin has: <?php $a = $row['test']; //data from test table … | |
hy when i run this command to open excel and i get error (on 2007 excel it was fine) //Excel.ApplicationClass xlApp; Excel.Application xlApp; Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; object misValue = System.Reflection.Missing.Value; SaveFileDialog oDialog = new SaveFileDialog(); xlApp = new Excel.ApplicationClass(); ** xlWorkBook = xlApp.Workbooks.Add(misValue);** xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1); int i = … | |
Hi people, i need to delete selected row in ListView from xml file.. i have this code: private void tsBtnDeleteRow_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) return; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("diogomonteiro.xml"); //XmlNodeList newXMLNodes = xmlDoc.SelectNodes("/Pessoas/Pessoa[name=wd]"); PessoaListViewItem item = (PessoaListViewItem)listView1.SelectedItems[0]; string value = item.ToString(); if (item != … | |
How do i slow down event,so the output would look like this?  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace Event1 { public delegate void DingDongHandler(string text); public class ClassWithEvent { public Timer DingdongTimer { get; private set; } public event DingDongHandler DingDong; public void … | |
I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the … | |
Hi guys, I'm getting a simple error and I need your help. I want to display every object in a list by returning that object as a string but I'm getting the following error: The name 'myBikeList' does not exist in the current context My code: List<Vehicle> myList;//= new List<Vehicle>(); … | |
My code and funcs for printing to columns in 2.7 and 3.0+ using print(). I had to relearn column formatting as I moved to using the print() function, and so the follwing is a result. Inspired and partially copied from discussion on [StackOverflow](https://stackoverflow.com/questions/9989334/create-nice-column-output-in-python) def main(): # Main Code v_Data = … | |
I have to change $ into jQuery due to conflict validation. Please find code. It seems an issue with the line that jQuery validation passes an error. how to solve this ? Line with an error: Manipulator.prototype.setupEvents = function() { var self = this; jQuery('#add').on('click', jQuery.proxy(self.onAddClick, self)); jQuery('#randomize').on('click', jQuery.proxy(self.onRandomize, self)); … | |
Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.) | |
upload.php <form name="selectionForm" method="POST" action='query.php'> echo "<select name='$q2['type']'>"; //echo "<select name='selecttype'>"; echo "<option value='Regular Project'>Regular Project</option>"; echo "<option value='FSA Project'>FSA Project</option>"; echo "</select></td>"; echo "<input type='hidden' name='mid' value='$q2[0]'>"; echo "<td width='140'><textarea rows='2' name='comments[]' cols='20' ></textarea></td>\n"; echo "</tr>\n"; </form> query.php $selecttype = $_POST['selecttype']; instead of calling 'selecttype' i want to call … ![]() | |
Hi, In a bootstrap page I have button called language known, by clicking that a popup checkbox modal will open in that I have two button called close and savelanguages, by clicking savelanguages button what are the languages that are selected nnear to the languages button in a textbox.. I`m … | |
I am using Eclipse helios and Android 4.1.2 i have followed the following documentation https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw and done the coding exactly as described in tutorial.when i run my app on emulator it shows "This app wont run unless you update google play services" but on real device which is sony xperia … | |
Hi All, I'm trying to convert a .p12 file to a .pem using php (because, as I understand it, soap needs to take a .pem format certificate) Am I going about it the right way? $certificate = array(); $pkcs12 = file_get_contents('certificate.p12'); if (openssl_pkcs12_read($pkcs12, $certificate, 'pass')) { if (isset($certificate['pkey'])) { $pem … | |
One day I got to wondering if it was possible to get a Python script to modify itself. After a few searches I found [this](http://showmedo.com/videotutorials/video?name=7610000&#) solution that I present here. I did not write this code, but feel that it should be "paid forward" so others know that it is … | |
I want to get data from my database table "Client",but I get this result: `[{},{},{}]` this is my code: <?php namespace OP\OPBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use OP\OPBundle\Entity\Client; class ClientAPIController extends Controller { public function indexAction() { $em = $this->getDoctrine()->getManager(); $personne = $em->getRepository('OPOPBundle:Client')->findAll(); // $personne_tab=array(); // $personne_tab['nom']=$personne->getNom(); // $personne_tab['prenom']=$personne->getPrenom(); // $personne_tab['id']=$personne->getId(); $personntojson= … | |
hi. say i have two dates: @DateFrom = 03/03/2015 @DateTO = 03/05/2015 How to get records where Date_Field is between @DateFrom 2:01 PM and @DateTo 2:00 PM? Thanks.. :) :) :) ![]() | |
For image upload , This is my code, What is the error, its not checking in else part if(!$('#upload').val()) { alert('Upload Your Photo'); $('#upload').focus(); return false; } else{ $('input[type=file]').change(function () { var val = $(this).val().toLowerCase(); var regex = new RegExp("(.*?)\.(jpg|jpeg|txt|png|docx|gif|doc|pdf|xml|bmp|ppt|xls)$"); if(!(regex.test(val))) { $(this).val(''); alert('Unsupported file'); } }); } | |
Greetings! I'm reviewing Java, in an effort to enhance my programming skills. I'm utilizing the book "*Teach Yourself Java in 21 Days*" and I'm currently learning about Java Web Start. I'm not sure I full understand how I'm supposed to use Web Start (based on the samples in the book) … | |
Hello everyone, I am a little stuck an this simple task. I have created an html with a form that has 2 user input boxes and 4 button +,-,*,/,. Basically a simple calculator. And I have a jsp to process the form. I am trying to now create a java … | |
morning i have an issue and need help. i have a page that retrieve the information entered on a form every time you hit the button submit. the page display all the field form that was entered except from one which is a radio radio buton and give me that … | |
Hi there, I am stuck in the php validation. In my form have to show list banks by in my form, if the client may be enter the correct name or enter few char and select the bank name from datalist.if Suppose the client enter any name (except exist bank … | |
Hi have a question,i know it is always a good practice to include default in the switch,but can it be omitted in this case? As i see it would be redundant. static void Main(string[] args) { bool quit = false; do { var option = ShowMenu(); switch (option) { case … |
The End.