Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements

51 Posted Topics

Member Avatar for 9tontruck

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 …

0
528
Member Avatar for 9tontruck

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 …

0
367
Member Avatar for 9tontruck

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% …

Member Avatar for AleMonteiro
0
264
Member Avatar for 9tontruck

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 …

0
302
Member Avatar for 9tontruck

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 …

Member Avatar for ddanbe
0
170
Member Avatar for 9tontruck

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 …

0
136
Member Avatar for 9tontruck

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 …

Member Avatar for JorgeM
0
216
Member Avatar for 9tontruck

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 …

0
208
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
183
Member Avatar for 9tontruck

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 …

Member Avatar for Ewald Horn
0
348
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
989
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
134
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
178
Member Avatar for 9tontruck

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 …

Member Avatar for JorgeM
0
220
Member Avatar for 9tontruck

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 …

Member Avatar for gabrielcastillo
0
129
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
365
Member Avatar for 9tontruck

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"?> …

Member Avatar for 9tontruck
0
420
Member Avatar for 9tontruck

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": …

Member Avatar for diafol
0
222
Member Avatar for 9tontruck

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 …

0
95
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
104
Member Avatar for 9tontruck

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 …

Member Avatar for Moschops
0
204
Member Avatar for 9tontruck

/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 …

Member Avatar for 9tontruck
0
145
Member Avatar for 9tontruck

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); …

Member Avatar for 9tontruck
0
6K
Member Avatar for 9tontruck

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) …

Member Avatar for mark5rockzz_1
0
2K
Member Avatar for 9tontruck

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 …

Member Avatar for Moschops
0
398
Member Avatar for 9tontruck

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 …

Member Avatar for DavidB
0
413
Member Avatar for 9tontruck

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 …

Member Avatar for peter_budo
0
152
Member Avatar for 9tontruck

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 …

Member Avatar for rubberman
0
129
Member Avatar for 9tontruck

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!

0
105
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
383
Member Avatar for 9tontruck

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 …

Member Avatar for Ketsuekiame
1
214
Member Avatar for lewashby
Member Avatar for 9tontruck

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"; …

Member Avatar for Ab000dy_85
0
359
Member Avatar for 9tontruck

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 …

0
104
Member Avatar for 9tontruck

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 …

Member Avatar for riahc3
0
221
Member Avatar for 9tontruck

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. …

Member Avatar for 9tontruck
0
444
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
190
Member Avatar for 9tontruck

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 …

Member Avatar for gusano79
0
227
Member Avatar for 9tontruck

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 …

Member Avatar for L7Sqr
0
173
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
3K
Member Avatar for 9tontruck

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; }; …

0
180
Member Avatar for 9tontruck

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) …

0
183
Member Avatar for 9tontruck

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 …

Member Avatar for FelineHazard
0
146
Member Avatar for 9tontruck

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 …

0
57
Member Avatar for 9tontruck

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 …

Member Avatar for 9tontruck
0
310
Member Avatar for 9tontruck

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?

Member Avatar for codemonkey88
0
105
Member Avatar for 9tontruck

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??

Member Avatar for smantscheff
0
88
Member Avatar for 9tontruck

[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> …

Member Avatar for nospryexpert
0
155
Member Avatar for 9tontruck

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?

Member Avatar for Fortinbra
0
112
Member Avatar for 9tontruck

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 …

Member Avatar for Taywin
0
347

The End.