51 Posted Topics
Hi, I am working on parsing pdf layers from a pdf file into separate images. It was really hard to find an library that does this and now I am digging into iTextSharp which seems like it's handling layers. public static void CreatePDF( string fileName, string destinationFolder ) { PdfReader … | |
Hi, I am not a mobile app developer but recently studying Cordova/PhoneGap for fun. I just studied FireBase and it was really awesome because it can do lots things without running my own server such as user auth/management, DB, file storage etc. But I am just wondering about the right … | |
Hi, I am struggling with xml layout in my android app... please help here is what I want: I have to display two poarts in one activity - image part and login component part which are in one linearLayout. When the device is landscape, I want it to be 30% … | |
Hi, I have a domain and DigitalOcean cloud ubuntu server, and I have been using the server as an email forwarding point. SImply, if someone sends an email to **info@domain.com**, the server forwards to **personal@gmail.com**. The beauty of this is that I don't need to spend my server space used … | |
Hi, I am dealing with the shape drawing functions in C# and I am trying to resize DrawingGroup after drawing some shapes on it. Here is my code: DrawingGroup drawingGroup = new DrawingGroup(); Pen redPen = new Pen( Brushes.Red, 2 ); DrawingContext drawingContext = drawingGroup.Open() drawingContext.DrawRectangle( null, redPen, rect); double … | |
Hi, I have installed wordpress several times before but I could not fix 404 error on my permalink this time. :S I tried everything I could search to fix it but I still need some help! Environment: Ubuntu 14.04 My wordpress files are located in a virtual host folder /home/site.com/www … | |
I have two gmail accounts. And I wrote a PHP code that sends an email via gmail's stmp service. Both accounts have same settings Status: POP is enabled Status: IMAP is enabled My PHP code sends an email via gmail's smtp very well using one account. But it doesn't work … | |
Hi, I have been searching out a lot of things to sove my problem but none of the solutions I found worked in my case :'( Here is what I am trying to do: 1. When the screen is off, my BroadCastReceiver detects it. 2. Once screen_off is detected, acquire … | |
Hi, I am trying to open Chrome app from my application. Code is simple. I got the package name of Chrome app by using this code: PackageManager manager = Values.activity.getPackageManager(); Intent i = new Intent(Intent.ACTION_MAIN, null); i.addCategory(Intent.CATEGORY_LAUNCHER); List<ResolveInfo> availableActivities = manager.queryIntentActivities(i, 0); for(ResolveInfo ri:availableActivities){ apps.add(ri.activityInfo.packageName); } //the package name of … | |
I have a webview on my android application and I loaded a URL on it. In the URL, javascript code should reload the page periodically. But when "window.location.reload();" is called, a browser app comes front and reload the url int he browser. I know how to reload the page using … | |
Hi.. I am trying to make a broadcast receiver that receives BOOT_COMPLETED when the decvice is powered up; and eventually I want to launch my application. Here's my code: MainActivity.java BroadcastReceiver mReceiver = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //receiver IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); filter.addAction(Intent.ACTION_BOOT_COMPLETED); mReceiver … | |
okay.. what I wanna do is, 1. upload an image into temp folder -- done 2. create a folder -- done 3. create an index.html in the new folder -- done 4. create thumbnail image in the new folder -- page dead without errors 5. copy(rename) the original image into … | |
Hi, I am currently writing a class that sends device diagnotic information to a server. My Android device will be installed somewhere else and it should send its status to the server. I did 1. current battery level 2. if the battery is charging Whatelse can I diagnose? Is there … | |
I am trying to download (into memory) an image as an object firstm, and display it as a background of body. here is what I have done: var url = "www.example.com/image/image.jpg"; var imageObject; $.ajax({ type: "GET", url: url, datatype:"image/jpg", success: function (data) { imageObject = data; $("body").css("background", imageObject); // not … | |
I am setting up a wordpress page on an ubuntu server with Apache/2.4.6 (Ubuntu). Here is what I did: 1. I enabled rewrite mod with : a2enmod rewrite 2. Changed "AllowOverride None" to "AllowOverride All" in apache2.conf :vi /etc/apache2/apache2.conf <Directory /> Options FollowSymLinks AllowOverride **All** Require all denied </Directory> <Directory … | |
I am trying to integrate Leaflet (http://leafletjs.com/index.html) I just copy-and-paste'd the very first demo code but it only displays a gray map.. Here is my code: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> </head> <body> <div id='map'> <script> var map = $('#map'); map.css('height', 375); map.css('width', 500); var … | |
Hi, I have quite complicated XML strings coming from somewhere else and I need to parse it in C#. Because of the complexity of XML, I decided to use XmlSerializer after getting an xsd file. But my xml code never seem to work.. here is my myxml.xml: <?xml version="1.0" encoding="iso-8859-1"?> … | |
Hi, I am working on displaying my JSON string beautifully using jQuery. Here is my code: $(document).ready(function() { var jsonp = '[{"filename":"4x6_flower.png","count":1,"zones":[{"x":"198","y":"133","width":"1283","height":"820"}]}]'; var obj = jQuery.parseJSON(jsonp); document.body.innerHTML = ""; document.body.appendChild(document.createTextNode(JSON.stringify(obj, null, "\t"))); }); But output is displayed in a single line like this: [ { "filename": "4x6_flower.png", "count": 1, "zones": … ![]() | |
Hi, I am currently building up text warp tool using ordinary bitmap(rgb) object. An example of text warp is here: http://i72.photobucket.com/albums/i189/paulsoulsby/textbend.png As you might know already, working on bitmap causes lots troubles related to high res and image distortions. So I am looking for a way to warp texts using … | |
I have two layout xmls. **greeting.xml main.xml** It's really nub question. I draw greeting layout at first and draw main layout when user clicks a button in the greeting layout. Problem is that components in the main layout are null because they are not drawn yet so I can't initiate … | |
class Base{ Base(); ~Base(); void doSomrthing(); } Class MyCLass : public Base{ std::string name; MyCLass(); ~MyCLass(); void init(); } MyCLass::MyCLass() { init(); //runtime error occurs with this line } void MyCLass::init() { name = "MyClass"; doSomrthing(); } I am having a trouble on calling child class' contructor. What is wrong … | |
/php/FrontController.php namespace FrontController; class FrontController { public static function add($a, $b) { return $a+$b; } } /project/index.php use FrontController; echo FrontController::add(4,5); error message: Warning: The use statement with non-compound name 'FrontController' has no effect in C:\wamp\www\project\index.php Fatal error: Class 'FrontController' not found in C:\wamp\www\project\index.php I want to use namesapces instead … | |
In C++, extern "C" { __declspec(dllexport) int test(char* data); } __declspec(dllexport) int test(char* data) { string str = "wassup"; strcpy(data, str.c_str()); return 1; } In C# [DllImport(dll, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] static extern int test(StringBuilder faceData); static public void testDll() { try { StringBuilder ASMData = new StringBuilder(500); … | |
HI I am trying to make a dll file that performs its tasks using CUDA library. Here is a simple version of my code: CUDADll.cu ` #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void test(int a, int b, int* c) { *c = a+b; } extern "C" __declspec(dllexport) … | |
I am trying to find an area center of various types of rectagles. (Center of gravity and midpoint of 4 ertices never work so please think in different way) Please see this image: http://img22.imageshack.us/img22/7881/rectangles.jpg I have to position of red dot ` Point vertices[4]; Point areaCenter; ` I have to … | |
Hi.. d1 = a1*x1 + b1*x2 + c1*x3 d2 = a2*x1 + b2*x2 + c2*x3 d3 = a3*x1 + b3*x2 + c3*x3 Knowing all of a,b,c,d, I have to find x1, x2, x3. As you might noticed, this is high school math. But, how do I write the code to … | |
I strongly think this is a bug on Eclipse. The problem I have is explained in the image I attached so please take a look. I think I did the all settings correctly. ${NDKROOT}/platforms/android-9/arch-arm/usr/include in Paths and Symbols GNU C/C++ But I keep having "No such file" error when I … | |
Hi, I am implementing an Android app using my old C++ classes. Everything looks okay but I have a wierd message which is : Invalid arguments ' Candidates are: void * malloc(?) ' The malloc code is written in a cpp file and <stdlib.h> is included properly but compiler does … | |
Hi, I downloaded CDT 8.0.2 for Indigo and installed it through help->install software. But in right click on project->properties, I can't see C/C++ build option in the properties! What happened! | |
Hi, I am implementing an applicaiton which uses CPU but having a problem about allocating in GPU memory. Above all, my work environment is Windows 7 Visual Studio 2010 NVIDIA Quadro NVS 290 (256MB) When I run a piece of CUDA code: cudaMemGetInfo(&freeMem, &totalMem); I get 256MB of total memory … | |
I have been making a C++ application and currently checking if there exists any memory leak before release. My application will be running as an object over HTTP server and it should be idle until an HTTP request comes in. Which means it should release most of memories when it's … | |
Hi, I need to read byte by byte data from header-like file. The format of the file is in the link, please take a look http://imageshack.us/photo/my-images/96/tablefu.jpg/ I dont need the first 128bytes and I need to get the next 4 bytes. My code is like below: char* icm_name = "Samsung_to_Cannon.icm"; … | |
There are lots of flash video downloader out there such as "http://www.flashvideodownloader.org/" and I am sure you have seen it too. I am hoping to capture the url of a video file which is playing in a flash video player in C++ or C#. How can I do it? Would … | |
Hi guys, I have created an web application which contains one .ashx file ans bunch cs files in the project. It works fine when I compile/build it using Visual Studio 2010 but I want to run my web application without visual studio. I know how to start web server over … | |
Here's what I am trying to do: **1. As long as my generic handler gets HttpRequest, push it into a queue and just return empty response so that the request sender does not wait for the long process. 2. A thread keeps checking if there is anything is the queue. … | |
Hi, After I make a GUI program on my computer nicely, every object in the form often changes in its location and size in different computer. I know it is because the monitor resolution is different and there are several solutions on the web but none of them actually works … | |
Hi guys This is a question about C++ setting you dont even need to know about the library I am trying to use. I am coding C++ in VS2010 right now and I am trying to use 'icclib' which was downloaded from http://www.argyllcms.com/icclibsrc.html I made a new project, added an … | |
Hi guys, I have recently installed a non-official program that supports me to do things easily. But one concern that I have is that I dont know if this program sends any of my personal information to somewhere on the web.If the program is made by hackers and they made … | |
Hi guys, I need to parse JSON data from an HTTPS protocol so I downloaded and integrated libcurl into my VS2010. Everything works fine and sample codes work fine when I use "http" protocol. However, a CURL error keeps coming out when I try to read from "https" protocol.... The … | |
Hi guys, I am having a small problem on using QNetworkAccessManager in QThread. The error message is: "Object::connect: No such slot QThread::replyFinished(QNetworkrReply\*)" And my code is header class SSLReceive : public QThread { //Q_OBJECT public slots: void replyFinished(QNetworkReply* net_reply); protected: void run(); private: void initialize(); QNetworkAccessManager* manager; QSslConfiguration config; }; … | |
Hi, First, I made a web page which only contains Facebook Comment API. (http://developers.facebook.com/docs/reference/plugins/comments/) This works fine in any internet browser such as FF and IE. I can leave a comment - submit button works fine. Also I can change the name. (We can have multiple names/pages in one account) … | |
Hi guys, I am programming in C++ with NetBeans. It works fine when I playing with just one main.cpp file. But After I added an additianal class (1 .cpp and 1 .h), it makes an error even though I do not make any changes in the new files. (all I … | |
Hi, I am making an image editing program with C and it will come with OpenCV library files. The problem is the program should be accessible from many different operating systems such as Windows, MacOS, IOS, Android - the point is that we want to avoid re-write same code in … | |
C programming in IOS? Hi, I am implementing an image editing program in C which should work both in Windows, IOS (iDevices). Ths point is that we do not want to re-write same code in Object-C or Xcode. Let's say that we have a C program that is just resizing … | |
Hi, I have inserted a facebook like button into my page. And I want to edit content that appears on the clicker's facebook wall. How can I modify it? | |
Hi, I am using Korean based windows7 and have been playing with wordpress. And I just noticed my mysql (localhost) does not sotre any languages except english!! Every foreign language turns into "????". What should I do to fix it?? | |
[IMG]http://img26.imageshack.us/img26/5063/ddddqk.jpg[/IMG] [CODE] <style> div#back{ width:1000px; height:1000px; margin-left: auto; margin-right: auto; background-color:#096; } div#topmenu{ width:400px; height:35px; position:relative; top:5px; left:595px; background-color:#9F0; } div#logopart{ width:950px; height:70px; position:relative; top:0px; left:50px; background-color:#0FF; } div#leftmenu{ width:100px; height:400px; position:relative; top:0px; left:0px; background-color:#999; } div#cont{ width:900px; height:500px; position:relative; top:0px; left:0px; background-color:#FF6; } </style> ... <div id=back> <div id="topmenu">topmenu</div> … | |
Check this out! [url]http://www.fring.com/[/url] What framework did they use? And what frame work is easy to implement a full ajax page such as youtube vedio play page? | |
Hi, I have a method that returns a list of images. I will say, (get_images str) and (list-ref item num) simply displays num'th element in the list. From the list, I need to print all of the images recursively. And I noticed DrScheme is not smart enough to perform more … |
The End.