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
~21.5K People Reached
Favorite Tags
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
468
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
347
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
253
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
299
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
164
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
131
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
215
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
203
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
180
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
305
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
968
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
131
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
162
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
213
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
127
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
330
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
408
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
220
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
92
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
101
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
200
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
140
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
5K
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
365
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
398
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
148
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
126
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
101
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
378